/* ============================================================
   redesign_v2.css — SelfHacking v3 "Neon Noir"
   Dark editorial aesthetic (The Verge, after dark)
   Pure-black canvas · neon cyan + magenta + warm amber
   Desktop: 1024px+   Mobile: ≤768px
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Neon accent system */
  --cyan:           #00d4ff;   /* primary   */
  --cyan-deep:      #00a6c9;
  --magenta:        #ff0080;   /* secondary */
  --magenta-deep:   #c70063;
  --amber:          #ffb020;   /* warm accent */

  /* Canvas + surfaces */
  --bg:             #0a0a0a;   /* pure-black page */
  --bg-elev:        #111111;   /* card surface   */
  --bg-elev-2:      #1a1a1a;   /* raised / hover */
  --bg-rail:        #0f0f0f;

  /* Text */
  --text:           #f0f0f0;   /* body            */
  --text-bright:    #ffffff;   /* headings        */
  --text-2:         #b4b4b4;   /* secondary       */
  --text-3:         #808080;   /* meta            */

  /* Lines */
  --border:         rgba(255,255,255,0.09);
  --border-strong:  rgba(255,255,255,0.16);

  /* Legacy aliases (kept so older rules & sub-templates resolve) */
  --purple:         #6b21ff;
  --brand-purple:   #6b21ff;
  --teal:           var(--magenta);
  --accent-teal:    var(--magenta);
  --bg-dark:        var(--bg);
  --bg-white:       var(--bg-elev);
  --bg-page:        var(--bg);
  --bg-card:        var(--bg-elev);
  --bg-drawer:      #0a0a0a;
  --text-primary:   var(--text);
  --text-secondary: var(--text-2);
  --text-meta:      var(--text-3);
  --text-on-dark:   #ffffff;
  --text-nav:       #e9e9e9;
  --text-teal:      var(--magenta);
  --border-light:   var(--border);
  --border-dark:    var(--border);
  --light-purple-bg: rgba(0,212,255,0.12);

  /* Shared aliases used by category/404/static_page templates */
  --ink:        var(--text-bright);
  --ink-2:      var(--text-2);
  --ink-3:      var(--text-3);
  --bg-soft:    var(--bg-elev);
  --edge:       var(--border);
  --accent-ink: var(--cyan);

  --nav-height:   44px;
  --bottom-nav-h: 56px;
  --page-pad:     16px;

  --font-display: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  --font-sans:    'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-serif:   'Lora', Georgia, 'Times New Roman', serif;
  --font-mono:    'JetBrains Mono', 'Inter', 'Courier New', monospace;
  --font-tight:   'Inter Tight', 'Inter', sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
::selection { background: var(--cyan); color: #001016; }

/* ============================================================
   DESKTOP NAVIGATION (≥769px)
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-top: 2px solid var(--cyan);
  border-bottom: 1px solid var(--border);
  height: 52px;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  color: var(--text-bright);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.nav-logo::after { content: "."; color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a.active { color: var(--text-bright); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -19px;
  height: 2px; background: var(--cyan);
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-search-btn {
  color: var(--text-2); padding: 4px; display: flex; align-items: center;
  transition: color 0.15s;
}
.nav-search-btn:hover { color: var(--cyan); }
.btn-subscribe {
  background: var(--cyan);
  color: #001016;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 7px 16px; border-radius: 2px;
  transition: background 0.15s, transform 0.1s;
}
.btn-subscribe:hover { background: #2ee0ff; }
.btn-subscribe:active { transform: translateY(1px); }

/* ============================================================
   MOBILE NAV ELEMENTS
   ============================================================ */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); z-index: 90; opacity: 0;
  transition: opacity 0.25s ease;
}
.overlay.open { display: block; opacity: 1; }

