/* ============================================================================
 * newsfeed.css — лента и создание публикаций в общей визуальной системе
 * раздела «Мероприятия» (Preline-inspired).
 *
 * Шаблоны ленты используют много общих классов Sngine, поэтому все новые
 * правила ограничены .nf-root. JS-селекторы и data-атрибуты не изменяются.
 * ========================================================================== */

/* ---------- Design tokens ---------- */
.nf-root {
  --nf-primary: #1271c9;
  --nf-primary-hover: #4d61cf;
  --nf-primary-soft: #eef0fe;
  --nf-primary-soft-strong: #dfe4fb;
  --nf-success: #16a34a;
  --nf-success-soft: #ecfdf3;
  --nf-warning: #d97706;
  --nf-warning-soft: #fffbeb;
  --nf-danger: #dc2626;
  --nf-bg: #f3f5f9;
  --nf-card: #ffffff;
  --nf-card-hover: #fafbff;
  --nf-border: #e5e9f2;
  --nf-border-strong: #d4dae8;
  --nf-text: #0f172a;
  --nf-text-soft: #334155;
  --nf-muted: #64748b;
  --nf-muted-soft: #94a3b8;
  --nf-radius-sm: 10px;
  --nf-radius: 14px;
  --nf-radius-lg: 20px;
  --nf-radius-pill: 999px;
  --nf-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.06);
  --nf-shadow: 0 8px 20px -12px rgba(15, 23, 42, 0.26), 0 2px 8px -4px rgba(15, 23, 42, 0.08);
  --nf-shadow-lg: 0 18px 40px -12px rgba(15, 23, 42, 0.22), 0 8px 16px -8px rgba(15, 23, 42, 0.1);
  --nf-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
  min-height: calc(100vh - 64px);
  padding-bottom: 36px;
  background: var(--nf-bg);
  color: var(--nf-text);
}

body.night-mode .nf-root {
  --nf-bg: #18212a;
  --nf-card: #1f2833;
  --nf-card-hover: #232e3b;
  --nf-border: #2e3a49;
  --nf-border-strong: #3b4a5d;
  --nf-text: #e6edf4;
  --nf-text-soft: #c1d4e3;
  --nf-muted: #8ea3b8;
  --nf-muted-soft: #6d8299;
  --nf-primary-soft: rgba(94, 114, 228, 0.16);
  --nf-primary-soft-strong: rgba(94, 114, 228, 0.28);
  --nf-success-soft: rgba(22, 163, 74, 0.16);
  --nf-warning-soft: rgba(217, 119, 6, 0.16);
  --nf-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.25);
  --nf-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.65), 0 2px 8px -4px rgba(0, 0, 0, 0.45);
}

.nf-root *,
.nf-root *::before,
.nf-root *::after {
  box-sizing: border-box;
}

.nf-root a {
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

/* ---------- Compact hero ---------- */
.nf-root .nf-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 48px;
  color: #fff;
  background:
    linear-gradient(rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.55)),
    url("../images/background_hero.jpg") center / cover no-repeat;
}

.nf-root .nf-hero__inner {
  position: relative;
  z-index: 1;
}

.nf-root .nf-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--nf-radius-pill);
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nf-root .nf-hero h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.nf-root .nf-page {
  position: relative;
  z-index: 2;
}

.nf-root .nf-page--hero {
  margin-top: -22px !important;
}

/* ---------- Layout and reusable panels ---------- */
.nf-root .nf-layout {
  margin-right: -8px;
  margin-left: -8px;
}

.nf-root .nf-layout > [class*="col-"] {
  padding-right: 8px;
  padding-left: 8px;
}

.nf-root .nf-main,
.nf-root .nf-sidebar {
  min-width: 0;
}

.nf-root .nf-main > .ele_content,
.nf-root .nf-sidebar > .ele_content,
.nf-root .nf-sidebar .ele_content {
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius-lg);
  background: var(--nf-card);
  box-shadow: var(--nf-shadow-sm);
}

.nf-root .nf-compose-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 24px 0 9px;
  padding: 0 3px;
}

.nf-root .nf-compose-heading__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  color: var(--nf-primary);
  background: var(--nf-primary-soft);
  font-size: 14px;
}

.nf-root .nf-compose-heading strong,
.nf-root .nf-compose-heading span {
  display: block;
}

