/* =========================================================
   NLN News — Ultra-Modern Editorial Stylesheet v2.0
   Design: Card-first editorial system, forest green + gold.
   Mobile-first. No zoom hacks, no layered patches.
   ========================================================= */

:root {
  /* ── Design tokens ───────────────────────────────────── */
  --color-brand: #084632;
  --color-brand-light: #0e6c51;
  --color-accent: #d4af37;
  --color-accent-hover: #bda030;
  --color-ink: #0f172a;
  --color-body: #334155;
  --color-muted: #64748b;
  --color-line: #e6e8ec;
  --color-bg: #ffffff;
  --color-surface: #f8faf9;
  --color-surface-hover: #f1f3f0;
  --color-ticker-bg: #0d1310;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --max-w: 1240px;
  --transition: all 0.2s ease-in-out;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
}

body.dark-theme {
  --color-brand: #107e5f;
  --color-brand-light: #169b76;
  --color-accent: #e5c158;
  --color-accent-hover: #f1d479;
  --color-ink: #f4f5f7;
  --color-body: #b9c4d2;
  --color-muted: #8f9bb0;
  --color-line: #27303e;
  --color-bg: #070a10;
  --color-surface: #0f1520;
  --color-surface-hover: #182131;
  --color-ticker-bg: #040609;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* ── Reset ─────────────────────────────────────────────── */
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-bg);
  line-height: 1.62;
  font-size: 16px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-brand-light); }
body.dark-theme a:hover { color: var(--color-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.25;
  margin: 0 0 .5em;
  font-weight: 700;
}

/* Clamp WP block editor media to container width */
.art-body figure,
.single-article figure,
.art-hero-image { margin-left: 0; margin-right: 0; }
.art-body .wp-block-image,
.art-body .wp-block-image img,
.art-body .wp-block-video,
.art-body .wp-block-embed,
.art-body iframe {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ── Container ─────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 600px) {
  .container { padding-left: 18px; padding-right: 18px; }
}

/* Space between sticky nav bar and page content */
.site-main { padding-top: 28px; }
@media (max-width: 600px) { .site-main { padding-top: 20px; } }

/* ── Skip link ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-brand);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 20px; top: 0; }

/* ================================================================
   HEADER — 1. Top utility panel (desktop only)
   ================================================================ */
.top-panel {
  display: none;
  background: var(--color-ticker-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.74rem;
  color: rgba(255,255,255,0.55);
  padding: 7px 0;
}
@media (min-width: 992px) {
  .top-panel { display: block; }
}
.top-panel .container { display: flex; justify-content: space-between; align-items: center; }
.top-panel ul.top-panel-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0;
  color: rgba(255,255,255,0.55);
}
.top-panel ul.top-panel-links li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
}
.top-panel ul.top-panel-links li:first-child { padding-left: 0; }
.top-panel .top-panel-sep {
  color: rgba(255,255,255,0.18);
  padding: 0 !important;
  font-size: 0.9em;
  user-select: none;
}
.top-panel a { color: rgba(255,255,255,0.75); font-weight: 600; letter-spacing: 0.04em; }
.top-panel a:hover { color: var(--color-accent); }
.top-panel-icon { width: 13px; height: 13px; fill: rgba(255,255,255,0.4); flex-shrink: 0; }
.top-panel-social { display: flex; gap: 16px; align-items: center; }
.top-panel-social a { display: flex; align-items: center; color: rgba(255,255,255,0.42); }
.top-panel-social a:hover { color: var(--color-accent); }
.top-panel-social svg { width: 14px; height: 14px; fill: currentColor; }

/* ================================================================
   HEADER — 2. Brand masthead
   ================================================================ */
.brand-header {
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg);
}
.brand-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.brand {
  text-align: center;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.brand-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.brand-logo img, .custom-logo {
  max-height: 44px;
  width: auto;
  display: block;
}
.brand .site-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2.3rem);
  font-weight: 800;
  margin: 0;
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  white-space: nowrap;
}
body.dark-theme .brand .site-title { color: var(--color-ink); }
.brand .site-tagline, .brand p {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-muted);
  margin: 4px 0 0;
  font-weight: 600;
  display: none;
}
@media (min-width: 992px) {
  .brand-header { padding: 30px 0 18px; }
  .brand-logo img, .custom-logo { max-height: 72px; }
  .brand .site-tagline, .brand p { display: block !important; }
}

