/* ============================================================
   Frontierbeat — WordPress Theme
   Brutalist editorial: black/white surface + electric yellow-green
   accent (Volt #E6FF00). Geist sans, Instrument Serif italic for
   pull quotes only, JetBrains Mono for data. Mobile-first.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Brand */
  --fb-volt:        #E6FF00;
  --fb-volt-deep:   #9CB300;
  --fb-volt-glow:   #EEFF66;
  --fb-accent:      var(--fb-volt);

  /* Mono ramp */
  --fb-black:       #000000;
  --fb-white:       #FFFFFF;
  --fb-gray-500:    #888888;
  --fb-gray-600:    #555555;
  --fb-gray-700:    #333333;
  --fb-light-gray:  #F5F5F5;
  --fb-border:      #E5E5E5;

  /* Beat colors — vivid but not neon */
  --fb-beat-ai:        #665BE0;
  --fb-beat-crypto:    #E66B2E;
  --fb-beat-tech:      #1FAFA4;
  --fb-beat-markets:   #34B86A;
  --fb-beat-culture:   #D5538C;
  --fb-beat-policy:    #3D78D8;

  /* Signals */
  --fb-up:    #00C566;
  --fb-down:  #FF3D5A;
  --fb-flat:  #888888;

  /* Type */
  --fb-font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --fb-font-display: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --fb-font-editorial: "Instrument Serif", "Times New Roman", serif;
  --fb-font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Semantic (LIGHT) */
  --bg:           var(--fb-white);
  --bg-elevated:  var(--fb-white);
  --bg-sunken:    var(--fb-light-gray);
  --bg-inverse:   var(--fb-black);
  --fg-1:         var(--fb-black);
  --fg-2:         var(--fb-gray-700);
  --fg-3:         var(--fb-gray-500);
  --fg-on-accent: var(--fb-black);
  --fg-on-inverse:var(--fb-white);
  --border:       var(--fb-border);
  --border-strong:var(--fb-black);

  /* Geometry */
  --shell-max:    1280px;
  --shell-pad:    clamp(16px, 4vw, 32px);
  --reading-max:  720px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  --dur-fast: 140ms;
  --dur-base: 220ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  color-scheme: light;
}

/* DARK mode via [data-theme] OR system preference */
[data-theme="dark"], body.is-dark {
  --bg:           var(--fb-black);
  --bg-elevated:  #141414;
  --bg-sunken:    #050505;
  --bg-inverse:   var(--fb-white);
  --fg-1:         var(--fb-white);
  --fg-2:         #CCCCCC;
  --fg-3:         #888888;
  --fg-on-inverse:var(--fb-black);
  --border:       #2A2A2A;
  --border-strong:var(--fb-white);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not(body.is-light) {
    --bg:           var(--fb-black);
    --bg-elevated:  #141414;
    --bg-sunken:    #050505;
    --bg-inverse:   var(--fb-white);
    --fg-1:         var(--fb-white);
    --fg-2:         #CCCCCC;
    --fg-3:         #888888;
    --fg-on-inverse:var(--fb-black);
    --border:       #2A2A2A;
    --border-strong:var(--fb-white);
    color-scheme: dark;
  }
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fb-font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-1);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
::selection { background: var(--fb-volt); color: var(--fb-black); }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

/* ---------- HEADER / MASTHEAD ---------- */
.site-header {
  background: var(--fb-black);
  color: var(--fb-white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #1a1a1a;
}
.site-header__inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 12px;
}
@media (min-width: 960px) { .site-header__inner { min-height: 64px; gap: 28px; } }

.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-branding__logo img { max-height: 40px; width: auto; }
.site-branding__text { display: grid; gap: 2px; }
.site-branding__name {
  font-family: var(--fb-font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--fb-volt);
  white-space: nowrap;
}
.site-branding__tag {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  font-weight: 500;
  display: none;
}
@media (min-width: 720px) { .site-branding__tag { display: block; } }

