/* ==========================================================================
   landing.css -- Editorial-style landing page styles for Siberforge.
   Consolidated 2026-05-02 from landing.css + landing.new.css.
   Loaded by /index.html only. Dashboard pages do NOT load this.
   ========================================================================== */

/* ==========================================================================
   Section 1: Original landing layout (compact dashboard density)
   Sits on top of /core/lib/tokens.css for color tokens.
   ========================================================================== */
/* Compact dashboard density, dark by default, light theme via shared toggle.   */

body.landing-page main.landing-main { max-width: 1280px; margin: 0 auto; padding: 22px 24px 60px; }

/* ========= Tagline ========= */
.lp-tagline { margin-bottom: 18px; }
.lp-tagline h1 {
  font-size: 26px; font-weight: 700; margin: 0 0 8px;
  letter-spacing: -0.3px; line-height: 1.15;
}
.lp-tagline p {
  margin: 0; color: var(--muted); font-size: 13.5px;
  line-height: 1.6; max-width: 720px;
}

/* ========= Live ribbon (4 hero mini-tiles) ========= */
.lp-ribbon {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-bottom: 20px;
}
@media (max-width: 760px) { .lp-ribbon { grid-template-columns: repeat(2, 1fr); } }
.mini-tile {
  display: block; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 14px; transition: border-color .15s, transform .15s var(--ease-out);
}
.mini-tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.mini-tile-head { display: flex; justify-content: space-between; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 6px; }
.mini-tile-label { font-weight: 600; }
.mini-tile-delta { font-weight: 600; }
.mini-tile-delta.up { color: var(--green); }
.mini-tile-delta.down { color: var(--red); }
.mini-tile-value { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.1; }
.mini-tile-unit { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.mini-tile-spark { height: 28px; margin: 6px 0 4px; }
.mini-tile-asof { font-size: 10.5px; color: var(--muted); }

/* ========= Today's Read (recession + wage strips) ========= */
.lp-todays-read { margin-bottom: 24px; }
.lp-tr-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
@media (max-width: 900px) { .lp-tr-grid { grid-template-columns: 1fr; } }
.rec-strip, .ind-strip { background: var(--panel); border: 1px solid var(--line);
  border-radius: 6px; padding: 14px 16px; }
.rec-card, .ind-card { display: flex; flex-direction: column; gap: 10px; }
.rec-tag, .ind-tag { display: inline-block; font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px; color: var(--accent);
  background: rgba(247, 167, 0, 0.14); padding: 2px 7px; border-radius: 3px; }
:root[data-theme="light"] .rec-tag, :root[data-theme="light"] .ind-tag {
  background: rgba(181, 103, 0, 0.14); }
.rec-title, .ind-title { margin: 4px 0 0; font-size: 16px; font-weight: 700; color: var(--text); }
.rec-summary, .ind-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rec-count { display: inline-flex; align-items: baseline; gap: 6px; }
.rec-count-num { font-size: 26px; font-weight: 700; color: var(--text); }
.rec-count-of { font-size: 11.5px; color: var(--muted); }
.rec-pill, .ind-pill { display: inline-flex; flex-direction: column;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px;
  padding: 5px 10px; }
.rec-pill-label, .ind-pill-label { font-size: 11px; font-weight: 700; letter-spacing: 0.4px;
  text-transform: uppercase; color: var(--muted); }
.rec-pill-sub, .ind-pill-sub { font-size: 11px; color: var(--muted); }
.rec-rail { height: 28px; }
.ind-value { font-size: 26px; font-weight: 700; color: var(--text); }
.ind-unit { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.ind-delta { font-size: 12px; color: var(--muted); padding: 2px 7px;
  border-radius: 3px; background: var(--panel-2); }
.ind-spark { height: 36px; }
.rec-meta, .ind-meta { display: flex; justify-content: space-between; font-size: 11px;
  color: var(--muted); padding-top: 6px; border-top: 1px solid var(--line); }
.rec-cta, .ind-cta { color: var(--accent); text-decoration: none; font-weight: 600; }
.rec-cta:hover, .ind-cta:hover { text-decoration: underline; }

/* ========= Hub: collapsible category tree ========= */
.lp-hub { margin-top: 12px; }
.hub-controls {
  display: flex; gap: 10px; margin-bottom: 12px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px;
}
.hub-search {
  flex: 1; background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  padding: 7px 12px; border-radius: 5px; font-family: inherit; font-size: 13px;
}
.hub-search::placeholder { color: var(--muted); }
.hub-search:focus { outline: none; border-color: var(--accent); }
.hub-actions { display: flex; gap: 4px; }
.hub-actions button {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  padding: 6px 10px; border-radius: 4px; cursor: pointer; font-family: inherit; font-size: 11.5px;
  transition: .12s;
}
.hub-actions button:hover { color: var(--text); border-color: var(--accent); }

.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 980px) { .cat-grid { grid-template-columns: 1fr; } }
.cat { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cat-head {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  cursor: pointer; user-select: none; border-bottom: 1px solid var(--line);
  transition: background .12s;
}
.cat.collapsed .cat-head { border-bottom-color: transparent; }
.cat-head:hover { background: var(--panel-2); }
.cat-arrow { font-size: 9px; color: var(--muted); transition: transform .15s; width: 10px; }
.cat.collapsed .cat-arrow { transform: rotate(-90deg); }
.cat-head h2 { margin: 0; font-size: 14px; font-weight: 700; color: var(--text); flex: 1; }
.cat-count { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-tag {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--accent); background: rgba(247, 167, 0, 0.14); padding: 2px 6px; border-radius: 3px;
}
:root[data-theme="light"] .cat-tag { background: rgba(181, 103, 0, 0.14); }

.cat-body { padding: 4px 0; max-height: 9999px; transition: max-height .2s; }
.cat.collapsed .cat-body { max-height: 0; padding: 0; overflow: hidden; }

.leaf {
  display: flex; align-items: baseline; gap: 12px; padding: 7px 16px 7px 30px;
  text-decoration: none; color: var(--text); transition: background .12s, color .12s;
  border-left: 2px solid transparent;
}
.leaf:hover { background: var(--panel-2); border-left-color: var(--accent); }
.leaf-name { font-size: 12.5px; font-weight: 600; flex: 0 0 auto; min-width: 200px; }
.leaf-meta { font-size: 11.5px; color: var(--muted); }
.leaf.sub { padding-left: 50px; }
.leaf.sub .leaf-name { min-width: 180px; font-weight: 500; }

.branch { border-bottom: 1px solid transparent; }
.branch-head {
  display: flex; align-items: baseline; gap: 12px; padding: 7px 16px 7px 30px;
  background: transparent; border: none; color: var(--text); cursor: pointer;
  font-family: inherit; width: 100%; text-align: left;
  transition: background .12s;
}
.branch-head:hover { background: var(--panel-2); }
.branch-arrow { font-size: 9px; color: var(--muted); transition: transform .15s; width: 10px; }
.branch.expanded .branch-arrow { transform: rotate(90deg); }
.branch-body { max-height: 0; overflow: hidden; transition: max-height .2s; }
.branch.expanded .branch-body { max-height: 9999px; }

footer { padding: 16px 24px; }

/* ============ Recession composite: 5-signal dot grid ============ */
.rec-dots {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 10px; padding-top: 12px; border-top: 1px solid var(--line);
}
.rec-dot-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 10.5px; color: var(--muted); letter-spacing: 0.3px;
  text-align: center; font-weight: 500;
}
.rec-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(138, 148, 163, 0.45);
}
.rec-dot-item.ok .rec-dot        { background: var(--green); }
.rec-dot-item.triggered          { color: var(--red); font-weight: 600; }
.rec-dot-item.triggered .rec-dot { background: var(--red); box-shadow: 0 0 0 3px rgba(239, 79, 90, 0.20); }

