/* ============================================================
   THE FRONTIER — DC content hub, rebuilt in the v2 design system.
   Self-contained app stylesheet (own reset + fonts + tokens).
   Aesthetic: retro-CRT / Win98 dark terminal over a starfield,
   harmonized to the v2 brand (PP Mondwest display, PP Supply Mono
   UI, Geist body, #004AFF blue). Ported from decurve/demandcurve-website.
   ============================================================ */

@font-face { font-family: 'PP Mondwest'; src: url('fonts/PPMondwest-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'PP Supply Mono'; src: url('fonts/PPSupplyMono-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }

:root {
  --blue: #004AFF;
  /* frontier dark palette (kept from source — integral to the CRT look) */
  --fr-bg: #0a0a0b;        /* shell root */
  --fr-main: #111113;      /* content surface */
  --fr-panel: #141416;     /* top bar / panels / modals */
  --fr-side: #1a1a1c;      /* sidebar / bezel */
  --display: 'PP Mondwest', Georgia, 'Times New Roman', serif;
  --mono: 'PP Supply Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --body: 'Geist', system-ui, -apple-system, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --sidebar-w: 256px;
}

body.fr {
  background: var(--fr-bg);
  color: #fff;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(255,255,255,0.22); color: #fff; }

/* ── Starfield (fixed canvas behind everything) ── */
.fr-stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }

/* ============================================================
   APP SHELL — sidebar + topbar + scrollable main
   ============================================================ */
.fr-shell { position: relative; z-index: 1; display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.fr-sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: var(--fr-side); border-right: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; height: 100vh; position: sticky; top: 0;
  overflow-y: auto;
}
.fr-side-brand { display: flex; align-items: center; gap: 9px; padding: 18px 16px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); text-decoration: none; }
.fr-side-brand .mark { width: 22px; height: 22px; display: grid; place-items: center; background: rgba(255,255,255,0.1); color: #fff; font-family: var(--display); font-size: 15px; line-height: 1; }
.fr-side-brand .wm { font-family: var(--display); font-size: 17px; letter-spacing: 0.01em; color: #fff; }
.fr-side-nav { padding: 8px 8px 4px; display: flex; flex-direction: column; gap: 2px; }

.drawer-label { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.18); padding: 14px 8px 4px; display: flex; align-items: center; gap: 6px; }
.drawer-label::before { content: '\25AA'; font-size: 6px; opacity: 0.5; }

.file-tab {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px; width: 100%;
  text-align: left; text-decoration: none; color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.02);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.01em; transition: color 0.12s ease, background 0.12s ease;
  box-shadow: inset -1px -1px rgba(0,0,0,0.5), inset 1px 1px rgba(255,255,255,0.06), inset -2px -2px rgba(0,0,0,0.2), inset 2px 2px rgba(255,255,255,0.03);
}
.file-tab svg { width: 15px; height: 15px; flex: 0 0 auto; opacity: 0.85; }
.file-tab:hover { color: rgba(255,255,255,0.78); background: rgba(255,255,255,0.045); }
.file-tab-active { color: #fff; background: rgba(255,255,255,0.08); padding-left: 14px; z-index: 2;
  box-shadow: inset -1px -1px rgba(0,0,0,0.4), inset 1px 1px rgba(255,255,255,0.14), inset -2px -2px rgba(0,0,0,0.15), inset 2px 2px rgba(255,255,255,0.06); }
.file-tab-active svg { opacity: 1; }

.fr-side-foot { margin-top: auto; padding: 16px 14px 22px; display: flex; flex-direction: column; gap: 18px; }

/* Win98 "Services" window */
.os-window { position: relative; padding: 4px; background: var(--fr-side); overflow: hidden;
  box-shadow: 3px 0 rgba(0,0,0,0.6), 0 3px rgba(0,0,0,0.6), -3px 0 rgba(255,255,255,0.08), 0 -3px rgba(255,255,255,0.08); }
.os-window-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 8px; background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)); }
.os-window-title { font-size: 11px; color: #fff; font-weight: 700; font-family: var(--mono); }
.os-window-controls { display: flex; gap: 4px; }
.win98-btn { display: grid; place-items: center; width: 18px; height: 16px; font-size: 11px; color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.04); border: none; cursor: url("cursors/hand.png") 6 1, pointer;
  box-shadow: -2px 0 rgba(255,255,255,0.06), 0 -2px rgba(255,255,255,0.06), 2px 0 rgba(0,0,0,0.4), 0 2px rgba(0,0,0,0.4), inset -2px -2px rgba(0,0,0,0.2); }
/* Sponsor controls: CSS-drawn glyphs so they sit perfectly centered (the ASCII _ □ × baseline-drifted). */
.win-min, .win-max, .win-close { position: relative; font-size: 0; padding: 0; }
.win-min::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 9px; height: 2px; background: currentColor; }
.win-max::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 9px; height: 8px; border: 1.5px solid currentColor; background: transparent; }
.win-close::before, .win-close::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: currentColor; }
.win-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.win-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.win98-btn:hover { color: #fff; background: rgba(255,255,255,0.09); }
/* Minimized sponsor: only the "Sponsored" title bar stays; the ad body is hidden. */
.fr-sponsor--collapsed .fr-sponsor-body { display: none; }
/* Minimized "Services.exe" window: only the title bar stays. */
.os-window--collapsed .os-window-body { display: none; }
.os-window-body { padding: 12px; margin: 3px; box-shadow: 3px 0 rgba(255,255,255,0.04), 0 3px rgba(255,255,255,0.04), -3px 0 rgba(0,0,0,0.3), 0 -3px rgba(0,0,0,0.3); }
.os-window-body p { margin: 0 0 4px; }
.os-window-body .ow-h { color: #fff; font-size: 12px; }
.os-window-body .ow-s { color: rgba(255,255,255,0.5); font-size: 11px; margin-bottom: 10px; }
.os-window-body .ow-link { color: rgba(255,255,255,0.85); font-size: 11px; text-decoration: none; letter-spacing: 0.04em; }
.os-window-body .ow-link:hover { text-decoration: underline; }

.fr-deco { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: rgba(255,255,255,0.07); text-align: center; overflow: hidden; white-space: nowrap; }

/* user profile row */
.fr-userrow { display: block; padding: 16px 0 4px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,0.06); }
.fr-userrow .fr-signin { justify-content: center; }
.fr-userrow .av { width: 28px; height: 28px; flex: 0 0 auto; background: rgba(255,255,255,0.08); display: grid; place-items: center; color: rgba(255,255,255,0.5); }
.fr-userrow .ut { font-size: 11.5px; color: rgba(255,255,255,0.85); }
.fr-userrow .us { font-size: 10px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em; }
.fr-signin { width: 100%; text-align: left; }

/* ── Main column ── */
.fr-main-wrap { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; height: 100vh; }
.fr-topbar { height: 76px; flex: 0 0 76px; background: var(--fr-panel); border-bottom: 1px solid rgba(255,255,255,0.08); position: relative; }
.fr-topbar::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.06; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 200px 200px; }
.fr-topbar-in { display: flex; align-items: center; justify-content: flex-start; gap: 14px; height: 100%; padding: 0 24px; position: relative; z-index: 1; }
.fr-topbar .tb-actions { margin-left: auto; }
.fr-panel-toggle { display: grid; place-items: center; width: 32px; height: 30px; flex: 0 0 auto; cursor: url("cursors/hand.png") 6 1, pointer; color: rgba(255,255,255,0.6); background: #26262b; border: none;
  box-shadow: inset 1px 1px rgba(255,255,255,0.16), inset -1px -1px rgba(0,0,0,0.5), inset 2px 2px rgba(255,255,255,0.04), inset -2px -2px rgba(0,0,0,0.25); }
