:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --text: #14171c;
  --muted: #6b7280;
  --line: #e4e7ec;
  --accent: #111827;
  --accent-soft: #eef2ff;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover { color: #000; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: "Source Serif 4", serif;
  letter-spacing: -0.02em;
  margin: 0;
}

p { color: var(--muted); margin: 0; }

.topline { background: #fff; }
.topline a:hover { color: var(--text) !important; }

.site-header {
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-wrap {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #0b0e13;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-logo {
  width: 50px;
  height: auto;
  display: block;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}

.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-box {
  width: min(420px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
}

.search-box i { color: var(--muted); }
.search-box input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  font-size: 0.95rem;
}

.main-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.94);
}

.main-nav .nav {
  gap: 2px;
}

.main-nav .nav-link {
  position: relative;
  color: var(--text);
  font-weight: 600;
  border-radius: 10px;
  padding: 0.875rem 0.8rem 0.78rem;
  white-space: nowrap;
  background: transparent;
  transition: color .18s ease, background-color .18s ease;
}

.main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.45rem;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: opacity .18s ease, transform .18s ease;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus-visible {
  color: #111;
  background: transparent;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link:focus-visible::after,
.main-nav .nav-link.active::after,
.nav-root-item.is-hover > .nav-root-link::after {
  opacity: 1;
  transform: scaleX(1);
}

.main-nav .nav-link.active {
  color: #111;
  background: transparent;
}

.news-nav {
  gap: 2px;
  flex-wrap: nowrap;
}

@media (min-width: 992px) {
  .main-nav,
  .main-nav .container,
  .main-nav .news-nav {
    overflow: visible !important;
  }
}

.nav-root-item {
  position: relative;
}

@media (min-width: 992px) {
  .nav-root-item {
    padding-bottom: 10px;
    margin-bottom: -10px;
  }
}

.nav-root-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-root-link.dropdown-toggle::after {
  margin-left: 0.15rem;
  vertical-align: 0.12em;
}

.nav-dropdown {
  margin-top: 0;
  min-width: 290px;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.985);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12) !important;
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  pointer-events: none;
  display: block;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.nav-projects .nav-dropdown {
  min-width: 340px;
}

