﻿/* =========================================================
   NLN News — Premium Editorial Stylesheet (Newspaper Design)
   Design: Modern Newspaper Layout with Forest Green Branding
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Design Tokens */
  --color-brand: #0b533e;       /* Forest Green */
  --color-brand-light: #0e6c51;
  --color-accent: #d4af37;      /* Warm Gold/Amber */
  --color-accent-hover: #bda030;
  --color-ink: #111111;         /* Off-black for text */
  --color-body: #333333;        /* Dark grey for reading */
  --color-muted: #666666;
  --color-line: #e2e8f0;        /* Soft aesthetic border color */
  --color-bg: #ffffff;          /* Pure white body background */
  --color-surface: #faf9f6;     /* Light warm background for widgets/panels */
  --color-surface-hover: #f1f0ec;
  
  --font-display: "Lora", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 8px;                /* Modern aesthetic image border-radius */
  --radius-sm: 4px;
  --radius-lg: 12px;
  --max-w: 1200px;
  --max-w-post: 800px;
  
  --transition: all 0.2s ease-in-out;
}

body.dark-theme {
  /* Dark Mode Palette */
  --color-brand: #107e5f;
  --color-brand-light: #169b76;
  --color-accent: #e5c158;
  --color-accent-hover: #f1d479;
  --color-ink: #f8fafc;
  --color-body: #cbd5e1;
  --color-muted: #94a3b8;
  --color-line: #2d3748;
  --color-bg: #090d13;
  --color-surface: #111723;
  --color-surface-hover: #1b2435;
}

* { 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;
  overflow-x: hidden;
}

/* Prevent html-level scrollbar from stealing right-side space on mobile */
html { overflow-x: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-brand-light); }

/* Reset browser default figure margin (Chrome: 1em 40px) to prevent
   left/right asymmetry inside post content on mobile */
.art-body figure,
.single-article figure,
.art-hero-image {
  margin-left: 0;
  margin-right: 0;
}

/* Clamp all WP block editor media to container width */
.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;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Space between the sticky nav bar and the page content */
.site-main {
  padding-top: 36px;
}
@media (max-width: 900px) {
  .site-main { padding-top: 24px; }
}

/* Enforce symmetric horizontal padding on mobile */
@media (max-width: 600px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.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; }

/* ---------- Masthead Layout (Punch style) ---------- */

/* 1. Top Panel */
.top-panel {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
  font-size: 0.78rem;
  color: var(--color-muted);
  padding: 6px 0;
}
.top-panel .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-panel ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 16px;
}

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

/* Social Buttons */
.social-buttons ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
}
.social-buttons svg {
  width: 22px;
  height: 22px;
  fill: var(--color-muted);
  transition: var(--transition);
}
.social-buttons a:hover svg {
  fill: var(--color-brand);
}

/* Center Brand / Logo */
.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: 18px;
}
.brand-logo img, .custom-logo {
  max-height: 65px;
  width: auto;
  display: block;
}
.brand-text {
  text-align: left;
}
.brand .site-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}
body.dark-theme .brand .site-title {
  color: var(--color-ink);
}
.brand .site-tagline, .brand p {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-muted);
  margin: 4px 0 0;
  font-weight: 600;
}

/* Header CTAs */
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.subscribe-btn {
  background: var(--color-brand);
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--color-brand);
  transition: var(--transition);
}
.subscribe-btn:hover {
  background: var(--color-brand-light);
  border-color: var(--color-brand-light);
}
body.dark-theme .subscribe-btn {
  background: var(--color-accent);
  color: var(--color-bg) !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 {
  background: none;
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.theme-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; }

.search-toggle-btn {
  background: none;
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.search-toggle-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Hamburger / Menu Toggle — hidden on desktop, shown only in mobile brand bar */
.menu-toggle {
  display: none;           /* desktop: hidden — nav sits inline */
  background: none;
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  width: 34px;
  height: 34px;
  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;
}
/* Show hamburger by default, hide X */
.menu-toggle .icon-hamburger { display: block; }
.menu-toggle .icon-close     { display: none;  }
/* When menu is open, swap icons */
.menu-toggle[aria-expanded="true"] .icon-hamburger { display: none;  }
.menu-toggle[aria-expanded="true"] .icon-close     { display: block; }

/* Nav inner wrapper — centred flex on desktop */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3. Bottom Navigation Bar */
.navigation-wrapper {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  border-top: 1px solid var(--color-line);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

/* Sticky Header Style on Scroll */
body.scrolled .navigation-wrapper {
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
/* WordPress Admin Bar Compatibility */
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; }
}

.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: 20px;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.primary-nav li,
.primary-nav ul li,
.primary-nav .menu li,
.primary-nav .primary-menu-fallback li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
  display: inline-block;
}
.primary-nav a {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  padding: 14px 10px;
  text-decoration: none;
}
.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);
}

