/* ORA-DB — design system & page styles
   Visual language: "white engineering blueprint" — white canvas, a grayscale spine,
   hairline borders, pill controls, and one lavender accent. Status colors (readiness, capability vs
   competency) stay functional and are never used on chrome.
   Some token names predate this theme: --navy is Carbon, --blue is Lavender. */
:root {
  --navy: #181925;        /* Carbon: headings and primary text */
  --navy-2: #2a2b3a;
  --ink: #181925;
  --muted: #666666;       /* Graphite: secondary text (5.7:1 on white) */
  --ash: #999999;         /* decorative only — too light for text */
  --line: #e8e8e8;        /* Fog: hairline borders */
  --line-strong: #d6d6d6;
  --bg: #ffffff;
  --surface: #ffffff;
  --linen: #fafafa;
  --mist: #f5f5f5;
  --blue: #918df6;        /* Lavender: filled actions and selected indicators */
  --blue-hover: #847ff3;
  --on-accent: #181925;   /* text on a lavender fill (6.1:1) */
  --accent-text: #5049cc; /* lavender deep enough for text and icons on white (6.6:1) */
  --blue-600: #5049cc;
  --blue-100: #e4e2fd;
  --blue-50: #f4f3fe;
  --focus: #5d56dd;       /* focus ring (5.5:1 on white) */
  --sage: #999999;
  --track: #ececec;      /* empty part of meters, dials and progress bars */
  --glass: rgba(255, 255, 255, .92); /* translucent header and sticky bars */
  --inv-bg: #181925;     /* dark fills that carry white text (toast, dark band titles) */
  --inv-text: #ffffff;
  --mint-wash: #def6e4;
  --mint-text: #12633b;
  /* Capability vs competency: complementary blue / burnt orange (validated: ΔE 27 under color-blind
     simulation). The orange is a deeper, redder shade than the readiness scale's orange so the two
     aren't confused; --cap-text / --comp-text are darker shades for small text (≥4.5:1 on white). */
  --cap-color: #3b8fe0;
  --cap-text: #1f6fc2;
  --comp-color: #cc5f00;
  --comp-text: #b05200;

  --r-green: #198754;
  --r-lime: #7cb342;
  --r-amber: #ffc107;
  --r-orange: #ff9800;
  --r-red: #dc3545;

  --radius: 16px;
  --radius-sm: 8px;
  --shadow-sm: rgba(0, 0, 0, .04) 0 1px 2px 0;
  --shadow: rgba(0, 0, 0, .06) 0 1px 3px 0, rgba(0, 0, 0, .06) 0 8px 16px 0, rgba(0, 0, 0, .02) 0 0 0 1px;
  --shadow-lg: rgba(0, 0, 0, .08) 0 2px 6px 0, rgba(0, 0, 0, .12) 0 18px 36px 0, rgba(0, 0, 0, .03) 0 0 0 1px;
  --shadow-btn: rgba(0, 0, 0, .08) 0 1px 1px 1px, rgba(0, 0, 0, .06) 0 0 0 .5px;
  --shadow-btn-2: rgba(0, 0, 0, .08) 0 1px 1px 0, rgba(0, 0, 0, .05) 0 0 0 1px;
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font);
  --container: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.5; font-size: 16px; letter-spacing: -.011em; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--accent-text); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; font-weight: 500; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
button { font-family: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--inv-bg); color: var(--inv-text); padding: 8px 14px; border-radius: 9999px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Header: a floating pill on the home page, a white bar on inner pages ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; padding: 0 16px; background: var(--glass); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
body[data-page="home"] .site-header { background: none; backdrop-filter: none; border-bottom-color: transparent; pointer-events: none; }
.nav-inner { pointer-events: auto; width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 8px; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
body[data-page="home"] .nav-inner { max-width: 820px; padding: 0 8px 0 22px; background: var(--glass); backdrop-filter: saturate(1.4) blur(12px); border: 1px solid var(--line); border-radius: 9999px; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
body[data-page="home"] .site-header.is-scrolled .nav-inner { box-shadow: var(--shadow); }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); line-height: 1; }
.logo-mark { display: block; width: auto; height: 22px; }
.logo-mark .lm-side { fill: var(--navy); }
.logo-word { font-size: 1.2rem; font-weight: 700; letter-spacing: .02em; }
.logo-word i { font-style: normal; color: var(--accent-text); }
.logo-word b { font-weight: 500; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-link { position: relative; display: block; padding: 8px 12px; border-radius: 9999px; text-decoration: none; color: var(--muted); font-size: .875rem; font-weight: 500; transition: color .15s, background .15s; }
.nav-link:hover { color: var(--navy); background: var(--mist); }
.nav-link.is-active { color: var(--navy); }
.nav-link.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; border-radius: 9999px; width: 40px; height: 40px; font-size: 1.4rem; color: var(--navy); cursor: pointer; }
.nav-toggle:hover { background: var(--mist); }
@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-right { position: absolute; top: calc(var(--header-h) - 6px); left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 8px; background: var(--surface); padding: 10px; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); display: none; }
  .nav-right.is-open { display: flex; }
  .nav-links { flex-direction: column; }
  .nav-link { padding: 12px 12px; font-size: .95rem; }
  .nav-link.is-active::after { left: 12px; right: auto; width: 24px; bottom: 6px; }
  .nav-cta { justify-content: center; }
}