/* ── Header action buttons ─────────────────────────────── */
.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 1;
  justify-content: flex-end;
}
.subscribe-btn {
  background: var(--color-brand);
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid var(--color-brand);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: var(--transition);
}
.subscribe-btn:hover {
  background: var(--color-brand-light);
  border-color: var(--color-brand-light);
  transform: translateY(-1px);
}
body.dark-theme .subscribe-btn {
  background: var(--color-accent);
  color: #0d1310 !important;
  border-color: var(--color-accent);
}
body.dark-theme .subscribe-btn:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.theme-toggle-btn,
.search-toggle-btn {
  background: none;
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
}
.theme-toggle-btn svg,
.search-toggle-btn svg { width: 16px; height: 16px; fill: currentColor; }
.theme-toggle-btn .sun-icon { display: none; }
body.dark-theme .theme-toggle-btn .moon-icon { display: none; }
body.dark-theme .theme-toggle-btn .sun-icon { display: block; }
.theme-toggle-btn:hover,
.search-toggle-btn:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: rgba(8, 70, 50, 0.05);
}
body.dark-theme .theme-toggle-btn:hover,
body.dark-theme .search-toggle-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(229, 193, 88, 0.07);
}

/* ── Hamburger menu toggle ─────────────────────────────── */
.menu-toggle {
  display: flex;
  background: none;
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.menu-toggle svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.menu-toggle .icon-hamburger { display: block; }
.menu-toggle .icon-close     { display: none; }
.menu-toggle[aria-expanded="true"] .icon-hamburger { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close     { display: block; }
@media (min-width: 992px) {
  .menu-toggle { display: none; }
}

/* ================================================================
   HEADER — 3. Sticky navigation bar
   ================================================================ */
.navigation-wrapper {
  background: var(--color-bg);
  border-bottom: 3px solid var(--color-brand);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}
body.scrolled .navigation-wrapper { box-shadow: var(--shadow-md); }
body.admin-bar .navigation-wrapper { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .navigation-wrapper { top: 46px; }
}
@media screen and (max-width: 600px) {
  body.admin-bar .navigation-wrapper { top: 0; }
}

.nav-inner { display: flex; align-items: center; justify-content: center; }

.primary-nav,
.primary-nav ul,
.primary-nav .menu,
.primary-nav .primary-menu-fallback {
  display: flex;
  list-style: none !important;
  list-style-type: none !important;
  gap: 2px;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.primary-nav ul::-webkit-scrollbar { display: none; }
.primary-nav li,
.primary-nav ul li,
.primary-nav .menu li,
.primary-nav .primary-menu-fallback li {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: inline-block;
  flex-shrink: 0;
}
.primary-nav a {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--color-ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  padding: 13px 13px;
  text-decoration: none;
  position: relative;
}
.primary-nav a:hover,
.primary-nav li.current-menu-item a,
.primary-nav li.current-cat a { color: var(--color-brand); }
body.dark-theme .primary-nav a:hover,
body.dark-theme .primary-nav li.current-menu-item a,
body.dark-theme .primary-nav li.current-cat a { color: var(--color-accent); }
.primary-nav > ul > li > a::after,
.primary-nav > .menu > li > a::after,
.primary-nav > .primary-menu-fallback > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background: var(--color-brand);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}
body.dark-theme .primary-nav > ul > li > a::after,
body.dark-theme .primary-nav > .menu > li > a::after {
  background: var(--color-accent);
}
.primary-nav > ul > li > a:hover::after,
.primary-nav > ul > li.current-menu-item > a::after,
.primary-nav > ul > li.current-cat > a::after,
.primary-nav > .menu > li > a:hover::after,
.primary-nav > .menu > li.current-menu-item > a::after,
.primary-nav > .menu > li.current-cat > a::after,
.primary-nav > .primary-menu-fallback > li > a:hover::after {
  transform: scaleX(1);
}

/* ── Slide-down search bar ─────────────────────────────── */
.header-search-bar {
  display: none;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
  padding: 12px 0;
}
.header-search-bar.is-open { display: block; }
.header-search-bar .container { display: flex; justify-content: center; }
.header-search-bar form { width: 100%; max-width: 600px; }

/* ── Mobile glass navigation panel ─────────────────────── */
@media (max-width: 991px) {
  .navigation-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100dvh;
    z-index: 300;
    overflow-y: auto;
    overflow-x: hidden;
    border-bottom: none;
    background: rgba(248, 250, 249, 0.85);
    backdrop-filter: blur(32px) saturate(160%);
    -webkit-backdrop-filter: blur(32px) saturate(160%);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
    transform: translateX(105%);
    visibility: hidden;
    transition:
      transform  0.38s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0s   linear 0.38s;
  }
  .navigation-wrapper.nav-is-open {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.18);
    transition:
      transform  0.38s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0s   linear 0s;
  }
  body.dark-theme .navigation-wrapper {
    background: rgba(7, 10, 16, 0.88);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.5);
  }
  body.admin-bar .navigation-wrapper { top: 46px; height: calc(100dvh - 46px); }
  body.admin-bar .navigation-wrapper .nav-panel-header { top: 0; }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 299;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.38s ease;
  }
  .nav-backdrop.is-visible { opacity: 1; pointer-events: auto; }

  .navigation-wrapper .container { max-width: 100%; margin: 0; padding: 0; }
  .nav-inner {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
  }
  .nav-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    background: inherit;
    backdrop-filter: inherit;
    -webkit-backdrop-filter: inherit;
    z-index: 1;
  }
  body.dark-theme .nav-panel-header { border-bottom-color: rgba(255, 255, 255, 0.08); }
  .nav-panel-logo { display: flex; align-items: center; overflow: visible; }
  .nav-panel-logo .custom-logo-link { display: flex; align-items: center; line-height: 0; }
  .nav-panel-logo img,
  .nav-panel-logo .custom-logo {
    max-height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
  }
  .nav-panel-site-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-brand);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .nav-panel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--color-brand);
    background: transparent;
    cursor: pointer;
    color: var(--color-brand);
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
  }
  .nav-panel-close:hover {
    background: var(--color-brand);
    color: #fff;
    transform: rotate(90deg) scale(1.08);
  }
  body.dark-theme .nav-panel-close { border-color: var(--color-accent); color: var(--color-accent); }
  body.dark-theme .nav-panel-close:hover { background: var(--color-accent); color: #070a10; border-color: var(--color-accent); }
  .nav-panel-close svg { width: 16px; height: 16px; fill: currentColor; }

  .primary-nav { display: block; width: 100%; flex: 1; }
  .primary-nav ul,
  .primary-nav .menu,
  .primary-nav .primary-menu-fallback {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 8px 0;
    overflow-x: visible;
  }
  .primary-nav li { width: 100%; display: block; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
  body.dark-theme .primary-nav li { border-bottom-color: rgba(255, 255, 255, 0.06); }
  .primary-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 22px;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-ink);
    border-bottom: none;
    transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
  }
  .primary-nav a::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--color-brand);
    border-radius: 2px;
    opacity: 0;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
  }
  .primary-nav a:hover,
  .primary-nav li.current-menu-item a,
  .primary-nav li.current-cat a {
    color: var(--color-brand);
    background: rgba(8, 70, 50, 0.06);
    padding-left: 18px;
  }
  .primary-nav a:hover::before,
  .primary-nav li.current-menu-item a::before,
  .primary-nav li.current-cat a::before { opacity: 1; }
  body.dark-theme .primary-nav a:hover,
  body.dark-theme .primary-nav li.current-menu-item a,
  body.dark-theme .primary-nav li.current-cat a {
    color: var(--color-accent);
    background: rgba(229, 193, 88, 0.08);
  }
  body.dark-theme .primary-nav a::before { background: var(--color-accent); }

  .nav-panel-social {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  body.dark-theme .nav-panel-social { border-top-color: rgba(255, 255, 255, 0.06); }
  .nav-social-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 6px 12px;
    color: var(--color-body);
    font-size: 0.72rem;
    font-weight: 600;
  }
  body.dark-theme .nav-social-pill {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
  }
  .nav-social-icon { width: 14px; height: 14px; fill: currentColor; }
  .nav-social-name { line-height: 1; }
}

