/* Affair Index · design system
   Palette and fonts kept from v1. Layout: one container (.wrap) for every section,
   so all content shares the same side margins at every width. */

:root {
  --bg: #FAFAFA; --bg-elev: #F8F6F4; --surface: #FFFFFF; --surface-2: #F0EDEB;
  --ink: #1A1816; --muted: #5C5854; --faint: #8F8A86;
  --line: #DDDBD6; --border: #E5E1DE;
  --accent: #E8549E; --accent-soft: #FCE4EC; --accent-2: #FF6B9D; --accent-3: #FFB8C8; --heart: #D84C8A;
  --accent-ink: #B03A72;             /* the palette pink, darkened for small text */
  --success: #3E9F6A; --danger: #D14B5A;
  --up: #2F7D52; --down: #B83343;    /* text-safe versions of success/danger */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(26, 24, 22, .04), 0 10px 28px -16px rgba(26, 24, 22, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ol, ul { margin: 0; }
dl, dd { margin: 0; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.up { color: var(--up); }
.dn { color: var(--down); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: 84px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* Skip link: fully hidden (not just moved off-screen) until a keyboard user tabs to it */
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: 999px;
  background: var(--heart); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip-link:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- status bar + header ---------- */

.live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: ping 1.8s ease-out infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(232, 84, 158, .5); }
  75%, 100% { box-shadow: 0 0 0 7px rgba(232, 84, 158, 0); }
}

.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border); }
.hd-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.brand-word { font: 600 25px/1 var(--font-serif); letter-spacing: -.01em; white-space: nowrap; }
.brand-word em, .ft-word em { font-style: italic; color: var(--heart); }