/* Dynamic slide-down Search Box */
.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;
}

/* ================================================================
   DESKTOP HEADER REDESIGN — Premium Editorial Style (≥ 901px)
   ================================================================ */
@media (min-width: 901px) {

  /* ── 1. Top Utility Bar: dark themed ──────────────────────── */
  .top-panel {
    background: #111111;
    border-bottom: 3px solid var(--color-brand);
    padding: 8px 0;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.55);
  }
  body.dark-theme .top-panel {
    background: #060809;
  }
  .top-panel .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  /* Left links list */
  .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;
  }
  /* Right social icons */
  .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);
    transition: color 0.18s ease;
  }
  .top-panel-social a:hover { color: var(--color-accent); }
  .top-panel-social svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
  }

  /* ── 2. Brand Masthead ─────────────────────────────────────── */
  .brand-header {
    padding: 32px 0 0;
    border-bottom: none;
    position: relative;
  }
  /* Gold-accented decorative rule below the masthead */
  .brand-header::after {
    content: '';
    display: block;
    height: 1px;
    margin-top: 26px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      var(--color-line) 10%,
      var(--color-accent) 40%,
      var(--color-accent) 60%,
      var(--color-line) 90%,
      transparent 100%
    );
  }
  body.dark-theme .brand-header::after {
    background: linear-gradient(
      90deg,
      transparent 0%,
      var(--color-line) 10%,
      var(--color-accent) 40%,
      var(--color-accent) 60%,
      var(--color-line) 90%,
      transparent 100%
    );
  }

  /* Use visibility:hidden (not display:none) so the social-buttons div
     still holds its flex space, keeping .brand perfectly centered */
  .social-buttons {
    visibility: hidden;
    pointer-events: none;
  }

  /* Bigger centered logo / site name */
  .brand-logo img, .custom-logo {
    max-height: 80px;
  }
  .brand .site-title {
    font-size: 2.9rem;
    letter-spacing: 0.02em;
  }
  /* Show tagline on desktop */
  .brand .site-tagline, .brand p {
    display: block !important;
    font-size: 0.67rem;
    letter-spacing: 0.32em;
    margin-top: 8px;
  }

  /* Icon buttons — circular border */
  .search-toggle-btn,
  .theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--color-line);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  }
  .search-toggle-btn:hover,
  .theme-toggle-btn:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
    background: rgba(11, 83, 62, 0.05);
  }
  body.dark-theme .search-toggle-btn:hover,
  body.dark-theme .theme-toggle-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(212, 175, 55, 0.06);
  }

  /* Subscribe pill button with subtle glow */
  .subscribe-btn {
    border-radius: 50px;
    padding: 9px 26px;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    box-shadow: 0 2px 10px rgba(11, 83, 62, 0.28);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
                border-color 0.2s ease !important;
  }
  .subscribe-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(11, 83, 62, 0.4);
  }

  /* ── 3. Sticky Navigation Bar ─────────────────────────────── */
  .navigation-wrapper {
    border-top: none;
    border-bottom: 3px solid var(--color-brand);
    background: var(--color-bg);
  }
  body.dark-theme .navigation-wrapper {
    border-bottom-color: var(--color-brand);
  }
  body.scrolled .navigation-wrapper {
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.08);
  }

  /* Centered nav items with more breathing room */
  .nav-inner { justify-content: center; }
  .primary-nav,
  .primary-nav ul,
  .primary-nav .menu,
  .primary-nav .primary-menu-fallback { gap: 0; }

  .primary-nav a {
    padding: 15px 18px;
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    position: relative;
  }
  /* Animated underline indicator — scales in from center on hover */
  .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: 10px;
    right: 10px;
    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);
  }
}

