:root {
  color-scheme: light;
  --ink: #13233a;
  --navy: #0d1b31;
  --navy-deep: #0b1729;
  --navy-soft: #243751;
  --gold: #e5bc72;
  --gold-dark: #806027;
  --surface: #f5f6f7;
  --white: #fff;
  --muted: #526173;
  --line: #dce2e8;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 1rem/1.55 var(--sans); }
button { font: inherit; cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #a8782f; outline-offset: 4px; }
:focus:not(:focus-visible) { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.13; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; }
h2 { font-size: clamp(2.1rem, 3.3vw, 3rem); }
h3 { font-weight: 700; }
[tabindex="-1"] { scroll-margin-top: 1.5rem; }
.wrap { width: min(100% - 5rem, 72rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: .7rem; left: .7rem; padding: .6rem 1rem; background: var(--white); color: var(--navy); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.site-header { background: var(--navy-deep); color: var(--white); border-bottom: 1px solid #ffffff1b; }
.header-inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: flex; align-items: center; gap: .75rem; font-family: var(--serif); font-size: 1.37rem; line-height: 1.1; }
.wordmark strong { color: var(--gold); font-weight: inherit; }
.brand-mark { flex: 0 0 auto; }
.header-link, .hero-link { background: none; color: var(--white); border: 0; padding: .65rem .15rem; font-size: .9rem; font-weight: 650; }
.header-link { color: #e0e7f1; }
.header-link:hover, .hero-link:hover { color: var(--gold); }
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--white); border-bottom: 3px solid #d5ad62; }
.hero-photo { position: absolute; z-index: -1; inset: 0 0 0 33%; background: linear-gradient(90deg, var(--navy) 0%, #0d1b31cf 14%, #0d1b3145 38%, #0d1b310d 75%), linear-gradient(0deg, #0916277a, transparent 38%), url("./skyline.webp") center 51% / cover; }
.hero-inner { padding-block: clamp(3rem, 5vw, 4.75rem) clamp(2.6rem, 4.5vw, 4rem); }
.eyebrow { font-size: .875rem; font-weight: 750; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; }
.hero-eyebrow { color: #f1cb87; }
.hero-eyebrow span { display: inline-block; width: 1.65rem; margin-right: .6rem; height: 1px; vertical-align: middle; background: currentColor; }
.hero h1 { margin-block: .75rem 1rem; color: #fffdf8; font-size: clamp(3.7rem, 6.2vw, 6.1rem); line-height: .96; }
.hero-description { max-width: 29rem; color: #e0e7f1; font-size: 1.08rem; line-height: 1.6; }
.hero-actions { display: flex; gap: 1.3rem; align-items: center; flex-wrap: wrap; margin-top: 1.65rem; }
.hero-link { text-underline-offset: .28em; text-decoration: underline; text-decoration-color: #f1cb8790; }
.hero-meta { display: flex; align-items: center; gap: .6rem; margin-top: 1.05rem; color: #c9d3e2; font-size: .875rem; }
.hero-meta span { display: inline-block; width: .24rem; height: .24rem; background: #dcbc80; border-radius: 50%; }
.button { min-height: 2.85rem; border: 1px solid transparent; border-radius: .36rem; padding: .65rem 1.05rem; font-size: .93rem; font-weight: 740; text-align: center; }
.button-gold { background: var(--gold); color: #152137; }
.button-gold:hover { background: #f0cd91; }
.button-navy { background: var(--navy); color: var(--white); }
.button-navy:hover { background: #243952; }
.button-outline { border-color: #cbd5e0; background: var(--white); }
.button-outline:hover { background: #edf1f5; }

.assessment { padding-block: 2.7rem 4.5rem; }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 1.2rem 2rem; margin-bottom: 1.35rem; }
.section-eyebrow { color: var(--gold-dark); }
.section-top h2 { margin-top: .24rem; }
.overall-progress { width: min(100%, 16rem); padding-bottom: .25rem; }
.overall-progress > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .875rem; }
.overall-progress > div span:last-child { color: var(--ink); font-weight: 730; white-space: nowrap; }
progress { display: block; width: 100%; height: .42rem; margin-top: .42rem; overflow: hidden; appearance: none; border: 0; border-radius: 100px; background: #dfe5ec; color: #a77e39; }
progress::-webkit-progress-bar { background: #dfe5ec; }
progress::-webkit-progress-value { background: #a77e39; border-radius: 100px; }
progress::-moz-progress-bar { background: #a77e39; border-radius: 100px; }
.assessment-grid { display: grid; gap: 1.35rem; grid-template-columns: minmax(13.8rem, 16.2rem) minmax(0, 1fr); align-items: start; }
.stage-nav { display: grid; gap: .6rem; }
.stage-step { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .85rem .8rem; min-height: 4.35rem; width: 100%; border: 1px solid var(--line); border-radius: .46rem; text-align: left; background: #fff; }
.stage-step:disabled { background: #f1f3f5; }
.stage-step:not(:disabled):not(.is-current):hover { border-color: #a88b59; }
.stage-step.is-current { color: var(--white); border-color: var(--navy); background: var(--navy); box-shadow: inset 3px 0 0 var(--gold); }
.step-number { display: grid; place-items: center; width: 2rem; height: 2rem; color: var(--gold-dark); border: 1px solid #dac6a6; border-radius: 50%; font-size: .875rem; font-weight: 750; }
.is-current .step-number { color: var(--gold); border-color: #ab874c; }
.stage-step strong, .stage-step small { display: block; }
.stage-step strong { font-size: .98rem; line-height: 1.3; }
.stage-step small { color: var(--muted); font-size: .875rem; line-height: 1.27; margin-top: .18rem; }
.is-current small { color: #ced9e8; }
.step-check { font-weight: 800; color: #446652; }
.is-current .step-check { color: #e4c582; }
.storage-note { margin: 1rem .05rem 0; color: var(--muted); font-size: .875rem; }
.subtle-button { border: 0; padding: .48rem 0; color: #3e536b; background: transparent; font-size: .875rem; font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }
.subtle-button:hover { color: var(--gold-dark); }
.reset-link { margin-top: .2rem; }
.review-link { display: block; }
.question-panel { overflow: hidden; border: 1px solid #d9dfe6; border-radius: .55rem; background: var(--white); box-shadow: 0 10px 26px #172a4210; }
.panel-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; align-items: start; padding: 1.45rem 1.6rem 1.05rem; }
.panel-heading h3 { margin-top: .28rem; font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; font-size: 2.05rem; }
.stage-description { grid-column: 1 / -1; color: var(--muted); }
.stage-counter { align-self: start; margin-top: .06rem; padding: .25rem .65rem; border-radius: .28rem; background: #f1f3f7; color: #43556c; white-space: nowrap; font-size: .875rem; font-weight: 680; }
.scale { padding: .65rem 1.6rem; border-block: 1px solid #e4e8ee; display: flex; flex-wrap: wrap; gap: .45rem 1rem; background: #f4f6f9; color: #42536a; font-size: .875rem; }
.scale span { white-space: nowrap; }
.scale strong { display: inline-grid; place-items: center; margin-right: .19rem; color: var(--navy); font-weight: 820; }
.question-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .85rem 1.15rem; margin: 0; min-inline-size: 0; padding: .95rem 1.6rem; border: 0; border-bottom: 1px solid #e5e9ee; }
.question-row:nth-child(even) { background: #fbfcfd; }
.question-row.is-missing { background: #fff6e8; box-shadow: inset 3px 0 0 #a8782f; }
.question-copy strong { display: block; font-size: 1rem; line-height: 1.35; }
.question-copy p { margin-top: .22rem; color: var(--muted); font-size: .94rem; line-height: 1.42; }
.choices { display: grid; gap: .34rem; grid-template-columns: repeat(5, minmax(2.75rem, 1fr)); }
.choice { position: relative; min-width: 0; cursor: pointer; }
.choice input { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.choice span { display: grid; place-items: center; min-height: 2.75rem; background: #fff; border: 1px solid #cdd6e0; border-radius: .32rem; font-size: 1rem; font-weight: 720; }
.choice:hover span { background: #f8efdd; border-color: #aa8a4e; }
.choice input:checked + span { background: var(--navy); color: white; border-color: var(--navy); box-shadow: inset 0 -2px var(--gold); }
.choice input:focus-visible + span { outline: 3px solid #a8782f; outline-offset: 2px; }
.form-actions { display: flex; justify-content: flex-end; gap: .7rem; padding: 1.1rem 1.6rem; }
.form-actions #back-button { margin-right: auto; }
.form-error { margin: 1rem 1.6rem 0; color: #75411a; font-weight: 720; }

.report-banner { background: linear-gradient(110deg, var(--navy-deep), #1e3555); color: var(--white); border-bottom: 3px solid var(--gold); }
.report-banner-inner { display: flex; justify-content: space-between; align-items: end; gap: 1.65rem; padding-block: 3.4rem; }
.report-banner h1 { margin-block: .45rem .65rem; font-size: clamp(2.8rem, 5.4vw, 5.15rem); }
.report-banner p:not(.eyebrow) { max-width: 38rem; color: #dbe4f0; }
.report-buttons { display: flex; align-items: center; gap: .85rem 1.1rem; flex: 0 0 auto; flex-wrap: wrap; }
.report-content { padding-block: 1.65rem 4.5rem; }
.report-overview { display: grid; grid-template-columns: 1.1fr 2.5fr; gap: .9rem; }
.overall-result, .stage-result, .action-card, .table-wrap, .comparison, .tie-note { border: 1px solid var(--line); border-radius: .5rem; background: #fff; }
.overall-result { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .8rem; padding: 1rem; text-align: center; background: #fdfaf3; border-color: #e5dac4; }
.score-ring { position: relative; isolation: isolate; width: 6.2rem; height: 6.2rem; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 50%; background: conic-gradient(#ae8442 var(--score), #eee4d1 0); }
.score-ring::before { content: ""; z-index: -1; position: absolute; inset: .36rem; border-radius: 50%; background: #fdfaf3; }
.score-ring strong { font-family: var(--serif); font-size: 1.9rem; line-height: 1.05; }
.score-ring span { font-size: .875rem; color: var(--muted); }
.overall-result h2 { font: 750 1.03rem/1.15 var(--sans); letter-spacing: 0; }
.overall-result p { color: var(--gold-dark); font-size: .875rem; font-weight: 700; }
.stage-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.stage-result { min-width: 0; padding: 1.05rem; }
.stage-result .eyebrow { font-size: .8rem; line-height: 1.4; letter-spacing: .035em; }
.stage-result h3 { margin-top: .4rem; font-size: 1.12rem; }
.stage-result-score { margin-top: .65rem; }
.stage-result-score strong { font-family: var(--serif); font-size: 2.25rem; line-height: 1.12; }
.stage-result-score span { color: var(--muted); font-size: .875rem; }
.stage-result-meter { height: .38rem; margin-top: .3rem; border-radius: 10rem; background: #e8ebf0; overflow: hidden; }
.stage-result-meter span { display: block; height: 100%; background: #90632f; border-radius: 10rem; }
.stage-result-meter.established span { background: #2e6357; }
.stage-result-meter.priority span { background: #9a4a35; }
.band-label { margin-top: .48rem; color: var(--muted); font-size: .875rem; font-weight: 660; }
.comparison, .tie-note { grid-column: 1 / -1; padding: .95rem 1.1rem; }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1rem; }
.comparison span { display: block; color: var(--muted); font-size: .875rem; }
.comparison strong { display: block; margin-top: .15rem; }
.report-section { margin-top: 2.05rem; }
.report-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.report-section > p, .report-note { color: var(--muted); margin-top: .35rem; }
.consultation { padding: clamp(1rem, 4vw, 1.75rem); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: .5rem; background: #fdfaf3; }
.consultation .button { margin-top: .9rem; max-width: 100%; white-space: normal; text-align: center; text-decoration: none; }
@media print { .consultation { display: none; } }
.actions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: .85rem; }
.action-card { padding: 1rem 1.05rem; border-top: 3px solid #caab69; }
.action-meta { display: flex; align-items: center; justify-content: space-between; gap: .4rem; color: var(--gold-dark); font-size: .875rem; font-weight: 750; }
.action-card h3 { margin: .68rem 0 .42rem; font-size: 1.1rem; }
.action-card p { color: var(--muted); }
.table-wrap { margin-top: .85rem; overflow: auto; }
table { width: 100%; min-width: 36rem; border-collapse: collapse; }
table th, table td { padding: .6rem .8rem; text-align: center; border-bottom: 1px solid var(--line); }
table th:first-child { text-align: left; }
thead { background: #eef1f5; }
thead th { font-size: .875rem; }
tbody th { font-weight: 680; line-height: 1.3; }
tbody tr:last-child > * { border-bottom: 0; }
.rating-cell { display: inline-grid; place-items: center; width: 2rem; min-height: 1.8rem; border-radius: .25rem; background: #f9edda; color: #674917; font-weight: 750; }
.rating-cell.established { background: #e2f0eb; color: #245549; }
.rating-cell.priority { background: #f6e7e1; color: #763724; }
.average-cell { font-weight: 750; font-variant-numeric: tabular-nums; }
.report-note { max-width: 48rem; margin-top: 1.35rem; font-size: .875rem; }
.site-footer { background: var(--navy-deep); color: #dee5ef; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .4rem 1.6rem; padding-block: 1.2rem; font-size: .875rem; }
.footer-inner span:first-child { color: #f3d197; font-weight: 730; }
dialog { width: min(100% - 2rem, 33rem); max-height: calc(100% - 2rem); overflow: auto; border: 1px solid var(--line); border-radius: .55rem; padding: 0; color: var(--ink); background: #fff; box-shadow: 0 16px 55px #0d1b3150; }
dialog::backdrop { background: #0a162bc0; }
.dialog-content { padding: 1.45rem; }
.dialog-content h2 { font-size: 2rem; }
.dialog-content p, .dialog-content ol { margin-top: .65rem; color: var(--muted); }
.dialog-content ol { padding-left: 1.5rem; }
.dialog-content li { margin-top: .24rem; }
.dialog-content strong { color: var(--ink); }
.dialog-content form { margin-top: 1rem; }
.dialog-actions { display: flex; justify-content: end; gap: .6rem; }
.no-script { padding-block: 2rem; }

@media (max-width: 900px) {
  .wrap { width: min(100% - 3rem, 72rem); }
  .assessment-grid { grid-template-columns: minmax(11.5rem, 13.1rem) minmax(0, 1fr); gap: .85rem; }
  .question-row { padding-inline: 1.2rem; }
  .panel-heading, .scale { padding-inline: 1.2rem; }
  .choices { gap: .26rem; }
  .report-banner-inner { align-items: start; flex-direction: column; gap: 1rem; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 3.75rem; }
  .wordmark { font-size: 1.14rem; gap: .46rem; }
  .brand-mark { width: 30px; height: 30px; }
  .hero-photo { inset: 0; background-position: center, center, 67% center; background-image: linear-gradient(90deg, #0d1b31f5, #0d1b31b5 62%, #0d1b314d), linear-gradient(0deg, #091627b3, #09162722), url("./skyline.webp"); }
  .hero-inner { padding-block: 2.25rem; }
  .hero h1 { font-size: clamp(3rem, 11vw, 4.35rem); }
  .hero-actions { gap: .55rem 1rem; margin-top: 1.25rem; }
  .hero-eyebrow span { width: .85rem; margin-right: .35rem; }
  .assessment { padding-block: 1.8rem 3rem; }
  .section-top { display: grid; align-items: start; gap: .9rem; }
  .overall-progress { width: 100%; }
  .assessment-grid { grid-template-columns: minmax(0, 1fr); }
  .stage-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
  .stage-step { display: flex; flex-wrap: wrap; gap: .35rem; align-content: center; padding: .42rem .38rem; min-height: 3.25rem; }
  .step-number { width: 1.43rem; height: 1.43rem; font-size: .75rem; }
  .stage-step strong { font-size: .875rem; }
  .stage-step small { display: none; }
  .storage-note { margin-top: .55rem; }
  .question-row { grid-template-columns: minmax(0, 1fr); }
  .choices { max-width: 23rem; gap: .42rem; }
  .panel-heading, .scale, .question-row, .form-actions { padding-inline: .9rem; }
  .form-error { margin-inline: .9rem; }
  .report-banner-inner { padding-block: 2.35rem; }
  .report-overview, .actions-grid { grid-template-columns: minmax(0, 1fr); }
  .overall-result { flex-direction: row; justify-content: start; text-align: left; }
  .stage-results { gap: .4rem; }
  .stage-result { padding: .65rem .48rem; }
  .stage-result h3 { font-size: .97rem; }
  .stage-result-score strong { font-size: 1.55rem; }
  .stage-result .eyebrow { display: none; }
  .footer-inner { align-items: start; flex-direction: column; }
}
@media (max-width: 355px) {
  .wrap { width: calc(100% - 1.25rem); }
  .stage-step strong { font-size: .82rem; }
  .stage-step { padding-inline: .25rem; }
  .step-number { display: none; }
  .question-row { padding-inline: .65rem; }
}
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .report-buttons, .skip-link, dialog { display: none !important; }
  .wrap { width: 100%; }
  .report-banner { color: #13233a; background: #fff; }
  .report-banner-inner { padding-block: .25rem .7rem; }
  .report-banner h1 { font-size: 27pt; }
  .report-banner .eyebrow, .report-banner p:not(.eyebrow) { color: #13233a; }
  .report-content { padding-block: .65rem 0; }
  .report-section { margin-top: .8rem; }
  .overall-result { flex-direction: row; text-align: left; }
  .report-overview { grid-template-columns: 1fr 2.4fr; gap: .4rem; }
  .stage-results, .actions-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
  .score-ring { width: auto; height: auto; background: none; }
  .score-ring::before { display: none; }
  .stage-result, .action-card { padding: .48rem; }
  .report-overview, .action-card, tr { break-inside: avoid; }
  table { min-width: 0; }
  table th, table td { padding: .22rem .4rem; }
}
