@font-face { font-family: League Gothic; src: url('../home/marquee/fonts/league-gothic-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: Libre Franklin; src: url('../home/marquee/fonts/libre-franklin-latin-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --paper: #fbfbf5;
  --canvas: #eeefea;
  --blue: #a8d4f2;
  --blue-soft: #e8f3f9;
  --blue-deep: #195578;
  --ink: #151c21;
  --muted-text: #4f5d63;
  --line: #c8cdca;
  --red: #ae3128;
  --text: Libre Franklin, 'Segoe UI', sans-serif;
  --display: League Gothic, 'Arial Narrow', sans-serif;
}
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.5 var(--text); }
*, *::before, *::after { box-sizing: border-box; }
body .app-width { width: min(100% - 64px, 1280px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; }
.project-head { background: var(--blue); border-bottom: 1px solid var(--ink); }
.project-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 21px 0 19px; }
.project-kicker { margin: 0 0 2px; color: #233e50; font-size: 11px; font-weight: 750; letter-spacing: .105em; text-transform: uppercase; }
.project-heading h1, .pane h2, .explorer-heading h1 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1; }
.project-heading h1, .explorer-heading h1 { font-size: clamp(46px, 5.2vw, 76px); }
.project-heading .project-status { margin: 0 0 4px; color: #263e4d; font-weight: 650; }
.phase-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; border: 1px solid #344c5d; border-bottom: 0; }
.phase-list button { display: flex; justify-content: space-between; align-items: center; text-align: left; gap: 8px; min-height: 49px; background: #dff1fa; color: var(--ink); border: 0; border-right: 1px solid #344c5d; padding: 10px 15px; font: inherit; font-weight: 750; cursor: pointer; }
.phase-list button:last-child { border-right: 0; }
.phase-list button[aria-pressed=true] { background: var(--ink); color: var(--paper); }
.phase-list button small { font-size: 11px; font-weight: 550; }
.phase-list button:disabled { color: #3f5764; cursor: default; background: #c2dfef; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: start; gap: 22px; padding-block: 25px 34px; }
.pane { background: var(--paper); border: 1px solid #899499; min-width: 0; }
.pane-head { padding: 17px 20px 13px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pane h2 { font-size: 34px; }
.pane-head small { font-size: 11px; font-weight: 650; color: var(--muted-text); }
.pane-body { padding: 17px 20px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 13px; }
.field { display: grid; gap: 4px; font-size: 12px; font-weight: 700; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field input, .field select { min-height: 36px; min-width: 0; width: 100%; padding: 6px 8px; color: var(--ink); background: #fff; border: 1px solid #aeb9ba; border-radius: 2px; font: 500 13px/1.35 var(--text); }
fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
fieldset[disabled] input, fieldset[disabled] select { color: #3d525d; background: #f1f3ef; opacity: 1; }
.genre-field { margin-top: 12px; }
.genre-field legend { font-size: 12px; font-weight: 700; margin-bottom: 5px; padding: 0; }
.genres { display: flex; flex-wrap: wrap; gap: 5px; }
.genres label { display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); padding: 3px 6px; font-size: 11px; background: #fff; }
.genres label:has(:checked) { background: #d7eefa; border-color: var(--blue-deep); }
.genres input, .confirm-line input { accent-color: var(--blue-deep); margin: 0; }
.phase-fields { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.phase-fields summary { font-size: 13px; font-weight: 750; cursor: pointer; }
.phase-fields .field-grid { margin-top: 8px; }
.confirm-line { display: flex; width: fit-content; align-items: center; gap: 7px; margin-top: 8px; font-size: 12px; font-weight: 600; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; margin-top: 14px; }
.action-row a { color: var(--blue-deep); font-weight: 720; }
.action { display: inline-flex; align-items: center; gap: 8px; justify-content: center; min-height: 36px; padding: 7px 12px; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--paper); text-decoration: none; font: 700 12px/1.2 var(--text); cursor: pointer; }
.action.secondary { background: transparent; color: var(--ink); }
.action:disabled { opacity: .5; cursor: default; }
.issue { margin: 9px 0 0; color: var(--red); font-size: 12px; font-weight: 650; }
.issue:empty, [hidden] { display: none !important; }
.project-stage-notice { margin-block: 12px 0; font-size: 13px; font-weight: 650; }
.forecast { background: var(--blue-soft); }
.forecast-readout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: end; }
.forecast-readout p { margin: 0; }
.forecast-readout .num-label { color: #345164; font-size: 12px; font-weight: 700; }
.forecast-readout strong { display: block; font: 400 clamp(37px, 4.5vw, 66px)/.98 var(--display); white-space: nowrap; }
.forecast-readout .range-num strong { font-size: clamp(26px, 3vw, 44px); color: var(--blue-deep); }
.forecast-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; color: #35505e; font-size: 11px; font-weight: 600; }
.plot { width: 100%; height: auto; display: block; margin-top: 6px; overflow: visible; }
.plot text { font: 13px var(--text); fill: #344b59; }
.plot .tick { stroke: #a9bac4; stroke-width: 1; }
.plot .axis { stroke: #8196a2; stroke-width: 1; }
.plot .interval { stroke: #1971a1; stroke-width: 12; stroke-linecap: round; opacity: .69; }
.plot .point { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.plot .target-line { stroke: var(--red); stroke-dasharray: 4 3; stroke-width: 1.5; }
.plot .range-path { stroke: #1971a1; stroke-width: 2; stroke-dasharray: 4 4; fill: none; }
.plot-scale { text-align: right; margin: 0; color: var(--muted-text); font-size: 11px; }
.stage-input-link { color: var(--blue-deep); font-size: 12px; font-weight: 700; }
.stage-trajectory { margin-top: 14px; padding-top: 9px; border-top: 1px solid #a7bbc4; }
.stage-trajectory > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.stage-trajectory h3 { margin: 0; font-size: 13px; }
.stage-delta { color: #345164; margin: 0; font-size: 12px; }
.stage-delta strong { color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.plot .previous-estimate .interval { stroke: #638398; opacity: .55; }
.plot .previous-estimate .point { fill: #506b7b; }
.plot .stage-point-label { font-weight: 700; }
.stage-assumptions { grid-column: 1 / -1; }
.stage-assumptions .confirm-line { margin-top: 0; }
.stage-table-scroll { overflow-x: auto; padding: 6px 20px 15px; }
.stage-input-table { width: 100%; min-width: 480px; border-collapse: collapse; text-align: left; font-size: 13px; }
.stage-input-table th, .stage-input-table td { padding: 8px 11px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.stage-input-table thead th { font-weight: 700; width: 23%; }
.stage-input-table thead th:first-child { width: 31%; }
.stage-input-table thead span { display: inline-block; margin-left: 5px; color: var(--muted-text); font-size: 11px; font-weight: 550; }
.stage-input-table tbody th { font-weight: 600; }
.stage-input-table .current-stage, .stage-input-table .stage-change { background: #e9f3f8; }
.stage-input-table .stage-change { color: var(--blue-deep); font-weight: 700; }
.stage-no-change { margin: 9px 11px 1px; color: var(--muted-text); }
.target-panel { margin: 15px 0 0; border-top: 1px solid #a7bbc4; padding-top: 12px; display: grid; grid-template-columns: max-content minmax(0,1fr); align-items: end; gap: 11px; }
.target-panel .field input { width: 100px; }
.target-panel p { margin: 0; font-size: 12px; color: #2f4857; }
.target-panel strong { color: var(--ink); font-size: 23px; font-family: var(--display); font-weight: 400; display: block; line-height: 1.1; }
.research-note { color: #3b5361; margin: 11px 0 0; font-size: 11px; }
.scenario-fields { margin-top: 15px; }
.scenario-outputs { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 7px 18px; }
.scenario-outputs strong { font-size: 17px; }
.history-work { padding-block: 23px 36px; }
.history-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 21px; align-items: start; }
.record-list { margin: 0; padding: 0; list-style: none; }
.record-list button { display: flex; width: 100%; justify-content: space-between; gap: 9px; color: var(--ink); text-align: left; font: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 9px 3px; cursor: pointer; }
.record-list button[aria-pressed=true] { background: #daeef9; padding-inline: 8px; }
.record-list span { font-size: 11px; color: var(--muted-text); }
.snapshot { margin: 0; }
.snapshot div { display: flex; justify-content: space-between; gap: 12px; padding-block: 5px; border-bottom: 1px solid var(--line); }
.snapshot dt { color: var(--muted-text); font-size: 12px; }
.snapshot dd { margin: 0; text-align: right; font-weight: 650; }
.snapshot dd.changed { color: var(--blue-deep); }
.history-note { margin: 12px 0 0; font-size: 12px; color: var(--muted-text); }
.skip { position: absolute; top: -100px; left: 12px; }
.skip:focus { top: 8px; color: white; z-index: 10; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 880px) {
  body .app-width { width: min(100% - 36px, 1280px); }
  .work-grid, .history-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .phase-list button { flex-wrap: wrap; align-content: center; gap: 0 7px; padding: 7px; font-size: 12px; }
  .work-grid { gap: 14px; padding-block: 14px 22px; }
  .pane-head, .pane-body { padding-inline: 12px; }
  .forecast-readout { grid-template-columns: 1fr; gap: 6px; }
  .field input, .field select { font-size: 16px; }
}
@media print {
  .top, .phase-list, .record-list, .action-row { display: none; }
  .history-grid { grid-template-columns: 1fr 1fr; }
  .project-head, .pane { border: 1px solid #888; }
}