/* ============ Indicator tier badge (colored by t-* class) ============ */
.ind-tier {
  display: inline-flex; flex-direction: column;
  padding: 8px 12px; border-radius: 5px;
  border-left: 3px solid rgba(138, 148, 163, 0.5);
  background: var(--panel-2); min-width: 160px;
}
.ind-tier-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.0px;
  color: var(--muted); text-transform: uppercase;
}
.ind-tier-sub {
  margin-top: 2px; font-size: 11px; color: var(--muted); line-height: 1.4;
}
.ind-tier.t-healthy { border-left-color: var(--green); background: rgba(62, 207, 142, 0.08); }
.ind-tier.t-healthy .ind-tier-label { color: var(--green); }
.ind-tier.t-trend   { border-left-color: var(--blue);  background: rgba(90, 156, 255, 0.10); }
.ind-tier.t-trend   .ind-tier-label { color: var(--blue); }
.ind-tier.t-cooling { border-left-color: var(--accent); background: rgba(247, 167, 0, 0.10); }
.ind-tier.t-cooling .ind-tier-label { color: var(--accent); }
.ind-tier.t-weak    { border-left-color: var(--red);   background: rgba(239, 79, 90, 0.10); }
.ind-tier.t-weak    .ind-tier-label { color: var(--red); }
:root[data-theme="light"] .ind-tier.t-healthy { background: rgba(31, 138, 85, 0.10); }
:root[data-theme="light"] .ind-tier.t-trend   { background: rgba(31, 95, 196, 0.10); }
:root[data-theme="light"] .ind-tier.t-cooling { background: rgba(181, 103, 0, 0.10); }
:root[data-theme="light"] .ind-tier.t-weak    { background: rgba(196, 40, 60, 0.10); }

