@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --page: #f6f8f7;
  --surface: #fcfcfa;
  --surface-raised: #f0f4f3;
  --surface-strong: #e8efed;
  --ink: #14262e;
  --ink-soft: #435a64;
  --muted: #6c8088;
  --line: #d8e1df;
  --line-strong: #bdcbc8;
  --accent: #1f6b7d;
  --accent-strong: #155363;
  --accent-soft: #dcecef;
  --critical: #a53c35;
  --critical-soft: #f6e5e2;
  --warning: #95641e;
  --warning-soft: #f6edda;
  --good: #347247;
  --good-soft: #e3efe5;
  --neutral-soft: #e7ecee;
  --shadow: 0 1px 2px rgba(20, 38, 46, .05), 0 16px 38px -30px rgba(20, 38, 46, .55);
  --radius-control: 8px;
  --radius-surface: 12px;
  --font: "Space Grotesk", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d191e;
  --surface: #122127;
  --surface-raised: #17282e;
  --surface-strong: #203239;
  --ink: #e7efef;
  --ink-soft: #b9c9cc;
  --muted: #8ea4aa;
  --line: #2b4047;
  --line-strong: #3b555d;
  --accent: #65adbd;
  --accent-strong: #8fc9d4;
  --accent-soft: #183944;
  --critical: #ef978f;
  --critical-soft: #3b2525;
  --warning: #ddb36a;
  --warning-soft: #382f20;
  --good: #8bc69a;
  --good-soft: #20372a;
  --neutral-soft: #25363c;
  --shadow: 0 1px 2px rgba(2, 8, 10, .2), 0 18px 44px -30px rgba(2, 8, 10, .9);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