.site-navigation { display: none; flex: 1; }
@media (min-width: 960px) { .site-navigation { display: flex; } }
.site-navigation__panel { display: flex; align-items: center; gap: 28px; flex: 1; flex-wrap: nowrap; min-width: 0; }
.site-navigation__utilities { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.primary-menu, .footer-menu {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.primary-menu { white-space: nowrap; }
.footer-menu { flex-wrap: wrap; gap: 22px; }
.primary-menu a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.7;
  white-space: nowrap;
  transition: opacity var(--dur-fast), color var(--dur-fast);
}
.primary-menu a:hover, .primary-menu .current-menu-item > a { opacity: 1; color: var(--fb-volt); }

/* Dropdown sub-menus — WP renders children as nested <ul.sub-menu> */
.primary-menu .menu-item-has-children { position: relative; }
.primary-menu .menu-item-has-children > a::after {
  content: "▾";
  margin-left: 6px;
  font-size: 9px;
  opacity: 0.7;
}
.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 12px 0;
  background: var(--fb-black);
  border: 1px solid #1a1a1a;
  border-top: 2px solid var(--fb-volt);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity var(--dur-fast), transform var(--dur-fast), visibility var(--dur-fast);
  z-index: 60;
  display: block;
}
.primary-menu .menu-item-has-children:hover > .sub-menu,
.primary-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-menu .sub-menu li { display: block; }
.primary-menu .sub-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.8;
  white-space: nowrap;
}
.primary-menu .sub-menu a:hover { color: var(--fb-volt); opacity: 1; background: rgba(230,255,0,0.06); }

/* Mobile drawer: expand sub-menus inline (no dropdown) */
body.menu-open .primary-menu .sub-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  border: 0;
  border-left: 2px solid var(--fb-volt);
  padding: 0 0 0 16px;
  margin: 4px 0 12px;
  background: transparent;
  min-width: 0;
}
body.menu-open .primary-menu .sub-menu a {
  font-family: var(--fb-font-sans);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  padding: 8px 0;
  border: 0;
}
body.menu-open .menu-item-has-children > a::after { display: none; }

.site-header__controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.theme-toggle {
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0.8;
}
.theme-toggle:hover { opacity: 1; background: rgba(255,255,255,0.06); }
.theme-toggle__icon {
  width: 16px; height: 16px;
  display: inline-block;
  position: absolute;
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}
.theme-toggle__icon--sun {
  background: radial-gradient(circle, currentColor 35%, transparent 38%) center/100% 100%;
  border-radius: 50%;
}
.theme-toggle__icon--moon {
  width: 14px; height: 14px;
  border-radius: 50%;
  box-shadow: -4px -4px 0 0 currentColor;
  opacity: 0;
}
body.is-dark .theme-toggle__icon--sun, [data-theme="dark"] .theme-toggle__icon--sun { opacity: 0; }
body.is-dark .theme-toggle__icon--moon, [data-theme="dark"] .theme-toggle__icon--moon { opacity: 1; }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  gap: 4px;
}
@media (min-width: 960px) { .menu-toggle { display: none; } }
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform var(--dur-fast), opacity var(--dur-fast);
}

/* Mobile drawer */
body.menu-open .site-navigation {
  display: block;
  position: fixed;
  inset: 56px 0 0;
  background: var(--fb-black);
  padding: 32px var(--shell-pad);
  z-index: 49;
}
body.menu-open .site-navigation__panel { flex-direction: column; align-items: stretch; gap: 16px; }
body.menu-open .primary-menu { flex-direction: column; align-items: stretch; gap: 0; }
body.menu-open .primary-menu a {
  font-family: var(--fb-font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  text-transform: none;
  padding: 14px 0;
  border-bottom: 1px solid #1a1a1a;
  opacity: 1;
  color: #fff;
}
body.menu-open .primary-menu a:hover { color: var(--fb-volt); }
body.menu-open .site-navigation__utilities { margin-top: 16px; }

/* ---------- BUTTONS ---------- */
.button, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  padding: 12px 20px;
  font-family: var(--fb-font-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background var(--dur-fast), color var(--dur-fast), transform 80ms;
  cursor: pointer;
}
.button:active { transform: scale(0.98); }
.button--solid, .wp-block-button__link {
  background: var(--fb-volt);
  color: var(--fb-black);
}
.button--solid:hover, .wp-block-button__link:hover {
  background: var(--fb-volt-deep);
  color: #000;
}
.button--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 11px 19px;
}
.button--ghost:hover { background: #fff; color: var(--fb-black); }

/* ---------- HERO CAROUSEL ---------- */
.xb-frontpage-top { padding-block: 40px 32px; }
@media (min-width: 960px) { .xb-frontpage-top { padding-block: 56px 48px; } }

.xb-frontpage-top__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1100px) {
  .xb-frontpage-top__grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
}

.xb-hero-stage { margin-bottom: 48px; }

.hero-carousel {
  position: relative;
  overflow: hidden;
  background: var(--fb-black);
  color: #fff;
}
.hero-carousel__slides {
  position: relative;
  min-height: clamp(420px, 56vw, 640px);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 600ms ease, visibility 600ms ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }

.hero-slide__media,
.hero-slide__backdrop,
.hero-slide__grain {
  position: absolute;
  inset: 0;
}
.hero-slide__media { overflow: hidden; background: #0a0a0a; }
.hero-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s var(--ease-out);
  filter: saturate(0.98) contrast(1.06);
}
.hero-slide.is-active .hero-slide__media img { transform: scale(1); }
.hero-slide__fallback {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 22% 28%, rgba(230,255,0,0.18), transparent 22%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 60%, #2a2a2a 100%);
}
.hero-slide__backdrop {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.18) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.9) 100%);
}
.hero-slide__grain { display: none; }

.hero-slide__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 64px) var(--shell-pad);
  padding-bottom: clamp(80px, 8vw, 120px);
}
.hero-slide__copy {
  max-width: 880px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease 100ms, transform 500ms ease 100ms;
}
.hero-slide.is-active .hero-slide__copy { opacity: 1; transform: translateY(0); }

.hero__kicker,
.section-heading__eyebrow,
.homepage-heading__eyebrow,
.meta-line,
.site-footer__eyebrow,
.xb-desk-block__eyebrow {
  margin: 0 0 12px;
  font-family: var(--fb-font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero__kicker { color: var(--fb-volt); }

.hero__brand {
  margin: 0;
  font-family: var(--fb-font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--fb-volt);
  display: none; /* hidden by default — single-post hero only */
}

.hero__headline {
  margin: 8px 0 16px;
  font-family: var(--fb-font-display);
  font-weight: 900;
  font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
  max-width: 18ch;
  color: #fff;
}
.hero__headline a, .hero__headline a:hover { color: inherit; }

.hero__summary {
  margin: 0 0 24px;
  font-size: clamp(1rem, 0.3vw + 1rem, 1.125rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  max-width: 60ch;
  border-left: 3px solid var(--fb-volt);
  padding-left: 16px;
}

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

/* Carousel overlay arrows (sides) */
.hero-carousel__overlay-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.hero-carousel__overlay-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--dur-fast), background var(--dur-fast);
}
.hero-carousel:hover .hero-carousel__overlay-control { opacity: 1; }
.hero-carousel__overlay-control:hover { background: var(--fb-volt); color: #000; border-color: var(--fb-volt); }
.hero-carousel__overlay-control--prev { left: 12px; }
.hero-carousel__overlay-control--next { right: 12px; }
.hero-carousel__overlay-arrow { font-size: 22px; line-height: 1; font-weight: 600; }

/* Carousel bottom rail */
.hero-carousel__rail {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 12px var(--shell-pad);
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.4));
}
.hero-carousel__status { display: grid; gap: 2px; color: #fff; }
.hero-carousel__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero-carousel__count {
  font-family: var(--fb-font-mono);
  font-size: 12px;
  font-weight: 500;
}
.hero-carousel__controls { display: flex; gap: 4px; }
.hero-carousel__control {
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 0;
  cursor: pointer;
  font-size: 14px;
}
.hero-carousel__control:hover { background: var(--fb-volt); color: #000; border-color: var(--fb-volt); }

.hero-carousel__progress {
  display: grid;
  grid-template-columns: repeat(var(--hero-count, 5), minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}
.hero-carousel__progress-item {
  position: relative;
  height: 12px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.hero-carousel__progress-item::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: rgba(255,255,255,0.2);
  transform: translateY(-50%);
}
.hero-carousel__progress-item span {
  position: absolute;
  inset: 50% auto auto 0;
  width: 100%;
  height: 2px;
  background: var(--fb-volt);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
}
.hero-carousel__progress-item.is-active span { transform: translateY(-50%) scaleX(1); }
@keyframes heroProgress {
  from { transform: translateY(-50%) scaleX(0); }
  to   { transform: translateY(-50%) scaleX(1); }
}
.hero-carousel.is-paused .hero-carousel__progress-item span { animation-play-state: paused !important; }

/* ---------- HOMEPAGE HEADINGS ---------- */
.homepage-heading,
.section-heading {
  margin-bottom: 32px;
  display: grid;
  gap: 4px;
}
@media (min-width: 720px) {
  .homepage-heading, .section-heading { margin-bottom: 40px; }
}
.homepage-heading h1,
.homepage-heading h2,
.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-family: var(--fb-font-display);
  font-weight: 900;
  font-size: clamp(1.625rem, 1vw + 1.25rem, 2.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--fg-1);
  text-wrap: balance;
}
.homepage-heading--compact h2 { font-size: clamp(1.5rem, 0.5vw + 1.25rem, 2rem); }
.homepage-heading p,
.section-heading p { margin: 0; color: var(--fg-2); max-width: 64ch; }

.archive-heading {
  padding-block: 32px 16px;
}

/* ---------- SECTION / DIVIDERS ---------- */
.section {
  padding-block: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--border);
}
.section:first-of-type { border-top: 0; }
.section--tint { background: var(--bg-sunken); }
.section--stream { padding-bottom: clamp(64px, 8vw, 96px); }

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-1);
  border-bottom: 2px solid var(--fb-volt);
  padding-bottom: 2px;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.section-link:hover { background: var(--fb-volt); color: var(--fb-black); }