@media (max-width: 600px) {
  .navigation-wrapper { width: 100%; }
}

/* ================================================================
   HOMEPAGE HERO — fluid magazine grid
   ================================================================ */
.nln-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
@media (min-width: 768px) {
  .nln-hero-grid {
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
  }
}
@media (min-width: 992px) {
  .nln-hero-grid { margin-bottom: 44px; }
}

.nln-hero-left { min-width: 0; }

/* Main hero card */
.nln-hero-main {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  background: #000;
}
@media (min-width: 768px) { .nln-hero-main { aspect-ratio: 4 / 3; } }
.nln-hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.nln-hero-main:hover img { transform: scale(1.03); }
.nln-hero-main-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  padding: 60px 22px 20px;
  color: #fff;
}
.nln-hero-main-caption .kicker {
  display: inline-block;
  background: var(--color-accent);
  color: #0d1310;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.nln-hero-main-caption h2 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.4vw, 1.9rem);
  color: #fff;
  line-height: 1.25;
  margin: 0 0 8px;
  font-weight: 800;
}
.nln-hero-main-caption h2 a { color: #fff; }
.nln-hero-main-caption h2 a:hover { color: var(--color-accent); }
.nln-hero-main-caption .meta {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.75);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Hero side list */
.nln-hero-sidelist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 768px) {
  .nln-hero-sidelist { gap: 16px; }
}
.sidelist-item {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  align-items: start;
}
@media (min-width: 768px) {
  .sidelist-item { grid-template-columns: 120px 1fr; gap: 16px; }
}
.sidelist-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface);
}
.sidelist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.sidelist-item:hover .sidelist-thumb img { transform: scale(1.05); }
.sidelist-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
}
.sidelist-title a { color: var(--color-ink); }
.sidelist-title a:hover { color: var(--color-brand-light); }
body.dark-theme .sidelist-title a:hover { color: var(--color-accent); }
.sidelist-meta { font-size: 0.72rem; color: var(--color-muted); }
.sidelist-content .kicker {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}
body.dark-theme .sidelist-content .kicker { color: var(--color-accent); }