.nav-dropdown .dropdown-item {
  padding: 0.72rem 0.82rem;
  border-radius: 10px;
  white-space: normal;
  font-weight: 600;
  color: var(--text);
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.nav-dropdown .dropdown-item:hover,
.nav-dropdown .dropdown-item:focus,
.nav-dropdown .dropdown-item.active {
  background: var(--surface-2);
  color: var(--text);
  transform: translateX(2px);
}

@media (min-width: 992px) {
  .nav-root-item.is-hover > .dropdown-menu,
  .nav-root-item.show > .dropdown-menu,
  .main-nav .dropdown:hover > .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
}

.mobile-links .accordion-item,
.mobile-links .accordion-button,
.mobile-links .accordion-body {
  background: transparent;
}

.mobile-links .accordion-item {
  border: 0;
  border-bottom: 1px solid var(--line);
}

.mobile-links .accordion-button {
  padding: 1rem 0;
  font-weight: 700;
  color: var(--text);
  box-shadow: none;
}

.mobile-links .accordion-button:not(.collapsed) {
  color: var(--text);
  background: transparent;
}

.mobile-links .accordion-button:focus {
  box-shadow: none;
}

.mobile-submenu {
  display: grid;
  gap: 10px;
  padding: 0 0 1rem 0;
}

.mobile-submenu a,
.mobile-direct-link a {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.mobile-submenu a:hover,
.mobile-direct-link a:hover {
  color: var(--text);
}

.mobile-direct-link {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.breaking-line { background: rgba(255,255,255,0.75); }
.breaking-badge {
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
}

.ticker-wrap { min-width: 0; }
.ticker-track {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker 24s linear infinite;
  color: var(--muted);
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-35%); }
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: end;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 700;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.card-surface {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(228,231,236,0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  gap: 18px;
}

.hero-feature {
  grid-row: span 2;
}

.hero-card { overflow: hidden; }
.thumb,
.mini-thumb,
.cover {
  position: relative;
  overflow: hidden;
}

.thumb {
  height: 220px;
  border-bottom: 1px solid var(--line);
}

.hero-feature .thumb { height: 360px; }

.card-body-custom {
  padding: 20px;
}

.meta-row,
.feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.hero-feature h2 {
  margin: 14px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.02;
}

.small-card h3 {
  margin-top: 12px;
  font-size: 1.2rem;
  line-height: 1.12;
}

.more-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.thumb-1, .thumb-2, .thumb-3, .thumb-4, .thumb-5,
.video-thumb-1, .video-thumb-2, .video-thumb-3, .video-thumb-4,
.cover-1, .cover-2, .cover-3, .cover-4 {
  background-size: cover;
  background-position: center;
}

.thumb-1 { background-image: linear-gradient(135deg, rgba(16,24,40,.15), rgba(16,24,40,.45)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 600'%3E%3Crect width='900' height='600' fill='%23dbe4f0'/%3E%3Cg fill='none' stroke='%2393a4b8' stroke-width='2'%3E%3Cpath d='M0 430 Q 180 330 360 390 T 900 320'/%3E%3Cpath d='M0 470 Q 220 390 430 430 T 900 360'/%3E%3C/g%3E%3Crect x='70' y='90' width='290' height='170' rx='20' fill='%23ffffff' opacity='.75'/%3E%3Crect x='420' y='140' width='210' height='28' rx='14' fill='%23f8fafc' opacity='.95'/%3E%3Crect x='420' y='186' width='280' height='18' rx='9' fill='%23f8fafc' opacity='.9'/%3E%3Crect x='420' y='217' width='250' height='18' rx='9' fill='%23f8fafc' opacity='.7'/%3E%3C/svg%3E"); }
.thumb-2 { background-image: linear-gradient(135deg, rgba(19,27,43,.12), rgba(19,27,43,.35)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 340'%3E%3Crect width='500' height='340' fill='%23ebeef3'/%3E%3Crect x='40' y='40' width='180' height='130' rx='18' fill='%23d2dae5'/%3E%3Crect x='250' y='65' width='170' height='20' rx='10' fill='%23bcc7d6'/%3E%3Crect x='250' y='100' width='140' height='16' rx='8' fill='%23c9d2df'/%3E%3Crect x='40' y='215' width='380' height='14' rx='7' fill='%23c3ccda'/%3E%3C/svg%3E"); }
.thumb-3 { background-image: linear-gradient(135deg, rgba(37,46,67,.1), rgba(37,46,67,.28)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 340'%3E%3Crect width='500' height='340' fill='%23eef2f7'/%3E%3Cpath d='M40 250 L160 120 L245 190 L335 85 L455 230' stroke='%23a4b1c3' stroke-width='18' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.thumb-4 { background-image: linear-gradient(135deg, rgba(26,31,43,.12), rgba(26,31,43,.35)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 340'%3E%3Crect width='500' height='340' fill='%23eceff5'/%3E%3Ccircle cx='175' cy='170' r='92' fill='%23cfd7e3'/%3E%3Cpolygon points='165,130 235,170 165,210' fill='%23f8fafc'/%3E%3C/svg%3E"); }
.thumb-5 { background-image: linear-gradient(135deg, rgba(21,28,39,.12), rgba(21,28,39,.28)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 340'%3E%3Crect width='500' height='340' fill='%23edf1f6'/%3E%3Crect x='110' y='55' width='130' height='190' rx='14' fill='%23cfd7e2'/%3E%3Crect x='255' y='80' width='130' height='190' rx='14' fill='%23dde4ee'/%3E%3C/svg%3E"); }

.news-feed { background: transparent; }
.feed-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.feed-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.feed-item h3 {
  margin: 10px 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.08;
}

.feed-item a:hover { text-decoration: underline; }

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 110px;
}

.sidebar-card {
  padding: 22px;
}

.sidebar-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.sidebar-title-row h3 {
  font-size: 1.35rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--muted);
  background: #fff;
}

.tag-cloud a:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.mini-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.mini-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
}

.mini-list span,
.author-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.opinion-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
}

.opinion-item + .opinion-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.opinion-item h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.mini-media-card,
.edition-card {
  padding: 16px;
  height: 100%;
}

.mini-thumb {
  height: 140px;
  border-radius: 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.mini-thumb span {
  background: rgba(17,24,39,0.88);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 999px;
}

.video-thumb-1 { background-image: linear-gradient(135deg, rgba(32,41,62,.12), rgba(32,41,62,.35)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 240'%3E%3Crect width='420' height='240' fill='%23dfe6ef'/%3E%3Crect x='55' y='48' width='310' height='144' rx='18' fill='%23c6d0de'/%3E%3Cpolygon points='188,97 255,120 188,143' fill='%23f8fafc'/%3E%3C/svg%3E"); }
.video-thumb-2 { background-image: linear-gradient(135deg, rgba(32,41,62,.1), rgba(32,41,62,.28)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 240'%3E%3Crect width='420' height='240' fill='%23e6ebf2'/%3E%3Cpath d='M75 175 L165 105 L260 145 L350 80' stroke='%23adb9c8' stroke-width='16' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.video-thumb-3 { background-image: linear-gradient(135deg, rgba(32,41,62,.12), rgba(32,41,62,.32)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 240'%3E%3Crect width='420' height='240' fill='%23e9edf3'/%3E%3Crect x='72' y='55' width='120' height='130' rx='16' fill='%23ccd4df'/%3E%3Crect x='214' y='55' width='130' height='22' rx='11' fill='%23bcc8d7'/%3E%3Crect x='214' y='95' width='105' height='16' rx='8' fill='%23c7d0dd'/%3E%3Crect x='214' y='125' width='136' height='16' rx='8' fill='%23cfd7e3'/%3E%3C/svg%3E"); }
.video-thumb-4 { background-image: linear-gradient(135deg, rgba(32,41,62,.12), rgba(32,41,62,.35)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 240'%3E%3Crect width='420' height='240' fill='%23e2e8f0'/%3E%3Crect x='90' y='48' width='108' height='150' rx='16' fill='%23c5cedb'/%3E%3Crect x='218' y='63' width='108' height='150' rx='16' fill='%23d8e0e9'/%3E%3C/svg%3E"); }

.mini-media-card h3,
.edition-card h3 {
  font-size: 1.18rem;
  line-height: 1.12;
  margin-bottom: 10px;
}

.cover {
  height: 190px;
  border-radius: 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.45);
}

.cover-1 { background-image: linear-gradient(160deg, rgba(255,255,255,.24), rgba(17,24,39,.18)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 320'%3E%3Crect width='240' height='320' fill='%23d9e3ef'/%3E%3Crect x='24' y='30' width='74' height='10' rx='5' fill='%239fb0c3'/%3E%3Crect x='24' y='56' width='140' height='22' rx='10' fill='%238ea2bb'/%3E%3Crect x='24' y='102' width='192' height='130' rx='18' fill='%23eef3f7'/%3E%3C/svg%3E"); }
.cover-2 { background-image: linear-gradient(160deg, rgba(255,255,255,.24), rgba(17,24,39,.18)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 320'%3E%3Crect width='240' height='320' fill='%23e6ebf2'/%3E%3Cpath d='M36 228 C86 136, 160 110, 206 80' stroke='%23afbccd' stroke-width='16' fill='none'/%3E%3C/svg%3E"); }
.cover-3 { background-image: linear-gradient(160deg, rgba(255,255,255,.24), rgba(17,24,39,.18)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 320'%3E%3Crect width='240' height='320' fill='%23dfe6ee'/%3E%3Crect x='34' y='48' width='172' height='102' rx='16' fill='%23f8fafc'/%3E%3Crect x='34' y='174' width='140' height='18' rx='9' fill='%239db0c5'/%3E%3Crect x='34' y='204' width='118' height='14' rx='7' fill='%23afbccb'/%3E%3C/svg%3E"); }
.cover-4 { background-image: linear-gradient(160deg, rgba(255,255,255,.24), rgba(17,24,39,.18)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 320'%3E%3Crect width='240' height='320' fill='%23e7ecf3'/%3E%3Crect x='50' y='45' width='140' height='210' rx='18' fill='%23cfd8e3'/%3E%3C/svg%3E"); }

.newsletter-box {
  padding: 30px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.newsletter-box h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.newsletter-form input {
  min-width: 0;
  flex: 1 1 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 16px;
  outline: none;
}

.site-footer {
  background: rgba(255,255,255,0.75);
}

@media (max-width: 1199.98px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-feature {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 991.98px) {
  .section-head,
  .newsletter-box {
    grid-template-columns: 1fr;
  }

  .sidebar-stack {
    position: static;
    top: auto;
  }

  .hero-feature .thumb { height: 280px; }
}

@media (max-width: 767.98px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .thumb { height: 190px; }
  .hero-feature .thumb { height: 220px; }
  .feed-item { padding: 20px 0; }
  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 991.98px) {
  .site-header .btn {
    padding-inline: 1rem;
  }
}


body.theme-dark {
  --bg: #0f141b;
  --surface: #141b24;
  --surface-2: #18212d;
  --text: #eef2f7;
  --muted: #a8b2c1;
  --line: #253041;
  --accent: #f3f5f7;
  --accent-soft: #1c2633;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  background: linear-gradient(180deg, #0c1117 0%, #111923 100%);
}

body.theme-dark .topline,
body.theme-dark .site-header,
body.theme-dark .breaking-line,
body.theme-dark .offcanvas,
body.theme-dark .dropdown-menu,
body.theme-dark .card-surface,
body.theme-dark .sidebar-card,
body.theme-dark .mini-media-card,
body.theme-dark .edition-card,
body.theme-dark .newsletter-box,
body.theme-dark footer {
  background-color: rgba(20, 27, 36, 0.96) !important;
  color: var(--text);
}

body.theme-dark .border-bottom,
body.theme-dark .border-top {
  border-color: var(--line) !important;
}

body.theme-dark .brand-mark,
body.theme-dark .breaking-badge,
body.theme-dark .main-nav .nav-link.active,
body.theme-dark .main-nav .nav-link:hover,
body.theme-dark .tag-cloud a:hover,
body.theme-dark .mini-thumb span,
body.theme-dark .site-header .btn-dark,
body.theme-dark .btn-dark {
  background: #f3f5f7 !important;
  color: #10151d !important;
  border-color: #f3f5f7 !important;
}

body.theme-dark .btn-light,
body.theme-dark .search-box,
body.theme-dark .tag-cloud a,
body.theme-dark .nav-dropdown .dropdown-item:hover,
body.theme-dark .nav-dropdown .dropdown-item:focus,
body.theme-dark .nav-dropdown .dropdown-item.active,
body.theme-dark .mobile-links .accordion-button:not(.collapsed),
body.theme-dark .mobile-links .accordion-button,
body.theme-dark .mobile-submenu a,
body.theme-dark .mobile-direct-link a {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}

body.theme-dark .search-box input,
body.theme-dark .search-box i,
body.theme-dark .topline a,
body.theme-dark .text-secondary,
body.theme-dark p,
body.theme-dark .feed-meta,
body.theme-dark .meta-row,
body.theme-dark .eyebrow,
body.theme-dark .brand-text small {
  color: var(--muted) !important;
}

body.theme-dark .nav-dropdown .dropdown-item,
body.theme-dark .main-nav .nav-link,
body.theme-dark .mobile-links .accordion-button,
body.theme-dark .mobile-submenu a:hover,
body.theme-dark .mobile-direct-link a:hover,
body.theme-dark a:hover {
  color: var(--text);
}

body.theme-dark .thumb,
body.theme-dark .cover,
body.theme-dark .mini-thumb,
body.theme-dark .author-badge,
body.theme-dark .mini-list span {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

/*--- color correction ---*/
/* ===== Brand text fix (dark mode) ===== */
body.theme-dark .brand-text,
body.theme-dark .brand-text small {
  color: rgba(255, 255, 255, 0.75); /* light gray */
}

/* optional: slightly stronger for main line */
body.theme-dark .brand-text strong,
body.theme-dark .brand-text b {
  color: rgba(255, 255, 255, 0.9);
}
/*--------------------------*/

.btn,
.search-box,
.nav-dropdown,
.nav-dropdown .dropdown-item,
.card-surface,
.mini-thumb,
.cover,
.offcanvas,
.accordion-button,
.tag-cloud a,
.breaking-badge,
.mini-thumb span {
  border-radius: 10px !important;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 992px) {
  .nav-root-item > .nav-dropdown {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }

  .nav-root-item.is-hover > .nav-dropdown,
  .nav-root-item.show > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}


.ad-stack {
  display: grid;
  gap: 14px;
}
/************************************/
.sidebar-card {
  padding: 10px;
}

.ad-banner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: 380px; /*300px;*/
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--surface-2) 0%, rgba(255,255,255,0.96) 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ad-banner-1 {
 /* aspect-ratio: 6 / 5; */
 width:380px;
 height: auto;
}

.ad-banner-2 {
 /* aspect-ratio: 1 / 1; */
 width: auto;
 /* height: 700px; */
}

.ad-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  border-color: rgba(17, 24, 39, 0.14);
}

.ad-banner strong {
  font-size: 1.02rem;
  line-height: 1.35;
}

.ad-banner small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.ad-label {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ad-banner-1 {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.06) 0%, rgba(99, 102, 241, 0.08) 100%);
}

.ad-banner-2 {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.03) 0%, rgba(56, 189, 248, 0.08) 100%);
}

@media (max-width: 991.98px) {
  .ad-banner {
    max-width: 100%;
  }
}

body.theme-dark .ad-banner {
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .ad-banner:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  border-color: rgba(255,255,255,0.14);
}

/* Responsive refinements */
html, body {
  overflow-x: clip;
}

.section-head > p,
.newsletter-box > p {
  max-width: 42rem;
}

.feed-item h3 {
  font-size: clamp(1.2rem, 1.1rem + 0.7vw, 1.7rem);
  line-height: 1.08;
}

.feed-item p {
  font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.06rem);
}

@media (max-width: 1399.98px) {
  .section-head {
    gap: 20px;
  }

  .hero-grid {
    gap: 16px;
  }
}

@media (max-width: 1199.98px) {
  .site-header .container,
  .topline .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-text strong {
    letter-spacing: 0.12em;
  }

  .thumb {
    height: 210px;
  }

  .hero-feature .thumb {
    height: 320px;
  }

  .sidebar-card {
    padding: 22px;
  }
}

@media (max-width: 991.98px) {
  .topline .container {
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }

  .topline .container > div:last-child {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-header .container > .d-flex {
    flex-wrap: wrap;
    row-gap: 14px;
  }

  .site-header .container > .d-flex > .d-flex:last-child {
    margin-left: auto;
  }

  .brand {
    min-width: 0;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .brand-text small {
    font-size: 0.65rem;
  }

  .section-head {
    align-items: start;
  }

  .section-head h1,
  .section-head h2 {
    max-width: 14ch;
  }

  .sidebar-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .sidebar-card {
    height: 100%;
  }

  #advertising,
  #analytics,
  #opinions {
    align-self: stretch;
  }

  .ad-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .ad-banner {
    max-width: none;
    min-height: 100%;
  }

  .newsletter-box {
    padding: 24px;
  }

  .newsletter-form {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .topline {
    font-size: 0.84rem;
  }

  .topline .container {
    gap: 0.5rem !important;
  }

  .topline .container > div:first-child {
    gap: 0.75rem !important;
    flex-wrap: wrap;
  }

  .topline .container > div:last-child {
    gap: 0.85rem !important;
  }

  .site-header .container {
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
  }

  .site-header .container > .d-flex > .d-flex:last-child {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .site-header .btn {
    min-height: 44px;
  }

  .theme-toggle span {
    display: none !important;
  }

  .section-head {
    gap: 14px;
    margin-bottom: 1.5rem !important;
  }

  .section-head h1,
  .section-head h2 {
    max-width: none;
  }

  .hero-grid {
    gap: 14px;
  }

  .card-body-custom,
  .sidebar-card,
  .newsletter-box {
    padding: 18px;
  }

  .mini-media-card,
  .edition-card {
    padding: 14px;
  }

  .mini-thumb {
    height: 128px;
  }

  .cover {
    height: 172px;
  }

  .sidebar-stack,
  .ad-stack {
    grid-template-columns: 1fr;
  }

  .ad-banner {
    width: 100%;
    margin-inline: auto;
  }

  .ad-banner-1,
  .ad-banner-2 {
    aspect-ratio: auto;
    min-height: 180px;
  }

  .mini-list li,
  .opinion-item {
    grid-template-columns: 46px 1fr;
    gap: 12px;
  }

  .mini-list span,
  .author-badge {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .feed-meta,
  .meta-row {
    gap: 8px 10px;
  }

  .feed-item h3 {
    line-height: 1.14;
  }

  .newsletter-form .btn,
  .newsletter-form input {
    width: 100%;
  }

  .site-footer .row {
    row-gap: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .topline .container > div:last-child a:nth-child(n + 2) {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-text strong {
    font-size: 0.88rem;
    letter-spacing: 0.1em;
  }

  .offcanvas {
    width: min(100vw, 360px) !important;
  }

  .thumb {
    height: 176px;
  }

  .hero-feature .thumb {
    height: 210px;
  }

  .mini-thumb {
    height: 118px;
  }

  .cover {
    height: 158px;
  }

  .ad-banner-1,
  .ad-banner-2 {
    min-height: 160px;
  }
}


.site-footer {
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(244,245,247,0.96) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr) minmax(220px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-brand-logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #0b0e13;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.footer-brand-logo {
  width: 52px;
  height: auto;
}

.footer-brand-text {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.1;
}

.footer-brand-text strong {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.footer-brand-text small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.footer-title {
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-note {
  max-width: 34ch;
  margin-bottom: 16px;
}

.footer-contact-list,
.footer-nav-list {
  display: grid;
  gap: 12px;
}

.footer-contact-list a,
.footer-nav-list a,
.footer-links-grid a,
.footer-socials a {
  color: var(--text);
}

.footer-contact-list a {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}

.footer-contact-list i {
  color: var(--muted);
  margin-top: 2px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.footer-links-grid a,
.footer-nav-list a {
  color: var(--muted);
}

.footer-links-grid a:hover,
.footer-nav-list a:hover,
.footer-contact-list a:hover {
  color: var(--text);
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-socials a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.footer-bottom-row {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-bottom-row p {
  margin: 0;
  font-size: 0.9rem;
}


body.theme-dark .brand-logo-wrap,
body.theme-dark .footer-brand-logo-wrap {
  background: #05070a;
  border-color: rgba(255,255,255,0.08);
}

body.theme-dark .footer-socials a {
  background: rgba(255,255,255,0.02);
}

@media (max-width: 991.98px) {
  .brand-logo-wrap {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .brand-logo {
    width: 36px;
  }

  .brand-text small {
    letter-spacing: 0.08em;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .brand-text small {
    display: none;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
  }
}


/* March 18 fix: restore working layout and polish */

body.theme-dark .site-footer {
  background: #000 !important;
}

body.theme-dark .footer-bottom-row {
  border-top-color: rgba(255,255,255,0.08);
}

.nav-dropdown {
  border-radius: 10px !important;
  overflow: hidden;
}

.nav-dropdown .dropdown-item {
  border-radius: 10px !important;
}

@media (min-width: 992px) {
  .nav-root-item > .nav-dropdown {
    transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.meta-category,
.meta-date {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.meta-category {
  background: var(--surface-2);
  color: var(--text);
}

.meta-date {
  color: var(--muted);
  border: 1px solid var(--line);
  background: transparent;
}

body.theme-dark .meta-category {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

body.theme-dark .meta-date {
  color: rgba(255,255,255,0.78);
  border-color: rgba(255,255,255,0.12);
}


.theme-dark .main-nav {
  background: rgba(0,0,0,0.96);
  border-top-color: rgba(255,255,255,0.12);
  border-bottom-color: rgba(255,255,255,0.12);
}

.theme-dark .main-nav .nav-link {
  color: rgba(255,255,255,0.92);
}

.theme-dark .main-nav .nav-link:hover,
.theme-dark .main-nav .nav-link:focus-visible,
.theme-dark .main-nav .nav-link.active,
.theme-dark .nav-root-item.is-hover > .nav-root-link {
  color: #fff;
}

.theme-dark .nav-dropdown {
  background: rgba(9,9,10,0.98);
  border-color: rgba(255,255,255,0.12);
}

.theme-dark .nav-dropdown .dropdown-item {
  color: rgba(255,255,255,0.92);
}

.theme-dark .nav-dropdown .dropdown-item:hover,
.theme-dark .nav-dropdown .dropdown-item:focus,
.theme-dark .nav-dropdown .dropdown-item.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}


/* === UPDATED DROPDOWN NYT STYLE === */

.navbar .dropdown-item {
  position: relative;
  padding: 6px 12px;
  background: transparent !important;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: transparent !important;
  color: inherit;
}

.navbar .dropdown-item::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.2s ease;
}

.navbar .dropdown-item:hover::after {
  width: calc(100% - 24px);
}

[data-theme="dark"] .navbar .dropdown-item {
  color: rgba(255,255,255,0.9);
}

[data-theme="dark"] .navbar .dropdown-item::after {
  background: rgba(255,255,255,0.8);
}

.navbar .dropdown-item {
  transition: color 0.2s ease;
}


/* ===== Restored section-head actions without breaking layout ===== */
.section-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.section-side p {
  margin: 0;
}

.section-action-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding-bottom: 2px;
}

.section-action-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: .85;
  transform: scaleX(.45);
  transform-origin: left;
  transition: transform .18s ease, opacity .18s ease;
}

.section-action-link:hover::after,
.section-action-link:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

/* ===== Keep sidebar sticky after ad block insertion ===== */
.news-feed aside {
  align-self: flex-start;
}

@media (min-width: 992px) {
  .news-feed .sidebar-stack {
    position: sticky;
    top: 110px;
  }
}

/* ===== Dropdown hover as underline in both light and dark themes ===== */
.nav-dropdown .dropdown-item {
  position: relative;
  background: transparent !important;
  color: var(--text);
  transform: none !important;
  transition: color .18s ease;
}

.nav-dropdown .dropdown-item::after {
  content: "";
  position: absolute;
  left: 0.82rem;
  right: 0.82rem;
  bottom: 0.52rem;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: opacity .18s ease, transform .18s ease;
}

.nav-dropdown .dropdown-item:hover,
.nav-dropdown .dropdown-item:focus,
.nav-dropdown .dropdown-item.active {
  background: transparent !important;
  color: var(--text);
  transform: none !important;
}

.nav-dropdown .dropdown-item:hover::after,
.nav-dropdown .dropdown-item:focus::after,
.nav-dropdown .dropdown-item.active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ===== Dark theme: same menu behavior as light theme ===== */
body.theme-dark .main-nav .nav-link,
body.theme-dark .nav-dropdown .dropdown-item,
body.theme-dark .mobile-links .accordion-button,
body.theme-dark .mobile-submenu a,
body.theme-dark .mobile-direct-link a {
  color: var(--text) !important;
}

body.theme-dark .main-nav .nav-link,
body.theme-dark .main-nav .nav-link.active,
body.theme-dark .main-nav .nav-link:hover,
body.theme-dark .main-nav .nav-link:focus-visible {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.theme-dark .main-nav .nav-link::after,
body.theme-dark .nav-dropdown .dropdown-item::after {
  background: currentColor !important;
}

body.theme-dark .nav-dropdown .dropdown-item:hover,
body.theme-dark .nav-dropdown .dropdown-item:focus,
body.theme-dark .nav-dropdown .dropdown-item.active {
  background: transparent !important;
  color: var(--text) !important;
}

body.theme-dark .section-action-link {
  color: var(--text);
}

@media (max-width: 991.98px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}



/* ===== Dark theme dropdown text color fix ===== */
body.theme-dark .nav-dropdown .dropdown-item,
body.theme-dark .nav-dropdown .dropdown-item:hover,
body.theme-dark .nav-dropdown .dropdown-item:focus,
body.theme-dark .nav-dropdown .dropdown-item:active,
body.theme-dark .nav-dropdown .dropdown-item.active,
body.theme-dark .nav-dropdown .dropdown-item:focus-visible {
  color: rgba(255,255,255,0.92) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.92) !important;
  background: transparent !important;
}

body.theme-dark .nav-root-link,
body.theme-dark .nav-root-link:hover,
body.theme-dark .nav-root-link:focus,
body.theme-dark .nav-root-link:active,
body.theme-dark .nav-root-link.active,
body.theme-dark .main-nav .nav-link,
body.theme-dark .main-nav .nav-link:hover,
body.theme-dark .main-nav .nav-link:focus,
body.theme-dark .main-nav .nav-link:active,
body.theme-dark .main-nav .nav-link.active {
  color: rgba(255,255,255,0.96) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.96) !important;
  background: transparent !important;
}

body.theme-dark .nav-dropdown .dropdown-item span,
body.theme-dark .nav-root-link span,
body.theme-dark .main-nav .nav-link span {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

body.theme-dark .nav-dropdown .dropdown-item:hover::after,
body.theme-dark .nav-dropdown .dropdown-item:focus::after,
body.theme-dark .nav-dropdown .dropdown-item.active::after,
body.theme-dark .main-nav .nav-link:hover::after,
body.theme-dark .main-nav .nav-link:focus::after,
body.theme-dark .main-nav .nav-link.active::after {
  background: rgba(255,255,255,0.9) !important;
}

/* Prevent any bootstrap variable-based blue hover from leaking into dark theme menus */
body.theme-dark .dropdown-item,
body.theme-dark .dropdown-item:hover,
body.theme-dark .dropdown-item:focus {
  --bs-dropdown-link-hover-color: rgba(255,255,255,0.92);
  --bs-dropdown-link-active-color: rgba(255,255,255,0.92);
  --bs-dropdown-link-hover-bg: transparent;
  --bs-dropdown-link-active-bg: transparent;
}


/* ===== Preloader ===== */
body.is-loading {
  overflow: hidden;
}

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f4f5f7 100%);
  transition: opacity .4s ease, visibility .4s ease;
}

.site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-preloader-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.site-preloader-logo-wrap {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: #0b0e13;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.site-preloader-logo {
  width: 58px;
  height: auto;
}

.site-preloader-line {
  width: min(220px, 58vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.site-preloader-line span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(17,24,39,.12) 0%, rgba(17,24,39,.75) 55%, rgba(17,24,39,.12) 100%);
  animation: preloaderSlide 1.05s ease-in-out infinite;
}

.site-preloader-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: .01em;
}

@keyframes preloaderSlide {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(330%); }
}

body.theme-dark .site-preloader {
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 34%),
    linear-gradient(180deg, #05070b 0%, #0a1221 100%);
}

body.theme-dark .site-preloader-line {
  background: rgba(255,255,255,0.12);
}

body.theme-dark .site-preloader-line span {
  background: linear-gradient(90deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.88) 55%, rgba(255,255,255,.10) 100%);
}

body.theme-dark .site-preloader-text {
  color: rgba(255,255,255,0.72);
}



/* ===== Final polishing: spacing, type rhythm, editorial density ===== */
:root {
  --polish-radius-sm: 8px;
  --polish-radius-md: 12px;
  --polish-radius-lg: 18px;
  --polish-space-1: 0.375rem;
  --polish-space-2: 0.625rem;
  --polish-space-3: 0.875rem;
  --polish-space-4: 1.125rem;
  --polish-space-5: 1.5rem;
  --polish-space-6: 2rem;
  --polish-space-7: 2.75rem;
  --polish-space-8: 3.5rem;
}

.newsroom-polish {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.newsroom-polish .section,
.newsroom-polish section {
  scroll-margin-top: 96px;
}

.newsroom-polish .section-head,
.newsroom-polish .section-title {
  margin-bottom: 1.4rem !important;
  row-gap: 0.9rem;
}

.newsroom-polish .section-head h2,
.newsroom-polish .section-title h2 {
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.newsroom-polish .eyebrow,
.newsroom-polish .section-head .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
}

.newsroom-polish p {
  line-height: 1.72;
}

.newsroom-polish .lead,
.newsroom-polish .section-head p,
.newsroom-polish .section-title p,
.newsroom-polish .section-side p {
  font-size: 0.99rem;
  line-height: 1.68;
  opacity: 0.9;
  max-width: 64ch;
}

.newsroom-polish .main-nav {
  backdrop-filter: saturate(130%) blur(8px);
  -webkit-backdrop-filter: saturate(130%) blur(8px);
}

.newsroom-polish .main-nav .nav-link,
.newsroom-polish .nav-root-link {
  letter-spacing: -0.01em;
  font-weight: 700;
}

.newsroom-polish .nav-dropdown,
.newsroom-polish .dropdown-menu {
  border-radius: 12px !important;
}

.newsroom-polish .nav-dropdown .dropdown-item {
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
  line-height: 1.35;
}

.newsroom-polish .hero-card,
.newsroom-polish .blog-item,
.newsroom-polish .featured-post,
.newsroom-polish .blog-post-item,
.newsroom-polish .video-card,
.newsroom-polish .magazine-card,
.newsroom-polish .sidebar-card,
.newsroom-polish .news-item,
.newsroom-polish .list-post {
  border-radius: var(--polish-radius-md);
}

.newsroom-polish .hero-card,
.newsroom-polish .blog-item,
.newsroom-polish .featured-post,
.newsroom-polish .blog-post-item {
  overflow: hidden;
}

.newsroom-polish .hero-card .post-title,
.newsroom-polish .blog-item .post-title,
.newsroom-polish .featured-post .title,
.newsroom-polish .blog-post-item h2,
.newsroom-polish .news-item .news-title,
.newsroom-polish .list-post .title {
  letter-spacing: -0.02em;
}

.newsroom-polish .post-meta,
.newsroom-polish .news-meta,
.newsroom-polish .category-meta,
.newsroom-polish .author-meta {
  font-size: 0.8rem;
  line-height: 1.45;
  gap: 0.5rem;
}

.newsroom-polish .news-item,
.newsroom-polish .list-post {
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.newsroom-polish .news-item + .news-item,
.newsroom-polish .list-post + .list-post {
  margin-top: 0.2rem;
}

.newsroom-polish .news-title,
.newsroom-polish .list-post .title,
.newsroom-polish .blog-post-item h2 {
  margin-bottom: 0.45rem;
}

.newsroom-polish .news-excerpt,
.newsroom-polish .blog-post-item p,
.newsroom-polish .list-post .post-content p {
  font-size: 0.96rem;
  line-height: 1.65;
}

.newsroom-polish .section-action-link,
.newsroom-polish .read-more {
  letter-spacing: -0.01em;
}

.newsroom-polish .sidebar-stack {
  gap: 1rem;
}

.newsroom-polish .sidebar-card,
.newsroom-polish .topic-card,
.newsroom-polish .ad-card {
  border-radius: var(--polish-radius-md);
}

.newsroom-polish .ad-card img,
.newsroom-polish .magazine-card img,
.newsroom-polish .video-card img,
.newsroom-polish .blog-item img,
.newsroom-polish .featured-post img,
.newsroom-polish .blog-post-item img {
  border-radius: inherit;
}

.newsroom-polish .btn,
.newsroom-polish button,
.newsroom-polish input,
.newsroom-polish .form-control {
  border-radius: 10px;
}

.newsroom-polish .footer {
  margin-top: var(--polish-space-8);
}

.newsroom-polish .footer-title {
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.newsroom-polish .footer-links a,
.newsroom-polish .footer-text,
.newsroom-polish .footer p {
  line-height: 1.65;
}

.newsroom-polish .site-preloader-text {
  letter-spacing: 0.01em;
}

@media (min-width: 1200px) {
  .newsroom-polish .section,
  .newsroom-polish section {
    padding-top: 0.75rem; /*3.75rem;*/
    padding-bottom: 0.75rem;/*3.75rem;*/
  }

  .newsroom-polish .hero-title,
  .newsroom-polish .display-title {
    font-size: clamp(2.25rem, 2vw + 1.3rem, 3.5rem);
    line-height: 1.03;
    letter-spacing: -0.035em;
  }

  .newsroom-polish .news-title,
  .newsroom-polish .list-post .title,
  .newsroom-polish .featured-post .title {
    font-size: 1.18rem;
  }

  .newsroom-polish .sidebar-stack {
    gap: 1.15rem;
  }
}

@media (max-width: 991.98px) {
  .newsroom-polish .section,
  .newsroom-polish section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .newsroom-polish .section-head,
  .newsroom-polish .section-title {
    margin-bottom: 1.15rem !important;
  }

  .newsroom-polish .lead,
  .newsroom-polish .section-head p,
  .newsroom-polish .section-title p,
  .newsroom-polish .section-side p {
    font-size: 0.96rem;
  }
}

@media (max-width: 767.98px) {
  .newsroom-polish .section,
  .newsroom-polish section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .newsroom-polish .section-head h2,
  .newsroom-polish .section-title h2 {
    font-size: 1.55rem;
  }

  .newsroom-polish .news-title,
  .newsroom-polish .list-post .title,
  .newsroom-polish .featured-post .title,
  .newsroom-polish .blog-post-item h2 {
    font-size: 1.04rem;
    line-height: 1.24;
  }

  .newsroom-polish .post-meta,
  .newsroom-polish .news-meta,
  .newsroom-polish .category-meta,
  .newsroom-polish .author-meta {
    font-size: 0.76rem;
  }

  .newsroom-polish .section-action-link {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .newsroom-polish *,
  .newsroom-polish *::before,
  .newsroom-polish *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}



/* ===== Mobile-only polish ===== */
@media (max-width: 991.98px) {
  .newsroom-polish .topbar,
  .newsroom-polish .top-strip,
  .newsroom-polish .utility-bar {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .newsroom-polish .site-header,
  .newsroom-polish .header,
  .newsroom-polish .main-nav {
    border-radius: 0;
  }

  .newsroom-polish .container,
  .newsroom-polish .container-fluid {
    --bs-gutter-x: 1.15rem;
  }

  .newsroom-polish .hero-grid,
  .newsroom-polish .blog-grid,
  .newsroom-polish .news-feed,
  .newsroom-polish .featured-grid,
  .newsroom-polish .magazine-grid,
  .newsroom-polish .video-grid {
    gap: 1rem;
  }

  .newsroom-polish .sidebar-stack {
    gap: 0.9rem;
  }

  .newsroom-polish .hero-card,
  .newsroom-polish .blog-item,
  .newsroom-polish .featured-post,
  .newsroom-polish .blog-post-item,
  .newsroom-polish .video-card,
  .newsroom-polish .magazine-card,
  .newsroom-polish .sidebar-card,
  .newsroom-polish .news-item,
  .newsroom-polish .list-post,
  .newsroom-polish .topic-card,
  .newsroom-polish .ad-card {
    border-radius: 12px;
  }

  .newsroom-polish .section-head,
  .newsroom-polish .section-title {
    gap: 0.75rem;
  }

  .newsroom-polish .section-side {
    gap: 0.55rem;
  }
}

@media (max-width: 767.98px) {
  .newsroom-polish .container,
  .newsroom-polish .container-fluid {
    --bs-gutter-x: 0.95rem;
  }

  .newsroom-polish .site-preloader-logo-wrap {
    width: 76px;
    height: 76px;
    border-radius: 20px;
  }

  .newsroom-polish .site-preloader-logo {
    width: 50px;
  }

  .newsroom-polish .mobile-nav-toggle,
  .newsroom-polish .navbar-toggler,
  .newsroom-polish .menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .newsroom-polish .main-nav,
  .newsroom-polish .nav-wrap {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .newsroom-polish .logo img,
  .newsroom-polish .navbar-brand img {
    max-height: 30px;
    width: auto;
  }

  .newsroom-polish .hero-grid,
  .newsroom-polish .blog-grid,
  .newsroom-polish .news-feed,
  .newsroom-polish .featured-grid,
  .newsroom-polish .magazine-grid,
  .newsroom-polish .video-grid {
    gap: 0.85rem;
  }

  .newsroom-polish .hero-card .post-title,
  .newsroom-polish .blog-item .post-title,
  .newsroom-polish .featured-post .title,
  .newsroom-polish .blog-post-item h2,
  .newsroom-polish .news-title,
  .newsroom-polish .list-post .title {
    font-size: 1rem;
    line-height: 1.24;
    margin-bottom: 0.35rem;
  }

  .newsroom-polish .hero-card .post-meta,
  .newsroom-polish .blog-item .post-meta,
  .newsroom-polish .post-meta,
  .newsroom-polish .news-meta,
  .newsroom-polish .category-meta,
  .newsroom-polish .author-meta {
    font-size: 0.74rem;
    gap: 0.38rem;
  }

  .newsroom-polish .news-excerpt,
  .newsroom-polish .blog-post-item p,
  .newsroom-polish .list-post .post-content p,
  .newsroom-polish .section-head p,
  .newsroom-polish .section-title p,
  .newsroom-polish .section-side p {
    font-size: 0.93rem;
    line-height: 1.58;
  }

  .newsroom-polish .section-head h2,
  .newsroom-polish .section-title h2 {
    font-size: 1.42rem;
    line-height: 1.08;
  }

  .newsroom-polish .eyebrow,
  .newsroom-polish .section-head .eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .newsroom-polish .news-item {
    padding-top: 0.05rem;
    padding-bottom: 0.05rem;
  }

  .newsroom-polish .news-item + .news-item,
  .newsroom-polish .list-post + .list-post {
    margin-top: 0.12rem;
  }

  .newsroom-polish .section-action-link,
  .newsroom-polish .read-more {
    font-size: 0.92rem;
  }

  .newsroom-polish .video-card,
  .newsroom-polish .magazine-card,
  .newsroom-polish .sidebar-card,
  .newsroom-polish .topic-card,
  .newsroom-polish .ad-card {
    padding: 0.9rem;
  }

  .newsroom-polish .ad-card img,
  .newsroom-polish .video-card img,
  .newsroom-polish .magazine-card img {
    border-radius: 10px;
  }

  .newsroom-polish .footer {
    margin-top: 2.5rem;
  }

  .newsroom-polish .footer .row {
    row-gap: 1.3rem;
  }

  .newsroom-polish .footer-title {
    margin-bottom: 0.55rem;
    font-size: 0.98rem;
  }

  .newsroom-polish .footer-links a,
  .newsroom-polish .footer-text,
  .newsroom-polish .footer p {
    font-size: 0.92rem;
    line-height: 1.55;
  }
}

@media (max-width: 575.98px) {
  .newsroom-polish .container,
  .newsroom-polish .container-fluid {
    --bs-gutter-x: 0.8rem;
  }

  .newsroom-polish .section,
  .newsroom-polish section {
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
  }

  .newsroom-polish .hero-card,
  .newsroom-polish .blog-item,
  .newsroom-polish .featured-post,
  .newsroom-polish .blog-post-item,
  .newsroom-polish .video-card,
  .newsroom-polish .magazine-card,
  .newsroom-polish .sidebar-card,
  .newsroom-polish .news-item,
  .newsroom-polish .list-post,
  .newsroom-polish .topic-card,
  .newsroom-polish .ad-card {
    border-radius: 10px;
  }

  .newsroom-polish .hero-card .post-title,
  .newsroom-polish .blog-item .post-title,
  .newsroom-polish .featured-post .title,
  .newsroom-polish .blog-post-item h2,
  .newsroom-polish .news-title,
  .newsroom-polish .list-post .title {
    font-size: 0.97rem;
  }

  .newsroom-polish .section-head h2,
  .newsroom-polish .section-title h2 {
    font-size: 1.28rem;
  }

  .newsroom-polish .section-action-link,
  .newsroom-polish .read-more {
    font-size: 0.9rem;
  }

  .newsroom-polish .site-preloader-text {
    font-size: 0.9rem;
  }
}



/* ===== Internal article page ===== */
.article-breadcrumb .breadcrumb {
  --bs-breadcrumb-divider-color: var(--muted);
  --bs-breadcrumb-item-active-color: var(--muted);
  font-size: .92rem;
}

.article-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.article-breadcrumb a:hover {
  color: var(--text);
}

.article-kicker {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-title {
  max-width: 100%; /*14ch;*/
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0;
}

.article-lead {
  max-width: 60ch;
  font-size: 1.07rem;
  line-height: 1.72;
  color: var(--muted);
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}

.article-author {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.article-author strong,
.article-author span {
  display: block;
}

.article-author span {
  color: var(--muted);
  font-size: .92rem;
}

.article-share {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.article-share a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.article-share a:hover {
  transform: translateY(-1px);
}

.article-hero-card {
  padding: 1.25rem;
  height: 100%;
}

.article-hero-card-label {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .75rem;
}

.article-content {
  min-width: 0;
}

.article-cover {
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.article-cover figcaption {
  padding: .85rem 1rem 1rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
}

.article-body {
  font-size: 1.06rem;
  line-height: 1.85;
}

.article-body > * + * {
  margin-top: 1.1rem;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.14;
  letter-spacing: -.02em;
  margin-top: 2.1rem;
  margin-bottom: .75rem;
}

.article-body p {
  margin: 0;
}

.article-dropcap:first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 4.25rem;
  line-height: .86;
  padding-right: .5rem;
  margin-top: .2rem;
}

.article-quote {
  margin: 2rem 0;
  padding: 1.4rem 1.5rem;
  border-left: 3px solid currentColor;
  background: var(--surface-2);
  border-radius: 0 12px 12px 0;
}

.article-quote p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.5;
}

.article-note {
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
}

.article-note p {
  color: var(--muted);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.article-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  font-size: .92rem;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem 1.1rem;
}

.article-nav-link {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  text-decoration: none;
  color: var(--text);
}

.article-nav-link small {
  color: var(--muted);
  font-size: .85rem;
}

.article-nav-link strong {
  line-height: 1.45;
}

.related-card {
  height: 100%;
  padding: 1rem;
}

.related-card h3 {
  font-size: 1.08rem;
  line-height: 1.34;
  margin: .45rem 0;
}

.related-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.related-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 991.98px) {
  .article-title {
    max-width: none;
  }

  .article-layout .sidebar-stack {
    position: static !important;
  }
}

@media (max-width: 767.98px) {
  .article-title {
    font-size: 1.85rem;
  }

  .article-lead {
    font-size: .98rem;
  }

  .article-body {
    font-size: 1rem;
    line-height: 1.75;
  }

  .article-body h2 {
    margin-top: 1.6rem;
  }

  .article-dropcap:first-letter {
    font-size: 3.3rem;
    padding-right: .35rem;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-share a {
    width: 36px;
    height: 36px;
  }
}



/* ===== Blog integration ===== */
.feed-stack {
  display: grid;
  gap: 1rem;
}

.news-feed-item {
  padding: 1.1rem 1.15rem;
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .75rem;
  align-items: center;
  margin-bottom: .55rem;
  font-size: .82rem;
  color: var(--muted);
}

.feed-meta a {
  color: inherit;
  text-decoration: none;
}

.feed-title {
  font-size: 1.2rem;
  line-height: 1.28;
  letter-spacing: -.02em;
  margin: 0 0 .55rem;
}

.feed-title a {
  color: var(--text);
  text-decoration: none;
}

.feed-excerpt {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.feed-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .95rem;
}

.feed-has-cover {
  color: var(--muted);
  font-size: .82rem;
}

.sidebar-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .25rem;
}

.sidebar-category-list li a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--text);
  text-decoration: none;
}

.sidebar-category-list li.is-active a {
  font-weight: 700;
}

.sidebar-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.links-only li span,
.links-only li strong {
  display: none;
}

.links-only li p {
  margin: 0;
}

.links-only li a {
  color: var(--text);
  text-decoration: none;
}

.pagination-wrap {
  margin-top: 1.25rem;
}

.pagination {
  gap: .35rem;
  flex-wrap: wrap;
}

.pagination .page-link {
  border-radius: 10px;
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
  min-width: 2.5rem;
  text-align: center;
}

.pagination .page-item.active .page-link,
.pagination .page-link:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.article-body a {
  color: inherit;
}

.article-body > ul,
.article-body > ol {
  padding-left: 1.2rem;
  line-height: 1.8;
}

body.theme-dark .pagination .page-link {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
}

body.theme-dark .pagination .page-item.active .page-link,
body.theme-dark .pagination .page-link:hover {
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.92);
  color: #000;
}

@media (max-width: 767.98px) {
  .news-feed-item {
    padding: .95rem 1rem;
  }

  .feed-title {
    font-size: 1.06rem;
  }

  .feed-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}



/* ===== Dynamic homepage blocks ===== */
.hero-grid-live .hero-fallback-media,
.video-fallback-media,
.magazine-fallback-media {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(15,23,42,.06), rgba(15,23,42,.12));
  color: var(--muted);
}

.hero-grid-live .hero-fallback-media {
  min-height: 220px;
  font-size: 1rem;
  font-weight: 700;
}

.video-thumb,
.magazine-cover {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
}

.video-thumb img,
.magazine-cover img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.video-fallback-media {
  min-height: 180px;
  font-size: 2rem;
}

.magazine-fallback-media {
  min-height: 240px;
  font-size: 1.1rem;
  font-weight: 700;
}

.video-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.72);
  color: #fff;
}

.video-card-body,
.magazine-card-body {
  padding-top: .9rem;
}

.video-card h3,
.magazine-card h3 {
  font-size: 1.04rem;
  line-height: 1.35;
  margin: 0;
}

.video-card h3 a,
.magazine-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.video-card p {
  margin: .45rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

body.theme-dark .hero-grid-live .hero-fallback-media,
body.theme-dark .video-fallback-media,
body.theme-dark .magazine-fallback-media {
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.08));
  color: rgba(255,255,255,.72);
}


/* ===== Static Pages / no-sidebar layout ===== */
.static-page-wrap {
  max-width: 100%;/* 760px; */
}

.static-page-wrap h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.static-page-wrap h2,
.static-page-wrap h3 {
  font-family: var(--font-serif);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.static-page-wrap p,
.static-page-wrap li {
  line-height: 1.8;
  font-size: 1.02rem;
}

.static-page-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.static-page-wrap blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-left: 3px solid currentColor;
  background: var(--surface-2);
  border-radius: 0 12px 12px 0;
}

@media (max-width: 767.98px) {
  .static-page-wrap {
    max-width: 100%;
  }

  .static-page-wrap p,
  .static-page-wrap li {
    font-size: 0.98rem;
    line-height: 1.72;
  }
}


/* ===== Compact pagination window ===== */
.pagination {
  align-items: center;
}

.pagination .page-link-arrow {
  font-weight: 700;
  min-width: 2.5rem;
}

.pagination .page-item.disabled .page-link {
  opacity: .45;
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .pagination {
    gap: .25rem;
  }

  .pagination .page-link {
    min-width: 2.2rem;
    padding: .45rem .6rem;
    font-size: .92rem;
  }
}


/* ===== Sidebar category cloud ===== */
.sidebar-tag-cloud,
.tag-cloud,
.sidebar-category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.sidebar-tag-cloud a,
.tag-cloud a,
.sidebar-category-cloud a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: .48rem .82rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  line-height: 1.2;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.sidebar-tag-cloud a:hover,
.tag-cloud a:hover,
.sidebar-category-cloud a:hover {
  transform: translateY(-1px);
  background: var(--surface-2);
  border-color: var(--text);
  color: var(--text);
}

.sidebar-tag-cloud a.is-active,
.tag-cloud a.is-active,
.sidebar-category-cloud a.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
  font-weight: 700;
}

body.theme-dark .sidebar-tag-cloud a,
body.theme-dark .tag-cloud a,
body.theme-dark .sidebar-category-cloud a {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
}

body.theme-dark .sidebar-tag-cloud a:hover,
body.theme-dark .tag-cloud a:hover,
body.theme-dark .sidebar-category-cloud a:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.28);
  color: rgba(255,255,255,.96);
}

body.theme-dark .sidebar-tag-cloud a.is-active,
body.theme-dark .tag-cloud a.is-active,
body.theme-dark .sidebar-category-cloud a.is-active {
  background: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.92);
  color: #000;
}

.sidebar-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
}


/* ===== Liked homepage layout match ===== */
.hero-section .section-head h1 {
  max-width: 100%;/*13ch;*/
}

.hero-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.55fr 1fr 1fr;
  grid-template-areas:
    "feature card2 card3"
    "feature card4 card5";
}

.hero-grid > :nth-child(1) { grid-area: feature; }
.hero-grid > :nth-child(2) { grid-area: card2; }
.hero-grid > :nth-child(3) { grid-area: card3; }
.hero-grid > :nth-child(4) { grid-area: card4; }
.hero-grid > :nth-child(5) { grid-area: card5; }

.hero-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.hero-card .hero-image,
.hero-card .thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, rgba(15,23,42,.06), rgba(15,23,42,.12));
}

.hero-feature .hero-image,
.hero-feature .thumb {
  aspect-ratio: 16 / 13;
}

.thumb-1, .thumb-2, .thumb-3, .thumb-4, .thumb-5,
.video-thumb-1, .video-thumb-2, .video-thumb-3, .video-thumb-4,
.cover-1, .cover-2, .cover-3, .cover-4 {
  background: linear-gradient(135deg, rgba(15,23,42,.05), rgba(15,23,42,.14));
}

.card-body-custom {
  padding: 1rem 1rem 1.1rem;
}

.meta-row,
.feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .8rem;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .55rem;
}

.meta-category, .meta-date,
.feed-meta span, .feed-meta a {
  color: inherit;
  text-decoration: none;
}

.hero-card h2,
.hero-card h3,
.feed-item h3,
.mini-media-card h3,
.edition-card h3 {
  margin: 0;
  line-height: 1.28;
  letter-spacing: -.02em;
}

.hero-card h2 a,
.hero-card h3 a,
.feed-item h3 a,
.mini-media-card h3 a,
.edition-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.hero-card p,
.feed-item p,
.mini-media-card p,
.edition-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: .6rem 0 0;
}

.more-link,
.section-action-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .9rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.feed-list {
  display: grid;
  gap: .2rem;
}

.feed-item {
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}

.feed-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.news-feed aside {
  align-self: start;
}

@media (min-width: 992px) {
  .news-feed .sidebar-stack {
    position: sticky;
    top: 110px;
  }
}

.mini-media-card,
.edition-card {
  height: 100%;
  padding: 1rem;
}

.mini-thumb,
.cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  margin-bottom: .9rem;
  overflow: hidden;
  display: grid;
  place-items: end start;
  position: relative;
}

.real-media-thumb img,
.real-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-thumb span {
  position: absolute;
  left: .8rem;
  bottom: .8rem;
  background: rgba(0,0,0,.72);
  color: #fff;
  border-radius: 999px;
  padding: .28rem .55rem;
  font-size: .8rem;
  display: inline-flex;
  align-items: center;
  gap: .22rem;
}

.newsletter-box {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.4rem;
}

.newsletter-form {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.newsletter-form input {
  flex: 1;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 1rem;
  background: var(--surface);
  color: var(--text);
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr .9fr;
  gap: 2rem;
}

.footer-title {
  margin-bottom: .9rem;
}

.footer-links-grid,
.footer-nav-list {
  display: grid;
  gap: .55rem;
}

.footer-links-grid a,
.footer-nav-list a,
.footer-contact-list a {
  color: var(--text);
  text-decoration: none;
}

.footer-contact-list {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}

.footer-contact-list a {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
}

.footer-socials {
  display: flex;
  gap: .55rem;
  margin-top: 1rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--surface-2);
  color: var(--text);
}

.brand, .footer-brand {
  display: inline-flex;
  gap: .85rem;
  align-items: center;
}

.brand-logo-wrap, .footer-brand-logo-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #0b0e13;
  overflow: hidden;
}

.brand-logo, .footer-brand-logo {
  max-width: 50px;
  height: auto;
}

.brand-text, .footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.brand-text small, .footer-brand-text small, .footer-note, .topline, .breaking-line {
  color: var(--muted);
}

.site-header.sticky-top {
  z-index: 1030;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.tag-cloud a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: .48rem .82rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  line-height: 1.2;
}

body.theme-dark .hero-card .hero-image,
body.theme-dark .hero-card .thumb,
body.theme-dark .thumb-1, body.theme-dark .thumb-2, body.theme-dark .thumb-3, body.theme-dark .thumb-4, body.theme-dark .thumb-5,
body.theme-dark .video-thumb-1, body.theme-dark .video-thumb-2, body.theme-dark .video-thumb-3, body.theme-dark .video-thumb-4,
body.theme-dark .cover-1, body.theme-dark .cover-2, body.theme-dark .cover-3, body.theme-dark .cover-4 {
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.09));
}

@media (max-width: 991.98px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "feature feature"
      "card2 card3"
      "card4 card5";
  }

  .newsletter-box,
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "feature"
      "card2"
      "card3"
      "card4"
      "card5";
  }

  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }
}


/* ===== RainLab.Pages static page render fix ===== */
.static-page-wrap > :first-child {
  margin-top: 0;
}

.static-page-wrap h1:first-child,
.static-page-wrap h2:first-child,
.static-page-wrap p:first-child {
  margin-top: 0;
}

.static-page-wrap a {
  color: inherit;
}

.static-page-wrap ul,
.static-page-wrap ol {
  padding-left: 1.2rem;
  line-height: 1.8;
}

.static-page-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.static-page-wrap table th,
.static-page-wrap table td {
  border: 1px solid var(--line);
  padding: .75rem;
  vertical-align: top;
}

body.theme-dark .static-page-wrap table th,
body.theme-dark .static-page-wrap table td {
  border-color: rgba(255,255,255,.12);
}


/*********/
/* ===== Footer links — synced with top menu ===== */

.site-footer .footer-links-grid a,
.site-footer .footer-nav-list a,
.site-footer .footer-contact-list a {
  position: relative;
  text-decoration: none;
  transition: color .18s ease, padding-left .18s ease;
}

/* arrow */
.site-footer .footer-links-grid a::before,
.site-footer .footer-nav-list a::before,
.site-footer .footer-contact-list a::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

/* underline */
.site-footer .footer-links-grid a::after,
.site-footer .footer-nav-list a::after,
.site-footer .footer-contact-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: opacity .18s ease, transform .18s ease;
}

/* hover */
.site-footer .footer-links-grid a:hover,
.site-footer .footer-nav-list a:hover,
.site-footer .footer-contact-list a:hover {
  padding-left: 14px;
  color: var(--accent);
}

.site-footer .footer-links-grid a:hover::before,
.site-footer .footer-nav-list a:hover::before,
.site-footer .footer-contact-list a:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.site-footer .footer-links-grid a:hover::after,
.site-footer .footer-nav-list a:hover::after,
.site-footer .footer-contact-list a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* dark theme */
body.theme-dark .site-footer .footer-links-grid a,
body.theme-dark .site-footer .footer-nav-list a,
body.theme-dark .site-footer .footer-contact-list a {
  color: rgba(255,255,255,0.7);
}

body.theme-dark .site-footer .footer-links-grid a:hover,
body.theme-dark .site-footer .footer-nav-list a:hover,
body.theme-dark .site-footer .footer-contact-list a:hover {
  color: #fff;
}

/***********/

/* ===== Combat refresh 2026: audience-oriented newsroom ===== */
:root {
  --bg: #f6f4ef;
  --surface: #fffdf9;
  --surface-2: #f3efe7;
  --text: #171411;
  --muted: #6f665e;
  --line: #e5ddd2;
  --accent: #5f3b23;
  --accent-soft: #efe6da;
  --accent-tea: #6f7d52;
  --accent-cacao: #8a5a3c;
  --accent-foam: #f4eadf;
  --radius: 20px;
  --shadow: 0 20px 48px rgba(58, 40, 26, 0.08);
}

body {
  background:
    radial-gradient(circle at top, rgba(138,90,60,0.05), transparent 28%),
    linear-gradient(180deg, #fffdfa 0%, var(--bg) 100%);
}

.topline {
  background: rgba(255,253,249,0.92);
}

.site-header {
  background: rgba(255,253,249,0.88);
}

.main-nav {
  background: rgba(255,253,249,0.94);
}

.brand-text strong,
.footer-brand-text strong {
  letter-spacing: 0.015em;
}

.brand-text small,
.footer-brand-text small {
  color: var(--muted);
}

.section-head h1,
.section-head h2,
.hero-feature h2,
.feed-item h3,
.article-title,
.article-body h2,
.footer-title {
  font-family: "Source Serif 4", serif;
}

.eyebrow {
  color: var(--accent-cacao);
  opacity: 0.9;
}

.breaking-badge,
.ad-label,
.btn-dark,
.newsletter-form .btn {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

.tag-cloud a:hover,
.footer-socials a:hover,
.article-tags a:hover,
.pagination .page-item.active .page-link,
.pagination .page-link:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

.card-surface,
.sidebar-card,
.mini-media-card,
.edition-card,
.newsletter-box,
.article-cover,
.article-note,
.article-nav,
.related-card,
.news-feed-item {
  border: 1px solid rgba(95, 59, 35, 0.08);
  box-shadow: var(--shadow);
}

.meta-category {
  background: var(--accent-soft);
  color: var(--accent);
}

.meta-date {
  border-color: rgba(95, 59, 35, 0.14);
}

.thumb::after,
.cover::after,
.mini-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(23,20,17,0.08));
  pointer-events: none;
}

.hero-card h2 a:hover,
.hero-card h3 a:hover,
.feed-item h3 a:hover,
.mini-media-card h3 a:hover,
.edition-card h3 a:hover,
.related-card h3 a:hover,
.feed-title a:hover {
  color: var(--accent);
}

.search-box,
.newsletter-form input {
  background: rgba(255,255,255,0.78);
  border-color: rgba(95,59,35,0.10);
}

.search-box:focus-within,
.newsletter-form input:focus {
  box-shadow: 0 0 0 4px rgba(95,59,35,0.08);
}

.sidebar-title-row h3,
.footer-title {
  font-size: 1.28rem;
}

.feed-item p,
.article-lead,
.article-body p,
.related-card p,
.mini-media-card p,
.edition-card p {
  max-width: 68ch;
}

.internal-page-content,
.static-page-wrap {
  color: var(--text);
}

.internal-page-content h1,
.internal-page-content h2,
.internal-page-content h3,
.static-page-wrap h1,
.static-page-wrap h2,
.static-page-wrap h3 {
  color: var(--text);
}

.internal-page-content p,
.internal-page-content li,
.static-page-wrap p,
.static-page-wrap li {
  color: var(--muted);
}

body.theme-dark {
  --bg: #11100f;
  --surface: #181513;
  --surface-2: #211c18;
  --text: #f3ede6;
  --muted: #bcae9d;
  --line: #352c24;
  --accent: #c28a5c;
  --accent-soft: #2b221c;
  --accent-tea: #96aa72;
  --accent-cacao: #c18a63;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.36);
  background:
    radial-gradient(circle at top, rgba(194,138,92,0.08), transparent 30%),
    linear-gradient(180deg, #0e0d0c 0%, #141210 100%);
}

body.theme-dark .topline,
body.theme-dark .site-header,
body.theme-dark .main-nav,
body.theme-dark .site-footer,
body.theme-dark .card-surface,
body.theme-dark .sidebar-card,
body.theme-dark .mini-media-card,
body.theme-dark .edition-card,
body.theme-dark .newsletter-box,
body.theme-dark footer {
  background-color: rgba(24,21,19,0.96) !important;
}

body.theme-dark .tag-cloud a,
body.theme-dark .article-tags a,
body.theme-dark .pagination .page-link,
body.theme-dark .search-box,
body.theme-dark .newsletter-form input {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.88);
}

body.theme-dark .brand-text,
body.theme-dark .brand-text small,
body.theme-dark .footer-brand-text,
body.theme-dark .footer-brand-text small {
  color: rgba(255,255,255,0.76) !important;
}

body.theme-dark .topline a,
body.theme-dark .footer-links-grid a,
body.theme-dark .footer-nav-list a,
body.theme-dark .footer-contact-list a,
body.theme-dark .feed-item h3 a,
body.theme-dark .hero-card h2 a,
body.theme-dark .hero-card h3 a {
  color: rgba(255,255,255,0.88);
}

body.theme-dark .footer-links-grid a:hover,
body.theme-dark .footer-nav-list a:hover,
body.theme-dark .footer-contact-list a:hover,
body.theme-dark .feed-item h3 a:hover,
body.theme-dark .hero-card h2 a:hover,
body.theme-dark .hero-card h3 a:hover {
  color: #fff;
}

body.theme-dark .meta-category {
  background: rgba(194,138,92,0.12);
  color: #ffd9b9;
}

body.theme-dark .breaking-badge,
body.theme-dark .ad-label,
body.theme-dark .btn-dark,
body.theme-dark .newsletter-form .btn {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #14110f !important;
}

body.theme-dark .tag-cloud a:hover,
body.theme-dark .footer-socials a:hover,
body.theme-dark .article-tags a:hover,
body.theme-dark .pagination .page-item.active .page-link,
body.theme-dark .pagination .page-link:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #14110f !important;
}

@media (max-width: 991.98px) {
  .section-head h1 {
    max-width: none;
  }

  .footer-grid {
    gap: 22px;
  }

  .sidebar-card,
  .newsletter-box,
  .card-body-custom {
    padding: 18px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --radius: 16px;
  }

  .brand-text strong,
  .footer-brand-text strong {
    font-size: 0.98rem;
  }

  .sidebar-title-row h3,
  .footer-title {
    font-size: 1.14rem;
  }

  .tag-cloud a,
  .article-tags a {
    min-height: 2rem;
    padding: .42rem .72rem;
    font-size: .86rem;
  }
}

/* ===== Premium Newsroom 2.0 ===== */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --text: #14171c;
  --muted: #6b7280;
  --line: #e4e7ec;
  --accent: #111827;
  --accent-soft: #eef2ff;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.07);
}

body {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  color: var(--text);
}

.topline,
.site-header,
.main-nav,
.site-footer {
  background: rgba(255,255,255,0.92);
}

.topline,
.main-nav,
.site-header,
.site-footer,
.border-top,
.border-bottom {
  border-color: var(--line) !important;
}

.card-surface,
.sidebar-card,
.mini-media-card,
.edition-card,
.newsletter-box,
.article-cover,
.article-note,
.article-nav,
.related-card,
.news-feed-item {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(228,231,236,0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--muted);
  font-weight: 700;
}

.section-head h1,
.section-head h2,
.hero-feature h2,
.feed-item h3,
.article-title,
.article-body h2,
.footer-title {
  letter-spacing: -0.028em;
}

.section-head h1 {
  font-size: clamp(2.15rem, 4vw, 3.7rem);
  line-height: 0.96;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  line-height: 1.02;
}

.hero-card h2 a,
.hero-card h3 a,
.feed-item h3 a,
.mini-media-card h3 a,
.edition-card h3 a,
.related-card h3 a,
.feed-title a,
.article-nav-link,
.article-breadcrumb a {
  transition: color .18s ease;
}

.hero-card h2 a:hover,
.hero-card h3 a:hover,
.feed-item h3 a:hover,
.mini-media-card h3 a:hover,
.edition-card h3 a:hover,
.related-card h3 a:hover,
.feed-title a:hover,
.article-nav-link:hover,
.article-breadcrumb a:hover {
  color: #000;
}

.btn-dark,
.newsletter-form .btn,
.breaking-badge,
.ad-label {
  background: #111827 !important;
  border-color: #111827 !important;
  color: #fff !important;
}

.btn-dark:hover,
.newsletter-form .btn:hover {
  background: #000 !important;
  border-color: #000 !important;
}

.search-box,
.newsletter-form input {
  background: rgba(255,255,255,0.8);
  border-color: var(--line);
}

.search-box:focus-within,
.newsletter-form input:focus {
  box-shadow: 0 0 0 4px rgba(17,24,39,0.06);
  outline: none;
}

.main-nav .nav-link,
.nav-root-link,
.site-footer .footer-links-grid a,
.site-footer .footer-nav-list a,
.site-footer .footer-contact-list a {
  transition: color .18s ease, padding-left .18s ease;
}

.tag-cloud a,
.article-tags a,
.pagination .page-link {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.tag-cloud a:hover,
.article-tags a:hover,
.pagination .page-item.active .page-link,
.pagination .page-link:hover {
  background: #111827 !important;
  border-color: #111827 !important;
  color: #fff !important;
}

.meta-category {
  background: var(--surface-2);
  color: var(--text);
}

.meta-date {
  color: var(--muted);
  border-color: var(--line);
}

.thumb::after,
.cover::after,
.mini-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(17,24,39,0.05));
  pointer-events: none;
}

.sidebar-title-row h3,
.footer-title {
  font-size: 1.22rem;
  font-weight: 600;
}

.footer-title {
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.footer-note,
.footer-bottom-row p,
.footer-brand-text small,
.feed-item p,
.article-lead,
.article-body p,
.related-card p,
.mini-media-card p,
.edition-card p,
.internal-page-content p,
.internal-page-content li,
.static-page-wrap p,
.static-page-wrap li {
  color: var(--muted);
}

.footer-brand-text strong,
.brand-text strong {
  color: var(--text);
}

.site-footer .footer-links-grid a,
.site-footer .footer-nav-list a,
.site-footer .footer-contact-list a {
  color: rgba(20,23,28,0.76);
  position: relative;
}

.site-footer .footer-links-grid a::before,
.site-footer .footer-nav-list a::before,
.site-footer .footer-contact-list a::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  color: currentColor;
}

.site-footer .footer-links-grid a::after,
.site-footer .footer-nav-list a::after,
.site-footer .footer-contact-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: opacity .18s ease, transform .18s ease;
}

.site-footer .footer-links-grid a:hover,
.site-footer .footer-nav-list a:hover,
.site-footer .footer-contact-list a:hover {
  color: #000;
  padding-left: 14px;
}

.site-footer .footer-links-grid a:hover::before,
.site-footer .footer-nav-list a:hover::before,
.site-footer .footer-contact-list a:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.site-footer .footer-links-grid a:hover::after,
.site-footer .footer-nav-list a:hover::after,
.site-footer .footer-contact-list a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.footer-socials a {
  background: rgba(255,255,255,0.7);
  border-color: var(--line);
  color: var(--text);
}

.footer-socials a:hover {
  background: #111827;
  border-color: #111827;
  color: #fff;
  transform: translateY(-1px);
}

.article-body {
  font-size: 1.06rem;
  line-height: 1.88;
}

.article-body h2 {
  margin-top: 2.15rem;
}

.article-quote {
  background: var(--surface-2);
  border-left-color: #111827;
}

.newsletter-box {
  border-radius: 24px;
}

.hero-grid {
  gap: 18px;
}

.feed-item {
  border-color: var(--line);
}

body.theme-dark {
  --bg: #0f141b;
  --surface: #141b24;
  --surface-2: #18212d;
  --text: #eef2f7;
  --muted: #a8b2c1;
  --line: #253041;
  --accent: #f3f5f7;
  --accent-soft: #1c2633;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  background: linear-gradient(180deg, #0c1117 0%, #111923 100%);
}

body.theme-dark .topline,
body.theme-dark .site-header,
body.theme-dark .breaking-line,
body.theme-dark .main-nav,
body.theme-dark .offcanvas,
body.theme-dark .dropdown-menu,
body.theme-dark .card-surface,
body.theme-dark .sidebar-card,
body.theme-dark .mini-media-card,
body.theme-dark .edition-card,
body.theme-dark .newsletter-box,
body.theme-dark .site-footer {
  background-color: rgba(20, 27, 36, 0.96) !important;
  color: var(--text);
}

body.theme-dark .brand-text,
body.theme-dark .brand-text small,
body.theme-dark .footer-brand-text,
body.theme-dark .footer-brand-text small {
  color: rgba(255,255,255,0.76) !important;
}

body.theme-dark .btn-dark,
body.theme-dark .newsletter-form .btn,
body.theme-dark .breaking-badge,
body.theme-dark .ad-label,
body.theme-dark .tag-cloud a:hover,
body.theme-dark .article-tags a:hover,
body.theme-dark .pagination .page-item.active .page-link,
body.theme-dark .pagination .page-link:hover,
body.theme-dark .footer-socials a:hover {
  background: rgba(243,245,247,0.96) !important;
  border-color: rgba(243,245,247,0.96) !important;
  color: #10151d !important;
}

body.theme-dark .tag-cloud a,
body.theme-dark .article-tags a,
body.theme-dark .pagination .page-link,
body.theme-dark .search-box,
body.theme-dark .newsletter-form input {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}

body.theme-dark .site-footer .footer-links-grid a,
body.theme-dark .site-footer .footer-nav-list a,
body.theme-dark .site-footer .footer-contact-list a {
  color: rgba(255,255,255,0.78);
}

body.theme-dark .site-footer .footer-links-grid a:hover,
body.theme-dark .site-footer .footer-nav-list a:hover,
body.theme-dark .site-footer .footer-contact-list a:hover {
  color: #fff;
}

@media (max-width: 991.98px) {
  .section-head {
    gap: 16px;
  }

  .newsletter-box {
    padding: 22px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --radius: 18px;
  }

  .section-head h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .section-head h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .footer-title {
    font-size: 1.08rem;
  }
}

/* ===== Premium 2.0 dark hover fix for media cards ===== */
body.theme-dark .mini-media-card h3 a,
body.theme-dark .edition-card h3 a,
body.theme-dark .mini-media-card h3 a:visited,
body.theme-dark .edition-card h3 a:visited {
  color: rgba(255,255,255,0.88) !important;
}

body.theme-dark .mini-media-card h3 a:hover,
body.theme-dark .mini-media-card h3 a:focus,
body.theme-dark .edition-card h3 a:hover,
body.theme-dark .edition-card h3 a:focus {
  color: rgba(255,255,255,0.72) !important;
}

body.theme-dark .mini-media-card,
body.theme-dark .edition-card {
  color: var(--text);
}

/* ===== Clean sidebar (no badges) ===== */

.opinion-item {
  display: block;
}

.opinion-item h4 {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 4px;
}

.opinion-item p {
  font-size: 0.92rem;
  color: var(--muted);
}

.mini-list-posts li {
  display: block;
}

.mini-list-posts li p {
  margin: 0;
  line-height: 1.45;
}

.mini-list-posts li a {
  text-decoration: none;
  color: var(--text);
}

.mini-list-posts li a:hover {
  text-decoration: underline;
}

/* dark */
body.theme-dark .mini-list-posts li a {
  color: rgba(255,255,255,0.9);
}

body.theme-dark .mini-list-posts li a:hover {
  color: rgba(255,255,255,0.72);
}

/****** *******/
/* ===== Premium editorial sidebar ===== */

.sidebar-editorial-list {
  display: grid;
  gap: 18px;
}

.sidebar-editorial-list.compact {
  gap: 14px;
}

.sidebar-editorial-item + .sidebar-editorial-item {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.sidebar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.sidebar-editorial-item h4 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.32;
  letter-spacing: -0.015em;
  font-family: "Source Serif 4", serif;
}

.sidebar-editorial-list.compact .sidebar-editorial-item h4 {
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.34;
}

.sidebar-editorial-item h4 a {
  color: var(--text);
  text-decoration: none;
  transition: color .18s ease;
}

.sidebar-editorial-item h4 a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.sidebar-editorial-item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--muted);
}

body.theme-dark .sidebar-editorial-item + .sidebar-editorial-item {
  border-top-color: var(--line);
}

body.theme-dark .sidebar-meta {
  color: rgba(255,255,255,0.6);
}

body.theme-dark .sidebar-editorial-item h4 a {
  color: rgba(255,255,255,0.9);
}

body.theme-dark .sidebar-editorial-item h4 a:hover {
  color: rgba(255,255,255,0.72);
}

body.theme-dark .sidebar-editorial-item p {
  color: rgba(255,255,255,0.64);
}

/****** ******/
/* ===== Sidebar 2.1 ===== */

.sidebar-title-row-soft {
  margin-bottom: 16px;
}

.sidebar-title-row-soft i {
  color: var(--muted);
  opacity: 0.7;
  font-size: 0.95rem;
}

.sidebar-editorial-list {
  display: grid;
  gap: 18px;
}

.sidebar-editorial-list.compact {
  gap: 14px;
}

.sidebar-editorial-item + .sidebar-editorial-item {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.sidebar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.sidebar-editorial-item h4 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.32;
  letter-spacing: -0.015em;
  font-family: "Source Serif 4", serif;
}

.sidebar-editorial-list.compact .sidebar-editorial-item h4 {
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.34;
}

.sidebar-editorial-item h4 a {
  color: var(--text);
  text-decoration: none;
  transition: color .18s ease;
}

.sidebar-editorial-item h4 a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.sidebar-editorial-item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--muted);
}

