:root {
  color-scheme: light;
  --forest: #102e2c;
  --green: #14584b;
  --ink: #18342e;
  --muted: #4a625b;
  --line: #d6e4dc;
  --paper: #f3f7f3;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select { font: inherit; }
button, .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  border-radius: .6rem;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .button:hover { background: var(--forest); }
button:disabled { opacity: .62; cursor: wait; }
.secondary { border-color: #91b1a4; color: var(--forest); background: #fff; }
.secondary:hover { color: var(--forest); background: #e3efe7; }
:focus-visible { outline: 3px solid #167ea7; outline-offset: 4px; }
.shell { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }
.site-bar { background: #fff; border-bottom: 1px solid var(--line); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; padding: 2px; }
.bar-inner nav { display: flex; justify-content: flex-end; gap: .8rem 1.2rem; flex-wrap: wrap; font-size: .85rem; font-weight: 700; }
.intro { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: end; background: var(--forest); color: #fff; border-radius: 1.25rem; margin-block: 1.35rem 2.3rem; padding: clamp(1.25rem, 5vw, 3rem); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.25rem, 7vw, 4rem); letter-spacing: -.055em; line-height: 1.05; }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); line-height: 1.2; }
h3 { font-size: 1.24rem; line-height: 1.2; }
p { line-height: 1.55; }
.eyebrow { color: var(--green); font-size: .77rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.intro .eyebrow { color: #f0d391; margin-bottom: .75rem; }
.intro h1 + p { margin-top: .9rem; max-width: 45ch; color: #e0eee6; }
.facts { display: grid; gap: .55rem; margin: 0; }
.facts div { display: grid; grid-template-columns: 4rem 1fr; align-items: center; gap: .5rem; padding: .55rem .7rem; border: 1px solid #60867a; border-radius: .6rem; }
.facts dt { font-size: 1.25rem; font-weight: 800; color: #f0d391; }
.facts dd { margin: 0; font-size: .82rem; }
.path-grid, .goal-grid { display: grid; gap: .75rem; margin-top: 1rem; }
.path-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.path, .result-box { background: #fff; padding: 1.1rem; border: 1px solid var(--line); border-radius: .85rem; }
.path { display: grid; grid-template-rows: auto auto 1fr auto; justify-items: start; gap: .7rem; }
.path p:not(.eyebrow), #result-message { color: var(--muted); }
.goals, .prize { margin-top: 2.1rem; }
.goal-grid { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.goal { justify-content: flex-start; text-align: left; gap: .6rem; width: 100%; font-size: .9rem; }
.goal-number { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; background: #f3f7f3; border-bottom: 4px solid var(--goal-color); border-radius: .32rem; font-weight: 850; }
.prize { padding: 1.25rem; background: #f6edda; border-radius: .85rem; }
.prize h2, .prize p, .prize a { margin-block: .45rem; }
.prize a { font-weight: 700; }
.panel { max-width: 790px; margin: 1.5rem auto; border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 4vw, 2.25rem); background: #fff; }
.panel h1 { font-size: clamp(1.85rem, 5vw, 3rem); margin-block: .55rem .85rem; }
.back { background: #fff; color: var(--green); padding-inline: 0; }
.back:hover { background: #fff; color: var(--forest); text-decoration: underline; }
.progress-row { display: grid; gap: .35rem; margin-block: 1rem 1.35rem; font-size: .85rem; font-weight: 700; }
progress { width: 100%; height: .6rem; accent-color: var(--green); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; font-size: clamp(1.1rem, 3.5vw, 1.45rem); line-height: 1.35; font-weight: 780; }
legend span { display: block; }
#question-theme:not(:empty) { margin-bottom: .35rem; }
.choices { display: grid; gap: .5rem; margin-block: 1rem; }
.choice { display: flex; gap: .65rem; align-items: start; padding: .8rem; border: 1px solid #a8c1b5; border-radius: .55rem; cursor: pointer; }
.choice:has(:checked) { background: #e5f0e9; border-color: var(--green); }
.choice input, .consent input { margin-top: .28em; accent-color: var(--green); }
.question-nav { display: flex; gap: .75rem; justify-content: space-between; }
.result-box { margin-block: 1rem; background: #f6faf7; }
.result-box h2 { margin-bottom: .8rem; }
.result-box form { display: grid; gap: .45rem; }
.result-box button { justify-self: start; margin-top: .35rem; }
label { font-weight: 650; }
label small { color: var(--muted); }
input:not([type=checkbox], [type=radio]) { width: 100%; min-height: 44px; padding: .55rem; border: 1px solid #779c8e; border-radius: .45rem; background: #fff; color: var(--ink); }
.consent { display: flex; gap: .55rem; align-items: start; font-weight: 450; margin-top: .35rem; }
summary { cursor: pointer; font-weight: 750; }
#review { padding-left: 1.3rem; }
#review li { padding-block: .65rem; border-bottom: 1px solid var(--line); }
#review p { margin-top: .2rem; }
.notice, #entry-message { padding: .85rem; border: 1px solid #b78c49; background: #fff5e3; border-radius: .6rem; margin-block: .7rem; }
.site-footer { background: var(--forest); color: #fff; padding: 1rem 0; margin-top: 2rem; font-size: .82rem; }
.site-footer a { display: inline-block; margin: .25rem .4rem; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
th, td { border-bottom: 1px solid var(--line); padding: .55rem; text-align: left; }
@media (max-width: 700px) {
  .intro, .path-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts div { grid-template-columns: 1fr; gap: .1rem; }
}
