:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  --ink: #142b2b;
  --muted: #465c59;
  --green: #075c47;
  --dark: #113f34;
  --line: #cadad3;
  --wash: #eaf4ed;
  --paper: #f8fbf7;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid #985013; outline-offset: 4px; }
.wrap { width: min(69rem, calc(100% - 2.5rem)); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: -100rem; z-index: 1; padding: .6rem 1rem; background: white; }
.skip:focus { left: .5rem; }
header { background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1.5rem; min-height: 4.7rem; padding-block: .65rem; }
.brand { color: var(--dark); font-weight: 800; letter-spacing: -.045em; font-size: 1.55rem; text-decoration: none; }
.brand span { color: #467564; }
nav ul { display: flex; flex-wrap: wrap; gap: .35rem 1.35rem; list-style: none; padding: 0; margin: 0; }
nav a { display: inline-block; padding-block: .3rem; color: var(--ink); font-weight: 600; }
nav a:not([aria-current]) { text-decoration: none; }
nav a:hover { text-decoration: underline; }
main { padding-block: clamp(1.8rem, 5vw, 4rem) 4rem; }
.breadcrumb { margin-bottom: 1.35rem; color: var(--muted); font-size: .9375rem; }
h1, h2, h3, p { margin: 0 0 .85rem; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.55rem, 7vw, 5rem); max-width: 15ch; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.15rem); }
h3 { font-size: 1.25rem; }
.lede { font-size: clamp(1.08rem, 2.4vw, 1.25rem); color: var(--muted); max-width: 52ch; }
.intro { margin-bottom: 1.75rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.3rem; margin-top: 1.25rem; }
.card, .tool { background: white; border: 1px solid var(--line); border-radius: 1.15rem; padding: clamp(1.1rem, 4vw, 2rem); min-width: 0; }
.card > :last-child, .home > :last-child { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.stack { max-width: 48rem; }
.block { margin-top: 2.3rem; }
.tool { max-width: 54rem; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
label, legend { font-weight: 650; }
.field { display: grid; gap: .35rem; margin-block: .8rem; }
input[type=text] { width: 100%; min-height: 3rem; color: var(--ink); background: white; font: inherit; border: 1px solid #718984; border-radius: .5rem; padding: .55rem .75rem; }
input[aria-invalid=true] { border: 2px solid #a02e22; }
input[type=radio] { accent-color: var(--green); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .25rem 1.15rem; }
.choices label { min-height: 2.65rem; display: inline-flex; align-items: center; gap: .4rem; }
.button, button { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .55rem .95rem; border: 1px solid var(--green); border-radius: .5rem; background: var(--green); color: #fff; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.button:hover, button:hover { background: var(--dark); }
.secondary { color: var(--green); background: transparent; }
.secondary:hover { color: #fff; }
.result { min-width: 0; padding: 1.25rem; border-radius: .75rem; background: var(--dark); color: white; }
.result dl { margin: 0; }
.result dl div { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; border-bottom: 1px solid #73958b; padding-block: .6rem; }
.result dl div:last-child { border: 0; font-weight: 750; }
.result dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.status { margin-block: .55rem 0; }
.status:empty { margin: 0; }
.note { color: var(--muted); }
footer { border-top: 1px solid var(--line); }
footer .bar { justify-content: flex-start; }
footer p { margin: 0; }
@media (max-width: 42rem) {
  .grid, .tool-grid { grid-template-columns: 1fr; }
  nav ul { gap: .2rem 1rem; }
}

@media print {
  header, footer, .skip, .breadcrumb, .print-action { display: none; }
  body { background: white; color: black; }
  main.wrap { width: 100%; padding: 0; }
  .stack { max-width: none; }
  li { break-inside: avoid; }
}

.home { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(2rem,5vw,4rem); background: #123e35; color: #fff; padding: clamp(1.3rem,5vw,3.5rem); border-radius: 1.3rem; }
.home .lede { color: #e1efe8; }
.home .actions { align-items: stretch; gap: .75rem; }
.home .actions a { display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1rem; min-height: 3rem; border: 1px solid #92afa6; border-radius: .55rem; font-weight: 650; text-align: center; text-decoration: none; color: #fff; }
.home .actions a:hover { text-decoration: underline; text-underline-offset: .22em; }
.home .actions a:focus-visible { outline-color: white; }
.home .actions .button { background: #d6efad; color: #193d2f; }
.receipt { background: #fffdf4; color: #17382d; padding: clamp(1.2rem,3vw,2rem); border-radius: .6rem; box-shadow: 0 .6rem 1.5rem #08292140; }
.receipt h2 { font: 600 clamp(1.6rem,4vw,2.3rem)/1.15 Georgia,serif; }
.receipt dl { margin: 1.3rem 0 0; }
.receipt dl div { display: flex; flex-wrap: wrap; gap: .3rem 1rem; justify-content: space-between; padding: .55rem 0; }
.receipt dd { margin: 0; font-variant-numeric: tabular-nums; }
.receipt dl div:last-child { border-top: 1px dashed #718984; font-weight: 750; }
.card { border-top: 3px solid #54826a; }
.result { background: #123e35; padding: clamp(1.2rem,3vw,2rem); border-top: .3rem solid #afce83; }
.result-label { font-size: 1rem; letter-spacing: .015em; color: #e2eed9; }
.result-figure { display: block; font-size: clamp(1.75rem,3.8vw,2.85rem); line-height: 1.1; letter-spacing: -.035em; color: #e2f6b8; margin: .5rem 0 1rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.result a { color: #e2f6b8; }
.result p:last-child { margin-bottom: 0; }
.registration-result { margin-top: 1.25rem; }
.registration-result:empty { display: none; }
@media (max-width: 42rem) { .home { grid-template-columns: 1fr; } }

[data-registration] fieldset fieldset { margin-top: 1.25rem; padding-top: .5rem; }
[data-registration] button { margin-top: .85rem; }
.registration-result:not(:empty) { margin-block-start: 1.75rem; }
@media (max-width: 32rem) {
  .home .actions { display: grid; grid-template-columns: 1fr; }
}