/* calmer topics cloud */
.sidebar-topics-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.sidebar-topics-cloud a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
  line-height: 1.35;
  transition: color .18s ease;
}

.sidebar-topics-cloud a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: opacity .18s ease, transform .18s ease;
}

.sidebar-topics-cloud a:hover {
  color: var(--text);
}

.sidebar-topics-cloud a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* sidebar links under blocks */
.sidebar-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-link-row-wrap {
  flex-wrap: wrap;
}

.sidebar-more-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: color .18s ease, padding-left .18s ease;
}

.sidebar-more-link::before {
  content: "→";
  position: relative;
  left: 0;
  transition: transform .18s ease, opacity .18s ease;
  opacity: 0.7;
}

.sidebar-more-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: opacity .18s ease, transform .18s ease;
}

.sidebar-more-link:hover {
  color: var(--text);
}

.sidebar-more-link:hover::before {
  transform: translateX(2px);
  opacity: 1;
}

.sidebar-more-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* dark theme */
body.theme-dark .sidebar-title-row-soft i {
  color: rgba(255,255,255,0.58);
}

body.theme-dark .sidebar-editorial-item + .sidebar-editorial-item {
  border-top-color: var(--line);
}

body.theme-dark .sidebar-meta {
  color: rgba(255,255,255,0.58);
}

