: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.eq-page {
    margin: 0;
    color: var(--ink);
    background: #edf2f7;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.68;
}
body.eq-page img { max-width: 100%; height: auto; }
body.eq-page a { color: var(--brand); }
body.eq-page a:hover { color: var(--brand-dark); }
body.eq-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.eq-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.eq-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.eq-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.eq-page { background: #fff; }
    body.eq-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.eq-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; }
}

/* Emotional intelligence test page */
body.eq-page .container { background: #eef2f6; }
body.eq-page main { background: #fbfcfe; }
body.eq-page .country-hero-image { object-position: center; }
body.eq-page .country-hero-shade { background: linear-gradient(90deg, rgba(5,31,49,.97) 0%, rgba(7,48,72,.9) 46%, rgba(7,48,72,.18) 100%); }
body.eq-page .country-hero-content-inner { max-width: 760px; }
body.eq-page .country-hero h1 { max-width: 780px; font-size: clamp(2.3rem, 5vw, 4.35rem); }
.lead { font-size: 1.08rem; color: #33445a; }

.test-shell {
    margin: 24px 0 34px;
    border: 1px solid #c7dce8;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(17,50,74,.10);
    overflow: hidden;
}
.test-start {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 24px;
    align-items: start;
    padding: 30px;
    background: linear-gradient(145deg, #edf8fb, #fff);
}
.test-start-icon {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #2b8f8a);
    font-size: 2.2rem;
    box-shadow: 0 10px 24px rgba(15,82,119,.22);
}
.eyebrow {
    display: inline-block;
    color: var(--brand);
    font-size: .77rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.test-start h3, .test-toolbar h3, .results-hero h3 { margin: 5px 0 12px; font-size: 1.65rem; }
.test-start-list { margin: 12px 0 20px; padding-left: 22px; }
.test-start-list li { margin-bottom: 7px; }
.consent-line {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid #cfe0ea;
    border-radius: 12px;
    background: #f7fbfd;
    font-weight: 700;
    cursor: pointer;
}
.consent-line input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--brand); }
.start-actions, .results-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 18px;
}
.test-primary, .test-secondary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 11px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}
.test-primary { border: 1px solid var(--brand); color: #fff; background: var(--brand); }
.test-primary:hover { color: #fff; background: var(--brand-dark); }
.test-secondary { border: 1px solid #aec6d4; color: var(--brand-dark); background: #fff; }
.test-secondary:hover { background: var(--soft-blue); }
.test-secondary.subtle { margin-right: auto; }
.test-primary.as-link { color: #fff !important; }
.test-primary:focus-visible, .test-secondary:focus-visible, .likert-option:focus-within, .scenario-option:focus-within {
    outline: 3px solid rgba(43,128,168,.26);
    outline-offset: 2px;
}
.test-primary:disabled, .test-secondary:disabled { opacity: .48; cursor: not-allowed; }
.form-message { min-height: 1.6em; margin: 10px 0 0; color: var(--danger); font-weight: 800; }

#eq-test-form { padding: 0 28px 28px; }
.test-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 -28px;
    padding: 24px 28px 16px;
    background: linear-gradient(135deg, #eef8fc, #fff);
    border-bottom: 1px solid var(--line);
}
.answered-count { display: flex; align-items: baseline; gap: 7px; color: var(--muted); white-space: nowrap; }
.answered-count strong { color: var(--brand); font-size: 1.7rem; }
.progress-track { height: 9px; margin: 18px 0 15px; border-radius: 999px; background: #dfe9ef; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-light), #2b8f8a); transition: width .25s ease; }
.step-intro { color: var(--muted); font-weight: 700; }

.likert-card, .scenario-card {
    min-width: 0;
    margin: 15px 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(17,50,74,.04);
}
.likert-card.unanswered, .scenario-card.unanswered { border-color: #c85b52; box-shadow: 0 0 0 3px rgba(154,64,56,.10); }
.likert-card legend, .scenario-card legend {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 0;
    color: var(--brand-dark);
    font-size: 1.02rem;
    line-height: 1.45;
}
.likert-card legend span, .scenario-card legend span {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--brand);
    font-size: .82rem;
    font-weight: 900;
}
.scenario-card > p { margin: 12px 0 16px 41px; color: #34455b; }
.likert-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 9px;
    margin-top: 16px;
}
.likert-option {
    position: relative;
    min-height: 82px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 7px;
    border: 1px solid #cbd9e3;
    border-radius: 11px;
    background: #f8fafc;
    text-align: center;
    cursor: pointer;
    transition: transform .13s ease, border-color .13s ease, background .13s ease;
}
.likert-option:hover { transform: translateY(-1px); border-color: var(--brand-light); background: #eef7fb; }
.likert-option.selected { color: #fff; border-color: var(--brand); background: var(--brand); box-shadow: 0 6px 15px rgba(15,82,119,.16); }
.likert-option input, .scenario-option input { position: absolute; opacity: 0; pointer-events: none; }
.likert-number { font-size: 1.25rem; font-weight: 950; }
.likert-label { font-size: .75rem; font-weight: 800; line-height: 1.25; }
.scenario-options { display: grid; gap: 9px; margin-left: 41px; }
.scenario-option {
    position: relative;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 11px;
    align-items: center;
    min-height: 55px;
    padding: 11px 13px;
    border: 1px solid #cbd9e3;
    border-radius: 11px;
    background: #f9fbfd;
    cursor: pointer;
}
.scenario-option:hover { border-color: var(--brand-light); background: #eef7fb; }
.scenario-option.selected { border-color: var(--brand); background: #e8f4f8; box-shadow: 0 0 0 2px rgba(43,128,168,.12); }
.option-letter { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-dark); background: #dcebf2; font-weight: 900; }
.scenario-option.selected .option-letter { color: #fff; background: var(--brand); }
.test-navigation { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }

.test-results { padding: 28px; }
.results-hero {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    align-items: center;
    margin: -28px -28px 24px;
    padding: 30px;
    background: linear-gradient(135deg, #eaf7fa, #fff5e7);
    border-bottom: 1px solid var(--line);
}
.score-ring {
    --score-angle: 0deg;
    position: relative;
    width: 145px;
    height: 145px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--brand) var(--score-angle), #d6e4eb 0);
}
.score-ring::before { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: #fff; }
.score-ring span, .score-ring small { position: relative; z-index: 1; }
.score-ring span { align-self: end; font-size: 2.7rem; line-height: 1; font-weight: 950; color: var(--brand-dark); }
.score-ring small { align-self: start; margin-top: 5px; color: var(--muted); font-weight: 800; }
.result-caution { margin: 9px 0 0; padding: 11px 13px; border-left: 4px solid var(--accent); border-radius: 7px; background: rgba(255,255,255,.8); color: #4e5e70; font-size: .88rem; }
.result-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 20px 0 28px; }
.result-summary-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.result-summary-grid span, .result-summary-grid small { display: block; color: var(--muted); }
.result-summary-grid strong { display: block; margin: 5px 0; color: var(--brand); font-size: 1.7rem; }
.domain-results { display: grid; gap: 12px; }
.domain-result-card { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.domain-result-head { display: flex; justify-content: space-between; gap: 14px; color: var(--brand-dark); font-weight: 900; }
.domain-result-head strong { color: var(--brand); font-size: 1.25rem; }
.domain-bar { height: 12px; margin: 10px 0; border-radius: 999px; background: #e0e9ee; overflow: hidden; }
.domain-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-light), #2b8f8a); }
.domain-result-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.results-columns { margin-top: 22px; }
.growth-box { padding: 22px; border: 1px solid #ead8b9; border-radius: 15px; background: #fff8eb; }
.growth-box h3 { margin-top: 0; }
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.practice-grid article { padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.practice-grid article > span { color: var(--brand); font-size: .76rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.practice-grid h4 { margin: 7px 0; color: var(--brand-dark); font-size: 1.08rem; }
.practice-grid p { margin: 0; color: var(--muted); }
.scenario-review { margin-top: 25px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; overflow: hidden; }
.scenario-review summary { padding: 16px 18px; color: var(--brand-dark); font-weight: 900; cursor: pointer; }
.scenario-review[open] summary { border-bottom: 1px solid var(--line); background: #eef5f8; }
#scenario-review-content { padding: 15px; }
.review-item { padding: 16px; margin: 10px 0; border-radius: 12px; background: #fff; border-left: 5px solid #c9d6df; }
.review-item h4 { margin: 0 0 8px; color: var(--brand-dark); }
.review-item h4 span { display: inline-block; margin-left: 7px; padding: 3px 7px; border-radius: 999px; font-size: .72rem; background: #eef2f5; color: var(--muted); }
.review-good { border-left-color: var(--success); }
.review-learn { border-left-color: var(--accent); }
.review-item p { margin: 6px 0; color: #435267; }

.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
.method-card { position: relative; padding: 58px 18px 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.method-card > span { position: absolute; top: 16px; left: 17px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); font-weight: 900; }
.method-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.method-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.six-domains { grid-template-columns: repeat(3, 1fr); }
.six-domains .domain-card { min-height: 285px; }
.reverse-panel { grid-template-columns: .92fr 1.08fr; }
.test-type-grid { grid-template-columns: repeat(2, 1fr); }
.practice-library { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.practice-library article { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.practice-library h3 { margin: 0 0 8px; font-size: 1.05rem; }
.practice-library p { margin: 0; color: var(--muted); }
.age-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.age-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.age-grid article > span { color: var(--accent); font-size: .78rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.age-grid h3 { margin: 5px 0 8px; }
.age-grid p { margin: 0; color: var(--muted); }
.wide-timeline { max-width: 920px; margin: 22px auto 0; }

@media (max-width: 980px) {
    .likert-options { grid-template-columns: repeat(5, minmax(95px, 1fr)); overflow-x: auto; padding-bottom: 7px; }
    .method-grid { grid-template-columns: repeat(2, 1fr); }
    .six-domains, .practice-library, .age-grid { grid-template-columns: repeat(2, 1fr); }
    .practice-grid { grid-template-columns: 1fr; }
    .reverse-panel { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .test-start { grid-template-columns: 1fr; padding: 22px; }
    .test-start-icon { width: 68px; height: 68px; border-radius: 18px; font-size: 1.7rem; }
    #eq-test-form, .test-results { padding: 0 15px 20px; }
    .test-toolbar { align-items: flex-start; margin: 0 -15px; padding: 20px 15px 14px; }
    .test-toolbar h3 { font-size: 1.3rem; }
    .answered-count { flex-direction: column; align-items: flex-end; gap: 0; font-size: .72rem; }
    .answered-count strong { font-size: 1.35rem; }
    .likert-card, .scenario-card { padding: 16px 12px; }
    .likert-options { grid-template-columns: 1fr; overflow: visible; }
    .likert-option { min-height: 47px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 8px 12px; text-align: left; }
    .likert-number { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #dfeaf0; color: var(--brand-dark); font-size: .95rem; }
    .likert-option.selected .likert-number { background: rgba(255,255,255,.2); color: #fff; }
    .likert-label { font-size: .82rem; }
    .scenario-card > p, .scenario-options { margin-left: 0; }
    .scenario-option { grid-template-columns: 31px 1fr; padding: 10px; }
    .test-navigation { flex-wrap: wrap; }
    .test-navigation .test-secondary.subtle { order: 4; width: 100%; margin-right: 0; }
    .test-navigation .test-primary { margin-left: auto; }
    .results-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; margin: 0 -15px 20px; padding: 23px 16px; }
    .result-summary-grid, .method-grid, .six-domains, .test-type-grid, .practice-library, .age-grid { grid-template-columns: 1fr; }
    .start-actions, .results-actions { flex-direction: column; }
    .start-actions > *, .results-actions > * { width: 100%; }
}

@media print {
    #test, .test-shell { display: none !important; }
}