.nf-root .nf-compose-heading strong {
  color: var(--nf-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.nf-root .nf-compose-heading span {
  max-width: 440px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--nf-muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nf-root .nf-sidebar .ele_sidebar_widget_title {
  min-height: 52px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--nf-border);
  color: var(--nf-text);
}

.nf-root .nf-sidebar .ele_sidebar_widget_title b {
  font-size: 13px;
  font-weight: 700;
}

.nf-root .nf-sidebar .ele_sidebar_widget_title a {
  color: var(--nf-primary);
  font-size: 12px;
}

.nf-root .nf-sidebar .ele_side_users,
.nf-root .nf-sidebar .featured-users-innr,
.nf-root .nf-sidebar .ele_side_events_prnt {
  padding: 13px 16px 15px;
}

/* ---------- Stories ---------- */
.nf-root .ele_home_stories {
  position: relative;
  margin-bottom: 22px;
  padding-bottom: 1px;
}

.nf-root .ele_home_stories #stories,
.nf-root .ele_home_stories .empty_stories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 5px;
  scrollbar-width: none;
}

.nf-root .ele_home_stories #stories::-webkit-scrollbar,
.nf-root .ele_home_stories .empty_stories::-webkit-scrollbar {
  display: none;
}

.nf-root .ele_home_stories .create_story,
.nf-root .ele_home_stories .story_empty {
  width: 78px;
  min-width: 78px;
  margin: 0;
}

.nf-root .ele_home_stories .create_story > a,
.nf-root .ele_home_stories .story_empty > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 96px;
  overflow: hidden;
  border: 1px solid var(--nf-border);
  border-radius: 16px;
  background: var(--nf-card);
  box-shadow: var(--nf-shadow-sm);
}

.nf-root .ele_home_stories .create_story > a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nf-root .ele_home_stories .create_story > a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: -22px;
  align-self: flex-end;
  border: 3px solid var(--nf-card);
  border-radius: 50%;
  color: #fff;
  background: var(--nf-primary);
}

.nf-root .ele_home_stories .create_story > a span svg {
  width: 18px;
  height: 18px;
}

.nf-root .ele_home_stories .create_story > p,
.nf-root .ele_home_stories .story_empty > p {
  margin: 7px 0 0;
  color: var(--nf-muted);
  font-size: 11px;
  text-align: center;
}

.nf-root .ele_home_stories .empty_stories {
  display: none;
}

/* ---------- Publisher / create post ---------- */
.nf-root #publisher-wapper {
  margin-bottom: 18px;
}

.nf-root #publisher-box.nf-publisher {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  margin-right: 0;
  margin-left: 0;
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius-lg);
  background: var(--nf-card);
  box-shadow: var(--nf-shadow-sm);
}

.nf-root #publisher-box.nf-publisher:hover {
  border-color: var(--nf-border-strong);
  box-shadow: var(--nf-shadow);
}

.nf-root .publisher-message.nf-publisher__message {
  min-height: 78px;
  padding: 16px 18px 16px 74px;
}

.nf-root .publisher-avatar.nf-publisher__avatar {
  top: 17px;
  left: 18px;
  width: 42px;
  height: 42px;
  border: 3px solid var(--nf-card);
  box-shadow: 0 0 0 1px var(--nf-border-strong), 0 5px 12px rgba(15, 23, 42, 0.12);
}

.nf-root .publisher-message:not(.colored) .colored-text-wrapper {
  min-width: 0;
}

body:not(.publisher-focus) .nf-root .publisher-message:not(.colored) .colored-text-wrapper .quill-editor,
body:not(.publisher-focus) .nf-root .publisher-message:not(.colored) .colored-text-wrapper textarea {
  display: block;
  width: 100%;
  min-width: 0;
  height: 46px !important;
  border: 1px solid var(--nf-border);
  border-radius: 13px;
  background: var(--nf-bg);
  color: var(--nf-text);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 24px;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

body:not(.publisher-focus) .nf-root .publisher-message:not(.colored) .colored-text-wrapper .quill-editor:hover,
body:not(.publisher-focus) .nf-root .publisher-message:not(.colored) .colored-text-wrapper textarea:hover {
  border-color: var(--nf-border-strong);
  background: var(--nf-card-hover);
}

body:not(.publisher-focus) .nf-root .publisher-message:not(.colored) .colored-text-wrapper .quill-editor .ql-editor {
  min-height: 44px;
  padding: 10px 14px !important;
  color: var(--nf-text);
  text-align: left;
}

body:not(.publisher-focus) .nf-root .publisher-message:not(.colored) .colored-text-wrapper .quill-editor .ql-editor::before {
  left: 14px;
  color: var(--nf-muted);
  font-size: 13.5px !important;
  font-style: normal;
  text-align: left;
}

body.publisher-focus .nf-root #publisher-box.nf-publisher {
  border-color: var(--nf-primary);
  box-shadow: 0 0 0 4px rgba(94, 114, 228, 0.12), var(--nf-shadow-lg);
}

