@charset "UTF-8";

:root {
  --paper: #eef2f4;
  --rail: #e2e9ee;
  --surface: #ffffff;
  --ink: #10263d;
  --ink-soft: #2c4459;
  --muted: #5b6b7b;
  --line: #c5d0d9;
  --line-soft: #dbe3e9;
  --blue: #1d5aa6;
  --blue-dark: #164a88;
  --gold: #d99a24;
  --gold-soft: #fbf1dc;
  --gold-ink: #7a5210;
  --red: #b13b32;
  --red-soft: #f8e7e5;
  --green: #2f7a63;
  --radius: 2px;
  --display: "Bahnschrift", "DIN Alternate", "Segoe UI Semibold", sans-serif;
  --text: "Segoe UI", system-ui, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.5;
  font-synthesis: none;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: wait; opacity: .55; }
a { color: var(--blue); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
main:focus { outline: none; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 12px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

/* Shell */

.brand { display: flex; align-items: center; gap: 12px; margin: 0 10px 48px; text-decoration: none; color: var(--ink); font-size: 15px; line-height: 1.15; }
.brand strong { display: block; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { position: relative; flex-shrink: 0; width: 24px; height: 30px; border: 2px solid var(--ink); }
.brand-mark::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: 3px; height: 9px; background: var(--gold); }

main { flex: 1; width: 100%; max-width: 1240px; padding: 12px 56px 48px; }

/* Headings */

h1 { max-width: 22ch; font-size: 46px; line-height: 1.05; font-weight: 600; letter-spacing: -.02em; }

.card { min-width: 0; padding-top: 22px; border-top: 1px solid var(--line); }

.goals { display: grid; gap: 28px; }

/* Composition */
.composition { display: grid; grid-template-columns: 168px minmax(0, 1fr); align-items: center; gap: 28px; }
.donut { width: 168px; height: 168px; overflow: visible; }
.donut text { font-family: var(--text); font-size: 11px; fill: var(--muted); }

/* Charts */
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--text); font-size: 11.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }

.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.legend-item { display: inline-flex; align-items: center; gap: 8px; }

.notice { margin: 0 0 28px; padding: 14px 18px; border-left: 3px solid var(--gold); background: var(--gold-soft); font-size: 14px; line-height: 1.6; }
.notice ul { margin: 0; padding-left: 18px; }

.notice.error { border-left-color: var(--red); background: var(--red-soft); color: #6e2620; }

.muted { font-size: 13px; color: var(--muted); }

/* Tables */

table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { padding: 0 12px 10px 0; border-bottom: 1px solid var(--ink); font-size: 12.5px; font-weight: 600; text-align: left; color: var(--muted); white-space: nowrap; }
td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.number { text-align: right; font-variant-numeric: tabular-nums; }

/* Buttons */

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 18px; border: 1px solid transparent; border-radius: var(--radius); font-size: 14.5px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background .18s, color .18s, border-color .18s; }
.button.primary { background: var(--blue); color: #fff; }
.button.primary:hover:not(:disabled) { background: var(--blue-dark); }
.button.secondary { border-color: var(--ink); background: transparent; color: var(--ink); }
.button.secondary:hover:not(:disabled) { background: var(--ink); color: #fff; }

.button.ghost { min-height: auto; padding: 4px 0; border: 0; background: none; color: var(--blue); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.button.ghost:hover { color: var(--blue-dark); }
.link-button { padding: 6px 0; border: 0; background: none; color: var(--blue); font-size: 15px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link-button:hover { color: var(--blue-dark); }

.segmented { display: inline-flex; flex-shrink: 0; overflow: hidden; border: 1px solid var(--ink); border-radius: var(--radius); }
.segmented button { padding: 8px 14px; border: 0; background: transparent; font-size: 13.5px; color: var(--ink); }
.segmented button + button { border-left: 1px solid var(--ink); }
.segmented button.active { background: var(--ink); color: #fff; }

/* Forms */
.field { min-width: 0; }
.field label { display: grid; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
input:not([type=checkbox]):not([type=range]), select, textarea {
  width: 100%; min-width: 0; padding: 9px 11px;
  border: 1px solid #a9b7c4; border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font-size: 15px;
}
input::placeholder { color: #8a98a6; }
input:disabled, select:disabled { background: var(--paper); color: var(--muted); }
input[type=number] { font-variant-numeric: tabular-nums; }
input[type=checkbox] { width: 17px; height: 17px; margin: 0; flex-shrink: 0; accent-color: var(--blue); }
input[type=range] { width: 100%; margin: 10px 0 0; accent-color: var(--blue); }

/* Scenarios */

.variant-details summary, .assumptions summary { font-size: 14px; font-weight: 600; color: var(--blue); cursor: pointer; }
.lever-list { display: grid; }
.lever { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.lever:first-child { border-top: 0; }
.lever h3 { font-size: 17px; }
.lever p { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--muted); }

.assumptions { font-size: 14px; }
.assumptions ul { margin: 16px 0 0; padding-left: 20px; line-height: 1.7; color: var(--ink-soft); }
.assumptions li + li { margin-top: 6px; }

@media (min-width: 1600px) {
  main { max-width: 1360px; padding-top: 24px; }
  h1 { font-size: 52px; }

}
@media (max-width: 1250px) {

  .brand { margin-bottom: 40px; }

  main { padding: 12px 36px 44px; }

  .composition { grid-template-columns: 140px minmax(0, 1fr); gap: 22px; }
  .donut { width: 140px; height: 140px; }

}
@media (max-width: 1000px) {

}
@media (max-width: 760px) {

  .brand, .sidebar-bottom { display: none; }

  main { padding: 20px 20px 28px; }

  h1 { font-size: 34px; }

  .composition { grid-template-columns: minmax(0, 1fr); justify-items: center; }

  .lever { gap: 14px; }
}
@media (max-width: 430px) {
  main { padding-left: 16px; padding-right: 16px; }

  .composition { grid-template-columns: minmax(0, 1fr); }

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