/* ============ Indicator delta + sparkline ============ */
.ind-delta { font-size: 11.5px; color: var(--muted); padding: 2px 7px;
  border-radius: 3px; background: var(--panel-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.ind-delta.up    { color: var(--green); background: rgba(62, 207, 142, 0.10); }
.ind-delta.down  { color: var(--red);   background: rgba(239, 79, 90, 0.10); }
.ind-delta.flat  { color: var(--muted); }
.ind-spark { padding-top: 10px; border-top: 1px solid var(--line); min-height: 48px; line-height: 0; }
.ind-spark svg { width: 100% !important; height: 48px !important; }

/* Recession status text + count */
.rec-status-text, .ind-status-text { font-size: 11px; color: var(--muted); }

/* Mini-tile delta badges and sparkline (already present, ensure consistency) */
.mini-tile.is-loading .mini-tile-value,
.mini-tile.is-loading .mini-tile-delta { color: var(--muted); }
.mini-tile-spark svg { width: 100% !important; height: 28px !important; }


/* ===== Brand icon (eye-mark) in siberforge top bar ===== */
.brand-icon {
  width: 24px; height: 24px; display: inline-block;
  vertical-align: middle; margin-right: 2px;
  object-fit: contain;
}
@media (max-width: 640px) {
  .brand-icon { width: 20px; height: 20px; }
}

/* ===== Landing hero: husky on right ===== */
.lp-tagline { display: flex; align-items: center; gap: 24px; }
.lp-tagline-text { flex: 1; }
.lp-husky {
  width: 180px; height: auto; flex-shrink: 0;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}
@media (max-width: 720px) {
  .lp-tagline { flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
  .lp-husky { width: 130px; }
}
:root[data-theme="light"] .lp-husky {
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.12));
}


/* ==========================================================================
   Section 2: Editorial overlay -- restyles the landing page when
   <body class="landing-page editorial">. Provides full-bleed sections,
   bigger type, and hero treatments.
   ========================================================================== */
body.landing-page.editorial {
  --ed-bg:           #0a0a0a;
  --ed-bg-soft:      #141416;
  --ed-bg-card:      #15151a;
  --ed-bg-card-hi:   #1d1d24;
  --ed-ink:          #f5f5f5;
  --ed-ink-muted:    #a8a8a8;
  --ed-ink-faint:    #6a6a6a;
  --ed-red:          #E63946;
  --ed-ice:          #3EB8E0;
  --ed-amber:        #E09A3E;
  --ed-green:        #3ECF8E;
  --ed-rule:         rgba(255,255,255,0.08);
  --ed-rule-strong:  rgba(255,255,255,0.18);
  --ed-sec-pad:      96px;
  --ed-side-pad:     6vw;
  --ed-content-max:  1280px;

  background: var(--ed-bg) !important;
  color: var(--ed-ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

:root[data-theme="light"] body.landing-page.editorial {
  --ed-bg:           #fafaf7;
  --ed-bg-soft:      #f0eee8;
  --ed-bg-card:      #ffffff;
  --ed-bg-card-hi:   #f5f3ec;
  --ed-ink:          #0a0a0a;
  --ed-ink-muted:    #5a5a5a;
  --ed-ink-faint:    #8a8a8a;
  --ed-rule:         rgba(0,0,0,0.08);
  --ed-rule-strong:  rgba(0,0,0,0.18);
}

/* Strip old container padding so editorial sections go full-bleed */
body.landing-page.editorial main.landing-main {
  max-width: none; margin: 0; padding: 0;
}

/* Hide the legacy header + tagline + footer (replaced by editorial counterparts) */
body.landing-page.editorial > header.top { display: none; }
body.landing-page.editorial .lp-tagline { display: none; }
body.landing-page.editorial > footer:not(.ed-footer) { display: none; }

/* ===================== NAV ===================== */
body.landing-page.editorial .ed-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--ed-side-pad);
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ed-rule);
}
:root[data-theme="light"] body.landing-page.editorial .ed-nav {
  background: rgba(250,250,247,0.78);
}
body.landing-page.editorial .ed-brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 900; letter-spacing: -0.02em; font-size: 18px;
  color: inherit; text-decoration: none;
}
body.landing-page.editorial .ed-eyes-mini { width: 44px; height: 20px; flex: 0 0 auto; }
body.landing-page.editorial .ed-brand .siber { color: var(--ed-ink); }
body.landing-page.editorial .ed-brand .forge { color: var(--ed-red); }