/* ================================================================
   HOMEPAGE SLIDER — fluid height
   ================================================================ */
.nln-slider-container {
  position: relative;
  width: 100%;
  height: clamp(320px, 46vw, 560px);
  overflow: hidden;
  margin-bottom: 30px;
  background: #000;
  border-radius: var(--radius-lg);
}
.nln-slider-wrapper { position: relative; width: 100%; height: 100%; }
.nln-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.6s ease-in-out;
}
.nln-slide.active { opacity: 1; z-index: 2; pointer-events: auto; }
.nln-slide-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); }
.nln-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 5vw 26px 22px;
  color: #ffffff;
  z-index: 3;
  transform: none !important;
  opacity: 1 !important;
}
.nln-slide-caption .kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.nln-slide-caption h2 {
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
}
.nln-slide-caption h2 a { color: #fff; }
.nln-slide-caption h2 a:hover { color: var(--color-accent); }
.nln-slide-caption .meta { font-size: 0.78rem; color: #ccc; display: flex; gap: 8px; flex-wrap: wrap; }
.nln-slide-caption .meta a { color: #fff; }
.nln-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: var(--transition);
}
.nln-slider-arrow:hover { background: var(--color-brand); }
.nln-slider-arrow-prev { left: 12px; }
.nln-slider-arrow-next { right: 12px; }
.nln-slider-arrow svg { width: 18px; height: 18px; fill: currentColor; }
.nln-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.nln-slider-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  padding: 0;
  border-radius: 50%;
}
.nln-slider-dot.active { background: var(--color-accent); width: 18px; border-radius: 4px; }

/* ================================================================
   CONTENT LAYOUT + SECTION TITLES
   ================================================================ */
.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 10px 0 60px;
}
@media (min-width: 992px) {
  .content-layout { grid-template-columns: 2.2fr 1fr; }
}

.nln-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 8px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  position: relative;
}
.nln-section-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--color-brand);
}
body.dark-theme .nln-section-title::after { background: var(--color-accent); }

/* ================================================================
   MODERN GRID — magazine cards
   ================================================================ */
.nln-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}

.post-card {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-brand);
}
.post-card .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .thumb img { transform: scale(1.05); }

.post-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 16px 18px 18px;
}

.post-card .kicker {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: inline-block;
}
body.dark-theme .post-card .kicker { color: var(--color-accent); }

.post-card h2, .post-card h3 {
  font-size: 1.1rem;
  margin: 0 0 10px;
  font-weight: 700;
  line-height: 1.35;
  font-family: var(--font-display);
}
.post-card h2 a, .post-card h3 a { color: var(--color-ink); }

.post-card .meta {
  font-size: 0.76rem;
  color: var(--color-muted);
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  gap: 8px;
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.sidebar { display: flex; flex-direction: column; gap: 36px; }
.widget {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px;
}
.widget-title {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 8px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  position: relative;
}
.widget-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-brand);
}
body.dark-theme .widget-title::after { background: var(--color-accent); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--color-line);
  font-size: 0.95rem;
  line-height: 1.4;
  font-family: var(--font-display);
}
.widget li a { font-weight: 600; color: var(--color-ink); }
.widget li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* ================================================================
   SINGLE POST — premium editorial article
   ================================================================ */
.single-article { max-width: 100%; }

.art-header { margin-bottom: 28px; }
.art-kicker {
  display: inline-block;
  background: var(--color-brand);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  transition: background 0.18s;
}
.art-kicker:hover { background: var(--color-brand-light); color: #fff; }
.art-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-ink);
  margin: 0 0 20px;
}
.art-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.art-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.88rem;
}
.art-author-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-line);
}
.art-author:hover .art-author-name { color: var(--color-brand); }
.art-author-name { transition: color 0.18s; }
.art-meta-sep { color: var(--color-line); font-size: 1rem; user-select: none; }
.art-date { font-size: 0.84rem; color: var(--color-muted); }
.art-reading-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.84rem;
  color: var(--color-muted);
}
.art-reading-time svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

.art-hero-image { margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden; }
.art-hero-image img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.art-hero-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--color-surface);
  font-size: 0.78rem;
  color: var(--color-muted);
  font-style: italic;
  border-top: 1px solid var(--color-line);
}
.art-hero-caption svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

.art-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-body);
  margin-bottom: 32px;
  max-width: var(--max-w-post, 800px);
}
.art-body p { margin: 0 0 1.4em; }
.art-body h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2em 0 0.6em;
  color: var(--color-ink);
}
.art-body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.6em 0 0.5em; color: var(--color-ink); }
.art-body blockquote {
  border-left: 4px solid var(--color-brand);
  background: var(--color-surface);
  margin: 1.8em 0;
  padding: 18px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-body);
}
body.dark-theme .art-body blockquote { border-left-color: var(--color-accent); }
.art-body ul, .art-body ol { padding-left: 1.5em; margin: 0 0 1.4em; }
.art-body li { margin-bottom: 0.4em; }
.art-body a {
  color: var(--color-brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.art-body a:hover { color: var(--color-brand-light); }

/* Drop cap — first letter of article body */
.art-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 0.82;
  float: left;
  margin: 4px 10px 0 0;
  color: var(--color-brand);
  padding: 2px 0;
}
.art-body > p:first-of-type {
  font-size: 1.08rem;
  line-height: 1.82;
  color: var(--color-ink);
}

/* Tags */
.art-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.art-tags-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}
.art-tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--color-line);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--color-muted);
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.art-tag:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: rgba(8, 70, 50, 0.05);
}