.fr-panel-toggle:hover { color: #fff; background: #303036; }
/* collapse is GSAP-animated via inline width; the contents are pinned to a fixed width so
   they CLIP cleanly as the sidebar slides shut instead of squishing/reflowing */
.fr-sidebar { overflow-x: hidden; }
.fr-sidebar > * { min-width: var(--sidebar-w); }
.file-tab, .fr-side-brand, .drawer-label, .os-window-title { white-space: nowrap; }
/* no-JS / no-GSAP fallback */
.fr-shell.collapsed .fr-sidebar { width: 0; min-width: 0; flex-basis: 0; overflow: hidden; }
@media (max-width: 900px) { .fr-panel-toggle { display: none; } }
.fr-topbar .crumb { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.fr-topbar .tb-actions { display: flex; align-items: center; gap: 14px; }

.fr-main { flex: 1 1 auto; overflow-y: auto; position: relative;
  background-color: var(--fr-main);
  background-image: repeating-linear-gradient(to bottom, transparent, transparent 2px, rgba(255,255,255,0.015) 2px, rgba(255,255,255,0.015) 4px);
  background-attachment: local; /* tiles the FULL scroll height, not just one viewport */ }
.fr-wrap { max-width: 1400px; margin: 0 auto; padding: 28px; position: relative; z-index: 1; }

/* mobile menu button */
.fr-menu-btn { display: none; position: fixed; top: 14px; left: 14px; z-index: 60; width: 40px; height: 40px; background: var(--fr-side); border: 1px solid rgba(255,255,255,0.12); color: #fff; cursor: url("cursors/hand.png") 6 1, pointer; place-items: center; }
.fr-scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 40; }

/* ============================================================
   TYPE
   ============================================================ */
.fr-eyebrow { font-family: var(--mono); text-transform: uppercase; font-size: 11px; letter-spacing: 0.2em; color: rgba(255,255,255,0.6); display: inline-flex; align-items: center; gap: 8px; }
.fr-eyebrow svg { width: 13px; height: 13px; }
.fr-h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5.2vw, 72px); line-height: 0.96; letter-spacing: -0.01em; margin: 16px 0 0; color: #fff; }
.fr-h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.02; letter-spacing: -0.01em; margin: 0; color: #fff; }
.fr-section-h { font-family: var(--mono); text-transform: uppercase; font-size: 13px; letter-spacing: 0.14em; color: rgba(255,255,255,0.85); }
.fr-lead { font-family: var(--body); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; color: #c9ccd2; }
.font-serif-display { font-family: var(--display); font-style: normal; }
/* balanced wrapping on headings/titles + pretty wrapping on body — no danglers */
.fr-h1, .fr-h2, .fr-section-h, .ft, .tt, .pc-title, .ic-name, .mh, .surface-card .st, .badge { text-wrap: balance; }
.fr-lead, .pd, .fd, .td, .sd, .ic-desc, .pc-desc, .fr-wrap p, .fr-hero-body p, .fr-community p { text-wrap: pretty; }
/* body/subheader copy is Geist; labels, meta + micro stay mono */
.fr-wrap p, .fr-hero-body p, .pd, .fd, .sd, .ic-desc, .pc-desc, .mb { font-family: var(--body); }
.fr-micro { font-family: var(--mono); }

/* ── CRT hero ── */
.crt-container { position: relative; overflow: hidden; }
.crt-scanlines-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(10,10,11,0) 50%, rgba(0,0,0,0.12) 50%), linear-gradient(90deg, rgba(255,50,50,0.015), rgba(50,255,50,0.01), rgba(50,50,255,0.015)); background-size: 100% 4px, 6px 100%; pointer-events: none; z-index: 4; }
@keyframes crt-scan { 0% { top: -5%; } 100% { top: 105%; } }
.crt-scanbar { position: absolute; left: 0; right: 0; top: -5%; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.03) 50%, rgba(255,255,255,0)); animation: crt-scan 10s linear infinite; pointer-events: none; z-index: 5; }
@keyframes crt-color-shift {
  0%   { text-shadow: 0 0 10px rgba(255,255,255,0.15), 0 0 40px rgba(255,255,255,0.06), -0.5px 0 rgba(255,0,0,0.06), 0.5px 0 rgba(0,255,255,0.06); }
  33%  { text-shadow: 0 0 10px rgba(255,255,255,0.15), 0 0 40px rgba(255,255,255,0.06), 0.5px 0 rgba(255,0,0,0.04), -0.5px 0 rgba(0,255,255,0.08); }
  66%  { text-shadow: 0 0 10px rgba(255,255,255,0.15), 0 0 40px rgba(255,255,255,0.06), -0.3px 0 rgba(255,0,0,0.08), 0.3px 0 rgba(0,255,255,0.04); }
  100% { text-shadow: 0 0 10px rgba(255,255,255,0.15), 0 0 40px rgba(255,255,255,0.06), -0.5px 0 rgba(255,0,0,0.06), 0.5px 0 rgba(0,255,255,0.06); }
}
.crt-text { position: relative; animation: crt-color-shift 4s ease-in-out infinite; transition: transform 0.2s ease; }
.crt-text:hover,
.crt-text.crt-glitch { animation: none; text-shadow: 0 0 10px rgba(255,255,255,0.25), 0 0 40px rgba(255,255,255,0.1), -3px 0 rgba(255,0,0,0.35), 3px 0 rgba(0,255,255,0.35); transform: skewX(-0.5deg); }
.crt-bezel { position: relative; height: 36px; background: var(--fr-side); box-shadow: inset 0 3px rgba(255,255,255,0.06), inset 0 -2px rgba(0,0,0,0.5), inset 0 1px rgba(255,255,255,0.03), 0 3px 8px rgba(0,0,0,0.4); }
.crt-bezel::before { content: '\2591\2592\2593\00a0\00a0 DEMAND CURVE \00a0\00a0\2593\2592\2591';   /* Joey QA #5: breathing room between the blocks and the wordmark */ position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 8px; letter-spacing: 0.3em; color: rgba(255,255,255,0.06); white-space: nowrap; }
.crt-bezel::after { content: ''; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: rgba(40,200,64,0.4); box-shadow: 0 0 6px rgba(40,200,64,0.3); }
@keyframes blink-cursor { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.blink-cursor::after { content: '|'; animation: blink-cursor 1s step-end infinite; color: rgba(255,255,255,0.35); margin-left: 2px; font-weight: 300; }

/* full-bleed: scanlines + bezel span the whole main column; text gets inset padding */
.fr-hero { padding: 0; }
.fr-hero .crt-container { padding: clamp(44px, 6vw, 76px) 0 clamp(40px, 5vw, 60px); }
/* inner content is capped + centered (matches .fr-wrap) so it doesn't drift left on wide monitors,
   while the scanlines/bezel stay full-bleed */
.fr-hero-body { max-width: 1400px; margin: 0 auto; padding: 0 28px; }
.fr-hero-body .fr-lead, .fr-hero-body .fr-h1 { max-width: 42rem; }
.fr-chips { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--mono); text-transform: uppercase; font-size: 11px; letter-spacing: 0.12em; color: rgba(255,255,255,0.5); }
.fr-chips .div { color: rgba(255,255,255,0.2); }
.fr-capture { display: flex; gap: 8px; max-width: 32rem; margin-top: 6px; }
.fr-capture input { flex: 1 1 auto; min-width: 0; }
.fr-micro { font-size: 12px; color: rgba(255,255,255,0.4); }

/* inputs */
.fr-input { background: #0e0e10; border: none; color: #fff; font-family: var(--mono); font-size: 13px; padding: 12px 14px;
  box-shadow: inset 1px 1px rgba(0,0,0,0.6), inset -1px -1px rgba(255,255,255,0.08); }
.fr-input::placeholder { color: rgba(255,255,255,0.35); }
.fr-input:focus { outline: none; box-shadow: inset 1px 1px rgba(0,0,0,0.7), inset -1px -1px rgba(255,255,255,0.12), 0 0 0 1px rgba(255,255,255,0.18); }

/* buttons — Win98 raised bevel (matches the rest of the chrome) */
.fr-btn, .fr-btn-ghost, .glow-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em;
  padding: 11px 22px; text-decoration: none; cursor: url("cursors/hand.png") 6 1, pointer; border: none; white-space: nowrap;
  color: #fff; background: #26262b; position: relative; transition: background 0.12s ease;
  box-shadow: inset 1px 1px rgba(255,255,255,0.2), inset -1px -1px rgba(0,0,0,0.55), inset 2px 2px rgba(255,255,255,0.05), inset -2px -2px rgba(0,0,0,0.3);
}
.fr-btn:hover, .fr-btn-ghost:hover, .glow-btn:hover { background: #303036; }
.fr-btn:active, .fr-btn-ghost:active, .glow-btn:active {
  box-shadow: inset -1px -1px rgba(255,255,255,0.2), inset 1px 1px rgba(0,0,0,0.55), inset -2px -2px rgba(255,255,255,0.05), inset 2px 2px rgba(0,0,0,0.3);
}
.fr-btn--block { width: 100%; }
.glow-btn .tick { display: none; }

/* ============================================================
   PANELS / CARDS / DIVIDERS / BADGES
   ============================================================ */
.frontier-panel { position: relative; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); }
.frontier-panel::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.06; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 200px 200px; z-index: 0; }
.frontier-panel > * { position: relative; z-index: 1; }

.frontier-card { border: 1px solid rgba(255,255,255,0.08); position: relative; overflow: hidden; transition: border-color 0.2s ease, background-color 0.2s ease; background-color: rgba(255,255,255,0.02); text-decoration: none; color: inherit; display: block; }
.frontier-card:hover { border-color: rgba(255,255,255,0.15); background-color: rgba(255,255,255,0.04); }

.frontier-tag { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); padding: 3px 8px; border: 1px dashed rgba(255,255,255,0.15); }

.frontier-divider { border: none; position: relative; display: flex; flex-direction: column; margin: 34px 0 26px; }
.frontier-divider::before { content: ''; display: block; height: 1px; background: rgba(255,255,255,0.12); width: 100%; }
.frontier-divider::after { content: '\2591\2592\2593\2588\2593\2592\2591\00B7:\00B7\2591\2592\2593\2588\2593\2592\2591'; display: block; font-size: 9px; letter-spacing: 0.15em; color: rgba(255,255,255,0.08); margin-top: 8px; }