.top-nav {
  display: none; position: sticky; top: 0; z-index: 100;
  height: var(--nav-height); background: var(--bg);
  border-top: 2px solid var(--cyan);
  border-bottom: 1px solid var(--border);
  align-items: center; justify-content: space-between;
  padding: 0 var(--page-pad);
  padding-top: env(safe-area-inset-top, 0px);
}
.mobile-nav-logo { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.nav-logo-mark {
  width: 28px; height: 28px; background: var(--cyan); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 16px;
  color: #001016; flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--font-display); font-weight: 900; font-size: 20px;
  color: var(--text-bright); letter-spacing: 0.5px; text-transform: uppercase;
}
.nav-logo-text span { color: var(--cyan); }

.hamburger-btn {
  width: 44px; height: 44px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  flex-shrink: 0; border-radius: 4px; transition: background 0.15s;
}
.hamburger-btn:active { background: rgba(255,255,255,0.08); }
.hamburger-btn span {
  display: block; width: 22px; height: 2px; background: var(--cyan);
  border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
.hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: fixed; top: 0; left: 0; width: 100%; max-width: 320px; height: 100%;
  background: var(--bg-drawer); z-index: 110; transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
  border-right: 1px solid var(--cyan);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-drawer.open { transform: translateX(0); }
.drawer-header {
  height: var(--nav-height); display: flex; align-items: center;
  justify-content: space-between; padding: 0 var(--page-pad);
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.drawer-logo {
  font-family: var(--font-display); font-weight: 900; font-size: 20px;
  color: var(--text-bright); letter-spacing: 0.5px; text-transform: uppercase;
}
.drawer-logo span { color: var(--cyan); }
.drawer-close {
  width: 44px; height: 44px; display: flex; align-items: center;
  justify-content: center; color: var(--text); font-size: 22px; opacity: 0.7;
  transition: opacity 0.15s, color 0.15s;
}
.drawer-close:hover { opacity: 1; color: var(--cyan); }
.drawer-section-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3);
  padding: 20px var(--page-pad) 8px;
}
.drawer-nav-list { list-style: none; flex: 1; }
.drawer-nav-list li a {
  display: flex; align-items: center; min-height: 48px; padding: 0 var(--page-pad);
  font-family: var(--font-sans); font-size: 18px; font-weight: 400; color: var(--text);
  border-bottom: 1px solid var(--border); border-left: 3px solid transparent;
  transition: border-left-color 0.15s, background 0.15s, color 0.15s;
}
.drawer-nav-list li a:hover,
.drawer-nav-list li a:active,
.drawer-nav-list li.active a {
  border-left-color: var(--cyan); color: var(--cyan);
  background: rgba(0,212,255,0.07);
}
.drawer-footer {
  padding: 20px var(--page-pad); border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.drawer-footer a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--text-3);
  min-height: 44px; display: flex; align-items: center;
}
.drawer-subscribe {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; background: var(--cyan); color: #001016 !important;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 1.1px; text-transform: uppercase; border-radius: 2px;
}

/* MOBILE CATEGORY STRIP */
.mobile-cat-strip {
  display: none; background: var(--bg); border-bottom: 1px solid var(--border);
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.mobile-cat-strip::-webkit-scrollbar { display: none; }
.mobile-cat-strip-inner { display: flex; white-space: nowrap; padding: 0 var(--page-pad); }
.mobile-cat-strip-inner a {
  display: inline-flex; align-items: center; height: 38px; padding: 0 14px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-2);
  transition: color 0.15s; flex-shrink: 0;
}
.mobile-cat-strip-inner a:hover,
.mobile-cat-strip-inner a.active { color: var(--cyan); }
.mobile-cat-strip-inner a.active { border-bottom: 2px solid var(--cyan); }

/* BOTTOM NAV */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #0c0c0c; border-top: 1px solid var(--cyan);
  align-items: stretch; z-index: 80;
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; min-height: 44px;
  transition: opacity 0.15s; padding-bottom: 2px;
}
.bottom-nav-item:active { opacity: 0.7; }
.bottom-nav-icon {
  width: 20px; height: 20px; display: flex; align-items: center;
  justify-content: center; color: rgba(255,255,255,0.45);
}
.bottom-nav-item.active .bottom-nav-icon { color: var(--cyan); }
.bottom-nav-label {
  font-family: var(--font-sans); font-size: 10px; font-weight: 400;
  color: rgba(255,255,255,0.45); letter-spacing: 0.3px;
}
.bottom-nav-item.active .bottom-nav-label { color: var(--cyan); }
svg { fill: currentColor; }