strong,
b {
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin-bottom: 0;
  font-size: clamp(2rem, 4.4vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}

h2 {
  margin-bottom: .45rem;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

h3 {
  margin-bottom: .45rem;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -.012em;
}

h4 {
  margin-bottom: .35rem;
  font-size: .88rem;
  line-height: 1.35;
}

p {
  text-wrap: pretty;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 20;
  padding: .7rem 1rem;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
  padding: .75rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--ink);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  color: var(--accent);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.confidential {
  margin-right: .4rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: .55rem .9rem;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
  white-space: nowrap;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--accent-strong);
  color: var(--surface);
}

.button-primary:hover {
  background: var(--accent);
}

.button-quiet {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button-quiet:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.report-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  width: min(1520px, 100%);
  margin: 0 auto;
}

.report-sidebar {
  position: sticky;
  top: 68px;
  align-self: start;
  height: calc(100dvh - 68px);
  padding: 2.2rem 1.4rem 1.5rem;
  border-right: 1px solid var(--line);
  background: var(--surface);
  overflow-y: auto;
}

.sidebar-company {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.sidebar-company strong {
  font-size: .97rem;
}

.sidebar-company > span:last-child,
.sidebar-progress > span:last-child {
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.45;
}

.meta-label,
.eyebrow,
.metric-label {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.section-nav {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  margin: 1.2rem 0;
}

.section-nav a {
  padding: .5rem .65rem;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 540;
  text-decoration: none;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.section-nav a:hover,
.section-nav a.active {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

.sidebar-progress {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-top: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: var(--surface-raised);
}

.sidebar-progress strong {
  font-size: .9rem;
}

.theme-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: .75rem;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
}

.theme-control button {
  padding: .4rem .45rem;
  border: 0;
  border-radius: calc(var(--radius-control) - 3px);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .72rem;
}

.theme-control button[aria-pressed="true"] {
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(20, 38, 46, .12);
  color: var(--ink);
  font-weight: 650;
}

main {
  min-width: 0;
}

.report-section,
.report-footer {
  width: min(1080px, calc(100% - clamp(2rem, 8vw, 7rem)));
  margin: 0 auto;
}

.report-section {
  padding: clamp(3.8rem, 7vw, 6.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.summary-section {
  padding-top: clamp(3rem, 6vw, 5.5rem);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 2.2rem;
}

.section-heading > div {
  max-width: 720px;
}

.section-heading p {
  max-width: 68ch;
  margin: .55rem 0 0;
  color: var(--ink-soft);
}

.section-heading .eyebrow {
  display: block;
  margin-bottom: .75rem;
}

.status {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 28px;
  padding: .25rem .55rem;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-critical {
  background: var(--critical-soft);
  color: var(--critical);
}

.status-fix,
.status-watch {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-pending,
.status-neutral {
  background: var(--neutral-soft);
  color: var(--ink-soft);
}

.executive-summary {
  max-width: 850px;
  margin-bottom: 2.75rem;
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
}

.executive-summary p {
  margin-bottom: .65rem;
}

.executive-summary p:last-child {
  margin-bottom: 0;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(270px, .82fr) minmax(420px, 1.18fr);
  gap: 1rem;
}

.primary-result,
.surface-results,
.benchmark,
.action-item,
.finding,
.source-overview article,
.comparison-pending,
.data-disclosure {
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.primary-result {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--ink);
  color: var(--surface);
}

.primary-result .metric-label,
.primary-result p {
  color: color-mix(in srgb, var(--surface) 72%, transparent);
}

.primary-number {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin: .4rem 0 .75rem;
  font-variant-numeric: tabular-nums;
}

.primary-number strong {
  font-size: clamp(4.8rem, 10vw, 7.2rem);
  font-weight: 650;
  line-height: .85;
  letter-spacing: -.07em;
}

.primary-number span {
  font-size: 1.35rem;
}

.primary-result p {
  max-width: 37ch;
  margin: 0;
  font-size: .85rem;
}

.surface-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: none;
}

.surface-results article {
  padding: 1.5rem;
}

.surface-results article:first-child {
  border-right: 1px solid var(--line);
}

.surface-results article:last-child {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  background: var(--surface-raised);
}

.surface-results strong {
  display: block;
  margin: .3rem 0 .5rem;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
}

.surface-results p {
  max-width: 38ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: .84rem;
  line-height: 1.5;
}

.benchmark {
  margin: 1rem 0 0;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: none;
}

.benchmark figcaption {
  display: grid;
  grid-template-columns: 1fr minmax(280px, .8fr);
  gap: 2rem;
  align-items: end;
}

.benchmark figcaption h2 {
  margin: .3rem 0 0;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
}

.benchmark figcaption p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .88rem;
}

.benchmark-axis {
  position: relative;
  height: 128px;
  margin: 2.15rem 1.5rem .2rem;
}

.axis-line {
  position: absolute;
  top: 66px;
  right: 0;
  left: 0;
  border-top: 2px solid var(--line-strong);
}

.axis-start,
.axis-end {
  position: absolute;
  top: 78px;
  color: var(--muted);
  font: .7rem var(--mono);
}

.axis-start {
  left: 0;
}

.axis-end {
  right: 0;
}

.axis-marker {
  position: absolute;
  left: var(--position);
  display: flex;
  width: max-content;
  flex-direction: column;
  font-size: .72rem;
  transform: translateX(-50%);
}

.axis-marker::after {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--ink-soft);
  box-shadow: 0 0 0 1px var(--line-strong);
  content: "";
}

.axis-marker b {
  color: var(--ink-soft);
  font-weight: 550;
}

.axis-marker strong {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.marker-you {
  top: 78px;
  align-items: center;
  color: var(--accent-strong);
  transform: translateX(-18%);
}

.marker-you::after {
  top: -18px;
  background: var(--accent);
}

.marker-you b {
  color: var(--accent-strong);
}

.marker-median,
.marker-best {
  bottom: 62px;
  align-items: center;
}

.marker-median {
  transform: translateX(-82%);
}

.marker-median::after,
.marker-best::after {
  bottom: -20px;
}

.benchmark-mobile {
  display: none;
}

.fine-print {
  margin: .8rem 0 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.5;
}

.actions-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.action-item {
  padding: 1.35rem;
  box-shadow: none;
}

.action-item.action-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.action-item.is-complete {
  background: var(--good-soft);
  border-color: color-mix(in srgb, var(--good) 45%, var(--line));
}

.action-main {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: .9rem;
}

.action-main h3 {
  margin: .25rem 0 .35rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.action-main p {
  max-width: 75ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: .9rem;
}

.action-check {
  position: relative;
  width: 26px;
  height: 26px;
  margin-top: 2px;
}

.action-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.action-check > span[aria-hidden="true"] {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}

.action-check input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.action-check input:checked + span {
  border-color: var(--good);
  background: var(--good);
}

.action-check input:checked + span::after {
  color: var(--surface);
  content: "✓";
  font-size: .85rem;
  font-weight: 800;
}

.action-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
}

.action-meta span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 650;
}

.action-item details {
  margin: .9rem 0 0 2.3rem;
  border-top: 1px solid var(--line);
  padding-top: .75rem;
}

summary {
  color: var(--accent-strong);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 650;
}

summary:hover {
  color: var(--accent);
}

.action-details {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 2rem;
  padding: 1.1rem 0 .2rem;
}

.action-details ol {
  margin: .6rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: .84rem;
}

.action-details li + li {
  margin-top: .45rem;
}

.done-definition {
  padding: 1rem;
  border-radius: var(--radius-control);
  background: var(--surface-raised);
}

.done-definition p {
  margin-bottom: .85rem;
  color: var(--ink-soft);
  font-size: .82rem;
}

.done-definition p:last-child {
  margin-bottom: 0;
}

.findings-layout {
  display: grid;
  grid-template-columns: minmax(330px, 1.15fr) minmax(300px, .85fr);
  gap: .9rem;
}

.finding {
  padding: 1.35rem;
  box-shadow: none;
}

.finding-main {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 410px;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  background: var(--surface-raised);
}

.finding-main h3 {
  max-width: 18ch;
  font-size: clamp(1.65rem, 3.3vw, 2.6rem);
  line-height: 1.08;
}

.finding p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .88rem;
}

.findings-stack {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.findings-stack .finding {
  flex: 1;
}

.finding-status {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .7rem;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 650;
}

.semantic-marker {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.semantic-marker.critical {
  background: var(--critical);
}

.semantic-marker.warning {
  background: var(--warning);
}

.semantic-marker.good {
  background: var(--good);
}

.finding dl {
  display: grid;
  gap: .8rem;
  margin: 1.5rem 0 0;
}

.finding dl div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}

.finding dt {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 650;
  text-transform: uppercase;
}

.finding dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: .8rem;
}

.uncertainty-note {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.4rem;
  margin-top: .9rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--warning);
  background: var(--warning-soft);
}

.uncertainty-note strong {
  font-size: .82rem;
}

.uncertainty-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .82rem;
}

.competitor-plot {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plot-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(120px, 1fr) 74px;
  gap: 1rem;
  align-items: center;
  min-height: 42px;
  font-variant-numeric: tabular-nums;
}

.plot-row > span {
  font-size: .83rem;
  font-weight: 550;
}

.plot-row i {
  position: relative;
  display: block;
  width: var(--value);
  min-width: 8px;
  height: 3px;
  background: var(--ink-soft);
}

.plot-row i::after {
  position: absolute;
  top: 50%;
  right: -5px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--ink-soft);
  box-shadow: 0 0 0 1px var(--line-strong);
  content: "";
  transform: translateY(-50%);
}

.plot-row strong {
  color: var(--ink-soft);
  font-size: .78rem;
  text-align: right;
}

.plot-row.is-you {
  margin: .15rem -.7rem;
  padding: .25rem .7rem;
  border-radius: var(--radius-control);
  background: var(--accent-soft);
}

.plot-row.is-you > span,
.plot-row.is-you strong {
  color: var(--accent-strong);
  font-weight: 700;
}

.plot-row.is-you i,
.plot-row.is-you i::after {
  background: var(--accent);
}

.more-rows {
  margin-top: .35rem;
  padding-top: .55rem;
  border-top: 1px solid var(--line);
}

.more-rows summary {
  margin-bottom: .35rem;
}

.pattern-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: .8rem;
  margin-top: 2rem;
}