/* Share bar */
.art-share-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.art-share-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  flex-shrink: 0;
}
.art-share-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.art-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--color-line);
  border-radius: 50px;
  background: var(--color-bg);
  color: var(--color-body);
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
}
.art-share-btn svg { width: 15px; height: 15px; fill: currentColor; }
.art-share-btn:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.art-share-btn.copy-success { border-color: var(--color-brand); color: var(--color-brand); }

/* Author box */
.art-author-box {
  display: flex;
  gap: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 40px;
}
.art-author-box-avatar {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-line);
}
.art-author-box-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 4px;
}
.art-author-box-bio { font-size: 0.9rem; color: var(--color-muted); line-height: 1.6; margin: 0; }
@media (max-width: 600px) {
  .art-author-box { flex-direction: column; gap: 14px; }
}

/* Previous / next post navigation */
.art-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  margin-bottom: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--color-line);
}
.art-post-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  min-width: 0;
}
.art-post-nav-item:hover {
  border-color: var(--color-brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.art-post-nav-next { justify-content: flex-end; text-align: right; }
.art-post-nav-placeholder { background: transparent; border-color: transparent; }
.art-post-nav-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
}
.art-post-nav-thumb img { width: 100%; height: 100%; object-fit: cover; }
.art-post-nav-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.art-post-nav-dir {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-brand);
}
.art-post-nav-next .art-post-nav-dir { justify-content: flex-end; }
.art-post-nav-dir svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.art-post-nav-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
@media (max-width: 600px) {
  .art-post-nav { grid-template-columns: 1fr; }
  .art-post-nav-next { text-align: left; justify-content: flex-start; }
  .art-post-nav-next .art-post-nav-dir { justify-content: flex-start; }
  .art-post-nav-thumb { width: 52px; height: 52px; }
}

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 36px 0;
}
.pagination a, .pagination span {
  border: 1px solid var(--color-line);
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.pagination .current {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}
body.dark-theme .pagination .current { background: var(--color-accent); color: #070a10; border-color: var(--color-accent); }

/* ================================================================
   FOOTER — dark editorial
   ================================================================ */
.site-footer {
  --footer-bg: #0d1117;
  --footer-surface: #161b22;
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-ink: #e6edf3;
  --footer-muted: #8b949e;
  --footer-accent: #d4af37;
  --footer-brand: #12b37a;

  background: var(--footer-bg);
  color: var(--footer-ink);
  margin-top: 60px;
}
.footer-top { padding: 60px 0 40px; border-bottom: 1px solid var(--footer-border); }
.footer-top-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
@media (max-width: 960px) {
  .footer-top-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-top-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { padding: 40px 0 28px; }
}
.footer-logo { margin-bottom: 14px; }
.footer-logo img,
.footer-logo .custom-logo {
  max-height: 52px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.5));
  opacity: 0.95;
}
.footer-site-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--footer-brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--footer-accent);
  font-weight: 700;
  margin: 0 0 12px;
}
.footer-about {
  font-size: 0.88rem;
  color: var(--footer-muted);
  line-height: 1.65;
  margin: 0 0 22px;
  max-width: 340px;
}
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--footer-muted);
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.18s ease;
}
.footer-social-btn svg { width: 16px; height: 16px; fill: currentColor; }
.footer-social-btn:hover {
  color: #fff;
  border-color: var(--footer-accent);
  background: var(--footer-accent);
  transform: translateY(-2px);
}
.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--footer-accent);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--footer-border);
}
.footer-nav-list,
.footer-nav-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-nav-list li a,
.footer-nav-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--footer-muted);
  padding: 5px 0;
  border-bottom: none;
  transition: color 0.18s ease, padding-left 0.18s ease;
}
.footer-nav-list li a::before,
.footer-nav-list a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 2px;
  background: var(--footer-accent);
  border-radius: 1px;
  transition: width 0.2s ease;
  flex-shrink: 0;
}
.footer-nav-list li a:hover,
.footer-nav-list a:hover { color: var(--footer-ink); padding-left: 4px; }
.footer-nav-list li a:hover::before,
.footer-nav-list a:hover::before { width: 12px; }
.footer-widget-col .widget-title,
.footer-widget-col h2,
.footer-widget-col h3 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--footer-accent);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--footer-border);
}
.footer-widget-col,
.footer-widget-col p,
.footer-widget-col li,
.footer-widget-col a {
  font-size: 0.86rem;
  color: var(--footer-muted);
  line-height: 1.6;
}
.footer-widget-col a:hover { color: var(--footer-ink); }
.footer-bottom { padding: 18px 0; background: rgba(0, 0, 0, 0.25); }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.8rem; color: var(--footer-muted); margin: 0; }
.footer-copy a { color: var(--footer-brand); font-weight: 600; }
.footer-copy a:hover { color: var(--footer-accent); }
.footer-policy-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-policy-links a { font-size: 0.78rem; color: var(--footer-muted); transition: color 0.18s ease; }
.footer-policy-links a:hover { color: var(--footer-accent); }
@media (max-width: 600px) {
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-policy-links { gap: 14px; }
}