/* ============================================================
   NEON SECTION DIVIDER + HEADERS
   ============================================================ */
.section-header { margin-bottom: 28px; padding-top: 18px; position: relative; }
.section-header::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--magenta) 40%, transparent 80%);
  border-radius: 0;
}
.section-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--cyan);
  display: block; margin-bottom: 4px;
}
.section-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 3.6vw, 42px); line-height: 0.94;
  color: var(--text-bright); text-transform: uppercase; letter-spacing: 1px;
}
/* standalone neon bar element */
.neon-bar {
  height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--magenta) 60%, var(--amber) 100%);
  border-radius: 2px; margin: 0 0 28px;
}

/* ============================================================
   HERO — LEAD GRID (1 big feature + 3 stacked rail cards)
   ============================================================ */
.lead-wrap { background: var(--bg); padding: 28px 0 0; }
.lead-grid {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px;
}

/* big feature */
.lead-feature {
  position: relative; display: block; min-height: 680px;
  border: 1px solid var(--border); overflow: hidden; border-radius: 4px;
  background: #14141c;
}
.lead-feature .lead-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.lead-feature:hover .lead-img { transform: scale(1.04); }
.lead-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(6,6,8,1.0) 0%, rgba(6,6,8,0.88) 28%,
    rgba(6,6,8,0.38) 55%, rgba(6,6,8,0.0) 80%);
}
.lead-feature::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  z-index: 3;
}
.lead-content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 44px 48px 48px;
}
.lead-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(54px, 7.5vw, 100px); line-height: 0.86;
  text-transform: uppercase; letter-spacing: -0.015em;
  color: var(--text-bright); margin: 18px 0 16px; max-width: 15ch;
}
.lead-dek {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(16px, 1.5vw, 21px); line-height: 1.5;
  color: rgba(255,255,255,0.86); max-width: 56ch; margin-bottom: 18px;
}

/* category chip + byline (shared) */
.chip {
  display: inline-block; font-family: var(--font-mono);
  font-size: 11px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: #001016; padding: 4px 11px;
  border-radius: 2px; background: var(--cyan);
}
.chip--cyan    { background: var(--cyan); }
.chip--magenta { background: var(--magenta); color:#fff; }
.chip--amber   { background: var(--amber); }
.byline {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--text-3); margin-top: 14px;
}
.byline span { color: var(--text-2); }
.byline .dot { color: var(--border-strong); margin: 0 6px; }

/* neon kicker text colors */
.k-cyan    { color: var(--cyan); }
.k-magenta { color: var(--magenta); }
.k-amber   { color: var(--amber); }

/* rail of 3 small stacked cards */
.lead-rail { display: flex; flex-direction: column; gap: 18px; }
.rail-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 14px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden; padding: 0;
  transition: border-color 0.15s, transform 0.15s;
}
.rail-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.rail-thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; background:#14141c; }
.rail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rail-body { padding: 14px 14px 14px 0; display: flex; flex-direction: column; justify-content: center; }
.rail-kicker {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 6px;
}
.rail-title {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  line-height: 1.0; text-transform: uppercase; color: var(--text-bright);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.rail-card:hover .rail-title { color: var(--cyan); }
.rail-meta {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--text-3); margin-top: 8px;
}

/* ============================================================
   SECONDARY — 4-COLUMN DENSE FEED
   ============================================================ */
.feed-wrap { max-width: 1280px; margin: 0 auto; padding: 64px 24px 8px; }
.dense-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px;
}
.dense-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.dense-card:hover {
  border-color: var(--cyan); transform: translateY(-3px);
}
.dense-img { position: relative; aspect-ratio: 16/9; overflow: hidden; background:#14141c; }
.dense-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.dense-card:hover .dense-img img { transform: scale(1.05); }
.dense-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.dense-kicker {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 1.3px; text-transform: uppercase; margin-bottom: 9px;
}
.dense-title {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  line-height: 1.0; text-transform: uppercase; color: var(--text-bright);
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dense-card:hover .dense-title { color: var(--cyan); }
.dense-dek {
  font-family: var(--font-serif); font-size: 14px; line-height: 1.55;
  color: var(--text-2); margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  opacity: 0.88;
}
.dense-meta {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--text-3); margin-top: auto;
}

/* ============================================================
   HORIZONTAL SCROLL RAIL  (river variety — breaks the grid)
   ============================================================ */
.hscroll-wrap { max-width: 1280px; margin: 0 auto; padding: 60px 24px 8px; }
.hscroll-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 26px;
}
.hscroll-head .section-header { margin-bottom: 0; }
.hscroll-head .section-see-all { margin-top: 0; }
.hscroll-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 300px;
  gap: 22px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 14px;
}
.hscroll-track::-webkit-scrollbar { display: none; }
.hs-card {
  scroll-snap-align: start; background: var(--bg-elev);
  border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}