/* ---------- Buttons: every button is a pill ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 9999px; border: 1px solid transparent; font-weight: 500; font-size: .875rem; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--on-accent); box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-outline { background: var(--surface); color: var(--navy); box-shadow: var(--shadow-btn-2); }
.btn-outline:hover { background: var(--mist); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--mist); color: var(--navy); }
.btn-light { background: var(--surface); color: var(--navy); box-shadow: var(--shadow-btn-2); }
.btn-light:hover { background: var(--mist); }
.btn-lg { padding: 12px 24px; font-size: .95rem; }
.btn-sm { padding: 7px 14px; font-size: .8125rem; }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-row.center { justify-content: center; }

/* ---------- Home ---------- */
.hero { display: flex; flex-direction: column; align-items: center; padding: clamp(28px, 5vw, 56px) 24px 48px; text-align: center; }
.announce { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 9999px; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--navy); font-size: .875rem; font-weight: 500; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.announce:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.announce .tag { padding: 2px 9px; border-radius: 9999px; background: #e9f1ff; color: #1b5ed1; font-size: .75rem; font-weight: 600; }
.announce i { font-size: .8rem; color: var(--muted); }
.announce .short { display: none; }
@media (max-width: 620px) { .announce .short { display: inline; } .announce .long { display: none; } }
.hero h1 { max-width: 12em; margin-bottom: 20px; font-weight: 600; font-size: clamp(2.5rem, 6.4vw, 3.75rem); line-height: 1.08; letter-spacing: -.05em; text-wrap: balance; }
.lead { max-width: 560px; margin: 0 auto 28px; font-size: 1.125rem; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; }
.link-text { color: var(--navy); font-size: .875rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; transition: border-color .2s; }
.link-text:hover { border-color: var(--navy); }
.link-text[hidden] { display: none; }

/* A flat lavender band with the bridge card floating on it. */
.band { position: relative; padding: 0 24px; }
.band::before { content: ""; position: absolute; left: 0; right: 0; top: 72px; bottom: 72px; background: var(--blue); }
.site-card { position: relative; max-width: 1120px; margin: 0 auto; padding: 16px 16px 20px; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }
/* the readiness bridge: dashed slots are the gap, colored pieces are what has been built across it */
.bridge svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.br-rock { fill: var(--linen); stroke: var(--navy); stroke-width: 1.2; stroke-linejoin: round; }
.br-strata { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-linecap: round; }
.br-grass { fill: var(--mint-wash); stroke: var(--navy); stroke-width: 1.2; stroke-linejoin: round; }
.br-water { fill: none; stroke: var(--line); stroke-width: 1.2; }
.br-side { font-size: 15px; font-weight: 500; fill: var(--navy); letter-spacing: -.01em; }
.br-gap { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.br-gap-text { font-size: 13px; font-style: italic; fill: var(--muted); }
.br-ghost { fill: none; stroke: #cfcfcf; stroke-width: 1; stroke-dasharray: 3 3; }
.br-solid { opacity: 0; transform: translateY(-46px); transition: transform .55s cubic-bezier(.2, .9, .3, 1.15), opacity .25s; }
.br-solid rect { stroke-width: 1.2; }
.br-solid path { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.br-solid .br-web { stroke: none !important; opacity: .45; }
.br-piece.is-in .br-solid { opacity: 1; transform: none; }
.br-piece.is-cap .br-solid rect { fill: #cfe2fa; }
.br-piece.is-cap .br-solid .br-web { fill: #e1edfc; }
.br-piece.is-cap .br-solid * { stroke: var(--cap-color); }
.br-piece.is-comp .br-solid rect { fill: #fbdcbf; }
.br-piece.is-comp .br-solid .br-web { fill: #fde9d6; }
.br-piece.is-comp .br-solid * { stroke: var(--comp-color); }
.br-label { font-size: 13px; font-weight: 500; fill: #a3a3a3; transition: fill .3s; }
.br-piece.is-in .br-label { fill: var(--navy); }
.br-pole { fill: none; stroke: #bdbdbd; stroke-width: 1.4; stroke-linecap: round; transition: stroke .3s; }
.br-cloth { fill: var(--surface); stroke: #bdbdbd; stroke-width: 1.2; stroke-dasharray: 3 3; stroke-linejoin: round; transition: fill .3s .3s, stroke .3s .3s; }
.br-flag.is-on .br-pole { stroke: var(--navy); }
.br-flag.is-on .br-cloth { fill: var(--blue); stroke: var(--navy); stroke-dasharray: 3 0; }
.bridge-sides { display: none; justify-content: space-between; gap: 16px; margin-top: 6px; font-size: .8125rem; font-weight: 500; }
.bridge-sides span { max-width: 9em; }
.bridge-sides span:last-child { text-align: right; }
.bridge-chips { display: none; list-style: none; margin: 8px 0 4px; padding: 0; flex-wrap: wrap; justify-content: center; gap: 6px; }
.bridge-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px dashed var(--line-strong); border-radius: 9999px; font-size: .75rem; color: var(--muted); transition: color .3s, border-color .3s, background .3s; }
.bridge-chips .dot { width: 8px; height: 8px; border-radius: 2px; margin: 0; background: var(--line-strong); transition: background .3s; }
.bridge-chips li.is-in { border-style: solid; color: var(--navy); background: var(--surface); }
.bridge-chips li.is-cap.is-in .dot { background: var(--cap-color); }
.bridge-chips li.is-comp.is-in .dot { background: var(--comp-color); }
.bridge-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; margin: 4px 0 10px; font-size: .875rem; color: var(--muted); }
.bridge-legend span { display: inline-flex; align-items: center; gap: 8px; }
.bridge-legend .dot { width: 11px; height: 11px; border-radius: 3px; margin: 0; }
.br-dot-cap { background: var(--cap-color); }
.br-dot-comp { background: var(--comp-color); }
@media (max-width: 700px) { .br-label, .br-gap-text { display: none; } .br-side { display: none; } .bridge-chips { display: flex; } .bridge-sides { display: flex; } }
.ready-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; max-width: 760px; margin: 6px auto 0; padding: 0 12px; }
.ready-row label { font-size: .875rem; font-weight: 500; }
.ready-out { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 10.5em; font-size: .875rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ready-out .dot { width: 9px; height: 9px; border-radius: 50%; margin: 0; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; --p: 0%; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 9999px; background: linear-gradient(to right, var(--blue) var(--p), var(--line) var(--p)); }
.range::-moz-range-track { height: 6px; border-radius: 9999px; background: var(--line); }
.range::-moz-range-progress { height: 6px; border-radius: 9999px; background: var(--blue); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); transition: transform .15s; }
.range::-moz-range-thumb { width: 22px; height: 22px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--focus); outline-offset: 2px; }
.range:focus-visible::-moz-range-thumb { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 900px) { .band { padding: 0 12px; } .site-card { border-radius: 20px; } }
@media (max-width: 620px) {
  .ready-row { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .ready-row .range { grid-column: 1 / -1; grid-row: 2; }
  .ready-out { min-width: 0; }
}

/* the six areas the assessment covers: the "Owner Readiness" radial diagram */
.areas { padding: 88px 24px 0; text-align: center; }
.radial { position: relative; width: 740px; max-width: 100%; height: 440px; margin: 28px auto 0; }
.radial > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.radial-nodes { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.rnode { position: absolute; left: calc(50% + var(--dx)); top: calc(50% + var(--dy)); width: 54px; height: 54px; transform: translate(-50%, -50%); outline: none; }
.rnode-ico { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); font-size: 1.25rem; color: var(--accent-text); transition: background .2s, color .2s, border-color .2s, transform .2s; }
.rnode-txt { position: absolute; top: 50%; width: 158px; transform: translateY(-50%); }
.rnode-l .rnode-txt { right: calc(100% + 16px); text-align: right; }
.rnode-r .rnode-txt { left: calc(100% + 16px); text-align: left; }
.rnode-txt b { display: block; font-size: .95rem; font-weight: 500; line-height: 1.25; color: var(--navy); }
.rnode-txt small { display: block; margin-top: 3px; font-size: .78rem; line-height: 1.35; color: var(--muted); }
.rnode:hover .rnode-ico, .rnode:focus-visible .rnode-ico, .rnode.is-active .rnode-ico { background: var(--blue); border-color: var(--blue); color: var(--on-accent); transform: scale(1.07); }
.rnode:focus-visible .rnode-ico { outline: 2px solid var(--focus); outline-offset: 3px; }
.sec { transform-box: view-box; transform-origin: center; animation: secIn .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--k) * 70ms + 200ms); }
.sec path { transition: fill .25s; }
.sec-a { fill: rgba(145, 141, 246, var(--a)); }
.sec-b { fill: rgba(145, 141, 246, calc(var(--a) * .5)); }
.sec.is-active .sec-a { fill: rgba(145, 141, 246, .68); }
.sec.is-active .sec-b { fill: rgba(145, 141, 246, .36); }
.conn line { stroke: rgba(145, 141, 246, .55); stroke-width: 1; transition: stroke .2s; }
.conn circle { fill: #b9b6fa; transition: fill .2s; }
.conn.is-active line { stroke: var(--blue); }
.conn.is-active circle { fill: var(--blue); }
.ring-dots { fill: none; stroke: rgba(145, 141, 246, .7); stroke-width: 1; stroke-dasharray: 1 5.5; stroke-linecap: round; }
.ring-hub { fill: var(--surface); stroke: rgba(145, 141, 246, .5); stroke-width: 1; }
.ring-hub-2 { fill: none; stroke: rgba(145, 141, 246, .22); stroke-width: 1; }
.ring-label { font-family: var(--font); font-weight: 500; font-size: 17px; letter-spacing: -.02em; fill: var(--navy); text-anchor: middle; }
.ring-rule { stroke: var(--line-strong); stroke-width: 1; }
@keyframes secIn { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@media (max-width: 799px) {
  .radial { height: auto; margin-top: 34px; }
  .radial > svg { position: relative; display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; aspect-ratio: 260 / 300; }
  .radial .conn { display: none; }
  .radial-nodes { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; margin-top: 22px; text-align: left; }
  .rnode { position: static; display: flex; align-items: center; gap: 12px; width: auto; height: auto; transform: none; }
  .rnode-ico { flex: none; width: 46px; height: 46px; font-size: 1.1rem; }
  .rnode-txt { position: static; width: auto; transform: none; }
  .rnode-l .rnode-txt, .rnode-r .rnode-txt { text-align: left; }
}
@media (max-width: 480px) { .radial-nodes { grid-template-columns: 1fr; } }

/* how it works */
.how { padding: 72px 0 8px; text-align: center; }
.kicker-line { margin-bottom: 10px; font-size: .875rem; font-weight: 500; color: var(--accent-text); }
.h-display { max-width: 18em; margin: 0 auto 14px; font-size: clamp(1.75rem, 3.6vw, 2.25rem); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.how .copy, .closing-card p { max-width: 560px; margin: 0 auto; color: var(--muted); text-wrap: pretty; }
/* worked example: a four-step diagram of one sample assessment */
.walk-tag { display: inline-flex; align-items: center; gap: 8px; margin: 28px auto 0; padding: 6px 14px; border: 1px solid var(--line); border-radius: 9999px; font-size: .8125rem; font-weight: 500; color: var(--muted); }
.dg { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 12px; max-width: 940px; margin: 28px auto 0; padding: 0; list-style: none; }
.dg-node h3 { margin-top: 14px; font-size: 1.05rem; }
.dg-node p { margin: 4px auto 0; max-width: 16em; font-size: .875rem; color: var(--muted); text-wrap: balance; }
.dg-tile { position: relative; display: grid; place-items: center; height: 148px; border: 1px solid var(--line); border-radius: 16px; background: var(--linen); }
.dg-num { position: absolute; left: 10px; top: 10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: var(--on-accent); font-size: .75rem; font-weight: 600; }
.dg-arrow { display: grid; place-items: center; height: 148px; color: var(--ash); font-size: 1.25rem; }
.dg-survey { display: grid; gap: 12px; }
.dg-q { display: flex; align-items: center; gap: 7px; }
.dg-line { width: 46px; height: 6px; margin-right: 5px; border-radius: 3px; background: var(--line-strong); }
.dg-q:nth-child(2) .dg-line { width: 34px; margin-right: 17px; }
.dg-q i { width: 14px; height: 14px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.dg-q i.is-on { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px var(--surface); }
.dg-eval { display: grid; place-items: center; width: 84px; height: 84px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); color: var(--accent-text); font-size: 2.6rem; line-height: 1; }
.dg-ring { position: relative; width: 96px; height: 96px; }
.dg-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dg-ring-track { fill: none; stroke: var(--track); stroke-width: 9; }
.dg-ring-fill { fill: none; stroke-width: 9; stroke-linecap: round; }
.dg-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.25rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dg-docs { display: flex; gap: 12px; }
.dg-doc { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dg-doc i { font-size: 2.4rem; line-height: 1; color: var(--accent-text); }
.dg-doc:nth-child(2) i { color: var(--navy); }
.dg-doc small { font-size: .6875rem; color: var(--muted); text-transform: capitalize; }
.walk-cta { margin-top: 32px; }
@media (max-width: 760px) {
  .dg { grid-template-columns: 1fr; max-width: 300px; gap: 6px; }
  .dg-arrow { height: 34px; }
  .dg-arrow i { transform: rotate(90deg); }
  .dg-node { padding-bottom: 6px; }
}

/* what the assessment covers: metric cards with real counts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 860px; margin: 24px auto 0; padding: 0; }
.fact { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: left; }
.fact dt { font-size: 2.25rem; font-weight: 500; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fact dd { margin: 0; font-size: .8125rem; line-height: 1.35; color: var(--muted); }
.facts-note { display: inline-flex; align-items: center; gap: 8px; margin: 24px auto 0; padding: 7px 14px; border-radius: 9999px; background: var(--mint-wash); color: var(--mint-text); font-size: .8125rem; font-weight: 500; text-align: left; }
.facts-note i { font-size: 1rem; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } .facts-note { border-radius: 16px; } }

/* closing call to action */
.closing { padding: 80px 0 0; text-align: center; }
.closing-card { padding: 64px 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--linen); }
.closing-card p { margin-bottom: 28px; }

/* partners */
.partners { padding: 72px 0 88px; text-align: center; }
.subhead { margin-bottom: 24px; font-size: .875rem; font-weight: 500; color: var(--muted); }
.partner-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 64px; }
.partner-logo { width: auto; height: 56px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.partner-logo.wide { height: 66px; }
.partner-logo:hover { filter: none; opacity: 1; }
.partners .partner-row + .subhead { margin-top: 48px; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 40px 0 8px; text-align: center; }
.page-head h1 { font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -.03em; }
.page-head p { color: var(--muted); margin: 8px auto 0; max-width: 620px; }
.page-body { padding: 22px 0 72px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 24px; }
.card-head { padding: 16px 24px; border-bottom: 1px solid var(--line); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.card-head i { color: var(--accent-text); }

/* ---------- Assessment ---------- */
.sticky-bar { position: sticky; top: var(--header-h); z-index: 30; background: var(--glass); backdrop-filter: blur(10px); padding: 12px 0 0; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.progress-line { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.progress-line strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.progress { height: 8px; border-radius: 9999px; background: var(--track); overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 9999px; background: var(--blue); transition: width .35s ease; }
.stepper { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.step-tab { flex: 1 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 0; border-bottom: 3px solid transparent; background: transparent; cursor: pointer; color: var(--muted); font-weight: 600; font-size: .92rem; text-align: left; white-space: nowrap; }
.step-tab .step-badge { width: 26px; height: 26px; border-radius: 50%; background: var(--track); color: var(--muted); display: grid; place-items: center; font-size: .8rem; flex: none; }
.step-tab:hover { color: var(--navy); }
.step-tab.is-active { color: var(--navy); border-bottom-color: var(--blue); }
.step-tab.is-active .step-badge { background: var(--blue); color: var(--on-accent); }
.step-tab.is-done .step-badge { background: var(--r-green); color: #fff; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.label { font-weight: 600; font-size: .92rem; }
.hint { color: var(--muted); font-size: .84rem; }
.input, .select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(145, 141, 246, .3); }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='3' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 15px; border: 1.5px solid var(--line-strong); border-radius: 9999px; font-size: .9rem; font-weight: 600; color: var(--muted); background: var(--surface); transition: all .15s; }
.chip:hover span { border-color: var(--focus); color: var(--navy); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--on-accent); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius-sm); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.consent span { font-size: .92rem; }
.section-title { font-size: 1.05rem; margin: 30px 0 14px; display: flex; align-items: center; gap: 10px; }
.section-title:first-child { margin-top: 0; }
.section-title i { color: var(--accent-text); }
.nav-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.nav-actions.end { justify-content: flex-end; }

.cat-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cat-counter { text-align: center; font-weight: 600; font-size: .92rem; color: var(--navy); }
.cat-counter small { display: block; font-weight: 500; color: var(--muted); }
.cat-dots { display: flex; gap: 6px; justify-content: center; margin-top: 6px; }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); border: 0; padding: 0; cursor: pointer; }
.cat-dot.is-active { background: var(--blue); width: 22px; border-radius: 9999px; }
.cat-dot.is-done { background: var(--r-green); }
.scope-card { margin: 18px 0 8px; padding: 20px 22px; display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); }
.scope-intro { margin: 0; font-size: .95rem; }
.scope-text { resize: vertical; min-height: 96px; line-height: 1.5; }
.scope-result { margin-bottom: 18px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); }
.scope-result h3 { margin: 0 0 8px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.scope-result .scope-level { display: inline-block; margin-bottom: 8px; padding: 3px 12px; border-radius: 9999px; background: var(--blue-50); color: var(--blue-600); font-weight: 600; font-size: .88rem; }
.scope-result p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cat-title { font-size: 1.5rem; font-weight: 500; margin: 22px 0 4px; letter-spacing: -.03em; }
@media (max-width: 760px) {
  .stepper { gap: 0; }
  .step-tab { flex: 1 1 0; min-width: 0; padding: 10px 2px; gap: 4px; justify-content: center; font-size: .74rem; }
  .step-tab { white-space: normal; text-align: left; line-height: 1.2; }
  .step-tab .step-badge { width: 18px; height: 18px; font-size: .68rem; }
}
.cat-desc { color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.cat-instruction { font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.notice { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); font-size: .88rem; margin-top: 18px; }
.notice-warn { background: #fff7e0; border: 1px solid #f7dc8a; color: #7a5b00; }
.notice-ok { background: #e7f6ee; border: 1px solid #b6e2c7; color: #12633b; }
.notice-info { background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-600); }
.notice-danger { background: #fdecee; border: 1px solid #f5b8bf; color: #8c1d2a; }

/* rating group */
.rate-group { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rate-cap-title { padding: 14px 20px; font-weight: 600; background: var(--linen); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.rate-cap-title .tag { flex: none; font-size: .75rem; font-weight: 600; color: var(--muted); background: var(--mist); border-radius: 9999px; padding: 3px 10px; align-self: flex-start; }
.rate-cap-title .tag.done { background: #e7f6ee; color: #12633b; }
.rate-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); }
.rate-head { display: contents; }
.rate-head > div { padding: 12px 14px; background: var(--linen); border-bottom: 1px solid var(--line); font-size: .82rem; }
.rate-head .corner { font-weight: 600; color: var(--muted); }
.rate-head .col-title { font-weight: 600; color: var(--navy); display: block; }
.rate-head .col-desc { color: var(--muted); font-weight: 400; font-size: .78rem; line-height: 1.35; display: block; margin-top: 2px; }
.rate-row { display: contents; }
.rate-q { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; font-size: .95rem; }
.rate-opt { position: relative; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); display: block; cursor: pointer; min-height: 56px; transition: background .12s; }
.rate-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.rate-opt .mark { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.rate-opt .mark::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); transition: all .15s; }
.rate-opt:hover { background: var(--blue-50); }
.rate-opt:hover .mark::before { border-color: var(--focus); }
.rate-opt input:checked ~ .mark::before { border-color: var(--focus); background: var(--blue) radial-gradient(circle, #fff 30%, transparent 33%); box-shadow: 0 0 0 4px rgba(145, 141, 246, .3); }
.rate-opt.is-checked { background: var(--blue-50); }
.rate-opt input:focus-visible ~ .mark::before { outline: 2px solid var(--focus); outline-offset: 2px; }
.mark-title { display: none; font-size: .78rem; font-weight: 600; color: var(--muted); }
.rate-row:last-child > * { border-bottom: 0; }
.mobile-only { display: none; }
@media (max-width: 760px) {
  .mobile-only { display: block; }
  .rate-grid { grid-template-columns: repeat(3, 1fr); }
  .rate-head { display: none; }
  .rate-q { grid-column: 1 / -1; padding: 14px 16px 6px; border-bottom: 0; background: var(--surface); }
  .rate-opt { border-left: 0; border-bottom: 0; min-height: 66px; border-top: 1px solid var(--line); }
  .rate-opt + .rate-opt { border-left: 1px solid var(--line); }
  .rate-opt .mark { flex-direction: row; gap: 8px; }
  .rate-opt .mark::before { width: 18px; height: 18px; }
  .mark-title { display: inline; }
  .rate-q + .rate-opt { border-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
}
.scale-legend { display: none; margin: 14px 0 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .82rem; }
.scale-legend div + div { margin-top: 6px; }
@media (max-width: 760px) { .scale-legend { display: block; } }

/* organization questions */
.stack-sm { display: grid; gap: 10px; }
.other-box { max-width: 380px; }
.other-box[hidden], .chip[hidden] { display: none; }
.chip-sm span { padding: 5px 12px; font-size: .84rem; }
.picker { border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.picker[open] { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(145, 141, 246, .3); }
.picker-summary { list-style: none; cursor: pointer; padding: 11px 38px 11px 14px; color: var(--muted); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='3' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.picker-summary::-webkit-details-marker { display: none; }
.picker-panel { display: grid; gap: 12px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.state-grid { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow-y: auto; padding: 2px; }
.picked { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.picked:empty { display: none; }
.pill-x { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 12px; border: 1px solid var(--line-strong); border-radius: 9999px; background: var(--blue-50); color: var(--blue-600); font: inherit; font-size: .84rem; font-weight: 500; cursor: pointer; }
.pill-x:hover { background: var(--blue-100); }
.pill-x i { font-size: .7rem; }

/* section tiles (Module 0) */
.demo { display: grid; gap: 18px; }
.tiles { display: grid; gap: 14px; }
.tile { scroll-margin-top: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.tile:hover { border-color: var(--line-strong); }
.tile.is-open { border-color: var(--line-strong); box-shadow: var(--shadow); }
.tile-head { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; column-gap: 18px; width: 100%; padding: 24px 26px; background: none; border: 0; border-radius: 16px; color: inherit; text-align: left; cursor: pointer; }
.tile-head:focus-visible { outline-offset: -3px; }
.tile-ico { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--blue-50); color: var(--accent-text); font-size: 1.45rem; transition: background .2s, color .2s; }
.tile.is-open .tile-ico { background: var(--blue); color: var(--on-accent); }
.tile-check { position: absolute; right: -3px; bottom: -3px; display: none; place-items: center; width: 21px; height: 21px; border: 2px solid #fff; border-radius: 50%; background: var(--r-green); color: #fff; font-size: .68rem; }
.tile.is-done .tile-check { display: grid; }
.tile-title { min-width: 0; }
.tile-title b { display: block; font-size: 1.32rem; font-weight: 500; line-height: 1.2; color: var(--navy); letter-spacing: -.03em; }
.tile-title small { display: block; margin-top: 3px; font-size: .92rem; color: var(--muted); }
.tile-count { padding: 5px 14px; border-radius: 9999px; background: var(--mist); color: var(--muted); font-size: .8rem; font-weight: 500; white-space: nowrap; }
.tile.is-done .tile-count { background: #e7f6ee; color: #12633b; }
.tile-chev { font-size: 1.1rem; color: var(--muted); transition: transform .3s; }
.tile.is-open .tile-chev { transform: rotate(180deg); }
.tile-body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .32s ease, visibility 0s .32s; }
.tile.is-open .tile-body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .32s ease, visibility 0s; }
.tile-body-inner { min-height: 0; overflow: hidden; }
.tile-fields { display: grid; gap: 28px; margin: 0 26px; padding: 26px 0 26px; border-top: 1px solid var(--line); }
.tile-next { display: flex; justify-content: flex-end; padding: 0 26px 26px; margin-top: -6px; }
/* Once every question in a tile is answered, Continue turns light green so the next step stands out. */
.tile-next .btn { transition: background .25s, border-color .25s, color .25s, box-shadow .25s; }
.tile.is-done .tile-next .btn { background: #d3eedf; border-color: #86c9a3; color: #0f5f38; box-shadow: 0 6px 16px -10px rgba(25, 135, 84, .7); }
.tile.is-done .tile-next .btn:hover { background: #c1e7d2; border-color: #5fb987; }
@media (max-width: 600px) {
  .tile-head { grid-template-columns: auto 1fr auto; column-gap: 14px; padding: 18px 16px; }
  .tile-ico { grid-row: 1 / span 2; width: 46px; height: 46px; font-size: 1.2rem; }
  .tile-count { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 8px; }
  .tile-chev { grid-column: 3; grid-row: 1 / span 2; }
  .tile-title b { font-size: 1.15rem; }
  .tile-fields { margin: 0 16px; }
  .tile-next { padding: 0 16px 20px; }
}

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 26px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 12px 18px; border: 0; background: none; font-weight: 600; font-size: .93rem; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--navy); }
.tab.is-active { color: var(--navy); border-bottom-color: var(--blue); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fadeUp .3s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Results ---------- */
.toolbar { margin-bottom: 8px; }
.score-hero { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding: 32px; }
.dial { position: relative; width: 240px; height: 240px; flex: none; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial-track { fill: none; stroke: var(--track); stroke-width: 16; }
.dial-fill { fill: none; stroke-width: 16; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1); }
.dial-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.dial-pct { font-size: 3.1rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.dial-sub { font-size: .8rem; color: var(--muted); margin-top: 6px; font-weight: 600; }
.score-label { display: inline-block; padding: 5px 14px; border-radius: 9999px; color: #fff; font-weight: 600; font-size: .85rem; margin-bottom: 12px; }
.score-label.dark { color: #212529; }
.score-hero h2 { font-weight: 500; font-size: 1.7rem; margin-bottom: 10px; letter-spacing: -.03em; }
.score-hero p.advice { color: var(--muted); margin-bottom: 22px; }
.readiness-bar { position: relative; padding-top: 34px; }
.readiness-swatches { display: flex; height: 12px; border-radius: 9999px; overflow: hidden; }
.readiness-marker { position: absolute; top: 0; transform: translateX(-50%); text-align: center; font-size: .72rem; font-weight: 600; color: var(--navy); transition: left 1s cubic-bezier(.2, .8, .2, 1); white-space: nowrap; }
.readiness-marker i { display: block; font-style: normal; font-size: .8rem; line-height: 1; margin-top: 1px; }
.readiness-swatches span { flex: 0 0 auto; }
.readiness-ticks { position: relative; height: 16px; margin-top: 4px; }
.readiness-ticks span { position: absolute; top: 0; transform: translateX(-50%); font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.readiness-ticks span::before { content: ""; position: absolute; left: 50%; top: -5px; height: 4px; border-left: 1px solid var(--line-strong); }
.readiness-ends { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 860px) { .score-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 26px 20px; gap: 24px; } .readiness-bar { width: 100%; } .dial { width: 210px; height: 210px; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.mt { margin-top: 24px; }
.mini-score { padding: 22px 24px; }
.mini-score h3 { font-size: 1rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.mini-score .desc { font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.mini-score .val { font-size: 2rem; font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }
.mini-score .lvl { font-size: .84rem; color: var(--muted); }
.meter { height: 10px; border-radius: 9999px; background: var(--track); overflow: hidden; margin-top: 10px; }
.meter-fill { height: 100%; border-radius: 9999px; width: 0; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.cat-row { margin-bottom: 16px; }
.cat-row-top { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; margin-bottom: 5px; }
.cat-row-top b { font-variant-numeric: tabular-nums; }
.cat-row .meter { margin-top: 0; height: 9px; }
.h-section { font-size: 1.15rem; margin-bottom: 4px; }
.h-sub { font-size: .95rem; font-weight: 600; margin-bottom: 14px; color: var(--navy); }

/* priority tab header + the priority/category grouping toggle */
.prio-tab-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 20px; margin-bottom: 18px; }
.prio-tab-head .h-section { margin-bottom: 4px; }
.view-toggle { flex: none; display: inline-flex; padding: 3px; gap: 2px; background: var(--mist); border-radius: 9999px; }
.view-toggle-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 0; border-radius: 9999px; background: none; color: var(--muted); font-size: .82rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.view-toggle-btn:hover { color: var(--navy); }
.view-toggle-btn.is-active { background: var(--surface); color: var(--navy); box-shadow: var(--shadow-btn-2); }
@media (max-width: 560px) { .prio-tab-head { flex-direction: column; } .view-toggle { align-self: stretch; } .view-toggle-btn { flex: 1; justify-content: center; } }

.prio-band { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.prio-band-title { padding: 12px 20px; font-weight: 600; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.prio-band-title .count { background: rgba(255, 255, 255, .25); border-radius: 9999px; padding: 2px 12px; font-size: .82rem; }
.prio-high .prio-band-title { background: var(--r-red); }
.prio-medium .prio-band-title { background: var(--r-orange); color: #181925; }
.prio-medium .prio-band-title .count { background: rgba(24, 25, 37, .12); }
.prio-low .prio-band-title { background: var(--r-green); }
.prio-cat .prio-band-title { background: var(--inv-bg); }
.prio-none .prio-band-title { background: var(--mist); color: var(--muted); }
.prio-none .prio-band-title .count { background: var(--line); }
.badge.badge-none { background: var(--mist); color: var(--muted); border: 1px solid var(--line-strong); }
.cat-row.is-none b { font-weight: 500; color: var(--muted); }
.gap-unscored { margin: 14px 2px 0; font-size: .85rem; color: var(--muted); }
.prio-empty { padding: 16px 20px; color: var(--muted); font-size: .9rem; }

/* per-item priority badge, shown in the "by category" view in place of the band color */
.prio-mini-badge { display: inline-block; margin-right: 7px; padding: 1px 7px; border-radius: 9999px; font-size: .64rem; font-weight: 600; letter-spacing: .03em; color: #fff; vertical-align: middle; }
.prio-mini-high { background: var(--r-red); }
.prio-mini-medium { background: var(--r-orange); color: #181925; }
.prio-mini-low { background: var(--r-green); }

/* priority item cards — each opens in place to show its training resources */
.prio-items { padding: 4px 0; }
.prio-item { border-top: 1px solid var(--line); }
.prio-item:first-child { border-top: 0; }
.prio-item > summary { list-style: none; cursor: pointer; }
.prio-item > summary::-webkit-details-marker { display: none; }
.prio-item-head { display: flex; align-items: center; gap: 14px; padding: 14px 20px; transition: background .15s; }
.prio-item.is-empty .prio-item-head { cursor: default; }
details.prio-item > summary:hover, details.prio-item[open] > summary { background: var(--blue-50); }
.prio-item-main { flex: 1; min-width: 0; }
.prio-item-label { font-size: .93rem; font-weight: 500; line-height: 1.4; }
.prio-item-meta { margin-top: 3px; font-size: .78rem; color: var(--muted); }
.res-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 9999px; background: var(--blue-50); color: var(--blue-600); font-size: .74rem; font-weight: 600; white-space: nowrap; }
.res-chip-empty { background: var(--mist); color: var(--muted); }
.prio-item-chevron { flex: none; font-size: .85rem; color: var(--muted); transition: transform .25s; }
details.prio-item[open] > summary .prio-item-chevron { transform: rotate(180deg); }
.prio-item-body { padding: 4px 20px 18px; border-top: 1px dashed var(--line); margin: 0 20px; }
.prio-item-body .res:first-of-type { padding-top: 12px; }
@keyframes prioFlash { 0%, 100% { background: transparent; } 30% { background: var(--blue-100); } }
.prio-item.is-flash .prio-item-head { animation: prioFlash 1.6s ease; }

/* task gap analysis: readiness scatter chart */
.gap-chart-card { padding: 18px; }
.gap-chart-scroll { overflow-x: auto; }
.gap-chart-inner { min-width: 840px; }
.gap-chart-frame { position: relative; width: 100%; aspect-ratio: 1040 / 340; }
.gap-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gap-grid { stroke: var(--line); stroke-width: 1; }
.gap-sep { stroke: var(--line); stroke-width: 1; opacity: .6; }
.gap-border { stroke: var(--line-strong); stroke-width: 1; }
.gap-axis-label { font-size: 11px; font-family: var(--font); fill: var(--muted); }
.gap-axis-title { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-family: var(--font); fill: var(--muted); }
.gap-plot-overlay { position: absolute; inset: 0; }
.gap-dot { position: absolute; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; transform: translate(-50%, -50%); }
.gap-dot-mark { display: block; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); transition: transform .15s, box-shadow .15s; }
.gap-dot:hover .gap-dot-mark, .gap-dot:focus-visible .gap-dot-mark { transform: scale(1.25); }
.gap-dot:focus-visible { outline: none; }
.gap-dot:focus-visible .gap-dot-mark { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px rgba(145, 141, 246, .5); }
.gap-dot.is-selected .gap-dot-mark { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--navy); transform: scale(1.3); }
.gap-dot.is-dim { opacity: .18; }
/* Phase names: horizontal, one per plot column, wrapping onto extra lines when long. The arrow
   underneath (left to right) shows the order of the project phases in place of numbering. */
.gap-phase-axis { margin-top: 8px; }
.gap-phase-labels { display: grid; gap: 0; }
.gap-phase-label { display: block; width: 100%; padding: 5px 3px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: .74rem; font-weight: 600; line-height: 1.3; text-align: center; text-wrap: balance; overflow-wrap: break-word; cursor: pointer; transition: background .15s, color .15s; }
.gap-phase-label:hover { color: var(--navy); background: var(--mist); }
.gap-phase-label.is-active { background: var(--inv-bg); color: var(--inv-text); }
.gap-phase-arrow { position: relative; height: 18px; margin-top: 10px; }
.gap-phase-arrow::before { content: ""; position: absolute; left: 0; right: 1px; top: 50%; height: 1px; background: var(--line-strong); }
.gap-phase-arrow::after { content: ""; position: absolute; right: 2px; top: 50%; width: 8px; height: 8px; border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); transform: translateY(-50%) rotate(45deg); }
.gap-phase-arrow-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 0 12px; background: var(--surface); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.gap-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; margin: 16px 2px 0; }
.gap-levels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: .78rem; color: var(--muted); }
.gap-levels-title { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .7rem; color: var(--ink); }
.gap-level { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.gap-level { color: var(--ink); font-weight: 600; }
.gap-level .dot { width: 11px; height: 11px; border-radius: 50%; margin: 0; }
.gap-list { margin-top: 4px; }
.gap-detail { padding: 20px; }
.gap-detail.is-empty { background: var(--linen); }
.gap-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.gap-detail-pct { font-size: 1.6rem; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.gap-detail-title { font-size: 1.1rem; font-weight: 500; margin-bottom: 4px; }
@media (max-width: 760px) { .gap-legend { flex-direction: column; align-items: flex-start; } }

.ex-placeholder { color: var(--muted); font-size: .9rem; padding: 28px 8px; text-align: center; }
.ex-list { display: flex; flex-direction: column; gap: 8px; }
.ex-card { width: 100%; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-left-width: 5px; border-radius: 10px; padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; transition: box-shadow .15s, border-color .15s, transform .15s; display: block; }
.ex-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.ex-card.is-selected { border-color: var(--blue); background: var(--blue-50); box-shadow: 0 0 0 3px rgba(145, 141, 246, .3); }
.ex-card.high { border-left-color: var(--r-red); }
.ex-card.medium { border-left-color: var(--r-orange); }
.ex-card.low { border-left-color: var(--r-green); }
.ex-card.plain { border-left-width: 1.5px; }
.gap-group { margin-top: 26px; }
.gap-group-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1.15rem; font-weight: 500; }
.gap-group-title .count { padding: 1px 10px; border-radius: 9999px; background: var(--mist); color: var(--muted); font-size: .8rem; font-weight: 500; }
.ex-title { font-weight: 600; font-size: .9rem; line-height: 1.35; }
.ex-meta { font-size: .76rem; color: var(--muted); margin-top: 6px; }
.ex-link-cta { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .78rem; font-weight: 600; color: var(--accent-text); }
.ex-link-cta.is-muted { color: var(--muted); font-weight: 500; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 9999px; font-size: .7rem; font-weight: 600; letter-spacing: .04em; color: #fff; }
.badge-high { background: var(--r-red); }
.badge-medium { background: var(--r-orange); color: #181925; }
.badge-low { background: var(--r-green); }
.res { padding: 12px 0; border-top: 1px solid var(--line); }
.res:first-of-type { border-top: 0; padding-top: 4px; }
.res-name { font-weight: 600; font-size: .88rem; word-break: break-word; }
.res-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pill { font-size: .7rem; font-weight: 600; background: var(--mist); color: var(--muted); border-radius: 9999px; padding: 2px 9px; text-transform: capitalize; }
.pill.free { background: #e7f6ee; color: #12633b; }
.pill.paid { background: #fff1d6; color: #7a5200; }
.res-loc { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.legend-inline { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

.action-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }

/* compare */
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 28px; text-align: center; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--blue); background: var(--blue-50); }
.dropzone i { font-size: 1.8rem; color: var(--accent-text); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
table.tbl { border-collapse: collapse; width: 100%; font-size: .88rem; }
.tbl th, .tbl td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { background: var(--linen); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.tbl tbody tr:hover { background: var(--linen); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num { font-variant-numeric: tabular-nums; font-weight: 600; }
.heat-cell { font-weight: 600; text-align: center !important; }
.bar-chart { display: grid; gap: 18px; padding: 22px; }
.bar-group-title { font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.bar-line { display: grid; grid-template-columns: 96px 1fr 52px; gap: 12px; align-items: center; margin-bottom: 6px; font-size: .84rem; }
.bar-line .bar { height: 14px; border-radius: 9999px; background: var(--track); overflow: hidden; }
.bar-line .bar > span { display: block; height: 100%; border-radius: 9999px; }
.bar-line b { text-align: right; font-variant-numeric: tabular-nums; }
.stack { display: flex; height: 22px; border-radius: 9999px; overflow: hidden; background: var(--track); }
.stack span { display: block; height: 100%; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--muted); }
.compare-h { font-size: 1.05rem; margin: 30px 0 12px; }

/* ---------- Documentation ---------- */
.doc-layout { display: grid; grid-template-columns: 230px 1fr; gap: 48px; align-items: start; }
.doc-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: .88rem; }
.doc-toc b { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.doc-toc a { display: block; padding: 6px 12px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; }
.doc-toc a:hover { color: var(--navy); border-color: var(--line-strong); }
.doc-toc a.is-active { color: var(--navy); border-color: var(--blue); font-weight: 500; }
.doc { max-width: 740px; }
.doc h2 { font-size: 1.6rem; font-weight: 500; margin: 48px 0 12px; letter-spacing: -.03em; }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 6px; }
.doc .lead { font-size: 1.15rem; color: var(--muted); }
.formula { background: var(--inv-bg); color: #e6e5ff; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9rem; padding: 16px 20px; border-radius: var(--radius-sm); overflow-x: auto; white-space: pre; margin: 12px 0 16px; }
.scale-table { display: grid; grid-template-columns: 60px 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; font-size: .9rem; margin: 12px 0; }
.scale-table > div { background: var(--surface); padding: 10px 14px; }
.scale-table .h { background: var(--linen); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.band-list { list-style: none; padding: 0; }
.band-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.band-swatch { width: 14px; height: 14px; border-radius: 4px; flex: none; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; gap: 20px; } .doc-toc { position: static; display: none; } }

/* ---------- About ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 30px 24px; justify-items: center; }
.people.two { grid-template-columns: repeat(2, minmax(190px, 240px)); justify-content: center; }
.person { text-align: center; max-width: 240px; }
.avatar { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 4px solid #fff; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .12); background: var(--blue-50); }
.person-name { font-weight: 600; }
.person-role { color: var(--muted); font-size: .88rem; }
.group-title { text-align: center; font-size: .875rem; font-weight: 500; color: var(--muted); margin: 44px 0 22px; }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.board-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.board-item b { display: block; }
.board-item span { color: var(--muted); font-size: .86rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: auto; }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 32px 24px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-brand .logo-mark { height: 20px; }
.footer-brand .logo-word { font-size: 1.1rem; }
.footer-tag { font-size: .8125rem; color: var(--muted); }
.footer-links { display: flex; gap: 6px 22px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .875rem; }
.footer-links a:hover { color: var(--navy); }
.footer-note { flex-basis: 100%; margin: 4px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); text-align: center; }
@media (max-width: 720px) { .footer-inner { flex-direction: column; text-align: center; } .footer-links { flex-wrap: wrap; justify-content: center; } }

/* ---------- Dialog, toast ---------- */
dialog.modal { border: 0; border-radius: 16px; padding: 0; max-width: 460px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(24, 25, 37, .4); backdrop-filter: blur(3px); }
.modal-body { padding: 26px; }
.modal-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 26px 22px; flex-wrap: wrap; }
.toast-host { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); pointer-events: none; }
.toast { background: var(--inv-bg); color: var(--inv-text); padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .92rem; animation: fadeUp .25s ease both; max-width: 520px; }
.toast-error { background: #8c1d2a; }
.toast-success { background: #12633b; }
.toast.is-leaving { opacity: 0; transition: opacity .25s; }

.empty-state { text-align: center; padding: 56px 24px; }
.empty-state i { font-size: 2.4rem; color: var(--accent-text); opacity: .5; }
.empty-state h2 { font-size: 1.3rem; margin: 10px 0 6px; }
.empty-state p { color: var(--muted); max-width: 460px; margin: 0 auto 20px; }

/* ---------- Night mode ---------- */
@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --navy: #f3f3f6;
    --navy-2: #d9d9df;
    --ink: #ececf0;
    --muted: #a6a7b1;
    --ash: #6f707b;
    --line: #2e2f38;
    --line-strong: #41424e;
    --bg: #15161b;
    --surface: #1e1f26;
    --linen: #1a1b21;
    --mist: #272832;
    --accent-text: #b7b4fc;
    --blue-600: #b7b4fc;
    --blue-100: #37367a;
    --blue-50: #262648;
    --focus: #b7b4fc;
    --mint-wash: #17382a;
    --mint-text: #8fe3ad;
    --cap-text: #7dbaf3;
    --comp-text: #f3a465;
    --track: #33343e;
    --glass: rgba(21, 22, 27, .86);
    --inv-bg: #3a3b47;
    --shadow-sm: rgba(0, 0, 0, .3) 0 1px 2px 0;
    --shadow: rgba(0, 0, 0, .35) 0 1px 3px 0, rgba(0, 0, 0, .35) 0 8px 16px 0, rgba(255, 255, 255, .04) 0 0 0 1px;
    --shadow-lg: rgba(0, 0, 0, .45) 0 2px 6px 0, rgba(0, 0, 0, .5) 0 18px 36px 0, rgba(255, 255, 255, .05) 0 0 0 1px;
    --shadow-btn: rgba(0, 0, 0, .4) 0 1px 1px 1px, rgba(255, 255, 255, .06) 0 0 0 .5px;
    --shadow-btn-2: rgba(0, 0, 0, .4) 0 1px 1px 0, rgba(255, 255, 255, .1) 0 0 0 1px;
  }
  /* partner logos are dark artwork on transparent backgrounds: give them a light plate at night */
  :root[data-theme="dark"] .partner-logo { padding: 8px 14px; border-radius: 12px; background: #f5f5f5; box-sizing: content-box; opacity: .9; }
  :root[data-theme="dark"] .br-ghost { stroke: #55566a; }
  :root[data-theme="dark"] .br-label { fill: #7c7d8a; }
  :root[data-theme="dark"] .br-piece.is-in .br-label { fill: var(--navy); }
  :root[data-theme="dark"] .select, :root[data-theme="dark"] .picker-summary { background-color: var(--surface); }
}

/* day / night switch in the header */
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9999px; background: none; color: var(--muted); font-size: 1.05rem; cursor: pointer; transition: background .15s, color .15s; }
.theme-toggle:hover { background: var(--mist); color: var(--navy); }
@media (max-width: 860px) { .theme-toggle { width: 100%; height: 44px; justify-content: start; grid-auto-flow: column; gap: 10px; padding: 0 12px; font-size: .95rem; font-weight: 500; } .theme-toggle::after { content: attr(aria-label); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .no-print, .tabs, .toolbar, .toast-host, .view-toggle { display: none !important; }
  body { background: var(--surface); }
  .tab-panel[hidden] { display: block !important; }
  .card, .prio-band { box-shadow: none; break-inside: avoid; }
  .tab-panel { animation: none; break-before: page; }
  .tab-panel:first-of-type { break-before: auto; }
  /* Chart is screen-only; print the always-rendered list instead (reliable without color/JS-position). */
  .gap-chart-scroll, .gap-legend { display: none !important; }
  .gap-list[hidden] { display: block !important; }
  /* Print every training resource expanded, not hidden behind a closed <details>. */
  details.prio-item:not([open]) .prio-item-body { display: block !important; }
  .prio-item { break-inside: avoid; }
  .prio-item-chevron { display: none; }
}