body.theme-dark .sidebar-editorial-item h4 a {
  color: rgba(255,255,255,0.9);
}

body.theme-dark .sidebar-editorial-item h4 a:hover {
  color: rgba(255,255,255,0.72);
}

body.theme-dark .sidebar-editorial-item p {
  color: rgba(255,255,255,0.64);
}

body.theme-dark .sidebar-topics-cloud a {
  color: rgba(255,255,255,0.72);
}

body.theme-dark .sidebar-topics-cloud a:hover {
  color: rgba(255,255,255,0.92);
}

body.theme-dark .sidebar-more-link {
  color: rgba(255,255,255,0.88);
}

body.theme-dark .sidebar-more-link:hover {
  color: rgba(255,255,255,0.72);
}

/*********/
/* ===== Sidebar ads: image-first ===== */

.sidebar-ad-card {
  padding: 22px;
}

.ad-stack-media {
  display: grid;
  gap: 14px;
}

.ad-banner-media {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: none;
  aspect-ratio: auto;
}

.ad-banner-media:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 24, 39, 0.14);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.ad-banner-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 0;
}

.ad-banner-cover {
  position: relative;
}

.ad-banner-cover .ad-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.ad-banner-cover .ad-banner-image {
  width: 100%;
  height: auto;
  display: block;
}

