/* ============================================================
   WN §5.1 token remap (DIR-2026-06-11 Stage 2). The prototype's
   brand/colors_and_type.css is not ported; this self-contained
   :root block assigns every prototype token this artefact consumes.
   Repo tokens (src/styles/design-tokens.css, loaded globally via
   BaseLayout) are referenced where an equivalent exists; brand-literal
   values are carried where the repo has none. Decision 6.6: the mono
   faces map to the system mono stack (no new font dependency).
   ============================================================ */
:root {
  --font-sans: var(--pf-font-sans);
  --font-display: var(--font-sans);
  --font-mono-dev: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-mono-marketing: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bg-page: var(--pf-paper);
  --bg-ink-soft: rgba(0, 58, 77, 0.04);
  --pf-text: #1a1a1a;
  --fg-2: #334155;            /* brand --pf-slate-600 */
  --fg-3: #6B838B;            /* brand --pf-slate-400 */
  --pf-slate-50: #F1F5F7;
  --pf-slate-100: #E3ECEF;
  --pf-slate-200: #C9D7DC;
  --pf-slate-300: #9FB3BA;
  --pf-slate-500: #47606A;
  --border-1: var(--pf-slate-100);
  --border-2: var(--pf-slate-200);
  --pf-extra-light: #ECF5F8;
  --pf-light-blue: #D2EEF0;
  --pf-cyan-ink: #018990;
  --pf-green: #03BF5D;
  --pf-lime: #BED629;
  --pf-red: #c0392b;
  --pf-steel: #4899B7;
  --warning: #E8A317;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;
  --sh-focus: 0 0 0 3px rgba(2, 180, 191, 0.35);
  --sh-2: 0 4px 12px rgba(0, 58, 77, 0.10);
  --dur-2: 200ms;
  --dur-3: 320ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pf-gradient-dark: linear-gradient(135deg, var(--pf-navy-deep) 0%, var(--pf-navy) 100%);
  --pf-overlay-navy: linear-gradient(135deg, rgba(0, 42, 56, 0.92) 0%, rgba(0, 58, 77, 0.80) 100%);
  --pf-scrim-bottom: linear-gradient(0deg, rgba(0, 42, 56, 0.85) 0%, rgba(0, 42, 56, 0.20) 55%, rgba(0, 42, 56, 0) 100%);
}

/* ============================================================
   Northwind findings pack · styles
   Proudfoot Design System throughout. Flat-first, navy + cyan,
   measured motion. No em dashes anywhere.
   ============================================================ */

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg-page);
  overflow: hidden;
}

.pk-app {
  /* Port adaptation (plan R-4): subtract the artefact back-bar so the
     fixed-viewport shell never pushes the bottom chrome below the fold. */
  height: calc(100vh - var(--pf-backbar-h, 0px));
  height: calc(100svh - var(--pf-backbar-h, 0px));
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* ---------------- top chrome ---------------- */
.pk-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px clamp(16px, 3vw, 28px);
  background: #fff; border-bottom: 1px solid var(--border-1);
}
.pk-top-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pk-doc-label {
  font-family: var(--font-mono-marketing); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-2); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.pk-doc-label b { color: var(--pf-navy); font-weight: 500; }
.pk-top img { height: 40px; width: auto; display: block; flex: none; }

.pk-sample {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  height: 26px; padding: 0 12px; border-radius: var(--r-pill);
  background: rgba(190, 214, 41, 0.16); border: 1px solid rgba(190, 214, 41, 0.55);
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: #5a661a;
}
.pk-sample::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--pf-lime); }

/* ---------------- main split ---------------- */
.pk-main { display: grid; grid-template-columns: 268px 1fr; min-height: 0; }