.pattern-grid article {
  min-height: 190px;
  padding: 1.35rem;
  border-left: 3px solid var(--line-strong);
  background: var(--surface-raised);
}

.pattern-grid article:nth-child(2),
.pattern-grid article:nth-child(3) {
  background: var(--surface);
}

.pattern-grid h3 {
  margin-top: .4rem;
}

.pattern-grid strong {
  display: block;
  margin: .7rem 0 .45rem;
  font-size: .82rem;
}

.pattern-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .82rem;
}

.source-overview {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: .8rem;
}

.source-overview article {
  min-height: 170px;
  padding: 1.35rem;
  box-shadow: none;
}

.source-overview article:first-child {
  grid-row: span 2;
  display: flex;
  min-height: 348px;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.source-overview strong {
  display: block;
  margin: .25rem 0 .45rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: -.035em;
}

.source-overview p {
  max-width: 46ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: .82rem;
}

.subsection-title {
  margin: 2.4rem 0 1rem;
  font-size: 1.05rem;
}

.source-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}

.source-actions article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .4rem 1rem;
  padding: 1rem 1.1rem;
  border-top: 2px solid var(--line-strong);
  background: var(--surface-raised);
}

.source-actions article:first-child {
  grid-column: 1 / -1;
  border-top-color: var(--accent);
}

