@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/IBMPlexSans-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}
:root {
  font-family: "IBM Plex Sans", "Arial", sans-serif;
  color: #1a1a1a;
  background: #fafaf8;
  font-synthesis: none;
  --ink: #1a1a1a;
  --muted: #5f5f5f;
  --line: #deded6;
  --rule: #aaa99e;
  --paper: #fff;
  --accent: #0c6b5c;
  --green: #084f44;
  --pad: clamp(20px, 4.3vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body { margin: 0; min-width: 0; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.1; }
p { line-height: 1.55; }
a { color: inherit; }
button, textarea, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
::selection { color: var(--ink); background: #d9ebe6; }
.wrap { width: min(100% - 2 * var(--pad), 1112px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 5; padding: 12px; background: #fff; }

.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner, .brand { display: flex; align-items: center; }
.masthead-inner { min-height: 75px; }
.brand { gap: 16px; }
.wordmark { text-decoration: none; font-size: 31px; font-weight: 800; letter-spacing: -.077em; line-height: 1; }
.product { padding-left: 16px; border-left: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

.progress { padding-block: 24px 26px; }
.progress ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; list-style: none; padding: 0; }
.progress button { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 14px 5px 4px; border: 0; color: var(--muted); background: transparent; font-size: .875rem; text-align: left; }
.progress button::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: 1px; background: var(--line); }
.progress button[aria-current="step"] { color: var(--ink); font-weight: 700; }
.progress button[aria-current="step"]::before { height: 4px; background: var(--green); }
.progress button.is-complete::before { background: #97b6ac; }
.progress button.is-complete:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.progress button:disabled { cursor: default; }
.step-no { font-size: .75rem; font-variant-numeric: tabular-nums; }
.mobile-progress { display: none; }

.flow { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 64px); align-items: start; }
.work { padding: 10px 0 26px; min-height: 534px; }
.back-row { display: flex; align-items: center; min-height: 31px; margin-bottom: 19px; }
.back { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; color: var(--muted); font-size: .875rem; font-weight: 600; text-decoration: none; }
.back span { font-size: 1.25rem; line-height: .8; }
.back:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.back[aria-disabled="true"] { color: #686e67; cursor: default; text-decoration: none; }
.step h1 { font-size: clamp(2.5rem, 4.9vw, 3.85rem); font-weight: 750; line-height: .99; letter-spacing: -.065em; }
.lede { color: var(--muted); }
.step > .lede { max-width: 46ch; margin: 16px 0 24px; }
label, legend { font-size: .875rem; font-weight: 700; }
textarea, select, input:not([type="radio"], [type="checkbox"]) { display: block; width: 100%; min-width: 0; margin-top: 7px; border: 1px solid var(--rule); border-radius: 2px; padding: 11px 12px; color: var(--ink); background: var(--paper); line-height: 1.4; font-size: 1rem; font-weight: 400; }
textarea { resize: vertical; min-height: 76px; }
textarea::placeholder, input::placeholder { color: var(--muted); opacity: 1; }
.field-note, .privacy-note { color: var(--muted); font-size: .8125rem; }
.examples { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 39px; padding: 5px 11px; border: 1px solid var(--rule); border-radius: 2px; background: transparent; color: var(--ink); font-size: .875rem; }
.chip-mark { color: var(--green); font-size: 1rem; }
.chip:hover { border-color: var(--accent); color: var(--green); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px 20px; margin-top: 21px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 10px 17px; border: 1px solid var(--accent); border-radius: 3px; color: #fff; background: var(--accent); font-weight: 700; line-height: 1.35; text-align: center; }
.button:hover { background: var(--green); }
.text-button { min-height: 40px; padding: 3px 0; border: 0; background: transparent; color: var(--green); font-size: .875rem; font-weight: 700; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--ink); }
.privacy-note { margin-top: 16px; }
.manual { margin-top: 15px; }
.manual-prompt { margin-bottom: 14px; color: var(--muted); font-size: .875rem; }
.field-stack { display: grid; gap: 11px; }

.preview { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 24px 0; border-block: 1px solid var(--line); }
.section-label { display: block; color: var(--green); font-size: .8125rem; font-weight: 700; }
.preview h2 { margin: 12px 0 11px; font-size: clamp(2.05rem, 3.45vw, 3rem); letter-spacing: -.06em; }
.preview > p:not(.section-label) { max-width: 35ch; color: var(--muted); }
.diagram { width: 100%; margin-top: 28px; padding: 22px 0 18px; border-block: 1px solid var(--line); }
.diagram-labels, .diagram-caption { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .8125rem; }
.diagram-labels span:last-child, .diagram-caption span:last-child { text-align: right; }
.diagram-track { position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; margin: 11px 0; }
.diagram-track i { display: block; height: 6px; background: var(--line); }
.diagram-track i.is-gated { background: var(--accent); }
.diagram-track i.is-end { background: var(--accent); }
.diagram-caption { min-height: 18px; }
.diagram-caption:empty { display: none; }
.preview-foot { display: flex; align-items: flex-start; gap: 10px; margin-top: 17px; color: var(--muted); font-size: .875rem; }
.corner-mark { flex: 0 0 10px; height: 10px; margin-top: 4px; border: solid var(--green); border-width: 0 0 2px 2px; }

.confirmation { border-block: 1px solid var(--line); }
.recap-card { padding-block: 14px; }
.recap-card + .recap-card, .confirmation > .recap-options { border-top: 1px solid var(--line); }
.recap-card h2 { font-size: 1.15rem; margin-bottom: 10px; }
.recap-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.recap-chip { min-width: 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: 2px; overflow-wrap: anywhere; }
.recap-chip dt, .recap-chip small { color: var(--muted); font-size: .75rem; }
.recap-chip dd { font-size: .875rem; font-weight: 650; }
.recap-chip small { display: inline-block; margin-inline-start: 6px; font-weight: 400; }
.recap-editor { margin-top: 6px; }
.recap-editor summary { padding-block: 8px; width: fit-content; cursor: pointer; color: var(--green); font-size: .875rem; font-weight: 700; }
.recap-editor form { padding-block: 4px 8px; }
.recap-editor button { justify-self: start; }
.recap-options { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 9px 0 12px; min-width: 0; border: 0; }
.recap-options legend { padding: 0; }
.confirmation > .recap-options { padding-block: 5px 14px; }
.recap-options input { accent-color: var(--green); }
dialog { width: min(calc(100% - 32px), 470px); max-height: calc(100% - 32px); padding: 23px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #18271dd0; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-heading h2 { font-size: 1.4rem; letter-spacing: -.035em; }
dialog p { margin: 6px 0 16px; color: var(--muted); }
.consent { display: flex; gap: 9px; align-items: flex-start; margin: 15px 0; line-height: 1.4; font-weight: 400; }


.site-footer { margin-top: 24px; padding-bottom: 22px; color: var(--muted); font-size: .8125rem; }
.footer-main { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; border-top: 1px solid var(--line); padding-block: 14px; }
.footer-main .wordmark { color: var(--ink); font-size: 22px; }
.footer-right { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 20px; margin-left: auto; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.footer-link { padding-block: 5px; text-underline-offset: 3px; }
.footer-link:hover { color: var(--ink); }
.footer-note { margin-bottom: 6px; }
.check-footer-links { margin-top: 5px; }
#guide-status { margin-top: 6px; }
#request-status { margin: 12px 0 0; }
#request-status:empty { display: none; }
#request-draft { display: inline-flex; align-items: center; }
button[aria-disabled="true"] { cursor: default; }

@media (max-width: 720px) {
  .masthead-inner { min-height: 62px; }
  .brand { gap: 11px; }
  .wordmark { font-size: 28px; }
  .product { padding-left: 11px; }
  .progress { padding-block: 14px 17px; }
  .mobile-progress { display: block; margin-bottom: 9px; font-size: .875rem; font-weight: 700; }
  .progress ol { gap: 5px; }
  .progress button { min-height: 36px; padding: 9px 1px 2px; font-size: .8125rem; }
  .step-no { display: none; }
  .flow { grid-template-columns: 1fr; gap: 10px; }
  .work { min-height: auto; padding: 6px 0 14px; }
  .back-row { margin-bottom: 10px; }
  .step h1 { font-size: clamp(2.1rem, 9.4vw, 3.2rem); }
  .desktop-break { display: none; }
  .step > .lede { margin: 10px 0 17px; }
  .form-actions { gap: 7px 13px; margin-top: 16px; }
  .chip { min-height: 44px; padding-inline: 8px; }
  .chip-mark { display: none; }
  .form-actions .text-button { font-size: .8125rem; }
  .preview { padding: 16px 0; }
  .preview h2 { margin: 6px 0 7px; font-size: 1.75rem; }
  .diagram { margin-top: 15px; padding: 12px 0; }
  .preview-foot { margin-top: 12px; }
  .site-footer { margin-top: 17px; }
  .footer-right { flex-basis: 100%; margin-left: 0; }
}

.button.secondary { min-height: 40px; padding: 7px 12px; border-color: var(--rule); color: var(--green); background: transparent; font-size: .875rem; }
.button.secondary:hover { border-color: var(--accent); }
.approval-row { min-width: 0; margin: 0; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line); }
.approval-row label, .review-costs label { display: block; margin-top: 7px; }
.review-costs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.review-costs small { display: block; margin-top: 4px; font-weight: 400; }
#approval-channel label { display: block; margin-top: 7px; }
#approval-channel small { display: block; margin-top: 4px; font-weight: 400; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; }
.v2-form { display: grid; gap: 14px; margin-block: 4px 12px; }
.v2-form .button { justify-self: start; }

#confirm-followups:not(:empty) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; padding-top: 8px; }
#confirm-followups > p { flex-basis: 100%; }
#scenario-status { padding-block: 20px; }
.result-detail { color: var(--muted); font-size: .875rem; }
.result-detail > summary { width: fit-content; padding-block: 9px; color: var(--green); cursor: pointer; font-weight: 650; }

body.showing-result .wrap { width: min(100% - 2 * clamp(14px, 3.15vw, 44px), 1360px); }
body.showing-result .masthead-inner { min-height: 61px; }
.result {
  --report-line: #d8e0db;
  --report-direct: #1c3734;
  --report-reach: #21655c;
  --report-reach-fill: #e4f2e9;
  --report-legal: #ab8058;
  padding-top: 16px;
  font-variant-numeric: tabular-nums;
}
.result a, #result-footer a { text-underline-offset: 3px; }
.scenario-strip { padding-bottom: 14px; border-bottom: 1px solid var(--report-line); }
.scenario-strip > p { color: var(--muted); font-size: .875rem; font-weight: 600; }
.scenario-strip ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding: 0; list-style: none; }
.scenario-strip a { display: flex; align-items: center; min-height: 34px; padding: 4px 9px; border: 1px solid #c7d2ca; border-radius: 5px; background: #fffefa; font-size: .8125rem; text-decoration: none; }
.scenario-strip a:hover { border-color: var(--report-reach); text-decoration: underline; }
.scenario-strip a[aria-current] { border-color: var(--report-direct); color: white; background: var(--report-direct); font-weight: 650; }
.report-heading { padding: 20px 0 18px; }
.report-heading h1 { margin-top: 4px; font-size: clamp(2rem, 4.05vw, 3.25rem); letter-spacing: -.048em; font-weight: 700; line-height: 1.05; }
.report-heading h1 strong { color: var(--report-reach); font-weight: inherit; }
.report-condition { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.report-subline { max-width: 115ch; margin-top: 7px; font-size: 1rem; line-height: 1.48; }
.report-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 25%); align-items: start; gap: 16px; }
.report-card { padding: 16px; border: 1px solid var(--report-line); border-radius: 12px; background: #fffefa; }
.report-card h2 { font-size: 1.125rem; letter-spacing: -.023em; }
.chart-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 14px; margin-bottom: 13px; }
.risk-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 11px; padding: 0; list-style: none; color: var(--muted); font-size: .76rem; }
.risk-legend li { display: inline-flex; align-items: center; gap: 5px; }
.risk-legend i { display: inline-block; width: 14px; height: 9px; border-radius: 2px; }
.legend-direct { background: var(--report-direct); }
.legend-reach { border: 1px solid var(--report-reach); background: var(--report-reach-fill); }
.risk-legend .legend-legal { width: 2px; height: 11px; background: var(--report-legal); }
.risk-grid { display: grid; grid-template-columns: minmax(118px, 18%) minmax(0, 1fr) minmax(180px, 28%); gap: 0 14px; align-items: center; }
.chart-axis { align-items: end; color: var(--muted); font-size: .75rem; font-weight: 650; }
.chart-scale { grid-column: 2; }
.chart-ticks { display: flex; justify-content: space-between; gap: 4px; margin-top: 4px; font-weight: 400; }
.chart-legal-title { grid-column: 3; }
.ranked-risks { margin-top: 5px; padding: 0; list-style: none; }
.ranked-risk { min-height: 55px; padding: 8px 0; border-top: 1px solid var(--report-line); }
.ranked-risk:first-child { background: #f1f6f1; }
.ranked-risk:first-child .risk-caption { padding-inline-start: 5px; }
.risk-caption h3 { margin-bottom: 3px; font-size: .94rem; line-height: 1.2; }
.risk-caption p, .risk-plot p { color: var(--muted); font-size: .77rem; line-height: 1.35; }
.risk-plot { display: grid; gap: 4px; min-height: 24px; align-content: center; background-image: linear-gradient(to right, var(--report-line) 1px, transparent 1px), linear-gradient(to left, var(--report-line) 1px, transparent 1px); background-size: calc(100% / 3) 100%, 100% 100%; background-repeat: repeat-x, no-repeat; }
.risk-mark { position: relative; display: flex; align-items: center; min-height: 21px; padding-inline: 6px; font-size: .76rem; font-weight: 700; line-height: 1.1; }
.risk-fill { position: absolute; inset: 0 auto 0 0; width: var(--end, 0%); border-radius: 3px; }
.risk-mark.direct .risk-fill { background: var(--report-direct); }
.risk-mark.reach .risk-fill { border: 1px solid var(--report-reach); background: var(--report-reach-fill); }
.risk-value { position: relative; color: var(--report-reach); white-space: nowrap; }
.risk-mark.direct .risk-value { color: #fff; }
.risk-mark.short .risk-value { margin-left: var(--end, 0%); color: var(--ink); }
.risk-plot p { padding-inline: 6px; }
.risk-ceilings { display: grid; gap: 6px; font-size: .76rem; color: var(--muted); }
.risk-ceilings p { line-height: 1.35; }
.mobile-ceiling-title { display: none; }
.ceiling-item { padding-inline-start: 7px; border-left: 2px solid var(--report-legal); }
.ceiling-item p + p { margin-top: 2px; }
.ceiling-item strong { color: var(--ink); }
.chart-foot, .fines-note { padding-top: 7px; border-top: 1px solid var(--report-line); color: var(--muted); font-size: .77rem; line-height: 1.45; }
#reach-footnote { grid-column: 2; margin-bottom: 7px; }
.fines-note { font-weight: 650; }
.report-side section + section { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--report-line); }
.report-side p, .report-fixes { font-size: .875rem; line-height: 1.42; }
.report-side h2 + p:not(.comparison-amount) { margin-top: 6px; }
.report-side .comparison-amount { margin-block: 5px 1px; font-size: 1.42rem; font-weight: 700; line-height: 1.15; letter-spacing: -.026em; }
.report-side .side-note { color: var(--muted); font-size: .83rem; }
.side-note + .side-note { margin-top: 5px; }
.profit-track { height: 6px; margin-block: 8px 5px; border-radius: 3px; background: #dbe5de; }
.profit-track span { display: block; width: var(--end, 0%); height: 100%; border-radius: inherit; background: var(--report-direct); }
.report-fixes { margin-top: 7px; padding-inline-start: 1.25rem; }
.report-fixes li + li { margin-top: 6px; }
.report-fixes span { display: block; color: var(--muted); font-size: .8rem; }
.result-inline-form { margin-top: 8px; }
.result-inline-form label { font-size: .8125rem; }
.result-inline-controls { display: flex; flex-wrap: wrap; align-items: stretch; gap: 5px; margin-top: 4px; }
.result-inline-controls input:is([type="number"], [type="text"]) { flex: 1 1 105px; width: auto; margin: 0; padding: 6px 8px; }
.result-inline-controls .button { min-height: 35px; padding: 4px 8px; }

#risk-details { margin-top: 14px; padding-block: 5px; }
.report-details-body { padding: 4px 0 12px; }
.report-details-body h3 { color: var(--ink); font-size: 1rem; }
.risk-stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 12px 18px; margin-bottom: 14px; }
.risk-story { padding-block: 10px 3px; border-top: 1px solid var(--report-line); }
.risk-story ul, .risk-story ol { margin-top: 5px; padding-inline-start: 1.1rem; }
.risk-story h4 { margin: 7px 0 0; color: var(--ink); font-size: .875rem; }
.risk-story li { margin-block: 3px; line-height: 1.45; }
.risk-story small { display: block; }
#result-assumptions p { margin-top: 4px; }
#estimate-inputs, #setup-editor { margin-top: 9px; border-top: 1px solid var(--report-line); }
#setup-form { margin-top: 12px; }
.result-block { padding-top: 17px; }
#notify-form { max-width: 440px; margin-bottom: 13px; }
#notify-title { margin-bottom: 8px; font-size: 1.125rem; }
#notify-status:not(:empty) { margin-top: 6px; }
.feedback { width: min(100%, 440px); padding-top: 13px; border-top: 1px solid var(--report-line); }
.feedback h2 { margin-bottom: 8px; font-size: 1.1rem; }
.feedback textarea { min-height: 58px; }
.feedback-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
#feedback-draft { display: inline-flex; align-items: center; }
#result-footer { padding-bottom: 10px; }
#result-footer p + p, #result-attribution + p { margin-top: 3px; }

@media (max-width: 1020px) {
  .report-layout { grid-template-columns: minmax(0, 1fr); }
  .report-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .report-side section + section { margin: 0; padding: 0 0 0 12px; border: 0; border-left: 1px solid var(--report-line); }
}
@media (max-width: 660px) {
  .scenario-strip a { min-height: 42px; }
  .report-heading { padding-block: 16px; }
  .report-subline { font-size: .94rem; }
  .report-card { padding: 12px; }
  .risk-grid { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .risk-ceilings:has(.ceiling-item, .ceiling-unknown) { margin-top: 3px; }
  .risk-ceilings:has(.ceiling-item, .ceiling-unknown) .mobile-ceiling-title { display: block; font-weight: 700; }
  .chart-legal-title, .ceiling-empty:not(.ceiling-unknown) { display: none; }
  .chart-scale, #reach-footnote { grid-column: 1; }
  .ranked-risk { padding-block: 9px; }
  .ranked-risk:first-child .risk-caption { padding-inline-start: 0; }
  .report-side { display: block; }
  .report-side section + section { margin-top: 12px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--report-line); }
  .editor-grid { grid-template-columns: 1fr; }
}