/* убрать старую фиксированную геометрию */
.ad-banner-1,
.ad-banner-2 {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}

/* если старые классы на img ещё где-то остаются */
.banner-300-250,
.banner-400-300 {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* mobile */
@media (max-width: 991.98px) {
  .sidebar-ad-card {
    padding: 18px;
  }

  .ad-stack-media {
    gap: 12px;
  }

  .ad-banner-media {
    border-radius: 12px;
  }
}

@media (max-width: 767.98px) {
  .sidebar-ad-card {
    padding: 16px;
  }
}

/* ===== Sidebar ads: magazine-style second card ===== */

.sidebar-ad-card {
  padding: 22px;
}

.ad-stack-media {
  display: grid;
  gap: 14px;
}

.ad-banner-media {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  aspect-ratio: auto;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ad-banner-media:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 24, 39, 0.14);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.ad-banner-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* magazine card */
.ad-banner-magazine {
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, var(--surface-2) 100%);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ad-banner-magazine:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 24, 39, 0.14);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.ad-magazine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.ad-magazine-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-magazine-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

.ad-magazine-cover-wrap {
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid rgba(17, 24, 39, 0.05);
}

.ad-magazine-cover-wrap img {
  width: 100%;
  display: block;
}

.ad-magazine-body strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 6px;
}

.ad-magazine-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* reset old fixed ad geometry */
.ad-banner-1,
.ad-banner-2 {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}

/* dark theme */
body.theme-dark .ad-banner-media,
body.theme-dark .ad-banner-magazine {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.10);
}

body.theme-dark .ad-banner-media:hover,
body.theme-dark .ad-banner-magazine:hover {
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

body.theme-dark .ad-magazine-kicker {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.62);
}

body.theme-dark .ad-magazine-link,
body.theme-dark .ad-magazine-body strong {
  color: rgba(255,255,255,0.9);
}

body.theme-dark .ad-magazine-body p {
  color: rgba(255,255,255,0.64);
}

body.theme-dark .ad-magazine-cover-wrap {
  border-color: rgba(255,255,255,0.06);
}

/* responsive */
@media (max-width: 991.98px) {
  .sidebar-ad-card {
    padding: 18px;
  }

  .ad-banner-magazine {
    padding: 12px;
    border-radius: 14px;
  }
}

@media (max-width: 767.98px) {
  .sidebar-ad-card {
    padding: 16px;
  }

  .ad-magazine-body strong {
    font-size: 0.96rem;
  }

  .ad-magazine-body p {
    font-size: 0.88rem;
  }
}

/*******/
/* ===== Sidebar clean rebuild ===== */

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 110px;
}

.sidebar-card,
.sidebar-ad-card {
  padding: 18px;
  border-radius: 18px;
}

.sidebar-title-row,
.sidebar-title-row-soft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sidebar-title-row h3,
.sidebar-title-row-soft h3 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sidebar-title-row i,
.sidebar-title-row-soft i {
  color: var(--muted);
  opacity: 0.7;
  font-size: 0.95rem;
  flex: 0 0 auto;
}

/* empty state */
.sidebar-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

/* ===== Editorial lists (Интервью / Экономика и маркетинг) ===== */

.sidebar-editorial-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.sidebar-editorial-list.compact {
  gap: 14px;
}

.sidebar-editorial-item {
  display: block;
  min-width: 0;
}

.sidebar-editorial-item + .sidebar-editorial-item {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.sidebar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.sidebar-editorial-item h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.34;
  letter-spacing: -0.015em;
  font-family: "Source Serif 4", serif;
}

.sidebar-editorial-list.compact .sidebar-editorial-item h4 {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.sidebar-editorial-item h4 a {
  color: var(--text);
  text-decoration: none;
  transition: color .18s ease;
}

.sidebar-editorial-item h4 a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.sidebar-editorial-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.58;
}

/* ===== Topics block (Популярные темы) ===== */

.sidebar-topics-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
}

.sidebar-topics-cloud a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
  line-height: 1.35;
  transition: color .18s ease;
}

.sidebar-topics-cloud a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: opacity .18s ease, transform .18s ease;
}

.sidebar-topics-cloud a:hover {
  color: var(--text);
}

.sidebar-topics-cloud a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ===== CTA links under sidebar sections ===== */

.sidebar-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.sidebar-link-row-wrap {
  flex-wrap: wrap;
}

.sidebar-more-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: color .18s ease, padding-left .18s ease;
}

.sidebar-more-link::before {
  content: "→";
  position: relative;
  left: 0;
  opacity: 0.72;
  transition: transform .18s ease, opacity .18s ease;
}

.sidebar-more-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: opacity .18s ease, transform .18s ease;
}

.sidebar-more-link:hover {
  color: var(--text);
}

.sidebar-more-link:hover::before {
  transform: translateX(2px);
  opacity: 1;
}

.sidebar-more-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ===== Advertising block ===== */

.sidebar-ad-card {
  padding: 18px;
}

.ad-stack,
.ad-stack-media {
  display: grid;
  gap: 14px;
  margin: 0;
}

.ad-banner-media,
.ad-banner-magazine {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ad-banner-media {
  padding: 0;
  background: var(--surface);
}

.ad-banner-magazine {
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, var(--surface-2) 100%);
}

.ad-banner-media:hover,
.ad-banner-magazine:hover {
  transform: translateY(-2px);
  border-color: rgba(17, 24, 39, 0.14);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.ad-banner-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.ad-magazine-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.ad-magazine-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-magazine-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

.ad-magazine-cover-wrap {
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid rgba(17, 24, 39, 0.05);
}

.ad-magazine-cover-wrap img {
  width: 100%;
  display: block;
}

.ad-magazine-body strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 6px;
}

.ad-magazine-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* убираем старую фиксированную геометрию */
.ad-banner-1,
.ad-banner-2 {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}

/* ===== Kill old sidebar widget patterns ===== */

.opinion-item,
.mini-list li {
  display: block;
}

.mini-list span,
.author-badge {
  display: none !important;
}

/* ===== Dark theme ===== */

body.theme-dark .sidebar-title-row i,
body.theme-dark .sidebar-title-row-soft i {
  color: rgba(255,255,255,0.58);
}

body.theme-dark .sidebar-editorial-item + .sidebar-editorial-item {
  border-top-color: var(--line);
}

body.theme-dark .sidebar-meta {
  color: rgba(255,255,255,0.58);
}

body.theme-dark .sidebar-editorial-item h4 a {
  color: rgba(255,255,255,0.9);
}

body.theme-dark .sidebar-editorial-item h4 a:hover {
  color: rgba(255,255,255,0.72);
}

body.theme-dark .sidebar-editorial-item p {
  color: rgba(255,255,255,0.64);
}

body.theme-dark .sidebar-topics-cloud a {
  color: rgba(255,255,255,0.72);
}

body.theme-dark .sidebar-topics-cloud a:hover {
  color: rgba(255,255,255,0.92);
}

body.theme-dark .sidebar-more-link {
  color: rgba(255,255,255,0.88);
}

body.theme-dark .sidebar-more-link:hover {
  color: rgba(255,255,255,0.72);
}

body.theme-dark .ad-banner-media,
body.theme-dark .ad-banner-magazine {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.10);
}

body.theme-dark .ad-banner-media:hover,
body.theme-dark .ad-banner-magazine:hover {
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

body.theme-dark .ad-magazine-kicker {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.62);
}

body.theme-dark .ad-magazine-link,
body.theme-dark .ad-magazine-body strong {
  color: rgba(255,255,255,0.9);
}

body.theme-dark .ad-magazine-body p {
  color: rgba(255,255,255,0.64);
}

body.theme-dark .ad-magazine-cover-wrap {
  border-color: rgba(255,255,255,0.06);
}

/* ===== Responsive ===== */

@media (max-width: 991.98px) {
  .sidebar-stack {
    position: static;
    top: auto;
  }

  .sidebar-card,
  .sidebar-ad-card {
    padding: 18px;
  }
}

@media (max-width: 767.98px) {
  .sidebar-stack {
    gap: 14px;
  }

  .sidebar-card,
  .sidebar-ad-card {
    padding: 16px;
    border-radius: 16px;
  }

  .sidebar-title-row,
  .sidebar-title-row-soft {
    margin-bottom: 14px;
  }

  .sidebar-title-row h3,
  .sidebar-title-row-soft h3 {
    font-size: 1.06rem;
  }

  .sidebar-editorial-item h4 {
    font-size: 0.96rem;
  }

  .sidebar-editorial-item p,
  .ad-magazine-body p {
    font-size: 0.88rem;
  }

  .ad-banner-magazine {
    padding: 12px;
  }

  .sidebar-link-row {
    margin-top: 12px;
  }
}
/*****/
/* ===== Internal sidebar extensions ===== */

.sidebar-topics-cloud a.is-active {
  color: var(--text);
  font-weight: 700;
}