/* contents rail */
.pk-rail {
  background: #fff; border-right: 1px solid var(--border-1);
  padding: 22px 0 16px; overflow-y: auto;
  display: flex; flex-direction: column;
}
.pk-rail-head {
  padding: 0 22px 12px;
  font-family: var(--font-mono-marketing); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-3);
}
.pk-rail button {
  appearance: none; background: none; border: 0; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: baseline;
  width: 100%; padding: 11px 22px;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; color: var(--fg-2);
  border-left: 2px solid transparent;
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.pk-rail button:hover { background: var(--bg-ink-soft); }
.pk-rail button:focus-visible { outline: none; box-shadow: var(--sh-focus); border-radius: var(--r-sm); }
.pk-rail button .n {
  font-family: var(--font-mono-marketing); font-size: 10.5px; letter-spacing: 0.06em; color: var(--fg-3);
}
.pk-rail button.active { color: var(--pf-navy); font-weight: 600; border-left-color: var(--pf-cyan); background: var(--pf-extra-light); }
.pk-rail button.active .n { color: var(--pf-cyan-ink); }
.pk-rail-foot { margin-top: auto; padding: 18px 22px 6px; }
.pk-rail-foot .pf-caption { display: block; line-height: 1.5; }

/* mobile chips */
.pk-chips { display: none; }

/* stage */
.pk-stage { overflow-y: auto; min-width: 0; scroll-behavior: auto; }
.pk-stage-inner { padding: clamp(20px, 3.5vw, 44px); }

/* ---------------- leaves ---------------- */
.leaf { display: none; max-width: 980px; margin: 0 auto; }
.leaf.active { display: block; }
@media (prefers-reduced-motion: no-preference) {
  body[data-trans="rise"] .leaf.active { animation: leafRise var(--dur-3) var(--ease-out) both; }
  body[data-trans="fade"] .leaf.active { animation: leafFade var(--dur-3) var(--ease-out) both; }
}
@keyframes leafRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes leafFade { from { opacity: 0; } to { opacity: 1; } }

.leaf-page {
  background: #fff; border: 1px solid var(--pf-light-blue); border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 64px);
}

/* leaf header block */
.leaf-kicker {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font-family: var(--font-mono-marketing); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--pf-cyan-ink);
}
.leaf-kicker .rule { flex: 1; height: 1px; background: var(--border-1); }
.leaf-kicker .pg { color: var(--fg-3); letter-spacing: 0.06em; }
.leaf h1 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.025em; line-height: 1.12; max-width: 22ch; }
.leaf .lede { margin-top: 14px; font-size: 16px; line-height: 1.65; color: var(--fg-2); max-width: 64ch; }
.leaf .lede b { color: var(--pf-navy); font-weight: 600; }

.leaf-note {
  margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--border-1);
  font-size: 12px; line-height: 1.55; color: var(--fg-3); max-width: 72ch;
}

/* ---------------- cover ---------------- */
.leaf-cover {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--pf-gradient-dark); color: #fff;
  border: 0; min-height: min(72vh, 760px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.cover-photo { position: absolute; inset: 0; }
.cover-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-photo::after { content: ""; position: absolute; inset: 0; background: var(--pf-overlay-navy); }
.cover-body { position: relative; z-index: 1; padding: clamp(28px, 5vw, 64px); }
.cover-eyebrow {
  font-family: var(--font-mono-marketing); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--pf-cyan); margin-bottom: 18px; display: block;
}
.cover-title { font-size: clamp(34px, 5vw, 62px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.03; color: #fff; max-width: 16ch; }
.cover-client { margin-top: 18px; font-size: clamp(17px, 2vw, 22px); color: rgba(255,255,255,0.85); font-weight: 500; }
.cover-client .sep { color: var(--pf-cyan); margin: 0 8px; }
.cover-meta {
  margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  border-top: 1px solid rgba(255,255,255,0.18); padding-top: 22px;
}
.cover-meta .k {
  font-family: var(--font-mono-marketing); font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.5); display: block; margin-bottom: 7px;
}
.cover-meta .v { font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,0.92); font-weight: 500; }
.cover-sample {
  position: absolute; top: clamp(20px, 3vw, 32px); right: clamp(20px, 3vw, 32px); z-index: 2;
}

