/* =====================================================================
   index.html — consolidated stylesheet.
   Load order: tokens.css → signal.css → career-options.css → this file.
   ===================================================================== */

/* ── Fonts ── */
@font-face {
  font-family: "Polymath";
  src: url("../assets/fonts/polymath-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Polymath";
  src: url("../assets/fonts/polymath-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Polymath";
  src: url("../assets/fonts/polymath-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

:root {
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: "Polymath", -apple-system, BlinkMacSystemFont, sans-serif;
}

body { font-family: var(--font-body); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

:root[data-font="system"] {
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =====================================================================
   Actor / account header
   ===================================================================== */

.actor-name { font-size: 13.5px; font-weight: 600; letter-spacing: -0.006em; flex-shrink: 0; max-width: none; white-space: nowrap; }

/* =====================================================================
   Signal pill styles
   ===================================================================== */

[data-sigstyle="1"] .sig { color: var(--fg-2); background: var(--bg-well); border-color: var(--line); }
[data-sigstyle="1"] .sig::before { background: var(--fg-3); }

[data-sigstyle="2"] .sig {
  color: var(--sig-hue, var(--fg-2));
  background: color-mix(in srgb, var(--sig-hue, var(--fg-2)) 10%, transparent);
  border-color: color-mix(in srgb, var(--sig-hue, var(--fg-2)) 24%, transparent);
}
[data-sigstyle="2"] .sig::before { background: var(--sig-hue); }

[data-sigstyle="3"] .sig {
  color: var(--sig-hue);
  background: transparent;
  border-color: color-mix(in srgb, var(--sig-hue) 52%, transparent);
}
[data-sigstyle="3"] .sig::before { background: var(--sig-hue); }

[data-sigstyle="4"] .sig {
  color: var(--sig-hue);
  background: color-mix(in srgb, var(--sig-hue) 16%, transparent);
  border-color: transparent;
  font-weight: 600;
}
[data-sigstyle="4"] .sig::before { width: 5px; height: 5px; background: var(--sig-hue); }

[data-sigstyle="5"] .sig {
  color: #12161f;
  background: var(--sig-hue);
  border-color: transparent;
  font-weight: 600;
}
[data-sigstyle="5"] .sig::before { display: none; }
:root[data-theme="light"][data-sigstyle="5"] .sig { color: #fff; background: color-mix(in srgb, var(--sig-hue) 92%, #000); }

/* =====================================================================
   Angle label styles
   ===================================================================== */

.angle-label {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--fg-3);
}
.angle-label .wl-bar { display: none; }
.angle-label .wl-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.angle-label .wl-ico { display: none; color: var(--accent-text); flex-shrink: 0; }
.angle-label .wl-txt { display: inline-block; }

[data-wlstyle="2"] .angle-label { text-transform: none; color: var(--accent-text); font-size: 12px; font-weight: 600; letter-spacing: 0; }
[data-wlstyle="2"] .angle-label .wl-dot { display: none; }
[data-wlstyle="2"] .angle-label .wl-ico { display: inline-flex; }

[data-wlstyle="3"] .angle-label { text-transform: none; color: var(--fg-1); font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
[data-wlstyle="3"] .angle-label .wl-dot { display: none; }

[data-wlstyle="4"] .angle-label { text-transform: uppercase; color: var(--accent-text); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; }
[data-wlstyle="4"] .angle-label .wl-dot { display: none; }
[data-wlstyle="4"] .angle-label .wl-bar { display: none; }

[data-wlstyle="5"] .angle-label { text-transform: none; color: var(--fg-2); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
[data-wlstyle="5"] .angle-label .wl-dot { display: none; }
[data-wlstyle="5"] .angle-label::after { content: ""; flex: 1; height: 1px; background: var(--line); margin-left: 4px; }

/* =====================================================================
   "Where fits" section
   ===================================================================== */

.angle .angle-label + p + .angle-label { margin-top: 14px; }
.fit-body {
  margin: 0;
  font-size: var(--t-body); line-height: var(--t-body-line);
  color: var(--fg-2); text-wrap: pretty;
}
.fit-body .fit-emoji { margin-right: 5px; }
.fit-body .fit-name { color: var(--accent-text); font-weight: 500; }

/* Type pill */
.sig-type {
  text-transform: uppercase; font-weight: 600; letter-spacing: 0.05em; font-size: 10px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sig-hue) 34%, transparent);
}
[data-sigstyle="1"] .sig-type { color: var(--sig-hue); border-color: transparent; }
[data-sigstyle="1"] .sig-type::before { background: var(--sig-hue); }
[data-sigstyle="5"] .sig-type { box-shadow: none; }

/* Anchor date + job summary */
.anchor-meta { font-size: 12.5px; color: var(--fg-3); margin-top: 8px; font-variant-numeric: tabular-nums; }
.job-summary { font-size: 13px; color: var(--fg-2); line-height: 1.5; margin-top: 6px; text-wrap: pretty; }
.hl-date { color: var(--fg-3); font-weight: 500; font-size: 0.72em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Career storytelling */
.cstory {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: var(--sp-3);
  border-left: 3px solid color-mix(in srgb, var(--dot-career) 55%, transparent);
  padding-left: 15px;
}
.cstory .opt-av, .cstory .opt-av-fb { width: 48px; height: 48px; font-size: 16px; }
.cstory-main { flex: 1; min-width: 0; }
.cstory-name { font-size: 14.5px; font-weight: 650; color: var(--fg-1); letter-spacing: -0.012em; line-height: 1.3; }
.cstory-move { font-size: 13.5px; line-height: 1.4; margin-top: 1px; display: flex; align-items: baseline; flex-wrap: wrap; }
.cstory-move .mv { color: var(--fg-2); }
.cstory-move .mv-arrow { color: var(--dot-career); align-self: center; margin: 0 6px; }
.cstory-move .to { color: var(--fg-1); font-weight: 600; }
.cstory-prev { font-size: 12.5px; line-height: 1.4; color: var(--fg-3); margin-top: 2px; text-wrap: pretty; }

/* =====================================================================
   Stakeholders section
   ===================================================================== */

.stakes { margin-top: var(--sp-4); }
.stake-list { display: flex; flex-direction: column; gap: 2px; margin-top: 9px; }
.stake {
  display: flex; align-items: center; gap: 11px;
  padding: 7px 8px; border-radius: 10px; flex-wrap: wrap;
}
.stake:hover { background: var(--bg-well); }
.stake .opt-av, .stake .opt-av-fb { width: 34px; height: 34px; font-size: 12px; }
.stake-info { flex: 1; min-width: 130px; }
.stake-name { font-size: 13.5px; font-weight: 600; color: var(--fg-1); }
.stake-role { font-size: 12px; color: var(--fg-3); }
.stake-cta { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.cta.sm { height: 28px; font-size: 12px; padding: 0 12px; }
.cta.sm svg { width: 12px; height: 12px; }

.career-act { margin-top: var(--sp-4); }

.fits-sec { margin-top: var(--sp-4); }
.fits-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.fits-toggle .angle-label { margin-bottom: 0; }
.fits-chev { color: var(--fg-3); margin-left: 6px; transition: transform .15s ease; flex-shrink: 0; }
.fits-chev.open { transform: rotate(180deg); }
.fits-sec .fit-body { margin-top: 10px; }

/* Locked: no dots on pills, type pill soft-filled */
[data-sigstyle] .sig::before { display: none; }
[data-sigstyle] .sig-type {
  color: var(--sig-hue);
  background: color-mix(in srgb, var(--sig-hue) 16%, transparent);
  border-color: transparent;
  box-shadow: none;
}
:root[data-theme="light"][data-sigstyle] .sig-type { color: var(--sig-hue); }

.anchor-meta { margin-top: 5px; }

[data-wlstyle] .angle-label {
  text-transform: uppercase; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
}
[data-wlstyle] .angle-label .wl-dot,
[data-wlstyle] .angle-label .wl-ico,
[data-wlstyle] .angle-label .wl-bar { display: none; }
[data-wlstyle] .angle-label::after { display: none; }
[data-wlstyle="1"] .angle-label { color: var(--accent-text); }
[data-wlstyle="2"] .angle-label { color: color-mix(in srgb, var(--accent-text) 55%, var(--fg-3)); }
[data-wlstyle="3"] .angle-label { color: var(--accent); }

/* Signal dot colors */
:root { --dot-news: #bc7e66; --dot-job: #bc9bd2; }
:root[data-theme="light"] { --dot-news: #bc7e66; --dot-job: #bc9bd2; }

/* Career CTA placement variants */
.cstory.cb-inside { display: block; }
.cstory.cb-inside .cstory-row { display: flex; gap: 12px; align-items: flex-start; }
.cstory.plain { margin-top: 0; border-left: 0; padding-left: 0; }
.career-inset { background: var(--bg-well); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 18px; }
.act.cb-under { margin-top: 12px; padding-top: 0; border-top: 0; }
.act.cb-flush { margin-top: 12px; padding-top: 0; border-top: 0; }
.act.career-act, .act.cb-under, .act.cb-flush { justify-content: flex-end; }

.career-row { margin-top: 0; }

.cn-narrative { font-size: var(--t-anchor, 16px); line-height: 1.42; color: var(--fg-3); text-wrap: pretty; letter-spacing: -0.006em; }
.cn-narrative .cn-move { color: var(--fg-2); font-weight: 500; }
.cn-narrative .cn-arrow { color: var(--dot-career); vertical-align: -3px; margin: 0 7px; }
.cn-narrative .cn-role { color: var(--fg-1); font-weight: 650; }
.cn-narrative .cn-prev { color: var(--fg-3); font-weight: 400; }

.cn-spot { margin-top: 18px; border-left: 3px solid var(--dot-career); padding-left: 15px; }
.cn-spot + .career-row { margin-top: 12px; }
.cn-spot.cn-with-row .career-row.flush { margin-top: 12px; }

.cn-prevline { font-size: 12.5px; color: var(--fg-3); margin-top: 5px; line-height: 1.45; text-wrap: pretty; }

.opt-av.big, .opt-av-fb.big { width: 52px; height: 52px; font-size: 18px; }
.cn-lg .cn-lg-row { display: flex; align-items: center; gap: 14px; }
.cn-lg .cn-lg-main { flex: 1; min-width: 0; }
.cn-lg .cn-lg-name { font-size: 15px; font-weight: 650; color: var(--fg-1); letter-spacing: -0.012em; margin-bottom: 3px; }
.cn-lg.cn-spot { padding-left: 15px; }
.cn-lg.cn-plain { margin-top: 18px; }
.cn-lg .stake-cta { align-self: center; flex-shrink: 0; }
.cn-lg .cn-narrative { font-size: 13.5px; line-height: 1.45; }

.nv, .jv, .cstory { margin-top: 18px; }

/* =====================================================================
   Stakeholder CTA variants
   ===================================================================== */

.icobtn {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent; color: var(--fg-2);
  display: grid; place-items: center; flex-shrink: 0;
}
.icobtn:hover { background: var(--bg-well); color: var(--fg-1); border-color: var(--line-strong); }
.icobtn.dr:hover { color: var(--accent-text); border-color: var(--accent-line); }
.icobtn svg { width: 14px; height: 14px; }

.lnk { font-size: 12.5px; font-weight: 600; color: var(--fg-2); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }
.lnk:hover { color: var(--accent-text); }
.lnk + .lnk { margin-left: 16px; }

.cta.ghost.sm { background: transparent; color: var(--fg-1); border: 1px solid var(--line-strong); }
.cta.ghost.sm:hover { background: var(--bg-well); filter: none; }
.cta.ghost.sm svg { opacity: .7; }

:root[data-palette="new"] .cta.dr.sm {
  background: transparent;
  color: var(--accent-text);
  border-color: var(--line-strong);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
:root[data-palette="new"] .cta.dr.sm:hover {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  filter: none;
}
:root[data-palette="new"] .cta.dr.sm svg {
  opacity: 1;
  color: var(--accent-text);
  transition: color 0.15s ease;
}

.cta.tint.sm { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; box-shadow: none; }
.cta.tint.sm:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); filter: none; }
.cta.tint.sm svg { opacity: 1; }

.cta.ntint.sm { background: var(--bg-accent); color: var(--fg-1); border-color: transparent; box-shadow: none; }
.cta.ntint.sm:hover { background: color-mix(in srgb, var(--fg-2) 18%, var(--bg-accent)); filter: none; }
.cta.ntint.sm svg { opacity: .7; }

.cta.rv1.sm { background: var(--accent); color: #fff; border-color: transparent; }
.cta.rv1.sm:hover { filter: brightness(1.07); }
.cta.rv2.sm { background: color-mix(in srgb, var(--accent) 82%, var(--bg-card)); color: #fff; border-color: transparent; }
.cta.rv2.sm:hover { filter: brightness(1.06); }
.cta.rv3.sm { background: color-mix(in srgb, var(--accent) 62%, var(--bg-card)); color: #fff; border-color: transparent; }
.cta.rv3.sm:hover { filter: brightness(1.05); }
.cta.rv4.sm { background: color-mix(in srgb, var(--accent) 42%, var(--bg-card)); color: var(--accent-text); border-color: transparent; }
.cta.rv4.sm:hover { background: color-mix(in srgb, var(--accent) 52%, var(--bg-card)); filter: none; }
.cta.rv5.sm { background: color-mix(in srgb, var(--accent) 28%, var(--bg-card)); color: var(--accent-text); border-color: transparent; }
.cta.rv5.sm:hover { background: color-mix(in srgb, var(--accent) 38%, var(--bg-card)); filter: none; }
.cta.rv2.sm svg, .cta.rv3.sm svg { opacity: .85; }
.cta.rv4.sm svg, .cta.rv5.sm svg { opacity: 1; }

.cta.strong.sm { background: color-mix(in srgb, var(--accent) 90%, #000); color: #fff; border-color: transparent; }
.cta.strong.sm:hover { filter: brightness(1.07); }
.cta.strong.sm svg { opacity: .85; }

.stake.reveal .stake-cta { opacity: 0; transition: opacity .12s ease; }
.stake.reveal:hover .stake-cta, .stake.reveal:focus-within .stake-cta { opacity: 1; }

.stake-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.stake-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px 4px 4px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: transparent;
  cursor: pointer; font-size: 12.5px; color: var(--fg-1); font-family: inherit;
}
.stake-chip:hover { border-color: var(--line-strong); }
.stake-chip.on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }
.stake-chip .opt-av, .stake-chip .opt-av-fb { width: 22px; height: 22px; font-size: 9px; }
.stake-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.stake-bar .who { font-size: 12.5px; color: var(--fg-2); flex: 1; min-width: 140px; }
.stake-bar .who strong { color: var(--fg-1); font-weight: 600; }

.stake-avs { display: flex; gap: 8px; margin-top: 10px; }
.stake-avs .av-btn { border: 0; background: transparent; padding: 0; border-radius: var(--r-pill); cursor: pointer; }
.stake-avs .av-btn .opt-av, .stake-avs .av-btn .opt-av-fb { width: 36px; height: 36px; font-size: 12px; }
.stake-avs .av-btn.on .opt-av, .stake-avs .av-btn.on .opt-av-fb { box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px var(--bg-card); }

.stake-acc { margin-top: 9px; display: flex; flex-direction: column; gap: 1px; }
.acc-row { display: flex; align-items: center; gap: 11px; padding: 7px 8px; border-radius: 10px; cursor: pointer; }
.acc-row:hover { background: var(--bg-well); }
.acc-row .opt-av, .acc-row .opt-av-fb { width: 32px; height: 32px; font-size: 11px; }
.acc-chev { margin-left: auto; color: var(--fg-3); transition: transform .15s ease; flex-shrink: 0; }
.acc-chev.open { transform: rotate(180deg); }
.acc-actions { display: flex; gap: 6px; padding: 4px 8px 8px 51px; }

.stake-rest { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; }
.stake-rest .r { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.stake-rest .r:hover { background: var(--bg-well); }
.stake-rest .r .opt-av, .stake-rest .r .opt-av-fb { width: 28px; height: 28px; font-size: 10px; }
.stake-rest .r .nm { font-size: 13px; font-weight: 600; color: var(--fg-1); flex-shrink: 0; }
.stake-rest .r .rl { font-size: 12px; color: var(--fg-3); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stake-rest .r .ico { display: flex; gap: 6px; flex-shrink: 0; }

/* =====================================================================
   Color palettes (Option 2 — "new")
   ===================================================================== */

:root[data-palette="new"][data-theme="dark"] .app {
  background: linear-gradient(160deg, #232837 0%, #141820 100%);
}
:root[data-palette="new"][data-theme="dark"] .app::before {
  opacity: 1;
  background-image:
    radial-gradient(120% 80% at 85% 0%, rgba(255, 161, 130, 0.14) 0%, rgba(255, 161, 130, 0) 42%),
    radial-gradient(90% 70% at 0% 100%, rgba(132, 92, 255, 0.12) 0%, rgba(132, 92, 255, 0) 46%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.36  0 0 0 0 0.18  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/></svg>");
}

:root[data-palette="new"][data-theme="light"] .card {
  --color-cream:       #FEFBF4;
  --color-cream-light: #FFFDF8;
  --bg-card:           var(--color-cream-light);
  --bg-card-hover:     var(--color-cream);
  --bg-raised:         #ffffff;
  --bg-well:           #f8f1df;

  --fg-1:          #1c1a17;
  --fg-2:          #6b6253;
  --fg-3:          #9a9180;

  --line:          rgb(120 90 40 / 0.14);
  --line-strong:   rgb(120 90 40 / 0.24);

  --accent:        #7B5DF3;
  --accent-text:   #6643d6;
  --accent-soft:   rgba(123,93,243,0.10);
  --accent-line:   rgba(123,93,243,0.38);

  --dot-news: #bc7e66;
  --dot-career: #47b48e;
  --dot-job: #bc9bd2;

  background: linear-gradient(160deg, #ffffff 0%, var(--color-cream) 100%);
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(60, 40, 20, 0.08);
  transition: box-shadow 240ms ease-out, border-color 0.15s ease;
}

:root[data-palette="new"][data-theme="light"] .card:hover {
  background: linear-gradient(160deg, #ffffff 0%, var(--color-cream-light) 40%, var(--color-cream) 100%);
  border-color: transparent;
  box-shadow:
    0 8px 20px rgba(60, 40, 20, 0.045),
    0 1px 4px rgba(60, 40, 20, 0.025),
    0 0 0 1px rgba(60, 40, 20, 0.08);
}

:root[data-palette="new"][data-theme="dark"] .card {
  --bg-card:       #232837;
  --bg-card-hover: #262C3C;
  --bg-raised:     #2D3548;
  --bg-well:       #1D2332;

  --fg-1:          #E8EDF4;
  --fg-2:          #A0AEC0;
  --fg-3:          #7C8493;

  --line:          #2A3441;
  --line-strong:   #3A4556;

  --accent:        #845CFF;
  --accent-text:   #a283ff;
  --accent-soft:   rgba(132,92,255,0.16);
  --accent-line:   rgba(132,92,255,0.45);

  --dot-news: #bc7e66;
  --dot-career: #47b48e;
  --dot-job: #bc9bd2;

  background: linear-gradient(160deg, var(--bg-raised) 0%, var(--bg-well) 100%);
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: box-shadow 240ms ease-out, border-color 0.15s ease;
}

:root[data-palette="new"][data-theme="dark"] .card:hover {
  background: linear-gradient(160deg, var(--bg-card-hover) 0%, var(--bg-card) 100%);
  border-color: transparent;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 1px 4px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.10);
}

/* ── Heading fonts ── */
.headline,
.actor-name,
.stake-name,
.cn-lg-name,
.anchor-title,
.person-name,
.jv .title,
.cstory-name,
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── Hover transitions ── */
.card { --r-card: 16px; transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease; }
.stake { transition: background-color 0.15s ease; }

/* ── Card entry animations ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spine-draw {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.card > .actor { animation: fade-up 280ms ease-out 40ms both; }
.card > .nv,
.card > .jv,
.card > .cn-spot,
.card > .cstory { animation: fade-up 320ms ease-out 120ms both; }
.card > .stake.career-row { animation: fade-up 320ms ease-out 200ms both; }
.card > .angle { animation: fade-up 320ms ease-out 280ms both; }
.card .stakes > .angle-label { animation: fade-up 320ms ease-out 280ms both; }
.card .stake-list > .stake:nth-child(1) { animation: fade-up 320ms ease-out 360ms both; }
.card .stake-list > .stake:nth-child(2) { animation: fade-up 320ms ease-out 440ms both; }
.card .stake-list > .stake:nth-child(3) { animation: fade-up 320ms ease-out 520ms both; }
.card .stake-list > .stake:nth-child(4) { animation: fade-up 320ms ease-out 600ms both; }
.card .stake-list > .stake:nth-child(5) { animation: fade-up 320ms ease-out 680ms both; }
.card .stake-list > .stake:nth-child(6) { animation: fade-up 320ms ease-out 760ms both; }
.card > .fits-sec { animation: fade-up 320ms ease-out 840ms both; }

.nv.spotlight::before,
.jv.spotlight::before,
.cn-spot::before {
  transform-origin: top center;
  animation: spine-draw 500ms cubic-bezier(0.4, 0, 0.2, 1) 100ms both;
}

@media (prefers-reduced-motion: reduce) {
  .card > .actor,
  .card > .nv,
  .card > .jv,
  .card > .cn-spot,
  .card > .cstory,
  .card > .stake.career-row,
  .card > .angle,
  .card .stakes > .angle-label,
  .card .stake-list > .stake,
  .card > .fits-sec,
  .nv.spotlight::before,
  .jv.spotlight::before,
  .cn-spot::before {
    animation: none;
  }
}

/* ── Stakeholder hover (Option 2) ── */
:root[data-palette="new"] .stake .opt-av,
:root[data-palette="new"] .stake .opt-av-fb,
:root[data-palette="new"] .stake .stake-info,
:root[data-palette="new"] .stake .stake-cta {
  transition: transform 0.2s ease;
}
:root[data-palette="new"] .stake:hover .opt-av,
:root[data-palette="new"] .stake:hover .opt-av-fb,
:root[data-palette="new"] .stake:hover .stake-info {
  transform: translateX(6px);
}
:root[data-palette="new"] .stake:hover .stake-cta {
  transform: translateX(-6px);
}

:root[data-palette="new"] .actor-name { font-size: 14px; }
:root[data-palette="new"][data-theme="light"] .stake-name { color: #524c43; }
:root[data-palette="new"][data-theme="dark"] .stake-name { color: #c8cfd8; }

/* ── Spacing ── */
.angle { margin-top: 24px; }
.angle p { font-size: 14px; }
.stakes { margin-top: 24px; }

/* ── Actor layout ── */
.actor { align-items: center; }
.actor-line { margin-bottom: 4px; }
.actor-sub { padding-top: 0; margin-top: 0; }
.actor-main { padding-top: 0; }

/* ── Logo sizes ── */
.actor-logo,
.actor-logo-fb { width: 46px; height: 46px; }

/* ── Stakeholder avatar size ── */
.stake .opt-av,
.stake .opt-av-fb { width: 40px; height: 40px; border: 1px solid var(--line); }

/* ── Career row spacing ── */
.stake .career-row { margin-top: 16px; }
.cn-spot + .career-row { margin-top: 16px; }

/* ── CTA buttons ── */
.cta { gap: 4px; }
.cta.dr { flex-direction: row-reverse; }

/* ── Spotlight spine ── */
.nv.spotlight .headline { margin-bottom: 2px; }
.nv .headline { letter-spacing: 0; }
.nv.spotlight,
.jv.spotlight,
.cn-spot,
.cstory {
  border-left-color: transparent;
  position: relative;
}
.nv.spotlight::before,
.jv.spotlight::before,
.cn-spot::before,
.cstory::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--sig-hue);
  border-radius: 2px;
}

.ca4,
.cb3,
.angle .fits {
  border-left-color: transparent;
  position: relative;
}
.ca4::before,
.cb3::before,
.angle .fits::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent-line);
  border-radius: 2px;
}

/* ── Feed controls (replaces sticky opt-bar, matches table.html layout) ── */
.feed-controls {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  max-width: 680px; margin: 0 auto; width: 100%;
  padding: 32px 24px 20px;
}

.ctl-row { display: inline-flex; align-items: center; gap: 11px; }

.ctl-row .rowlbl {
  font-size: 10px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--fg-3);
  width: 44px; flex-shrink: 0;
}

/* ── Switch label with icon (matches table.html) ── */
.sw-lbl { display: inline-flex; align-items: center; gap: 6px; }
.sw-lbl svg { opacity: .8; }

/* ── Switch link item (navigation option inside opt-switch) ── */
.sw-link {
  appearance: none; border: 0; background: transparent; color: var(--fg-2);
  font-size: 12px; font-weight: 600; font-family: inherit;
  padding: 6px 11px; border-radius: 6px; white-space: nowrap;
  text-decoration: none; display: inline-flex; align-items: center;
}
.sw-link:hover { color: var(--fg-1); }

/* ── Control bar (legacy, kept for other usages) ── */
.opt-group { display: inline-flex; align-items: center; gap: 4px; }
.opt-row .rowlbl { text-align: center; }

/* ── Where fits chevron ── */
.fits-chev { margin-left: 0; }

/* ── Signal pills padding ── */
.sig { padding: 1px 8px; }

/* ── Section labels ── */
[data-wlstyle] .angle-label,
.angle-label { color: var(--fg-1); }
:root[data-palette="new"] [data-wlstyle] .angle-label,
:root[data-palette="new"] .angle-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  font-weight: 400;
  color: var(--accent-text);
}

/* ── Type labels ── */
.sig-type,
[data-sigstyle] .sig-type { text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 600; gap: 4px; }

/* ── Signal pills — outline (Option 2) ── */
:root[data-palette="new"] .sig:not(.sig-type) {
  color: var(--sig-hue);
  background: transparent;
  border-color: color-mix(in srgb, var(--sig-hue) 52%, transparent);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
:root[data-palette="new"] .sig:not(.sig-type):hover {
  background: color-mix(in srgb, var(--sig-hue) 10%, transparent);
}

/* ── Font size overrides (whole numbers) ── */
.actor-name           { font-size: 16px; }
.angle-label          { font-size: 11px; }
[data-wlstyle="4"] .angle-label { font-size: 11px; }
.anchor-meta          { font-size: 12px; margin-top: 0; }
.cstory-name          { font-size: 15px; }
.cstory-move          { font-size: 14px; }
.cstory-prev          { font-size: 13px; }
.brand .kbd           { font-size: 11px; }
.nav-label            { font-size: 11px; }
.nav-item             { font-size: 14px; }
.tabs .search         { font-size: 13px; }
.tabs .search input   { font-size: 13px; }
.anchor-sub           { font-size: 13px; }
.pmeta                { font-size: 13px; }
.others .it .av       { font-size: 11px; }
.others .it .rl       { font-size: 12px; }
.stake-name           { font-size: 14px; }
[data-wlstyle] .angle-label { font-size: 11px; }
.cn-prevline          { font-size: 13px; }
.cn-lg .cn-narrative  { font-size: 14px; }
.lnk                  { font-size: 13px; }
.stake-chip           { font-size: 13px; }
.stake-bar .who       { font-size: 13px; }
.opt-desc             { font-size: 13px; }
.ca2 .step .txt       { font-size: 14px; }
.ca3 .nm              { font-size: 15px; }
.ca4 .meta            { font-size: 13px; }
.ca5 .who .opt-av,
.ca5 .who .opt-av-fb  { font-size: 10px; }
.ca5 .who .nm         { font-size: 13px; }
.ca5 .sub             { font-size: 13px; }
.cb1 .nm              { font-size: 14px; }
.cb2 .who .nm         { font-size: 14px; }
.cb3 .trk             { font-size: 14px; }
.cb5 .nm              { font-size: 14px; }
.cb5 .when            { font-size: 12px; }
.others .it .opt-av,
.others .it .opt-av-fb { font-size: 11px; }
.nv .sub              { font-size: 13px; }
.nv.compact .headline { font-size: 15px; }
.jv .meta             { font-size: 13px; }
.jv .chip             { font-size: 12px; }

/* =====================================================================
   Signal filter bar
   ===================================================================== */

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--fg-1);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  transition: box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.filter-dropdown .sig-filter-icon {
  width: 14px; height: 14px;
  display: inline-flex; align-items: center; justify-content: center; line-height: 0;
}
.filter-dropdown .sig-filter-icon svg { display: block; width: 14px; height: 14px; }
.filter-dropdown:hover { background: var(--bg-well); border-color: var(--line-strong); }
.filter-dropdown .label { color: var(--fg-3); font-weight: 400; line-height: 1; }
.filter-dropdown.has-selection .label { color: var(--fg-2); font-weight: 500; }

.filter-chev {
  flex-shrink: 0; display: inline-flex; align-items: center;
  color: var(--fg-3); opacity: 0.55;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.filter-dropdown.open .filter-chev { opacity: 0.75; }
.filter-dropdown:hover:not(.open) .filter-chev { opacity: 0.65; }
.filter-dropdown.open { background: var(--bg-raised); border-color: var(--line-strong); }
.filter-dropdown.open .label { color: var(--fg-2); }
.filter-dropdown:hover:not(.open) .label { color: var(--fg-2); }

.filter-popover-wrap { position: relative; }

.filter-clear {
  padding: 0; border: 0; background: transparent;
  font-family: inherit; font-size: 12px; font-weight: 500;
  color: var(--fg-3); cursor: pointer; white-space: nowrap;
  transition: color 0.15s ease;
}
.filter-clear:hover { color: var(--fg-1); }

.acct-popover {
  position: absolute; top: calc(100% + 6px); left: 0;
  width: 280px; z-index: 50;
  background: var(--bg-popover);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
:root[data-theme="light"] .acct-popover { background: #ffffff; box-shadow: 0 16px 40px -12px rgba(16, 17, 26, 0.18); }
:root[data-theme="dark"] .acct-popover { background: #2B3344; border-color: var(--line-strong); box-shadow: 0 20px 48px -12px rgba(0,0,0,0.6); }

.sig-popover { width: 340px; }

.acct-search-wrap {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px;
  border-bottom: 1px solid var(--line);
}
.acct-search-wrap svg { flex-shrink: 0; color: var(--fg-3); }

.acct-search-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-size: 13px; font-family: inherit; color: var(--fg-1); height: 100%;
}
.acct-search-input::placeholder { color: var(--fg-3); }

.acct-list {
  max-height: 300px; overflow-y: auto; padding: 4px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}

.acct-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 6px;
  cursor: pointer; font-size: 13px; color: var(--fg-2);
  transition: background 0.1s ease; user-select: none;
}
.acct-item:hover { background: var(--bg-well); }

.acct-cb {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 1px solid var(--line-strong); border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.85;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.acct-item.checked .acct-cb { background: var(--accent); border-color: var(--accent); opacity: 1; }
.acct-cb svg { display: none; }
.acct-item.checked .acct-cb svg { display: block; }

.sig-filter-icon { flex-shrink: 0; display: inline-flex; align-items: center; transition: color 0.12s ease; }
.sig-filter-icon--news { color: var(--dot-news); }
.sig-filter-icon--career_change { color: var(--dot-career); }
.sig-filter-icon--job_listing { color: var(--dot-job); }

:root[data-palette="new"][data-theme="light"] .sig-filter-icon--news { color: #d2683c; }
:root[data-palette="new"][data-theme="light"] .sig-filter-icon--career_change { color: #1dca8e; }
:root[data-palette="new"][data-theme="light"] .sig-filter-icon--job_listing { color: #CD81FF; }
:root[data-palette="new"][data-theme="dark"] .sig-filter-icon--news { color: #ffa182; }
:root[data-palette="new"][data-theme="dark"] .sig-filter-icon--career_change { color: #5BC79A; }
:root[data-palette="new"][data-theme="dark"] .sig-filter-icon--job_listing { color: #CD81FF; }

.acct-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-count { font-size: 12px; color: var(--fg-3); flex-shrink: 0; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width: 1024px) {
  .actor-sub { font-size: 10px; }
}

@media (max-width: 860px) {
  .actor { align-items: center; }
  .actor-sub { font-size: 10px; }
}

.actor-sigs { display: inline-flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }

@media (max-width: 430px) {
  :root { --card-pad: 16px; --feed-gap: 24px; }
  .card { --r-card: 0; border-radius: 0; }
  .actor-sub { font-size: 10px; }
  .actor-line { flex-wrap: wrap; }
  .actor-name { flex-basis: 100%; max-width: 100%; }
  .filter-bar { position: relative; padding-left: 20px; }
  .filter-popover-wrap { position: static; }
  .acct-popover { left: 0; right: 0; width: auto; }
  .feed { padding-left: 0 !important; padding-right: 0 !important; }
  .nv.spotlight::before,
  .jv.spotlight::before,
  .cn-spot::before,
  .cstory::before { display: none; }
  .nv.spotlight,
  .jv.spotlight,
  .cn-spot { padding-left: 0; }
  /* No hover on touch — neutralize the stakeholder row highlight + slide */
  .stake:hover { background: transparent; }
  :root[data-palette="new"] .stake:hover .opt-av,
  :root[data-palette="new"] .stake:hover .opt-av-fb,
  :root[data-palette="new"] .stake:hover .stake-info,
  :root[data-palette="new"] .stake:hover .stake-cta { transform: none; }
}

/* ── Actor grid layout ── */
.actor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "logo main menu";
  column-gap: 12px;
  align-items: center;
}

.actor-logo,
.actor-logo-fb { grid-area: logo; }

.actor-main { grid-area: main; min-width: 0; }

.actor-line { display: flex; align-items: center; gap: 8px; min-width: 0; }

.actor-sigs { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }

.of { grid-area: menu; justify-self: end; align-self: flex-start; }

@media (max-width: 640px) {
  .actor {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "logo name menu"
      "logo sub  sub"
      "sigs sigs sigs";
    row-gap: 2px;
  }

  .actor-main,
  .actor-line { display: contents; }

  .actor-name { grid-area: name; align-self: center; }
  .actor-sigs { grid-area: sigs; margin-top: 6px; }
  .actor-sub { grid-area: sub; margin-top: -6px; }
}