body.landing-page.editorial .ed-nav-right {
  display: flex; gap: 22px; align-items: center; font-size: 14px;
}
body.landing-page.editorial .ed-nav-link {
  color: var(--ed-ink-muted); text-decoration: none;
  transition: color 0.15s;
}
body.landing-page.editorial .ed-nav-link:hover { color: var(--ed-ink); }
body.landing-page.editorial .ed-nav-cta {
  color: var(--ed-ink) !important;
  border: 1px solid var(--ed-rule-strong);
  padding: 8px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
body.landing-page.editorial .ed-nav-cta:hover {
  border-color: var(--ed-red); background: rgba(230,57,70,0.06);
}
body.landing-page.editorial .ed-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ed-ink-faint);
  letter-spacing: 0.05em;
}
body.landing-page.editorial .ed-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ed-green);
  box-shadow: 0 0 6px rgba(62,207,142,0.6);
}
body.landing-page.editorial #theme-toggle.theme-toggle {
  background: transparent; border: 1px solid var(--ed-rule);
  color: var(--ed-ink-muted); cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; padding: 0;
}
body.landing-page.editorial #theme-toggle.theme-toggle:hover {
  color: var(--ed-ink); border-color: var(--ed-rule-strong);
}

/* ===================== HERO ===================== */
body.landing-page.editorial .ed-hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px var(--ed-side-pad) 80px;
  background: linear-gradient(135deg, var(--ed-bg) 0%, #1a0a0c 100%);
  gap: 56px; position: relative;
}
:root[data-theme="light"] body.landing-page.editorial .ed-hero {
  background: linear-gradient(135deg, var(--ed-bg) 0%, #f6e4e6 100%);
}
body.landing-page.editorial .ed-hero-eyes {
  width: min(520px, 60vw); height: auto;
  filter: drop-shadow(0 0 60px rgba(62,184,224,0.25))
          drop-shadow(0 0 60px rgba(224,154,62,0.2));
}
body.landing-page.editorial .ed-hero h1 {
  font-size: clamp(64px, 10vw, 160px);
  font-weight: 900; line-height: 0.88; letter-spacing: -0.045em;
  margin: 0;
}
body.landing-page.editorial .ed-hero h1 .red { color: var(--ed-red); }
body.landing-page.editorial .ed-hero .ed-sub {
  font-size: clamp(16px, 1.5vw, 22px);
  color: var(--ed-ink-muted);
  max-width: 640px; margin: 32px auto 0; line-height: 1.5;
}
body.landing-page.editorial .ed-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ed-ink-faint);
}

/* ===================== SHARED SECTION FRAME ===================== */
body.landing-page.editorial .ed-block {
  padding: var(--ed-sec-pad) var(--ed-side-pad);
  border-top: 1px solid var(--ed-rule);
  background: var(--ed-bg);
}
body.landing-page.editorial .ed-section-head {
  max-width: var(--ed-content-max); margin: 0 auto 56px;
}
body.landing-page.editorial .ed-eyebrow {
  color: var(--ed-red); font-size: 12px; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  margin-bottom: 16px;
}
body.landing-page.editorial .ed-section-head h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1;
  max-width: 900px; margin: 0; color: var(--ed-ink);
}

/* ===================== LIVE TODAY ===================== */
body.landing-page.editorial .ed-live .ed-ribbon {
  max-width: var(--ed-content-max); margin: 0 auto 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--ed-rule);
  border: 1px solid var(--ed-rule);
}
@media (max-width: 880px) {
  body.landing-page.editorial .ed-live .ed-ribbon { grid-template-columns: repeat(2, 1fr); }
}