/* ---------------- method leaf ---------------- */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.method-card { border: 1px solid var(--pf-light-blue); border-radius: var(--r-md); padding: 22px 22px 24px; }
.method-card.navy { background: var(--pf-navy); border-color: var(--pf-navy); color: #fff; }
.method-card .mk {
  font-family: var(--font-mono-marketing); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--pf-cyan-ink); display: block; margin-bottom: 12px;
}
.method-card.navy .mk { color: var(--pf-cyan); }
.method-card h3 { font-size: 17px; margin-bottom: 10px; }
.method-card.navy h3 { color: #fff; }
.method-card p { font-size: 13.5px; line-height: 1.62; color: var(--fg-2); }
.method-card.navy p { color: rgba(255,255,255,0.78); }
.method-card ul { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.7; color: var(--fg-2); }
.method-stats {
  margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  background: var(--pf-extra-light); border: 1px solid var(--pf-light-blue);
  border-radius: var(--r-md); padding: 20px 22px;
}
.method-stats .stat .v { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; color: var(--pf-navy); display: block; }
.method-stats .stat .k { font-size: 11px; color: var(--fg-3); margin-top: 4px; display: block; line-height: 1.4; }
.method-photo { margin-top: 16px; }

/* ---------------- value-driver tree ---------------- */
.tree-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.tree-controls .hint { font-size: 12px; color: var(--fg-3); }
.tree-root {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  background: var(--pf-navy); color: #fff; border-radius: var(--r-md);
  padding: 18px 22px; margin-bottom: 10px;
}
.tree-root .tl { font-size: 16px; font-weight: 600; }
.tree-root .tl small { display: block; font-family: var(--font-mono-marketing); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 5px; font-weight: 500; }
.tree-root .tv { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; color: var(--pf-cyan); white-space: nowrap; }
.tree-root .tv small { font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 500; margin-left: 6px; letter-spacing: 0; }

.tree-branch { border: 1px solid var(--pf-light-blue); border-radius: var(--r-md); margin-bottom: 10px; overflow: hidden; background: #fff; }
.tree-branch-head {
  appearance: none; background: none; border: 0; cursor: pointer; width: 100%; text-align: left;
  display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center;
  padding: 16px 20px; font-family: var(--font-sans);
  transition: background var(--dur-2) var(--ease-out);
}
.tree-branch-head:hover { background: var(--bg-ink-soft); }
.tree-branch-head:focus-visible { outline: none; box-shadow: var(--sh-focus); border-radius: var(--r-sm); }
.tree-caret { width: 18px; height: 18px; color: var(--pf-cyan-ink); transition: transform var(--dur-2) var(--ease-out); }
.tree-branch.open .tree-caret { transform: rotate(90deg); }
.tree-branch-head .bl { font-size: 15px; font-weight: 600; color: var(--pf-navy); }
.tree-branch-head .bl small {
  display: block; margin-top: 4px; font-family: var(--font-mono-marketing); font-size: 9.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); font-weight: 500;
}
.tree-branch-head .bv { text-align: right; }
.tree-branch-head .bv .num { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; color: var(--pf-navy); white-space: nowrap; }
.tree-branch-head .bv .pct { display: block; font-size: 11px; color: var(--fg-3); margin-top: 2px; }
.tree-bar { grid-column: 2 / 4; height: 5px; border-radius: 99px; background: var(--pf-slate-100); overflow: hidden; }
.tree-bar i { display: block; height: 100%; border-radius: 99px; background: var(--pf-cyan); width: 0; transition: width 600ms var(--ease-out); }

.tree-kids { display: none; border-top: 1px solid var(--border-1); }
.tree-branch.open .tree-kids { display: block; }
.tree-kid { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; padding: 14px 20px 14px 56px; border-bottom: 1px solid var(--border-1); }
.tree-kid:last-child { border-bottom: 0; }
.tree-kid .kl { font-size: 13.5px; font-weight: 600; color: var(--pf-navy); }
.tree-kid .kv { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--pf-navy); white-space: nowrap; }
.tree-kid .kn { grid-column: 1 / 3; font-size: 12.5px; line-height: 1.55; color: var(--fg-2); max-width: 70ch; }
.tree-recon {
  margin-top: 16px; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono-marketing); font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-3);
}
.tree-recon .ok { color: var(--pf-green); font-weight: 600; }

