:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  --ink: #182433;
  --muted: #495b70;
  --blue: #0655d8;
  --pale: #edf3ff;
  --line: #ccd6e3;
  --red: #a32d24;
  color: var(--ink);
  background: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 1.125rem; line-height: 1.5; }
h1, h2, p, figure, dl, dd { margin: 0; }
input, select { font: inherit; }
a { color: var(--blue); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { color: white; background: #094cbe; }
.shell { width: min(72rem, calc(100% - 4rem)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 2; inset: .6rem auto auto 1rem; background: white; padding: .5rem .8rem; }
header { border-bottom: 1px solid var(--line); }
.bar { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bar img { width: 11.875rem; max-width: 45%; height: auto; }
.bar a, .jump { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1rem; font-weight: 650; }
.intro { padding-block: 2.5rem; background: var(--pale); border-bottom: 1px solid #d6e3f6; }
h1 { font-size: 3.2rem; font-weight: 720; letter-spacing: -.04em; line-height: 1.08; }
.intro p { margin-top: .85rem; max-width: 66ch; color: #364c69; }
.worksheet { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 1fr); align-items: start; gap: 3.25rem; padding-block: 2.4rem 1.8rem; }
form, label { min-width: 0; }
form section + section { border-top: 1px solid var(--line); margin-top: 1.7rem; padding-top: 1.4rem; }
h2 { font-size: 1.6rem; line-height: 1.25; letter-spacing: -.025em; }
.help { color: var(--muted); margin-top: .4rem; max-width: 58ch; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; margin-top: 1.05rem; }
.spacing-fields, .budget-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label { display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem; font-size: 1rem; font-weight: 650; }
.box, select { min-height: 3rem; border: 1px solid #76889c; border-radius: .35rem; background: #fff; }
.box { display: flex; align-items: center; }
.box input { width: 100%; min-width: 0; height: 2.875rem; padding: .45rem .7rem; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1.125rem; font-weight: 450; font-variant-numeric: tabular-nums; caret-color: var(--blue); }
.box:focus-within { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 2px; }
.box:has([aria-invalid="true"]) { border-color: var(--red); }
.box > span { padding-right: .7rem; color: var(--muted); font-size: 1rem; font-weight: 450; }
select { width: 100%; padding-inline: .65rem; color: var(--ink); font-size: 1.125rem; font-weight: 450; }
.error { color: var(--red); font-size: 1rem; margin-top: .7rem; }
.jump { display: none; }
.result { background: #11345e; color: white; padding: 1.4rem 1.65rem 1.55rem; border-radius: .7rem; }
.result h2 { font-size: 1.125rem; font-weight: 600; color: #dbeaff; letter-spacing: 0; }
.result h2:focus-visible { outline-color: white; }
.lead-result { margin-top: .15rem; font-size: 2.75rem; font-weight: 700; line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
.result figure { margin-block: .9rem; background: #173f6e; padding: .55rem .8rem; border-radius: .25rem; }
#elevation { display: block; width: 100%; height: 8rem; }
figcaption { color: #dfedff; font-size: 1rem; text-align: center; }
.breakdown { border-top: 1px solid #6986a8; padding-top: .55rem; }
.breakdown > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-block: .32rem; }
.breakdown dt { color: #deebfc; }
.breakdown dd { min-width: 0; text-align: end; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.money { margin-top: .75rem; }
.budget-total { padding-top: .25rem; }
.budget-total dt, .budget-total dd { color: #fff; font-size: 1.25rem; font-weight: 700; }
.note, .footnote, .message { font-size: 1rem; line-height: 1.5; }
.note { color: #deebfc; margin-top: .6rem; }
.note:empty { display: none; }
.footnote { border-top: 1px solid var(--line); padding-block: 1rem 2rem; color: var(--muted); }
.message { padding-block: 1.5rem; }
@media (max-width: 62rem) {
  .worksheet { gap: 2rem; grid-template-columns: minmax(0, 1.25fr) minmax(16.5rem, 1fr); }
  .spacing-fields, .budget-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47rem) {
  .shell { width: min(38rem, calc(100% - 2.5rem)); }
  .bar { min-height: 4rem; }
  .bar img { width: 9rem; }
  .intro { padding-block: 1.8rem; }
  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.45rem; }
  .worksheet { grid-template-columns: minmax(0, 1fr); padding-top: 1.8rem; gap: 1.6rem; }
  .jump { display: inline-flex; margin-top: .55rem; }
  .result { padding: 1.3rem; }
}
@media (max-width: 23rem) {
  .shell { width: calc(100% - 2rem); }
  .bar { gap: .6rem; }
  .bar img { width: 8rem; }
  .bar a { text-align: right; }
  h1 { font-size: 2rem; }
  .fields { gap: .8rem; }
  .budget-fields { grid-template-columns: 1fr; }
}