.section-link--band {
  margin-top: 24px;
}

/* ---------- META LINE / STORY META ---------- */
.meta-line {
  color: var(--fg-3);
}
.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  font-family: var(--fb-font-mono);
  font-size: 11.5px;
  color: var(--fg-3);
}
.story-meta span + span::before {
  content: "·";
  margin-right: 14px;
  color: var(--fg-3);
}
.story-meta span:first-child::before { content: none; }

/* ---------- STORY CARD ---------- */
.story-card, .xb-text-story, .xb-tail-story, .story-stream__item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.story-card { cursor: pointer; }

.story-card__media, .xb-tail-story__media, .story-stream__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0a0a0a;
}
.story-card__media img, .xb-tail-story__media img, .story-stream__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-out);
}
.story-card:hover .story-card__media img,
.xb-tail-story:hover .xb-tail-story__media img,
.story-stream__item:hover .story-stream__media img { transform: scale(1.03); }

.story-card__fallback {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, var(--fb-black) 0%, #1a1a1a 60%, var(--fb-volt) 220%);
}

.story-card__content,
.xb-text-story,
.xb-tail-story__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-card__title a,
.xb-text-story__title a,
.xb-tail-story__title a,
.story-stream__content h2 a,
.story-stream__content h3 a {
  font-family: var(--fb-font-display);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--fg-1);
  text-wrap: balance;
  transition: text-decoration-thickness var(--dur-fast);
}
.story-card__title a:hover,
.xb-text-story__title a:hover,
.xb-tail-story__title a:hover,
.story-stream__content h2 a:hover,
.story-stream__content h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.story-card__title { font-size: clamp(1.125rem, 0.5vw + 1rem, 1.375rem); margin: 0; }
.story-card--x-lead .story-card__title { font-size: clamp(1.5rem, 1.5vw + 1rem, 2.25rem); }
.story-card--x-feature .story-card__title { font-size: clamp(1.375rem, 1vw + 1rem, 2rem); }
.story-card--x-compact .story-card__title { font-size: 1.25rem; }

.story-card__excerpt,
.xb-text-story__excerpt {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-2);
}

.xb-text-story__title { font-size: 1.125rem; margin: 0; line-height: 1.18; }
.xb-text-story--lead .xb-text-story__title { font-size: 1.5rem; }

.xb-tail-story {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
}
.xb-tail-story__media { aspect-ratio: 1; width: 88px; }
.xb-tail-story__title { font-size: 0.9375rem; margin: 0; line-height: 1.22; }

/* ---------- CURATION SECTION ---------- */
.xb-curation-section { margin-top: 48px; }
.xb-curation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (min-width: 800px) {
  .xb-curation-grid { grid-template-columns: 1.4fr 1fr; gap: 40px; }
}
.xb-curation-grid__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.xb-curation-grid__list > .xb-text-story {
  padding-block: 16px;
  border-top: 1px solid var(--border);
}
.xb-curation-grid__list > .xb-text-story:first-child { border-top: 0; padding-top: 0; }

.xb-curation-tail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
@media (min-width: 600px) { .xb-curation-tail { grid-template-columns: repeat(3, 1fr); } }

.xb-curation-footer {
  margin-top: 32px;
  text-align: center;
}