.source-actions article > div {
  display: flex;
  flex-direction: column;
}

.source-actions article span {
  color: var(--muted);
  font-size: .7rem;
}

.source-actions article b {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.source-actions article p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-soft);
  font-size: .8rem;
}

.data-disclosure {
  margin-top: 1rem;
  padding: 0 1.25rem;
  box-shadow: none;
}

.data-disclosure > summary {
  padding: 1rem 0;
  color: var(--ink);
  font-size: .9rem;
}

.data-disclosure[open] > summary {
  border-bottom: 1px solid var(--line);
}

.table-wrap {
  max-width: 100%;
  margin: 1rem 0;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
  text-align: left;
}

th {
  padding: .7rem .65rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: .66rem;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  padding: .72rem .65rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.remeasure-layout {
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(360px, 1.15fr);
  gap: 2rem;
  align-items: start;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 2rem 2.15rem;
}

.timeline li::before {
  position: absolute;
  top: .3rem;
  left: 2px;
  width: 11px;
  height: 11px;
  border: 3px solid var(--page);
  border-radius: 50%;
  background: var(--line-strong);
  box-shadow: 0 0 0 1px var(--line-strong);
  content: "";
}

.timeline li::after {
  position: absolute;
  top: 1.25rem;
  bottom: 0;
  left: 8px;
  border-left: 1px solid var(--line-strong);
  content: "";
}

.timeline li:last-child::after {
  display: none;
}

.timeline-complete::before {
  background: var(--good) !important;
}

.timeline-current::before {
  background: var(--accent) !important;
}

.timeline span {
  display: block;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 650;
}

.timeline strong {
  display: block;
  margin: .15rem 0;
  font-size: .92rem;
}

.timeline p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .8rem;
}

.comparison-pending {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  min-height: 245px;
  overflow: hidden;
  box-shadow: none;
}

.comparison-pending > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.comparison-pending > div:first-child {
  border-right: 1px solid var(--line);
}

.comparison-pending strong {
  display: block;
  margin: .35rem 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -.035em;
}

.comparison-pending p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .78rem;
}