/* ---------------- maturity ---------------- */
.mat-scale {
  display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin: 26px 0 6px;
  font-family: var(--font-mono-marketing); font-size: 9.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-3);
}
.mat-scale span { padding: 3px 8px; border: 1px solid var(--border-1); border-radius: var(--r-pill); }
.mat-group { margin-top: 26px; }
.mat-group-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.mat-group-head h3 { font-size: 15px; }
.mat-group-head .gh-note { font-size: 11.5px; color: var(--fg-3); }
.mat-row { display: grid; grid-template-columns: minmax(200px, 320px) 1fr 44px; gap: 16px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border-1); cursor: pointer; }
.mat-row:hover .mat-name { color: var(--pf-cyan-ink); }
.mat-name { font-size: 13px; font-weight: 600; color: var(--pf-navy); line-height: 1.35; transition: color var(--dur-2) var(--ease-out); }
.mat-name .en { font-family: var(--font-mono-marketing); font-weight: 500; font-size: 10px; color: var(--fg-3); margin-right: 7px; }
.mat-track { position: relative; height: 10px; border-radius: 99px; background: var(--pf-slate-50); border: 1px solid var(--border-1); }
.mat-tick { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--border-2); }
.mat-fill { position: absolute; inset: 1px auto 1px 1px; border-radius: 99px; background: var(--pf-navy); width: 0; transition: width 700ms var(--ease-out); }
.mat-bench { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--pf-cyan); border-radius: 2px; }
.mat-bench::after {
  content: "to hold the prize"; position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono-marketing); font-size: 8px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--pf-cyan-ink); white-space: nowrap; opacity: 0;
}
.mat-row:first-of-type .mat-bench::after { opacity: 1; }
body[data-bench="off"] .mat-bench { display: none; }
.mat-score { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--pf-navy); text-align: right; font-variant-numeric: tabular-nums; }
.mat-finding {
  grid-column: 1 / 4; display: none; padding: 4px 0 10px;
  font-size: 12.5px; line-height: 1.55; color: var(--fg-2); max-width: 72ch;
}
.mat-row.open .mat-finding { display: block; }
.mat-overall {
  margin-top: 26px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--pf-extra-light); border: 1px solid var(--pf-light-blue);
  border-radius: var(--r-md); padding: 18px 22px;
}
.mat-overall .ov { font-family: var(--font-display); font-weight: 600; font-size: 34px; letter-spacing: -0.02em; color: var(--pf-navy); }
.mat-overall .ov small { font-size: 14px; color: var(--fg-3); font-weight: 500; }
.mat-overall p { flex: 1; min-width: 260px; font-size: 13px; line-height: 1.6; color: var(--fg-2); }

/* ---------------- readiness ---------------- */
.ready-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.ready-card { border: 1px solid var(--pf-light-blue); border-radius: var(--r-md); padding: 20px 20px 22px; }
.ready-card .rk { font-family: var(--font-mono-marketing); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); display: block; margin-bottom: 12px; }
.ready-card .rv2 { display: flex; align-items: baseline; gap: 8px; }
.ready-card .rv2 .num { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -0.02em; color: var(--pf-navy); white-space: nowrap; flex: none; }
.ready-card .rv2 .det { font-size: 12px; color: var(--fg-3); line-height: 1.4; flex: 1; min-width: 0; }
.ready-meter { display: block; margin-top: 14px; height: 6px; border-radius: 99px; background: var(--pf-slate-50); border: 1px solid var(--border-1); overflow: hidden; }
.ready-meter i { display: block; height: 100%; background: var(--pf-steel); width: 0; transition: width 700ms var(--ease-out); }
.ready-card .read { display: block; margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--fg-2); font-style: normal; }
.ready-summary {
  margin-top: 16px; border-left: 2px solid var(--pf-cyan); padding: 4px 0 4px 18px;
  font-size: 14px; line-height: 1.65; color: var(--fg-2); max-width: 68ch;
}
.ready-boundary {
  margin-top: 18px; background: var(--pf-extra-light); border: 1px solid var(--pf-light-blue);
  border-radius: var(--r-md); padding: 14px 18px; font-size: 12.5px; line-height: 1.6; color: var(--fg-2);
}
.ready-boundary b { color: var(--pf-navy); }

