:root {
  --navy: #222645;
  --teal: #5db1b5;
  --deep-teal: #246b70;
  --pale-teal: #e7f4f3;
  --paper: #f8f8fa;
  --line: #dddee6;
  --muted: #555970;
  --serif: 'Merriweather', Georgia, serif;
  --sans: 'Roboto', Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--navy); background: var(--paper); font: 1rem/1.55 var(--sans); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--deep-teal); outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 1rem var(--serif); }
.brand img { object-fit: contain; }
.header-label { color: var(--muted); font-size: .875rem; font-weight: 600; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 5px; margin: 24px -5px; scrollbar-width: thin; }
.tab { border: 1px solid transparent; background: transparent; flex: 1 0 auto; padding: 10px 14px; border-radius: 9px; color: var(--muted); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.tab:hover { background: #fff; border-color: var(--line); }
.tab[aria-selected="true"] { color: var(--navy); background: var(--pale-teal); border-color: #b7d8da; }
.tab[data-answered="true"]::after { content: " ✓"; color: var(--deep-teal); }
.hero { display: grid; grid-template-columns: 1.25fr 1fr; border: 1px solid var(--line); border-radius: 19px; background: #fff; overflow: hidden; }
.hero-copy { padding: clamp(26px, 4vw, 48px); align-self: start; }
.kicker { margin: 0 0 13px; font-size: .875rem; font-weight: 700; color: var(--deep-teal); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.65rem); letter-spacing: -.055em; font-weight: 900; }
h1 span { color: var(--deep-teal); }
h2 { font-size: clamp(1.6rem, 3vw, 2.45rem); letter-spacing: -.04em; }
.hero-copy > p:not(.kicker), .section-head p { color: var(--muted); max-width: 58ch; }
.hero-copy .primary { margin-top: 10px; }
.course-map { padding: clamp(22px, 3vw, 36px); background: var(--pale-teal); border-left: 1px solid #d0e5e7; }
.course-map h2 { font-size: 1.22rem; margin-bottom: 18px; }
.course-map ol { list-style: none; margin: 0; padding: 0; }
.course-map li + li { border-top: 1px solid #c2dddf; }
.map-link { width: 100%; display: grid; grid-template-columns: 2.1rem 1fr; gap: 6px; text-align: left; align-items: baseline; color: var(--navy); background: transparent; border: 0; padding: 9px 0; }
.map-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.map-link span { color: var(--deep-teal); font-size: .875rem; font-weight: 700; }
.map-link small { display: block; color: var(--muted); font-size: .875rem; margin-top: 2px; }
.primary, .secondary { border: 1px solid transparent; border-radius: 10px; padding: 11px 18px; font-weight: 700; min-height: 46px; }
.primary { background: var(--teal); color: #fff; }
.primary:hover { background: #76c2c5; }
.primary:disabled { opacity: .65; cursor: wait; }
.secondary { border-color: var(--line); background: white; }
.secondary:hover { background: var(--pale-teal); }
.identity, .question-panel { max-width: 820px; margin: 24px auto; padding: clamp(22px, 4vw, 40px); background: white; border: 1px solid var(--line); border-radius: 16px; }
.identity h2 { font-size: 1.35rem; }
.identity p { color: var(--muted); margin: 7px 0 18px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 700; }
input, select, textarea { display: block; width: 100%; background: #fff; border: 1px solid #bfc2cf; border-radius: 8px; margin-top: 6px; padding: 10px 12px; }
select { appearance: none; padding-right: 38px; background: linear-gradient(45deg, transparent 50%, var(--deep-teal) 50%) calc(100% - 19px) 50%/6px 6px no-repeat, linear-gradient(135deg, var(--deep-teal) 50%, transparent 50%) calc(100% - 13px) 50%/6px 6px no-repeat, #fff; }
textarea { min-height: 92px; resize: vertical; }
.question { margin-top: 24px; }
.section-head { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.section-head p:last-child { margin-bottom: 0; }
.section-actions { margin-top: 26px; display: flex; justify-content: space-between; gap: 10px; }
.status { margin: 12px 0 0; color: var(--deep-teal); font-weight: 600; }
.error { color: #9c2846; }
.submission { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 20px; }
.submission p { color: var(--muted); }
.footer { display: flex; justify-content: space-between; gap: 15px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
@media (max-width: 780px) {
  .wrap { width: calc(100% - 32px); }
  .hero { grid-template-columns: 1fr; }
  .course-map { border-left: 0; border-top: 1px solid #d0e5e7; }
  .tab { flex: 0 0 auto; }
}
@media (max-width: 520px) {
  .fields { grid-template-columns: 1fr; }
  .top-inner { min-height: 62px; }
  .header-label { max-width: 125px; text-align: right; }
}