.sidebar-topics-cloud a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.sidebar-tags-cloud a {
  font-size: 0.9rem;
}

#sidebar-navigation .sidebar-editorial-item h4 {
  font-size: 0.96rem;
}

body.theme-dark .sidebar-topics-cloud a.is-active {
  color: rgba(255,255,255,0.92);
}

/* ===== Production logo system integration ===== */
.brand-system,
.footer-brand-system {
  align-items: center;
  gap: 0;
}

.brand-logo-system,
.footer-logo-system {
  display: block;
  width: auto;
}

.brand-logo-system {
  height: 46px;
  max-width: min(520px, 34vw);
}

.footer-logo-system {
  height: 56px;
  max-width: min(560px, 100%);
  opacity: 0.96;
}

.brand-logo-main-dark,
.brand-logo-compact-dark,
.footer-logo-dark {
  display: none;
}

body.theme-dark .brand-logo-main-light,
body.theme-dark .brand-logo-compact-light,
body.theme-dark .footer-logo-light {
  display: none !important;
}

body.theme-dark .brand-logo-main-dark,
body.theme-dark .brand-logo-compact-dark,
body.theme-dark .footer-logo-dark {
  display: block !important;
}

.brand-system:hover .brand-logo-system,
.footer-brand-system:hover .footer-logo-system {
  opacity: 1;
}

@media (max-width: 1199.98px) {
  .brand-logo-system {
    height: 42px;
    max-width: min(460px, 36vw);
  }
}

@media (max-width: 991.98px) {
  .brand-logo-system {
    height: 38px;
    max-width: 100%;
  }

  .footer-logo-system {
    height: 48px;
  }
}

@media (max-width: 767.98px) {
  .brand-system {
    min-width: 0;
  }

  .brand-logo-system {
    height: 30px;
    max-width: min(240px, 58vw);
  }

  .footer-logo-system {
    height: 42px;
  }
}

/* ===== Search page ===== */
.search-box-page {
  display: flex;
  width: 100%;
  max-width: 100%;
}

.search-box-page input {
  min-width: 0;
}

.search-box-page strong {
  color: var(--text);
}

/* ===== Final tweaks March 2026 ===== */
.brand-system {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
}

.brand-logo-frame {
  width: 72px;
  min-width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.75);
  display: grid;
  place-items: center;
  padding: 8px;
  box-shadow: 0 12px 28px rgba(17,24,39,0.06);
}

.brand-text-system {
  display: inline-flex !important;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 3px;
}

.brand-text-system strong {
  font-size: 1.02rem;
  line-height: 1.05;
  color: var(--text);
}

.brand-text-system small {
  display: block !important;
  font-size: 0.68rem;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted) !important;
  max-width: 30ch;
}

.brand-logo-system {
  max-width: 100%;
  max-height: 100%;
  height: auto;
}

.brand-logo-system.brand-logo-main-light,
.brand-logo-system.brand-logo-main-dark,
.brand-logo-system.brand-logo-compact-light,
.brand-logo-system.brand-logo-compact-dark {
  width: 100%;
}

body.theme-dark .brand-logo-frame {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

body.theme-dark .brand-text-system strong {
  color: rgba(255,255,255,0.92);
}

body.theme-dark .brand-text-system small {
  color: rgba(255,255,255,0.72) !important;
}

@media (max-width: 991.98px) {
  .brand-logo-frame {
    width: 64px;
    min-width: 64px;
    height: 64px;
    border-radius: 16px;
    padding: 7px;
  }
  .brand-text-system small {
    max-width: 24ch;
  }
}

@media (max-width: 767.98px) {
  .brand-system {
    grid-template-columns: 56px 1fr;
    column-gap: 10px;
  }

  .brand-logo-frame {
    width: 56px;
    min-width: 56px;
    height: 56px;
    border-radius: 14px;
    padding: 6px;
  }

  .brand-text-system strong {
    font-size: 0.95rem;
  }

  .brand-text-system small {
    display: block !important;
    font-size: 0.58rem;
    line-height: 1.2;
    letter-spacing: 0.06em;
    max-width: 18ch;
  }
}

/* mobile video thumbs less cropped */
.real-media-thumb img,
.video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

@media (max-width: 767.98px) {
  .real-media-thumb img,
  .video-thumb img {
    aspect-ratio: 16 / 11;
  }

  .mini-media-card .mini-thumb,
  .real-media-thumb {
    height: auto;
    min-height: 0;
  }
}

/* category page with optional images */
.category-feed-with-media {
  display: grid;
  gap: 1rem;
}

.category-feed-item {
  padding: 1rem 1.05rem;
}

.category-feed-grid {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.category-feed-grid.has-cover {
  grid-template-columns: 220px 1fr;
}

.category-feed-thumb {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-2);
}

.category-feed-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.category-feed-content {
  min-width: 0;
}

.category-feed-content .feed-title {
  margin-bottom: .45rem;
}

@media (max-width: 767.98px) {
  .category-feed-grid.has-cover,
  .category-feed-grid.no-cover {
    grid-template-columns: 1fr;
  }
}

/* ===== Logo balance + tablet header alignment ===== */
.brand-system {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.brand-text-system {
  gap: 0;
}

.brand-text-system strong {
  display: none !important;
}

.brand-text-system small {
  display: block !important;
  font-size: 0.69rem;
  line-height: 1.22;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted) !important;
  max-width: 27ch;
}

/* footer mirrors header */
.footer-brand-system {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
}

.footer-logo-frame {
  width: 72px;
  min-width: 72px;
  height: 72px;
  border-radius: 18px;
  padding: 8px;
}

.footer-brand-text-system {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 0;
}

.footer-brand-text-system strong {
  display: none !important;
}

.footer-brand-text-system small {
  display: block !important;
  font-size: 0.68rem;
  line-height: 1.22;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted) !important;
  max-width: 27ch;
}

/* Desktop dark: lower line inside logo less bright */
body.theme-dark .brand-logo-main-dark,
body.theme-dark .footer-logo-dark {
  opacity: 0.92;
}

/* Mobile light/dark: compact logo must show, lower line visible but softer */
.brand-logo-compact-light,
.brand-logo-compact-dark,
.footer-logo-compact-light,
.footer-logo-compact-dark {
  display: none;
}

@media (max-width: 767.98px) {
  .brand-logo-compact-light,
  .footer-logo-compact-light {
    display: block !important;
    opacity: 0.96;
  }

  body.theme-dark .brand-logo-compact-light,
  body.theme-dark .footer-logo-compact-light {
    display: none !important;
  }

  body.theme-dark .brand-logo-compact-dark,
  body.theme-dark .footer-logo-compact-dark {
    display: block !important;
    opacity: 0.92;
  }
}

/* tablet header alignment */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .site-header .container > .d-flex {
    align-items: center !important;
  }

  .site-header .container.py-3 {
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
  }

  .brand-system {
    flex: 0 1 auto;
  }

  .search-box.d-none.d-lg-flex {
    flex: 1 1 320px;
    max-width: 420px;
    margin-left: auto;
    margin-right: 0;
  }

  .site-header .container > .d-flex > .d-flex:last-child {
    flex: 0 0 auto;
    align-items: center;
  }

  .site-header .btn,
  .theme-toggle {
    min-height: 44px;
  }
}

/* mobile header alignment */
@media (max-width: 767.98px) {
  .brand-system {
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 10px;
  }

  .brand-text-system small,
  .footer-brand-text-system small {
    display: block !important;
    font-size: 0.56rem;
    line-height: 1.18;
    letter-spacing: 0.05em;
    max-width: 17ch;
  }

  .footer-brand-system {
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 10px;
  }

  .footer-logo-frame {
    width: 56px;
    min-width: 56px;
    height: 56px;
    border-radius: 14px;
    padding: 6px;
  }
}

/* ===== Header/footer logo match + safe area polish ===== */
.brand-system.footer-brand-system {
  display: inline-grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
}

.site-header .brand-logo-frame,
.site-header .footer-logo-frame {
  width: 72px;
  min-width: 72px;
  height: 72px;
  border-radius: 18px;
  padding: 8px;
}

.site-header .brand-text-system,
.site-header .footer-brand-text-system {
  display: inline-flex !important;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.site-header .brand-text-system small,
.site-header .footer-brand-text-system small {
  display: block !important;
  font-size: 0.68rem;
  line-height: 1.22;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted) !important;
  max-width: 27ch;
}

/* precise safe area */
.site-header .brand-logo-system,
.site-header .footer-logo-system {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
}

.site-header .brand-logo-main-light,
.site-header .brand-logo-main-dark,
.site-header .footer-logo-light,
.site-header .footer-logo-dark {
  transform: scale(0.96);
  transform-origin: center;
}

.site-header .brand-logo-compact-light,
.site-header .brand-logo-compact-dark,
.site-header .footer-logo-compact-light,
.site-header .footer-logo-compact-dark {
  transform: scale(0.94);
  transform-origin: center;
}

/* desktop dark lower line softer */
body.theme-dark .brand-logo-main-dark,
body.theme-dark .footer-logo-dark,
body.theme-dark .brand-logo-compact-dark,
body.theme-dark .footer-logo-compact-dark {
  opacity: 0.9;
}

body.theme-dark .site-header .brand-text-system small,
body.theme-dark .site-header .footer-brand-text-system small {
  color: rgba(255,255,255,0.7) !important;
}

/* desktop balance */
@media (min-width: 1200px) {
  .site-header .container.py-3 {
    padding-top: 0.95rem !important;
    padding-bottom: 0.95rem !important;
  }

  .site-header .brand-system.footer-brand-system {
    margin-right: 10px;
  }

  .site-header .search-box.d-none.d-lg-flex {
    flex: 1 1 440px;
    max-width: 460px;
  }

  .site-header .d-flex.align-items-center.gap-2 {
    margin-left: 6px;
  }
}

/* tablet alignment */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .site-header .container > .d-flex {
    align-items: center !important;
    gap: 14px !important;
  }

  .site-header .brand-system.footer-brand-system {
    flex: 0 1 auto;
  }

  .site-header .brand-logo-frame,
  .site-header .footer-logo-frame {
    width: 66px;
    min-width: 66px;
    height: 66px;
    border-radius: 16px;
    padding: 7px;
  }

  .site-header .brand-text-system small,
  .site-header .footer-brand-text-system small {
    font-size: 0.62rem;
    max-width: 22ch;
  }

  .site-header .search-box.d-none.d-lg-flex {
    flex: 1 1 320px;
    max-width: 390px;
    margin-left: auto;
  }

  .site-header .btn,
  .site-header .theme-toggle {
    min-height: 44px;
  }
}

/* mobile */
@media (max-width: 767.98px) {
  .site-header .brand-system.footer-brand-system {
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 10px;
  }

  .site-header .brand-logo-frame,
  .site-header .footer-logo-frame {
    width: 56px;
    min-width: 56px;
    height: 56px;
    border-radius: 14px;
    padding: 6px;
  }

  .site-header .brand-text-system small,
  .site-header .footer-brand-text-system small {
    font-size: 0.56rem;
    line-height: 1.18;
    letter-spacing: 0.05em;
    max-width: 16.5ch;
  }

  .site-header .brand-logo-compact-light,
  .site-header .brand-logo-compact-dark,
  .site-header .footer-logo-compact-light,
  .site-header .footer-logo-compact-dark {
    transform: scale(0.92);
  }
}

/* footer precise sizing */
.footer-brand-system {
  align-items: center;
}

.footer-logo-frame {
  width: 72px;
  min-width: 72px;
  height: 72px;
  border-radius: 18px;
  padding: 8px;
}

.footer-logo-system {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.footer-logo-light,
.footer-logo-dark {
  transform: scale(0.96);
  transform-origin: center;
}

@media (max-width: 767.98px) {
  .footer-logo-frame {
    width: 56px;
    min-width: 56px;
    height: 56px;
    border-radius: 14px;
    padding: 6px;
  }

  .footer-logo-light,
  .footer-logo-dark,
  .footer-logo-compact-light,
  .footer-logo-compact-dark {
    transform: scale(0.92);
  }
}

/* ===== Header logo corrected to footer style ===== */
.site-header .header-brand-like-footer {
  display: inline-grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
}

.site-header .header-brand-like-footer .brand-logo-frame {
  width: 72px;
  min-width: 72px;
  height: 72px;
  border-radius: 18px;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(17,24,39,0.06);
}

.site-header .header-brand-like-footer .brand-text-system {
  display: inline-flex !important;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 0;
}

.site-header .header-brand-like-footer .brand-text-system small {
  display: block !important;
  font-size: 0.68rem;
  line-height: 1.22;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted) !important;
  max-width: 27ch;
}

.site-header .header-brand-like-footer .brand-logo-system {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
}

.site-header .header-brand-like-footer .brand-logo-main-light,
.site-header .header-brand-like-footer .brand-logo-main-dark {
  transform: scale(0.96);
  transform-origin: center;
}

.site-header .header-brand-like-footer .brand-logo-compact-light,
.site-header .header-brand-like-footer .brand-logo-compact-dark {
  transform: scale(0.92);
  transform-origin: center;
}

/* footer remains the reference look */
.footer-brand-system .footer-logo-frame {
  width: 72px;
  min-width: 72px;
  height: 72px;
  border-radius: 18px;
  padding: 8px;
}

.footer-brand-system .footer-brand-text-system small {
  display: block !important;
  font-size: 0.68rem;
  line-height: 1.22;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted) !important;
  max-width: 27ch;
}

.footer-brand-system .footer-logo-light,
.footer-brand-system .footer-logo-dark {
  transform: scale(0.96);
  transform-origin: center;
}

/* dark theme balance */
body.theme-dark .site-header .header-brand-like-footer .brand-logo-frame {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

body.theme-dark .site-header .header-brand-like-footer .brand-text-system small,
body.theme-dark .footer-brand-system .footer-brand-text-system small {
  color: rgba(255,255,255,0.70) !important;
}

body.theme-dark .site-header .header-brand-like-footer .brand-logo-main-dark,
body.theme-dark .footer-brand-system .footer-logo-dark {
  opacity: 0.90;
}

body.theme-dark .site-header .header-brand-like-footer .brand-logo-compact-dark,
body.theme-dark .footer-brand-system .footer-logo-compact-dark {
  opacity: 0.88;
}

/* desktop / tablet / mobile polish */
@media (min-width: 1200px) {
  .site-header .container.py-3 {
    padding-top: 0.95rem !important;
    padding-bottom: 0.95rem !important;
  }

  .site-header .container > .d-flex {
    align-items: center !important;
  }

  .site-header .search-box.d-none.d-lg-flex {
    flex: 1 1 440px;
    max-width: 460px;
    margin-left: auto;
  }

  .site-header .d-flex.align-items-center.gap-2 {
    margin-left: 6px;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .site-header .container > .d-flex {
    align-items: center !important;
    gap: 14px !important;
  }

  .site-header .header-brand-like-footer .brand-logo-frame {
    width: 66px;
    min-width: 66px;
    height: 66px;
    border-radius: 16px;
    padding: 7px;
  }

  .site-header .header-brand-like-footer .brand-text-system small {
    font-size: 0.62rem;
    max-width: 22ch;
  }

  .site-header .search-box.d-none.d-lg-flex {
    flex: 1 1 320px;
    max-width: 390px;
    margin-left: auto;
  }

  .site-header .btn,
  .site-header .theme-toggle {
    min-height: 44px;
  }
}

@media (max-width: 767.98px) {
  .site-header .header-brand-like-footer {
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 10px;
  }

  .site-header .header-brand-like-footer .brand-logo-frame,
  .footer-brand-system .footer-logo-frame {
    width: 56px;
    min-width: 56px;
    height: 56px;
    border-radius: 14px;
    padding: 6px;
  }

  .site-header .header-brand-like-footer .brand-text-system small,
  .footer-brand-system .footer-brand-text-system small {
    display: block !important;
    font-size: 0.56rem;
    line-height: 1.18;
    letter-spacing: 0.05em;
    max-width: 16.5ch;
  }

  .site-header .header-brand-like-footer .brand-logo-compact-light,
  .site-header .header-brand-like-footer .brand-logo-compact-dark,
  .footer-brand-system .footer-logo-compact-light,
  .footer-brand-system .footer-logo-compact-dark {
    transform: scale(0.92);
  }
}

/* =========================================================
   Design System CSS — Final Production Layer
   ========================================================= */

:root {
  --ds-space-1: 0.25rem;
  --ds-space-2: 0.5rem;
  --ds-space-3: 0.75rem;
  --ds-space-4: 1rem;
  --ds-space-5: 1.25rem;
  --ds-space-6: 1.5rem;
  --ds-space-7: 2rem;
  --ds-space-8: 2.5rem;

  --ds-radius-sm: 10px;
  --ds-radius-md: 14px;
  --ds-radius-lg: 18px;
  --ds-radius-xl: 22px;

  --ds-shadow-sm: 0 8px 20px rgba(17, 24, 39, 0.06);
  --ds-shadow-md: 0 14px 32px rgba(17, 24, 39, 0.08);
  --ds-shadow-lg: 0 20px 48px rgba(17, 24, 39, 0.10);

  --ds-ease: .18s ease;
  --ds-ease-slow: .26s ease;
}

/* ===== Header / navigation polish ===== */

.site-header {
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
}

.site-header .container.py-3 {
  padding-top: 0.95rem !important;
  padding-bottom: 0.95rem !important;
}

.main-nav {
  position: relative;
  z-index: 20;
}

.main-nav .nav-link,
.main-nav .nav-root-link {
  border-radius: 10px;
  transition: color var(--ds-ease), background-color var(--ds-ease), box-shadow var(--ds-ease);
}

/* remove browser/bootstrap blue ring, replace with editorial underline */
.main-nav .nav-link:focus,
.main-nav .nav-link:focus-visible,
.main-nav .dropdown-toggle:focus,
.main-nav .dropdown-toggle:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.main-nav .nav-link:focus-visible::after,
.main-nav .dropdown-toggle:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.main-nav .nav-link:focus:not(:focus-visible),
.main-nav .dropdown-toggle:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

.nav-dropdown {
  border-radius: 16px !important;
  border: 1px solid var(--line) !important;
  background: rgba(255,255,255,0.94) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--ds-shadow-lg) !important;
  padding: 0.55rem !important;
}

.nav-dropdown .dropdown-item {
  border-radius: 10px !important;
  padding: 0.72rem 0.84rem !important;
  transition: color var(--ds-ease), background-color var(--ds-ease), opacity var(--ds-ease);
}

.nav-root-item > .nav-dropdown {
  transform: translateY(10px);
  transition: opacity var(--ds-ease), transform var(--ds-ease), visibility var(--ds-ease);
}

/* hover state stays editorial */
.nav-dropdown .dropdown-item:hover,
.nav-dropdown .dropdown-item:focus,
.nav-dropdown .dropdown-item.active {
  background: transparent !important;
}

/* ===== Preloader ===== */

.site-preloader,
.preloader,
#preloader {
  background:
    radial-gradient(circle at top, rgba(17,24,39,0.05), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f4f5f7 100%);
}