@media (max-width: 900px) {

  /* Hide Top Utility Panel on Mobile to Save Vertical Space */
  .top-panel {
    display: none;
  }

  /* Ultra-Compact Sticky 1-Row Masthead Header (Height ~ 45px) */
  .brand-header {
    padding: 6px 0;
    border-bottom: 1px solid var(--color-line);
    position: sticky;
    top: 0;
    z-index: 102;
    background: var(--color-bg);
  }

  .brand-header .container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  /* Hide Social Icons in Main Bar on Mobile to Keep Header Ultra-Compact */
  .social-buttons {
    display: none;
  }

  /* Logo flush-left on mobile — social buttons are hidden so there is no
     left column to balance; centering would leave dead whitespace on the left. */
  .brand {
    order: 1;
    width: auto;
    flex-grow: 0;
    justify-content: flex-start;
    margin: 0;
  }

  .brand-container {
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
  }

  .brand-logo img, .custom-logo {
    max-height: 32px;
    width: auto;
  }

  .brand .site-title {
    font-size: 1.15rem;
    line-height: 1;
    white-space: nowrap;
  }

  .brand .site-tagline, .brand p {
    display: none;
  }

  .brand-text {
    text-align: left;
  }

  /* Compact Right Action Bar */
  .header-cta {
    order: 2;
    width: auto;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
  }

  .subscribe-btn {
    padding: 5px 10px;
    font-size: 0.68rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
  }

  .search-toggle-btn,
  .theme-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
  }

  .search-toggle-btn svg,
  .theme-toggle-btn svg {
    width: 14px;
    height: 14px;
  }

  /* Mobile Primary Navigation: toggle visible in brand bar */
  .menu-toggle {
    display: flex;
  }

  /* ── Glass side-panel: slides in from right edge ────────────────────────
     top: 0 would hide content behind the WP admin bar (z-index 99999).
     We set top: 0 as default; body.admin-bar rules below push it down.
  ─────────────────────────────────────────────────────────────────────── */
  .navigation-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    min-width: 260px;
    height: 100dvh;
    z-index: 300;
    overflow-y: auto;
    overflow-x: hidden;

    /* Glassmorphism — translucent so page content bleeds through */
    background: rgba(250, 249, 246, 0.45);
    backdrop-filter: blur(32px) saturate(160%);
    -webkit-backdrop-filter: blur(32px) saturate(160%);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: none;   /* no shadow while panel is off-screen */

    /* Slide-in from right; visibility hides the off-screen element entirely
       (prevents box-shadow bleeding into the viewport edge when closed).
       visibility delays on close so it waits for the slide-out to finish. */
    transform: translateX(105%);
    visibility: hidden;
    transition:
      transform  0.38s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0s   linear 0.38s;

    /* Remove old full-width styles */
    display: block;
    left: auto;
    border-top: none;
  }

  /* Slide panel into view — restore visibility immediately (no delay) */
  .navigation-wrapper.nav-is-open {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.18), -2px 0 0 rgba(255, 255, 255, 0.3) inset;
    transition:
      transform  0.38s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0s   linear 0s;
  }

  /* ── WP Admin Bar offset ──────────────────────────────────────────────────
     On tablet (601-782px) the WP admin bar is position:fixed; top:0; height:46px.
     The panel needs to start below it so the logo isn’t hidden.
     On mobile (≤600px) the admin bar is position:absolute (scrolls) — no offset needed. */
  body.admin-bar .navigation-wrapper {
    top: 46px;
    height: calc(100dvh - 46px);
  }
  body.admin-bar .navigation-wrapper .nav-panel-header {
    /* Sticky top must track the same offset within the scrollable panel */
    top: 0;
  }

  /* Dark-mode glass tint */
  body.dark-theme .navigation-wrapper {
    background: rgba(9, 13, 19, 0.55);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.5);
  }

  /* ── Backdrop (left half dim + blur) ─────────────────────────────────── */
  .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;
  }

  /* ── Panel inner layout ──────────────────────────────────────────────────
     The .container class has margin:0 auto which centres content.
     Inside the narrow panel we override that to fill edge-to-edge. */
  .navigation-wrapper .container {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .nav-inner {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
  }

  /* Panel header bar: logo + close button
     padding-top is generous so the logo clears the WP admin bar
     when the bar is in its fixed position (601–782px viewport). */
  .nav-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 14px;   /* extra top padding keeps logo clear of any overlap */
    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);
  }
  /* Logo inside the panel */
  .nav-panel-logo {
    display: flex;
    align-items: center;
    overflow: visible;
  }
  /* the_custom_logo() wraps the img in an <a> — make it flex so the img renders fully */
  .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;
  }
  /* Premium circular close button */
  .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: var(--color-bg);
    border-color: var(--color-accent);
  }
  .nav-panel-close svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
  }

  /* ── Nav items inside panel ──────────────────────────────────────────── */
  .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;
  }

  .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(11, 83, 62, 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);
  }

  /* ── Social icons row — compact horizontal strip above nav items ──────── */
  .nav-panel-social {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  }
  body.dark-theme .nav-panel-social {
    border-bottom-color: rgba(255, 255, 255, 0.07);
  }
  /* Hide the "Follow us" label — too verbose for a compact strip */
  .nav-panel-social-label {
    display: none;
  }
  .nav-panel-social-links {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: nowrap;
  }

  /* Small circular icon buttons — 28px */
  .nav-social-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.6);
    color: var(--color-ink);
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease,
                color 0.2s ease, transform 0.15s ease;
    text-decoration: none;
  }
  body.dark-theme .nav-social-pill {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
  }
  .nav-social-pill:hover {
    background: var(--social-color, var(--color-brand));
    border-color: var(--social-color, var(--color-brand));
    color: #ffffff;
    transform: scale(1.15);
  }
  .nav-social-icon {
    width: 13px;
    height: 13px;
    fill: currentColor;
    flex-shrink: 0;
  }
  /* Label text: visually hidden but kept for screen readers */
  .nav-social-name {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }
}

