:root {
    --ink: #172338;
    --muted: #5c6a7d;
    --paper: #ffffff;
    --soft: #f3f7fb;
    --soft-blue: #eaf3fb;
    --line: #d9e3ed;
    --brand: #0f5277;
    --brand-dark: #0a3550;
    --brand-light: #2b80a8;
    --accent: #d88a2c;
    --accent-soft: #fff4e5;
    --success: #28765b;
    --danger: #9a4038;
    --shadow: 0 12px 32px rgba(17, 50, 74, 0.11);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.musk-page {
    margin: 0;
    color: var(--ink);
    background: #edf2f7;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.68;
}
body.musk-page img { max-width: 100%; height: auto; }
body.musk-page a { color: var(--brand); }
body.musk-page a:hover { color: var(--brand-dark); }
body.musk-page .container {
    width: min(1180px, calc(100% - 26px));
    margin: 16px auto 38px;
    background: #dee3ef;
    box-shadow: var(--shadow);
    border-radius: 22px;
    overflow: hidden;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
    background: #dee3ef;
}
.site-logo { display: block; object-fit: contain; width: auto; max-height: 60px;}
.contact-info { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.contact-info .label { font-size: .86rem; letter-spacing: .03em; }
body.musk-page .directory-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 16px;
    border: 0;
    border-radius: 999px;

    color: var(--paper);
    background: var(--brand);

    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        color 0.15s ease;
}

body.musk-page .directory-link:hover {
    color: #f9b81b;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.breadcrumb {
    padding: 11px 28px;
    font-size: .9rem;
    color: var(--muted);
    background: #dee3ef;
    border-bottom: 1px solid var(--line);
}
.breadcrumb a { text-decoration: none; }

.country-hero {
    position: relative;
    min-height: 530px;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--brand-dark);
}
.country-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.country-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 31, 49, .94) 0%, rgba(7, 48, 72, .83) 47%, rgba(7, 48, 72, .28) 100%);
}
.country-hero-content { position: relative; z-index: 2; padding: 64px 54px; }
.country-hero-content-inner { max-width: 720px; }
.country-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 15px;
    color: #d9efff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .8rem;
}
.country-hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 4.75rem);
    line-height: 1.04;
    letter-spacing: -.035em;
}
.country-hero-subtitle {
    max-width: 680px;
    margin: 0;
    color: #e7f3fa;
    font-size: clamp(1.05rem, 2vw, 1.34rem);
    line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.primary-button, .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
}
.primary-button { color: #fff !important; background: var(--accent); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.primary-button:hover { background: #bc711b; }
.secondary-button { color: #fff !important; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.09); }
.badge-line { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.badge-line span {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: #eef8ff;
    background: rgba(255,255,255,.11);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 8px 11px;
    font-size: .88rem;
}

.topic-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(13, 52, 77, .07);
}
.topic-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 24px;
    scrollbar-width: thin;
}
.topic-nav a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 800;
    color: var(--brand-dark);
    background: var(--soft-blue);
}
.topic-nav a:hover, .topic-nav a:focus { background: #d6eaf7; }

main { padding: 34px 42px 54px; }
main > section { scroll-margin-top: 80px; }
main h2 {
    margin: 48px 0 14px;
    color: var(--brand-dark);
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    line-height: 1.2;
    letter-spacing: -.02em;
}
main h3 {
    margin: 30px 0 9px;
    color: var(--brand-dark);
    font-size: 1.28rem;
    line-height: 1.28;
}
main p { margin: 0 0 16px; }
main ul, main ol { padding-left: 24px; }
main li { margin-bottom: 8px; }

.info-panel {
    margin: 0 0 24px;
    padding: 28px;
    background: linear-gradient(135deg, #eef7fc, #fbfdff);
    border: 1px solid #cfe3ef;
    border-left: 6px solid var(--brand-light);
    border-radius: var(--radius);
}
.info-panel h2 { margin-top: 0; }
.page-summary, .last-updated {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--muted);
}
.page-summary { font-weight: 700; color: var(--brand-dark); }
.last-updated { font-size: .9rem; }

.quick-facts, .scale-grid, .domain-grid, .use-grid, .report-grid, .glossary-grid {
    display: grid;
    gap: 16px;
}
.quick-facts { grid-template-columns: repeat(4, 1fr); margin: 26px 0; }
.fact-card, .scale-card, .domain-card, .use-card, .report-card, .glossary-card {
    position: relative;
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(17, 50, 74, .055);
}
.fact-card .value {
    display: block;
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--brand);
    line-height: 1.1;
}
.fact-card .label { display: block; margin-top: 8px; font-weight: 800; }
.fact-card small { display: block; margin-top: 6px; color: var(--muted); }

