/* Ravdal Guided Discovery: navy/blue brand, light + dark, print-ready report */
:root {
  color-scheme: light;
  --navy: #13294b;
  --navy-2: #1d3a66;
  --blue: #2a78d6;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --ink: #14213d;
  --ink-2: #4a5468;
  --muted: #6b7385;
  --line: #dfe3ea;
  --grid: #e8ebf0;
  --axis: #c3c8d2;
  --perf: #2a78d6;
  --imp: #eb6834;
  --fix-zone: rgba(235, 104, 52, 0.08);
  --good: #0ca30c;
  --good-ink: #006300;
  --warning: #fab219;
  --critical: #d03b3b;
  --h1: #cde2fb; --h2: #9ec5f4; --h3: #5598e7; --h4: #256abf; --h5: #104281;
  --stage0: #e7ecf3; --stage1: #dbe5f2; --stage2: #cbdaee; --stage3: #b9cde9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.06), 0 4px 16px rgba(20, 33, 61, 0.05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1420; --surface: #161e2d; --surface-2: #1d2738;
    --ink: #eef1f6; --ink-2: #c3c9d6; --muted: #8f97a8; --line: #2a3446; --grid: #232c3c; --axis: #3a4558;
    --perf: #3987e5; --imp: #d95926; --fix-zone: rgba(217, 89, 38, 0.12);
    --good-ink: #0ca30c;
    --stage0: #1f293a; --stage1: #233147; --stage2: #283a55; --stage3: #2e4466;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1420; --surface: #161e2d; --surface-2: #1d2738;
  --ink: #eef1f6; --ink-2: #c3c9d6; --muted: #8f97a8; --line: #2a3446; --grid: #232c3c; --axis: #3a4558;
  --perf: #3987e5; --imp: #d95926; --fix-zone: rgba(217, 89, 38, 0.12);
  --good-ink: #0ca30c;
  --stage0: #1f293a; --stage1: #233147; --stage2: #283a55; --stage3: #2e4466;
  --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); }
a { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 650; color: var(--muted); margin-bottom: .5rem; }
.eyebrow a { color: inherit; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
main { padding: 0 16px 64px; }

/* top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: var(--navy); color: #fff; margin: 0 -0px 32px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.topbar nav a { opacity: .85; } .topbar nav a:hover { opacity: 1; }
.topbar-note { font-size: .85rem; opacity: .75; }
.brandlink { display: inline-flex; align-items: center; }
.logo { height: 46px; width: auto; display: block; }
.logo.sm { height: 32px; }
.rep-brand .logo { height: 52px; }
:root[data-theme="dark"] .rep-brand .logo { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rep-brand .logo { filter: brightness(0) invert(1); } }
@media print { .rep-brand .logo { filter: none !important; } }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .22em; font-size: 1.05rem; }
.wordmark.sm { font-size: .95rem; }
.wm-mark { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #6fa8ef, #2a78d6 55%, #0d366b); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.rep-brand .wordmark { color: var(--navy); }
:root[data-theme="dark"] .rep-brand .wordmark { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rep-brand .wordmark { color: var(--ink); } }
.linkbtn { background: none; border: 0; color: #fff; opacity: .85; font: inherit; cursor: pointer; padding: 0; }
form.inline { display: inline; }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--axis); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); }
.btn.ghost { background: transparent; }
.btn.lg { padding: 13px 22px; font-size: 1.02rem; }
.btn.small { padding: 6px 12px; font-size: .85rem; }
.btn.tiny { padding: 3px 8px; font-size: .78rem; font-weight: 600; }
.btn.danger { color: var(--critical); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
label { display: block; font-weight: 600; font-size: .9rem; }
label > input, label > select, label > textarea { margin-top: 6px; font-weight: 400; }
.stack { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.alert { background: #fdecec; color: #8a1f1f; border: 1px solid #f3c2c2; padding: 10px 14px; border-radius: 8px; }
.flash { background: #e8f2fd; color: var(--navy); border: 1px solid #c4dbf6; padding: 10px 14px; border-radius: 8px; }
.copyrow { display: flex; gap: 8px; }
.copyrow input { font-size: .85rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.narrow { max-width: 760px; margin: 0 auto 24px; }
.narrowp { max-width: 620px; margin-left: auto; margin-right: auto; }
.wide { max-width: 1180px; margin: 0 auto; }

/* landing */
body.public .topbar { margin-bottom: 0; }
.hero { background: linear-gradient(160deg, var(--navy) 0%, #0d1c36 100%); color: #fff; margin: 0 -16px; padding: 72px 16px 84px; }
.hero-inner { max-width: 880px; margin: 0 auto; }
.hero .eyebrow { color: #9ec5f4; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); max-width: 18ch; }
.hero .lead { color: #cdd8ea; max-width: 60ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.band { max-width: 1080px; margin: 0 auto; padding: 56px 0 8px; }
.band.alt h2 { margin-bottom: 20px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stepnum { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px; }
.domain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.domain-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.domain-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* survey */
.survey { display: grid; grid-template-columns: 260px 1fr; gap: 32px; max-width: 1120px; margin: 0 auto; align-items: start; }
.survey-nav { position: sticky; top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.sn-title { font-size: 1.1rem; }
.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 12px 0 6px; }
.progress-bar { height: 100%; background: var(--blue); border-radius: 99px; transition: width .3s; }
.steplist { list-style: none; padding: 0; margin: 16px 0 8px; display: grid; gap: 2px; }
.steplist button { width: 100%; text-align: left; background: none; border: 0; padding: 7px 10px; border-radius: 6px; font: inherit; font-size: .9rem; color: var(--ink-2); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.steplist button:hover { background: var(--surface-2); }
.steplist button.on { background: var(--surface-2); color: var(--ink); font-weight: 650; }
.stepcheck.full::after { content: "✓"; color: var(--good-ink); font-weight: 700; }
.stepcheck.part::after { content: "•"; color: var(--imp); font-weight: 700; }
.step { display: none; }
.step.on { display: block; }
.howto { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.howto > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.howto p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.stmt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 14px; margin: 16px 0; box-shadow: var(--shadow); transition: border-color .2s; }
.stmt.complete { border-left: 4px solid var(--good); }
.stmt.flash-missing { border-color: var(--imp); }
.stmt-text { font-size: 1.12rem; font-weight: 650; margin-bottom: .4em; }
details > summary { cursor: pointer; color: var(--blue); font-size: .9rem; font-weight: 600; }
details.guide p { color: var(--ink-2); font-size: .93rem; margin: 8px 0 4px; }
.scales { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 16px 0 8px; }
.scale-label { font-weight: 650; font-size: .85rem; margin-bottom: 6px; color: var(--ink-2); }
.scale { display: flex; gap: 4px; }
.pip { flex: 1; font-weight: 400; position: relative; }
.pip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pipbox { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 2px; text-align: center; cursor: pointer; transition: all .12s; background: var(--surface); }
.pipbox b { font-size: 1.05rem; }
.pipbox small { font-size: .66rem; color: var(--muted); line-height: 1.15; }
.pip:hover .pipbox { border-color: var(--axis); }
.pip input:checked + .pipbox { background: var(--navy); border-color: var(--navy); color: #fff; }
.pip input:checked + .pipbox small { color: #cdd8ea; }
.pip input:focus-visible + .pipbox { outline: 2px solid var(--blue); outline-offset: 1px; }
.pip.na { flex: .9; }
.pip.na input:checked + .pipbox { background: var(--muted); border-color: var(--muted); }
.cmt textarea { margin-top: 8px; }
.stepnav { display: flex; justify-content: space-between; margin-top: 24px; }
.facts { display: grid; gap: 10px; }
.fact { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.fact p { margin: 0; font-weight: 550; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.seg label { position: relative; font-weight: 500; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 14px; font-size: .9rem; cursor: pointer; border-left: 1px solid var(--line); }
.seg label:first-child span { border-left: 0; }
.seg input:checked + span { background: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: -2px; }
.missing ul { padding-left: 20px; }
.saved { min-height: 1.2em; }

/* thanks / snapshot */
.thanks { padding-top: 16px; }
.invite-box { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 32px; }
.cta-end { padding-bottom: 32px; }

/* admin */
.pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.integrations { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .8rem; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.pill.ok { background: #e3f4e3; color: var(--good-ink); }
.pill.small { font-size: .72rem; }
.funnel { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin-bottom: 20px; }
.funnel a { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 8px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.funnel a b { font-size: 1.4rem; line-height: 1; }
.funnel a span { font-size: .72rem; color: var(--muted); line-height: 1.2; }
.funnel a.on { border-color: var(--navy); box-shadow: inset 0 -3px 0 var(--navy); }
.funnel a.zero b { color: var(--axis); }
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; }
.tbl td { font-variant-numeric: tabular-nums; }
.tbl.list { border: 1px solid var(--line); border-radius: var(--radius); }
.tbl.compact td, .tbl.compact th { padding: 8px; }
.tag { display: inline-block; font-size: .7rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); }
.tag.navy { background: var(--navy); color: #fff; }
.stage { font-size: .85rem; font-weight: 600; }
.status { font-size: .82rem; font-weight: 650; }
.status.s-submitted { color: var(--good-ink); }
.status.s-started { color: var(--imp); }
.empty { text-align: center; }
.detail-grid { display: grid; grid-template-columns: 340px 1fr; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.panel h3 { margin-top: 18px; font-size: .95rem; }
.panelhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stageform { display: flex; gap: 8px; }
.facts-dl { display: grid; gap: 6px; margin: 16px 0 0; }
.facts-dl div { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; }
.facts-dl dt { color: var(--muted); }
.facts-dl dd { margin: 0; font-weight: 600; text-align: right; }
.activity { list-style: none; padding: 0; margin: 0; font-size: .88rem; display: grid; gap: 6px; max-height: 280px; overflow: auto; }
.addp { margin-top: 12px; }
.addp summary { list-style: none; display: inline-flex; }
.addp form { margin-top: 10px; }

/* workshop */
.ws-row { display: grid; grid-template-columns: 1fr 300px; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 12px; }
.ws-text { font-size: 1.08rem; font-weight: 650; }
.ws-stats { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.ws-stats b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ws-stats b.hot { color: var(--critical); }
.ws-adjust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.ws-adjust .full { grid-column: 1 / -1; }
.ws-adjust label { font-size: .8rem; }
.ws-row ul { margin: 8px 0; padding-left: 20px; font-size: .93rem; }

/* report */
.report { max-width: 1060px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.rep-cover { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 32px 36px; border-bottom: 4px solid var(--navy); }
.rep-cover h1 { margin: 0 0 4px; }
.rep-cover p { margin: 0; }
.rep-sec { padding: 32px 36px; border-bottom: 1px solid var(--line); }
.rep-sec:last-of-type { border-bottom: 0; }
.secnum { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--navy); color: #fff; font-size: .9rem; margin-right: 10px; vertical-align: 2px; }
.headline { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; background: var(--surface-2); }
.hero-stat .kicker { font-size: .8rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.hero-stat .big { font-size: 4.4rem; font-weight: 750; line-height: 1; margin: 6px 0; color: var(--navy); letter-spacing: -0.03em; }
:root[data-theme="dark"] .hero-stat .big { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-stat .big { color: var(--ink); } }
.hero-stat .big span { font-size: 1.3rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.hero-stat .stage-name { font-size: 1.3rem; font-weight: 700; margin: 0; }
.stepper { display: flex; list-style: none; padding: 0; margin: 0 0 14px; gap: 4px; }
.stepper li { flex: 1; text-align: center; font-size: .78rem; font-weight: 650; color: var(--muted); padding-top: 12px; border-top: 6px solid var(--line); border-radius: 2px; }
.stepper li.past { border-top-color: #9ec5f4; color: var(--ink-2); }
.stepper li.on { border-top-color: var(--navy); color: var(--ink); }
:root[data-theme="dark"] .stepper li.on { border-top-color: var(--perf); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stepper li.on { border-top-color: var(--perf); } }
.stage-sum { font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 0; }
.kpis div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.kpis dt { font-size: .78rem; color: var(--muted); }
.kpis dd { margin: 0; font-size: 1.6rem; font-weight: 700; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.gapcard { border: 1px solid var(--line); border-left: 4px solid var(--imp); border-radius: 8px; padding: 14px 16px; margin-bottom: 12px; }
.gc-head { display: flex; gap: 10px; align-items: center; font-size: .8rem; margin-bottom: 6px; }
.gc-rank { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .78rem; }
.gc-dom { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.gc-gap { margin-left: auto; font-weight: 700; }
.gc-gap small { color: var(--muted); font-weight: 500; }
.gc-text { font-weight: 650; margin: 0 0 6px; }
.gc-note { font-size: .9rem; background: var(--surface-2); padding: 8px 10px; border-radius: 6px; }
.quotes { list-style: none; padding: 0; margin: 6px 0 0; font-size: .9rem; color: var(--ink-2); display: grid; gap: 4px; }
.quotes li { padding-left: 12px; border-left: 2px solid var(--line); }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.opt { background: var(--surface-2); border-radius: 8px; padding: 16px; }
.opt h4 { margin-bottom: 6px; }
.opt p { margin: 0; font-size: .93rem; }
.legend { display: flex; gap: 20px; font-size: .85rem; color: var(--ink-2); margin: 6px 0 4px; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.chartbox { margin: 8px 0 12px; }
.chartbox.scrollx { overflow-x: auto; }
.tableview { margin-top: 6px; }
.tableview .tbl { margin-top: 10px; }
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.tabs button { border: 0; background: var(--surface); padding: 7px 14px; font: inherit; font-size: .88rem; cursor: pointer; border-left: 1px solid var(--line); color: var(--ink-2); }
.tabs button:first-child { border-left: 0; }
.tabs button.on { background: var(--navy); color: #fff; }
.heat-key { display: flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.sw.h1 { background: var(--h1); } .sw.h3 { background: var(--h3); } .sw.h5 { background: var(--h5); } .sw.na { background: var(--surface-2); border: 1px dashed var(--axis); }
.flags { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.flag { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.flag-ico { flex-shrink: 0; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--critical); color: #fff; font-weight: 800; font-size: .85rem; }
.f-alignment .flag-ico { background: var(--warning); color: #0b0b0b; }
.f-unknown .flag-ico, .f-evidence-split .flag-ico { background: var(--muted); }
.flag-title { font-weight: 650; margin: 0 0 2px; }
.flag p { margin: 0; }
.evwrap { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.evbar .ev-bg { fill: var(--surface-2); }
.evbar .ev-yes { fill: var(--good); } .evbar .ev-no { fill: var(--critical); } .evbar .ev-unsure { fill: var(--warning); }
.verdict { font-weight: 650; font-size: .88rem; white-space: nowrap; }
.v-yes { color: var(--good-ink); } .v-no { color: var(--critical); } .v-unsure { color: #9a6a00; }
.cmtblock { margin-bottom: 14px; }
.rep-foot { padding: 20px 36px; font-size: .8rem; color: var(--muted); }

/* charts */
.chart { width: 100%; height: auto; display: block; font-family: var(--font); }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .divider { stroke: var(--axis); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .tick { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart .tick.warn { fill: var(--critical); font-weight: 700; }
.chart .axis-title { fill: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.chart .zone-fix { fill: var(--fix-zone); pointer-events: none; }
.chart .zlabel { fill: var(--muted); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.chart .zlabel.strong { fill: var(--imp); }
.chart .dot { fill: var(--perf); stroke: var(--surface); stroke-width: 2; }
.chart .q-fix .dot { fill: var(--imp); }
.chart .rankdot { fill: var(--ink); stroke: var(--surface); stroke-width: 2; pointer-events: none; }
.chart .ranknum { fill: var(--surface); font-size: 11px; font-weight: 800; pointer-events: none; }
.chart .dlabel { fill: var(--ink); font-size: 11.5px; font-weight: 700; }
.chart .hit { fill: transparent; }
.chart .pt:hover .dot, .chart .pt:focus .dot { r: 8; }
.chart .rlabel { fill: var(--ink); font-size: 12.5px; }
.chart .rlabel.strong { font-weight: 650; font-size: 13.5px; }
.chart .rid { fill: var(--muted); font-weight: 650; font-size: 11.5px; }
.chart .bar { stroke: var(--axis); stroke-width: 3; stroke-linecap: round; }
.chart .bar.neg { stroke-dasharray: 2 4; }
.chart .perf, .legend .perf { fill: var(--perf); stroke: var(--surface); stroke-width: 2; }
.chart .imp, .legend .imp { fill: var(--imp); stroke: var(--surface); stroke-width: 2; }
.chart .gapval { fill: var(--ink); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chart .row:hover .hit, .chart .row:focus .hit { fill: var(--surface-2); }
.chart .track { fill: var(--stage0); }
.chart .track.s1 { fill: var(--stage1); } .chart .track.s2 { fill: var(--stage2); } .chart .track.s3 { fill: var(--stage3); }
.chart .ring { stroke-width: 2.5; }
.chart .cell { fill: var(--surface-2); }
.chart .cell.h0 { fill: #f0efec; } .chart .cell.h1 { fill: var(--h1); } .chart .cell.h2 { fill: var(--h2); } .chart .cell.h3 { fill: var(--h3); } .chart .cell.h4 { fill: var(--h4); } .chart .cell.h5 { fill: var(--h5); }
.chart .cell.na { fill: var(--surface-2); stroke: var(--axis); stroke-dasharray: 3 3; }
.chart .cval { font-size: 12px; font-weight: 650; fill: #0b0b0b; font-variant-numeric: tabular-nums; }
.chart .cval.h3, .chart .cval.h4, .chart .cval.h5 { fill: #fff; }
.chart .cval.na { fill: var(--muted); }
.chart [data-tip]:focus { outline: none; }

/* tooltip */
#tip { position: fixed; z-index: 50; pointer-events: none; max-width: 320px; background: #0d1c36; color: #fff; font-size: .82rem; line-height: 1.4; padding: 8px 10px; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.25); white-space: pre-line; }
#tip b { display: block; }

/* responsive */
@media (max-width: 900px) {
  .survey { grid-template-columns: 1fr; }
  .survey-nav { position: static; }
  .steplist { display: none; }
  .detail-grid, .split, .headline, .invite-box, .ws-row { grid-template-columns: 1fr; }
  .funnel { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .steps3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .row2, .howto, .scales { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .rep-cover { grid-template-columns: 1fr; padding: 22px; }
  .rep-sec { padding: 22px 18px; }
  .kpis { grid-template-columns: 1fr; }
  .fact { flex-direction: column; align-items: flex-start; }
  .rep-sec table.tbl, .panel table.tbl { display: block; overflow-x: auto; }
  .tbl.evid thead { display: none; }
  .tbl.evid tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tbl.evid td { display: block; border: 0; padding: 2px 0; }
  .pipbox small { display: none; }
  .pipbox { min-height: 44px; }
  .topbar { padding: 12px 16px; }
  .topbar-note { display: none; }
  .tbl.list thead { display: none; }
  .tbl.list td { display: block; border: 0; padding: 4px 12px; }
  .tbl.list tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* print: the report becomes a clean document */
@media print {
  :root { color-scheme: light; --bg: #fff; --surface: #fff; --surface-2: #f2f4f7; --ink: #14213d; --line: #dfe3ea; --perf: #2a78d6; --imp: #eb6834; }
  body { background: #fff; font-size: 11pt; }
  .topbar, .noprint, .tabs, #tip, .invite-box, .cta-end, .detail-grid, .pagehead, .flash, .thanks { display: none !important; }
  main { padding: 0; }
  .report { border: 0; box-shadow: none; max-width: none; }
  .rep-sec { break-inside: avoid-page; padding: 18px 0; }
  .rep-cover { padding: 0 0 18px; }
  [data-pane][hidden] { display: none; }
  details.tableview { display: none; }
}