/* ---------- LANES ---------- */
.xb-lanes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1000px) {
  .xb-lanes-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.xb-lane { display: flex; flex-direction: column; gap: 24px; }
.xb-lane__head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.xb-lane__head h3 {
  margin: 0;
  font-family: var(--fb-font-display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--fg-1);
}
.xb-lane__topics { display: flex; flex-wrap: wrap; gap: 6px; }

.topic-chip {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid var(--border-strong);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-1);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.topic-chip:hover { background: var(--fb-volt); color: #000; border-color: var(--fb-volt); }

.xb-lane--ai .xb-lane__head { border-bottom-color: var(--fb-beat-ai); }
.xb-lane--crypto .xb-lane__head { border-bottom-color: var(--fb-beat-crypto); }
.xb-lane--technology .xb-lane__head { border-bottom-color: var(--fb-beat-tech); }

.xb-lane__feature, .xb-lane__mix-lead { margin-bottom: 4px; }
.xb-lane__briefs, .xb-lane__text-stack, .xb-lane__mix-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.xb-lane__briefs > .xb-text-story,
.xb-lane__text-stack > .xb-text-story + .xb-text-story,
.xb-lane__mix-list > .xb-tail-story {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ---------- DIGEST / SCAN PANEL (right rail) ---------- */
.xb-scan-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  padding: 20px;
}
@media (min-width: 1100px) { .xb-scan-panel { position: sticky; top: 80px; } }

.xb-scan-panel__head { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.xb-scan-panel__head h2 {
  margin: 0;
  font-family: var(--fb-font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.digest-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.digest-list__item { border-top: 1px solid var(--border); }
.digest-list__item:first-child { border-top: 0; }
.digest-list__link {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 12px 0;
  transition: background var(--dur-fast);
}
.digest-list__link:hover { background: var(--bg-sunken); }
.digest-list__index {
  font-family: var(--fb-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--fb-volt-deep);
  padding-top: 1px;
}
[data-theme="dark"] .digest-list__index, body.is-dark .digest-list__index { color: var(--fb-volt); }
.digest-list__body { display: flex; flex-direction: column; gap: 4px; }
.digest-list__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.digest-list__title {
  font-family: var(--fb-font-display);
  font-weight: 800;
  font-size: 0.875rem;
  line-height: 1.22;
  color: var(--fg-1);
}
.digest-list__meta {
  font-family: var(--fb-font-mono);
  font-size: 11px;
  color: var(--fg-3);
}

/* ---------- DESKS ---------- */
.xb-desks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 700px) { .xb-desks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .xb-desks-grid { grid-template-columns: repeat(3, 1fr); } }

.xb-desk-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.xb-desk-block__title {
  margin: 0;
  font-family: var(--fb-font-display);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.025em;
  color: var(--fg-1);
}
.xb-desk-block__description {
  margin: 0;
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.5;
}
.xb-desk-block__links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}
.xb-desk-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  transition: padding-left var(--dur-fast);
}
.xb-desk-link:first-of-type { border-top: 0; }
.xb-desk-link:hover { padding-left: 6px; }
.xb-desk-link__name { color: var(--fg-1); }
.xb-desk-link__count {
  font-family: var(--fb-font-mono);
  font-size: 11px;
  color: var(--fg-3);
}

/* ---------- LIVE FEED / STORY STREAM ---------- */
.story-stream, .xb-live-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 600px) { .story-stream, .xb-live-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .story-stream, .xb-live-grid { grid-template-columns: repeat(3, 1fr); } }

.story-stream__item {
  cursor: pointer;
  padding-top: 0;
}
.story-stream__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.story-stream__content h2,
.story-stream__content h3 {
  margin: 0;
  font-family: var(--fb-font-display);
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* ---------- CATEGORIES TAGS (term labels rendered as text — color-coded via class on body or [data-beat]) ---------- */
.meta-line {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-1);
}

/* ---------- FORMS / SEARCH ---------- */
.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  margin-bottom: 24px;
  border: 1px solid var(--border-strong);
}
.search-form label { display: block; }
.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: var(--bg-elevated);
  font: inherit;
  font-size: 14px;
  color: var(--fg-1);
  padding: 12px 14px;
}
.search-form .search-field { border: 0; }
.search-field:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus { outline: 2px solid var(--fb-volt); outline-offset: -2px; }
textarea { min-height: 160px; }

.search-submit,
input[type="submit"] {
  background: var(--fb-volt);
  color: var(--fb-black);
  border: 0;
  border-radius: 0;
  padding: 0 22px;
  font-family: var(--fb-font-sans);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur-fast);
}
.search-submit:hover, input[type="submit"]:hover { background: var(--fb-volt-deep); }