body.landing-page.editorial .mini-tile {
  background: var(--ed-bg-card);
  border: none; border-radius: 0;
  padding: 22px 24px; transition: background .15s;
  text-decoration: none; color: inherit;
}
body.landing-page.editorial .mini-tile:hover { background: var(--ed-bg-card-hi); transform: none; }
body.landing-page.editorial .mini-tile-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--ed-ink-faint); margin-bottom: 12px;
}
body.landing-page.editorial .mini-tile-label { font-weight: 700; }
body.landing-page.editorial .mini-tile-delta {
  font-weight: 600; font-size: 11px; color: var(--ed-ink-muted);
  font-variant-numeric: tabular-nums;
  background: transparent; padding: 0;
}
body.landing-page.editorial .mini-tile-delta.up   { color: var(--ed-green); }
body.landing-page.editorial .mini-tile-delta.down { color: var(--ed-red); }
body.landing-page.editorial .mini-tile-value {
  font-size: 32px; font-weight: 800; color: var(--ed-ink);
  line-height: 1.05; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
body.landing-page.editorial .mini-tile-unit {
  font-size: 14px; font-weight: 500; color: var(--ed-ink-muted);
  margin-left: 3px;
}
body.landing-page.editorial .mini-tile-spark { height: 36px; margin: 12px 0 8px; }
body.landing-page.editorial .mini-tile-spark svg { height: 36px !important; }
body.landing-page.editorial .mini-tile-asof {
  font-size: 11px; color: var(--ed-ink-faint); letter-spacing: 0.05em;
}

/* Today's Read 2-up */
body.landing-page.editorial .ed-tr-grid {
  max-width: var(--ed-content-max); margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px;
}
@media (max-width: 980px) {
  body.landing-page.editorial .ed-tr-grid { grid-template-columns: 1fr; }
}

body.landing-page.editorial .rec-strip,
body.landing-page.editorial .ind-strip {
  background: var(--ed-bg-card);
  border: 1px solid var(--ed-rule);
  border-radius: 6px; padding: 28px;
  transition: border-color .15s;
}
body.landing-page.editorial .rec-strip:hover,
body.landing-page.editorial .ind-strip:hover {
  border-color: var(--ed-rule-strong);
}
body.landing-page.editorial .rec-tag,
body.landing-page.editorial .ind-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--ed-red);
  background: rgba(230,57,70,0.10);
  padding: 4px 10px; border-radius: 999px;
}
body.landing-page.editorial .pulse {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ed-red); box-shadow: 0 0 6px var(--ed-red);
  animation: ed-pulse 1.6s ease-in-out infinite;
}
@keyframes ed-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.8); }
}
body.landing-page.editorial .rec-title,
body.landing-page.editorial .ind-title {
  margin: 12px 0 16px;
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.15;
  color: var(--ed-ink);
}
body.landing-page.editorial .rec-summary {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-bottom: 4px;
}
body.landing-page.editorial .rec-count {
  display: inline-flex; align-items: baseline; gap: 8px;
}
body.landing-page.editorial .rec-count-num {
  font-size: 36px; font-weight: 900; color: var(--ed-ink);
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
body.landing-page.editorial .rec-count-of {
  font-size: 11px; color: var(--ed-ink-faint);
  letter-spacing: 0.1em; text-transform: uppercase;
}
body.landing-page.editorial .rec-tier,
body.landing-page.editorial .ind-tier {
  display: inline-flex; flex-direction: column;
  padding: 8px 14px; border-radius: 4px;
  border-left: 3px solid var(--ed-rule-strong);
  background: rgba(255,255,255,0.03); min-width: 160px;
}
:root[data-theme="light"] body.landing-page.editorial .rec-tier,
:root[data-theme="light"] body.landing-page.editorial .ind-tier {
  background: rgba(0,0,0,0.03);
}
body.landing-page.editorial .rec-tier-label,
body.landing-page.editorial .ind-tier-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  color: var(--ed-ink-muted); text-transform: uppercase;
}
body.landing-page.editorial .rec-tier-sub,
body.landing-page.editorial .ind-tier-sub {
  margin-top: 4px; font-size: 12px;
  color: var(--ed-ink-muted); line-height: 1.4;
}
/* Indicator tier color treatments */
body.landing-page.editorial .ind-tier.t-healthy { border-left-color: var(--ed-green); background: rgba(62,207,142,0.08); }
body.landing-page.editorial .ind-tier.t-healthy .ind-tier-label { color: var(--ed-green); }
body.landing-page.editorial .ind-tier.t-trend   { border-left-color: var(--ed-ice);   background: rgba(62,184,224,0.08); }
body.landing-page.editorial .ind-tier.t-trend   .ind-tier-label { color: var(--ed-ice); }
body.landing-page.editorial .ind-tier.t-cooling { border-left-color: var(--ed-amber); background: rgba(224,154,62,0.08); }
body.landing-page.editorial .ind-tier.t-cooling .ind-tier-label { color: var(--ed-amber); }
body.landing-page.editorial .ind-tier.t-weak    { border-left-color: var(--ed-red);   background: rgba(230,57,70,0.10); }
body.landing-page.editorial .ind-tier.t-weak    .ind-tier-label { color: var(--ed-red); }
/* Recession composite tier */
body.landing-page.editorial .rec-tier.tier-benign   { border-left-color: var(--ed-green); }
body.landing-page.editorial .rec-tier.tier-benign   .rec-tier-label { color: var(--ed-green); }
body.landing-page.editorial .rec-tier.tier-low      { border-left-color: var(--ed-ice); }
body.landing-page.editorial .rec-tier.tier-low      .rec-tier-label { color: var(--ed-ice); }
body.landing-page.editorial .rec-tier.tier-elevated { border-left-color: var(--ed-amber); }
body.landing-page.editorial .rec-tier.tier-elevated .rec-tier-label { color: var(--ed-amber); }
body.landing-page.editorial .rec-tier.tier-high     { border-left-color: var(--ed-red); background: rgba(230,57,70,0.10); }
body.landing-page.editorial .rec-tier.tier-high     .rec-tier-label { color: var(--ed-red); }

/* Recession 5-dot row */
body.landing-page.editorial .rec-dots {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px; padding-top: 18px; margin-top: 14px;
  border-top: 1px solid var(--ed-rule);
}
body.landing-page.editorial .rec-dot-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10.5px; color: var(--ed-ink-muted);
  letter-spacing: 0.05em; text-align: center; font-weight: 500;
}
body.landing-page.editorial .rec-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(168,168,168,0.35);
}
body.landing-page.editorial .rec-dot-item.ok .rec-dot { background: var(--ed-green); }
body.landing-page.editorial .rec-dot-item.triggered { color: var(--ed-red); font-weight: 600; }
body.landing-page.editorial .rec-dot-item.triggered .rec-dot {
  background: var(--ed-red);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.20);
}