.future-result {
  background: repeating-linear-gradient(-45deg, var(--surface-raised), var(--surface-raised) 8px, var(--surface) 8px, var(--surface) 16px);
}

.future-result strong {
  max-width: 12ch;
}

.technical-section .section-heading {
  margin-bottom: 1rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  padding: 1rem 0 0;
}

.filter-bar button {
  padding: .45rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: .72rem;
  font-weight: 650;
}

.filter-bar button:hover,
.filter-bar button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.filter-bar span {
  margin-left: auto;
  color: var(--muted);
  font-size: .7rem;
}

.query-table-wrap table {
  min-width: 680px;
}

.query-table-wrap th:nth-child(n+2),
.query-table-wrap td:nth-child(n+2) {
  width: 150px;
}

.query-note {
  display: block;
  margin-top: .2rem;
  color: var(--warning);
  font-size: .65rem;
  line-height: 1.4;
}

.cell-hit,
.cell-miss {
  display: inline-flex;
  min-width: 92px;
  justify-content: center;
  padding: .24rem .42rem;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 650;
}

.cell-hit {
  background: var(--good-soft);
  color: var(--good);
}

.cell-miss {
  background: var(--neutral-soft);
  color: var(--muted);
}

.evidence-list {
  display: grid;
  gap: .75rem;
  padding: 1rem 0;
}

.evidence-list article {
  padding: 1rem;
  border-left: 3px solid var(--good);
  background: var(--surface-raised);
}

.evidence-list article > div {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  justify-content: space-between;
}

.evidence-list article span {
  color: var(--muted);
  font-size: .7rem;
}

blockquote {
  margin: .65rem 0 0;
  color: var(--ink-soft);
  font-size: .84rem;
}

mark {
  padding: .05rem .14rem;
  background: var(--good-soft);
  color: var(--good);
}

.text-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: .8rem;
  font-weight: 650;
}

.developer-note {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(440px, 1.35fr);
  gap: 1.5rem;
  padding: 1rem 0 1.25rem;
}

.developer-note p {
  color: var(--ink-soft);
  font-size: .82rem;
}

pre {
  max-width: 100%;
  margin: 0;
  padding: 1rem;
  border-radius: var(--radius-control);
  background: #15262e;
  color: #dfeaec;
  font: .72rem/1.55 var(--mono);
  overflow: auto;
  tab-size: 2;
}

.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  padding: 1rem 0;
}

.method-grid article {
  padding: 1rem;
  background: var(--surface-raised);
}

.method-grid strong {
  display: block;
  margin: .25rem 0 .35rem;
  font-size: 1.1rem;
}

.method-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .78rem;
}

.limitations {
  margin: 0 0 1rem;
  padding: 1rem;
  border-left: 3px solid var(--warning);
  background: var(--warning-soft);
}

.limitations h3 {
  font-size: .9rem;
}

.limitations ul {
  margin: .5rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: .78rem;
}

.limitations li + li {
  margin-top: .35rem;
}

.report-footer {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
  color: var(--muted);
  font-size: .72rem;
}

.report-footer > div:first-child {
  display: flex;
  flex-direction: column;
}

.report-footer strong {
  color: var(--ink);
  letter-spacing: .04em;
}