/* ---------------- prize ---------------- */
.prize-bands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.prize-band { border: 1px solid var(--pf-light-blue); border-radius: var(--r-md); padding: 22px; position: relative; }
.prize-band.base { background: var(--pf-navy); border-color: var(--pf-navy); color: #fff; }
.prize-band .pk { font-family: var(--font-mono-marketing); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.prize-band.base .pk { color: var(--pf-cyan); }
.prize-band .pv { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 4vw, 46px); letter-spacing: -0.03em; color: var(--pf-navy); margin-top: 10px; font-variant-numeric: tabular-nums; }
.prize-band.base .pv { color: #fff; }
.prize-band .pv small { font-size: 15px; color: var(--fg-3); font-weight: 500; letter-spacing: 0; }
.prize-band.base .pv small { color: rgba(255,255,255,0.6); }
.prize-band .pc { display: inline-flex; margin-top: 12px; }
.prize-band p { margin-top: 12px; font-size: 12.5px; line-height: 1.55; color: var(--fg-2); }
.prize-band.base p { color: rgba(255,255,255,0.78); }
.prize-range { margin-top: 26px; }
.prize-range .rr-head { display: flex; justify-content: space-between; font-family: var(--font-mono-marketing); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 36px; }
.prize-track { position: relative; height: 14px; border-radius: 99px; background: var(--pf-slate-50); border: 1px solid var(--border-1); }
.prize-conf { position: absolute; top: 2px; bottom: 2px; border-radius: 99px; background: rgba(2, 180, 191, 0.22); }
.prize-pin { position: absolute; top: -6px; bottom: -6px; width: 3px; border-radius: 2px; background: var(--pf-navy); }
.prize-pin.cyan { background: var(--pf-cyan); }
.prize-pin .pin-label {
  position: absolute; top: -24px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono-marketing); font-size: 9px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-2); white-space: nowrap;
}
.prize-method { margin-top: 34px; font-size: 13px; line-height: 1.65; color: var(--fg-2); max-width: 70ch; }
.prize-method b { color: var(--pf-navy); }

/* ---------------- opportunities ---------------- */
.opp-table { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: 13px; }
.opp-table thead th {
  background: var(--pf-navy); color: #fff; font-weight: 600; font-size: 11.5px;
  letter-spacing: 0.04em; text-align: left; padding: 11px 14px; white-space: nowrap;
}
.opp-table thead th:first-child { border-radius: var(--r-sm) 0 0 0; }
.opp-table thead th:last-child { border-radius: 0 var(--r-sm) 0 0; }
.opp-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--pf-light-blue); color: var(--pf-text); vertical-align: top; }
.opp-table tbody tr:nth-child(even) td { background: var(--pf-extra-light); }
.opp-table .o-rank { font-family: var(--font-mono-marketing); font-size: 11px; color: var(--fg-3); }
.opp-table .o-name { font-weight: 600; color: var(--pf-navy); min-width: 220px; }
.opp-table .o-name small { display: block; font-weight: 400; color: var(--fg-3); font-size: 11px; margin-top: 3px; }
.opp-table .o-val { white-space: nowrap; font-variant-numeric: tabular-nums; }
.opp-table .o-val .num { font-weight: 600; color: var(--pf-navy); }
.opp-val-bar { display: block; margin-top: 6px; height: 4px; width: 90px; border-radius: 99px; background: var(--pf-slate-100); overflow: hidden; }
.opp-val-bar i { display: block; height: 100%; background: var(--pf-cyan); border-radius: 99px; }
.opp-table .o-first { white-space: nowrap; }
.opp-el { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.opp-el span {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
  border-radius: var(--r-pill); background: var(--bg-ink-soft); border: 1px solid rgba(0,58,77,0.1);
  font-family: var(--font-mono-marketing); font-size: 9.5px; color: var(--pf-navy);
}
tr.o-top td { background: rgba(2, 180, 191, 0.06) !important; }
tr.o-top .o-rank { color: var(--pf-cyan-ink); font-weight: 600; }
.opp-callout {
  margin-top: 22px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  background: var(--pf-navy); color: #fff; border-radius: var(--r-md); padding: 20px 24px;
}
.opp-callout .cv { font-family: var(--font-display); font-weight: 600; font-size: 32px; letter-spacing: -0.02em; color: var(--pf-cyan); white-space: nowrap; }
.opp-callout .cv small { display: block; font-family: var(--font-mono-marketing); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 6px; }
.opp-callout p { flex: 1; min-width: 260px; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.82); }