/* ================================================================
   CATEGORY / ARCHIVE PAGE
   ================================================================ */
.cat-hero {
  background: var(--color-ink);
  color: #e6edf3;
  padding: 48px 0 42px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.cat-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    rgba(255,255,255,0.015) 0px,
    rgba(255,255,255,0.015) 1px,
    transparent 1px,
    transparent 12px
  );
  pointer-events: none;
}
.cat-hero::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--color-brand);
}
body.dark-theme .cat-hero { background: #060809; }
.cat-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cat-hero-text { flex: 1; }
.cat-hero-eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}
.cat-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin: 0 0 14px;
  text-transform: capitalize;
}
.cat-hero-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.65;
  margin: 0;
  max-width: 640px;
}
.cat-hero-desc strong { color: rgba(255,255,255,0.85); font-weight: 600; }
.cat-hero-count {
  flex-shrink: 0;
  text-align: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 18px 28px;
  min-width: 100px;
}
.cat-hero-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}
.cat-hero-count-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}
@media (max-width: 700px) {
  .cat-hero { padding: 32px 0 28px; margin-bottom: 24px; }
  .cat-hero-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cat-hero-count { align-self: flex-start; padding: 12px 20px; }
  .cat-hero-number { font-size: 2rem; }
}

.archive-page-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--color-brand);
}
.archive-page-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0 0 10px; }
.archive-intro { color: var(--color-muted); font-size: 0.95rem; line-height: 1.65; margin: 0; }

.archive-main { flex: 1; min-width: 0; }

.archive-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  margin-bottom: 40px;
  min-height: 380px;
  transition: box-shadow 0.22s ease;
}
.archive-featured:hover { box-shadow: var(--shadow-lg); }
.archive-featured-img { display: block; position: relative; overflow: hidden; }
.archive-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.archive-featured:hover .archive-featured-img img { transform: scale(1.03); }
.archive-featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-brand);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.archive-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px;
  gap: 14px;
}
.archive-featured-date {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  text-transform: uppercase;
}
.archive-featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.22;
  margin: 0;
}
.archive-featured-title a { color: var(--color-ink); text-decoration: none; }
.archive-featured-title a:hover { color: var(--color-brand); }
.archive-featured-excerpt { font-size: 0.92rem; color: var(--color-body); line-height: 1.7; margin: 0; }
.archive-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
}
.archive-featured-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted);
}
.archive-author-avatar {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.archive-featured-author a { color: var(--color-brand); }
.archive-featured-author a:hover { color: var(--color-brand-light); }
.archive-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand);
  white-space: nowrap;
  transition: gap 0.18s ease, color 0.18s;
}
.archive-read-more svg { width: 16px; height: 16px; fill: currentColor; transition: transform 0.18s ease; }
.archive-read-more:hover { color: var(--color-brand-light); gap: 8px; }
.archive-read-more:hover svg { transform: translateX(2px); }
body.dark-theme .archive-read-more { color: var(--color-accent); }
body.dark-theme .archive-read-more:hover { color: var(--color-accent-hover); }
@media (max-width: 991px) {
  .archive-featured { grid-template-columns: 1fr; min-height: unset; }
  .archive-featured-img { aspect-ratio: 16 / 9; max-height: 300px; }
  .archive-featured-body { padding: 24px; gap: 10px; }
}

.archive-section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 36px 0 24px;
}
.archive-section-label::before,
.archive-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-line);
}
.archive-section-label span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}

.archive-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
  margin-bottom: 40px;
}