/* ── Desktop: hide mobile-panel-only elements ──────────────────────────── */
@media (min-width: 901px) {
  .nav-panel-header,
  .nav-panel-social,
  .nav-panel-close {
    display: none !important;
  }
}

/* ── Admin bar reset on very small screens (≤600px) ───────────────────────
   WP moves the admin bar to position:absolute at ≤600px so it scrolls with
   the page and no longer overlaps our fixed panel. Remove the offset. */
@media screen and (max-width: 600px) {
  body.admin-bar .navigation-wrapper {
    top: 0 !important;
    height: 100dvh !important;
  }
}






/* ---------- Hero Grid (Redesign) ---------- */
.nln-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

@media (min-width: 960px) {
  .nln-hero-grid {
    grid-template-columns: 2.2fr 1fr;
    height: 550px;
  }
  .nln-hero-left,
  .nln-hero-right {
    height: 100%;
    overflow: hidden;
  }
  .nln-hero-left .nln-slider-container {
    height: 100%;
  }
}

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

.nln-hero-left .nln-slider-container {
  margin-bottom: 0;
  height: 550px;
}

@media (max-width: 768px) {
  .nln-hero-left .nln-slider-container {
    height: 380px;
  }
}

.nln-hero-right {
  display: flex;
  flex-direction: column;
}

.nln-hero-right .nln-section-title {
  margin-bottom: 15px;
}

.nln-hero-sidelist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.sidelist-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-line);
}

.sidelist-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidelist-thumb {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.sidelist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.sidelist-item:hover .sidelist-thumb img {
  transform: scale(1.05);
}

.sidelist-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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);
}

.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);
}

/* ---------- Homepage Slider ---------- */
.nln-slider-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  margin-bottom: 30px;
  background: #000;
  border-radius: var(--radius-lg);
}
@media (max-width: 768px) {
  .nln-slider-container { height: 400px; }
}

.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);
}

/* Flat text overlay at the bottom */
.nln-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 40px 30px;
  color: #ffffff;
  z-index: 3;
  transform: none !important; /* Remove bounce animation */
  opacity: 1 !important;
}
.nln-slide-caption .kicker {
  display: inline-block;
  font-size: 0.72rem;
  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.4rem, 3vw, 2.2rem);
  margin: 0 0 10px;
  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.8rem;
  color: #ccc;
  display: flex;
  gap: 8px;
}
.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: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}
.nln-slider-arrow:hover {
  background: var(--color-brand);
}
.nln-slider-arrow-prev { left: 0; }
.nln-slider-arrow-next { right: 0; }
.nln-slider-arrow svg { width: 20px; height: 20px; fill: currentColor; }

@media (max-width: 768px) {
  .nln-slider-arrow { display: none; }
}

.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;
}
.nln-slider-dot.active {
  background: var(--color-accent);
  width: 18px;
}

/* ---------- 2-Column Newspaper Layout ---------- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 30px 0 60px;
}
@media (min-width: 960px) {
  .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 (Newspaper Cards) ---------- */
.nln-modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
@media (max-width: 480px) {
  .nln-modern-grid { grid-template-columns: 1fr; }
}

.post-card {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 16px;
}
.post-card:hover {
  border-bottom-color: var(--color-brand);
}
body.dark-theme .post-card:hover {
  border-bottom-color: var(--color-accent);
}

.post-card .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: var(--radius);
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .thumb img {
  transform: scale(1.04);
}

.post-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card .kicker {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand);
  letter-spacing: .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.15rem;
  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: .78rem;
  color: var(--color-muted);
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  gap: 8px;
}

/* ---------- Sidebar Styles ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.widget {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px;
}
.widget-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .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;
}

/* ---------- Centered Single Post / Page ---------- */
.single-article {
  max-width: 100%;
}

.article-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 18px;
}
.article-header .kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand);
  letter-spacing: .08em;
  margin-bottom: 8px;
}
body.dark-theme .article-header .kicker {
  color: var(--color-accent);
}

.article-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}