.report-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.footer-links a {
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .report-shell {
    grid-template-columns: 1fr;
  }

  .report-sidebar {
    position: static;
    display: grid;
    height: auto;
    grid-template-columns: 1fr;
    padding: 1rem clamp(1rem, 4vw, 2rem) .8rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  .sidebar-company,
  .sidebar-progress,
  .theme-control {
    display: none;
  }

  .section-nav {
    flex-direction: row;
    gap: .2rem;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .section-nav a {
    flex: none;
    border-bottom: 2px solid transparent;
    border-left: 0;
  }

  .section-nav a:hover,
  .section-nav a.active {
    border-bottom-color: var(--accent);
    border-left-color: transparent;
  }

  .result-layout,
  .findings-layout,
  .remeasure-layout {
    grid-template-columns: 1fr;
  }

  .finding-main {
    min-height: 340px;
  }

  .developer-note {
    grid-template-columns: 1fr;
  }

  .report-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 5rem;
  }

  body {
    font-size: 15px;
  }

  .topbar {
    min-height: 60px;
    padding: .65rem 1rem;
  }

  .topbar-actions {
    gap: .4rem;
  }

  .confidential,
  #copy-link {
    display: none;
  }

  .button {
    min-height: 36px;
    padding: .5rem .7rem;
  }

  .report-sidebar {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .report-section,
  .report-footer {
    width: calc(100% - 2rem);
  }

  .report-section {
    padding: 3.6rem 0;
  }

  .section-heading {
    flex-direction: column;
    gap: .9rem;
    margin-bottom: 1.6rem;
  }

  .executive-summary {
    margin-bottom: 1.8rem;
  }

  .primary-result {
    min-height: 230px;
  }

  .surface-results {
    grid-template-columns: 1fr;
  }

  .surface-results article:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .surface-results article:last-child {
    grid-column: auto;
  }

  .benchmark figcaption {
    grid-template-columns: 1fr;
    gap: .65rem;
  }

  .benchmark-axis {
    display: none;
  }

  .benchmark-mobile {
    display: grid;
    gap: .55rem;
    margin-top: 1.4rem;
  }

  .benchmark-mobile span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--line);
  }

  .benchmark-mobile b {
    color: var(--ink-soft);
    font-size: .8rem;
  }

  .benchmark-mobile strong {
    font-size: 1rem;
  }

  .action-item {
    padding: 1.05rem;
  }

  .action-item details {
    margin-left: 0;
  }

  .action-details,
  .source-overview,
  .source-actions,
  .pattern-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .source-overview article:first-child {
    grid-row: auto;
    min-height: 230px;
  }

  .source-actions article:first-child {
    grid-column: auto;
  }

  .plot-row {
    grid-template-columns: minmax(130px, 1fr) minmax(70px, .8fr) 60px;
    gap: .6rem;
  }

  .plot-row > span {
    font-size: .72rem;
  }

  .plot-row strong {
    font-size: .68rem;
  }

  .uncertainty-note {
    grid-template-columns: 1fr;
    gap: .35rem;
  }

  .comparison-pending {
    grid-template-columns: 1fr;
  }

  .comparison-pending > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .filter-bar span {
    width: 100%;
    margin-left: 0;
  }

  .data-disclosure {
    padding: 0 1rem;
  }

  .report-footer {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-links {
    grid-column: auto;
  }
}