.scale-grid { grid-template-columns: repeat(3, 1fr); margin: 22px 0; }
.scale-card { overflow: hidden; padding: 0; }
.scale-card-head { padding: 22px; color: #fff; background: linear-gradient(135deg, var(--brand-dark), var(--brand-light)); }
.scale-card-head h3 { color: #fff; margin: 0 0 5px; font-size: 1.45rem; }
.scale-card-head p { margin: 0; color: #dff2ff; }
.scale-card-body { padding: 20px 22px 22px; }
.scale-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.scale-meta div { padding: 11px; background: var(--soft); border-radius: 10px; }
.scale-meta strong { display: block; color: var(--brand-dark); }
.scale-card ul { padding-left: 20px; }
.scale-card .official-link { font-weight: 800; }

.domain-grid { grid-template-columns: repeat(5, 1fr); margin-top: 22px; }
.domain-card { padding-top: 58px; min-height: 260px; }
.domain-card .domain-icon {
    position: absolute;
    top: 18px;
    left: 20px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--brand);
    border-radius: 10px;
}
.domain-card h3 { margin: 0 0 7px; font-size: 1.05rem; }
.domain-card p { color: var(--muted); font-size: .94rem; }
.domain-card small { display: block; margin-top: 12px; color: var(--brand-dark); font-weight: 700; }

.callout {
    margin: 22px 0;
    padding: 19px 21px;
    border-radius: 14px;
    border-left: 5px solid var(--accent);
    background: var(--accent-soft);
}
.callout.danger { border-left-color: var(--danger); background: #fff0ee; }
.callout.success { border-left-color: var(--success); background: #edf9f4; }
.callout strong { color: var(--brand-dark); }

.visual-panel {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 28px;
    align-items: center;
    margin: 24px 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
}
.visual-panel figure { margin: 0; }
.visual-panel img { display: block; width: 100%; border-radius: 14px; }
.visual-panel figcaption { margin-top: 9px; color: var(--muted); font-size: .84rem; }

.score-table-wrap, .comparison-table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 14px; }
.score-table, .comparison-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.score-table th, .score-table td, .comparison-table th, .comparison-table td {
    padding: 14px 15px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.score-table th, .comparison-table th { color: #fff; background: var(--brand-dark); }
.score-table tr:last-child td, .comparison-table tr:last-child td { border-bottom: 0; }
.score-table tbody tr:nth-child(even), .comparison-table tbody tr:nth-child(even) { background: var(--soft); }

.report-grid { grid-template-columns: repeat(3, 1fr); margin: 20px 0; }
.report-card h3 { margin-top: 0; }
.report-card .mini-label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--soft-blue);
    color: var(--brand-dark);
    font-weight: 800;
    font-size: .8rem;
}

.use-grid { grid-template-columns: repeat(3, 1fr); margin: 20px 0; }
.use-card h3 { margin-top: 0; font-size: 1.12rem; }
.use-card p { color: var(--muted); }

.process-list {
    counter-reset: process;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0;
    list-style: none;
}
.process-list li {
    counter-increment: process;
    position: relative;
    min-height: 180px;
    padding: 54px 20px 20px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}
.process-list li::before {
    content: counter(process);
    position: absolute;
    top: 16px;
    left: 18px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--accent);
    font-weight: 900;
}

.history-layout {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 30px;
    align-items: start;
}
.history-photo {
    position: sticky;
    top: 92px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
}
.history-photo img { display: block; border-radius: 12px; filter: grayscale(100%); }
.history-photo figcaption { margin-top: 10px; color: var(--muted); font-size: .82rem; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; top: 4px; bottom: 8px; left: 8px; width: 3px; background: #cbdce8; }
.timeline-item { position: relative; padding: 0 0 22px 18px; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--brand-light);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--brand-light);
}
.timeline-year { display: inline-block; color: var(--accent); font-weight: 900; font-size: 1.08rem; }
.timeline-item h3 { margin: 2px 0 6px; }

.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.checklist, .avoid-list {
    padding: 22px;
    border-radius: 15px;
    border: 1px solid var(--line);
}
.checklist { background: #f0faf6; }
.avoid-list { background: #fff5f3; }
.checklist h3, .avoid-list h3 { margin-top: 0; }
.checklist li::marker { color: var(--success); }
.avoid-list li::marker { color: var(--danger); }

.faq-item {
    margin: 0 0 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    overflow: hidden;
    background: #fff;
}
.faq-item details { padding: 0; }
.faq-item summary {
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 800;
    color: var(--brand-dark);
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; font-size: 1.35rem; }
.faq-item details[open] summary::after { content: '–'; }
.faq-answer { padding: 0 18px 17px; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }

.glossary-grid { grid-template-columns: repeat(3, 1fr); }
.glossary-card h3 { margin: 0 0 6px; font-size: 1rem; }
.glossary-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.sources {
    padding: 22px;
    border-radius: 15px;
    background: var(--soft);
    border: 1px solid var(--line);
}
.sources a { overflow-wrap: anywhere; }
.source-note { color: var(--muted); font-size: .88rem; }

.badge-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0;
    padding: 18px;
    border-radius: 15px;
    background: var(--brand-dark);
}
.badge-strip span { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-size: .9rem; }
.badge-strip i { color: #9fe4c9; }

.cta-footer {
    padding: 48px 42px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}
.cta-footer h2 { margin: 0 0 10px; font-size: 2rem; }
.cta-footer p { max-width: 760px; margin: 0 auto 22px; color: #dceef8; }
.footer-note {
    padding: 20px 28px;
    text-align: center;
    color: var(--muted);
    font-size: .84rem;
    background: #f5f7fa;
}
.footer-note p { margin: 5px 0; }

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff !important;
    background: var(--brand);
    text-decoration: none;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: .2s ease;
}
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 980px) {
    .quick-facts { grid-template-columns: repeat(2, 1fr); }
    .scale-grid, .report-grid, .use-grid, .process-list, .glossary-grid { grid-template-columns: repeat(2, 1fr); }
    .domain-grid { grid-template-columns: repeat(2, 1fr); }
    .visual-panel, .history-layout { grid-template-columns: 1fr; }
    .history-photo { position: static; max-width: 420px; }
}

@media (max-width: 700px) {
    body.musk-page .container { width: 100%; margin: 0; border-radius: 0; }
    .top-nav { align-items: flex-start; padding: 12px 16px; }
    .contact-info .label { display: none; }
    .breadcrumb { padding: 10px 16px; }
    .country-hero { min-height: 590px; }
    .country-hero-shade { background: linear-gradient(180deg, rgba(5,31,49,.70), rgba(5,31,49,.96)); }
    .country-hero-content { padding: 46px 22px; align-self: end; }
    .country-hero h1 { font-size: 2.45rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .primary-button, .secondary-button { width: 100%; }
    main { padding: 28px 18px 42px; }
    .quick-facts, .scale-grid, .domain-grid, .report-grid, .use-grid, .process-list, .two-column, .glossary-grid { grid-template-columns: 1fr; }
    .visual-panel { padding: 18px; }
    .cta-footer { padding: 40px 20px; }
}

@media print {
    body.musk-page { background: #fff; }
    body.musk-page .container { width: 100%; margin: 0; box-shadow: none; }
    .top-nav, .topic-nav-wrap, .hero-actions, .back-to-top, .cta-footer { display: none !important; }
    .country-hero { min-height: 300px; }
    .country-hero-content { padding: 38px; }
    .country-hero h1 { font-size: 2.5rem; }
    main { padding: 28px; }
    .history-photo { position: static; }
    a { color: inherit !important; text-decoration: none !important; }
}

/* Average adult IQ guide additions */
body.musk-page .container { background: #eef2f6; }
main > section:first-child h2 { margin-top: 0; }
.lead { font-size: 1.08rem; color: #33445a; }
.small-note { color: var(--muted); font-size: .9rem; }
.nowrap { white-space: nowrap; }

.calculator-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
    gap: 22px;
    margin: 24px 0;
    padding: 24px;
    border: 1px solid #cfe3ef;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #eef8fc, #fff);
    box-shadow: 0 10px 24px rgba(17, 50, 74, .07);
}
.calculator-form, .calculator-result {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}
.calculator-form h3, .calculator-result h3 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field label { display: block; margin-bottom: 7px; color: var(--brand-dark); font-weight: 800; }
.form-field input, .form-field select {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #b9cbd8;
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}
.form-field input:focus, .form-field select:focus { outline: 3px solid rgba(43, 128, 168, .18); border-color: var(--brand-light); }
.calc-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    margin-top: 14px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: var(--brand);
    font-weight: 900;
    cursor: pointer;
}
.calc-button:hover { background: var(--brand-dark); }
.result-score {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin: 4px 0 18px;
}
.result-score .big { font-size: clamp(3rem, 7vw, 5.4rem); line-height: .9; color: var(--brand); font-weight: 950; }
.result-score .result-band { padding-bottom: 7px; color: var(--muted); font-weight: 800; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.result-cell { padding: 12px; border-radius: 11px; background: var(--soft); }
.result-cell strong { display: block; color: var(--brand-dark); }
.result-cell span { display: block; margin-top: 3px; color: var(--muted); }
.result-disclaimer { margin: 15px 0 0; color: var(--muted); font-size: .83rem; }

.score-ruler {
    position: relative;
    margin: 24px 0 8px;
    padding: 44px 18px 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}
.score-ruler-track { display: grid; grid-template-columns: repeat(6, 1fr); min-width: 720px; border-radius: 12px; overflow: hidden; }
.score-ruler-track span { min-height: 56px; display: grid; place-items: center; text-align: center; padding: 8px; color: #fff; font-size: .8rem; font-weight: 800; }
.score-ruler-track span:nth-child(1) { background: #82433d; }
.score-ruler-track span:nth-child(2) { background: #a75c43; }
.score-ruler-track span:nth-child(3) { background: #b78a3e; }
.score-ruler-track span:nth-child(4) { background: #4f8190; }
.score-ruler-track span:nth-child(5) { background: #2b6f83; }
.score-ruler-track span:nth-child(6) { background: #174d6b; }
.score-ruler-labels { display: grid; grid-template-columns: repeat(7, 1fr); min-width: 720px; margin-top: 10px; color: var(--muted); font-size: .82rem; font-weight: 800; text-align: center; }
.score-ruler-wrap { overflow-x: auto; }

.formula-card {
    display: grid;
    grid-template-columns: minmax(240px, .75fr) 1.25fr;
    gap: 22px;
    align-items: center;
    margin: 22px 0;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--soft);
}
.formula {
    display: grid;
    place-items: center;
    min-height: 150px;
    padding: 20px;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    font-weight: 900;
}
.formula small { display: block; margin-top: 10px; color: #d8edf8; font-size: .72em; font-weight: 600; }

.scale-system-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; }
.scale-system-card { padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 6px 16px rgba(17, 50, 74, .055); }
.scale-system-card .system-value { display: inline-grid; place-items: center; min-width: 74px; min-height: 46px; padding: 8px 12px; border-radius: 12px; color: #fff; background: var(--brand); font-size: 1.22rem; font-weight: 900; }
.scale-system-card h3 { margin: 14px 0 7px; font-size: 1.08rem; }
.scale-system-card p { color: var(--muted); font-size: .92rem; }
.scale-system-card small { color: var(--brand-dark); font-weight: 700; }

.percentile-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 20px 0; }
.percentile-tile { padding: 16px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center; }
.percentile-tile strong { display: block; color: var(--brand); font-size: 1.35rem; }
.percentile-tile span { display: block; margin-top: 3px; color: var(--muted); font-size: .82rem; }

.test-family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; }
.test-family-card { display: flex; flex-direction: column; min-height: 100%; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 6px 16px rgba(17, 50, 74, .055); }
.test-family-card .test-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--brand); }
.test-family-card h3 { margin: 15px 0 7px; }
.test-family-card p { color: var(--muted); }
.test-family-card .test-meta { margin-top: auto; padding-top: 10px; color: var(--brand-dark); font-size: .87rem; font-weight: 800; }

.profile-example {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 22px 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}
.profile-bars { display: grid; gap: 11px; }
.profile-row { display: grid; grid-template-columns: 175px 1fr 48px; gap: 10px; align-items: center; }
.profile-label { color: var(--brand-dark); font-weight: 800; font-size: .88rem; }
.profile-bar { height: 14px; border-radius: 999px; background: #e3ebf1; overflow: hidden; }
.profile-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-light), var(--brand)); }
.profile-value { text-align: right; color: var(--brand); font-weight: 900; }

.history-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 30px; }
.history-gallery figure { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.history-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 11px; filter: grayscale(100%); }
.history-gallery figure:first-child img { object-position: 50% 22%; }
.history-gallery figcaption { margin-top: 9px; color: var(--muted); font-size: .78rem; line-height: 1.45; }

.factor-grid, .myth-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.factor-card, .myth-card { padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.factor-card h3, .myth-card h3 { margin-top: 0; font-size: 1.07rem; }
.factor-card p, .myth-card p { color: var(--muted); font-size: .93rem; }
.myth-card { border-top: 5px solid var(--accent); }
.myth-card .verdict { display: inline-block; margin-bottom: 9px; padding: 4px 9px; border-radius: 999px; color: #fff; background: var(--danger); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }

.definition-list { display: grid; grid-template-columns: 240px 1fr; gap: 0; margin: 20px 0; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.definition-list dt, .definition-list dd { margin: 0; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.definition-list dt { color: var(--brand-dark); background: var(--soft); font-weight: 900; }
.definition-list dd { background: #fff; }
.definition-list dt:last-of-type, .definition-list dd:last-of-type { border-bottom: 0; }

.source-list li { margin-bottom: 11px; }
.source-list span { display: block; color: var(--muted); font-size: .86rem; }
.license-note { padding: 14px 16px; border-radius: 12px; background: #eef7fc; color: var(--muted); font-size: .84rem; }

@media (max-width: 980px) {
    .score-pair { grid-template-columns: 1fr; }
    .score-relationship { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
    .score-relationship span { justify-content: center; white-space: normal; text-align: center; }
    .calculator-shell, .formula-card, .profile-example { grid-template-columns: 1fr; }
    .scale-system-grid, .test-family-grid, .factor-grid, .myth-grid, .history-gallery { grid-template-columns: repeat(2, 1fr); }
    .percentile-tiles { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
    .score-relationship { grid-template-columns: 1fr; }
    .score-person { min-height: 190px; }
    .calculator-shell { padding: 14px; }
    .calculator-form, .calculator-result { padding: 17px; }
    .form-grid, .result-grid, .scale-system-grid, .test-family-grid, .factor-grid, .myth-grid, .history-gallery { grid-template-columns: 1fr; }
    .percentile-tiles { grid-template-columns: repeat(2, 1fr); }
    .profile-row { grid-template-columns: 118px 1fr 42px; }
    .definition-list { grid-template-columns: 1fr; }
    .definition-list dt { border-bottom: 0; }
}

@media print {
    .calculator-shell, #sources, .footer-note .web-only { display: none !important; }
    .score-table, .comparison-table { min-width: 0; font-size: 9pt; }
    .history-gallery { grid-template-columns: repeat(3, 1fr); }
    main h2 { break-after: avoid; }
    .fact-card, .scale-system-card, .test-family-card, .factor-card, .myth-card, .glossary-card { break-inside: avoid; }
}


/* Child-to-adult age perspective */
.score-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    margin: 24px 0;
}
.score-person {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 220px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, var(--soft-blue));
    box-shadow: 0 8px 22px rgba(17, 50, 74, .07);
}
.score-person-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 14px;
    color: #fff;
    background: var(--brand);
    font-size: 1.2rem;
}
.score-person-label { color: var(--muted); font-weight: 800; }
.score-person strong { display: block; margin: 6px 0; color: var(--brand-dark); font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; }
.score-person small { max-width: 260px; color: var(--muted); }
.score-relationship {
    display: grid;
    place-content: center;
    gap: 10px;
    min-width: 190px;
}
.score-relationship span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: var(--accent-soft);
    font-size: .88rem;
    font-weight: 900;
    white-space: nowrap;
}
.perspective-table { min-width: 940px; }

/* Average adult IQ page-specific components */
.age-table-wrap { max-height: 900px; overflow: auto; }
.age-table { min-width: 980px; }
.age-table thead th { position: sticky; top: 0; z-index: 2; }
.outlier-grid { grid-template-columns: repeat(3, 1fr); }
.gene-grid { grid-template-columns: repeat(3, 1fr); }
.gene-grid small { display: block; margin-top: 12px; color: var(--brand-dark); font-weight: 700; }
.support-grid { grid-template-columns: repeat(3, 1fr); }
.factor-card { position: relative; }
.evidence-tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--soft-blue);
    color: var(--brand-dark);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .02em;
}
.stage-plan li { min-height: 215px; }
.history-gallery img { aspect-ratio: 4 / 4.2; object-fit: cover; }
.history-gallery figure:nth-child(2) img { object-position: center; }
.country-hero-content-inner { max-width: 780px; }
.country-hero h1 { max-width: 820px; }
.calculator-result {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}
.calculator-result h3 { margin-top: 0; }

@media (max-width: 980px) {
    .outlier-grid, .gene-grid, .support-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .outlier-grid, .gene-grid, .support-grid { grid-template-columns: 1fr; }
    .age-table-wrap { max-height: 720px; }
    .stage-plan li { min-height: 0; }
}

/* Albert Einstein IQ test page additions */
.truth-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: start;
    margin: 24px 0;
    padding: 22px;
    border: 1px solid #b8ddcd;
    border-left: 6px solid var(--success);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #edf9f4, #fbfffd);
}
.truth-banner .truth-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: var(--success);
    font-size: 1.35rem;
}
.truth-banner h2 { margin: 0 0 8px; }
.truth-banner p:last-child { margin-bottom: 0; }
.verdict-grid, .myth-grid, .skill-grid, .source-grid, .history-cards {
    display: grid;
    gap: 16px;
}
.verdict-grid { grid-template-columns: repeat(3, 1fr); margin: 22px 0; }
.verdict-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(17, 50, 74, .055);
}
.verdict-card .status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.status.no { color: #7d2c28; background: #fff0ee; }
.status.unknown { color: #7b5419; background: #fff4e5; }
.status.yes { color: #1e644c; background: #edf9f4; }
.verdict-card h3 { margin: 0 0 7px; }
.verdict-card p { margin: 0; color: var(--muted); }

.puzzle-shell {
    margin: 24px 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}
.puzzle-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 24px 26px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
}
.puzzle-head h3 { margin: 0 0 5px; color: #fff; font-size: 1.55rem; }
.puzzle-head p { margin: 0; color: #dff2ff; }
.timer-box { min-width: 118px; text-align: center; }
.timer-box small { display: block; color: #dff2ff; text-transform: uppercase; font-weight: 800; letter-spacing: .07em; }
.timer-box strong { display: block; font-size: 1.65rem; font-variant-numeric: tabular-nums; }
.puzzle-body { padding: 26px; }
.puzzle-rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
}
.clue-list {
    columns: 2;
    column-gap: 28px;
    padding-left: 22px;
}
.clue-list li { break-inside: avoid; margin-bottom: 10px; }
.house-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding: 6px 2px 14px;
}
.house-card {
    min-width: 180px;
    padding: 16px;
    border: 1px solid var(--line);
    border-top: 5px solid var(--brand-light);
    border-radius: 14px;
    background: var(--soft);
}
.house-card h4 { margin: 0 0 12px; color: var(--brand-dark); font-size: 1rem; }
.house-card label { display: block; margin: 9px 0 4px; color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.house-card select, .answer-row select {
    width: 100%;
    min-height: 40px;
    padding: 8px 9px;
    border: 1px solid #bac9d6;
    border-radius: 9px;
    color: var(--ink);
    background: #fff;
}
.puzzle-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.puzzle-button {
    min-height: 44px;
    padding: 10px 15px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--brand);
    font-weight: 900;
    cursor: pointer;
}
.puzzle-button:hover { background: var(--brand-dark); }
.puzzle-button.alt { color: var(--brand-dark); background: var(--soft-blue); }
.puzzle-button.warn { background: var(--accent); }
.answer-check {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin-top: 22px;
    padding: 18px;
    border-radius: 14px;
    background: var(--soft-blue);
}
.answer-row label { display: block; margin-bottom: 5px; font-weight: 800; color: var(--brand-dark); }
.puzzle-feedback {
    display: none;
    margin-top: 16px;
    padding: 15px 17px;
    border-radius: 12px;
    font-weight: 800;
}
.puzzle-feedback.show { display: block; }
.puzzle-feedback.correct { color: #1d5f49; background: #eaf8f1; border: 1px solid #b8ddcd; }
.puzzle-feedback.try { color: #7b5419; background: #fff4e5; border: 1px solid #efd2a5; }
.solution-panel { display: none; margin-top: 20px; }
.solution-panel.show { display: block; }
.solution-table { width: 100%; min-width: 820px; border-collapse: collapse; }
.solution-table th, .solution-table td { padding: 12px 13px; border: 1px solid var(--line); text-align: left; }
.solution-table th { color: #fff; background: var(--brand-dark); }
.solution-table tr:nth-child(even) td { background: var(--soft); }


/* Spoiler-safe solution walkthrough */
.spoiler-section { scroll-margin-top: 84px; }
.spoiler-label {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #7b2f29;
    background: #fff0ee;
    border: 1px solid #e7bbb6;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    vertical-align: middle;
}
.spoiler-warning {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    align-items: start;
    margin: 18px 0;
    padding: 20px;
    border: 1px solid #efd2a5;
    border-left: 5px solid var(--accent);
    border-radius: 15px;
    background: var(--accent-soft);
}
.spoiler-warning-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: var(--accent);
    font-size: 1.2rem;
}
.spoiler-warning h3 { margin: 0 0 5px; }
.spoiler-warning p { margin: 0; color: var(--muted); }
.walkthrough-spoiler {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(17, 50, 74, .07);
}
.walkthrough-spoiler > summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    font-weight: 900;
    list-style: none;
    user-select: none;
}
.walkthrough-spoiler > summary::-webkit-details-marker { display: none; }
.walkthrough-spoiler > summary span { display: inline-flex; align-items: center; gap: 10px; }
.walkthrough-spoiler > summary small { color: #dceef8; font-weight: 700; }
.walkthrough-spoiler > summary::after {
    content: '+';
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.13);
    font-size: 1.35rem;
}
.walkthrough-spoiler[open] > summary::after { content: '–'; }
.walkthrough-spoiler > summary:hover { background: linear-gradient(135deg, #082d44, #0d628e); }
.walkthrough-spoiler > summary:focus-visible { outline: 3px solid #f5b74f; outline-offset: -4px; }
.walkthrough-content { padding: 8px 24px 26px; }
.walkthrough-content .logic-figure { margin-top: 20px; }

@media (max-width: 700px) {
    .spoiler-warning { grid-template-columns: 1fr; }
    .walkthrough-spoiler > summary { align-items: flex-start; flex-wrap: wrap; padding: 18px; }
    .walkthrough-spoiler > summary small { width: calc(100% - 48px); }
    .walkthrough-content { padding: 6px 16px 20px; }
}

.logic-figure {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 26px;
    align-items: center;
    margin: 26px 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
}
.logic-figure figure { margin: 0; }
.logic-figure img { display: block; border-radius: 14px; }
.logic-figure figcaption { margin-top: 8px; color: var(--muted); font-size: .82rem; }

.myth-grid { grid-template-columns: repeat(2, 1fr); }
.myth-card {
    padding: 21px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
}
.myth-card h3 { margin-top: 0; }
.myth-card.myth { border-top: 5px solid var(--danger); }
.myth-card.fact { border-top: 5px solid var(--success); }

.skill-grid { grid-template-columns: repeat(4, 1fr); margin: 20px 0; }
.skill-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}
.skill-card .skill-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: var(--brand);
}
.skill-card h3 { margin: 13px 0 7px; font-size: 1.05rem; }
.skill-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.history-cards { grid-template-columns: repeat(3, 1fr); margin: 22px 0; }
.history-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}
.history-card .year { color: var(--accent); font-size: 1.1rem; font-weight: 900; }
.history-card h3 { margin: 3px 0 7px; font-size: 1.08rem; }
.history-card p { margin: 0; color: var(--muted); }

.source-grid { grid-template-columns: repeat(2, 1fr); }
.source-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--soft);
}
.source-card h3 { margin: 0 0 6px; font-size: 1rem; }
.source-card p { margin: 0 0 8px; color: var(--muted); font-size: .9rem; }
.source-card a { font-weight: 800; overflow-wrap: anywhere; }

.mini-test-note {
    padding: 16px 18px;
    border-radius: 13px;
    color: var(--brand-dark);
    background: #eaf3fb;
    border-left: 5px solid var(--brand-light);
}

@media (max-width: 980px) {
    .verdict-grid, .history-cards { grid-template-columns: 1fr 1fr; }
    .skill-grid { grid-template-columns: 1fr 1fr; }
    .puzzle-rules, .logic-figure { grid-template-columns: 1fr; }
    .clue-list { columns: 1; }
}
@media (max-width: 700px) {
    .truth-banner { grid-template-columns: 1fr; }
    .verdict-grid, .myth-grid, .skill-grid, .history-cards, .source-grid, .answer-check { grid-template-columns: 1fr; }
    .puzzle-head { align-items: flex-start; }
    .puzzle-body { padding: 18px; }
    .country-hero { min-height: 620px; }
}

/* Elon Musk IQ Test — challenge components */
body.musk-page .country-hero { min-height: 560px; }
body.musk-page .country-hero-shade {
    background: linear-gradient(90deg, rgba(4, 22, 39, .96) 0%, rgba(7, 47, 72, .88) 50%, rgba(7, 47, 72, .24) 100%);
}
.truth-banner { display:grid; grid-template-columns:auto 1fr; gap:18px; align-items:start; margin:0 0 26px; padding:24px; border:1px solid #cfe3ef; border-left:6px solid var(--brand-light); border-radius:18px; background:linear-gradient(135deg,#eef7fc,#fff); }
.truth-banner .truth-icon { width:50px; height:50px; display:grid; place-items:center; border-radius:14px; color:#fff; background:var(--brand); font-size:1.35rem; }
.truth-banner h2 { margin:0 0 8px; }
.truth-banner p:last-child { margin-bottom:0; }
.verdict-grid, .skill-grid, .source-grid, .history-cards { display:grid; gap:16px; }
.verdict-grid { grid-template-columns:repeat(3,1fr); margin:22px 0; }
.verdict-card { padding:22px; border:1px solid var(--line); border-radius:16px; background:#fff; box-shadow:0 6px 16px rgba(17,50,74,.055); }
.verdict-card .status { display:inline-block; margin-bottom:12px; padding:5px 10px; border-radius:999px; font-size:.76rem; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }
.status.no { color:#7d2c28; background:#fff0ee; }
.status.unknown { color:#7b5419; background:#fff4e5; }
.status.yes { color:#1e644c; background:#edf9f4; }
.verdict-card h3 { margin:0 0 7px; }
.verdict-card p { margin:0; color:var(--muted); }
.challenge-shell { margin:24px 0 34px; border:1px solid #bfd3e0; border-radius:20px; overflow:hidden; background:#fff; box-shadow:var(--shadow); }
.challenge-head { display:flex; justify-content:space-between; gap:20px; align-items:center; padding:24px 26px; color:#fff; background:linear-gradient(135deg,var(--brand-dark),var(--brand-light)); }
.challenge-head h2 { margin:0 0 6px; color:#fff; }
.challenge-head p { margin:0; color:#dff2ff; }
.timer-box { min-width:132px; padding:10px 14px; border:1px solid rgba(255,255,255,.28); border-radius:14px; background:rgba(255,255,255,.08); text-align:center; }
.timer-box small { display:block; color:#dff2ff; font-size:.72rem; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.timer-box strong { display:block; font-size:1.75rem; font-variant-numeric:tabular-nums; }
.challenge-intro { padding:24px 26px 4px; }
.challenge-controls { display:flex; flex-wrap:wrap; gap:10px; padding:0 26px 22px; }
.challenge-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 15px; border:0; border-radius:11px; cursor:pointer; color:#fff; background:var(--brand); font-weight:900; }
.challenge-button:hover { background:var(--brand-dark); }
.challenge-button.alt { color:var(--brand-dark); background:var(--soft-blue); border:1px solid #cfe3ef; }
.challenge-button.warn { background:var(--accent); }
.question-list { display:grid; gap:15px; padding:0 26px 26px; }
.question-card { padding:20px; border:1px solid var(--line); border-radius:15px; background:#fff; }
.question-card.unanswered { border-color:#c56b5c; box-shadow:0 0 0 3px rgba(154,64,56,.1); }
.question-card.correct { border-left:6px solid var(--success); }
.question-card.incorrect { border-left:6px solid var(--danger); }
.question-number { display:inline-grid; place-items:center; width:30px; height:30px; margin-right:9px; border-radius:50%; color:#fff; background:var(--brand); font-weight:900; }
.question-card legend { width:100%; margin-bottom:14px; color:var(--brand-dark); font-weight:900; line-height:1.45; }
.option-list { display:grid; gap:9px; }
.option-label { display:flex; gap:10px; align-items:flex-start; padding:11px 12px; border:1px solid var(--line); border-radius:11px; cursor:pointer; background:var(--soft); }
.option-label:hover { border-color:#abc8da; background:#edf7fc; }
.option-label input { margin-top:4px; accent-color:var(--brand); }
.domain-chip { display:inline-block; margin-left:8px; padding:3px 8px; border-radius:999px; color:#52657a; background:#edf2f6; font-size:.72rem; font-weight:800; vertical-align:middle; }
.challenge-submit { padding:0 26px 28px; }
.submit-main { width:100%; min-height:54px; border:0; border-radius:13px; cursor:pointer; color:#fff; background:var(--accent); font-size:1.05rem; font-weight:950; box-shadow:0 8px 20px rgba(0,0,0,.13); }
.submit-main:hover { background:#bc711b; }
.form-message { display:none; margin:0 26px 22px; padding:14px 16px; border-radius:12px; color:#7d2c28; background:#fff0ee; font-weight:800; }
.form-message.show { display:block; }
.results-panel[hidden], .answer-review[hidden] { display:none !important; }
.results-panel { margin:0 26px 28px; padding:24px; border:1px solid #bddbce; border-radius:18px; background:linear-gradient(135deg,#edf9f4,#fff); }
.result-top { display:grid; grid-template-columns:160px 1fr; gap:24px; align-items:center; }
.result-score { display:grid; place-items:center; width:150px; height:150px; border-radius:50%; color:#fff; background:linear-gradient(135deg,var(--brand),var(--brand-light)); box-shadow:0 10px 24px rgba(15,82,119,.2); }
.result-score strong { display:block; font-size:3rem; line-height:1; }
.result-score span { font-size:.82rem; font-weight:800; }
.result-summary h3 { margin:0 0 8px; }
.result-summary p:last-child { margin-bottom:0; }
.domain-results { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:20px; }
.domain-result { padding:14px; border-radius:12px; background:#fff; border:1px solid #d6e7df; }
.domain-result strong { display:flex; justify-content:space-between; gap:10px; color:var(--brand-dark); }
.domain-bar { height:10px; margin-top:9px; border-radius:999px; background:#e4ece8; overflow:hidden; }
.domain-bar span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--brand-light),var(--brand)); }
.answer-review { margin:0 26px 28px; }
.answer-review details { border:1px solid var(--line); border-radius:14px; background:#fff; overflow:hidden; }
.answer-review summary { cursor:pointer; padding:17px 19px; color:var(--brand-dark); font-weight:900; }
.review-list { display:grid; gap:12px; padding:0 18px 18px; }
.review-item { padding:14px; border-radius:12px; background:var(--soft); }
.review-item strong { color:var(--brand-dark); }
.review-item p { margin:6px 0 0; color:var(--muted); }
.skill-grid { grid-template-columns:repeat(5,1fr); margin:22px 0; }
.skill-card { padding:20px; border:1px solid var(--line); border-radius:16px; background:#fff; text-align:center; }
.skill-icon { width:45px; height:45px; display:grid; place-items:center; margin:0 auto 13px; border-radius:13px; color:#fff; background:var(--brand); }
.skill-card h3 { margin:0 0 7px; font-size:1.02rem; }
.skill-card p { margin:0; color:var(--muted); font-size:.9rem; }
.evidence-table { min-width:820px; }
.source-grid { grid-template-columns:repeat(2,1fr); margin:20px 0; }
.source-card { padding:20px; border:1px solid var(--line); border-radius:15px; background:#fff; }
.source-card h3 { margin:0 0 7px; font-size:1.02rem; }
.source-card p { color:var(--muted); font-size:.9rem; }
.source-card a { font-weight:900; }
.reflection-box { padding:24px; border-radius:17px; color:#fff; background:linear-gradient(135deg,var(--brand-dark),var(--brand)); }
.reflection-box h3 { margin-top:0; color:#fff; }
.reflection-box textarea { width:100%; min-height:120px; padding:14px; border:1px solid rgba(255,255,255,.45); border-radius:12px; color:var(--ink); background:#fff; font:inherit; resize:vertical; }
.reflection-box small { color:#dff2ff; }
@media (max-width:980px) {
    .verdict-grid, .domain-results { grid-template-columns:repeat(2,1fr); }
    .skill-grid { grid-template-columns:repeat(3,1fr); }
}
@media (max-width:700px) {
    .challenge-head { align-items:flex-start; flex-direction:column; }
    .timer-box { width:100%; }
    .challenge-intro, .question-list, .challenge-controls { padding-left:18px; padding-right:18px; }
    .challenge-submit { padding-left:18px; padding-right:18px; }
    .results-panel, .answer-review { margin-left:18px; margin-right:18px; }
    .result-top, .verdict-grid, .domain-results, .skill-grid, .source-grid { grid-template-columns:1fr; }
    .result-score { margin:auto; }
    .truth-banner { grid-template-columns:1fr; }
}
@media print {
    .challenge-shell, .back-to-top, .hero-actions, .topic-nav-wrap { display:none !important; }
}