.hs-card:hover { border-color: var(--cyan); transform: translateY(-3px); }
.hs-img { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #14141c; }
.hs-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.hs-card:hover .hs-img img { transform: scale(1.05); }
.hs-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.hs-kicker {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 1.3px; text-transform: uppercase; margin-bottom: 9px;
}
.hs-title {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  line-height: 1.02; text-transform: uppercase; color: var(--text-bright);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hs-card:hover .hs-title { color: var(--cyan); }
.hs-meta {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--text-3); margin-top: 10px;
}

/* ============================================================
   FULL-WIDTH FEATURED SPOTLIGHT  (image left · text right)
   ============================================================ */
.spotlight-wrap { max-width: 1280px; margin: 0 auto; padding: 60px 24px 8px; }
.spotlight {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 0;
  border: 1px solid var(--border-strong); border-radius: 4px; overflow: hidden;
  background: var(--bg-elev);
  transition: border-color 0.2s;
}
.spotlight:hover { border-color: var(--cyan); }
.spotlight-media { position: relative; min-height: 440px; overflow: hidden; background: #14141c; }
.spotlight-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.spotlight:hover .spotlight-media img { transform: scale(1.04); }
.spotlight-body { padding: 48px 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.spotlight-body .chip { align-self: flex-start; }
.spotlight-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(36px, 4vw, 56px); line-height: 0.92;
  text-transform: uppercase; letter-spacing: -0.012em;
  color: var(--text-bright); margin: 18px 0 18px;
}
.spotlight:hover .spotlight-title { color: var(--cyan); }
.spotlight-dek {
  font-family: var(--font-serif); font-style: italic;
  font-size: 18px; line-height: 1.6; color: var(--text-2);
  margin-bottom: 8px; max-width: 50ch;
}
.spotlight-cta {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--cyan);
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  transition: color 0.15s;
}
.spotlight:hover .spotlight-cta { color: var(--magenta); }

/* ============================================================
   LOWER GRID — main list + tabbed sidebar
   ============================================================ */
.lower-wrap {
  max-width: 1280px; margin: 0 auto; padding: 64px 24px 16px;
  display: grid; grid-template-columns: 1fr 340px; gap: 56px;
  align-items: start;
}
.lower-main { min-width: 0; }

/* two-up list of row cards */
.row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-card {
  display: grid; grid-template-columns: 150px 1fr; gap: 16px;
  border-top: 1px solid var(--border); padding-top: 20px;
  overflow: hidden;
  transition: opacity 0.15s;
}
.row-card:hover { opacity: 1; transform: translateY(-1px); }
.row-thumb { aspect-ratio: 4/3; overflow: hidden; background:#14141c; border-radius: 3px; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.row-card:hover .row-thumb img { transform: scale(1.05); }
.row-kicker {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 6px;
}
.row-title {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  line-height: 1.05; text-transform: uppercase; color: var(--text-bright);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.row-card:hover .row-title { color: var(--cyan); }
.row-meta {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--text-3); margin-top: 8px;
}

/* ============================================================
   TABBED SIDEBAR
   ============================================================ */
.sidebar { position: sticky; top: 70px; }
.sidebar-widget { margin-bottom: 36px; }
.side-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 8px;
}
.side-tab {
  flex: 1; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-3);
  padding: 12px 0; background: none; border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.side-tab:hover { color: var(--text-2); }
.side-tab.is-active { color: var(--cyan); border-bottom-color: var(--cyan); }
.side-panel { display: none; }
.side-panel.is-active { display: block; }

.numbered-list { list-style: none; }
.numbered-item {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.item-number {
  font-family: var(--font-display); font-size: 30px; font-weight: 900;
  line-height: 1; color: transparent;
  -webkit-text-stroke: 1px var(--cyan); flex-shrink: 0;
}
.numbered-item:nth-child(even) .item-number { -webkit-text-stroke-color: var(--magenta); }
.item-title {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  line-height: 1.35; color: var(--text);
}
.numbered-item:hover .item-title { color: var(--cyan); }
.item-meta {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--text-3); margin-top: 5px;
}

/* Newsletter CTA */
.newsletter-cta {
  background: linear-gradient(160deg, #18182a 0%, #0d0d14 100%);
  border: 1px solid rgba(91,22,224,0.3);
  border-top: 2px solid #5b16e0;
  padding: 32px 24px; border-radius: 4px;
}
.newsletter-cta .cta-headline {
  font-family: var(--font-display); font-weight: 900; font-size: 28px; line-height: 0.95;
  color: var(--text-bright); text-transform: uppercase; margin-bottom: 10px;
}
.newsletter-cta .cta-headline span { color: #a78bfa; }
.newsletter-cta .cta-body {
  font-family: var(--font-serif); font-size: 14px; line-height: 1.6;
  color: var(--text-2); margin-bottom: 20px;
}
.newsletter-cta .cta-input {
  width: 100%; padding: 12px 12px; font-family: var(--font-sans); font-size: 13px;
  background: #000; color: var(--text); border: 1px solid var(--border-strong);
  border-radius: 2px; margin-bottom: 10px; outline: none;
}
.newsletter-cta .cta-input:focus { border-color: var(--cyan); }
.newsletter-cta .cta-input::placeholder { color: var(--text-3); }
.newsletter-cta .cta-btn {
  background: #5b16e0; color: #fff; font-family: var(--font-mono);
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 12px 20px; width: 100%; border-radius: 2px;
  transition: background 0.15s;
}
.newsletter-cta .cta-btn:hover { background: #7c3aed; }

.section-see-all {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 1.1px; text-transform: uppercase; color: var(--cyan);
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 28px; border-bottom: 1px solid var(--cyan); padding-bottom: 3px;
  transition: color 0.15s, border-color 0.15s;
}
.section-see-all:hover { color: var(--magenta); border-color: var(--magenta); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #060608; border-top: 1px solid rgba(0,212,255,0.3);
  padding: 72px 24px 48px; margin-top: 80px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto; display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px;
}
.footer-brand .footer-logo {
  font-family: var(--font-display); font-weight: 900; font-size: 30px;
  color: var(--text-bright); text-transform: uppercase; margin-bottom: 12px;
}
.footer-brand .footer-logo::after { content: "."; color: var(--cyan); }
.footer-brand p {
  font-family: var(--font-serif); font-size: 14px; color: var(--text-2);
  line-height: 1.7; max-width: 300px;
}
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a {
  font-family: var(--font-sans); font-size: 13px; color: var(--text-2);
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1280px; margin: 36px auto 0; padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.footer-bottom p {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--text-3);
}
.footer-bottom a { color: var(--text-2); }
.footer-bottom a:hover { color: var(--cyan); }

/* Mobile-only bits hidden on desktop */
.tab-pills { display: none; }
.newsletter-band { display: none; }

/* ============================================================
   HOVER TEXT HIGHLIGHT — refined inline highlight on card titles
   ============================================================ */

/* Prep the span inside every title for smooth transition */
.lead-title span,
.rail-title span,
.dense-title span,
.hs-title span,
.row-title span,
.item-title span,
.spotlight-title span {
  display: inline;
  background-color: transparent;
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 2px 5px;
  transition: background-color 0.18s ease, color 0.18s ease;
  will-change: background-color;
}

/* On hover: tight inline highlight per line — Verge-style */
.lead-feature:hover .lead-title span,
.rail-card:hover .rail-title span,
.dense-card:hover .dense-title span,
.hs-card:hover .hs-title span,
.row-card:hover .row-title span,
.numbered-item:hover .item-title span,
.spotlight:hover .spotlight-title span {
  background-color: #5c14d8;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  padding: 2px 6px;
}

/* Card image zoom — consistent across all card types */
.dense-card:hover .dense-img img,
.hs-card:hover .hs-img img,
.row-card:hover .row-thumb img { transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }

/* Subtle card lift on all interactive cards */
.dense-card { transition: border-color 0.15s, transform 0.2s; }
.hs-card    { transition: border-color 0.15s, transform 0.2s; }
.row-card   { transition: border-color 0.15s, transform 0.15s, opacity 0.15s; }
.dense-card:hover { transform: translateY(-2px); }
.hs-card:hover    { transform: translateY(-2px); }

/* ============================================================
   @media — TABLET (769px–1023px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1023px) {
  .lead-grid { grid-template-columns: 1fr; }
  .lead-feature { min-height: 460px; }
  .lead-rail { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .dense-grid { grid-template-columns: repeat(2, 1fr); }
  .lower-wrap { grid-template-columns: 1fr; gap: 40px; }
  .row-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .sidebar { position: static; }
  .hscroll-track { grid-auto-columns: 290px; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-media { min-height: 320px; }
  .spotlight-body { padding: 32px 32px 30px; }
}

/* ============================================================
   @media — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  body { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px)); }

  .site-nav { display: none; }
  .top-nav { display: flex; }
  .mobile-cat-strip { display: block; }
  .bottom-nav { display: flex; }

  /* Lead block */
  .lead-wrap { padding: 0; }
  .lead-grid { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .lead-feature { min-height: 0; aspect-ratio: 4/5; border: none; border-radius: 0; }
  .lead-content { padding: 0 var(--page-pad) 26px; }
  .lead-title { font-size: clamp(34px, 9vw, 50px); margin: 12px 0 12px; }
  .lead-dek { display: none; }
  .lead-rail { display: flex; padding: 6px 0; gap: 0; }
  .rail-card {
    grid-template-columns: 110px 1fr; border: none;
    border-bottom: 1px solid var(--border); border-radius: 0;
  }
  .rail-card:hover { transform: none; }
  .rail-body { padding: 12px 14px 12px 0; }
  .rail-title { font-size: 18px; }

  /* tab pills */
  .tab-pills {
    display: flex; gap: 8px; padding: 14px var(--page-pad); overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .tab-pills::-webkit-scrollbar { display: none; }
  .tab-pill {
    display: inline-flex; align-items: center; height: 34px; padding: 0 16px;
    border-radius: 24px; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    letter-spacing: 1.3px; text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
  }
  .tab-pill-inactive { background: transparent; border: 1px solid var(--border-strong); color: var(--text-2); }
  .tab-pill-active { background: var(--cyan); color: #001016; border: 1px solid var(--cyan); }

  /* dense + feed */
  .feed-wrap { padding: 28px var(--page-pad) 0; }
  .dense-grid { grid-template-columns: 1fr; gap: 0; }
  .dense-card {
    border: none; border-bottom: 1px solid var(--border); border-radius: 0;
    flex-direction: row; gap: 14px; padding: 16px 0;
  }
  .dense-card:hover { transform: none; box-shadow: none; }
  .dense-img { width: 120px; flex-shrink: 0; aspect-ratio: 1/1; border-radius: 3px; }
  .dense-body { padding: 0; }
  .dense-title { font-size: 18px; }
  .dense-dek { display: none; }

  /* horizontal scroll rail */
  .hscroll-wrap { padding: 30px 0 0; }
  .hscroll-head { padding: 0 var(--page-pad); margin-bottom: 16px; }
  .hscroll-track { grid-auto-columns: 78vw; gap: 14px; padding: 0 var(--page-pad) 14px; }
  .hs-title { font-size: 21px; }

  /* full-width spotlight */
  .spotlight-wrap { padding: 30px var(--page-pad) 0; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-media { min-height: 0; aspect-ratio: 16/10; }
  .spotlight-body { padding: 22px 18px 24px; }
  .spotlight-title { font-size: clamp(28px, 8.5vw, 40px); margin: 14px 0 14px; }
  .spotlight-dek { font-size: 15px; }
  .spotlight-cta { margin-top: 16px; }

  /* lower */
  .lower-wrap { grid-template-columns: 1fr; gap: 32px; padding: 36px var(--page-pad) 0; }
  .row-grid { grid-template-columns: 1fr; gap: 0; }
  .row-card { grid-template-columns: 110px 1fr; border-top: none; border-bottom: 1px solid var(--border); padding: 16px 0; }
  .row-title { font-size: 17px; }
  .sidebar { position: static; }

  .section-header { margin: 0 0 18px; }
  .section-title { font-size: 24px; }

  /* mobile newsletter band */
  .newsletter-band {
    display: block; margin: 8px var(--page-pad) 0;
    background: linear-gradient(135deg, #12121a, #0a0a0a);
    border: 1px solid var(--border-strong); border-top: 2px solid var(--cyan);
    padding: 26px 18px; text-align: center; border-radius: 4px;
  }
  .newsletter-band h3 {
    font-family: var(--font-display); font-weight: 900; font-size: 28px; line-height: 1.0;
    color: var(--text-bright); text-transform: uppercase; margin-bottom: 8px;
  }
  .newsletter-band p {
    font-family: var(--font-sans); font-size: 14px; color: var(--text-2);
    line-height: 1.5; margin-bottom: 16px;
  }
  .newsletter-form { display: flex; flex-direction: column; gap: 10px; max-width: 340px; margin: 0 auto; }
  .newsletter-input {
    height: 46px; padding: 0 16px; background: #000; border: 1px solid var(--border-strong);
    border-radius: 2px; font-family: var(--font-sans); font-size: 15px; color: var(--text);
  }
  .newsletter-input::placeholder { color: var(--text-3); }
  .newsletter-btn {
    height: 46px; background: var(--cyan); color: #001016; font-family: var(--font-mono);
    font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
    border-radius: 2px;
  }

  /* footer */
  .site-footer { padding: 32px var(--page-pad) 24px; margin-top: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 420px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   Utility
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.btn-pill {
  display: inline-block; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: #001016; background: var(--cyan);
  padding: 12px 24px; border-radius: 2px;
}

/* ============================================================
   Quick Post Card (post_type === 'quick_post')
   Text-only — no hero image. 3px brand-accent left border.
   ============================================================ */
.quick-card {
  display: block;
  position: relative;
  background: var(--surface-1, #111);
  border-left: 3px solid var(--cyan);
  border-radius: 0 4px 4px 0;
  padding: 18px 20px 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.quick-card:hover {
  background: var(--surface-2, #181818);
  border-left-color: var(--magenta);
}

/* category chip — top-left (reuse .chip pattern) */
.quick-card .quick-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  margin-bottom: 10px;
  background: var(--cyan);
  color: #001016;
}
.quick-card .quick-chip.chip--magenta { background: var(--magenta); color: #fff; }
.quick-card .quick-chip.chip--amber   { background: var(--amber, #f59e0b); color: #001016; }

/* author row */
.quick-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.quick-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2, #181818);
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.quick-avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #001016;
  flex-shrink: 0;
}
.quick-author-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-2, #888);
  text-transform: uppercase;
}
.quick-timestamp {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3, #555);
}

/* bold lead sentence */
.quick-lead {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-1, #f0f0f0);
  margin-bottom: 8px;
}

/* body copy */
.quick-body {
  font-family: var(--font-serif, 'Lora', serif);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2, #999);
  margin-bottom: 12px;
}

/* optional source card */
.quick-source {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  text-decoration: none;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.12s ease;
  margin-top: 4px;
}
.quick-source:hover { background: rgba(0,212,255,0.07); }
.quick-source-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* Dense-grid integration: quick card fills the same cell but no image wrapper */
.dense-grid .quick-card {
  height: 100%;
  box-sizing: border-box;
}
.btn-pill:hover { background: #2ee0ff; }

/* Trending horizontal scroll visual hint */
.row-wrap { position: relative; }
.row-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, #0a0a0a 85%);
  pointer-events: none;
  z-index: 1;
}