body.publisher-focus .nf-root .publisher-message.nf-publisher__message {
  padding: 18px;
}

body.publisher-focus .nf-root .publisher-avatar.nf-publisher__avatar {
  top: 18px;
  left: 18px;
  width: 40px;
  height: 40px;
}

.nf-root .publisher-footer,
.nf-root .ele_pub_box_foot {
  border-color: var(--nf-border);
}

.nf-root .publisher-footer {
  padding: 12px 18px;
  padding-left: 74px;
}

.nf-root .publisher-footer .btn.js_publisher,
.nf-root .publisher-footer .js_publisher {
  min-height: 36px;
  padding: 0px 17px;
  border: 0;
  border-radius: 6px;
  background: var(--nf-primary);
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}

.nf-root .publisher-footer .btn.js_publisher:hover,
.nf-root .publisher-footer .js_publisher:hover {
  background: var(--nf-primary-hover);
}

.nf-root .ele_pub_box_foot {
  padding: 12px 18px;
}

.nf-root .ele_post_pub_privacy {
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--nf-border-strong);
  border-radius: var(--nf-radius-pill);
  color: var(--nf-text-soft);
  background: transparent;
  font-size: 12px;
  line-height: 30px;
}

.nf-root .ele_post_pub_privacy:hover,
.nf-root .ele_post_pub_privacy:focus {
  border-color: var(--nf-primary);
  color: var(--nf-primary);
  background: var(--nf-primary-soft);
}

.nf-root .ele_pub_btn_hasat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 4px;
  border-radius: 10px;
  color: var(--nf-muted);
}

.nf-root .ele_pub_btn_hasat:hover,
.nf-root .ele_pub_btn_hasat.active {
  color: var(--nf-primary);
  background: var(--nf-primary-soft);
}

.nf-root .publisher-tools-tabs {
  gap: 2px;
  padding: 8px 10px 6px;
  border-color: var(--nf-border);
}

.nf-root .publisher-tools-tabs > li {
  width: 33.3333%;
  padding: 0 4px 4px;
}

.nf-root .publisher-tools-tab {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--nf-text-soft);
  font-size: 11.5px;
  line-height: 20px;
}

.nf-root .publisher-tools-tab:not(.disabled):hover {
  border-color: var(--nf-primary-soft-strong);
  color: var(--nf-primary);
  background: var(--nf-primary-soft);
}

.nf-root .publisher-tools-tab svg {
  width: 17px;
  height: 17px;
  margin-right: 6px;
  color: var(--nf-primary);
}

.nf-root .publisher-attachments,
.nf-root .publisher-scraper,
.nf-root .publisher-meta,
.nf-root .publisher-custom-thumbnail,
.nf-root .publisher-footer-options {
  border-color: var(--nf-border);
}

.nf-root .publisher-meta {
  margin-right: 18px;
  margin-left: 18px;
}

.nf-root .publisher-meta input,
.nf-root .publisher-meta select {
  border: 1px solid var(--nf-border);
  background: var(--nf-bg);
  color: var(--nf-text);
}

.nf-root .publisher-error {
  margin: 0 18px;
}

/* ---------- Feed controls ---------- */
.nf-root .nf-feed-controls {
  margin-bottom: 14px;
}

.nf-root .nf-feed-controls > .ele_page_title:empty {
  display: none;
}

.nf-root .nf-feed-controls > .ele_page_title:not(:empty),
.nf-root .nf-feed-controls .ele_page_titlemulti {
  margin-bottom: 12px;
  color: var(--nf-text);
}

.nf-root .ele_page_titlemulti .btn,
.nf-root .nf-feed-controls .btn-primary {
  border: 0;
  border-radius: 11px;
  background: var(--nf-primary);
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}