/* Indicator scoreline */
body.landing-page.editorial .ind-scoreline {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
body.landing-page.editorial .ind-value-wrap {
  display: inline-flex; align-items: baseline; gap: 2px;
}
body.landing-page.editorial .ind-value {
  font-size: 36px; font-weight: 900; color: var(--ed-ink);
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
body.landing-page.editorial .ind-unit {
  font-size: 16px; font-weight: 500; color: var(--ed-ink-muted);
}
body.landing-page.editorial .ind-delta {
  font-size: 12px; color: var(--ed-ink-muted);
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.05);
  font-weight: 600; font-variant-numeric: tabular-nums;
}
:root[data-theme="light"] body.landing-page.editorial .ind-delta {
  background: rgba(0,0,0,0.05);
}
body.landing-page.editorial .ind-delta.up   { color: var(--ed-green); background: rgba(62,207,142,0.10); }
body.landing-page.editorial .ind-delta.down { color: var(--ed-red);   background: rgba(230,57,70,0.10); }
body.landing-page.editorial .ind-delta.flat { color: var(--ed-ink-muted); }

body.landing-page.editorial .ind-spark {
  padding-top: 14px; margin-top: 14px;
  border-top: 1px solid var(--ed-rule);
  min-height: 56px; line-height: 0;
}
body.landing-page.editorial .ind-spark svg {
  width: 100% !important; height: 56px !important;
}

/* Strip footer (asof + cta) */
body.landing-page.editorial .rec-meta,
body.landing-page.editorial .ind-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ed-ink-faint);
  padding-top: 16px; margin-top: 16px;
  border-top: 1px solid var(--ed-rule);
}
body.landing-page.editorial .rec-cta,
body.landing-page.editorial .ind-cta {
  color: var(--ed-red); text-decoration: none; font-weight: 700;
  letter-spacing: 0.05em;
}
body.landing-page.editorial .rec-cta:hover,
body.landing-page.editorial .ind-cta:hover {
  text-decoration: underline;
}

body.landing-page.editorial .rec-status-text,
body.landing-page.editorial .ind-status-text {
  font-size: 10.5px; color: inherit;
  letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700;
}

/* ===================== THEMES ===================== */
body.landing-page.editorial .ed-themes { background: #07070a; }
:root[data-theme="light"] body.landing-page.editorial .ed-themes { background: var(--ed-bg-soft); }

body.landing-page.editorial .ed-theme-grid {
  max-width: var(--ed-content-max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--ed-rule);
  border: 1px solid var(--ed-rule);
}
@media (max-width: 880px) {
  body.landing-page.editorial .ed-theme-grid { grid-template-columns: 1fr; }
}
body.landing-page.editorial .ed-theme {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--ed-bg);
  padding: 36px 28px;
  text-decoration: none; color: inherit;
  transition: background 0.15s;
}
body.landing-page.editorial .ed-theme:hover { background: var(--ed-bg-soft); }
body.landing-page.editorial .ed-num {
  font-size: 11px; color: var(--ed-red);
  font-weight: 700; letter-spacing: 0.2em;
}
body.landing-page.editorial .ed-name {
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--ed-ink);
}
body.landing-page.editorial .ed-desc {
  font-size: 14px; color: var(--ed-ink-muted);
  margin-top: 4px; line-height: 1.5;
}

/* ===================== HUB ===================== */
body.landing-page.editorial .ed-hub .hub-controls {
  max-width: var(--ed-content-max); margin: 0 auto 24px;
  display: flex; gap: 12px; align-items: center;
  background: var(--ed-bg-card); border: 1px solid var(--ed-rule);
  border-radius: 6px; padding: 12px 16px;
}
body.landing-page.editorial .ed-hub .hub-search {
  flex: 1;
  background: rgba(255,255,255,0.04); border: 1px solid var(--ed-rule);
  color: var(--ed-ink); padding: 10px 14px; border-radius: 4px;
  font-family: inherit; font-size: 14px;
}
:root[data-theme="light"] body.landing-page.editorial .ed-hub .hub-search {
  background: rgba(0,0,0,0.03);
}
body.landing-page.editorial .ed-hub .hub-search::placeholder { color: var(--ed-ink-faint); }
body.landing-page.editorial .ed-hub .hub-search:focus {
  outline: none; border-color: var(--ed-red);
}
body.landing-page.editorial .ed-hub .hub-actions { display: flex; gap: 4px; }
body.landing-page.editorial .ed-hub .hub-actions button {
  background: transparent; border: 1px solid var(--ed-rule);
  color: var(--ed-ink-muted); padding: 8px 12px; border-radius: 4px;
  cursor: pointer; font-family: inherit; font-size: 12px;
  letter-spacing: 0.05em; transition: .12s;
}
body.landing-page.editorial .ed-hub .hub-actions button:hover {
  color: var(--ed-ink); border-color: var(--ed-rule-strong);
}