.article-meta {
  font-size: .85rem;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.article-meta .byline { font-weight: 700; color: var(--color-ink); }

.article-featured-image {
  margin-bottom: 30px;
}
.article-featured-image img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.article-featured-image figcaption {
  font-size: .8rem;
  color: var(--color-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-line);
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--color-body);
}
.article-body p {
  margin: 0 0 1.4em;
}
.article-body h2 { font-size: 1.5rem; margin-top: 1.8em; }
.article-body h3 { font-size: 1.25rem; margin-top: 1.6em; }
.article-body blockquote {
  border-left: 3px solid var(--color-brand);
  margin: 1.8em 0;
  padding: 8px 20px;
  color: var(--color-muted);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.18rem;
}
body.dark-theme .article-body blockquote {
  border-left-color: var(--color-accent);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
}
.article-tags a {
  font-size: .78rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: 4px 10px;
  font-weight: 600;
}
.article-tags a:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}
body.dark-theme .article-tags a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
  padding: 12px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.share-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-muted);
}
.share-row a {
  font-size: .8rem;
  border: 1px solid var(--color-line);
  padding: 6px 12px;
  font-weight: 600;
}
.share-row a:hover {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}
body.dark-theme .share-row a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 36px 0;
  justify-content: flex-start;
}
.pagination a, .pagination span {
  border: 1px solid var(--color-line);
  padding: 8px 14px;
  font-size: .88rem;
  font-weight: 600;
}
.pagination .current {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}
body.dark-theme .pagination .current {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #111111;
  color: #aaaaaa;
  padding: 50px 0 24px;
  border-top: 4px solid var(--color-brand);
}
body.dark-theme .site-footer {
  border-top-color: var(--color-accent);
}
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: var(--color-accent); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h2 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid var(--color-brand);
  padding-bottom: 6px;
  margin-bottom: 16px;
}
body.dark-theme .footer-grid h2 {
  border-bottom-color: var(--color-accent);
}
.site-footer .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer .widget li {
  margin-bottom: 10px;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid #222222;
  padding-top: 20px;
  font-size: .8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Comments Section ---------- */
.comments-area {
  border: 1px solid var(--color-line);
  padding: 24px;
  margin-top: 36px;
}
.comments-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.comment-list li {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-line);
}
.comment-body {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
}
.comment-meta { font-size: .8rem; }
.comment-author .fn { font-weight: 700; font-style: normal; }
.comment-content { grid-column: 2; margin-top: 6px; font-size: .95rem; }
.comment-reply { grid-column: 2; margin-top: 6px; }
.comment-reply-link {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand);
}

.comment-respond { margin-top: 24px; }
.comment-form p { margin-bottom: 12px; }
.comment-form label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  padding: 8px 12px;
  font-size: .92rem;
  background: var(--color-bg);
  color: var(--color-ink);
}
.comment-form input[type="submit"] {
  background: var(--color-brand);
  border: none;
  color: #fff;
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.comment-form input[type="submit"]:hover {
  background: var(--color-brand-light);
}
body.dark-theme .comment-form input[type="submit"] {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* ---------- Utility ---------- */
.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: .9rem;
  background: var(--color-bg);
  color: var(--color-ink);
  width: 100%;
}
.search-form button {
  border: 1px solid var(--color-brand);
  background: var(--color-brand);
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
}
body.dark-theme .search-form button {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-bg);
}

/* ---------- Ads styling ---------- */
.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);
  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;
}

/* ---------- Category Blocks & View More ---------- */
.category-block {
  margin-bottom: 50px;
}

.category-block:last-child {
  margin-bottom: 0;
}

.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;
  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: var(--color-bg) !important;
}

body.dark-theme .btn-view-more:hover {
  background: var(--color-accent-hover);
}

/* ---------- Category Posts List (Row Layout) ---------- */
.nln-category-posts-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.post-list-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-line);
}

.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);
}

/* Overlay Category Kicker Badge on Thumbnail */
.list-card-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #e63946;
  color: #ffffff !important;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  z-index: 2;
  line-height: 1;
}

body.dark-theme .list-card-badge {
  background: #e63946;
}

/* List Card Content (Right Side) */
.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: #666666;
  margin-bottom: 8px;
}

body.dark-theme .list-card-excerpt {
  color: var(--color-body);
}

.list-card-meta {
  font-size: 0.76rem;
  color: #777777;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.list-card-meta .meta-by {
  color: #777777;
}

.list-card-meta .meta-author {
  color: #ff3b30;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.dark-theme .list-card-meta .meta-author {
  color: #ff3b30;
}

.list-card-meta .meta-separator {
  color: #777777;
  margin: 0 2px;
}

.list-card-meta .meta-date {
  color: #777777;
}