/* ---------- PAGINATION ---------- */
.pagination-wrap { margin-top: 40px; }
.pagination-wrap .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination-wrap a,
.pagination-wrap span {
  min-width: 40px;
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  font-family: var(--fb-font-mono);
  font-size: 13px;
  font-weight: 500;
}
.pagination-wrap a:hover { background: var(--fb-volt); color: #000; border-color: var(--fb-volt); }
.pagination-wrap .current { background: var(--fb-black); color: #fff; }
[data-theme="dark"] .pagination-wrap .current,
body.is-dark .pagination-wrap .current { background: var(--fb-white); color: #000; }

.js-infinite-enabled .pagination-wrap { display: none; }
.infinite-scroll-status {
  min-height: 20px;
  margin-top: 16px;
  font-family: var(--fb-font-mono);
  font-size: 12px;
  color: var(--fg-3);
}
.infinite-scroll-sentinel { height: 1px; }
.is-loading .infinite-scroll-status::after,
.is-loading-next-story .continuous-reading__status::after {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  margin-left: 6px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--fb-volt);
  border-radius: 50%;
  animation: fb-spin 0.7s linear infinite;
  vertical-align: text-bottom;
}
@keyframes fb-spin { to { transform: rotate(360deg); } }

/* ---------- IN BRIEF block style (Gutenberg Group is-style-keypoints) ---------- */
.wp-block-group.is-style-keypoints,
.article-body--clean .wp-block-group.is-style-keypoints {
  background: var(--bg-sunken);
  border-left: 4px solid var(--fg-1);
  padding: 20px 24px;
  margin: 28px 0 36px;
}
.wp-block-group.is-style-keypoints > * { margin-block: 0; }
.wp-block-group.is-style-keypoints h2,
.wp-block-group.is-style-keypoints h3,
.wp-block-group.is-style-keypoints h4 {
  margin: 0 0 12px;
  font-family: var(--fb-font-sans);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-1);
  line-height: 1.2;
}
.wp-block-group.is-style-keypoints ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.wp-block-group.is-style-keypoints li {
  font-size: 14px;
  line-height: 1.55;
  padding: 6px 0 6px 18px;
  position: relative;
  color: var(--fg-2);
  margin: 0;
}
.wp-block-group.is-style-keypoints li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--fg-1);
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
}

/* ---------- SINGLE ARTICLE (clean reference layout) ----------
   No full-bleed hero. Text-first on white. Featured image inline
   between byline and body, optional.
   ------------------------------------------------------------ */
.article--clean {
  background: var(--bg);
}
.article--clean .article-shell {
  padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 80px);
}
.article-body--clean {
  width: 100%;
  max-width: var(--reading-max);
  margin-inline: auto;
  color: var(--fg-1);
}

/* Category chip on article page — solid Volt rectangle */
.article-category {
  display: inline-block;
  background: var(--fb-volt);
  color: var(--fb-black);
  font-family: var(--fb-font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  margin-bottom: 20px;
  border-radius: 0;
}

.article-title {
  margin: 0 0 16px;
  font-family: var(--fb-font-display);
  font-weight: 900;
  font-size: clamp(1.875rem, 1.4vw + 1.5rem, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--fg-1);
  text-wrap: balance;
}

.article-dek {
  margin: 0 0 20px;
  font-family: var(--fb-font-sans);
  font-size: clamp(1rem, 0.3vw + 1rem, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--fg-2);
  border-left: 3px solid var(--fb-volt);
  padding-left: 16px;
  text-wrap: pretty;
}

.article-byline {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--fb-font-sans);
  font-size: 13px;
  color: var(--fg-3);
}
.article-byline strong {
  color: var(--fg-1);
  font-weight: 600;
}

.article-feature {
  margin: 0 0 36px;
}
.article-feature img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.98) contrast(1.04);
}
.article-feature figcaption {
  margin-top: 10px;
  font-family: var(--fb-font-mono);
  font-size: 12px;
  color: var(--fg-3);
}

/* Body type matches the reference: 17px/1.7 */
.article-body--clean p,
.article-body--clean ul,
.article-body--clean ol {
  font-family: var(--fb-font-sans);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 22px;
  color: var(--fg-1);
  text-wrap: pretty;
}
.article-body--clean h2 {
  font-family: var(--fb-font-display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 36px 0 14px;
}
.article-body--clean h3 {
  font-family: var(--fb-font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  margin: 28px 0 12px;
}
.article-body--clean a {
  color: var(--fg-1);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.article-body--clean a:hover {
  background: var(--fb-volt);
  color: var(--fb-black);
}

/* "In Brief" / Key Points block — paste-friendly markup:
   write a Custom HTML block in Gutenberg matching this structure. */
.article-body--clean .keypoints-block,
.article-body--clean .ds-keypoints {
  background: var(--bg-sunken);
  border-left: 4px solid var(--fg-1);
  padding: 20px 24px;
  margin: 28px 0 36px;
}
.article-body--clean .keypoints-block h3,
.article-body--clean .ds-keypoints h3 {
  margin: 0 0 12px;
  font-family: var(--fb-font-sans);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-1);
}
.article-body--clean .keypoints-block ul,
.article-body--clean .ds-keypoints ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-body--clean .keypoints-block li,
.article-body--clean .ds-keypoints li {
  font-size: 14px;
  line-height: 1.55;
  padding: 6px 0 6px 18px;
  position: relative;
  color: var(--fg-2);
  margin: 0;
}
.article-body--clean .keypoints-block li::before,
.article-body--clean .ds-keypoints li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--fg-1);
  font-weight: 900;
}

