: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.iq-quiz-page {
    margin: 0;
    color: var(--ink);
    background: #edf2f7;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.68;
}
body.iq-quiz-page img { max-width: 100%; height: auto; }
body.iq-quiz-page a { color: var(--brand); }
body.iq-quiz-page a:hover { color: var(--brand-dark); }
body.iq-quiz-page button, body.iq-quiz-page input { font: inherit; }
body.iq-quiz-page [hidden] { display: none !important; }
body.iq-quiz-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.iq-quiz-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 .15s ease, box-shadow .15s ease, color .15s ease;
}
body.iq-quiz-page .directory-link:hover {
    color: #f9b81b;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(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,.95) 0%, rgba(7,48,72,.86) 48%, rgba(7,48,72,.25) 100%);
}
.country-hero-content { position: relative; z-index: 2; padding: 64px 54px; }
.country-hero-content-inner { max-width: 735px; }
.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.65rem);
    line-height: 1.04;
    letter-spacing: -.035em;
}
.country-hero-subtitle {
    max-width: 700px;
    margin: 0;
    color: #e7f3fa;
    font-size: clamp(1.05rem, 2vw, 1.32rem);
    line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.primary-button, .secondary-button, .test-primary, .test-secondary {
    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;
    cursor: pointer;
    border: 0;
}
.primary-button, .test-primary { color: #fff !important; background: var(--accent); box-shadow: 0 8px 20px rgba(0,0,0,.13); }
.primary-button:hover, .test-primary:hover { background: #bc711b; color: #fff !important; }
.secondary-button { color: #fff !important; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.09); }
.test-secondary { color: var(--brand-dark) !important; border: 1px solid var(--line); background: #fff; box-shadow: none; }
.test-secondary:hover { background: var(--soft-blue); }
.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; background: #fff; }
main > section { scroll-margin-top: 82px; }
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 h4 { color: var(--brand-dark); }
main p { margin: 0 0 16px; }
main ul, main ol { padding-left: 24px; }
main li { margin-bottom: 8px; }
.lead { font-size: 1.08rem; }

.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, .comparison-grid, .domain-grid, .reason-grid, .report-grid, .glossary-grid, .myth-grid, .age-grid, .prep-calendar {
    display: grid;
    gap: 16px;
}
.quick-facts { grid-template-columns: repeat(4, 1fr); margin: 26px 0; }
.fact-card, .comparison-card, .domain-card, .reason-grid article, .report-card, .glossary-card, .myth-grid article, .age-grid article, .prep-calendar article {
    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); }

.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); }
.source-note { color: var(--muted); font-size: .88rem; }

/* Interactive challenge */
.test-shell {
    margin: 24px 0;
    overflow: hidden;
    border: 1px solid #cbdbe7;
    border-radius: 20px;
    background: #f8fbfd;
    box-shadow: var(--shadow);
}
.test-start {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 24px;
    padding: 30px;
    background: linear-gradient(135deg, #eff7fb, #fff);
}
.test-start-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    font-size: 2rem;
    box-shadow: 0 10px 22px rgba(15,82,119,.22);
}
.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
}
.test-start h3 { margin: 5px 0 12px; font-size: 1.55rem; }
.test-start-list { margin: 0 0 18px; padding-left: 21px; }
.consent-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 700;
}
.consent-line input { margin-top: 5px; transform: scale(1.15); accent-color: var(--brand); }
.mode-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.mode-card {
    min-height: 105px;
    display: grid;
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    padding: 16px;
    text-align: left;
    border: 2px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}
.mode-card i { grid-row: 1 / 3; font-size: 1.55rem; color: var(--brand); }
.mode-card strong { color: var(--brand-dark); }
.mode-card span { color: var(--muted); font-size: .9rem; }
.mode-card.selected { border-color: var(--brand-light); background: var(--soft-blue); box-shadow: inset 0 0 0 1px var(--brand-light); }
.form-message { min-height: 1.6em; margin: 10px 0 0; color: var(--danger); font-weight: 800; }