@media (max-width: 640px) {
  /* Regular (non-first) category items on mobile: horizontal row with large 190px image */
  .post-list-card:not(.post-list-card-featured) {
    grid-template-columns: 190px 1fr;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 16px;
  }

  .post-list-card:not(.post-list-card-featured) .list-card-thumb-wrapper {
    aspect-ratio: 16 / 10;
  }

  .post-list-card:not(.post-list-card-featured) .list-card-title {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .post-list-card:not(.post-list-card-featured) .list-card-excerpt {
    font-size: 0.84rem;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .post-list-card:not(.post-list-card-featured) .list-card-badge {
    font-size: 0.62rem;
    padding: 2px 6px;
  }

  /* 1st Featured item on mobile: Full width prominent image on top */
  .post-list-card.post-list-card-featured {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
  }

  .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;
  }
}

/* Category Section Header */
.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: #ff3b30;
}

/* ---------- 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;
}

}


/* =====================================================================
   SITE FOOTER — Premium Dark Editorial Design
   ===================================================================== */

/* ── Colour palette (always dark, regardless of light/dark mode) ──── */
.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;   /* gold */
  --footer-brand:    #12b37a;   /* brighter green for dark bg */

  background: var(--footer-bg);
  color: var(--footer-ink);
  margin-top: 60px;
}

/* ── Top footer grid ─────────────────────────────────────────────── */
.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;
  }
}

/* ── Brand column ────────────────────────────────────────────────── */
.footer-logo {
  margin-bottom: 14px;
}

.footer-logo img,
.footer-logo .custom-logo {
  max-height: 52px;
  width: auto;
  display: block;
  /* No colour filter — logo renders in its original colours.
     A drop-shadow lifts it off the dark background. */
  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;
}

/* Social buttons */
.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);
}

/* ── Links columns ───────────────────────────────────────────────── */
.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;
}

/* Widget columns inherit footer styles */
.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);
}

/* ── Bottom bar ─────────────────────────────────────────────────── */
.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 — Premium Editorial Design
   ===================================================================== */

/* ── Category Hero Banner ─────────────────────────────────────────── */
.cat-hero {
  background: var(--color-ink);
  color: #e6edf3;
  padding: 48px 0 42px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
/* Subtle diagonal texture overlay */
.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;
}
/* Green left accent line */
.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; }
}

/* ── Generic archive header (tags, dates, authors) ────────────────── */
.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 + sidebar layout ───────────────────────────────── */
.archive-main {
  flex: 1;
  min-width: 0;
}

/* ── Featured First Post ──────────────────────────────────────────── */
.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: 0 8px 32px rgba(0,0,0,0.1);
}
body.dark-theme .archive-featured {
  background: var(--color-surface);
  border-color: var(--color-line);
}
.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); }
/* Stack featured post on smaller screens */
@media (max-width: 900px) {
  .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;
  }
}

/* ── "More Stories" section label ────────────────────────────────── */
.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;
}

/* ── Cards Grid ───────────────────────────────────────────────────── */
.archive-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
@media (max-width: 960px) {
  .archive-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 600px) {
  .archive-cards-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ── Empty State ──────────────────────────────────────────────────── */
.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);
}


/* =====================================================================
   SINGLE POST — Premium Editorial Article
   ===================================================================== */

/* ── Article Header ──────────────────────────────────────────────── */
.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;
}

/* ── Hero Image ──────────────────────────────────────────────────── */
.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;
}

/* ── Article Body Typography ─────────────────────────────────────── */
.art-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-body);
  margin-bottom: 32px;
}
.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);
}
.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); }

/* ── 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(11, 83, 62, 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;
  gap: 8px;
  flex-wrap: wrap;
}
.art-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.18s ease;
}
.art-share-btn:hover { transform: translateY(-1px); opacity: 0.9; }
.art-share-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}
.share-x   { background: #111; color: #fff; }
.share-fb  { background: #1877F2; color: #fff; }
.share-wa  { background: #25D366; color: #fff; }
.share-copy {
  background: var(--color-surface);
  color: var(--color-ink);
  border: 1px solid var(--color-line);
}
.share-copy.copy-success {
  background: #dcfce7;
  border-color: #22c55e;
  color: #15803d;
}
body.dark-theme .share-copy {
  background: var(--color-surface);
  border-color: var(--color-line);
  color: var(--color-ink);
}
body.dark-theme .share-copy.copy-success {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #4ade80;
}

/* ── Author Box ──────────────────────────────────────────────────── */
.art-author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}
.art-author-box-avatar {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--color-line);
}
.art-author-box-body { flex: 1; min-width: 0; }
.art-author-box-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.art-author-box-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}
.art-author-box-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-ink);
}
.art-author-box-name:hover { color: var(--color-brand); }
.art-author-box-bio {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0 0 12px;
}
.art-author-box-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-brand);
  transition: gap 0.18s ease, color 0.18s;
}
.art-author-box-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.18s ease;
}
.art-author-box-link:hover { color: var(--color-brand-light); gap: 8px; }
.art-author-box-link:hover svg { transform: translateX(2px); }
@media (max-width: 600px) {
  .art-author-box { flex-direction: column; gap: 14px; }
  .art-author-box-avatar { width: 56px !important; height: 56px !important; }
}