body.landing-page.editorial .ed-hub .cat-grid {
  max-width: var(--ed-content-max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 980px) {
  body.landing-page.editorial .ed-hub .cat-grid { grid-template-columns: 1fr; }
}
body.landing-page.editorial .ed-hub .cat {
  background: var(--ed-bg-card); border: 1px solid var(--ed-rule);
  border-radius: 6px; overflow: hidden;
}
body.landing-page.editorial .ed-hub .cat-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  cursor: pointer; user-select: none;
  border-bottom: 1px solid var(--ed-rule);
  transition: background .12s;
}
body.landing-page.editorial .ed-hub .cat.collapsed .cat-head { border-bottom-color: transparent; }
body.landing-page.editorial .ed-hub .cat-head:hover { background: var(--ed-bg-card-hi); }
body.landing-page.editorial .ed-hub .cat-arrow {
  font-size: 9px; color: var(--ed-ink-faint);
  transition: transform .15s; width: 10px;
}
body.landing-page.editorial .ed-hub .cat.collapsed .cat-arrow { transform: rotate(-90deg); }
body.landing-page.editorial .ed-hub .cat-head h2 {
  margin: 0; font-size: 16px; font-weight: 800; color: var(--ed-ink); flex: 1;
  letter-spacing: -0.01em;
}
body.landing-page.editorial .ed-hub .cat-count {
  font-size: 11px; color: var(--ed-ink-faint);
  font-variant-numeric: tabular-nums; letter-spacing: 0.05em;
}
body.landing-page.editorial .ed-hub .cat-tag {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--ed-red);
  background: rgba(230,57,70,0.10);
  padding: 3px 8px; border-radius: 999px;
}

body.landing-page.editorial .ed-hub .cat-body {
  padding: 4px 0; max-height: 9999px; transition: max-height .2s;
}
body.landing-page.editorial .ed-hub .cat.collapsed .cat-body {
  max-height: 0; padding: 0; overflow: hidden;
}

body.landing-page.editorial .ed-hub .leaf {
  display: flex; align-items: baseline; gap: 14px;
  padding: 5px 20px 5px 36px;
  text-decoration: none; color: var(--ed-ink);
  border-left: 2px solid transparent;
  transition: background .12s, border-color .12s;
}
body.landing-page.editorial .ed-hub .leaf:hover {
  background: var(--ed-bg-card-hi);
  border-left-color: var(--ed-red);
}
body.landing-page.editorial .ed-hub .leaf-name {
  font-size: 13px; font-weight: 600; flex: 0 0 auto; min-width: 220px;
  color: var(--ed-ink);
}
body.landing-page.editorial .ed-hub .leaf-meta {
  font-size: 12px; color: var(--ed-ink-muted);
}
body.landing-page.editorial .ed-hub .leaf.sub { padding-left: 56px; }
body.landing-page.editorial .ed-hub .leaf.sub .leaf-name {
  min-width: 200px; font-weight: 500;
}

body.landing-page.editorial .ed-hub .branch { border-bottom: 1px solid transparent; }
body.landing-page.editorial .ed-hub .branch-head {
  display: flex; align-items: baseline; gap: 14px;
  padding: 5px 20px 5px 36px;
  background: transparent; border: none;
  color: var(--ed-ink); cursor: pointer;
  font-family: inherit; width: 100%; text-align: left;
  transition: background .12s;
}
body.landing-page.editorial .ed-hub .branch-head:hover {
  background: var(--ed-bg-card-hi);
}
body.landing-page.editorial .ed-hub .branch-arrow {
  font-size: 9px; color: var(--ed-ink-faint);
  transition: transform .15s; width: 10px;
}
body.landing-page.editorial .ed-hub .branch.expanded .branch-arrow { transform: rotate(90deg); }
body.landing-page.editorial .ed-hub .branch-body {
  max-height: 0; overflow: hidden; transition: max-height .2s;
}
body.landing-page.editorial .ed-hub .branch.expanded .branch-body { max-height: 9999px; }

