:root {
    color-scheme: light;
    --ink: #102747;
    --muted: #435a75;
    --blue: #174fbd;
    --deep: #102f62;
    --surface: #fff;
    --page: #f3f7fd;
    --line: #d9e4f3;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
[hidden] { display: none !important; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid #4385ef; outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 5; background: white; padding: .7rem; }
.skip:focus { top: 1rem; }
.shell { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.top { background: white; border-bottom: 1px solid var(--line); }
.bar, nav { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.bar { justify-content: space-between; min-height: 72px; padding-block: .55rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 800; }
.brand-mark, .tile-icon { display: inline-grid; place-items: center; border-radius: 10px; width: 2.25rem; height: 2.25rem; background: var(--blue); color: white; font-size: 1.35rem; }
.brand-detail { font-weight: 550; color: var(--muted); }
nav { gap: .25rem; }
nav a { color: var(--muted); font-weight: 650; text-decoration: none; padding: .6rem .8rem; border-radius: 8px; font-size: .9rem; }
nav a:hover, nav a[aria-current] { background: #e8f0ff; color: #123e92; }
.view { padding-block: 1.8rem; }
h1, h2, h3 { line-height: 1.16; margin: 0 0 .65rem; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 5vw, 3.55rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.65rem); }
h3 { font-size: 1.18rem; }
p { margin: .45rem 0 .9rem; }
p:last-child { margin-bottom: 0; }
.hero {
    border-radius: 20px;
    padding: clamp(1.4rem, 5vw, 3.35rem);
    color: white;
    background-color: #103365;
    background-image: linear-gradient(105deg, #102d5c 25%, #153e7ddd 72%, #1a55a8b5),
        repeating-linear-gradient(0deg, transparent 0 25px, #a1c5ff53 25px 26px),
        repeating-linear-gradient(90deg, transparent 0 25px, #a1c5ff53 25px 26px);
}
.hero p { color: #e2edff; max-width: 46rem; }
.eyebrow { display: block; letter-spacing: .12em; font-size: .84rem; font-weight: 750; margin-bottom: .65rem; }
.hero .eyebrow { color: #bcd6ff; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1rem, 3vw, 1.6rem); margin-top: 1rem; }
.statement { border-inline-start: 4px solid #3778e3; }
.statement p, .muted, .tool p { color: var(--muted); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; margin-top: 1.75rem; }
.section-heading span { color: var(--muted); font-size: .9rem; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tool { display: flex; align-items: flex-start; flex-direction: column; margin-top: .4rem; }
.tool p { flex: 1; }
.tile-icon { background: #e8f0ff; color: var(--blue); margin-bottom: .9rem; }
.button, button {
    display: inline-block; border: 1px solid transparent; border-radius: 9px; padding: .66rem .95rem;
    font: inherit; font-weight: 700; cursor: pointer; background: var(--blue); color: white; text-decoration: none;
}
.button:hover, button:hover { background: #143e91; }
.secondary { background: #eaf1ff; color: #133e90; border-color: #d9e6ff; }
.secondary:hover { background: #dce9ff; }
button:disabled { opacity: .55; cursor: default; }
.controls { display: flex; flex-wrap: wrap; gap: .65rem; align-items: end; margin-block: .85rem; }
label { display: block; font-weight: 650; }
select, input[type=number] { display: block; max-width: 100%; border: 1px solid #a9bbd3; background: white; color: var(--ink); border-radius: 8px; font: inherit; padding: .62rem .75rem; margin-top: .25rem; }
select { appearance: none; padding-right: 2.3rem; background-image: linear-gradient(45deg, transparent 50%, #193e78 50%), linear-gradient(135deg, #193e78 50%, transparent 50%); background-position: right 17px center, right 12px center; background-size: 5px 5px; background-repeat: no-repeat; }
fieldset { border: 0; padding: 0; margin: 1rem 0; min-width: 0; }
legend { font-weight: 750; margin-bottom: .55rem; }
.choice { padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 9px; margin-bottom: .35rem; font-weight: 500; display: flex; gap: .55rem; align-items: baseline; }
.choice:has(input:checked) { background: #eaf2ff; border-color: #6d9ae9; }
input { accent-color: var(--blue); }
.feedback { margin: 1rem 0; background: #edf4ff; border-left: 4px solid var(--blue); padding: .85rem 1rem; border-radius: 5px; }
.feedback:empty { display: none; }
.flash { background: #edf4ff; min-height: 8rem; border-radius: 12px; padding: 1.1rem; margin: .75rem 0; }
progress { width: 100%; height: .85rem; accent-color: var(--blue); }
.metric strong { font-size: 1.4rem; display: block; }
.table-wrap { overflow-x: auto; margin-block: .75rem 1rem; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-weight: 750; padding-bottom: .45rem; }
th, td { padding: .55rem .65rem; text-align: right; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
thead { background: #edf4ff; }
tbody th { font-weight: 600; }
td input { width: 7rem; margin-left: auto; }
details { margin-block: .8rem; }
summary { cursor: pointer; color: var(--blue); font-weight: 750; }
.footer { display: flex; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 1rem; color: var(--muted); font-size: .88rem; }
@media (max-width: 740px) {
    .shell { width: calc(100% - 1.5rem); }
    .tool-grid { grid-template-columns: 1fr; }
    nav a { padding: .5rem; }
    .view { padding-block: 1rem; }
}
