:root {
    color-scheme: light;
    --canvas: #f4f7fc;
    --white: #ffffff;
    --ink: #121e36;
    --body: #42516c;
    --muted: #53627b;
    --line: #dbe3f0;
    --brand: #284bd5;
    --brand-dark: #1e3dbb;
    --brand-soft: #e8edff;
    --navy: #182753;
    --green: #166346;
    --green-soft: #e7f8ef;
    --red: #a42d44;
    --red-soft: #fff0f3;
    --mint: #a9f3da;
    --radius: 1rem;
    --shadow: 0 12px 32px #2439580b;
    font-family: "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 100%;
    line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    min-width: 18rem;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--canvas);
    color: var(--ink);
}

a { color: var(--brand-dark); text-underline-offset: 0.19em; }
a:hover { color: var(--brand); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }

:focus-visible {
    outline: 3px solid #526bff;
    outline-offset: 4px;
}

[hidden] { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    z-index: 2;
    top: 0.75rem;
    left: 0.75rem;
    transform: translateY(-200%);
    background: var(--white);
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
    font-weight: 700;
}

.skip-link:focus { transform: none; }

h1, h2, h3, p, ul, ol, dl { margin: 0; }
h1, h2, h3 { line-height: 1.14; text-wrap: balance; overflow-wrap: anywhere; }
h1, h2 { letter-spacing: -0.045em; }
h3 { letter-spacing: -0.024em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { color: var(--body); }

.shell {
    width: min(100% - 4rem, 70rem);
    margin-inline: auto;
}

.narrow { max-width: 49rem; }

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    min-height: 4.625rem;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
}

.brand, .identity-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink);
    text-decoration: none;
}

.brand:hover, .identity-link:hover { color: var(--brand-dark); }

.brand-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.375rem;
    height: 2.375rem;
    border-radius: 0.75rem;
    background: var(--brand);
    color: var(--white);
}

.brand-icon:empty {
    background-image: url("favicon.svg");
    background-size: cover;
}

.brand-icon svg { width: 1.35rem; height: 1.35rem; }
.brand-icon img { width: 100%; height: 100%; border-radius: inherit; }
.brand-name, .brand { font-size: 1.3rem; font-weight: 780; letter-spacing: -0.055em; }

.site-nav {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    align-self: stretch;
    gap: 1.4rem;
}

.site-nav a {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--body);
    font-size: 0.925rem;
    font-weight: 650;
    text-decoration: none;
}

.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand-dark); }
.site-nav a[aria-current="page"]::after {
    position: absolute;
    bottom: -1px;
    inset-inline: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--brand);
    content: "";
}