.archive-empty { text-align: center; padding: 72px 24px; color: var(--color-muted); }
.archive-empty svg { width: 48px; height: 48px; fill: var(--color-line); margin-bottom: 16px; }
.archive-empty p { font-size: 1.05rem; margin: 0 0 24px; }
.btn-primary {
  display: inline-block;
  background: var(--color-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 28px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--color-brand-light); color: #fff; transform: translateY(-1px); }

/* ================================================================
   CATEGORY POSTS LIST (row cards)
   ================================================================ */
.category-block { margin-bottom: 50px; }
.category-block:last-child { margin-bottom: 0; }

.category-section-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 6px;
}
.category-title {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.category-title a { color: var(--color-ink); }
.category-title-bar {
  display: inline-block;
  width: 5px;
  height: 20px;
  background: var(--color-brand);
  border-radius: 2px;
}
body.dark-theme .category-title-bar { background: var(--color-accent); }

.category-view-more {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid var(--color-line);
  padding-top: 20px;
}
.btn-view-more {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 24px;
  background: var(--color-brand);
  color: #fff !important;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-view-more:hover { background: var(--color-brand-light); transform: translateY(-1px); }
body.dark-theme .btn-view-more { background: var(--color-accent); color: #070a10 !important; }
body.dark-theme .btn-view-more:hover { background: var(--color-accent-hover); }

.nln-category-posts-list { display: flex; flex-direction: column; gap: 26px; }

.post-list-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--color-line);
}
@media (min-width: 560px) {
  .post-list-card { grid-template-columns: 220px 1fr; gap: 20px; }
}
.post-list-card:last-child { border-bottom: none; padding-bottom: 0; }

.list-card-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
}
.list-card-thumb { width: 100%; height: 100%; }
.list-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-list-card:hover .list-card-thumb img { transform: scale(1.04); }
.list-card-thumb-placeholder { width: 100%; height: 100%; background-color: var(--color-surface); }

.list-card-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--color-brand);
  color: #ffffff !important;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  z-index: 2;
  line-height: 1;
  border-radius: 0 var(--radius-sm) 0 0;
}
body.dark-theme .list-card-badge { background: var(--color-accent); color: #070a10 !important; }

.list-card-content { display: flex; flex-direction: column; }
.list-card-title {
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px;
}
.list-card-title a { color: var(--color-ink); }
.list-card-title a:hover { color: var(--color-brand-light); }
body.dark-theme .list-card-title a:hover { color: var(--color-accent); }
.list-card-excerpt { font-size: 0.85rem; line-height: 1.45; color: var(--color-muted); margin-bottom: 8px; }
body.dark-theme .list-card-excerpt { color: var(--color-body); }
.list-card-meta {
  font-size: 0.76rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.list-card-meta .meta-by,
.list-card-meta .meta-separator,
.list-card-meta .meta-date { color: var(--color-muted); }
.list-card-meta .meta-author {
  color: var(--color-brand);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
body.dark-theme .list-card-meta .meta-author { color: var(--color-accent); }

@media (max-width: 640px) {
  .post-list-card-featured .featured-thumb-wrapper { width: 100%; aspect-ratio: 16 / 9; }
  .post-list-card-featured .featured-card-title { font-size: 1.15rem; line-height: 1.3; }
}

/* Featured first item in subsequent categories */
.post-list-card.post-list-card-featured {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-line);
}
.post-list-card-featured .featured-thumb-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
}
.post-list-card-featured .featured-card-title {
  font-size: 1.38rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 8px;
}

/* ================================================================
   BREADCRUMBS
   ================================================================ */
.breadcrumbs { padding: 12px 0 16px; margin-bottom: 4px; }
.breadcrumbs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--color-muted);
  white-space: nowrap;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: var(--color-line);
  font-size: 1rem;
  font-weight: 400;
  margin: 0 6px;
  flex-shrink: 0;
  line-height: 1;
}
.breadcrumb-item a { color: var(--color-muted); transition: color 0.18s ease; }
.breadcrumb-item a:hover { color: var(--color-brand); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb-current {
  color: var(--color-ink);
  font-weight: 600;
  min-width: 0;
}
.breadcrumb-current-text {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 420px;
}
@media (max-width: 600px) {
  .breadcrumbs { padding: 8px 0 12px; }
  .breadcrumb-item { font-size: 0.68rem; }
  .breadcrumb-item + .breadcrumb-item::before { margin: 0 4px; font-size: 0.85rem; }
  .breadcrumb-current-text { max-width: 160px; }
}

/* ================================================================
   COMMENTS — premium editorial overrides
   ================================================================ */
.comments-area { border: none; padding: 0; margin-top: 0; }
.comments-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-ink);
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-brand);
}
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment-list > li { margin-bottom: 0; }
.comment-body {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 16px;
  padding: 20px 0;
  border-top: 1px solid var(--color-line);
}
.comment-list > li:first-child .comment-body { border-top: none; }
.comment-body .avatar {
  grid-row: 1 / 4;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  border: 2px solid var(--color-line);
  object-fit: cover;
}
.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}
.comment-author .fn { font-weight: 700; font-style: normal; font-size: 0.9rem; color: var(--color-ink); }
.comment-metadata { font-size: 0.75rem; color: var(--color-muted); }
.comment-metadata a { color: var(--color-muted); }
.comment-metadata a:hover { color: var(--color-brand); }
.comment-content { grid-column: 2; margin-top: 8px; font-size: 0.94rem; line-height: 1.72; color: var(--color-body); }
.comment-content p { margin: 0 0 0.8em; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-reply { grid-column: 2; margin-top: 10px; }
.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand);
  transition: color 0.18s, gap 0.18s;
}
.comment-reply-link:hover { color: var(--color-brand-light); gap: 7px; }
.children { list-style: none; padding-left: 64px; margin: 0; }
@media (max-width: 600px) { .children { padding-left: 20px; } }