.site-preloader .logo-dark,
.preloader .logo-dark,
#preloader .logo-dark {
  display: none;
}

body.theme-dark .site-preloader,
body.theme-dark .preloader,
body.theme-dark #preloader {
  background:
    radial-gradient(circle at top, rgba(243,245,247,0.06), transparent 34%),
    linear-gradient(180deg, #0c1117 0%, #111923 100%);
}

body.theme-dark .site-preloader .logo-light,
body.theme-dark .preloader .logo-light,
body.theme-dark #preloader .logo-light {
  display: none !important;
}

body.theme-dark .site-preloader .logo-dark,
body.theme-dark .preloader .logo-dark,
body.theme-dark #preloader .logo-dark {
  display: block !important;
}

.preloader-brand,
.site-preloader-brand {
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
}

.preloader-logo-frame {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.74);
  display: grid;
  place-items: center;
  padding: 8px;
  box-shadow: var(--ds-shadow-sm);
}

.preloader-logo-frame img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(.92);
  transform-origin: center;
}

.preloader-caption {
  font-size: .68rem;
  line-height: 1.22;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

body.theme-dark .preloader-logo-frame {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.10);
}

/* ===== Logo system final rhythm ===== */

.brand-logo-frame,
.footer-logo-frame {
  overflow: hidden;
}

.brand-text-system small,
.footer-brand-text-system small {
  text-wrap: balance;
}

.site-header .container > .d-flex {
  align-items: center !important;
}

.site-header .search-box.d-none.d-lg-flex {
  flex: 1 1 420px;
  max-width: 460px;
  margin-left: auto;
}

.site-header .d-flex.align-items-center.gap-2 {
  align-items: center !important;
}

/* ===== Cards / modules ===== */

.card-surface,
.sidebar-card,
.mini-media-card,
.edition-card,
.news-feed-item,
.related-card,
.article-nav,
.article-note {
  border-radius: var(--ds-radius-xl);
}

.sidebar-card,
.news-feed-item,
.related-card {
  box-shadow: var(--ds-shadow-sm);
}

.mini-media-card:hover,
.edition-card:hover,
.news-feed-item:hover {
  box-shadow: var(--ds-shadow-md);
}

/* ===== Video image crop refinement ===== */

.real-media-thumb,
.video-thumb,
.mini-thumb {
  overflow: hidden;
  border-radius: 12px;
}

.real-media-thumb img,
.video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 767.98px) {
  .real-media-thumb img,
  .video-thumb img {
    aspect-ratio: 16 / 11.5;
    object-position: center;
  }
}

/* ===== Category list with media ===== */

.category-feed-item {
  border-radius: var(--ds-radius-xl);
}

.category-feed-thumb {
  border-radius: 14px;
}

.category-feed-thumb img {
  aspect-ratio: 16 / 10.5;
}

@media (max-width: 767.98px) {
  .category-feed-thumb img {
    aspect-ratio: 16 / 10.8;
  }
}

/* ===== Footer polish ===== */

.footer-grid {
  align-items: start;
}

.footer-brand-system,
.header-brand-like-footer,
.brand-system {
  text-decoration: none;
}

.footer-brand-system .footer-logo-frame {
  box-shadow: var(--ds-shadow-sm);
}

.footer-links-grid a,
.footer-nav-list a,
.footer-contact-list a {
  transition: color var(--ds-ease), padding-left var(--ds-ease);
}

/* ===== Dark mode adjustments ===== */

body.theme-dark .nav-dropdown {
  background: rgba(20,27,36,0.94) !important;
  border-color: rgba(255,255,255,0.10) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.32) !important;
}

body.theme-dark .brand-logo-main-dark,
body.theme-dark .footer-logo-dark {
  opacity: .9;
}

body.theme-dark .brand-logo-compact-dark,
body.theme-dark .footer-logo-compact-dark {
  opacity: .88;
}

/* ===== Responsive ===== */

@media (min-width: 768px) and (max-width: 1199.98px) {
  .site-header .container > .d-flex {
    gap: 14px !important;
  }

  .site-header .search-box.d-none.d-lg-flex {
    flex: 1 1 340px;
    max-width: 390px;
  }

  .site-header .btn,
  .site-header .theme-toggle {
    min-height: 44px;
  }
}

@media (max-width: 767.98px) {
  .site-header .container.py-3 {
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
  }

  .preloader-logo-frame {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    padding: 6px;
  }

  .preloader-caption {
    font-size: .58rem;
    letter-spacing: .06em;
  }
}

/* ===== Header/Footer logo unification refinement ===== */

/* unify header and footer brand block */
.site-header .header-brand-like-footer,
.site-header .brand-system,
.footer-brand-system {
  display: inline-grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
}

/* same frame in header and footer */
.site-header .brand-logo-frame,
.site-header .footer-logo-frame,
.footer-brand-system .footer-logo-frame,
.footer-brand-system .brand-logo-frame {
  width: 64px !important;
  min-width: 64px !important;
  height: 64px !important;
  border-radius: 16px !important;
  padding: 6px !important;
  overflow: hidden;
  border: 1px solid var(--line) !important;
  background: rgba(255,255,255,0.58) !important;
  box-shadow: 0 10px 24px rgba(17,24,39,0.05) !important;
  display: grid;
  place-items: center;
}

.site-header .brand-logo-system,
.footer-brand-system .footer-logo-system,
.site-header .footer-logo-system {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

/* keep desktop logo slightly inset */
.site-header .brand-logo-main-light,
.site-header .brand-logo-main-dark,
.footer-brand-system .footer-logo-light,
.footer-brand-system .footer-logo-dark {
  transform: scale(0.98);
  transform-origin: center;
}

/* compact/mobile logo also slightly inset */
.site-header .brand-logo-compact-light,
.site-header .brand-logo-compact-dark,
.footer-brand-system .footer-logo-compact-light,
.footer-brand-system .footer-logo-compact-dark {
  transform: scale(0.96);
  transform-origin: center;
}

/* make lower line visually softer in both themes */
.site-header .brand-logo-main-light,
.footer-brand-system .footer-logo-light {
  opacity: 0.96;
}

body.theme-dark .site-header .brand-logo-main-dark,
body.theme-dark .footer-brand-system .footer-logo-dark {
  opacity: 0.88 !important;
}

body.theme-dark .site-header .brand-logo-compact-dark,
body.theme-dark .footer-brand-system .footer-logo-compact-dark {
  opacity: 0.84 !important;
}

/* identical descriptor styling */
.site-header .brand-text-system,
.site-header .footer-brand-text-system,
.footer-brand-system .footer-brand-text-system {
  display: inline-flex !important;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 0;
}

.site-header .brand-text-system small,
.site-header .footer-brand-text-system small,
.footer-brand-system .footer-brand-text-system small {
  display: block !important;
  font-size: 0.56rem !important;
  line-height: 1.18 !important;
  letter-spacing: 0.045em !important;
  text-transform: uppercase;
  color: var(--muted) !important;
  max-width: 17ch !important;
}

body.theme-dark .site-header .brand-text-system small,
body.theme-dark .site-header .footer-brand-text-system small,
body.theme-dark .footer-brand-system .footer-brand-text-system small {
  color: rgba(255,255,255,0.68) !important;
}

/* more consistent header vertical rhythm */
.site-header .container.py-3 {
  padding-top: 0.82rem !important;
  padding-bottom: 0.82rem !important;
}

.site-header .container > .d-flex {
  align-items: center !important;
  gap: 14px !important;
}

.site-header .search-box.d-none.d-lg-flex {
  flex: 1 1 420px;
  max-width: 440px;
  margin-left: auto;
}

/* mobile: keep the same visual system */
@media (max-width: 767.98px) {
  .site-header .header-brand-like-footer,
  .site-header .brand-system,
  .footer-brand-system {
    grid-template-columns: 64px minmax(0, 1fr) !important;
    column-gap: 10px !important;
  }

  .site-header .brand-logo-frame,
  .site-header .footer-logo-frame,
  .footer-brand-system .footer-logo-frame,
  .footer-brand-system .brand-logo-frame {
    width: 64px !important;
    min-width: 64px !important;
    height: 64px !important;
    border-radius: 16px !important;
    padding: 6px !important;
  }

  .site-header .brand-text-system small,
  .site-header .footer-brand-text-system small,
  .footer-brand-system .footer-brand-text-system small {
    font-size: 0.56rem !important;
    line-height: 1.18 !important;
    letter-spacing: 0.045em !important;
    max-width: 17ch !important;
  }
}

/* dark frame refinement */
body.theme-dark .site-header .brand-logo-frame,
body.theme-dark .site-header .footer-logo-frame,
body.theme-dark .footer-brand-system .footer-logo-frame,
body.theme-dark .footer-brand-system .brand-logo-frame {
  background: rgba(255,255,255,0.02) !important;
  border-color: rgba(255,255,255,0.08) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18) !important;
}

/* ===== Dynamic truncation for header/footer brand descriptor ===== */
.site-header .brand-text-system,
.site-header .footer-brand-text-system,
.footer-brand-system .footer-brand-text-system {
  min-width: 0;
  max-width: 100%;
}

.site-header .brand-text-system small,
.site-header .footer-brand-text-system small,
.footer-brand-system .footer-brand-text-system small {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  max-width: clamp(11rem, 18vw, 18ch) !important;
}

/* Large desktop: allow wider descriptor */
@media (min-width: 1400px) {
  .site-header .brand-text-system small,
  .site-header .footer-brand-text-system small,
  .footer-brand-system .footer-brand-text-system small {
    -webkit-line-clamp: 2;
    max-width: 22ch !important;
  }
}

/* Desktop / laptop: keep it compact */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .site-header .brand-text-system small,
  .site-header .footer-brand-text-system small,
  .footer-brand-system .footer-brand-text-system small {
    -webkit-line-clamp: 3;
    max-width: 19ch !important;
  }
}

/* Tablet: slightly shorter to protect search and buttons */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .site-header .brand-text-system small,
  .site-header .footer-brand-text-system small,
  .footer-brand-system .footer-brand-text-system small {
    -webkit-line-clamp: 2;
    max-width: 15ch !important;
  }
}

/* Mobile: keep readable but compact */
@media (max-width: 767.98px) {
  .site-header .brand-text-system small,
  .site-header .footer-brand-text-system small,
  .footer-brand-system .footer-brand-text-system small {
    -webkit-line-clamp: 3;
    max-width: 14ch !important;
  }
}

/* Ultra narrow widths: prioritise logo and actions */
@media (max-width: 389.98px) {
  .site-header .brand-text-system small,
  .site-header .footer-brand-text-system small,
  .footer-brand-system .footer-brand-text-system small {
    -webkit-line-clamp: 2;
    max-width: 11ch !important;
  }
}

/* ===== Footer 2-line controlled brand layout ===== */

.footer-brand-system {
  max-width: 100%;
  column-gap: 14px !important;
}

.footer-brand-system .footer-brand-text-system {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 540px;
}

.footer-brand-system .footer-brand-text-system small {
  display: block !important;
  -webkit-line-clamp: unset !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  max-width: 100% !important;

  font-size: 0.64rem !important;
  line-height: 1.24 !important;
  letter-spacing: 0.05em !important;
}

/* controlled two-line break */
.footer-brand-system .footer-brand-text-system small br {
  display: block;
}

@media (max-width: 767.98px) {
  .footer-brand-system {
    column-gap: 12px !important;
  }

  .footer-brand-system .footer-brand-text-system {
    max-width: 100%;
  }

  .footer-brand-system .footer-brand-text-system small {
    font-size: 0.60rem !important;
    line-height: 1.22 !important;
  }
}

/* ===== Header 2-line controlled brand layout ===== */

.site-header .header-brand-like-footer,
.site-header .brand-system {
  max-width: 100%;
  column-gap: 14px !important;
}

.site-header .brand-text-system,
.site-header .footer-brand-text-system {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 560px;
}

.site-header .brand-text-system small,
.site-header .footer-brand-text-system small {
  display: block !important;
  -webkit-line-clamp: unset !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  max-width: 100% !important;

  font-size: 0.64rem !important;
  line-height: 1.24 !important;
  letter-spacing: 0.05em !important;
}

.site-header .brand-text-system small br,
.site-header .footer-brand-text-system small br {
  display: block;
}

@media (min-width: 1200px) {
  .site-header .brand-text-system,
  .site-header .footer-brand-text-system {
    max-width: 620px;
  }

  .site-header .search-box.d-none.d-lg-flex {
    flex: 1 1 380px;
    max-width: 420px;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .site-header .brand-text-system,
  .site-header .footer-brand-text-system {
    max-width: 420px;
  }

  .site-header .brand-text-system small,
  .site-header .footer-brand-text-system small {
    font-size: 0.60rem !important;
    line-height: 1.22 !important;
  }

  .site-header .search-box.d-none.d-lg-flex {
    flex: 1 1 300px;
    max-width: 360px;
  }
}

@media (max-width: 767.98px) {
  .site-header .header-brand-like-footer,
  .site-header .brand-system {
    column-gap: 12px !important;
  }

  .site-header .brand-text-system,
  .site-header .footer-brand-text-system {
    max-width: 100%;
  }

  .site-header .brand-text-system small,
  .site-header .footer-brand-text-system small {
    font-size: 0.58rem !important;
    line-height: 1.2 !important;
    max-width: 16ch !important;
  }
}

/* ===== Mobile dark menu: visible submenu chevrons ===== */

.mobile-links .toggle-dropdown,
.offcanvas .toggle-dropdown,
#mobileNav .toggle-dropdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform .18s ease, color .18s ease, opacity .18s ease;
  color: rgba(20, 23, 28, 0.7);
  opacity: 0.9;
}

body.theme-dark .mobile-links .toggle-dropdown,
body.theme-dark .offcanvas .toggle-dropdown,
body.theme-dark #mobileNav .toggle-dropdown {
  color: rgba(255,255,255,0.72) !important;
  opacity: 1 !important;
}

body.theme-dark .mobile-links .accordion-button:not(.collapsed) .toggle-dropdown,
body.theme-dark .offcanvas .accordion-button:not(.collapsed) .toggle-dropdown,
body.theme-dark #mobileNav .accordion-button:not(.collapsed) .toggle-dropdown {
  color: rgba(255,255,255,0.92) !important;
  transform: rotate(180deg);
}

.mobile-links .accordion-button,
.offcanvas .accordion-button,
#mobileNav .accordion-button {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-links .accordion-button::after,
.offcanvas .accordion-button::after,
#mobileNav .accordion-button::after {
  display: none !important;
}

/* ===== Mobile menu chevron fix v2 ===== */
/* The mobile menu uses Bootstrap accordion arrows, not custom <i> icons.
   Restore them with explicit visible chevrons in both themes. */

.mobile-links .accordion-button::after,
.offcanvas .accordion-button::after,
#mobileNav .accordion-button::after {
  display: block !important;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-left: auto;
  background-image: none !important;
  background-color: rgba(20, 23, 28, 0.72);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.92;
  transform: rotate(-90deg);
  transition: transform .18s ease, background-color .18s ease, opacity .18s ease;
}

.mobile-links .accordion-button:not(.collapsed)::after,
.offcanvas .accordion-button:not(.collapsed)::after,
#mobileNav .accordion-button:not(.collapsed)::after {
  transform: rotate(0deg);
}

body.theme-dark .mobile-links .accordion-button::after,
body.theme-dark .offcanvas .accordion-button::after,
body.theme-dark #mobileNav .accordion-button::after {
  background-color: rgba(255,255,255,0.74) !important;
  opacity: 1;
}

body.theme-dark .mobile-links .accordion-button:not(.collapsed)::after,
body.theme-dark .offcanvas .accordion-button:not(.collapsed)::after,
body.theme-dark #mobileNav .accordion-button:not(.collapsed)::after {
  background-color: rgba(255,255,255,0.92) !important;
}

/* neutralize previous broken rule */
.mobile-links .toggle-dropdown,
.offcanvas .toggle-dropdown,
#mobileNav .toggle-dropdown {
  display: none !important;
}

/* ===== Preloader partial fix ===== */
.preloader-logo {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.preloader-logo .logo-light,
.preloader-logo .logo-dark {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  transform: scale(.92);
  transform-origin: center;
}

.preloader-logo .logo-dark {
  display: none;
}

body.theme-dark .preloader-logo .logo-light {
  display: none !important;
}

body.theme-dark .preloader-logo .logo-dark {
  display: block !important;
}

.site-preloader-logo-wrap {
  background: rgba(255,255,255,0.74);
  border: 1px solid var(--line);
}

body.theme-dark .site-preloader-logo-wrap {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.10);
}