/* Pull quote inside clean article body */
.article-body--clean blockquote {
  margin: 28px 0;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--fb-volt);
  font-family: var(--fb-font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 1vw + 1rem, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg-1);
}

/* ---------- LEGACY full-bleed ARTICLE HERO (used only by
   article-hero class — kept for backwards-compat if someone
   re-enables it) ---------- */
.article-hero {
  position: relative;
  min-height: clamp(420px, 56vw, 640px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--fb-black);
  color: #fff;
}
.article-hero.has-image { background: #0a0a0a; }
.article-hero__media,
.article-hero__veil { position: absolute; inset: 0; }
.article-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.98) contrast(1.06);
}
.article-hero__veil {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.34) 60%, rgba(0,0,0,0.1) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
}
.article-hero__content {
  position: relative;
  z-index: 1;
  padding-block: clamp(80px, 10vw, 140px) clamp(40px, 5vw, 64px);
}
.article-hero__content .meta-line {
  color: var(--fb-volt);
  margin-bottom: 14px;
}
.article-hero__content h1 {
  margin: 0 0 16px;
  font-family: var(--fb-font-display);
  font-weight: 900;
  font-size: clamp(2rem, 1.4vw + 1.7rem, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 20ch;
  text-wrap: balance;
  color: #fff;
}
.article-hero__excerpt {
  margin: 0 0 18px;
  font-size: clamp(1rem, 0.3vw + 1rem, 1.25rem);
  line-height: 1.5;
  color: rgba(255,255,255,0.86);
  max-width: 60ch;
  border-left: 3px solid var(--fb-volt);
  padding-left: 16px;
}
.article-hero__content .story-meta { color: rgba(255,255,255,0.7); }

.article-shell { padding-block: clamp(40px, 5vw, 72px); }
.article-layout--single-column { display: block; }
.article-body, .page-body {
  width: 100%;
  max-width: var(--reading-max);
  margin-inline: auto;
  font-size: 17px;
  line-height: 1.72;
  color: var(--fg-1);
}
.article-body > * + *, .page-body > * + * { margin-top: 1.2em; }
.article-body p, .page-body p {
  margin: 0 0 1.3em;
  text-wrap: pretty;
}
.article-body h2, .page-body h2 {
  margin: 2em 0 0.7em;
  font-family: var(--fb-font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--fg-1);
}
.article-body h3, .page-body h3 {
  margin: 1.8em 0 0.6em;
  font-family: var(--fb-font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.article-body a, .page-body a {
  color: var(--fg-1);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.article-body a:hover, .page-body a:hover {
  background: var(--fb-volt);
  color: var(--fb-black);
}

/* Pull quote */
.article-body blockquote, .page-body blockquote {
  margin: 2em 0;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--fb-volt);
  font-family: var(--fb-font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 1vw + 1rem, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg-1);
}

.article-body figure, .page-body figure,
.article-body .wp-block-image, .page-body .wp-block-image { margin: 2em 0; }
.article-body figcaption, .page-body figcaption {
  margin-top: 8px;
  font-family: var(--fb-font-mono);
  font-size: 12px;
  color: var(--fg-3);
}

.article-body ul, .article-body ol,
.page-body ul, .page-body ol { margin: 0 0 1.3em 1.2em; padding: 0; }
.article-body li, .page-body li { margin-bottom: 0.4em; }

/* Article endmatter */
.article-endmatter {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: var(--reading-max);
  margin-inline: auto;
}
@media (min-width: 800px) { .article-endmatter { grid-template-columns: 1fr 1.2fr; } }
.article-endmatter__details .meta-line,
.article-endmatter__related .meta-line { margin-bottom: 14px; }
.article-endmatter__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}
.article-endmatter__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 4px;
}
.article-endmatter__grid strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-1);
}
.article-endmatter__stories { display: flex; flex-direction: column; gap: 0; }
.article-endmatter__story { padding: 14px 0; border-top: 1px solid var(--border); }
.article-endmatter__story:first-child { border-top: 0; padding-top: 0; }
.article-endmatter__story-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.article-endmatter__story-title {
  margin: 0;
  font-family: var(--fb-font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.article-endmatter__story-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* Continuous reading */
.continuous-entry + .continuous-entry {
  margin-top: clamp(64px, 8vw, 120px);
  padding-top: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--border);
}
.continuous-reading__footer {
  max-width: var(--reading-max);
  margin-inline: auto;
  padding-top: 24px;
  display: grid;
  gap: 12px;
}
.continuous-reading__next-link {
  display: grid;
  gap: 4px;
}
.continuous-reading__next-link span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.continuous-reading__next-link strong {
  font-family: var(--fb-font-display);
  font-weight: 800;
  font-size: clamp(1.125rem, 0.6vw + 1rem, 1.5rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.continuous-reading__next-link:hover strong {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.continuous-reading__status {
  font-family: var(--fb-font-mono);
  font-size: 12px;
  color: var(--fg-3);
  margin: 0;
}
.continuous-reading__sentinel { width: 100%; height: 1px; }
.js-continuous-enabled.single-post .article-more { display: none; }

/* ---------- FOOTER ---------- */
.site-footer {
  margin-top: 80px;
  background: var(--fb-black);
  color: #888;
}

/* Desks block at top of footer */
.site-footer__desks {
  padding-block: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid #1a1a1a;
}
.site-footer__desks-head { margin-bottom: 32px; display: grid; gap: 6px; }
.site-footer__desks-head .site-footer__eyebrow { color: var(--fb-volt); margin: 0; }
.site-footer__desks-head h2 {
  margin: 0;
  font-family: var(--fb-font-display);
  font-weight: 900;
  font-size: clamp(1.625rem, 1.2vw + 1.25rem, 2.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
}
.site-footer__desks .xb-desks-grid { gap: 0; }
.site-footer__desks .xb-desk-block {
  background: transparent;
  border: 0;
  border-top: 1px solid #1a1a1a;
  padding: 28px 0;
  gap: 10px;
}
@media (min-width: 700px) {
  .site-footer__desks .xb-desks-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 32px;
  }
  .site-footer__desks .xb-desk-block:nth-child(-n+2) { border-top: 0; padding-top: 0; }
}
@media (min-width: 1000px) {
  .site-footer__desks .xb-desks-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__desks .xb-desk-block:nth-child(-n+3) { border-top: 0; padding-top: 0; }
  .site-footer__desks .xb-desk-block:nth-child(n+4) { border-top: 1px solid #1a1a1a; padding-top: 28px; }
}
.site-footer__desks .xb-desk-block__title {
  color: #fff;
  font-size: 1.25rem;
}
.site-footer__desks .xb-desk-block__description {
  color: #888;
  font-size: 13px;
}
.site-footer__desks .xb-desk-link {
  border-color: #1a1a1a;
  padding: 9px 0;
}
.site-footer__desks .xb-desk-link__name { color: #ccc; font-size: 13px; }
.site-footer__desks .xb-desk-link__count { color: #555; }
.site-footer__desks .xb-desk-link:hover { background: rgba(230,255,0,0.04); padding-left: 6px; }
.site-footer__desks .xb-desk-link:hover .xb-desk-link__name { color: var(--fb-volt); }

/* Utility row */
.site-footer__utility { padding-block: 40px 24px; }
.site-footer__utility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 700px) {
  .site-footer__utility-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
}
.site-footer__brand { display: grid; gap: 10px; }
.site-footer__brand .site-branding__name { font-size: 26px; }
.site-footer__tagline {
  margin: 0;
  font-size: 13px;
  color: #888;
  max-width: 36ch;
  line-height: 1.5;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer__links a {
  font-size: 13px;
  color: #aaa;
  transition: color var(--dur-fast);
}
.site-footer__links a:hover { color: var(--fb-volt); }

/* Legal */
.site-footer__legal {
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid #1a1a1a;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12px;
  color: #555;
}
.site-footer__legal p { margin: 0; }
.site-footer__legal a { color: var(--fb-volt); }

/* ---------- 404 / PAGE ---------- */
.section--404, .page-shell {
  padding-block: clamp(56px, 7vw, 96px);
}
.section--404 h1, .page-shell h1 {
  margin: 0 0 16px;
  font-family: var(--fb-font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 4vw + 1rem, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

/* ---------- COMMENTS ---------- */
.comments-area { max-width: var(--reading-max); margin: 56px auto 0; }
.comments-title {
  font-family: var(--fb-font-display);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .comment { border-top: 1px solid var(--border); padding: 20px 0; }
.comment-meta { margin-bottom: 8px; font-size: 13px; color: var(--fg-3); }

/* ---------- REVEAL ON SCROLL ---------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
  .hero-slide, .hero-slide__media img { transition: none; }
}

/* ---------- RIGHT-RAIL CURATION PREVIEW (optional) ---------- */
[data-curation-preview-source="true"] { cursor: pointer; }
[data-curation-preview-source="true"]:hover .xb-text-story__title a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* ---------- SCROLLBARS (dark mode) ---------- */
[data-theme="dark"], body.is-dark { scrollbar-color: #333 #0a0a0a; }