.nf-root .ele_page_titlemulti .btn:hover,
.nf-root .nf-feed-controls .btn-primary:hover {
  background: var(--nf-primary-hover);
}

.nf-root .ele_post_filters {
  min-height: 68px;
  margin: 0 0 9px;
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius-lg);
  background: var(--nf-card);
  box-shadow: var(--nf-shadow-sm);
}

.nf-root .ele_post_filters_nav.ele_scroll {
  width: 100%;
  margin: 0;
  padding: 11px 13px;
}

.nf-root .ele_post_filters-select + .us-wrapper {
  width: 100%;
}

.nf-root .ele_post_filters-select + .us-wrapper .us-button {
  min-height: 44px;
  border-color: var(--nf-border-strong);
  border-radius: 12px;
  color: var(--nf-text);
  background: var(--nf-card);
  box-shadow: none;
  font-size: 13px;
}

.nf-root .ele_post_filters-select + .us-wrapper .us-button:hover,
.nf-root .ele_post_filters-select + .us-wrapper .us-button[aria-expanded="true"] {
  border-color: var(--nf-primary);
  color: var(--nf-primary);
  background: var(--nf-primary-soft);
}

.nf-root .ele_post_filters-select + .us-wrapper .us-button-label {
  font-size: 13px;
  font-weight: 600;
}

.nf-root .nf-feed-controls > .mb10 {
  position: relative;
  min-height: 44px;
  margin-bottom: 0 !important;
  padding: 0;
}

.nf-root .countries-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--nf-border-strong);
  border-radius: var(--nf-radius-pill);
  color: var(--nf-text-soft);
  background: var(--nf-card);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
}

.nf-root .countries-filter:hover,
.nf-root .countries-filter[aria-expanded="true"] {
  border-color: var(--nf-primary);
  color: var(--nf-primary);
  background: var(--nf-primary-soft);
}

.nf-root .countries-filter .fa {
  color: var(--nf-primary);
}

.nf-root .countries-dropdown {
  z-index: 80;
  min-width: 220px;
  max-height: 320px;
  overflow: hidden;
  margin-top: 7px;
  padding: 6px;
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius);
  background: var(--nf-card);
  box-shadow: var(--nf-shadow-lg);
}

.nf-root .countries-dropdown .js_scroller {
  max-height: 280px;
}

.nf-root .countries-dropdown .dropdown-item {
  border-radius: 9px;
  color: var(--nf-text-soft);
  font-size: 12.5px;
}

.nf-root .countries-dropdown .dropdown-item:hover {
  color: var(--nf-primary);
  background: var(--nf-primary-soft);
}

/* ---------- Posts ---------- */
.nf-root .nf-post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nf-root .nf-post-list > li {
  min-width: 0;
  margin: 0;
}