/* ===================== ABOUT ===================== */
body.landing-page.editorial .ed-about-inner {
  max-width: var(--ed-content-max); margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 80px; align-items: center;
}
@media (max-width: 880px) {
  body.landing-page.editorial .ed-about-inner {
    grid-template-columns: 1fr; gap: 48px;
  }
}
body.landing-page.editorial .ed-about h2 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.05; margin: 0 0 24px;
  color: var(--ed-ink);
}
body.landing-page.editorial .ed-about p {
  color: var(--ed-ink-muted); font-size: 18px;
  line-height: 1.6; margin-bottom: 20px; max-width: 540px;
}
body.landing-page.editorial .ed-stat-row {
  display: flex; gap: 48px; margin-top: 36px; padding-top: 36px;
  border-top: 1px solid var(--ed-rule);
}
body.landing-page.editorial .ed-stat .ed-big {
  font-size: 36px; font-weight: 900;
  letter-spacing: -0.02em; color: var(--ed-ink);
}
body.landing-page.editorial .ed-stat .ed-stat-label {
  font-size: 12px; color: var(--ed-ink-faint);
  letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 600; margin-top: 4px;
}
body.landing-page.editorial .ed-about-mark {
  aspect-ratio: 1;
  background: radial-gradient(circle at center, #1a1a22 0%, #0a0a0c 70%);
  border: 1px solid var(--ed-rule);
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
:root[data-theme="light"] body.landing-page.editorial .ed-about-mark {
  background: radial-gradient(circle at center, #fff 0%, #f0eee8 70%);
}
body.landing-page.editorial .ed-about-mark svg { width: 70%; height: auto; }
body.landing-page.editorial .ed-husky-img {
  width: 88%; height: auto;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.45))
          drop-shadow(0 0 30px rgba(62,184,224,0.10));
  transition: transform 0.4s ease;
}
body.landing-page.editorial .ed-about-mark:hover .ed-husky-img {
  transform: scale(1.02) rotate(-1deg);
}
:root[data-theme="light"] body.landing-page.editorial .ed-husky-img {
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.18));
}

/* ===================== SUBSCRIBE (FUTURE) ===================== */
body.landing-page.editorial .ed-subscribe {
  background: linear-gradient(135deg, #14060a 0%, var(--ed-bg) 100%);
  text-align: center;
}
:root[data-theme="light"] body.landing-page.editorial .ed-subscribe {
  background: linear-gradient(135deg, #f6e4e6 0%, var(--ed-bg) 100%);
}
body.landing-page.editorial .ed-future-tag {
  display: inline-block; margin-bottom: 24px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ed-amber);
  background: rgba(224,154,62,0.10);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(224,154,62,0.30);
}
body.landing-page.editorial .ed-subscribe h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1;
  margin: 0 0 20px; color: var(--ed-ink);
}
body.landing-page.editorial .ed-subscribe h2 .red { color: var(--ed-red); }
body.landing-page.editorial .ed-subscribe p {
  color: var(--ed-ink-muted);
  font-size: 18px; margin: 0 auto 32px; max-width: 580px;
}
body.landing-page.editorial .ed-subscribe p em {
  color: var(--ed-ink-faint); font-style: italic;
}
body.landing-page.editorial .ed-sub-form {
  display: flex; max-width: 520px; margin: 0 auto; gap: 8px;
  opacity: 0.65; transition: opacity .2s;
}
body.landing-page.editorial .ed-sub-form:focus-within { opacity: 1; }
body.landing-page.editorial .ed-sub-form input {
  flex: 1; background: var(--ed-bg-card);
  border: 1px solid var(--ed-rule-strong);
  color: var(--ed-ink); padding: 14px 18px;
  font-size: 15px; border-radius: 4px; font-family: inherit;
}
body.landing-page.editorial .ed-sub-form input:focus {
  outline: none; border-color: var(--ed-red);
}
body.landing-page.editorial .ed-sub-form button {
  background: var(--ed-red); color: #fff; border: none;
  padding: 14px 24px; font-size: 14px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 4px; cursor: pointer; font-family: inherit;
}
body.landing-page.editorial .ed-future-note {
  margin-top: 18px;
  font-size: 12px; color: var(--ed-ink-faint);
  letter-spacing: 0.05em;
}

/* ===================== FOOTER ===================== */
body.landing-page.editorial .ed-footer {
  border-top: 1px solid var(--ed-rule);
  padding: 48px var(--ed-side-pad) 32px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 40px;
  background: var(--ed-bg);
  max-width: none;
}
body.landing-page.editorial .ed-brand-mini {
  font-size: 14px; font-weight: 900; letter-spacing: 0.2em;
  color: var(--ed-ink);
}
body.landing-page.editorial .ed-brand-mini .red { color: var(--ed-red); }
body.landing-page.editorial .ed-links {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  font-size: 12px; color: var(--ed-ink-faint);
  letter-spacing: 0.05em;
}
body.landing-page.editorial .ed-copyright {
  text-align: right; font-size: 12px; color: var(--ed-ink-faint);
}
@media (max-width: 880px) {
  body.landing-page.editorial .ed-footer {
    grid-template-columns: 1fr; text-align: center;
  }
  body.landing-page.editorial .ed-copyright { text-align: center; }
}

/* ===================== RESPONSIVE NAV ===================== */
@media (max-width: 880px) {
  body.landing-page.editorial .ed-nav-link { display: none; }
  body.landing-page.editorial .ed-status { display: none; }
}


/* Alignment fix: top-level leaves get an invisible placeholder matching the
   branch-arrow width so leaf-name and branch-head label start at the same X. */
body.landing-page.editorial .ed-hub .leaf:not(.sub)::before {
  content: ''; flex: 0 0 10px; height: 0; display: block;
}