/* ── Related Stories header ──────────────────────────────────────── */
.art-related { margin-bottom: 48px; }
.art-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-brand);
}
.art-related-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;
}
.art-related-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-brand);
  white-space: nowrap;
  transition: gap 0.18s ease;
}
.art-related-more svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  transition: transform 0.18s ease;
}
.art-related-more:hover { gap: 8px; }
.art-related-more:hover svg { transform: translateX(2px); }

/* ── Comments ────────────────────────────────────────────────────── */
.art-comments {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 2px solid var(--color-line);
}

/* =====================================================================
   MOBILE RESPONSIVENESS — Single Post & Archive Pages
   ===================================================================== */

/* Prevent any child from causing horizontal scroll */
.main-content-column,
.archive-main {
  overflow-x: hidden;
  min-width: 0;
}

/* Ensure long words / URLs break instead of overflowing */
.art-title,
.art-body,
.art-body p,
.art-body li,
.art-body blockquote,
.art-author-box-bio {
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 600px) {

  /* ── Article Header ──────────────────────────────────────── */
  .art-header { margin-bottom: 20px; }

  .art-title {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 14px;
  }

  .art-meta-bar {
    gap: 8px;
    padding: 10px 0;
    flex-wrap: wrap;
  }

  /* Hide the separator dots between meta items on very small screens
     to prevent them from appearing on their own orphaned line */
  .art-meta-sep { display: none; }

  .art-author {
    font-size: 0.82rem;
    width: 100%;           /* full row = author always on its own line */
  }

  .art-author-avatar {
    width: 28px !important;
    height: 28px !important;
  }

  .art-date,
  .art-reading-time {
    font-size: 0.78rem;
  }

  /* ── Hero Image ──────────────────────────────────────────── */
  .art-hero-image {
    border-radius: var(--radius);
    margin-bottom: 20px;
  }

  /* ── Article Body ────────────────────────────────────────── */
  .art-body {
    font-size: 0.97rem;
    line-height: 1.75;
    margin-bottom: 24px;
  }

  .art-body h2 { font-size: 1.2rem; }
  .art-body h3 { font-size: 1.05rem; }

  .art-body blockquote {
    padding: 14px 16px;
    margin: 1.4em 0;
  }

  /* ── Tags ────────────────────────────────────────────────── */
  .art-tags { gap: 6px; margin-bottom: 20px; }
  .art-tag  { font-size: 0.74rem; padding: 3px 10px; }

  /* ── Share Bar ───────────────────────────────────────────── */
  .art-share-bar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    margin-bottom: 20px;
  }

  .art-share-btns {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .art-share-btn {
    padding: 6px 11px;
    font-size: 0.72rem;
    gap: 5px;
    flex: 0 0 auto;
  }

  .art-share-btn svg {
    width: 13px;
    height: 13px;
  }

  /* ── Author Box ──────────────────────────────────────────── */
  .art-author-box {
    padding: 20px;
    gap: 14px;
    margin-bottom: 28px;
  }

  .art-author-box-name { font-size: 1rem; }
  .art-author-box-bio  { font-size: 0.84rem; }

  /* ── Related Stories ─────────────────────────────────────── */
  .art-related { margin-bottom: 32px; }

  .art-related-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* Related cards: single column on small mobile */
  .art-related .archive-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* ── Archive Featured Post ───────────────────────────────── */
  .archive-featured-body {
    padding: 18px 16px;
    gap: 8px;
  }

  .archive-featured-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .archive-featured-title {
    font-size: 1.2rem;
  }

  /* ── Content Layout — remove top/bottom padding on mobile ── */
  .content-layout {
    padding: 16px 0 40px;
    gap: 28px;
  }
}

/* Share bar stays flex-row on all screen sizes */








/* =====================================================================
   BREADCRUMBS � Premium styled trail with chevron separators
   ===================================================================== */
.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;
}

/* Chevron separator between items */
.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);
  text-decoration: none;
  transition: color 0.18s ease;
}

