:root {
  --navy: #123a5a;
  --blue: #1d668f;
  --blue-dark: #154c6d;
  --gold: #d6a42b;
  --sky: #eaf5fb;
  --paper: #fff;
  --ink: #183247;
  --muted: #536a7b;
  --danger: #9d2d26;
  --success: #176342;
  --text-large: clamp(1.35rem, 4.5vw, 1.9rem);
  --text-standard: clamp(1rem, 3.375vw, 1.425rem);
  font-size: 18px;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--sky); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: var(--text-standard); line-height: 1.5; }
button, input, select { font: inherit; }
a { color: var(--blue-dark); }
.page-banner { width: 100%; background: #08472f; }
.page-banner img { display: block; width: 100%; height: auto; }
.shell { width: min(100%, 48rem); min-height: 100svh; margin: 0 auto; padding: 1rem; }
.card { padding: clamp(1.4rem, 5vw, 2.5rem); border-radius: 1.1rem; background: var(--paper); box-shadow: 0 1rem 3rem rgba(18,58,90,.13); }
h1, h2 { margin: 0 0 1rem; color: var(--navy); font-family: Georgia, "Times New Roman", serif; line-height: 1.12; }
h1, h2 { font-size: var(--text-large); }
.section-title { margin-bottom: 2rem; color: #c2410c; }
.compact-title { font-size: var(--text-large); }
p { margin: 0 0 1rem; }
.lead, .lead--large { font-size: var(--text-standard); }
.package { margin: 1.2rem 0 1.6rem; padding-left: 1.3rem; }
.package li { margin: .45rem 0; }
.actions { display: grid; gap: .75rem; margin-top: 1.5rem; }
.actions--right { display: flex; justify-content: flex-end; margin-top: 4rem; }
.actions--right .button { width: min(100%, 18rem); }
.button { display: inline-flex; min-height: 3.35rem; align-items: center; justify-content: center; padding: .8rem 1.15rem; border: 0; border-radius: .7rem; background: var(--navy); color: white; font-size: var(--text-large); font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--blue); }
.button:disabled { background: #9aa9b4; color: #eef2f4; cursor: not-allowed; opacity: .8; }
.button--secondary { border: 2px solid var(--navy); background: white; color: var(--navy); }
.choice-grid { display: grid; gap: .75rem; margin: 1.3rem 0; }
.choice { position: relative; display: flex; min-height: 4rem; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 2px solid #aac5d5; border-radius: .8rem; background: white; font-size: 1.08rem; font-weight: 700; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--blue); background: #eef8fd; box-shadow: 0 0 0 2px rgba(29,102,143,.15); }
.choice input { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; accent-color: var(--blue); }
.question { margin: 0; padding: 0; border: 0; }
.question legend { width: 100%; padding: 0; }
.question .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .55rem; }
.question .choice { font-size: var(--text-large); }
.question[hidden] { display: none; }
.question + .question { margin-top: 4rem; }
.field { display: grid; gap: .4rem; margin: 1rem 0; }
.field label { font-weight: 800; }
.field input, .field select { width: 100%; min-height: 3.35rem; padding: .7rem .8rem; border: 2px solid #9fb8c7; border-radius: .65rem; background: white; color: var(--ink); }
.field input:focus, .field select:focus, .button:focus-visible, .choice:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.help { color: var(--muted); font-size: var(--text-standard); }
.deadline { color: #c2410c; font-size: var(--text-standard); }
.notice { margin: 1.35rem 0; padding: 1rem; border-left: .35rem solid var(--gold); border-radius: .35rem; background: #fff8e5; }
.error-list, .flash--error { color: var(--danger); }
.flash--success { color: var(--success); }
.admin-shell { width: min(100%, 75rem); }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
.admin-toolbar .field { flex: 1 1 12rem; margin: 0; }
.count { font-size: 1.1rem; font-weight: 800; }
.table-wrap { overflow-x: auto; margin-top: 1.25rem; }
table { width: 100%; border-collapse: collapse; background: white; font-size: .88rem; }
th, td { padding: .7rem; border-bottom: 1px solid #d7e2e9; text-align: left; vertical-align: top; }
th { background: var(--navy); color: white; }
.row-form { display: grid; min-width: 10rem; gap: .45rem; }
.small-button { min-height: 2.5rem; padding: .4rem .65rem; }

@media (min-width: 36rem) {
  .shell { padding: 2rem; }
  .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