.nf-root .post.nf-post {
  position: relative;
  margin: 0 0 14px;
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius-lg);
  background: var(--nf-card);
  box-shadow: var(--nf-shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nf-root .nf-post-list > li:last-child .post.nf-post {
  margin-bottom: 0;
}

.nf-root .post.nf-post:hover {
  border-color: var(--nf-border-strong);
  box-shadow: var(--nf-shadow);
}

.nf-root .post.nf-post.boosted {
  border-color: rgba(217, 119, 6, 0.5);
}

.nf-root .post.nf-post.is_hidden {
  border: 1px dashed var(--nf-border-strong);
}

.nf-root .nf-post__header {
  min-width: 0;
  padding: 17px 19px 11px;
}

.nf-root .nf-post__header > .valign {
  min-width: 0;
}

.nf-root .nf-post__avatar {
  flex: 0 0 44px;
  margin-right: 12px;
}

.nf-root .nf-post__avatar .post-avatar-picture,
.nf-root .nf-post__avatar .post-avatar-anonymous {
  width: 44px;
  min-width: 44px;
  height: 44px;
}

.nf-root .nf-post__avatar .post-avatar-anonymous {
  padding: 10px;
  background: linear-gradient(135deg, #64748b, #94a3b8);
}

.nf-root .nf-post__avatar .online-dot {
  top: 34px;
  right: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--nf-card);
  box-shadow: none;
}

.nf-root .nf-post__meta {
  min-width: 0;
}

.nf-root .nf-post__title {
  overflow: hidden;
  padding-top: 0;
  color: var(--nf-muted);
  font-size: 12.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nf-root .nf-post__title .post-author {
  color: var(--nf-text);
  font-size: 14px;
  font-weight: 700;
}

.nf-root .nf-post__title .post-author:hover {
  color: var(--nf-primary);
}

.nf-root .nf-post__title .post-title {
  color: var(--nf-muted);
  font-size: 12px;
}

.nf-root .nf-post__title .post-title a,
.nf-root .nf-post__title .blog-category {
  color: var(--nf-primary);
  font-weight: 600;
}

.nf-root .nf-post__time {
  max-width: 100%;
  margin-top: 2px;
  overflow: visible;
  color: var(--nf-muted-soft);
  font-size: 11.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nf-root .nf-post__time .post-sub-item {
  overflow: hidden;
  color: var(--nf-muted-soft);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nf-root .nf-post__time .post-sub-item:hover {
  color: var(--nf-primary);
}

.nf-root .nf-post__time .btn-group .dropdown-toggle {
  min-width: 22px;
  padding: 0;
  color: var(--nf-muted);
}

.nf-root .nf-post__menu {
  flex: 0 0 28px;
  margin-left: 8px;
}

.nf-root .nf-post__menu > .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: var(--nf-muted);
  cursor: pointer;
}

.nf-root .nf-post__menu > .dropdown-toggle:hover,
.nf-root .nf-post__menu.show > .dropdown-toggle {
  color: var(--nf-primary);
  background: var(--nf-primary-soft);
}

.nf-root .post-text {
  padding: 0 19px;
  color: var(--nf-text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.nf-root .post-replace {
  color: var(--nf-text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.nf-root .post-replace a {
  color: var(--nf-primary);
}

.nf-root .post-text-translation {
  margin: 14px 19px 0;
  border: 1px solid var(--nf-border);
  border-radius: 11px;
  background: var(--nf-bg);
}

.nf-root .post-product-container .post-text,
.nf-root .post-media-meta .post-text {
  padding-right: 0;
  padding-left: 0;
}

.nf-root .post-collaborative-alert {
  margin: 0 12px;
  border: 1px solid var(--nf-border);
  border-radius: 11px;
  color: var(--nf-text-soft);
  background: var(--nf-bg);
}

.nf-root .post-top-alert {
  padding: 12px 14px 0;
}

.nf-root .post-top-alert > div {
  border: 1px solid var(--nf-border);
  color: var(--nf-muted);
  background: var(--nf-bg);
  font-size: 12px;
}

.nf-root .post .pin-icon,
.nf-root .post .pending-icon {
  padding: 12px 19px 0;
  color: var(--nf-warning);
  font-size: 11px;
}

.nf-root .post .boosted-icon {
  margin: 14px 19px 0;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: var(--nf-radius-pill);
  color: var(--nf-warning);
  background: var(--nf-warning-soft);
  font-size: 10px;
  line-height: 24px;
}

.nf-root .nf-post-source-label {
  margin: 0;
  padding: 13px 19px 0;
  color: var(--nf-muted) !important;
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Media blocks keep the card rhythm while retaining the original markup. */
.nf-root .nf-post .pg_wrapper,
.nf-root .nf-post .post-media,
.nf-root .nf-post .post-map,
.nf-root .nf-post .post-site-link,
.nf-root .nf-post .post-snippet {
  margin-right: 19px;
  margin-left: 19px;
}

.nf-root .nf-post .post-site-link .post-media,
.nf-root .nf-post .post-site-link .pg_wrapper,
.nf-root .nf-post .post-snippet .post-site-link,
.nf-root .nf-post .post-snippet .post-media,
.nf-root .nf-post .post-snippet .pg_wrapper,
.nf-root .nf-post .post-funding-meta .post-media,
.nf-root .nf-post .post-job-meta .post-media,
.nf-root .nf-post .post-course-meta .post-media,
.nf-root .nf-post .post-merit-meta .post-media {
  margin-right: 0;
  margin-left: 0;
}

.nf-root .nf-post .pg_wrapper,
.nf-root .nf-post .post-media,
.nf-root .nf-post .post-map,
.nf-root .nf-post .post-snippet {
  overflow: hidden;
  border-color: var(--nf-border);
  border-radius: 14px;
}

.nf-root .nf-post .post-media {
  background: var(--nf-bg);
}

.nf-root .nf-post .post-media-meta {
  color: var(--nf-text-soft);
}

.nf-root .nf-post .post-media-meta .title,
.nf-root .nf-post .post-media-meta .title a {
  color: var(--nf-text);
}

.nf-root .nf-post .post-media-meta .text,
.nf-root .nf-post .post-media-meta .info {
  color: var(--nf-muted);
}

.nf-root .nf-post .post-map {
  border: 1px solid var(--nf-border);
}

.nf-root .nf-post .post-actions.nf-post__actions {
  justify-content: space-between;
  margin: 14px 19px 0;
  padding: 10px 0 8px;
  border-top: 1px solid var(--nf-border);
}

.nf-root .nf-post .post-actions .action-btn {
  min-height: 36px;
  margin: 0 2px;
  padding: 3px 7px;
  border-radius: 10px;
  color: var(--nf-muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nf-root .nf-post .post-actions .action-btn:hover {
  color: var(--nf-text);
  background: transparent;
}

body:not(.night-mode) .nf-root .nf-post .post-actions .stat-ico-bg,
body:not(.night-mode) .nf-root .nf-post .post-actions .reaction-btn-icon,
body.night-mode .nf-root .nf-post .post-actions .stat-ico-bg,
body.night-mode .nf-root .nf-post .post-actions .reaction-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  margin: 0 6px 0 0;
  padding: 0;
  border-radius: 9px;
  background: transparent;
}

.nf-root .nf-post .post-actions .reaction-btn-icon {
  color: var(--nf-primary);
}

.nf-root .nf-post .post-actions .action-btn:hover .stat-ico-bg,
.nf-root .nf-post .post-actions .action-btn:hover .reaction-btn-icon {
  background: var(--nf-primary-soft);
}

.nf-root .nf-post .reaction-btn {
  display: inline-flex;
  align-items: center;
}

.nf-root .nf-post .reaction-btn-name {
  color: inherit;
}

.nf-root .nf-post .reactions-container {
  bottom: calc(100% + 7px);
  border: 1px solid var(--nf-border);
  border-radius: 13px;
  background: var(--nf-card);
  box-shadow: var(--nf-shadow-lg);
}

.nf-root .nf-post .post-stats.nf-post__stats {
  min-height: 28px;
  padding: 0 19px 7px;
  color: var(--nf-muted);
  font-size: 11.5px;
}

.nf-root .nf-post .post-stats > .valign > div,
.nf-root .nf-post .post-stats > .valign > span {
  margin-bottom: 0;
}

.nf-root .nf-post .post-stats .pointer:hover {
  color: var(--nf-primary);
}

.nf-root .nf-post .post-footer.nf-post__footer {
  border-top-color: var(--nf-border);
  padding: 0 19px;
}

.nf-root .nf-post .post-comments {
  padding-top: 14px;
}

.nf-root .nf-post .comment-form,
.nf-root .nf-post .comment-form textarea {
  border-color: var(--nf-border);
  background: var(--nf-bg);
}

.nf-root .nf-post .comment-form textarea:focus {
  border-color: var(--nf-primary);
  box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.12);
}

.nf-root .post-dropdown-menu,
.nf-root .ele_post_pub_privacy_menu {
  z-index: 90;
  min-width: 210px;
  padding: 6px;
  border: 1px solid var(--nf-border);
  border-radius: 13px;
  background: var(--nf-card);
  box-shadow: var(--nf-shadow-lg);
}

.nf-root .post-dropdown-menu .dropdown-item,
.nf-root .ele_post_pub_privacy_menu .dropdown-item {
  border-radius: 9px;
  color: var(--nf-text-soft);
  font-size: 12.5px;
}

.nf-root .post-dropdown-menu .dropdown-item:hover,
.nf-root .ele_post_pub_privacy_menu .dropdown-item:hover {
  color: var(--nf-primary);
  background: var(--nf-primary-soft);
}

.nf-root .post-dropdown-menu .dropdown-divider,
.nf-root .ele_post_pub_privacy_menu .dropdown-divider {
  border-color: var(--nf-border);
}

.nf-root .post-approval {
  border-top-color: var(--nf-border);
}

/* ---------- Loading / pagination / empty states ---------- */
.nf-root .nf-staging-btn {
  top: 122px;
  border: 0;
  background: var(--nf-primary);
  box-shadow: var(--nf-shadow);
  font-size: 12px;
  font-weight: 600;
}

.nf-root .nf-staging-btn:hover {
  background: var(--nf-primary-hover);
}

.nf-root .nf-see-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  margin: 14px 0 0 !important;
  border: 1px dashed var(--nf-border-strong);
  border-radius: var(--nf-radius);
  color: var(--nf-muted);
  background: transparent;
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 600;
}

.nf-root .nf-see-more:hover {
  border-color: var(--nf-primary);
  color: var(--nf-primary);
  background: var(--nf-primary-soft);
}

.nf-root .nf-posts-loader .post {
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius-lg);
  background: var(--nf-card);
  box-shadow: var(--nf-shadow-sm);
}

.nf-root .empty_state,
.nf-root .nf-post-stream > .empty_state {
  border: 1px solid var(--nf-border);
  border-radius: var(--nf-radius-lg);
  color: var(--nf-muted);
  background: var(--nf-card);
  box-shadow: var(--nf-shadow-sm);
}

/* ---------- Responsive ---------- */
@media (min-width: 992px) {
  .nf-root .nf-layout .nf-main {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }

  .nf-root .nf-layout .nf-sidebar {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (min-width: 834px) {
  .nf-root .nf-layout .nf-main {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }

  .nf-root .nf-layout .nf-sidebar {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media (max-width: 991px) {
  .nf-root .nf-sidebar {
    margin-top: 16px;
  }

  .nf-root .nf-sidebar.js_sticky-sidebar {
    position: static !important;
    top: auto !important;
    transform: none !important;
  }

  .nf-root .nf-sidebar.js_sticky-sidebar .theiaStickySidebar {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: auto !important;
    transform: none !important;
  }
}

@media (max-width: 575px) {
  .nf-root .nf-hero {
    padding: 23px 0 40px;
  }

  .nf-root .nf-hero h1 {
    font-size: 24px;
  }

  .nf-root .nf-page--hero {
    margin-top: -17px !important;
  }

  .nf-root .nf-layout {
    margin-right: -5px;
    margin-left: -5px;
  }

  .nf-root .nf-layout > [class*="col-"] {
    padding-right: 5px;
    padding-left: 5px;
  }

  .nf-root .nf-compose-heading span {
    max-width: 250px;
  }

  .nf-root .publisher-tools-tabs > li {
    width: 50%;
  }

  .nf-root #publisher-box.nf-publisher,
  .nf-root .post.nf-post {
    margin-right: 0;
    margin-left: 0;
  }

  .nf-root .publisher-tools-tab {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 11px;
  }

  .nf-root .publisher-tools-tab svg {
    width: 16px;
    height: 16px;
    margin-right: 5px;
  }

  .nf-root .nf-post__header {
    padding: 14px 14px 9px;
  }

  .nf-root .nf-post__avatar {
    flex-basis: 40px;
    margin-right: 10px;
  }

  .nf-root .nf-post__avatar .post-avatar-picture,
  .nf-root .nf-post__avatar .post-avatar-anonymous {
    width: 40px;
    min-width: 40px;
    height: 40px;
  }

  .nf-root .nf-post__avatar .online-dot {
    top: 30px;
  }

  .nf-root .nf-post__title .post-author {
    font-size: 13.5px;
  }

  .nf-root .post-text,
  .nf-root .post-replace {
    font-size: 13.5px;
  }

  .nf-root .nf-post .pg_wrapper,
  .nf-root .nf-post .post-media,
  .nf-root .nf-post .post-map,
  .nf-root .nf-post .post-site-link,
  .nf-root .nf-post .post-snippet {
    margin-right: 12px;
    margin-left: 12px;
  }

  .nf-root .nf-post .post-actions.nf-post__actions {
    margin-right: 12px;
    margin-left: 12px;
  }

  .nf-root .nf-post .post-stats.nf-post__stats {
    padding-right: 12px;
    padding-left: 12px;
  }

  .nf-root .nf-post .post-footer.nf-post__footer {
    padding-right: 12px;
    padding-left: 12px;
  }

  .nf-root .nf-post .post-actions .action-btn {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 11.5px;
  }

  .nf-root .nf-post .post-actions .stat-ico-bg,
  .nf-root .nf-post .post-actions .reaction-btn-icon {
    width: 28px;
    height: 28px;
    margin-right: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf-root *,
  .nf-root *::before,
  .nf-root *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