.fr-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.fr-section-head .link { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.5); text-decoration: none; }
.fr-section-head .link:hover { color: #fff; }

/* format badges */
.badge { display: inline-flex; align-items: center; gap: 5px; border: 1px solid; padding: 2px 7px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.badge svg { width: 11px; height: 11px; }
.badge--playbook { background: rgba(139,92,246,0.1); color: #c4b5fd; border-color: rgba(139,92,246,0.25); }
.badge--deepdive { background: rgba(20,184,166,0.1); color: #5eead4; border-color: rgba(20,184,166,0.25); }
.badge--teardown { background: rgba(244,63,94,0.1); color: #fda4af; border-color: rgba(244,63,94,0.25); }
.badge--dispatch { background: rgba(245,158,11,0.08); color: rgba(252,211,77,0.85); border-color: rgba(245,158,11,0.22); }
.badge--guide { background: rgba(56,189,248,0.1); color: #7dd3fc; border-color: rgba(56,189,248,0.25); }

/* ── Floppy card ── */
.floppy { position: relative; background: rgba(255,255,255,0.03); padding: 4px; overflow: hidden; cursor: url("cursors/hand.png") 6 1, pointer; text-decoration: none; color: inherit; display: block; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 3px 0 rgba(0,0,0,0.6), 0 3px rgba(0,0,0,0.6), -3px 0 rgba(255,255,255,0.08), 0 -3px rgba(255,255,255,0.08); }
.floppy:hover { background: rgba(255,255,255,0.05); transform: translateY(-2px); box-shadow: 4px 2px rgba(0,0,0,0.5), 0 4px rgba(0,0,0,0.5), -3px 0 rgba(255,255,255,0.1), 0 -3px rgba(255,255,255,0.1); }
.floppy-slider { padding: 6px 10px; display: flex; align-items: center; gap: 6px; justify-content: space-between; background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border-bottom: 1px solid rgba(0,0,0,0.3); }
/* bookmark button (.fr-bm--card, abs top-right 28px) sat ON TOP of the
   right-aligned issue number / topic label - clear it (inherited spec gap) */
.floppy.has-bm .floppy-slider { padding-right: 40px; }
.floppy-art { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #0d0d0f; }
.floppy-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.floppy:hover .floppy-art img { transform: scale(1.03); }
.floppy-art--wide { aspect-ratio: 16/7; }
.floppy-num { position: absolute; top: 8px; left: 12px; font-family: var(--display); font-size: 38px; line-height: 1; color: rgba(255,255,255,0.4); z-index: 3; }
.floppy-label { padding: 12px 14px; min-height: 70px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; gap: 8px; }
.floppy-label .ft { font-family: var(--display); font-size: 19px; line-height: 1.05; color: #fff; }
.floppy-label .fd { font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,0.55); }
.floppy-label .fmeta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.floppy-label .fmeta .topic { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.floppy-label .fmeta .link { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.floppy-scan { position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent, transparent 2px, rgba(255,255,255,0.02) 2px, rgba(255,255,255,0.02) 4px); pointer-events: none; opacity: 0; transition: opacity 0.3s; z-index: 5; }
.floppy:hover .floppy-scan { opacity: 1; animation: scanline-move 2s linear infinite; }

/* Image cards (library featured + grid, hub) — NOT the number disks: make every card the
   same height, clamp title/description so they don't run long, and pin topic·minutes to the bottom. */
.floppy:not(.nl-disk) { display: flex; flex-direction: column; }
.floppy:not(.nl-disk) .floppy-art { flex: 0 0 auto; }
.floppy:not(.nl-disk) .floppy-label { flex: 1 1 auto; justify-content: flex-start; gap: 9px; }
.floppy:not(.nl-disk) .floppy-label .ft { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.floppy:not(.nl-disk) .floppy-label .fd { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.floppy:not(.nl-disk) .floppy-label .fmeta { margin-top: auto; padding-top: 4px; }
.frontier-scanlines { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(to bottom, transparent, transparent 2px, rgba(0,0,0,0.18) 2px, rgba(0,0,0,0.18) 3px); }
@keyframes scanline-move { to { transform: translateY(50%); } }

/* ── stagger entrance ── */
@keyframes fade-in-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.stagger-in > * { animation: fade-in-up 0.3s ease backwards; }
.stagger-in > *:nth-child(1){animation-delay:0ms}.stagger-in > *:nth-child(2){animation-delay:50ms}.stagger-in > *:nth-child(3){animation-delay:100ms}.stagger-in > *:nth-child(4){animation-delay:150ms}.stagger-in > *:nth-child(5){animation-delay:200ms}.stagger-in > *:nth-child(6){animation-delay:250ms}.stagger-in > *:nth-child(7){animation-delay:300ms}.stagger-in > *:nth-child(8){animation-delay:350ms}

/* ============================================================
   GRIDS / SECTIONS (hub + sub-pages)
   ============================================================ */
/* "what's inside" surfaces */
.surface-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.surface-card { display: flex; align-items: stretch; min-height: 116px; }
.surface-card .sv { width: 124px; flex: 0 0 124px; position: relative; overflow: hidden; background: #0d0d0f; border-right: 1px solid rgba(255,255,255,0.06); }
.surface-card .sv img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.surface-card:hover .sv img { transform: scale(1.03); }
.surface-card .sc { flex: 1 1 auto; padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.surface-card .sc .st { font-family: var(--display); font-size: 21px; line-height: 1; color: #fff; }
.surface-card .sc .sd { font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,0.55); }
.surface-card .chev { align-self: center; margin-right: 14px; color: rgba(255,255,255,0.3); transition: transform 0.2s ease; }
.surface-card:hover .chev { transform: translateX(2px); color: rgba(255,255,255,0.6); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

/* fresh / list rows */
.fr-list { display: flex; flex-direction: column; }
.fr-row { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,0.07); text-decoration: none; color: inherit; transition: background 0.15s ease; }
.fr-row:hover { background: rgba(255,255,255,0.02); }
.fr-row .rtitle { flex: 1 1 auto; min-width: 0; color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-row .rdate { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.4); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fr-row .chev { color: rgba(255,255,255,0.3); }

/* community band */
.fr-community { text-align: center; padding: clamp(40px, 6vw, 64px); }
.fr-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: rgba(255,255,255,0.5); margin: 22px 0; }

/* page header (sub-pages) */
.fr-page-head { margin-bottom: 28px; }
.fr-page-head .fr-h2 { margin-top: 12px; }
.fr-page-head .pd { color: rgba(255,255,255,0.5); font-size: 14px; margin-top: 12px; max-width: 60ch; }

/* filter / chip rows */
.fr-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.6); background: #26262b; border: none; padding: 7px 12px; cursor: url("cursors/hand.png") 6 1, pointer; transition: background 0.12s ease;
  box-shadow: inset 1px 1px rgba(255,255,255,0.16), inset -1px -1px rgba(0,0,0,0.5), inset 2px 2px rgba(255,255,255,0.04), inset -2px -2px rgba(0,0,0,0.25); }
.chip:hover { color: #fff; background: #303036; }
.chip--active { color: #fff; background: #18181b;
  box-shadow: inset -1px -1px rgba(255,255,255,0.16), inset 1px 1px rgba(0,0,0,0.5), inset -2px -2px rgba(255,255,255,0.04), inset 2px 2px rgba(0,0,0,0.25); }
.fr-search { flex: 1 1 240px; }

/* deals / generic info card */
.info-card { padding: 20px; }
.info-card .ic-cat { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.info-card .ic-name { font-family: var(--display); font-size: 22px; color: #fff; margin: 8px 0 8px; line-height: 1; }
.info-card .ic-desc { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.55); }
.info-card .ic-cta { margin-top: 16px; }

/* ads masonry */
.ads-masonry { column-count: 4; column-gap: 14px; }
.ad-tile { break-inside: avoid; margin-bottom: 14px; border: 1px solid rgba(255,255,255,0.08); position: relative; overflow: hidden; display: block; }
/* min-height + placeholder bg: reserves grid structure BEFORE lazy images load.
   Without it the whole vault renders ~0px tall on member reveal (gate removes
   display:none, 240 lazy imgs have no intrinsic size) and iOS Safari's lazy
   loader may never fire - members on phones saw an empty vault (Joey QA #18). */
.ad-tile .ad-fill { display: grid; place-items: center; color: rgba(255,255,255,0.85); min-height: 140px; background: rgba(255,255,255,0.03); }
.ad-tile .ad-fill img { width: 100%; height: auto; display: block; }
.ad-tile .ad-play { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; display: grid; place-items: center; background: rgba(0,0,0,0.55); border-radius: 50%; color: #fff; }
.ad-tile .ad-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); }
.ad-tile .ad-brand { font-family: var(--display); font-size: 17px; color: #fff; }
.ad-tile .ad-channel { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
div.ad-tile { cursor: zoom-in; }
a.ad-tile { cursor: url("cursors/hand.png") 6 1, pointer; }

/* Ad lightbox — click a tile to view the creative full-size */
.ad-lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 5vh 5vw; background: rgba(0,0,0,0.88); }
.ad-lightbox.open { display: flex; }
.ad-lightbox img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; display: block; box-shadow: 0 24px 70px rgba(0,0,0,0.55); }
.ad-lightbox-cap { position: absolute; left: 0; right: 0; bottom: 3vh; text-align: center; pointer-events: none; }
.ad-lightbox-cap .b { display: block; font-family: var(--display); font-size: 20px; color: #fff; }
.ad-lightbox-cap .m { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.ad-lightbox-close { position: absolute; top: 18px; right: 22px; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; color: #fff; font-size: 24px; line-height: 1; cursor: url("cursors/hand.png") 6 1, pointer; }
.ad-lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* tactic card (clean, consistent — replaces the mis-applied floppy-label) */
.tactic-card { display: flex; flex-direction: column; gap: 9px; padding: 20px; min-height: 168px; }
.tactic-card .frontier-tag { align-self: flex-start; }
.tactic-card .tt { font-family: var(--display); font-size: 19px; line-height: 1.08; color: #fff; }
.tactic-card .td { font-family: var(--body); font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,0.55); }
.tactic-card .tlink { margin-top: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.tactic-card:hover .tlink { color: #fff; }

/* path card — Win98 floppy bevel */
.path-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 220px;
  border: none; background: rgba(255,255,255,0.03); padding: 4px;
  box-shadow: 3px 0 rgba(0,0,0,0.6), 0 3px rgba(0,0,0,0.6), -3px 0 rgba(255,255,255,0.08), 0 -3px rgba(255,255,255,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.path-card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.05);
  box-shadow: 4px 2px rgba(0,0,0,0.5), 0 4px rgba(0,0,0,0.5), -3px 0 rgba(255,255,255,0.1), 0 -3px rgba(255,255,255,0.1); }

/* ============================================================
   DETAIL / READER VIEWS (Piece, Path, Teardown)
   ============================================================ */
.fr-back { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.45); text-decoration: none; margin-bottom: 26px; }
.fr-back:hover { color: #fff; }

.fr-article { max-width: 1240px; margin: 0 auto; }
.fr-article-head { max-width: 760px; margin: 0 auto 22px; text-align: center; }
.fr-article-head .fr-meta-row { justify-content: center; }
.fr-article-head .fr-article-standfirst { margin-left: auto; margin-right: auto; }
.fr-article-head .fr-byline-meta { justify-content: center; border-top: none; padding-top: 4px; margin-top: 14px; }

/* 3-column reading layout: Contents | body | author */
.fr-article-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(28px, 3vw, 52px); align-items: start; margin-top: 10px; }
.fr-article-main { min-width: 0; max-width: 720px; }

/* article top actions bar — author + save + share (replaces the old right aside) */
.fr-article-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px 20px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); }
.fr-author-inline { display: flex; align-items: center; gap: 11px; }
.fr-author-inline .ava { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.05); }
.fr-author-inline .fr-ai-txt { display: flex; flex-direction: column; line-height: 1.25; }
.fr-author-inline .an { font-family: var(--body); font-weight: 600; font-size: 14px; color: #fff; }
.fr-author-inline .ar { font-family: var(--body); font-size: 12.5px; color: rgba(255,255,255,0.55); }
.fr-article-tools { display: flex; align-items: center; gap: 10px; }
.fr-share { display: flex; align-items: center; gap: 5px; }
.fr-share-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255,255,255,0.16); background: transparent; color: rgba(255,255,255,0.72); cursor: url("cursors/hand.png") 6 1, pointer; transition: color .15s, border-color .15s, background .15s; }
.fr-share-btn svg { width: 16px; height: 16px; }
.fr-share-btn:hover { color: #fff; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); }
.fr-share-btn.copied { color: #8fb0ff; border-color: rgba(143,176,255,0.55); }
.fr-save-slot { display: inline-flex; }
.fr-bm--top { margin-top: 0 !important; height: 34px; padding: 0 14px !important; }

.fr-toc { position: sticky; top: 20px; align-self: start; }
.fr-toc-h { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.fr-toc a { display: block; font-family: var(--body); font-size: 13px; line-height: 1.35; color: rgba(255,255,255,0.5); text-decoration: none; padding: 7px 12px; border-left: 2px solid transparent; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.fr-toc a:hover { color: #fff; }
.fr-toc a.active { color: #fff; border-left-color: transparent; background: rgba(255,255,255,0.08); }

.fr-aside { position: sticky; top: 20px; align-self: start; display: flex; flex-direction: column; gap: 16px; }
.fr-author { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.fr-author .ava { width: 52px; height: 52px; flex: 0 0 auto; overflow: hidden; border-radius: 5px; display: grid; place-items: center; color: rgba(255,255,255,0.5); margin-bottom: 14px; box-shadow: inset 1px 1px rgba(255,255,255,0.1), inset -1px -1px rgba(0,0,0,0.5); }
.fr-author .ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fr-author .an { display: block; font-family: var(--display); font-size: 20px; color: #fff; line-height: 1.1; }
.fr-author .ar { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin: 7px 0 12px; }
.fr-author .ab { font-family: var(--body); font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,0.55); margin: 0; }
.fr-author .as { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.45); text-decoration: none; }
.fr-author .as:hover { color: #fff; }

/* rich byline meta (posted / updated / author / reviewer / read time) */
.fr-byline-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em; color: rgba(255,255,255,0.55); }
.fr-byline-meta .k { color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.08em; }
.fr-byline-meta b { color: #fff; font-weight: 400; }
.fr-byline-meta .sep { width: 3px; height: 3px; background: rgba(255,255,255,0.28); }

.fr-prose h2[id] { scroll-margin-top: 18px; }

@media (max-width: 1240px) {
  /* minmax(0,1fr), not 1fr: a bare 1fr track has an auto MINIMUM, so the
     aside's min-content inflated the track past its container and article
     text ran off the right edge at phone widths (inherited spec defect) */
  .fr-article-layout { grid-template-columns: minmax(0, 1fr); }
  .fr-article-main { max-width: min(650px, 100%); margin: 0 auto; }
  .fr-toc { display: none; }
  .fr-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .fr-aside > * { flex: 1 1 260px; }
}
.fr-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.fr-meta-row .dot { width: 3px; height: 3px; background: rgba(255,255,255,0.3); }
.fr-meta-row .m { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.fr-article-title { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.4vw, 56px); line-height: 1; letter-spacing: -0.01em; color: #fff; margin: 0; text-wrap: balance; }
.fr-article-standfirst { font-family: var(--body); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: #c9ccd2; margin: 18px 0 0; max-width: 60ch; text-wrap: pretty; }
.fr-byline { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: rgba(255,255,255,0.5); }
.fr-byline .av { width: 26px; height: 26px; flex: 0 0 auto; background: rgba(255,255,255,0.1); display: grid; place-items: center; color: rgba(255,255,255,0.5); }
.fr-article-hero { margin: 30px 0; position: relative; overflow: hidden; background: #0d0d0f;
  box-shadow: 3px 0 rgba(0,0,0,0.6), 0 3px rgba(0,0,0,0.6), -3px 0 rgba(255,255,255,0.08), 0 -3px rgba(255,255,255,0.08); padding: 4px; }
.fr-article-hero img { width: 100%; height: auto; display: block; }

/* prose */
.fr-prose { font-family: var(--body); font-size: 16px; line-height: 1.7; color: #c9ccd2; }
.fr-prose > * + * { margin-top: 26px; }
.fr-prose p { margin: 0; text-wrap: pretty; }
.fr-prose h2 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; color: #fff; margin: 44px 0 0; letter-spacing: -0.01em; text-wrap: balance; }
.fr-prose h3 { font-family: var(--display); font-weight: 400; font-size: 21px; color: #fff; margin: 32px 0 0; }
.fr-prose strong { color: #fff; font-weight: 600; }
.fr-prose a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.4); }
.fr-prose ul, .fr-prose ol { margin: 28px 0; padding-left: 2px; list-style: none; display: flex; flex-direction: column; gap: 15px; }
.fr-prose li { position: relative; padding-left: 28px; line-height: 1.65; }
.fr-prose ul li::before { content: ''; position: absolute; left: 7px; top: 0.62em; width: 5px; height: 5px; background: rgba(255,255,255,0.5); }
.fr-prose ol { counter-reset: step; }
.fr-prose ol li { counter-increment: step; padding-left: 34px; }
.fr-prose ol li::before { content: counter(step,decimal-leading-zero); position: absolute; left: 0; top: 0.12em; font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.45); }
.fr-prose blockquote { margin: 28px 0 0; padding: 4px 0 4px 22px; border-left: 2px solid rgba(255,255,255,0.25); font-family: var(--display); font-size: clamp(20px, 2.1vw, 26px); line-height: 1.2; color: #fff; }
.fr-prose hr { border: none; height: 1px; background: rgba(255,255,255,0.12); margin: 36px 0; }
.fr-prose code { font-family: var(--mono); font-size: 13px; background: rgba(255,255,255,0.06); padding: 2px 6px; }
.fr-prose h4 { font-family: var(--display); font-weight: 400; font-size: 18px; color: #fff; margin: 26px 0 0; }
.fr-prose figure { margin: 38px 0; }
.fr-prose figure > div { line-height: 0; }
.fr-prose img { width: 100%; height: auto; display: block; border: 1px solid rgba(255,255,255,0.1); }
.fr-prose em { font-style: italic; }

/* ── Reader polish: roomier rhythm + never bold the Mondwest display face ────── */
.fr-prose { font-size: 16.5px; line-height: 1.8; }
.fr-prose > * + * { margin-top: 28px; }
.fr-prose p { margin: 0; }   /* spacing comes from > * + * — keep paragraphs from doubling up */
.fr-prose h2 { margin: 60px 0 0; }
.fr-prose h3 { margin: 44px 0 0; }
.fr-prose h4 { margin: 34px 0 0; }
.fr-prose :is(h2, h3, h4) + * { margin-top: 13px; }            /* heading hugs its text */
.fr-prose blockquote { margin: 36px 0; padding: 8px 0 8px 24px; }
.fr-prose figure { margin: 40px 0; }
.fr-prose li { line-height: 1.7; }
/* Mondwest is a display face — it has no real bold, so never let it synthesize one
   (DC's CMS wraps most headings in <strong>, which was forcing ugly faux-bold). */
.fr-prose :is(h2, h3, h4, blockquote), .fr-article-title { font-synthesis: none; }
.fr-prose :is(h2, h3, h4, blockquote) :is(strong, b) { font-weight: 400; }

/* ── Sponsored slot — clearly set apart from editorial ── */
/* Sponsor block — the actual Win98 "Services.exe" window treatment (frontier.js wraps the
   body into .fr-sponsor-body so it gets the sunken-panel bevel). Mirrors .os-window exactly. */
.fr-prose .fr-sponsor { margin: 40px 0; padding: 4px; border: none; border-radius: 0; overflow: hidden; background: var(--fr-side, #1a1a1c);
  box-shadow: 3px 0 rgba(0,0,0,0.6), 0 3px rgba(0,0,0,0.6), -3px 0 rgba(255,255,255,0.08), 0 -3px rgba(255,255,255,0.08); }
.fr-sponsor > * + * { margin-top: 0; }
.fr-sponsor-tag { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0; padding: 6px 6px 6px 10px; border: none; border-radius: 0;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)); }
.fr-sponsor-body { padding: clamp(16px, 2vw, 22px); margin: 3px;
  box-shadow: 3px 0 rgba(255,255,255,0.04), 0 3px rgba(255,255,255,0.04), -3px 0 rgba(0,0,0,0.3), 0 -3px rgba(0,0,0,0.3); }
.fr-sponsor-body > * + * { margin-top: 14px; }
.fr-sponsor h2 { margin: 14px 0 0; font-size: clamp(22px, 2.3vw, 28px); }
.fr-prose .fr-sponsor-logo { display: block; width: auto; height: auto; max-height: 40px; max-width: 180px;
  margin: 0 0 2px; border: none; border-radius: 4px; background: #fff; padding: 7px 11px; box-sizing: border-box; }
.fr-sponsor-name { font-family: var(--display); font-synthesis: none; font-size: clamp(20px, 2.1vw, 26px); color: #fff; margin: 10px 0 0; }
.fr-sponsor .fr-insight-from { color: rgba(255,255,255,0.5); }
.reader-light .fr-sponsor { background: #d9d9dd;
  box-shadow: 3px 0 rgba(0,0,0,0.25), 0 3px rgba(0,0,0,0.25), -3px 0 rgba(255,255,255,0.9), 0 -3px rgba(255,255,255,0.9); }
.reader-light .fr-sponsor-tag { color: #14161a; background: linear-gradient(90deg, rgba(0,0,0,0.10), rgba(0,0,0,0.03)); }
.reader-light .fr-sponsor-body { background: #f4f4f6; box-shadow: 3px 0 rgba(0,0,0,0.06), 0 3px rgba(0,0,0,0.06), -3px 0 rgba(0,0,0,0.18), 0 -3px rgba(0,0,0,0.18); }

/* ── Reading-pane light mode (only the document flips; chrome stays dark) ── */
.fr-reader-bar { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.fr-reader-toggle { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.6); background: #26262b; border: none; padding: 7px 12px; cursor: url("cursors/hand.png") 6 1, pointer;
  box-shadow: inset 1px 1px rgba(255,255,255,0.16), inset -1px -1px rgba(0,0,0,0.5), inset 2px 2px rgba(255,255,255,0.04), inset -2px -2px rgba(0,0,0,0.25); }
.fr-reader-toggle:hover { color: #fff; }
.fr-reader-toggle svg { width: 13px; height: 13px; }
.fr-reader-toggle .i-light { display: inline-flex; align-items: center; gap: 7px; }
.fr-reader-toggle .i-dark { display: none; align-items: center; gap: 7px; }

/* the whole content region flips light; chrome (topbar + sidebar) stays dark */
.fr-main.reader-light { background-color: #FCFCFF;
  background-image: repeating-linear-gradient(to bottom, transparent, transparent 2px, rgba(0,0,0,0.022) 2px, rgba(0,0,0,0.022) 4px);
  color: #171818; }
.fr-main.reader-light .fr-back { color: rgba(0,0,0,0.5); }
.fr-main.reader-light .fr-back:hover { color: #000; }
.fr-main.reader-light .fr-article-title { color: #14161a; }
.fr-main.reader-light .fr-article-standfirst { color: #3a3d44; }
.fr-main.reader-light .fr-meta-row .m { color: rgba(0,0,0,0.5); }
.fr-main.reader-light .fr-byline-meta { color: rgba(0,0,0,0.6); }
.fr-main.reader-light .fr-byline-meta .k { color: rgba(0,0,0,0.4); }
.fr-main.reader-light .fr-byline-meta b { color: #14161a; }
.fr-main.reader-light .fr-byline-meta .sep { background: rgba(0,0,0,0.3); }
.fr-main.reader-light .badge--playbook { color: #6d28d9; background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.3); }
.fr-main.reader-light .badge--deepdive { color: #0f766e; background: rgba(13,148,136,0.1); border-color: rgba(13,148,136,0.3); }
.fr-main.reader-light .badge--teardown { color: #be123c; background: rgba(225,29,72,0.1); border-color: rgba(225,29,72,0.3); }
.fr-main.reader-light .fr-toc-h { color: rgba(0,0,0,0.5); border-bottom-color: rgba(0,0,0,0.14); }
.fr-main.reader-light .fr-toc a { color: rgba(0,0,0,0.5); }
.fr-main.reader-light .fr-toc a:hover { color: #000; }
.fr-main.reader-light .fr-toc a.active { color: #000; border-left-color: transparent; background: rgba(0,0,0,0.07); }
.fr-main.reader-light .frontier-panel { background: #fff; border-color: rgba(0,0,0,0.12); }
.fr-main.reader-light .frontier-panel::after { opacity: 0; }
.fr-main.reader-light .fr-author .ava { box-shadow: inset 1px 1px rgba(0,0,0,0.12), inset -1px -1px rgba(255,255,255,0.8); color: rgba(0,0,0,0.4); }
.fr-main.reader-light .fr-author .an { color: #14161a; }
.fr-main.reader-light .fr-author .ar { color: rgba(0,0,0,0.45); }
.fr-main.reader-light .fr-author .ab { color: rgba(0,0,0,0.6); }
.fr-main.reader-light .fr-author .as { color: rgba(0,0,0,0.5); }
.fr-main.reader-light .fr-author .as:hover { color: #000; }
.reader-light .fr-reader-toggle { color: rgba(0,0,0,0.55); background: #ececf0; box-shadow: inset 1px 1px rgba(255,255,255,0.9), inset -1px -1px rgba(0,0,0,0.18); }
.reader-light .fr-reader-toggle:hover { color: #000; }
.reader-light .fr-reader-toggle .i-light { display: none; }
.reader-light .fr-reader-toggle .i-dark { display: inline-flex; }
/* light mode: top actions bar (author + save + share) — dark ink on the light page */
.fr-main.reader-light .fr-article-actions { border-top-color: rgba(0,0,0,0.12); }
.fr-main.reader-light .fr-author-inline .an { color: #14161a; }
.fr-main.reader-light .fr-author-inline .ar { color: rgba(0,0,0,0.5); }
.fr-main.reader-light .fr-author-inline .ava { border-color: rgba(0,0,0,0.14); background: rgba(0,0,0,0.05); }
.fr-main.reader-light .fr-share-btn { color: rgba(0,0,0,0.55); border-color: rgba(0,0,0,0.18); }
.fr-main.reader-light .fr-share-btn:hover { color: #000; border-color: rgba(0,0,0,0.4); background: rgba(0,0,0,0.05); }
.fr-main.reader-light .fr-share-btn.copied { color: #2d5bff; border-color: rgba(45,91,255,0.5); }
.fr-main.reader-light .fr-save-slot .fr-bm { background: #fff; color: rgba(0,0,0,0.7); border-color: rgba(0,0,0,0.2); }
.fr-main.reader-light .fr-save-slot .fr-bm:hover { color: #000; border-color: rgba(0,0,0,0.4); }
.fr-main.reader-light .fr-save-slot .fr-bm.is-saved { color: #2d5bff; border-color: rgba(45,91,255,0.5); }
.reader-light .fr-prose { color: #2c2f36; }
.reader-light .fr-prose h2, .reader-light .fr-prose h3, .reader-light .fr-prose h4, .reader-light .fr-prose strong, .reader-light .fr-prose blockquote { color: #14161a; }
.reader-light .fr-prose a { color: #14161a; text-decoration-color: rgba(0,0,0,0.4); }
.reader-light .fr-prose blockquote { border-left-color: rgba(0,0,0,0.25); }
.reader-light .fr-prose ul li::before { background: rgba(0,0,0,0.55); }
.reader-light .fr-prose ol li::before { color: rgba(0,0,0,0.5); }
.reader-light .fr-prose hr { background: rgba(0,0,0,0.12); }
.reader-light .fr-prose code { background: rgba(0,0,0,0.07); color: #14161a; }
.reader-light .fr-prose img { border-color: rgba(0,0,0,0.14); }
.reader-light .fr-callout { background: rgba(0,0,0,0.05); box-shadow: inset 1px 1px rgba(0,0,0,0.08); }
.reader-light .fr-callout .co-k { color: rgba(0,0,0,0.5); }
.reader-light .fr-callout p { color: #2c2f36 !important; }
.reader-light .fr-article-cta { background: #f1f1f5; border-color: rgba(0,0,0,0.1); }
.reader-light .fr-article-cta .fr-h2 { color: #14161a; }
.reader-light .fr-article-cta p { color: rgba(0,0,0,0.6) !important; }
.fr-callout { background: rgba(255,255,255,0.03); padding: 20px 22px; margin: 28px 0 0;
  box-shadow: inset 1px 1px rgba(255,255,255,0.06), inset -1px -1px rgba(0,0,0,0.4); }
.fr-callout . co-k { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 8px; }

/* article footer CTA */
.fr-article-cta { margin-top: 44px; padding: 32px; text-align: center; }
.fr-article-cta .fr-h2 { font-size: clamp(22px, 2.4vw, 30px); }

/* PATH detail */
.fr-path-head { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 8px; flex-wrap: wrap; }
.fr-path-art { width: 280px; flex: 0 0 280px; max-width: 100%; aspect-ratio: 16/10; overflow: hidden; background: #0d0d0f; padding: 4px;
  box-shadow: 3px 0 rgba(0,0,0,0.6), 0 3px rgba(0,0,0,0.6), -3px 0 rgba(255,255,255,0.08), 0 -3px rgba(255,255,255,0.08); }
.fr-path-art img { width: 100%; height: 100%; object-fit: cover; }
.fr-path-info { flex: 1 1 320px; min-width: 0; }
.fr-part { margin-top: 36px; }
.fr-part-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.fr-part-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.fr-part-title { font-family: var(--display); font-size: 22px; color: #fff; }
.fr-step { display: flex; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,0.07); text-decoration: none; color: inherit; }
.fr-step:hover { background: rgba(255,255,255,0.02); }
.fr-step .sn { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.5);
  box-shadow: inset 1px 1px rgba(255,255,255,0.12), inset -1px -1px rgba(0,0,0,0.5); }
.fr-step .stt { flex: 1 1 auto; min-width: 0; color: #fff; }
.fr-step .schev { color: rgba(255,255,255,0.3); }

/* TEARDOWN detail */
.fr-td-company { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.fr-td-logo { width: 56px; height: 56px; flex: 0 0 auto; display: grid; place-items: center; font-family: var(--display); font-size: 24px; color: #fff; background: rgba(255,255,255,0.06);
  box-shadow: inset 1px 1px rgba(255,255,255,0.1), inset -1px -1px rgba(0,0,0,0.5); }
.fr-td-verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
.fr-td-col { padding: 20px; }
.fr-td-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 14px; }
.fr-td-col.win h4 { color: #5eead4; }
.fr-td-col.miss h4 { color: #fda4af; }
.fr-td-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-family: var(--body); font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,0.7); }
@media (max-width: 640px) { .fr-td-verdict { grid-template-columns: 1fr; } }
.path-card .pc-art { aspect-ratio: 16/9; overflow: hidden; background: #0d0d0f; }
.path-card .pc-art img { width: 100%; height: 100%; object-fit: cover; }
.path-card .pc-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.path-card .pc-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.path-card .pc-title { font-family: var(--display); font-size: 24px; line-height: 1; color: #fff; }
.path-card .pc-desc { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.55); }
.path-card .pc-stat { margin-top: auto; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: rgba(255,255,255,0.4); display: flex; gap: 14px; }

/* subscribe modal */
.fr-modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.7); padding: 20px; }
.fr-modal.open { display: flex; }
.fr-modal-panel { background: var(--fr-panel); border: 1px solid rgba(255,255,255,0.12); max-width: 580px; width: 100%; padding: clamp(30px, 4vw, 48px); position: relative; max-height: 92vh; overflow-y: auto; }
.fr-modal-panel .m-eyebrow { display: block; font-family: var(--mono); font-weight: 400; text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; color: rgba(255,255,255,0.42); margin: 0 0 16px; }
.fr-modal-panel .mh { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.4vw, 42px); line-height: 1.02; color: #fff; margin: 0 0 16px; text-wrap: balance; }
.fr-modal-panel .mb { font-family: var(--body); font-weight: 300; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.62); margin: 0 0 24px; }
.fr-modal-panel .mfine { font-size: 11px; color: rgba(255,255,255,0.4); margin: 16px 0 0; }
.m-benefits { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.m-benefits li { display: flex; gap: 11px; align-items: flex-start; font-family: var(--body); font-weight: 300; font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,0.78); }
.m-benefits li svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; stroke-width: 2; color: rgba(255,255,255,0.5); }
.fr-modal-form { display: flex; flex-direction: column; gap: 10px; }
.fr-modal-close { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; background: rgba(255,255,255,0.06); border: none; color: rgba(255,255,255,0.6); cursor: url("cursors/hand.png") 6 1, pointer; font-size: 16px; display: grid; place-items: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .surface-grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ads-masonry { column-count: 3; }
}
@media (max-width: 900px) {
  .fr-sidebar { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform 0.25s ease; box-shadow: 0 0 40px rgba(0,0,0,0.6); }
  .fr-shell.nav-open .fr-sidebar { transform: translateX(0); }
  /* Article pages set .collapsed by default (desktop reading focus), which zeroes the sidebar
     width. On mobile the sidebar is an off-canvas drawer shown via transform, so keep its real
     width even when collapsed - otherwise the drawer slides in at 0 width and can't be opened. */
  .fr-shell.collapsed .fr-sidebar { width: var(--sidebar-w) !important; min-width: var(--sidebar-w) !important; flex-basis: var(--sidebar-w) !important; overflow-y: auto !important; }
  /* clear the fixed hamburger so the Demand Curve logo below it stays tappable (back to home) */
  .fr-side-brand { padding-top: 60px; }
  .fr-shell.nav-open .fr-scrim { display: block; }
  .fr-menu-btn { display: grid; }
  .fr-topbar-in { padding-left: 64px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .fr-wrap { padding: 18px; }
  .surface-grid, .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .ads-masonry { column-count: 2; }
  .fr-hero-body { padding: 0 18px; }
  .fr-capture { flex-direction: column; }
}

/* ── Faux membership UI ── */
.fr-signin-link { font-family: var(--fr-ui, "PP Supply Mono", monospace); font-size: 0.78rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.6); text-decoration: none; padding: 0 4px; transition: color 0.2s ease; align-self: center; background: transparent; border: 0; cursor: url("cursors/hand.png") 6 1, pointer; white-space: nowrap; -webkit-appearance: none; appearance: none; }
.fr-signin-link:hover { color: #fff; }
.fr-member-chip { display: none; align-items: center; gap: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; padding: 5px 12px 5px 10px; color: #fff; cursor: url("cursors/hand.png") 6 1, pointer; font-family: var(--fr-ui, "PP Supply Mono", monospace); font-size: 0.74rem; transition: background 0.2s ease, border-color 0.2s ease; }
.fr-member-chip:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
.fr-member-chip .fmc-dot { width: 7px; height: 7px; border-radius: 50%; background: #38e08a; box-shadow: 0 0 8px rgba(56,224,138,0.8); flex: none; }
.fr-member-chip .fmc-em { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-member-chip .fmc-tag { opacity: 0.5; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.62rem; }
/* member state swaps the join/sign-in controls for the chip */
.fr-is-member .tb-actions .fr-btn-ghost, .fr-is-member .fr-signin-link { display: none; }
.fr-is-member .fr-member-chip { display: inline-flex; }
.fr-userrow .fr-signin.is-member { color: #38e08a; }

/* join confirmation state */
.fr-modal-done { text-align: center; padding: 8px 4px 4px; }
.fr-modal-done .fmd-check { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; color: #38e08a; border: 2px solid rgba(56,224,138,0.5); box-shadow: 0 0 24px rgba(56,224,138,0.25); }
.fr-modal-done .mb b { color: #fff; }

/* started-path button */
.fr-btn.is-started { background: rgba(56,224,138,0.12); border-color: rgba(56,224,138,0.5); color: #d7ffe9; }

/* ── Newsletter page: featured latest + floppy-disk archive ── */
.nl-featured { position: relative; overflow: hidden; margin-top: 8px; padding: 44px 44px 40px; background: linear-gradient(135deg, rgba(94,234,212,0.07), rgba(255,255,255,0.02) 60%); border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; gap: clamp(28px, 4vw, 52px); }
.nl-featured-art { flex: 0 0 auto; position: relative; z-index: 1; width: clamp(170px, 24vw, 260px); aspect-ratio: 1; border: 1px solid rgba(255,255,255,0.14); border-radius: 6px; overflow: hidden; display: block; }
.nl-featured-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.nl-featured-art:hover img { transform: scale(1.04); }
@media (max-width: 720px) { .nl-featured { flex-direction: column-reverse; align-items: stretch; } .nl-featured-art { width: 100%; aspect-ratio: 16/9; } .nl-featured-in { max-width: none; } }
.nl-featured-watermark { position: absolute; right: -8px; bottom: -42px; font-family: var(--display); font-size: clamp(160px, 24vw, 300px); line-height: 0.7; color: rgba(255,255,255,0.04); pointer-events: none; z-index: 0; letter-spacing: -0.04em; }
.nl-featured-in { position: relative; z-index: 1; max-width: 40ch; }
.nl-latest-tag { color: #5eead4 !important; }
.nl-featured-title { font-size: clamp(28px, 4vw, 46px); line-height: 1.02; margin: 0; }
.nl-featured-deck { color: rgba(255,255,255,0.6); line-height: 1.6; margin: 18px 0 26px; max-width: 52ch; }
.nl-read-btn { font-size: 0.92rem; }

.nl-archive-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.nl-search { max-width: 280px; flex: 1 1 200px; }

/* issue "disk" cards (reuse .floppy chrome; number is the hero, no cover image needed) */
.nl-disk { display: flex; flex-direction: column; }
.nl-disk .nl-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); }
/* Fixed-height black panel so every card is identical whether the title is 1 or 2 lines. */
.nl-disk-body { position: relative; padding: 18px 14px 14px; display: flex; flex-direction: column; gap: 12px; background: #0d0d0f; height: 150px; }
.nl-disk-num { font-family: var(--display); font-size: 52px; line-height: 0.8; color: rgba(94,234,212,0.5); letter-spacing: -0.02em; }
.nl-disk-body .ft { font-family: var(--display); font-size: 18px; line-height: 1.12; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nl-disk:hover .nl-disk-num { color: rgba(94,234,212,0.85); }
/* Topic tag beneath the black panel. */
.nl-disk .floppy-label { min-height: 0; gap: 6px; }
.nl-topic { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fr-accent, rgba(94,234,212,0.85)); }

/* ── Settings / account panel ── */
.fr-settings { position: fixed; inset: 0; z-index: 85; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.7); padding: 20px; }
.fr-settings.open { display: flex; }
.fr-settings-panel { background: var(--fr-panel, #141416); border: 1px solid rgba(255,255,255,0.12); width: 100%; max-width: 760px; min-height: 560px; display: flex; position: relative; overflow: hidden; }
.fr-settings .fr-modal-close { position: absolute; top: 12px; right: 14px; z-index: 3; }
.fr-settings-rail { width: 210px; flex: none; background: #0f0f11; border-right: 1px solid rgba(255,255,255,0.08); padding: 24px 12px; display: flex; flex-direction: column; gap: 4px; }
.fst-railhead { font-family: var(--display); font-size: 18px; color: #fff; padding: 4px 12px 14px; }
.fst-tab { text-align: left; background: none; border: none; color: rgba(255,255,255,0.55); font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; padding: 12px 14px; cursor: url("cursors/hand.png") 6 1, pointer; transition: background 0.15s ease, color 0.15s ease; }
.fst-tab:hover { color: #fff; background: rgba(255,255,255,0.04); }
.fst-tab.is-active { color: #fff; background: rgba(255,255,255,0.07); box-shadow: inset 2px 0 #5eead4; }
.fr-settings-body { flex: 1 1 auto; padding: 34px 36px; min-width: 0; overflow-y: auto; }
.fst-pane { display: none; }
.fst-pane.is-active { display: block; }
.fst-h { font-family: var(--display); font-size: 22px; color: #fff; margin: 0 0 18px; }
.fst-id { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.fst-avatar { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #5eead4, #0046ff); color: #04121f; font-family: var(--display); font-size: 22px; }
.fst-name { color: #fff; font-size: 15px; }
.fst-sub { color: rgba(255,255,255,0.45); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.fst-field { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 13px; }
.fst-fl { color: rgba(255,255,255,0.5); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.fst-fv { color: #fff; }
.fst-signout { margin-top: 22px; }
.fst-note { color: rgba(255,255,255,0.4); font-size: 11px; margin: 16px 0 0; }
.fst-p { color: rgba(255,255,255,0.6); font-size: 13px; line-height: 1.55; margin: 0 0 14px; }
.fst-copyrow { display: flex; gap: 8px; }
.fst-copyrow .fr-input { flex: 1 1 auto; font-size: 12px; }
.fst-stats { display: flex; gap: 10px; margin: 18px 0 0; }
.fst-stats div { flex: 1; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); padding: 14px 10px; text-align: center; }
.fst-stats b { display: block; font-family: var(--display); font-size: 26px; color: #fff; }
.fst-stats span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.fst-plan { background: rgba(94,234,212,0.06); border: 1px solid rgba(94,234,212,0.2); padding: 16px; margin-bottom: 18px; }
.fst-plan-name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.fst-plan-name b { color: #5eead4; }
.fst-upgrade[disabled] { opacity: 0.5; cursor: not-allowed; }
.fst-empty { color: rgba(255,255,255,0.4); font-size: 13px; padding: 28px; text-align: center; border: 1px dashed rgba(255,255,255,0.12); }
.fst-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.fst-rl { color: #fff; font-size: 13px; }
.fst-rs { color: rgba(255,255,255,0.4); font-size: 11px; margin-top: 2px; }
.fst-switch { width: 40px; height: 22px; flex: none; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); position: relative; cursor: url("cursors/hand.png") 6 1, pointer; transition: background 0.2s ease, border-color 0.2s ease; }
.fst-switch span { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,0.7); transition: transform 0.2s ease, background 0.2s ease; }
.fst-switch.on { background: rgba(94,234,212,0.25); border-color: rgba(94,234,212,0.6); }
.fst-switch.on span { transform: translateX(18px); background: #5eead4; }
@media (max-width: 560px) { .fr-settings-panel { flex-direction: column; min-height: 0; } .fr-settings-rail { width: 100%; flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); } .fst-railhead { display: none; } .fst-tab.is-active { box-shadow: inset 0 -2px #5eead4; } }

/* signed-in sidebar profile row */
.fr-userrow .fr-signin.is-member { display: flex; align-items: center; gap: 11px; text-align: left; width: 100%; padding: 10px 12px; color: #fff; }
.fr-userrow .fr-signin.is-member .fru-avatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #5eead4, #0046ff); color: #04121f; font-family: var(--display); font-size: 16px; }
.fr-userrow .fr-signin.is-member .fru-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.fr-userrow .fr-signin.is-member .fru-name { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #5eead4; }
.fr-userrow .fr-signin.is-member .fru-email { font-size: 12.5px; color: rgba(255,255,255,0.85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* members never see Join CTAs */
.fr-is-member .fr-capture,
.fr-is-member .fr-article-cta,
.fr-is-member [data-member-hide] { display: none !important; }

/* Respect the OS "reduce motion" setting: stop the looping CRT / glitch / scan /
   ticker motion and reveal staggered content immediately. Content stays fully usable. */
@media (prefers-reduced-motion: reduce) {
  .crt-scanbar,
  .crt-text,
  .blink-cursor::after,
  .floppy:hover .floppy-scan,
  .stagger-in > * { animation: none !important; }
  .stagger-in > * { opacity: 1 !important; transform: none !important; }
  .blink-cursor::after { opacity: 1; }
}

/* ============================================================
   AUTH + BOOKMARKS + GATE  (added with the Supabase membership system)
   ============================================================ */

/* status dot: neutral, not green (DC has no green in branding) */
.fr-member-chip .fmc-dot { background: #9aa0ad; box-shadow: 0 0 8px rgba(154,160,173,0.5); }

/* Google sign-in button */
.fr-btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #1a1a1a; border: none; padding: 12px 16px; cursor: url("cursors/hand.png") 6 1, pointer;
  font-family: var(--mono, "PP Supply Mono", monospace); font-size: 13px; letter-spacing: 0.02em;
  transition: filter 0.18s ease; }
.fr-btn-google:hover { background: #fff; filter: brightness(0.94); }
.fr-btn-google svg { flex: none; }

/* "or" divider */
.fr-auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: rgba(255,255,255,0.32);
  font-family: var(--mono, monospace); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.fr-auth-or::before, .fr-auth-or::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.12); }
.fr-auth-switch { font-family: var(--mono, monospace); font-size: 11px; color: rgba(255,255,255,0.42); text-align: center; margin: 18px 0 0; }
.fr-auth-switch-btn { background: none; border: 0; padding: 0; font: inherit; color: #8fb0ff; cursor: url("cursors/hand.png") 6 1, pointer; text-decoration: underline; text-underline-offset: 2px; }
.fr-auth-switch-btn:hover { color: #b9cdff; }

.fr-auth-row { display: flex; justify-content: flex-end; margin: -2px 0 2px; }
.fr-auth-link, .fr-modal-panel .mfine a, .fr-gate-fine a { color: #8fb0ff; text-decoration: none; }
.fr-auth-link:hover, .fr-modal-panel .mfine a:hover, .fr-gate-fine a:hover { text-decoration: underline; }
.fr-auth-link { font-family: var(--mono, monospace); font-size: 11px; letter-spacing: 0.04em; }
.fr-auth-err { color: #ff8a8a; font-family: var(--mono, monospace); font-size: 12px; line-height: 1.45; margin: 12px 0 0; }

/* security pane password form + saved link */
.fr-settings [data-form="pw"] { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.fst-saved-link { display: inline-block; margin: 4px 0 10px; text-decoration: none; }

/* ---- Bookmark buttons ---- */
.fr-bm { display: inline-grid; place-items: center; position: relative; background: rgba(10,10,12,0.66);
  border: 1px solid rgba(255,255,255,0.16); color: #fff; cursor: url("cursors/hand.png") 6 1, pointer; padding: 0;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease; }
.fr-bm:hover { background: rgba(20,20,24,0.9); border-color: rgba(255,255,255,0.4); }
.fr-bm:active { transform: scale(0.92); }
.fr-bm .fr-bm-i { font-size: 17px; line-height: 1; display: inline-flex; }
.fr-bm .fr-bm-on { display: none; }
.fr-bm.is-saved { color: #8fb0ff; border-color: rgba(143,176,255,0.55); }
.fr-bm.is-saved .fr-bm-o { display: none; }
.fr-bm.is-saved .fr-bm-on { display: inline-flex; }
/* card variant: floats top-right of the cover */
.fr-bm--card { position: absolute; top: 6px; right: 6px; z-index: 6; width: 28px; height: 28px; }
.fr-bm--card .fr-bm-i { font-size: 15px; }
.floppy .floppy-art { z-index: 1; }
/* article variant: pill with label — icon and label side-by-side (not stacked) */
.fr-bm--article { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; margin-top: 18px; width: auto; border-radius: 4px; }
.fr-bm--article .fr-bm-i { font-size: 15px; }
.fr-bm--article .fr-bm-label { font-family: var(--mono, monospace); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.fr-bm--article.is-saved .fr-bm-label::after { content: 'd'; }   /* "Save" -> "Saved" */
.fr-save-panel { padding: 22px; }
.fr-save-panel .ab { color: rgba(255,255,255,0.55); }
.fr-bm--aside { width: 100%; margin-top: 0; }

/* ---- NYT-style soft gate ---- */
.fr-gated .fr-prose { max-height: 30rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 52%, transparent 100%); }
.fr-gated .fr-article-cta { display: none; }   /* hide the in-article join CTA while gated (gate has its own) */
.fr-gate { margin: -3rem auto 0; max-width: 620px; text-align: center; position: relative; z-index: 2; }
.fr-gate-icon { display: block; width: 72px; height: auto; margin: 0 auto 16px; opacity: 0.92; }
.fr-gate-card { background: var(--fr-panel, #141416); border: 1px solid rgba(255,255,255,0.14);
  padding: clamp(28px, 4vw, 44px); box-shadow: 0 -20px 60px rgba(0,0,0,0.4); }
.fr-gate-eyebrow { display: block; font-family: var(--mono, monospace); text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 11px; color: rgba(255,255,255,0.5); margin: 0 0 14px; }
.fr-gate-h { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.05; color: #fff; margin: 0 0 14px; }
.fr-gate-p { font-family: var(--body); font-weight: 300; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.66); margin: 0 auto 22px; max-width: 46ch; }
.fr-gate-cta { display: inline-block; text-decoration: none; }
.fr-gate-fine { font-family: var(--mono, monospace); font-size: 11px; color: rgba(255,255,255,0.42); margin: 16px 0 0; }

/* member-only sidebar items (e.g. Saved) hidden until signed in */
body:not(.fr-is-member) [data-member-only] { display: none; }

/* hero magic-link confirmation */
.fr-capture-done { font-family: var(--body); font-size: 15px; line-height: 1.55; color: #cfe0ff; background: rgba(143,176,255,0.10); border: 1px solid rgba(143,176,255,0.35); padding: 14px 16px; margin: 0; }

/* de-AI tells: flat avatars (no gradient), grey active tab (no accent line), minimal account chip */
.fst-avatar, .fr-userrow .fr-signin.is-member .fru-avatar { background: #2a2c30; color: #fff; }
.fst-tab.is-active { box-shadow: none; }
.fr-member-chip { background: transparent; border: none; border-radius: 0; padding: 6px 10px; }
.fr-member-chip:hover { background: rgba(255,255,255,0.08); border-color: transparent; }
.fr-member-chip .fmc-dot { display: none; }

/* ---- full-page member gate (Ads Vault, Deals, etc.) ---- */
.fr-pagegated .fr-main > *:not(.fr-pagegate) { display: none !important; }
.fr-pagegate { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 72vh; padding: clamp(40px,8vh,90px) 24px; }
.fr-pagegate-icon { width: 60px; height: 60px; display: grid; place-items: center; background: rgba(143,176,255,0.12); border: 1px solid rgba(143,176,255,0.4); margin: 0 0 22px; }
.fr-pagegate-icon iconify-icon { font-size: 30px; color: #8fb0ff; }
.fr-pagegate-eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; color: rgba(255,255,255,0.6); margin: 0 0 12px; }
.fr-pagegate-emblem { width: clamp(96px, 13vw, 132px); height: auto; margin: 0 0 22px; }
.fr-pagegate h2 { font-family: var(--display); font-weight: 400; font-synthesis: none; font-size: clamp(26px,3.4vw,40px); line-height: 1.05; color: #fff; margin: 0 0 12px; }
.fr-pagegate p { font-family: var(--body); font-weight: 300; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.62); margin: 0 auto 24px; max-width: 44ch; }
.fr-pagegate .fr-btn { text-decoration: none; }
.fr-pagegate-spin { width: 26px; height: 26px; border: 2px solid rgba(255,255,255,0.18); border-top-color: #8fb0ff; border-radius: 50%; animation: fr-spin 0.7s linear infinite; }
@keyframes fr-spin { to { transform: rotate(360deg); } }

/* TEMP: hide Paths until growth-program content is ungated. Remove this rule + the data-temp-hidden attrs to restore. */
[data-temp-hidden] { display: none !important; }

/* FIX: consecutive article paragraphs had no gap — `.fr-prose p{margin:0}` (specificity 0,1,1)
   was overriding the flow spacing `.fr-prose > * + *` (0,1,0), so every <p> stacked tight.
   Restore real paragraph spacing with a surgical, higher-specificity rule (p-after-p only;
   heading→text hug and figure/list gaps are unaffected). */
.fr-prose > p + p { margin-top: 1.5em; }

/* settings: avatar image + editable name/email rows */
.fst-avatar, .fr-userrow .fr-signin.is-member .fru-avatar { overflow: hidden; }
.fst-avatar img, .fr-userrow .fr-signin.is-member .fru-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.fst-photo { margin-left: auto; flex: none; font-size: 12px; padding: 7px 12px; }
.fst-edit { margin: 0 0 14px; }
.fst-edit .fst-fl { display: block; margin: 0 0 6px; }
.fst-editrow { display: flex; gap: 8px; }
.fst-editrow .fr-input { flex: 1 1 auto; min-width: 0; }
.fst-editrow .fr-btn { flex: none; }

/* ============================================================
   PIXEL CURSORS (retro) — same set as the main site, for the Frontier.
   Delete this block to revert. arrow=normal · hand=hover · click=mousedown.
   ============================================================ */
html, body { cursor: url("cursors/arrow.png") 0 0, auto; }
a, button, summary, label, select, [role="button"],
.win98-btn, .fr-bm, .floppy, .surface-card, .nl-featured-art, .fr-list-item, .fr-signin-link
{ cursor: url("cursors/hand.png") 6 1, pointer; }
:active { cursor: url("cursors/click.png") 2 0, auto; }
a:active, button:active, [role="button"]:active, .win98-btn:active { cursor: url("cursors/hand.png") 6 1, pointer; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"],
input[type="url"], textarea, [contenteditable="true"] { cursor: text; }

/* ============================================================
   ARTICLE: like button + comments
   ============================================================ */
.fr-like { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 1px solid rgba(255,255,255,0.16); background: transparent; color: rgba(255,255,255,0.8); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; cursor: url("cursors/hand.png") 6 1, pointer; transition: color .15s, border-color .15s, background .15s; }
.fr-like svg { width: 16px; height: 16px; transition: fill .15s; }
.fr-like:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.fr-like.is-liked { color: #ff5a6e; border-color: rgba(255,90,110,0.5); }
.fr-like.is-liked svg { fill: #ff5a6e; }
.fr-like-n { font-variant-numeric: tabular-nums; }

.fr-comments { margin-top: clamp(40px, 6vh, 72px); border-top: 1px solid rgba(255,255,255,0.12); padding-top: clamp(28px,4vh,44px); }
.fr-comments-h { font-family: var(--display); font-weight: 400; font-size: clamp(22px,2.4vw,30px); color: #fff; margin: 0 0 20px; }
.fr-comments-count { color: rgba(255,255,255,0.4); font-size: 0.66em; }
.fr-comment-compose { margin-bottom: 26px; }
.fr-c-input { width: 100%; box-sizing: border-box; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.16); color: #fff; font-family: var(--body); font-size: 15px; line-height: 1.5; padding: 12px 14px; resize: vertical; border-radius: 4px; }
.fr-c-input:focus { outline: none; border-color: rgba(255,255,255,0.4); }
.fr-c-input::placeholder { color: rgba(255,255,255,0.35); }
.fr-c-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.fr-comments-list { display: flex; flex-direction: column; gap: 18px; }
.fr-comments-empty { color: rgba(255,255,255,0.45); font-family: var(--body); font-size: 14px; margin: 0; }
.fr-comment { border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.02); border-radius: 4px; padding: 14px 16px; }
.fr-c-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 7px; }
.fr-c-name { font-family: var(--body); font-weight: 600; font-size: 14px; color: #fff; }
.fr-c-when { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.4); }
.fr-c-del { margin-left: auto; background: none; border: none; color: rgba(255,255,255,0.4); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; cursor: url("cursors/hand.png") 6 1, pointer; }
.fr-c-del:hover { color: #ff5a6e; }
.fr-c-body { font-family: var(--body); font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.82); overflow-wrap: anywhere; }

/* light mode overrides */
.fr-main.reader-light .fr-like { color: rgba(0,0,0,0.6); border-color: rgba(0,0,0,0.18); }
.fr-main.reader-light .fr-like:hover { color: #000; border-color: rgba(0,0,0,0.4); }
.fr-main.reader-light .fr-like.is-liked { color: #e11d48; border-color: rgba(225,29,72,0.5); }
.fr-main.reader-light .fr-like.is-liked svg { fill: #e11d48; }
.fr-main.reader-light .fr-comments { border-top-color: rgba(0,0,0,0.12); }
.fr-main.reader-light .fr-comments-h { color: #14161a; }
.fr-main.reader-light .fr-comments-count { color: rgba(0,0,0,0.4); }
.fr-main.reader-light .fr-c-input { background: #fff; border-color: rgba(0,0,0,0.2); color: #14161a; }
.fr-main.reader-light .fr-c-input::placeholder { color: rgba(0,0,0,0.4); }
.fr-main.reader-light .fr-comment { border-color: rgba(0,0,0,0.12); background: #fff; }
.fr-main.reader-light .fr-c-name { color: #14161a; }
.fr-main.reader-light .fr-c-when { color: rgba(0,0,0,0.4); }
.fr-main.reader-light .fr-c-body { color: rgba(0,0,0,0.72); }

/* Joey QA #17: breadcrumbs off on phones (wrapped badly in the mobile topbar) */
@media (max-width: 768px) { .fr-topbar .crumb { display: none; } }

/* Joey QA #7 (2026-07-07): blog readers drop the horizontal scanline bg - harder to read. Other pages keep it. */
.fr-main.fr-nolines, .fr-main.fr-nolines.reader-light { background-image: none; }