#iq-quiz-form { padding: 0 0 26px; }
.test-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 24px 26px 18px;
    background: #fff;
}
.test-toolbar h3 { margin: 4px 0 2px; }
.test-toolbar p { margin: 0; color: var(--muted); font-size: .92rem; }
.toolbar-stats { display: flex; gap: 10px; }
.answered-count, .timer-box {
    min-width: 112px;
    padding: 10px 13px;
    border-radius: 12px;
    text-align: center;
    background: var(--soft);
    border: 1px solid var(--line);
}
.answered-count strong, .timer-box strong { display: block; color: var(--brand); font-size: 1.18rem; line-height: 1.15; }
.answered-count span, .timer-box span { display: block; color: var(--muted); font-size: .72rem; }
.timer-box { display: grid; grid-template-columns: 20px 1fr; align-items: center; text-align: left; }
.timer-box i { grid-row: 1 / 3; color: var(--accent); }
.timer-box.urgent { background: #fff0ee; border-color: #e6b5af; }
.timer-box.urgent strong, .timer-box.urgent i { color: var(--danger); }
.progress-track { height: 8px; background: #dbe8f0; }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--brand-light), var(--accent)); transition: width .2s ease; }
#question-stage { padding: 24px 26px 4px; }
.test-question {
    margin: 0 0 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}
.question-topline { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--muted); font-size: .82rem; font-weight: 800; }
.question-topline span:first-child { color: var(--accent); }
.test-question h4 { margin: 0 0 14px; font-size: 1.08rem; }
.question-visual {
    margin: 14px 0 18px;
    padding: 18px;
    border-radius: 13px;
    border: 1px solid #d8e5ed;
    background: var(--soft);
    overflow-x: auto;
}
.sequence-line { text-align: center; white-space: nowrap; color: var(--brand-dark); font-size: clamp(1.25rem, 3vw, 1.8rem); font-weight: 800; letter-spacing: .07em; }
.sequence-line.letters { letter-spacing: .12em; }
.symbol-row { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 5vw, 48px); font-size: clamp(2rem, 5vw, 3.3rem); color: var(--brand-dark); }
.symbol-row.arrows { font-size: clamp(2.3rem, 6vw, 4rem); }
.matrix-three, .number-grid {
    width: min(500px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.matrix-three > div, .number-grid > div {
    min-height: 68px;
    display: grid;
    place-items: center;
    padding: 8px;
    border: 1px solid #c8d9e5;
    border-radius: 10px;
    color: var(--brand-dark);
    background: #fff;
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: .08em;
}
.count-matrix > div { font-size: 1.55rem; }
.matrix-three .missing, .number-grid .missing { color: var(--accent); background: var(--accent-soft); }
.mirror-demo { display: flex; align-items: center; justify-content: center; gap: 28px; color: var(--brand-dark); font-size: 3.2rem; font-weight: 900; }
.mirror-line { width: 4px; height: 72px; border-radius: 99px; background: var(--accent); }
.answer-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.answer-option {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.answer-option:hover { border-color: #a8c8da; transform: translateY(-1px); }
.answer-option:has(input:checked) { border-color: var(--brand-light); background: var(--soft-blue); box-shadow: inset 0 0 0 1px var(--brand-light); }
.answer-option input { position: absolute; opacity: 0; pointer-events: none; }
.option-letter {
    flex: 0 0 31px;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--brand-dark);
    background: var(--soft);
    font-weight: 900;
}
.answer-option:has(input:checked) .option-letter { color: #fff; background: var(--brand); }
.test-navigation { display: flex; justify-content: flex-end; gap: 10px; padding: 0 26px; }
.test-navigation .test-secondary { margin-right: auto; }

.test-results { padding: 28px; background: #fff; }
.results-hero { display: grid; grid-template-columns: 150px 1fr; gap: 25px; align-items: center; padding: 24px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.results-hero h3 { color: #fff; margin: 5px 0 8px; font-size: 1.75rem; }
.results-hero p { color: #e4f1f8; }
.score-ring {
    --score-angle: 0deg;
    width: 135px;
    height: 135px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--brand-dark) 57%, transparent 59%), conic-gradient(var(--accent) var(--score-angle), rgba(255,255,255,.2) 0);
}
.score-ring span { font-size: 2.5rem; font-weight: 900; line-height: 1; }
.score-ring small { margin-top: 5px; color: #ddecf5; }
.result-caution { margin-bottom: 0 !important; font-size: .9rem; }
.result-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 26px; }
.result-summary-grid article { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.result-summary-grid span, .result-summary-grid small { display: block; color: var(--muted); }
.result-summary-grid strong { display: block; margin: 4px 0; color: var(--brand); font-size: 1.4rem; }
.domain-results { display: grid; gap: 10px; margin-bottom: 22px; }
.domain-result { display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.domain-result > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.domain-result span { color: var(--muted); font-size: .88rem; }
.domain-bar { height: 10px; overflow: hidden; border-radius: 999px; background: #e2eaf0; }
.domain-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-light), var(--accent)); }
.answer-review { margin: 24px 0; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.answer-review summary { cursor: pointer; padding: 17px 19px; color: var(--brand-dark); background: var(--soft-blue); font-weight: 900; }
#answer-review-content { padding: 16px; }
.review-item { margin: 0 0 12px; padding: 16px; border-radius: 12px; border-left: 5px solid var(--line); background: var(--soft); }
.review-item.correct { border-left-color: var(--success); background: #eff9f5; }
.review-item.incorrect { border-left-color: var(--danger); background: #fff2f0; }
.review-heading { display: flex; justify-content: space-between; gap: 12px; }
.review-item h4 { margin: 8px 0; }
.review-item p { margin: 5px 0; }
.test-result-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Content grids */
.comparison-grid { grid-template-columns: repeat(3, 1fr); margin: 22px 0; }
.comparison-card.featured { border-top: 5px solid var(--accent); }
.comparison-card h3 { margin-top: 7px; }
.comparison-card a { font-weight: 800; }
.mini-label { display: inline-block; padding: 4px 8px; border-radius: 999px; background: var(--soft-blue); color: var(--brand-dark); font-weight: 800; font-size: .78rem; }
.visual-figure { margin: 24px 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.visual-figure img { display: block; width: 100%; border-radius: 13px; }
.visual-figure figcaption { margin-top: 9px; color: var(--muted); font-size: .85rem; }
.visual-panel { display: grid; grid-template-columns: 1.05fr .95fr; 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 { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 14px; }
.score-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.score-table th, .score-table td { padding: 14px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.score-table th { color: #fff; background: var(--brand-dark); }
.score-table tr:last-child td { border-bottom: 0; }
.score-table tbody tr:nth-child(even) { background: var(--soft); }
.reason-grid { grid-template-columns: repeat(4, 1fr); margin: 20px 0; }
.reason-grid i { font-size: 1.45rem; color: var(--accent); }
.reason-grid h3 { margin: 12px 0 6px; font-size: 1.03rem; }
.reason-grid p { margin: 0; color: var(--muted); font-size: .92rem; }
.domain-grid { grid-template-columns: repeat(3, 1fr); margin: 22px 0; }
.domain-card { padding-top: 60px; min-height: 245px; }
.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.06rem; }
.domain-card p { color: var(--muted); font-size: .94rem; }
.domain-card small { display: block; margin-top: 12px; color: var(--brand-dark); font-weight: 700; }
.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; }
.prep-calendar { grid-template-columns: repeat(4, 1fr); margin: 20px 0; }
.prep-calendar h3 { margin: 10px 0 8px; font-size: 1.05rem; }
.prep-calendar ul { padding-left: 20px; margin-bottom: 0; }
.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); }
.report-grid { grid-template-columns: repeat(3, 1fr); margin: 20px 0; }
.report-card h3 { margin: 9px 0 7px; }
.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; }
.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; }
.age-grid { grid-template-columns: repeat(4, 1fr); margin: 20px 0; }
.age-grid span { color: var(--accent); text-transform: uppercase; font-weight: 900; letter-spacing: .06em; font-size: .78rem; }
.age-grid h3 { margin: 8px 0; font-size: 1.04rem; }
.age-grid p { margin: 0; color: var(--muted); }
.myth-grid { grid-template-columns: repeat(3, 1fr); margin: 20px 0; }
.myth-grid h3 { margin-top: 0; font-size: 1.03rem; }
.myth-grid p { margin-bottom: 0; color: var(--muted); }
.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; }

.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: 1020px) {
    .quick-facts { grid-template-columns: repeat(2, 1fr); }
    .comparison-grid, .domain-grid, .report-grid, .glossary-grid, .myth-grid { grid-template-columns: repeat(2, 1fr); }
    .reason-grid, .prep-calendar, .age-grid { grid-template-columns: repeat(2, 1fr); }
    .process-list { grid-template-columns: repeat(2, 1fr); }
    .visual-panel, .history-layout { grid-template-columns: 1fr; }
    .history-photo { position: static; max-width: 460px; }
}

@media (max-width: 760px) {
    body.iq-quiz-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: 600px; }
    .country-hero-shade { background: linear-gradient(180deg, rgba(5,31,49,.68), rgba(5,31,49,.97)); }
    .country-hero-content { padding: 48px 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, .comparison-grid, .domain-grid, .reason-grid, .report-grid, .process-list, .prep-calendar, .two-column, .age-grid, .myth-grid, .glossary-grid { grid-template-columns: 1fr; }
    .test-start { grid-template-columns: 1fr; padding: 22px; }
    .test-start-icon { width: 64px; height: 64px; border-radius: 18px; }
    .mode-picker { grid-template-columns: 1fr; }
    .test-toolbar { align-items: flex-start; flex-direction: column; padding: 20px 18px 15px; }
    .toolbar-stats { width: 100%; }
    .answered-count, .timer-box { flex: 1; }
    #question-stage { padding: 18px 14px 2px; }
    .test-question { padding: 17px; }
    .question-topline { flex-direction: column; gap: 2px; }
    .answer-options { grid-template-columns: 1fr; }
    .test-navigation { padding: 0 14px; flex-wrap: wrap; }
    .test-navigation .test-secondary { margin-right: 0; }
    .test-navigation button { flex: 1 1 100%; }
    .test-results { padding: 18px 14px; }
    .results-hero { grid-template-columns: 1fr; padding: 20px; }
    .score-ring { width: 120px; height: 120px; }
    .result-summary-grid { grid-template-columns: 1fr; }
    .domain-result { grid-template-columns: 1fr; }
    .domain-result > div:first-child { width: 100%; }
    .visual-panel, .visual-figure { padding: 16px; }
    .cta-footer { padding: 40px 20px; }
}

@media (max-width: 430px) {
    .contact-info { gap: 6px; }
    body.iq-quiz-page .directory-link { padding: 9px 11px; font-size: .82rem; }
    .country-hero h1 { font-size: 2.1rem; }
    .country-kicker { font-size: .7rem; }
    .toolbar-stats { flex-direction: column; }
    .symbol-row { gap: 15px; }
    .matrix-three > div, .number-grid > div { min-height: 58px; font-size: 1.08rem; }
}

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

/* IQ quiz free page additions */
.terminology-grid { grid-template-columns: repeat(3, 1fr); margin: 22px 0; }
.comparison-card .mini-label { display:inline-block; margin-bottom:10px; padding:5px 9px; border-radius:999px; color:var(--brand-dark); background:var(--soft-blue); font-weight:900; }
.comparison-card p { margin:0; color:var(--muted); }
.test-form-message { padding: 0 26px; }
.review-item.correct { border-left-color: var(--success); }
.review-item.incorrect { border-left-color: var(--danger); }
.review-heading { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:.85rem; }
.review-item.correct .review-heading strong { color:var(--success); }
.review-item.incorrect .review-heading strong { color:var(--danger); }
@media (max-width:1020px){.terminology-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:760px){.terminology-grid{grid-template-columns:1fr;}.test-form-message{padding:0 14px;}}