/* ---------------- five-day plan ---------------- */
.plan-list { margin-top: 32px; }
.plan-day { display: grid; grid-template-columns: 88px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--border-1); }
.plan-day:last-of-type { border-bottom: 1px solid var(--border-1); }
.plan-d { text-align: left; }
.plan-d .dn { font-family: var(--font-mono-marketing); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); display: block; }
.plan-d .dv { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -0.02em; color: var(--pf-cyan); line-height: 1.1; }
.plan-body h3 { font-size: 16.5px; }
.plan-body h3 small { font-weight: 500; color: var(--fg-3); font-size: 12px; margin-left: 10px; }
.plan-body ul { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.7; color: var(--fg-2); }
.plan-adds { margin-top: 10px; font-size: 12.5px; color: var(--pf-cyan-ink); font-weight: 600; }
.plan-side { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: stretch; margin-top: 30px; }
.plan-cta {
  background: var(--pf-gradient-dark); color: #fff; border-radius: var(--r-md);
  padding: 26px 28px; display: flex; flex-direction: column; justify-content: center;
}
.plan-cta h3 { color: #fff; font-size: 20px; max-width: 24ch; }
.plan-cta p { margin-top: 10px; font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,0.78); max-width: 50ch; }
.plan-cta .pf-btn { margin-top: 18px; align-self: flex-start; }
.plan-photo { margin: 0; border-radius: var(--r-md); overflow: hidden; position: relative; min-height: 200px; }
.plan-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plan-photo figcaption {
  position: absolute; left: 14px; bottom: 12px; z-index: 1;
  font-family: var(--font-mono-marketing); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff;
}
.plan-photo::after { content: ""; position: absolute; inset: 0; background: var(--pf-scrim-bottom); }

/* ---------------- bottom chrome ---------------- */
.pk-bottom {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 10px clamp(16px, 3vw, 28px);
  background: #fff; border-top: 1px solid var(--border-1);
}
.pk-pager { display: flex; align-items: center; gap: 14px; }
.pk-pager .pos { font-family: var(--font-mono-marketing); font-size: 11px; letter-spacing: 0.08em; color: var(--fg-2); white-space: nowrap; }
.pk-arrow {
  appearance: none; cursor: pointer; width: 38px; height: 38px; border-radius: var(--r-md);
  border: 1px solid var(--border-2); background: #fff; color: var(--pf-navy);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.pk-arrow:hover { background: var(--bg-ink-soft); border-color: var(--pf-navy); }
.pk-arrow:active { transform: translateY(1px); }
.pk-arrow:focus-visible { outline: none; box-shadow: var(--sh-focus); }
.pk-arrow:disabled { opacity: 0.35; cursor: not-allowed; }
.pk-arrow svg { width: 16px; height: 16px; }
.pk-bottom .pf-confidential { justify-self: start; }
.pk-bottom .pf-tagline { justify-self: end; }

/* progress hairline */
.pk-progress { position: relative; height: 2px; background: var(--border-1); }
.pk-progress i { position: absolute; inset: 0 auto 0 0; background: var(--pf-cyan); width: 0; transition: width var(--dur-3) var(--ease-out); }

/* ---------------- responsive ---------------- */
@media (max-width: 960px) {
  .pk-main { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .pk-rail { display: none; }
  .pk-chips {
    display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px;
    background: #fff; border-bottom: 1px solid var(--border-1);
  }
  .pk-chips button {
    appearance: none; cursor: pointer; flex: none; height: 30px; padding: 0 14px;
    border-radius: var(--r-pill); border: 1px solid var(--border-2); background: #fff;
    font-family: var(--font-sans); font-size: 12px; font-weight: 600; color: var(--fg-2);
  }
  .pk-chips button.active { background: var(--pf-navy); border-color: var(--pf-navy); color: #fff; }
  .cover-meta { grid-template-columns: 1fr 1fr; }
  .method-grid, .ready-grid, .prize-bands, .plan-side { grid-template-columns: 1fr; }
  .mat-row { grid-template-columns: 1fr 60px; }
  .mat-track { grid-column: 1 / 3; margin-top: 2px; }
  .mat-finding { grid-column: 1 / 3; }
  .plan-day { grid-template-columns: 60px 1fr; }
  .pk-bottom { grid-template-columns: auto 1fr; }
  .pk-bottom .pf-confidential { display: none; }
  .pk-doc-label { display: none; }
}