/* ===== Subscription UX ===== */
.newsletter-form {
  gap: 10px;
}

.newsletter-form-message {
  grid-column: 1 / -1;
  min-height: 1.25rem;
  margin-top: 2px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted);
}

.newsletter-form-message.is-success {
  color: var(--text);
}

.newsletter-form-message.is-error {
  color: #b42318;
}

body.theme-dark .newsletter-form-message.is-success {
  color: rgba(255,255,255,0.88);
}

body.theme-dark .newsletter-form-message.is-error {
  color: #ff8f8f;
}

/* ===== Newsletter consent ===== */
.newsletter-consent {
  grid-column: 1 / -1;
}

.newsletter-consent-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
}

.newsletter-consent-label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

body.theme-dark .newsletter-consent-label {
  color: rgba(255,255,255,0.72);
}

/* ===== Targeted fix: video images + newsletter consent layout ===== */

/* Video section: fix image rendering only, do not touch grid/layout */
#videos .mini-thumb,
#videos .real-media-thumb {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
}

#videos .real-media-thumb img,
#videos .mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 767.98px) {
  #videos .mini-thumb,
  #videos .real-media-thumb {
    aspect-ratio: 16 / 11;
    min-height: 180px;
  }
}

/* Newsletter: checkbox under the email field, without touching submit logic */
.newsletter-form-consent {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "email submit"
    "consent submit";
  align-items: start;
  gap: 10px 12px;
}

.newsletter-form-consent > input[name="email"] {
  grid-area: email;
  min-width: 0;
}

.newsletter-form-consent > .newsletter-consent {
  grid-area: consent;
  margin-top: -2px;
}

.newsletter-form-consent > button,
.newsletter-form-consent > .btn {
  grid-area: submit;
  align-self: start;
}

.newsletter-consent-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.newsletter-consent-label span {
  display: block;
}

@media (max-width: 767.98px) {
  .newsletter-form-consent {
    grid-template-columns: 1fr;
    grid-template-areas:
      "email"
      "consent"
      "submit";
  }

  .newsletter-form-consent > button,
  .newsletter-form-consent > .btn,
  .newsletter-form-consent > input[name="email"] {
    width: 100%;
  }
}

/* ===== 756px mobile visibility fix for Videos and Editions ===== */
@media (max-width: 767.98px) {
  #videos,
  #editions {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #videos .container,
  #editions .container {
    display: block !important;
  }

  #videos .row,
  #editions .row {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  #videos [class*="col-"],
  #editions [class*="col-"] {
    display: block !important;
    width: 100% !important;
  }

  #videos .edition-card,
  #editions .edition-card,
  #videos .mini-media-card,
  #editions .mini-media-card {
    display: block !important;
    width: 100% !important;
  }
}

/* ===== Apple-style newsletter toast ===== */
.newsletter-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px) scale(0.98);
  width: min(92vw, 420px);
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: #111827;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  z-index: 2500;
}

.newsletter-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.newsletter-toast.is-success { color: #111827; }
.newsletter-toast.is-error { color: #8a1c1c; }

body.theme-dark .newsletter-toast {
  background: rgba(20, 27, 36, 0.82);
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

body.theme-dark .newsletter-toast.is-error { color: #ffb4b4; }

@media (max-width: 767.98px) {
  .newsletter-toast {
    bottom: 18px;
    width: min(94vw, 360px);
    padding: 13px 16px;
    font-size: 0.92rem;
    border-radius: 16px;
  }
}



/* ===== Media platform embeds ===== */
.pdf-embed-snippet,
.video-embed-snippet {
  width: 100%;
  margin: 1.25rem 0;
}
.ad-erid {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .35rem;
}



/* ===== Directory frontend ===== */
.directory-card .directory-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.directory-item-page .article-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: rgba(0,0,0,.02);
}

/* === FIX: h3 links hover in dark theme === */
body.theme-dark .feed-item h3 a:hover,
body.theme-dark article h3 a:hover {
  color: rgba(255, 255, 255, 0.75) !important;
}
/* =========================================================
   GLOBAL LINK SYSTEM (UNIFIED)
   ========================================================= */

/* базовые ссылки */
a {
  transition: color .18s ease, opacity .18s ease, text-decoration-color .18s ease;
}

/* убираем агрессивный глобальный hover */
a:hover,
a:focus-visible {
  color: var(--text);
  text-decoration: none;
}

/* =========================================================
   HEADLINES (главные заголовки материалов)
   ========================================================= */

.feed-item h3 a,
.related-card h3 a,
.mini-media-card h3 a,
.edition-card h3 a,
.opinion-item h4 a,
.article-nav-link,
.section-action-link {
  transition: color .18s ease, opacity .18s ease;
}

/* светлая тема */
.feed-item h3 a:hover,
.related-card h3 a:hover,
.mini-media-card h3 a:hover,
.edition-card h3 a:hover,
.opinion-item h4 a:hover,
.article-nav-link:hover,
.section-action-link:hover {
  color: rgba(20, 23, 28, 0.78);
}

/* тёмная тема */
body.theme-dark .feed-item h3 a:hover,
body.theme-dark .related-card h3 a:hover,
body.theme-dark .mini-media-card h3 a:hover,
body.theme-dark .edition-card h3 a:hover,
body.theme-dark .opinion-item h4 a:hover,
body.theme-dark .article-nav-link:hover,
body.theme-dark .section-action-link:hover,
body.theme-dark article h3 a:hover {
  color: rgba(255, 255, 255, 0.72) !important;
}

/* =========================================================
   TEXT LINKS (контентные ссылки)
   ========================================================= */

.article-content a,
.feed-item p a,
.related-card p a {
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.2);
}

.article-content a:hover {
  text-decoration-color: currentColor;
}

/* dark */
body.theme-dark .article-content a {
  text-decoration-color: rgba(255,255,255,0.25);
}

/* =========================================================
   TAGS
   ========================================================= */

.tag-cloud a,
.post-tags a,
.article-tags a {
  transition: opacity .15s ease;
}

.tag-cloud a:hover,
.post-tags a:hover,
.article-tags a:hover {
  opacity: 0.92;
}

/* =========================================================
   FOOTER / SIDEBAR LINKS
   ========================================================= */

.footer-links-grid a,
.footer-nav-list a,
.footer-contact-list a,
.mobile-submenu a,
.mobile-direct-link a {
  transition: opacity .15s ease;
}

.footer-links-grid a:hover,
.footer-nav-list a:hover,
.footer-contact-list a:hover,
.mobile-submenu a:hover,
.mobile-direct-link a:hover {
  opacity: 0.82;
}

/* =========================================================
   MENU (НЕ ТРОГАЕМ)
   ========================================================= */

.main-nav .nav-link:hover,
.nav-dropdown .dropdown-item:hover {
  text-decoration: underline;
}

/* =========================================================
   BUTTONS (НЕ ТРОГАЕМ)
   ========================================================= */

.btn:hover {
  opacity: 1;
}

/* =========================================================
   SOCIAL / ADS (НЕ ТРОГАЕМ)
   ========================================================= */

.footer-socials a:hover,
.ad-banner:hover {
  opacity: 1;
}

/* =========================================================
   HEADER UX SYSTEM
   unified hover / active / sticky / dropdown
   ========================================================= */

/* ---------- base header ---------- */

.site-header,
.main-nav {
  transition:
    background-color .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    backdrop-filter .22s ease;
}

.site-header {
  position: relative;
  z-index: 1035;
}

.main-nav {
  position: relative;
  z-index: 1030;
}

/* ---------- sticky / scrolled ---------- */

body.scrolled .site-header,
body.scrolled .main-nav {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

body.scrolled .main-nav {
  background: rgba(255,255,255,0.98);
  backdrop-filter: saturate(130%) blur(10px);
  -webkit-backdrop-filter: saturate(130%) blur(10px);
  border-top-color: var(--line);
  border-bottom-color: var(--line);
}

body.theme-dark.scrolled .main-nav {
  background: rgba(10, 12, 16, 0.96);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

/* ---------- top line ---------- */

.topline a {
  transition: color .16s ease, opacity .16s ease;
}

.topline a:hover,
.topline a:focus-visible {
  color: var(--text) !important;
  opacity: .82;
  text-decoration: none;
}

body.theme-dark .topline a:hover,
body.theme-dark .topline a:focus-visible {
  color: rgba(255,255,255,0.88) !important;
}

/* ---------- main nav links ---------- */

.main-nav .nav-link,
.nav-root-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transition:
    color .18s ease,
    opacity .18s ease,
    background-color .18s ease;
}

/* убираем текстовые underline внутри меню */
.main-nav .nav-link,
.main-nav .nav-link:hover,
.main-nav .nav-link:focus,
.main-nav .nav-link:active,
.nav-root-link,
.nav-root-link:hover,
.nav-root-link:focus,
.nav-dropdown .dropdown-item,
.nav-dropdown .dropdown-item:hover,
.nav-dropdown .dropdown-item:focus,
.nav-dropdown .dropdown-item:active {
  text-decoration: none !important;
}

.main-nav .nav-link *,
.nav-root-link *,
.nav-dropdown .dropdown-item * {
  text-decoration: none !important;
}

/* единственный underline-механизм */
.main-nav .nav-link::after,
.nav-root-link::after,
.nav-dropdown .dropdown-item::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.45rem;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(.35);
  transform-origin: center;
  transition:
    opacity .18s ease,
    transform .18s ease;
}

/* root nav hover / active */
.main-nav .nav-link:hover,
.main-nav .nav-link:focus-visible,
.nav-root-link:hover,
.nav-root-link:focus-visible,
.nav-root-item.is-hover > .nav-root-link,
.nav-root-item.show > .nav-root-link {
  color: var(--text);
  opacity: 1;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link:focus-visible::after,
.main-nav .nav-link.active::after,
.nav-root-link:hover::after,
.nav-root-link:focus-visible::after,
.nav-root-item.is-hover > .nav-root-link::after,
.nav-root-item.show > .nav-root-link::after {
  opacity: 1;
  transform: scaleX(1);
}

.main-nav .nav-link.active,
.nav-root-item.is-hover > .nav-root-link,
.nav-root-item.show > .nav-root-link {
  color: var(--text);
}

/* active item чуть плотнее */
.main-nav .nav-link.active {
  font-weight: 800;
}

/* ---------- dropdown ---------- */

.nav-root-item {
  position: relative;
}

@media (min-width: 992px) {
  .nav-root-item {
    padding-bottom: 10px;
    margin-bottom: -10px;
  }
}

.nav-dropdown {
  margin-top: 0;
  min-width: 290px;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.985);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12) !important;
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  pointer-events: none;
  display: block;
  transition:
    opacity .18s ease,
    transform .18s ease,
    visibility .18s ease;
}

.nav-projects .nav-dropdown {
  min-width: 340px;
}

.nav-dropdown .dropdown-item {
  position: relative;
  padding: 0.72rem 0.82rem;
  border-radius: 10px;
  white-space: normal;
  font-weight: 600;
  color: var(--text);
  background: transparent !important;
  transform: none !important;
  transition: color .18s ease, opacity .18s ease;
}

.nav-dropdown .dropdown-item::after {
  left: 0.82rem;
  right: 0.82rem;
  bottom: 0.52rem;
  transform-origin: left;
}

.nav-dropdown .dropdown-item:hover,
.nav-dropdown .dropdown-item:focus,
.nav-dropdown .dropdown-item.active {
  background: transparent !important;
  color: var(--text);
  opacity: .88;
}

.nav-dropdown .dropdown-item:hover::after,
.nav-dropdown .dropdown-item:focus::after,
.nav-dropdown .dropdown-item.active::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (min-width: 992px) {
  .nav-root-item > .nav-dropdown {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
  }

  .nav-root-item.is-hover > .nav-dropdown,
  .nav-root-item.show > .nav-dropdown,
  .main-nav .dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ---------- light theme nuances ---------- */

.main-nav .nav-link:hover,
.nav-root-link:hover {
  color: rgba(20, 23, 28, 0.92);
}

.nav-dropdown .dropdown-item:hover,
.nav-dropdown .dropdown-item:focus,
.nav-dropdown .dropdown-item.active {
  color: rgba(20, 23, 28, 0.9);
}

/* ---------- dark theme ---------- */

body.theme-dark .main-nav {
  background: rgba(0, 0, 0, 0.96);
  border-top-color: rgba(255,255,255,0.12);
  border-bottom-color: rgba(255,255,255,0.12);
}

body.theme-dark .main-nav .nav-link,
body.theme-dark .nav-root-link {
  color: rgba(255,255,255,0.94) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.94) !important;
}

body.theme-dark .main-nav .nav-link:hover,
body.theme-dark .main-nav .nav-link:focus-visible,
body.theme-dark .main-nav .nav-link.active,
body.theme-dark .nav-root-link:hover,
body.theme-dark .nav-root-link:focus-visible,
body.theme-dark .nav-root-item.is-hover > .nav-root-link,
body.theme-dark .nav-root-item.show > .nav-root-link {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: transparent !important;
}

body.theme-dark .main-nav .nav-link::after,
body.theme-dark .nav-root-link::after,
body.theme-dark .nav-dropdown .dropdown-item::after {
  background: rgba(255,255,255,0.92) !important;
}

body.theme-dark .nav-dropdown {
  background: rgba(9, 9, 10, 0.98);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 20px 50px rgba(0,0,0,0.34) !important;
}

body.theme-dark .nav-dropdown .dropdown-item,
body.theme-dark .nav-dropdown .dropdown-item:hover,
body.theme-dark .nav-dropdown .dropdown-item:focus,
body.theme-dark .nav-dropdown .dropdown-item:active,
body.theme-dark .nav-dropdown .dropdown-item.active {
  color: rgba(255,255,255,0.92) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.92) !important;
  background: transparent !important;
}

body.theme-dark .nav-dropdown .dropdown-item:hover,
body.theme-dark .nav-dropdown .dropdown-item:focus,
body.theme-dark .nav-dropdown .dropdown-item.active {
  opacity: .86;
}

/* bootstrap dropdown variable leak guard */
body.theme-dark .dropdown-item,
body.theme-dark .dropdown-item:hover,
body.theme-dark .dropdown-item:focus {
  --bs-dropdown-link-hover-color: rgba(255,255,255,0.92);
  --bs-dropdown-link-active-color: rgba(255,255,255,0.92);
  --bs-dropdown-link-hover-bg: transparent;
  --bs-dropdown-link-active-bg: transparent;
}

/* ---------- mobile header ---------- */

@media (max-width: 991.98px) {
  .site-header .container > .d-flex {
    flex-wrap: wrap;
    row-gap: 14px;
  }

  .site-header .container > .d-flex > .d-flex:last-child {
    margin-left: auto;
  }

  .main-nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .mobile-links .accordion-button,
  .mobile-submenu a,
  .mobile-direct-link a {
    text-decoration: none !important;
    transition: color .18s ease, opacity .18s ease;
  }

  .mobile-links .accordion-button:hover,
  .mobile-submenu a:hover,
  .mobile-direct-link a:hover {
    color: var(--text);
    opacity: .82;
  }

  body.theme-dark .mobile-links .accordion-button:hover,
  body.theme-dark .mobile-submenu a:hover,
  body.theme-dark .mobile-direct-link a:hover {
    color: rgba(255,255,255,0.86);
  }
}

/* ---------- buttons in header ---------- */

.site-header .btn,
.theme-toggle,
.mobile-nav-toggle,
.navbar-toggler,
.menu-toggle {
  transition:
    background-color .18s ease,
    color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.site-header .btn:hover,
.theme-toggle:hover,
.mobile-nav-toggle:hover,
.navbar-toggler:hover,
.menu-toggle:hover {
  transform: translateY(-1px);
}

.site-header .btn:active,
.theme-toggle:active,
.mobile-nav-toggle:active,
.navbar-toggler:active,
.menu-toggle:active {
  transform: translateY(0);
}

/* ---------- search ---------- */

.search-box {
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background-color .18s ease;
}

.search-box:focus-within {
  border-color: rgba(17,24,39,0.22);
  box-shadow: 0 0 0 3px rgba(17,24,39,0.06);
}

body.theme-dark .search-box:focus-within {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}

/* ---------- footer safety: no menu underline leakage ---------- */

.footer-links-grid a::after,
.footer-nav-list a::after,
.footer-contact-list a::after,
.mobile-submenu a::after,
.mobile-direct-link a::after {
  content: none !important;
}

/* ===== Mobile menu simple mode ===== */
.mobile-links-simple {
  display: grid;
  gap: 18px;
}

.mobile-menu-group {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.mobile-menu-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 12px;
}

.mobile-links-simple .mobile-submenu {
  display: grid;
  gap: 10px;
  padding: 0;
}

.mobile-links-simple .mobile-submenu a,
.mobile-links-simple .mobile-direct-link a {
  display: block;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}

.mobile-links-simple .mobile-submenu a:hover,
.mobile-links-simple .mobile-direct-link a:hover {
  color: var(--text);
}

body.theme-dark .mobile-menu-title {
  color: rgba(255,255,255,0.94);
}

body.theme-dark .mobile-links-simple .mobile-submenu a,
body.theme-dark .mobile-links-simple .mobile-direct-link a {
  color: rgba(255,255,255,0.72);
}

body.theme-dark .mobile-links-simple .mobile-submenu a:hover,
body.theme-dark .mobile-links-simple .mobile-direct-link a:hover {
  color: rgba(255,255,255,0.94);
}

.subscribe-newsletter-form {

}