.comment-respond {
  margin-top: 8px;
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
}
#reply-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-ink);
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-brand);
}
#reply-title small {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin-left: 10px;
  display: inline;
}
#reply-title small a { color: var(--color-brand); }
.comment-notes, .logged-in-as { font-size: 0.82rem; color: var(--color-muted); margin-bottom: 20px; line-height: 1.6; }
.logged-in-as a, .comment-notes a { color: var(--color-brand); }

.comment-form-author, .comment-form-email {
  display: inline-block;
  width: calc(50% - 10px);
  vertical-align: top;
  margin-right: 16px;
  box-sizing: border-box;
}
.comment-form-email { margin-right: 0; }
@media (max-width: 600px) {
  .comment-form-author, .comment-form-email { width: 100%; margin-right: 0; display: block; }
}
.comment-form p { margin-bottom: 18px; }
.comment-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-ink);
  margin-bottom: 6px;
}
.comment-form .required { color: var(--color-brand); margin-left: 2px; }
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea {
  width: 100%;
  background: var(--color-bg);
  color: var(--color-ink);
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  outline: none;
  box-sizing: border-box;
}
.comment-form input[type=text]:focus,
.comment-form input[type=email]:focus,
.comment-form input[type=url]:focus,
.comment-form textarea:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(8, 70, 50, 0.12);
}
body.dark-theme .comment-form input[type=text]:focus,
body.dark-theme .comment-form input[type=email]:focus,
body.dark-theme .comment-form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(229, 193, 88, 0.12);
}
.comment-form textarea { min-height: 130px; resize: vertical; line-height: 1.65; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-form-cookies-consent input[type=checkbox] { margin-top: 3px; accent-color: var(--color-brand); flex-shrink: 0; }
.comment-form-cookies-consent label { font-size: 0.78rem; color: var(--color-muted); font-weight: 400; letter-spacing: 0; }
.comment-form input[type=submit],
#commentform .submit {
  background: var(--color-brand);
  border: none;
  border-radius: 50px;
  color: #fff;
  padding: 12px 36px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(8, 70, 50, 0.28);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  font-family: var(--font-body);
  display: inline-block;
}
.comment-form input[type=submit]:hover {
  background: var(--color-brand-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 70, 50, 0.38);
}
body.dark-theme .comment-form input[type=submit] { background: var(--color-accent); color: #0d1117; box-shadow: 0 2px 10px rgba(229, 193, 88, 0.25); }
body.dark-theme .comment-form input[type=submit]:hover { box-shadow: 0 4px 18px rgba(229, 193, 88, 0.4); }
@media (max-width: 600px) {
  .comment-respond { padding: 20px; }
  .comment-body { grid-template-columns: 38px 1fr; gap: 0 12px; }
  .comment-body .avatar { width: 38px !important; height: 38px !important; }
  .comment-form input[type=submit] { width: 100%; text-align: center; }
}
.logged-in-as, .comment-notes { display: none !important; }

/* ================================================================
   ADS
   ================================================================ */
.nln-ad-container {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
  padding: 15px;
  position: relative;
  text-align: center;
}
.ad-advertisement-label {
  display: block;
  font-size: 0.65rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.nln-ad-container.sidebar-ad { margin: 0 0 20px; padding: 10px; }
.nln-ad-container.before-content-ad { margin-top: 0; margin-bottom: 25px; }
.nln-ad-container.after-content-ad { margin-top: 25px; margin-bottom: 0; }

/* ================================================================
   UTILITY + ENHANCEMENTS
   ================================================================ */
.visually-hidden {
  position: absolute !important;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.search-form { display: flex; }
.search-form input[type="search"] {
  border: 1px solid var(--color-line);
  padding: 8px 12px;
  font-size: 0.9rem;
  background: var(--color-bg);
  color: var(--color-ink);
  width: 100%;
  border-radius: var(--radius-sm);
}
.search-form button {
  border: 1px solid var(--color-brand);
  background: var(--color-brand);
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
body.dark-theme .search-form button { border-color: var(--color-accent); background: var(--color-accent); color: #070a10; }

/* Back to top */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-brand);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(8, 70, 50, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.18s ease, box-shadow 0.2s ease;
  z-index: 8000;
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover {
  background: var(--color-brand-light);
  box-shadow: 0 6px 22px rgba(8, 70, 50, 0.45);
  transform: translateY(-2px);
}
#back-to-top svg { width: 20px; height: 20px; fill: currentColor; }
body.dark-theme #back-to-top { background: var(--color-accent); color: #0d1117; box-shadow: 0 4px 16px rgba(229, 193, 88, 0.3); }