/* ---------- shared section bits ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.kicker, .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); font: 600 11px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 24px; margin-bottom: 24px; }
.sec-head .kicker { width: 100%; }
.sec-head h2 { font: 600 clamp(32px, 4.2vw, 48px)/1.02 var(--font-serif); letter-spacing: -.015em; }
.sec-link { margin-left: auto; color: var(--accent-ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sec-link::after { content: " \2192"; }
.sec-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tag { display: inline-block; padding: 3px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font: 600 10px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg);
  color: var(--muted); font: 500 11px/1.45 var(--font-mono); text-decoration: none; white-space: nowrap;
}
.chip:hover { border-color: var(--accent-3); background: var(--accent-soft); color: var(--accent-ink); }
.pill { flex: none; margin-left: auto; padding: 6px 10px; border: 1px solid transparent; border-radius: 999px; font: 600 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.st-resigned { background: var(--heart); color: #fff; }
.st-fired { background: var(--accent-ink); color: #fff; }
.st-denied { background: var(--surface); border-color: var(--line); color: var(--muted); }
.st-divorced { background: var(--accent-soft); color: var(--accent-ink); }
.avatar {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(140deg, var(--accent-2), var(--heart)); color: #fff; font: 600 19px/1 var(--font-serif);
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--accent-3);
}
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--heart); color: #fff; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--accent-ink); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- hero: the meme, with HEARTCON under it ---------- */
.hero { position: relative; padding: clamp(32px, 5vw, 64px) 0 clamp(36px, 5vw, 60px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .75;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath fill='%23FCE4EC' d='M32 38.4l-1.2-1.1c-4.3-3.9-7.1-6.4-7.1-9.5 0-2.5 2-4.5 4.5-4.5 1.4 0 2.8.7 3.8 1.7.9-1 2.3-1.7 3.7-1.7 2.5 0 4.5 2 4.5 4.5 0 3.1-2.8 5.6-7.1 9.5z'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 28px clamp(24px, 4vw, 56px); align-items: center; }
.hero-h { margin: 16px 0 18px; font: 600 clamp(44px, 5.3vw, 76px)/.96 var(--font-serif); letter-spacing: -.025em; }
.hero-h em { display: block; margin-top: .06em; color: var(--heart); }
.hero-sub { max-width: 44ch; color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 24px 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--border); }
.hero-stats div { display: flex; flex-direction: column; justify-content: space-between; padding: 12px 14px; background: var(--surface); }
.hero-stats dt { color: var(--faint); font: 500 10.5px/1.35 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.hero-stats dd { margin-top: 6px; font: 600 24px/1 var(--font-mono); letter-spacing: -.02em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.heartcon { padding: 20px 20px 18px; }
/* HEARTCON as a social profile card */
.hc-social { padding: 0; overflow: hidden; }
.hc-cover { position: relative; display: flex; justify-content: space-between; align-items: flex-start; height: 78px; padding: 14px 18px;
  background-color: var(--heart);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath fill='%23ffffff' fill-opacity='.14' d='M22 28.4l-1.2-1.1c-4.3-3.9-7.1-6.4-7.1-9.5 0-2.5 2-4.5 4.5-4.5 1.4 0 2.8.7 3.8 1.7.9-1 2.3-1.7 3.7-1.7 2.5 0 4.5 2 4.5 4.5 0 3.1-2.8 5.6-7.1 9.5z'/%3E%3C/svg%3E"),
    linear-gradient(120deg, var(--accent-2), var(--heart)); }
.hc-tag { display: inline-flex; align-items: center; gap: 7px; color: #fff; font: 600 11px/1 var(--font-mono); letter-spacing: .18em; }
.hc-tag .hc-heart { width: 14px; height: 14px; fill: #fff; opacity: 1; }
.hc-lvl { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2);
  color: #fff; font: 600 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.hc-lvl b { font-size: 13px; }
.hc-lvl .live-dot { background: #fff; }
.hc-body { padding: 0 18px 18px; }
.hc-id { display: flex; justify-content: space-between; align-items: flex-end; margin-top: -38px; }
.avatar-hc { position: relative; width: 80px; height: 80px; font-size: 32px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--accent-3); }
.avatar-hc::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 14px; height: 14px; border: 3px solid var(--surface);
  border-radius: 50%; background: var(--accent); animation: ping 1.8s ease-out infinite; }
.hc-follow { padding: 8px 16px; border: 1px solid var(--heart); border-radius: 999px; background: var(--heart); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.hc-follow:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.hc-btns { display: flex; align-items: center; gap: 6px; }
.hc-share { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border: 1px solid var(--accent-3); border-radius: 999px; background: var(--surface);
  color: var(--accent-ink); font-size: 13px; font-weight: 600; text-decoration: none; transition: background .15s, transform .18s cubic-bezier(.34, 1.56, .64, 1); }
.hc-share:hover { background: var(--accent-soft); transform: translateY(-2px); }
.hc-who { margin-top: 10px; font: 600 30px/1.05 var(--font-serif); letter-spacing: -.01em; }
.hc-sub { margin-top: 3px; color: var(--muted); font-size: 13px; }
.hc-rel { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--accent-3); border-radius: 12px; background: var(--accent-soft); }
.hc-rel-ico { width: 30px; height: 30px; flex: none; fill: var(--heart); }
.hc-rel p { display: flex; flex-direction: column; min-width: 0; }
.hc-rel span { color: var(--accent-ink); font: 600 10px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.hc-rel b { font-size: 19px; line-height: 1.25; }
.hc-rel small { color: var(--muted); font-size: 12px; }
.hc-social .hc-scale { margin: 12px 0 0; gap: 5px; }
.hc-social .hc-step { min-height: 0; flex-direction: row; align-items: center; gap: 6px; padding: 8px 8px; }
.hc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 0 12px; padding: 12px 0; border-block: 1px solid var(--border); text-align: center; }
.hc-stats div + div { border-left: 1px solid var(--border); }
.hc-stats dd { font: 600 19px/1.1 var(--font-mono); letter-spacing: -.02em; }
.hc-stats dt { margin-top: 4px; color: var(--faint); font: 500 9.5px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.hc-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 18px 0 14px; padding: 0; list-style: none; }
.hc-step { display: flex; flex-direction: column; gap: 5px; min-height: 76px; padding: 10px 9px; border-radius: 10px; color: var(--accent-ink); transition: transform .2s; }
.hc-heart { width: 15px; height: 15px; fill: currentColor; opacity: .55; }
.hc-n { font: 600 12px/1 var(--font-mono); }
.hc-name { color: var(--ink); font-size: 12px; font-weight: 500; line-height: 1.2; }
.hc-1 { background: #FFF6F9; } .hc-2 { background: #FDEAF0; } .hc-3 { background: #FDDCE6; } .hc-4 { background: #FBC8D7; } .hc-5 { background: #F8B3C8; }
.hc-step.is-on { background: var(--heart); color: #fff; box-shadow: 0 10px 22px -10px rgba(216, 76, 138, .8); transform: translateY(-4px); }
.hc-step.is-on .hc-heart { opacity: 1; }
.hc-step.is-on .hc-name { color: #fff; font-weight: 600; }
.hc-line { color: var(--muted); font-size: 14px; }
.hc-line a { color: var(--accent-ink); font-weight: 600; text-underline-offset: 3px; }

.tp { display: inline-flex; align-items: baseline; gap: 8px; color: inherit; text-decoration: none; white-space: nowrap; }
.tp b { color: #fff; font-weight: 600; }
.tp-px { color: #BDB5AE; }
.tp-ch.up { color: #86D9A9; } .tp-ch.dn { color: #FF9FB6; }
a.tp:hover b { color: var(--accent-3); }

/* ---------- section spacing ---------- */

/* ---------- 3D charts (tools/charts.py iso_ribbon, iso_bar) ---------- */
.fx-svg { width: 100%; height: auto; overflow: visible; }
.fx-plat { fill: #FFF4F8; stroke: #F7D5E2; stroke-width: 1; stroke-linejoin: round; }
.fx-plat-f { fill: #F9DDE8; }
.fx-plat-r { fill: #F2C8D8; }
.fx-grid { stroke: #F7D8E4; stroke-width: 1; }
.fx-news { stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 3 3; }
.fx-t1, .fx-t2, .fx-t3, .fx-t4, .fx-q1, .fx-q2, .fx-q3, .fx-q4 { stroke-width: .7; stroke-linejoin: round; }
.fx-t1 { fill: #FFE8F0; stroke: #FFE8F0; } .fx-t2 { fill: #FFD6E5; stroke: #FFD6E5; }
.fx-t3 { fill: #FDC3D7; stroke: #FDC3D7; } .fx-t4 { fill: #F9AFC9; stroke: #F9AFC9; }
.fx-q1 { fill: #F8F4F6; stroke: #F8F4F6; } .fx-q2 { fill: #F0EAED; stroke: #F0EAED; }
.fx-q3 { fill: #E8E0E4; stroke: #E8E0E4; } .fx-q4 { fill: #DFD5DA; stroke: #DFD5DA; }
.fx-back { fill: none; stroke: #F4B8CE; stroke-width: 1; stroke-linejoin: round; }
.fx-edge, .fx-edge-pre { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.fx-edge { stroke: var(--heart); stroke-width: 2.2; }
.fx-edge.dn { stroke: var(--down); }
.fx-edge-pre { stroke: #B9AFB4; stroke-width: 1.6; }
.fx-cap { fill: #E57AAA; }
.fx-cap.dn { fill: #D9707F; }
.fx-d1 { fill: #FFEDEF; stroke: #FFEDEF; } .fx-d2 { fill: #FDDDE2; stroke: #FDDDE2; }
.fx-d3 { fill: #F9CAD2; stroke: #F9CAD2; } .fx-d4 { fill: #F4B6C1; stroke: #F4B6C1; }
.fx-d1, .fx-d2, .fx-d3, .fx-d4 { stroke-width: .7; stroke-linejoin: round; }
.pulse.dn, .dot-last.dn { fill: #E0475E; }
.fx-stem { stroke: var(--heart); stroke-width: 1.4; }
.fx-heart { fill: var(--heart); stroke: #fff; stroke-width: 1.6; }
.b3 { width: 100%; height: auto; }
.b3-track { fill: #FBEFF4; }
.b3-zero { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 2 2; }
.b3-front.up { fill: #F27DB0; } .b3-top.up { fill: #FBB8D2; } .b3-side.up { fill: #DA5D95; }
.b3-front.dn { fill: #D9586F; } .b3-top.dn { fill: #F2A3B1; } .b3-side.dn { fill: #B64459; }

/* hero chart stack, after the meme it is based on */
.fx-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fx-name { display: block; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; }
a.fx-name:hover { color: var(--accent-ink); }
.fx-co { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.avatar-sm { width: 34px; height: 34px; font-size: 14px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--accent-3); }
.pin-heart { width: 11px; height: 11px; flex: none; fill: var(--heart); }

/* profile page: since the news */
.fx-big { margin: 0 0 16px; padding: 18px 20px 14px; }
.fx-big-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-bottom: 6px; }
.fx-big-num { margin: 6px 0 4px; font: 600 clamp(40px, 5vw, 58px)/1 var(--font-mono); letter-spacing: -.03em; }
.fx-big figcaption b { color: var(--ink); }

/* ---------- scoreboard ---------- */
.sc-card { padding: 4px 20px 16px; }
.sc-head, .sc-row { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr) minmax(0, 1.1fr) 92px; align-items: center; gap: 16px; }
.sc-head { padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--faint); font: 600 10.5px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.sc-head span:last-child { grid-column: span 2; }
.sc-list { padding: 0; list-style: none; }
.sc-row { padding: 11px 0; border-bottom: 1px solid var(--border); }
.sc-row.is-live { margin-inline: -20px; padding-inline: 20px; background: linear-gradient(90deg, var(--accent-soft), rgba(252, 228, 236, 0) 75%); }
.sc-rel { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sc-rel b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.sc-rel i { display: block; color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.3; }
.broken { width: 22px; height: 22px; flex: none; fill: var(--accent-3); }
.broken .crack { fill: none; stroke: var(--surface); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sc-num { font: 600 18px/1 var(--font-mono); letter-spacing: -.02em; text-align: right; }
.sc-foot { padding-top: 14px; color: var(--muted); font-size: 13px; }
.sc-foot b { color: var(--ink); }

/* ---------- lead case ---------- */
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.lead-main { padding: clamp(20px, 3vw, 32px); }
.lead-hl { max-width: 21ch; font: 600 clamp(29px, 3.4vw, 42px)/1.04 var(--font-serif); letter-spacing: -.01em; }
.lead-lede { max-width: 64ch; margin: 12px 0 12px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 22px 0 20px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--border); }
.kpi { display: flex; flex-direction: column; justify-content: space-between; padding: 12px 14px; background: var(--surface); }
.kpi dt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--faint); font: 500 10.5px/1.35 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.kpi dt .chip { padding: 1px 7px; font-size: 10px; text-transform: none; letter-spacing: 0; }
.kpi dd { margin-top: 8px; font: 600 25px/1 var(--font-mono); letter-spacing: -.02em; }

.chart { margin: 0; }
.chart-svg { width: 100%; height: 270px; overflow: visible; }
.chart-lg .chart-svg { height: 310px; }
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-top: 12px; color: var(--faint); font-size: 12px; }
.mk-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.mk-legend li { display: inline-flex; align-items: center; gap: 7px; }
.mk-badge { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--heart); color: #fff; font: 600 10px/1 var(--font-mono); }

.grid { stroke: var(--border); stroke-width: 1; }
.grid.zero { stroke: var(--faint); stroke-dasharray: 3 3; }
.ylab, .xlab { fill: var(--faint); font: 500 11px var(--font-mono); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.ln { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.ln-main { stroke: var(--heart); }
.mk-line { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 3; }
.mk-dot { fill: var(--heart); stroke: var(--surface); stroke-width: 2; }
.mk-num { fill: #fff; font: 600 10.5px var(--font-mono); text-anchor: middle; pointer-events: none; }
.dot-last { fill: var(--heart); stroke: var(--surface); stroke-width: 2; }
.pulse { fill: var(--accent); transform-box: fill-box; transform-origin: center; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { opacity: .45; transform: scale(.5); } to { opacity: 0; transform: scale(2.4); } }
.hit { fill: transparent; }
.hit:hover { fill: rgba(232, 84, 158, .08); }

.feed { padding: 18px 0 4px; }
.feed-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 20px 12px; border-bottom: 1px solid var(--border); }
.feed-head h3 { font: 600 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.feed-head span { color: var(--faint); font: 500 11px/1 var(--font-mono); }
.feed-list { padding: 0; list-style: none; }
.feed-list li { display: grid; gap: 7px; padding: 15px 20px; border-bottom: 1px solid var(--border); }
.feed-list li:last-child { border-bottom: 0; }
.feed-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 600 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.feed-meta time { color: var(--accent-ink); }
.feed-move { padding: 4px 7px; border-radius: 6px; background: var(--bg); letter-spacing: .02em; }
.feed-list p { font-size: 14px; line-height: 1.5; }

/* ---------- profile cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.pcard:hover { border-color: var(--accent-3); transform: translateY(-2px); }
.pcard.is-hot { border-color: var(--accent-3); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.pc-top { display: flex; align-items: center; gap: 12px; }
.pc-id { min-width: 0; }
.pc-id h3 { font: 600 23px/1.05 var(--font-serif); }
.pc-id h3 a { text-decoration: none; }
.pc-id h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.pc-id p { color: var(--muted); font-size: 13px; }
.pc-hook { min-height: 2.9em; font-size: 15px; line-height: 1.45; }
.pc-chart { padding: 10px 12px 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
.pc-chart-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--faint); font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.pc-live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font: 600 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.pc-since { font: 600 17px/1 var(--font-mono); letter-spacing: -.02em; text-transform: none; }
.pc-more { margin-top: auto; color: var(--accent-ink); font-size: 13px; font-weight: 600; }


/* ---------- research briefs ---------- */

/* ---------- year after ---------- */

/* ---------- FAQ + disclaimer ---------- */
.faq-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(16px, 4vw, 52px); }
.faq-in > .sec-head { align-self: start; }
.qa { border-bottom: 1px solid var(--border); }
.qa:first-child { border-top: 1px solid var(--border); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 58px; padding: 14px 0; cursor: pointer; font-size: 17px; font-weight: 600; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; color: var(--accent); font: 400 22px/1 var(--font-mono); }
.qa[open] summary::after { content: "\2212"; }
.qa p { max-width: 64ch; padding: 0 0 18px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(48px, 7vw, 88px); padding-top: 48px; overflow: hidden; background: var(--surface); border-top: 1px solid var(--border); }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.ft-brand p { margin-top: 12px; color: var(--muted); font: italic 500 19px/1.3 var(--font-serif); }
.ft-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; }
.ft-col h2 { margin-bottom: 4px; color: var(--faint); font: 600 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.ft-col a { color: var(--muted); text-decoration: none; }
.ft-col a:hover { color: var(--accent-ink); }
.soon { color: var(--faint); }
.soon i { margin-left: 4px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 999px; font: normal 500 9.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px; }
.ft-word { margin: 44px 0 -0.06em; color: var(--accent-soft); font: 600 clamp(56px, 18.5vw, 272px)/.82 var(--font-serif); letter-spacing: -.035em; white-space: nowrap; user-select: none; }
.ft-word em { color: #F8D0DD; }
.ft-base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 18px 0 22px; background: var(--surface); border-top: 1px solid var(--border); color: var(--faint); font-size: 12px; }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(36px, 6vw, 68px) 0 28px; }
.page-head h1 { margin: 14px 0 12px; font: 600 clamp(42px, 6vw, 76px)/.98 var(--font-serif); letter-spacing: -.02em; }
.lede { max-width: 62ch; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); }
.nf { padding-bottom: 40px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.prof-sec { padding-top: clamp(44px, 6vw, 72px); }

.prof-hero { padding-top: 26px; }
.crumbs { display: flex; gap: 8px; margin-bottom: 16px; color: var(--faint); font: 500 12px/1 var(--font-mono); }
.crumbs a { color: var(--accent-ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.prof-card { padding: clamp(20px, 3.5vw, 36px); }
.prof-id { display: flex; align-items: center; gap: 20px; }
.prof-name { min-width: 0; }
.prof-name .pc-live { margin-left: 6px; }
.avatar-lg { width: 78px; height: 78px; font-size: 31px; }
.prof-id h1 { margin-top: 6px; font: 600 clamp(40px, 5.4vw, 66px)/.98 var(--font-serif); letter-spacing: -.02em; }
.prof-role { margin-top: 6px; color: var(--muted); font-size: 15px; }
.prof-sum { max-width: 72ch; margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; }
.prof-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin-top: 24px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--border); }
.prof-facts div { padding: 12px 14px; background: var(--surface); }
.prof-facts dt { color: var(--faint); font: 500 10.5px/1.35 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.prof-facts dd { margin-top: 6px; font-size: 16px; font-weight: 600; line-height: 1.25; }
.prof-facts dd.num { font: 600 20px/1.1 var(--font-mono); }
.cite { margin-left: 2px; font: 600 10px/0 var(--font-mono); vertical-align: super; }
.cite a { padding: 0 1px; color: var(--accent-ink); text-decoration: none; }
.cite a:hover { text-decoration: underline; }
.cite a + a::before { content: ","; color: var(--faint); }

/* relationship chart */
.rel-card { padding: 16px 20px 14px; }
.rel-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: center; gap: 18px; min-height: 52px; border-bottom: 1px solid var(--border); }
.rel-row:last-child { border-bottom: 0; }
.rel-axis { min-height: 34px; }
.rel-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.rel-who b { font-size: 15px; font-weight: 600; }
.rel-who span { color: var(--muted); font-size: 12px; }
.rel-track { width: 100%; height: 46px; overflow: visible; }
.rel-axis .rel-track { height: 32px; }
.rgrid { stroke: var(--border); }
.revent { stroke: var(--accent); stroke-dasharray: 3 3; }
.rtick { fill: var(--faint); font: 500 11px var(--font-mono); }
.revent-lab { fill: var(--accent-ink); font: 600 10.5px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.rspan.spouse, .rspan.admitted { fill: var(--heart); }
.rspan.ex { fill: var(--accent-3); }
.rspan.partner { fill: #FFD3E0; }
.rspan.other, .rspan.reported, .rspan.denied { fill: #DCD6D1; }
.rspan-lab { fill: var(--ink); font: 600 10.5px var(--font-mono); pointer-events: none; }
.rspan-lab.spouse, .rspan-lab.admitted { fill: #fff; }
.rmk path { fill: var(--heart); stroke: var(--surface); stroke-width: 2; }
.rmk.ex path, .rmk.partner path { fill: #E07BA8; }
.rmk.reported path { fill: var(--surface); stroke: var(--heart); stroke-width: 2.6; }
.rmk.denied path { fill: var(--surface); stroke: var(--faint); stroke-width: 2.6; stroke-dasharray: 3 2; }
.rmk.other path { fill: #A8A19C; }
.rel-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; padding: 12px 0 0; border-top: 1px solid var(--border); list-style: none; color: var(--muted); font-size: 12.5px; }
.rel-legend li { display: inline-flex; align-items: center; gap: 7px; }
.lg-span { width: 20px; height: 9px; border-radius: 5px; background: #DCD6D1; }
.lg-span.spouse, .lg-span.admitted { background: var(--heart); }
.lg-span.ex { background: var(--accent-3); }
.lg-span.partner { background: #FFD3E0; }
.lg-heart { width: 15px; height: 15px; overflow: visible; }
.lg-event { width: 0; height: 14px; border-left: 2px dashed var(--accent); }

/* people table */
.table-wrap { margin-top: 16px; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.who { width: 100%; border-collapse: collapse; font-size: 14px; }
.who th, .who td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.who thead th { background: var(--bg); color: var(--faint); font: 500 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.who tbody tr:last-child > * { border-bottom: 0; }
.who tbody th { min-width: 170px; font-weight: 400; }
.who tbody th b { font-weight: 600; }
.who td:last-child { color: var(--muted); }
.aka { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.unnamed { font-style: italic; }
.kdot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--faint); vertical-align: 1px; }
.k-spouse .kdot, .k-admitted .kdot { background: var(--heart); }
.k-ex .kdot { background: var(--accent-3); }
.k-partner .kdot { background: #FFD3E0; }
.k-reported .kdot { background: var(--surface); box-shadow: inset 0 0 0 2px var(--heart); }
.k-denied .kdot { background: var(--surface); box-shadow: inset 0 0 0 2px var(--faint); }
.k-other .kdot { background: #A8A19C; }

/* stock */
.stat-l { color: var(--faint); font: 500 10.5px/1.35 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.stat-n { color: var(--faint); font-size: 12px; }
.chart-card { margin: 0; padding: 18px 20px; }
.chart-card h3 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; font: 600 12px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }

/* timeline + fallout */
.tl { position: relative; padding: 0; list-style: none; }
.tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--accent-soft); }
.tl li { position: relative; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 4px 18px; padding: 0 0 22px 34px; }
.tl li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border: 2px solid var(--heart); border-radius: 50%; background: var(--surface); }
.tl li.is-next::before { border-style: dashed; border-color: var(--faint); }
.tl time { color: var(--accent-ink); font: 600 12px/1.7 var(--font-mono); letter-spacing: .03em; }
.tl li.is-next time { color: var(--faint); }

/* sources */
.sources { display: grid; gap: 10px; padding: 0; list-style: none; }
.sources li { display: flex; gap: 12px; align-items: baseline; padding: 4px 6px; border-radius: 8px; font-size: 14px; scroll-margin-top: 96px; }
.sources li:target { background: var(--accent-soft); }
.src-n { flex: none; width: 22px; color: var(--accent-ink); font: 600 12px/1.4 var(--font-mono); }
.sources a { text-decoration-color: var(--accent-3); text-underline-offset: 3px; }
.sources a:hover { color: var(--accent-ink); }
.src-meta { display: block; color: var(--faint); font-size: 12px; }
.prof-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border); }
.prof-nav a { display: flex; flex-direction: column; gap: 5px; font: 600 22px/1.1 var(--font-serif); text-decoration: none; }
.prof-nav a:hover { color: var(--accent-ink); }
.prof-nav a span { color: var(--faint); font: 500 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.prof-nav .next { margin-left: auto; text-align: right; }

/* profiles page */
.data { width: 100%; border-collapse: collapse; font-size: 14px; }
.data th, .data td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.data tbody tr:last-child > * { border-bottom: 0; }
.data thead th { background: var(--bg); color: var(--faint); font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: normal; vertical-align: bottom; }
.data tbody th { min-width: 170px; font-weight: 600; white-space: normal; }
.data tbody th a { text-decoration-color: var(--accent-3); text-underline-offset: 3px; }
.data .num { font-family: var(--font-mono); text-align: right; }
.levels td, .levels th { white-space: normal; }
.levels tbody th { min-width: 0; width: 64px; }
.levels tr.is-on > * { background: var(--accent-soft); }

/* research + method */
.prose { max-width: 760px; }
.prose h2 { margin: 40px 0 12px; font: 600 clamp(28px, 3vw, 36px)/1.1 var(--font-serif); scroll-margin-top: 84px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 12px; }
.prose p { color: var(--muted); }
.prose .table-wrap { margin-top: 14px; }
.defs { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--border); }
.defs div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 16px; background: var(--surface); }
.defs dt { font-weight: 600; }
.defs dd { color: var(--muted); }
.src-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.src-group { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.src-group h3 { margin-bottom: 12px; font: 600 22px/1.1 var(--font-serif); }
.src-group .src-n { display: none; }

/* ---------- hero (compact): headline left, stats right, so the charts show up fast ---------- */
.hero { padding: clamp(16px, 2.2vw, 26px) 0 clamp(16px, 2.2vw, 24px); }
.hero-in { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 14px clamp(20px, 3vw, 40px); }
.hero-h { margin: 8px 0 6px; font-size: clamp(30px, 3.3vw, 46px); line-height: 1; }
.hero-h em { display: inline; margin: 0; }
.hero-sub { max-width: none; font-size: 15px; }
.hero-stats { margin: 0; }
.hero-stats div { padding: 10px 12px; }
.hero-stats dd { margin-top: 5px; font-size: 21px; }
.hero-stats dd small { display: block; margin-top: 4px; color: var(--faint); font: 500 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.panel { padding-top: clamp(20px, 2.6vw, 30px); }
#index .sec-head { margin-bottom: 16px; }

/* ---------- photos ---------- */
.avatar-img { padding: 0; object-fit: cover; object-position: 50% 22%; background: var(--accent-soft); }

/* ---------- profiles tab: HEARTCON scale on top, social cards in two columns ---------- */
.pf-scale-card { padding: 16px 18px 14px; margin-bottom: 20px; }
.pf-scale { margin: 0 0 12px; gap: 8px; }
.pf-scale .hc-step { min-height: 0; padding: 12px 12px 10px; gap: 4px; }
.pf-scale .hc-n { font-size: 15px; }
.pf-scale .hc-name { font-size: 14px; font-weight: 600; }
.pf-count { color: var(--muted); font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .04em; }
.pf-scale .is-on .pf-count { color: rgba(255, 255, 255, .85); }
.pf-scale-card .hc-line b { color: var(--ink); }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pf .hc-stats { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.pf.is-live { box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); border-color: var(--accent-3); }
.hc-follow.is-off { background: var(--surface); border-color: var(--line); color: var(--muted); }
.hc-cover.lvl-1 { background-color: #FFD3E0; } .hc-cover.lvl-2 { background-color: #FFB8C8; }
.hc-cover.lvl-3 { background-color: #F98DB4; } .hc-cover.lvl-4 { background-color: #EE6EA4; }
.hc-cover.lvl-2, .hc-cover.lvl-1 { background-image: none; }
.hc-cover.lvl-2 .hc-tag, .hc-cover.lvl-2 .hc-lvl, .hc-cover.lvl-1 .hc-tag, .hc-cover.lvl-1 .hc-lvl { color: var(--accent-ink); }
.hc-cover.lvl-2 .hc-heart, .hc-cover.lvl-1 .hc-heart { fill: var(--accent-ink); }
.hc-cover.lvl-3, .hc-cover.lvl-4 { background-image: none; }
.photo-credits { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 16px; }

/* ---------- tabs, PizzINT style ---------- */
.tabs { scroll-margin-top: 65px; }
.tab-strip { position: sticky; top: 65px; z-index: 40; background: rgba(250, 250, 250, .94); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tab-bar { position: relative; display: flex; gap: 6px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.tab-bar::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--muted); font: 600 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.tab:hover { border-color: var(--accent-3); color: var(--accent-ink); }
.tab.is-on { background: var(--heart); border-color: var(--heart); color: #fff; box-shadow: 0 8px 18px -10px rgba(216, 76, 138, .9); }
.tab.is-on .live-dot { background: #fff; }
.tab-n { padding: 3px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 10px; letter-spacing: 0; }
.tab.is-on .tab-n { background: rgba(255, 255, 255, .22); color: #fff; }
.panel { display: none; padding-top: clamp(28px, 4vw, 44px); scroll-margin-top: 130px; }
.panel.is-first { display: block; }
.tabs:has(.panel:target) .panel { display: none; }
.tabs .panel:target { display: block; }
html.tabs-js .tabs .panel { display: none; }
html.tabs-js .tabs .panel.is-on { display: block; }
.panel-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--faint); font-size: 12.5px; }

/* index cards */
.pc-chart-head span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 600; }
.pc-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-top: auto; }
.pc-hook { min-height: 0; font-size: 14px; color: var(--muted); }
.pc-since { flex: none; font: 600 30px/1 var(--font-mono); letter-spacing: -.03em; text-align: right; }
.pc-since small { display: block; margin-top: 5px; color: var(--faint); font: 500 9.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.pcard-next { justify-content: center; gap: 12px; background: repeating-linear-gradient(135deg, var(--surface) 0 14px, #FFF6F9 14px 28px);
  border: 1.5px dashed var(--accent-3); text-decoration: none; color: var(--ink); }
.next-h { font: 600 clamp(28px, 2.6vw, 36px)/1.05 var(--font-serif); }
.next-t { color: var(--muted); font-size: 15px; }
.pcard-next .pc-more::after { content: " \2192"; }

/* leaderboard */
.sc-num small { display: block; margin-top: 5px; color: var(--accent-ink); font: 600 9.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.sc-head, .sc-row { grid-template-columns: minmax(0, 210px) minmax(0, 1fr) minmax(0, 1.1fr) 112px; }

/* history */
.hist { padding: 0; list-style: none; border-top: 1px solid var(--border); }
.hist li { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.hist-year { color: var(--heart); font: 600 28px/1 var(--font-serif); }
.hist-main { display: grid; gap: 3px; min-width: 0; }
.hist-who { font-weight: 600; }
.hist-who a { text-decoration-color: var(--accent-3); text-underline-offset: 3px; }
.hist-who span { margin-left: 8px; color: var(--muted); font-size: 13px; font-weight: 400; }
.hist-text { color: var(--muted); font-size: 14px; }
.hist-mv { display: flex; align-items: center; gap: 12px; font: 600 17px/1 var(--font-mono); }
.hist-mv > span { display: flex; flex-direction: column; align-items: flex-end; min-width: 76px; }
.hist-mv small { margin-top: 4px; color: var(--faint); font: 500 9.5px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.hist-arrow { min-width: 0 !important; color: var(--accent-3); }

/* faq + case file */
.faq-in .sec-head { align-self: start; }
.fx-big-meta { text-align: right; }
.chart-card h3 .legend-inline { color: var(--muted); font: 600 12px/1.3 var(--font-mono); letter-spacing: .04em; text-transform: none; }
.prof-hero + .tabs { margin-top: 24px; }
.prof-hero ~ .wrap .prof-nav { margin-top: 36px; }
.prof-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .hh-2, .hh-6, .hh-7, .hh-15 { display: none; }
  .pf-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pf-scale { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .pf-scale .hc-step { padding: 9px 8px; }
  .pf-scale .hc-name { font-size: 12px; }
  .pf-scale .hc-step:not(.is-on) .hc-name { display: block; }
  .pf-count { font-size: 9.5px; }
  .tab-strip { position: static; }
  .tab-bar { gap: 5px; }
  .tab { gap: 6px; padding: 9px 11px; font-size: 11px; letter-spacing: .05em; }
  .tabs, .panel { scroll-margin-top: 110px; }
  .hist li { grid-template-columns: 52px minmax(0, 1fr); }
  .hist-year { font-size: 21px; }
  .hist-mv { grid-column: 2; }
  .hist-mv > span { align-items: flex-start; min-width: 0; }
  .prof-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-big-meta { text-align: left; }
}

/* ================= the fun layer ================= */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo-mark { color: #E8549E; }
.brand:hover .logo-mark { animation: beat .7s ease-in-out; }
@keyframes beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95); } }

/* hero: hearts pop in on load, then float */
.hero-in { z-index: 1; }
html.ld-first .hh { --ld: 1.1s; }
.hero-hearts { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hh { --ld: 0s; position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2);
  opacity: 0; color: #E8549E; overflow: visible;
  animation: hh-pop .8s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d) + var(--ld)) forwards, hh-float var(--f) ease-in-out calc(var(--d) + var(--ld) + .8s) infinite alternate; }
.hh.soft { color: #FFB8C8; }
.hh.pink { color: #FF6B9D; }
.hh.line { color: transparent; stroke: #E8549E; stroke-width: 1.8; }
.hh-1 { --x: 2%; --y: 12%; --s: 26px; --d: 0.05s; --o: 0.36; --f: 6.2s; }
.hh-2 { --x: 3.5%; --y: 62%; --s: 40px; --d: 0.12s; --o: 0.24; --f: 7.4s; }
.hh-3 { --x: 14%; --y: 2%; --s: 18px; --d: 0.2s; --o: 0.32; --f: 5.6s; }
.hh-4 { --x: 27%; --y: 3%; --s: 26px; --d: 0.28s; --o: 0.22; --f: 6.8s; }
.hh-5 { --x: 41%; --y: 1%; --s: 20px; --d: 0.36s; --o: 0.24; --f: 7.9s; }
.hh-6 { --x: 56%; --y: 6%; --s: 30px; --d: 0.44s; --o: 0.28; --f: 5.3s; }
.hh-7 { --x: 60%; --y: 68%; --s: 22px; --d: 0.52s; --o: 0.32; --f: 6.6s; }
.hh-8 { --x: 66%; --y: 2%; --s: 18px; --d: 0.6s; --o: 0.28; --f: 8.1s; }
.hh-9 { --x: 71%; --y: 74%; --s: 34px; --d: 0.68s; --o: 0.34; --f: 5.9s; }
.hh-10 { --x: 77%; --y: 4%; --s: 28px; --d: 0.76s; --o: 0.36; --f: 7.1s; }
.hh-11 { --x: 82%; --y: 70%; --s: 20px; --d: 0.84s; --o: 0.36; --f: 6.4s; }
.hh-12 { --x: 88%; --y: 2%; --s: 38px; --d: 0.92s; --o: 0.36; --f: 5.7s; }
.hh-13 { --x: 93%; --y: 64%; --s: 46px; --d: 1.0s; --o: 0.36; --f: 7.6s; }
.hh-14 { --x: 97.5%; --y: 24%; --s: 22px; --d: 1.08s; --o: 0.36; --f: 5.5s; }
.hh-15 { --x: 61%; --y: 93%; --s: 16px; --d: 1.16s; --o: 0.24; --f: 6.1s; }
.hh-16 { --x: 99%; --y: 76%; --s: 16px; --d: 1.24s; --o: 0.34; --f: 6.9s; }
@keyframes hh-pop {
  0% { opacity: 0; transform: translateY(40px) scale(0) rotate(-35deg); }
  65% { opacity: var(--o); transform: translateY(-6px) scale(1.3) rotate(10deg); }
  100% { opacity: var(--o); transform: translateY(0) scale(1) rotate(0deg); }
}
@keyframes hh-float {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-14px) rotate(9deg); }
}
.shine { background: linear-gradient(90deg, var(--heart), #FF6B9D 30%, #2FBF71 50%, #FF6B9D 70%, var(--heart)); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 3.5s linear infinite; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.hero-mark { display: inline-block; width: .82em; height: .82em; margin-left: .14em; vertical-align: -.08em; color: #E8549E;
  animation: bob 1.5s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg) scale(1); } 50% { transform: translateY(-5px) rotate(8deg) scale(1.12); } }
.hero-stats div { transition: transform .2s; }
.hero-stats div:hover { transform: translateY(-3px); }

/* bouncy bits */
.tab { transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), background .15s, color .15s, border-color .15s; }
.tab:hover { transform: translateY(-2px) rotate(-1.5deg); }
.tab.is-on { animation: tab-pop .35s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes tab-pop { from { transform: scale(.9); } to { transform: scale(1); } }
.pcard { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s, border-color .15s; }
.pcard:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: 0 18px 36px -20px rgba(216, 76, 138, .55); }
.pcard:hover .avatar { animation: beat .7s ease-in-out; }
.pcard-next { animation: next-glow 2.4s ease-in-out infinite; }
@keyframes next-glow { 50% { border-color: var(--heart); box-shadow: 0 0 0 6px var(--accent-soft); } }
.hc-social { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.hc-social:hover { transform: translateY(-4px); }
.hc-social:hover .avatar-hc { animation: beat .7s ease-in-out; }
.sc-row { transition: background .15s; }
.sc-row:hover { background: #FFF6F9; }
.broken { width: 26px; height: 26px; color: var(--accent); }
.sc-row:hover .broken { animation: beat .7s ease-in-out; }
.burst-heart { position: fixed; z-index: 200; width: 18px; height: 18px; pointer-events: none; }

/* chart pins: the logo marks the last close before the news */
.fx-mark { color: #D84C8A; stroke: #fff; stroke-width: 2.4; paint-order: stroke; }

/* loading screen (first page of a visit): heart pops in, a white cut runs up through it, the halves split, fade out */
.loader { display: none; }
html.ld-first .loader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: #FFF6F9;
  animation: ld-out .35s ease-in 1.15s forwards; }
.ld-mark { width: 120px; height: 120px; overflow: visible; }
.ld-whole, .ld-half path { fill: #E8549E; }
.ld-whole, .ld-half { transform-box: view-box; transform-origin: 16px 17px; }
.ld-whole { animation: ld-pop .4s cubic-bezier(.34, 1.56, .64, 1) both, ld-gone 0s linear .85s forwards; }
.ld-half { opacity: 0; animation: ld-show 0s linear .85s forwards; }
.ld-ha { animation: ld-show 0s linear .85s forwards, ld-split-a .3s cubic-bezier(.2, .8, .3, 1) .85s forwards; }
.ld-hb { animation: ld-show 0s linear .85s forwards, ld-split-b .3s cubic-bezier(.2, .8, .3, 1) .85s forwards; }
.ld-line { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: ld-draw .45s cubic-bezier(.5, 0, .3, 1) .4s forwards; }
@keyframes ld-pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ld-draw { to { stroke-dashoffset: 0; } }
@keyframes ld-gone { to { opacity: 0; } }
@keyframes ld-show { to { opacity: 1; } }
@keyframes ld-split-a { to { transform: translate(-1.2px, -1px) rotate(-4deg); } }
@keyframes ld-split-b { to { transform: translate(1.2px, 1px) rotate(3deg); } }
@keyframes ld-out { to { opacity: 0; visibility: hidden; } }

/* charts sweep in left to right (fx.js adds .fx-js and .is-in) */
.reveal { --rv: var(--surface); }
.pc-chart .reveal { --rv: var(--bg); }
html.fx-js .reveal { position: relative; overflow: hidden; }
html.fx-js .reveal::after { content: ""; position: absolute; inset: 0; background: var(--rv); box-shadow: -6px 0 14px -4px rgba(232, 84, 158, .55);
  border-left: 2px solid var(--accent); pointer-events: none; }
html.fx-js .reveal.is-in::after { animation: sweep 1.5s cubic-bezier(.55, .05, .3, 1) forwards; }
html.fx-js .reveal-slow.is-in::after { animation-duration: 2.6s; }
@keyframes sweep { to { transform: translateX(102%); } }
.sc-row.is-live .reveal { --rv: #FDEFF5; }

/* profile charts: green above the pre-news close, red below; the green part gets the emphasis */
.fx-g1 { fill: #E6F8EE; stroke: #E6F8EE; } .fx-g2 { fill: #CFF1DD; stroke: #CFF1DD; }
.fx-g3 { fill: #B4E8C9; stroke: #B4E8C9; } .fx-g4 { fill: #96DCB3; stroke: #96DCB3; }
.fx-r1 { fill: #FFEDEF; stroke: #FFEDEF; } .fx-r2 { fill: #FDDDE2; stroke: #FDDDE2; }
.fx-r3 { fill: #F9CAD2; stroke: #F9CAD2; } .fx-r4 { fill: #F4B6C1; stroke: #F4B6C1; }
.fx-g1, .fx-g2, .fx-g3, .fx-g4, .fx-r1, .fx-r2, .fx-r3, .fx-r4 { stroke-width: .7; stroke-linejoin: round; }
.fx-edge.gr { stroke: #17A05A; }
.fx-big .fx-edge-pre { stroke-width: 2.2; }
.fx-edge.rd { stroke: #E0475E; }
.fx-cap.gr { fill: #3DBB78; } .fx-cap.rd { fill: #E37A8A; }
.pulse.gr, .dot-last.gr { fill: #17A05A; } .pulse.rd, .dot-last.rd { fill: #E0475E; }
.area-g { fill: rgba(47, 191, 113, .2); }
.area-r { fill: rgba(224, 71, 94, .12); }
.ln-g { stroke: #17A05A; }
.ln-r { stroke: #E0475E; }
.ln-q { stroke: #B9AFB4; }
.ud-key { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ud-key i { display: inline-block; width: 18px; height: 4px; margin-left: 6px; border-radius: 2px; }
.ud-key i:first-child { margin-left: 0; }
.ud-key .k-q { background: #B9AFB4; } .ud-key .k-g { background: #17A05A; } .ud-key .k-r { background: #E0475E; }
.fx-big-num.up { color: #17A05A; }

/* ---------- history: animated timeline ---------- */
.hx { position: relative; overflow-x: clip; margin: 0; padding: 6px 0 0; list-style: none; }
.hx::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 3px;
  background: linear-gradient(var(--heart), var(--accent-3) 60%, var(--accent-soft)); transform-origin: 50% 0; }
.hx-item { position: relative; display: flex; padding: 0 0 22px; }
.hx-l { justify-content: flex-start; padding-right: calc(50% + 34px); }
.hx-r { justify-content: flex-end; padding-left: calc(50% + 34px); }
.hx-card { width: 100%; padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.hx-card > *, .hx-card > .hist-mv { grid-column: 1 / -1; }
.hx-item + .hx-item { margin-top: -64px; }
.hx-node { position: absolute; left: 50%; top: 18px; display: grid; place-items: center; width: 40px; height: 40px; margin-left: -20px;
  border-radius: 50%; background: var(--surface); border: 2px solid var(--accent-3); }
.hx-node .broken { width: 24px; height: 24px; color: var(--heart); }
.hx-item::after { content: ""; position: absolute; top: 37px; width: 16px; height: 2px; background: var(--accent-3); }
.hx-l::after { right: calc(50% + 18px); }
.hx-r::after { left: calc(50% + 18px); }
.hx-head { display: flex; align-items: center; gap: 12px; }
.hx-year { color: var(--heart); font: 600 30px/1 var(--font-serif); }
.hx-id { min-width: 0; flex: 1; }
.hx-id .hist-who { margin: 0; }
.hx-co { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.hx-card .hist-text { margin: 0; }
.hx-item.is-live .hx-card { border-color: var(--accent-3); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.hx-item.is-live .hx-node { border-color: var(--heart); animation: next-glow 2.4s ease-in-out infinite; }
.hx-card { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.hx-card:hover { transform: translateY(-4px) rotate(-.4deg); }
.hx-item:hover .hx-node .broken { animation: beat .7s ease-in-out; }
/* motion (fx.js adds .is-in as each item scrolls or tabs into view) */
html.fx-js .hx::before { transform: scaleY(0); transition: transform 1.8s cubic-bezier(.4, 0, .2, 1); }
html.fx-js .hx.is-in::before { transform: scaleY(1); }
html.fx-js .pop-in .hx-card { opacity: 0; transition: opacity .5s ease, transform .6s cubic-bezier(.34, 1.56, .64, 1); }
html.fx-js .hx-l.pop-in .hx-card { transform: translateX(-46px) rotate(-2deg); }
html.fx-js .hx-r.pop-in .hx-card { transform: translateX(46px) rotate(2deg); }
html.fx-js .pop-in .hx-node { transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) .15s; }
html.fx-js .hx-item.pop-in.is-in .hx-card { opacity: 1; transform: none; }
html.fx-js .pop-in.is-in .hx-node { transform: scale(1); }
html.fx-js .hx-item.pop-in.is-in .hx-card:hover { transform: translateY(-4px) rotate(-.4deg); }
@media (max-width: 860px) {
  .hx::before { left: 20px; }
  .hx-l, .hx-r { padding: 0 0 18px 56px; }
  .hx-item + .hx-item { margin-top: 0; }
  .hx-node { left: 20px; }
  .hx-l::after, .hx-r::after { left: 38px; right: auto; }
  html.fx-js .hx-l.pop-in .hx-card { transform: translateX(40px) rotate(2deg); }
}
@media (max-width: 640px) { .hx-year { font-size: 24px; } }

/* ---------- header: logo, CA, X ---------- */
.hd-end { display: flex; align-items: center; gap: 10px; margin-left: auto; min-width: 0; }
.ca { display: flex; align-items: center; gap: 8px; min-width: 0; height: 38px; padding: 0 6px 0 12px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface-2); font: 500 12px/1 var(--font-mono); }
.ca.is-soon { padding-right: 14px; border-style: dashed; border-color: var(--accent-3); background: #FFF6F9; }
.ca-l { color: var(--accent-ink); font-weight: 600; letter-spacing: .12em; }
.ca-v { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.ca.is-soon .ca-v { color: var(--muted); letter-spacing: .04em; }
.ca-copy { height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--heart); color: #fff; font: 600 11px/1 var(--font-mono);
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.ca-copy:hover { background: var(--accent-ink); }
.ca-copy.is-done { background: #2F7D52; }
.ca-copy[hidden] { display: none; }
.ca.is-new { animation: ca-new 1.2s ease 2; }
@keyframes ca-new { 50% { box-shadow: 0 0 0 6px var(--accent-soft); border-color: var(--heart); } }
.x-link { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--heart); border: 1px solid var(--accent-3);
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), background .15s; }
.x-link:hover { background: var(--heart); color: #fff; transform: rotate(-8deg) scale(1.08); }
.x-link.is-soon { opacity: .45; }
.x-ico { width: 16px; height: 16px; fill: currentColor; }

/* ---------- hero right column: small live profile + small stats ---------- */
.hero-side { display: grid; gap: 10px; min-width: 0; }
.hp { display: block; max-height: 160px; padding: 0; overflow: hidden; color: inherit; text-decoration: none;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s, opacity .3s ease, max-height .45s ease .1s, margin .45s ease .1s, border-width 0s .55s, visibility 0s 0s; }
/* on the Profiles tab the same card is right below, so the hero copy fades and folds away */
html[data-tab="profiles"] .hp, body:has(#profiles:target) .hp { max-height: 0; margin-bottom: -10px; border-width: 0; opacity: 0;
  transform: translateY(-10px) scale(.94); visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, transform .3s ease, max-height .45s ease .1s, margin .45s ease .1s, border-width 0s .55s, visibility 0s .55s; }
.hp:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: 0 16px 30px -20px rgba(216, 76, 138, .6); }
.hp-cover { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 30px; padding: 0 12px;
  background: linear-gradient(120deg, var(--accent-2), var(--heart)); color: #fff; font: 600 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.hp-tag, .hp-lvl { display: inline-flex; align-items: center; gap: 6px; }
.hp-tag .heart, .hp-tag svg { width: 11px; height: 11px; fill: #fff; }
.hp-lvl { padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.hp-lvl b { font-size: 11px; }
.hp-body { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.avatar-hp { width: 46px; height: 46px; margin-top: -24px; border: 3px solid var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.hp-id { display: grid; gap: 3px; min-width: 0; flex: 1; }
.hp-name { font: 600 15px/1.15 var(--font-sans, inherit); }
.hp-rel { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-rel svg { flex: none; width: 12px; height: 12px; fill: var(--heart); }
.hp-rel b { color: var(--heart); }
.hp-rs { display: none; }
.hp .hc-follow { flex: none; padding: 6px 12px; font-size: 12px; }
.hero-side .hero-stats div { padding: 8px 10px; }
.hero-side .hero-stats dt { font-size: 9.5px; }
.hero-side .hero-stats dd { margin-top: 4px; font-size: 16px; }
.hero-side .hero-stats dd small { margin-top: 3px; font-size: 8.5px; }
@media (max-width: 860px) { .hero-side { max-width: 520px; } }
@media (max-width: 520px) {
  .cd-main { grid-template-columns: 1fr; }
  .cd-t { justify-content: flex-start; }
  .ca-l { display: none; }
  .ca { height: 34px; padding-left: 10px; font-size: 11px; }
  .ca.is-soon .ca-v::before { content: "CA · "; color: var(--accent-ink); font-weight: 600; }
  .x-link { width: 34px; height: 34px; }
  .hp-rl { display: none; }
  .hp-rs { display: inline; }
  .hd-end { gap: 6px; }
}

/* ---------- countdown to the next big moment (hero) ---------- */
.cd { display: flex; align-items: stretch; overflow: hidden; border: 1px solid var(--accent-3); border-radius: 12px; background: #FFF6F9; }
.cd-main { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; flex: 1; min-width: 0; padding: 8px 12px; color: inherit; text-decoration: none; }
.cd-l { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font: 600 10px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.cd-t { display: flex; gap: 8px; justify-content: flex-end; font: 500 10px/1 var(--font-mono); color: var(--muted); }
.cd-u b { margin-right: 1px; color: var(--ink); font: 600 17px/1 var(--font-mono); letter-spacing: -.02em; }
.cd-u:last-child b { color: var(--heart); }
.cd-w { grid-column: 1 / -1; color: var(--faint); font: 500 9.5px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.cd-done { display: none; justify-self: end; color: #2F7D52; font: 600 15px/1 var(--font-mono); }
.cd.is-done .cd-t { display: none; } .cd.is-done .cd-done { display: block; }
html[data-tab="profiles"] .cd { margin-top: 0; }

/* ---------- board background: a faint "only up" line that climbs as you scroll ---------- */
.tabs-board { position: relative; isolation: isolate; }
/* board cards are a little see-through, so the line glows behind them */
.tabs-board .pcard, .tabs-board .card { background-color: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.tabs-board .pc-chart { background-color: rgba(250, 250, 250, .6); }
.tabs-board .pcard-next { background-color: rgba(255, 255, 255, .6); }
.bgl { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bgl-stick { position: sticky; top: 0; height: 100vh; }
.bgl-svg { position: absolute; inset: 8vh 0 0; width: 100%; height: 92vh; transform: translateY(calc(var(--bgp, 1) * -6vh)); }
.bgl-area { fill: url(#bgl-g); }
.bgl-line { fill: none; stroke: #E8549E; stroke-opacity: .5; stroke-width: 5; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0; }
.bgl-clip { transform-origin: 0 0; }
.bgl-tip { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -26px 0 0 -22px; color: #E8549E; opacity: 0; }
html.fx-js .bgl-line { stroke-dashoffset: calc(1 - var(--bgd, 0)); }
html.fx-js .bgl-clip { transform: scaleX(var(--bgd, 0)); }
html.fx-js .bgl-tip { opacity: .9; filter: drop-shadow(0 4px 10px rgba(216, 76, 138, .35)); }

/* ---------- CEO pages: "Share this case" ---------- */
.share { position: relative; margin-top: 16px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--heart); color: #fff;
  font: 600 14px/1 var(--font-sans); cursor: pointer; list-style: none; text-decoration: none; box-shadow: 0 8px 18px -10px rgba(216, 76, 138, .8);
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), background .15s; }
.share-btn:hover { background: var(--accent-ink); transform: translateY(-2px) rotate(-1deg); }
.share-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.share-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.share-dl { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font: 600 14px/1 var(--font-sans); text-decoration: none; background: var(--heart); color: #fff; } .share-dl:hover { background: var(--accent-ink); }
.share-dl svg, .hc-share svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- share window (share.js): preview the case card, or make your own PnL card ---------- */
html.sm-open { overflow: hidden; }
.sm { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(250, 232, 240, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: sm-fade .2s ease; }
.sm[hidden] { display: none; }
@keyframes sm-fade { from { opacity: 0; } }
.sm-panel { width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 18px; display: grid; gap: 14px;
  box-shadow: 0 30px 70px -30px rgba(216, 76, 138, .55); animation: sm-pop .3s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes sm-pop { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.sm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sm-title { margin: 0; font: 600 26px/1.1 var(--font-serif); }
.sm-x { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.sm-x:hover { color: var(--accent-ink); border-color: var(--accent-3); }
.sm-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--accent-soft); }
.sm-tab { flex: 1; padding: 9px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--accent-ink); font: 600 13px/1 var(--font-sans); cursor: pointer; }
.sm-tab.is-on { background: var(--surface); color: var(--heart); box-shadow: 0 2px 8px -4px rgba(216, 76, 138, .6); }
.sm-case, .sm-mine { display: grid; gap: 12px; }
.sm-case[hidden], .sm-mine[hidden] { display: none; }
.sm-img, .sm-canvas { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 10px; background: #FFF8FA; }
.sm-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
button.share-dl { border: 0; cursor: pointer; }
button.share-btn { border: 0; }
button.hc-share { cursor: pointer; font-family: inherit; }
html:not(.js) [data-share] { display: none; }
button.share-dl:disabled { opacity: .45; cursor: not-allowed; }
.sm-note { color: var(--faint); font-size: 12px; }
.sm-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sm-form label { display: grid; gap: 5px; color: var(--muted); font: 600 11px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.sm-form label i { color: var(--faint); font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; }
.sm-form input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  color: var(--ink); font: 500 15px/1.2 var(--font-sans); }
.sm-form input:focus { outline: 2px solid var(--accent-3); outline-offset: 0; border-color: var(--accent-3); }
.sm-pnl { margin: 0; color: var(--muted); font: 500 14px/1.3 var(--font-mono); }
.sm-pnl b { font-weight: 600; } .sm-pnl .up { color: #2F7D52; } .sm-pnl .dn { color: #B83343; }
@media (max-width: 520px) { .sm { padding: 10px; } .sm-panel { padding: 14px; } .sm-form { grid-template-columns: 1fr 1fr; gap: 8px; } }

/* the live tab sits at the far right of the board tab bar */
.tab[href="#nvidia"] { margin-left: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-grid { grid-template-columns: 1fr; }
  .hero-in { grid-template-columns: 1fr; }
  .prof-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-brand { grid-column: 1 / -1; }
  .data .hide-sm { display: none; }
  .sc-head { display: none; }
  .sc-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who num" "rel rel" "bar bar"; gap: 8px 12px; }
  .sc-who { grid-area: who; } .sc-rel { grid-area: rel; } .sc-bar { grid-area: bar; } .sc-num { grid-area: num; }
}
@media (max-width: 720px) {
  .hd-in { min-height: 56px; gap: 10px; }
  .who thead { display: none; }
  .who, .who tbody, .who tr, .who th, .who td { display: block; width: 100%; }
  .who tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .who tbody tr:last-child { border-bottom: 0; }
  .who th, .who td { padding: 4px 0; border: 0; }
  .who td::before { content: attr(data-label); display: block; color: var(--faint); font: 500 10px/1.5 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
  .data .hide-sm { display: none; }
  .data th, .data td { padding: 12px; }
  .data tbody th { width: 100%; max-width: 0; white-space: normal; }
  .rel-row { grid-template-columns: 1fr; gap: 2px; padding: 10px 0 4px; }
  .rel-axis { padding: 0; }
  .rel-axis .rel-who { display: none; }
  .tl li { grid-template-columns: 1fr; }
  .defs div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 640px) {
  .pgrid { grid-template-columns: 1fr; }
  .prof-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hc-step { min-height: 0; padding: 9px 7px; }
  .hc-step:not(.is-on) .hc-name { display: none; }
  .hero-stats dd { font-size: 19px; }
  .sc-card { padding-inline: 14px; }
  .sc-row.is-live { margin-inline: -14px; padding-inline: 14px; }
  .fx-big { padding-inline: 14px; }
  .prof-id { flex-wrap: wrap; gap: 14px; }
  .prof-id .pill { margin-left: 0; }
  .chart-svg { height: 230px; }
  .chart-lg .chart-svg { height: 250px; }
  .hc-name { font-size: 11px; }
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hh { opacity: var(--o); }
  .loader { display: none; }
  .shine { color: var(--heart); background: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 380px) { .tab { padding: 8px 9px; font-size: 10.5px; letter-spacing: .06em; } .tab-n { margin-left: 4px; } }