.identity-link {
    min-height: 2.45rem;
    max-width: 15rem;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 2rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.identity-link svg { width: 1rem; height: 1rem; flex: none; }
.identity-link:hover { background: var(--brand-soft); border-color: #c5d1fc; }

.profile-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    max-width: 100%;
    border-radius: 2rem;
    padding: 0.3rem 0.7rem;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 0.875rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.site-main {
    flex: 1 0 auto;
    padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 8vw, 5.5rem);
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: 23rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #233568;
    border-radius: 1.5rem;
    background: radial-gradient(ellipse at 92% 44%, #293a77, transparent 56%), #18264e;
    color: var(--white);
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(100%, 43rem);
    padding: clamp(2rem, 5.5vw, 4.25rem);
}

.eyebrow {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--brand-dark);
    font-size: 0.8375rem;
    font-weight: 750;
    letter-spacing: 0.105em;
    text-transform: uppercase;
}

.hero .eyebrow { color: #b7c6ff; }
.hero h1 { max-width: 12ch; font-size: clamp(2.6rem, 6.4vw, 4.45rem); letter-spacing: -0.07em; }
.hero p { max-width: 32rem; margin-top: 1rem; color: #e0e8ff; font-size: 1.06rem; }
.hero .actions { margin-top: 1.65rem; }
.hero .button-primary { border-color: var(--mint); background: var(--mint); color: #0c302b; }
.hero .button-primary:hover { border-color: #d0f9eb; background: #d0f9eb; }
.hero .button-secondary, .hero .button-quiet { color: var(--white); }
.hero .button-secondary { background: #ffffff15; border-color: #ffffff50; }
.hero .button-secondary:hover, .hero .button-quiet:hover { background: #ffffff2a; }
.hero :focus-visible { outline-color: var(--mint); }

.hero-art {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    width: 49%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(ellipse at 63% 54%, #485dcc58, transparent 64%);
}

.hero-art::before, .hero-art::after {
    position: absolute;
    top: 51%;
    left: 61%;
    width: 102%;
    aspect-ratio: 1;
    border: 1px solid #9eb0fc49;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    content: "";
}

.hero-art::after { width: 78%; }

.signal-orbit {
    position: absolute;
    top: 51%;
    left: 61%;
    width: 46%;
    aspect-ratio: 1;
    border: 1px solid #b7c5ff71;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.signal-orbit:nth-of-type(2) {
    width: 26%;
    box-shadow: inset 0 0 3.5rem #89a4ff65, 0 0 3rem #7a94fc37;
    background: radial-gradient(circle, #a8f5de27, transparent 61%);
}

.signal-orbit:nth-of-type(2)::before, .signal-orbit:nth-of-type(2)::after {
    position: absolute;
    top: 50%;
    right: 100%;
    width: 175%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #9eb0fcb5);
    transform: rotate(-33deg);
    transform-origin: right center;
    content: "";
}

.signal-orbit:nth-of-type(2)::after { width: 265%; transform: rotate(25deg); }

.signal-node {
    position: absolute;
    z-index: 1;
    top: 51%;
    left: 61%;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    background: #b7ffe9;
    box-shadow: 0 0 1.4rem 0.15rem #a9f3da85;
    transform: translate(-50%, -50%);
}

.signal-node:nth-of-type(4) { top: 22%; left: 43%; width: 0.45rem; height: 0.45rem; background: #a6b5ff; }
.signal-node:nth-of-type(5) { top: 71%; left: 30%; width: 0.35rem; height: 0.35rem; background: #a6b5ff; }
.signal-node:nth-of-type(6) { top: 76%; left: 81%; width: 0.55rem; height: 0.55rem; background: #a6b5ff; }

.hero + section, .spaced { margin-top: clamp(2rem, 5vw, 3.5rem); }

.section-head, .page-head { margin-bottom: 1.35rem; }
.section-head p, .page-head p { max-width: 43rem; margin-top: 0.45rem; }
.section-head:not(:first-child) { margin-top: 2.25rem; }
.section-head.split, .page-head.split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18.5rem), 1fr));
    gap: 1rem;
}

.panel, .course-card, .question-card, .empty-state {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.panel, .question-card, .empty-state { padding: clamp(1.2rem, 3.9vw, 2rem); }
.panel + .panel, .panel + .empty-state, .empty-state + .panel { margin-top: 1rem; }
.panel h2, .empty-state h2 { font-size: 1.4rem; }
.panel > p, .empty-state > p { margin-top: 0.6rem; }
.panel > .actions, .empty-state > .actions { margin-top: 1rem; }
.panel > form { margin-top: 1rem; }

.course-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.17rem;
    --course-wash: var(--brand-soft);
    --course-color: var(--brand-dark);
}

.course-card.is-kine { --course-wash: #e4f8f0; --course-color: #166249; }
.course-card.is-medecine { --course-wash: #fff0f1; --course-color: #a03750; }
.course-card:hover { border-color: #bfcde8; }

.course-icon {
    display: inline-grid;
    place-items: center;
    align-self: flex-start;
    width: 2.8rem;
    height: 2.8rem;
    margin-bottom: 0.9rem;
    border-radius: 0.85rem;
    background: var(--course-wash, var(--brand-soft));
    color: var(--course-color, var(--brand-dark));
}

.course-icon svg { width: 1.4rem; height: 1.4rem; }
.course-card h3 { margin-block: 0.1rem 0.4rem; }
.course-card h3 a { color: inherit; text-decoration: none; }
.course-card h3 a:hover { color: var(--brand-dark); }
.course-card > p { margin-bottom: 0.4rem; }
.course-card > :last-child { margin-top: auto; }
.course-card .action-line, .course-card .actions { padding-top: 1rem; }
.course-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem 0.7rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.24rem 0.6rem;
    border-radius: 2rem;
    background: var(--course-wash, var(--brand-soft));
    color: var(--course-color, var(--brand-dark));
    font-size: 0.84rem;
    font-weight: 700;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.actions form { margin: 0; }
.button {
    display: inline-flex;
    min-height: 2.85rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.62rem;
    padding: 0.58rem 1rem;
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
}

.button svg { width: 1.125rem; height: 1.125rem; }
.button-primary { border-color: var(--brand); background: var(--brand); color: var(--white); }
.button-primary:hover { border-color: var(--brand-dark); background: var(--brand-dark); color: var(--white); }
.button-secondary { border-color: var(--line); background: var(--white); color: var(--ink); }
.button-secondary:hover, .button-quiet:hover { border-color: #c5d1fc; background: var(--brand-soft); color: var(--brand-dark); }
.button-quiet { border-color: transparent; background: transparent; color: var(--brand-dark); }
.button[disabled] { opacity: 0.58; cursor: default; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    align-items: start;
    gap: 1rem;
}

.field { min-width: 0; }
.field + .field { margin-top: 1rem; }
.form-grid + .field { margin-top: 1rem; }
.form-grid .field + .field { margin-top: 0; }
.field label, .field-label, legend { display: block; margin-bottom: 0.35rem; font-weight: 700; }
.field-hint, .muted { color: var(--muted); }
.field-hint { margin-block: 0.4rem 0; font-size: 0.875rem; }

input:not([type="radio"], [type="checkbox"], [type="submit"], [type="button"], [type="hidden"]),
select, textarea {
    display: block;
    width: 100%;
    min-height: 2.85rem;
    border: 1px solid #b7c4dc;
    border-radius: 0.62rem;
    padding: 0.56rem 0.75rem;
    background: var(--white);
    color: var(--ink);
}

input::placeholder, textarea::placeholder { color: #616e86; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--brand); }

select {
    appearance: none;
    padding-right: 2.2rem;
    background-image: linear-gradient(45deg, transparent 45%, #42516c 46% 62%, transparent 63%), linear-gradient(135deg, transparent 45%, #42516c 46% 62%, transparent 63%);
    background-repeat: no-repeat;
    background-position: right 0.95rem center, right 0.61rem center;
    background-size: 0.35rem 0.45rem;
}

fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }

input[type="file"]::file-selector-button {
    margin-right: 0.6rem;
    border: 0;
    border-radius: 0.4rem;
    padding: 0.34rem 0.6rem;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

form > .actions { margin-top: 1.15rem; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; }
.inline-form .field { flex: 1 1 12rem; }
.inline-form .field + .field { margin-top: 0; }
.inline-form .actions { margin-top: 0; }

.notice {
    margin-bottom: 1.2rem;
    border: 1px solid #c9d5fc;
    border-radius: 0.8rem;
    padding: 0.85rem 1rem;
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.notice p { color: inherit; }
.notice p + p, .notice ul { margin-top: 0.35rem; }
.notice ul { padding-inline-start: 1.3rem; }
.notice li + li { margin-top: 0.25rem; }
.notice.is-error { border-color: #f4bac7; background: var(--red-soft); color: var(--red); }
.notice.is-success { border-color: #afe2cb; background: var(--green-soft); color: var(--green); }

.quiz-top { margin-bottom: 1rem; }
.quiz-top h1 { margin-bottom: 0.65rem; font-size: clamp(1.55rem, 4vw, 2.35rem); }

.quiz-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem 1rem;
    padding-bottom: 0.5rem;
    color: var(--body);
    font-size: 0.9rem;
    font-weight: 650;
}

.quiz-score {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 2rem;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-variant-numeric: tabular-nums;
}

.quiz-progress {
    display: block;
    width: 100%;
    height: 0.55rem;
    overflow: hidden;
    appearance: none;
    border: 0;
    border-radius: 2rem;
    background: #dee6f8;
    color: var(--brand);
}

.quiz-progress::-webkit-progress-bar { border-radius: 2rem; background: #dee6f8; }
.quiz-progress::-webkit-progress-value { border-radius: 2rem; background: var(--brand); }
.quiz-progress::-moz-progress-bar { border-radius: 2rem; background: var(--brand); }

.quiz-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem 0.8rem;
    margin-block: 1rem;
}

.quiz-controls form > .actions { margin-top: 0; }
.quiz-controls label { font-size: 0.875rem; }
.quiz-controls .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiz-controls select { width: auto; min-width: 7rem; }
.quiz-settings .field { flex: 0 1 auto; }

.question-card h1, .question-card h2 {
    font-size: clamp(1.65rem, 4.2vw, 2.65rem);
    text-wrap: pretty;
    white-space: pre-line;
}

.question-card .eyebrow { margin-bottom: 0.8rem; }
.question-card > .actions { margin-top: 1.35rem; }

.answers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1.4rem;
    list-style: none;
    padding: 0;
}

.answer-btn {
    display: flex;
    align-items: center;
    gap: 0.68rem;
    width: 100%;
    height: 100%;
    min-height: 3.65rem;
    border: 1px solid #c4cfea;
    border-radius: 0.75rem;
    padding: 0.65rem 0.8rem;
    background: #f8faff;
    color: var(--ink);
    font-weight: 640;
    line-height: 1.38;
    text-align: left;
    overflow-wrap: anywhere;
}

button.answer-btn:hover { border-color: #9eafe7; background: var(--brand-soft); }
.answer-btn:disabled { cursor: default; }
.answer-btn.is-correct { border-color: #a1d9c0; background: var(--green-soft); color: var(--green); }
.answer-btn.is-incorrect { border-color: #edb9c5; background: var(--red-soft); color: var(--red); }
.answer-key {
    flex: none;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid #c9d4ee;
    border-radius: 0.375rem;
    background: var(--white);
    color: var(--brand-dark);
    font-size: 0.8rem;
    font-weight: 750;
}

.answer-btn > span:not(.answer-key, .sr-only) { white-space: pre-line; }

.feedback {
    margin-top: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    background: #f3f6ff;
}

.feedback h2, .feedback h3, .feedback-title {
    display: block;
    color: inherit;
    font-size: clamp(1.35rem, 3.3vw, 1.9rem);
    font-weight: 760;
    line-height: 1.2;
}

.feedback p { margin-top: 0.3rem; color: inherit; overflow-wrap: anywhere; }
.feedback.is-correct, .feedback.is-success { border-color: #afe2cb; background: var(--green-soft); color: var(--green); }
.feedback.is-incorrect, .feedback.is-error { border-color: #f1c1cb; background: var(--red-soft); color: var(--red); }

.correction-line {
    display: flex;
    gap: 0.25rem 0.65rem;
    align-items: baseline;
    flex-wrap: wrap;
}

.correction-line span { font-size: 0.875rem; }
.correction-line strong, .review-head h3 { white-space: pre-line; }

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
    gap: 0.7rem;
    margin-top: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    padding: 0.8rem 1rem;
    background: #f7f9ff;
}

.stat dt, .stat-label { color: var(--body); font-size: 0.875rem; }
.stat dd, .stat-value { margin: 0; color: var(--ink); font-size: 1.9rem; font-weight: 760; font-variant-numeric: tabular-nums; letter-spacing: -0.05em; }
.stat dd span { color: var(--body); font-size: 0.95rem; font-weight: 650; letter-spacing: normal; }
.result-panel .summary-grid { margin-top: 0; }

.review-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
    padding: 0;
    list-style: none;
}

.review-list > li, .review-list > article {
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    background: #f8faff;
    overflow-wrap: anywhere;
}

.review-list h3 { font-size: 1rem; }
.review-list p { margin-top: 0.3rem; }
.review-list .is-correct { color: var(--green); }
.review-list .is-incorrect { color: var(--red); }

.review-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
}

.review-badge {
    display: inline-flex;
    align-items: center;
    flex: none;
    border-radius: 2rem;
    padding: 0.18rem 0.55rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.review-badge.is-correct { background: var(--green-soft); }
.review-badge.is-incorrect { background: var(--red-soft); }

.history-list {
    display: grid;
    gap: 0.7rem;
    padding: 0;
    list-style: none;
}

.history-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.7rem 1.2rem;
    padding: 1rem;
}

.history-item + .history-item { margin-top: 0; }
.history-detail p { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; align-items: center; margin-top: 0.5rem; }
.history-detail time { font-size: 0.875rem; }
.history-counts { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; }
.history-counts dt { color: var(--body); font-size: 0.875rem; }
.history-counts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.pagination { margin-top: 1rem; }
.pagination span { padding-inline: 0.35rem; color: var(--body); font-size: 0.875rem; }

.table-wrap {
    max-width: 100%;
    margin-top: 1rem;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--white);
}

table { width: 100%; border-collapse: collapse; color: var(--body); text-align: left; }
.table-wrap table { min-width: 33rem; }
th, td { padding: 0.75rem 0.85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f2f5fc; color: var(--ink); font-size: 0.875rem; }
tbody tr:last-child td { border-bottom: 0; }
.examples-table td { overflow-wrap: anywhere; }

pre {
    margin: 1rem 0 0;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    padding: 0.8rem;
    background: #f2f5fc;
    color: var(--ink);
}

code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 0.875rem; }
p code, li code { overflow-wrap: anywhere; }
.csv-format code { color: var(--brand-dark); }
.csv-format > code { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.panel > ul, .panel > ol { margin-top: 0.65rem; padding-inline-start: 1.2rem; color: var(--body); }
.panel > ul li + li, .panel > ol li + li { margin-top: 0.25rem; }

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding-block: 1.1rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.footer-inner p { color: inherit; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--brand-dark); }

@media (max-width: 46rem) {
    .shell { width: min(100% - 2rem, 70rem); }
    .header-inner { min-height: 0; padding-top: 0.85rem; flex-wrap: wrap; gap: 0.55rem 0.8rem; }
    .site-nav { order: 3; flex: 1 0 100%; min-height: 2.7rem; gap: 1.25rem; }
    .identity-link { max-width: 52%; }
    .hero { min-height: 19rem; }
    .hero-art { width: 63%; opacity: 0.58; }
    .hero-copy { padding: clamp(1.4rem, 4vw, 2.25rem); }
    .history-item { grid-template-columns: minmax(0, 1fr) auto; }
    .history-item .button { justify-self: start; }
}

@media (max-width: 34rem) {
    .hero-art { right: -19%; width: 78%; opacity: 0.32; }
    .answers { grid-template-columns: 1fr; }
    .quiz-controls { align-items: stretch; }
    .quiz-controls select { width: 100%; }
    .history-item { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; }
}

@media (forced-colors: active) {
    select, .quiz-progress { appearance: auto; }
    select { background-image: none; }
}