@media (max-width: 390px) {
  .brand {
    font-size: .72rem;
  }

  h1 {
    font-size: 2rem;
  }

  .primary-number strong {
    font-size: 4.7rem;
  }

  .plot-row {
    grid-template-columns: 118px minmax(54px, 1fr) 55px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* ── production additions (report_hosted.py, S25) ─────────────────────────
   The renderer pre-fills the developer JSON-LD from public facts; lines can
   exceed the mockup's hand-written lengths, so they must wrap. */
.developer-note pre,
.developer-note code {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Data-driven prose can contain long unbreakable tokens (competitor URLs,
   domain names); `anywhere` lets grid min-content shrink so 1fr columns
   never exceed small viewports. */
main :is(p, dd, li, strong, td) {
  overflow-wrap: anywhere;
}

/* ── C6 "Kysy raportista" dialog (report_hosted.py, S26) ──────────────────── */
.ask-dialog {
  width: min(30rem, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-surface);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.ask-dialog::backdrop {
  background: rgba(13, 25, 30, .55);
  backdrop-filter: blur(2px);
}

.ask-dialog form {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 1.4rem;
}

.ask-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ask-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.ask-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 .2rem;
}

.ask-close:hover {
  color: var(--ink);
}

.ask-lead {
  margin: -.2rem 0 0;
  color: var(--ink-soft);
  font-size: .85rem;
}

.ask-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ask-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .78rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.ask-field input,
.ask-field textarea {
  padding: .6rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 400;
}

.ask-field textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.ask-consent {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: .74rem;
  line-height: 1.5;
}

.ask-consent input {
  margin-top: .15rem;
  flex: none;
}

.ask-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  align-items: center;
  margin-top: .2rem;
}

.ask-status {
  font-size: .78rem;
  font-weight: 600;
}

.ask-status.ask-ok {
  color: var(--good);
}

.ask-status.ask-error {
  color: var(--critical);
}

.ask-status.ask-error a {
  color: var(--critical);
}

/* ── PRINT / PDF VIEW (D1-D2, S26) ─────────────────────────────────────────
   ALL print rules live here at end-of-stylesheet so they win on source order
   (the S23i ordering bug). The hosted index.html print view is the single PDF
   source (report/make_pdf.mjs force-opens #qmatrix + #menetelma; every other
   closed disclosure — evidence excerpts, JSON-LD, the full source table with
   raw URLs — stays collapsed and out of the PDF; the evidence file carries the
   URL list). Size floors: body >=9.5pt, tables/evidence >=8.5pt, micro-labels
   >=8pt. The running footer (6-7pt) is drawn by Chromium, not this stylesheet. */
@media print {
  :root,
  :root[data-theme="dark"] {
    color-scheme: light;
    --page: #fff;
    --surface: #fff;
    --surface-raised: #f3f6f5;
    --surface-strong: #e8efed;
    --ink: #14262e;
    --ink-soft: #35484f;
    --muted: #566a71;
    --line: #c7d3d0;
    --line-strong: #aab7b4;
    --accent: #155363;
    --accent-strong: #0f3f4c;
    --accent-soft: #e3eef0;
    --shadow: none;
  }

  html { scroll-behavior: auto; }
  body { background: #fff; line-height: 1.36; }

  /* interactive chrome never prints */
  .topbar,
  .report-sidebar,
  .skip-link,
  .filter-bar,
  .report-footer,
  .theme-control,
  .action-check,
  #copy-link,
  .copy-answer,
  .text-link,
  .sitenav,
  .demo-banner,
  .ask-dialog,
  .more-rows > summary { display: none !important; }

  .report-shell { display: block; }
  main { display: block; }

  /* At the ~688px A4 content width the report's mobile layout (single column,
     stacked benchmark) already applies; we only tighten spacing and shrink the
     oversized display type so the report packs to ~9-11 A4 pages. No forced
     per-section page breaks — content flows; headings just stay with their body. */
  .primary-result,
  .finding-main,
  .comparison-pending,
  .pattern-grid article,
  .source-overview article { min-height: 0 !important; }

  /* Restore the desktop multi-column density (the ~688px A4 content width would
     otherwise trigger the tall mobile single-column layout -> ~17 pages). fr-only
     tracks (no px minimums) so columns share the width and never overflow. */
  .result-layout { grid-template-columns: 0.85fr 1.15fr; }
  .findings-layout { grid-template-columns: 1.1fr 0.9fr; }
  .remeasure-layout { grid-template-columns: 0.85fr 1.15fr; }
  .source-overview { grid-template-columns: 1.25fr 0.75fr; }
  .source-overview article:first-child { grid-row: span 2; }
  .source-actions { grid-template-columns: 1fr 1fr; }
  .pattern-grid { grid-template-columns: 1fr 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .action-details { grid-template-columns: 1.15fr 0.85fr; }
  .surface-results { grid-template-columns: 1fr 1fr; }
  .surface-results article:last-child { grid-column: 1 / -1; }

  .report-section {
    width: 100%;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line);
    break-inside: auto;
  }
  .summary-section { padding-top: 0.15rem; }

  .section-heading {
    margin-bottom: 0.6rem;
    break-after: avoid;
    break-inside: avoid;
  }

  .executive-summary { margin-bottom: 0.8rem; font-size: 10pt; }

  h1 { font-size: 17pt; line-height: 1.06; }
  h2 { font-size: 14pt; }
  h3 { font-size: 11pt; }
  .finding-main h3 { font-size: 14pt; }
  .primary-number strong { font-size: 26pt; line-height: 1; }
  .primary-number span { font-size: 11pt; }
  .surface-results strong,
  .source-overview strong,
  .comparison-pending strong,
  .benchmark figcaption h2 { font-size: 15pt; }

  /* keep coherent blocks from splitting across pages */
  .action-item,
  .finding,
  .pattern-grid article,
  .method-grid article,
  .evidence-list article,
  .benchmark,
  .primary-result,
  .surface-results,
  .comparison-pending,
  .limitations,
  .uncertainty-note,
  tr { break-inside: avoid; }

  /* disclosures: the PDF generator leaves only #qmatrix + #menetelma open */
  .data-disclosure:not([open]) { display: none !important; }
  .data-disclosure { break-inside: auto; padding: 0; }
  .data-disclosure > summary {
    padding: 0.2rem 0 0.4rem;
    color: var(--ink);
    cursor: auto;
    list-style: none;
    font-size: 11pt;
    font-weight: 700;
  }
  .data-disclosure > summary::-webkit-details-marker { display: none; }

  /* Size floors. Chromium renders these ~1.6% under nominal, so 8.5pt lands at
     ~8.4pt and clears the 8pt QA floor; body copy stays >=9.5pt. */
  body { font-size: 10.5pt; }
  p, li, dd, td, .action-main p { font-size: 9.5pt; }
  table { font-size: 8.6pt; }
  th { font-size: 8.5pt; }
  .fine-print,
  blockquote,
  .method-grid p,
  .limitations li,
  .action-details ol,
  .action-details ol li,
  .source-overview p,
  .source-actions article p,
  .pattern-grid p,
  .pattern-grid strong,
  .comparison-pending p,
  .timeline p,
  .timeline strong,
  .finding dd,
  .finding p,
  .done-definition p,
  .cell-hit,
  .cell-miss { font-size: 8.6pt; }
  .metric-label,
  .meta-label,
  .eyebrow,
  .action-meta span,
  .finding-status,
  .finding dt,
  .query-note,
  .plot-row > span,
  .plot-row strong,
  .source-actions article span,
  .status { font-size: 8.5pt; }

  /* tighten card/table padding + gaps so the report lands at ~10-12 A4 pages */
  td, th { padding: 0.3rem 0.4rem; }
  .action-item,
  .finding,
  .source-overview article,
  .method-grid article,
  .pattern-grid article,
  .done-definition,
  .source-actions article,
  .comparison-pending > div,
  .primary-result,
  .surface-results article,
  .benchmark,
  .limitations,
  .uncertainty-note { padding: 0.6rem 0.75rem; }
  .actions-list,
  .findings-stack,
  .source-overview,
  .source-actions,
  .pattern-grid,
  .method-grid { gap: 0.5rem; }
  .action-item details { margin-top: 0.5rem; padding-top: 0.4rem; }
  .action-details { gap: 0.9rem; padding: 0.5rem 0 0; }
  .finding dl { margin-top: 0.6rem; }
  .subsection-title { margin: 0.8rem 0 0.5rem; }
  .pattern-grid { margin-top: 0.8rem; }
  .timeline li { padding-bottom: 0.7rem; }
  .benchmark-axis + .benchmark-mobile,
  .benchmark-mobile { margin-top: 0.6rem; }

  /* de-emphasise links on paper (no blue, no underlines) */
  main a { color: var(--ink); text-decoration: none; }

  pre {
    background: #f3f6f5;
    color: #14262e;
    border: 1px solid var(--line);
    font-size: 8.5pt;
    white-space: pre-wrap;
    word-break: break-word;
  }
}