.breadcrumb-item a:hover {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Current page � truncate long titles */
.breadcrumb-current {
  color: var(--color-ink);
  font-weight: 600;
  min-width: 0; /* allow flex shrink */
}

.breadcrumb-current-text {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 420px;
}

/* Mobile � smaller font + tighter truncation */
@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;
  }

  /* Truncate the article title to fit on one line on phone screens */
  .breadcrumb-current-text {
    max-width: 160px;
  }
}


/* =====================================================================
   COMMENTS SECTION — Premium Editorial Design (overrides)
   ===================================================================== */

/* ── Overall wrapper ─────────────────────────────────────────────── */
.comments-area {
  border: none;
  padding: 0;
  margin-top: 0;
}

/* ── Comments count title ───────────────────────────────────────── */
.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 ───────────────────────────────────────────────── */
.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; }

/* Avatar */
.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;
}

/* Meta row */
.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 text */
.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; }

/* Reply link */
.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;
}

/* Nested replies */
.children {
  list-style: none;
  padding-left: 64px;
  margin: 0;
}
@media (max-width: 600px) {
  .children { padding-left: 20px; }
}

/* ── "Leave a Reply" form ───────────────────────────────────────── */
.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); }

/* Logged-in / notes */
.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); }

/* Name + email side by side on desktop */
.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;
}

/* Input + Textarea */
.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(11, 83, 62, 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(212, 175, 55, 0.12);
}
.comment-form textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.65;
}

/* Cookies consent */
.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;
}

/* Submit button */
.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(11, 83, 62, 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(11, 83, 62, 0.38);
}
body.dark-theme .comment-form input[type=submit] {
  background: var(--color-accent);
  color: #0d1117;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.25);
}
body.dark-theme .comment-form input[type=submit]:hover {
  box-shadow: 0 4px 18px rgba(212, 175, 55, 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;
  }
}

/* Hide WP comment form notice text (logged-in-as + required fields note) */
.logged-in-as,
.comment-notes { display: none !important; }

/* =====================================================================
   ENHANCEMENTS — Progress Bar, Drop Cap, Post Nav, Back-to-Top
   ===================================================================== */

/* Reading Progress Bar */
#reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-brand), var(--color-accent, #d4af37));
  z-index: 99999;
  transition: width 0.08s linear;
  border-radius: 0 2px 2px 0;
}

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

/* First paragraph slightly larger */
.art-body > p:first-of-type {
  font-size: 1.08rem;
  line-height: 1.82;
  color: var(--color-ink);
}

/* 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: 0 6px 20px rgba(0,0,0,0.08);
}

.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; }
}

/* Back to Top Button */
#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(11, 83, 62, 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(11, 83, 62, 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, #d4af37);
  color: #0d1117;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}
/* =====================================================================
   MOBILE OVERFLOW PREVENTION — Global horizontal containment
   Prevents content from overshooting the right edge of any device.
   ===================================================================== */

/* Layer 1: Lock the document itself */
html {
  overflow-x: hidden;
  max-width: 100%;
}
body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

/* Layer 2: Constrain all containers */
.container,
.site-main,
.content-layout,
.main-content-column,
.sidebar,
.brand-header,
.navigation-wrapper,
.site-footer {
  max-width: 100%;
  box-sizing: border-box;
}

/* Layer 3: All media always fits its parent */
img,
video,
canvas,
svg,
iframe,
embed,
object {
  max-width: 100% !important;
  height: auto;
}

/* Layer 4: WordPress article content — the most common overflow source */
.entry-content,
.art-body {
  overflow-x: hidden;
  max-width: 100%;
}

/* WordPress block editor alignfull / alignwide negative-margin trick */
.entry-content .alignfull,
.entry-content .alignwide,
.art-body .alignfull,
.art-body .alignwide {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Tables — make them scroll horizontally instead of breaking layout */
.entry-content table,
.art-body table,
.wp-block-table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}

/* Pre / code — wrap instead of overflow */
.entry-content pre,
.art-body pre,
pre, code {
  white-space: pre-wrap;
  word-break: break-all;
  max-width: 100%;
  overflow-x: auto;
}

/* Layer 5: Break long words and URLs anywhere */
p, h1, h2, h3, h4, h5, h6,
li, blockquote, td, th, figcaption, caption,
.post-card-content, .art-header, .art-body {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* Layer 6: Mobile-only tightening */
@media (max-width: 900px) {
  /* Strip negative margins from WP blocks */
  .wp-block-cover,
  .wp-block-group,
  .wp-block-columns,
  [class*="wp-block-"] {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Embedded videos / iframes responsive */
  iframe,
  .wp-block-embed__wrapper iframe,
  .wp-block-video video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
  }

  /* Gutenberg columns stack */
  .wp-block-columns {
    flex-direction: column !important;
  }
  .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
  }

  /* Symmetric container padding */
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box;
    width: 100%;
  }
}