:root {
    --ink: #2e2747;
    --ink-soft: #5f5871;
    --coral: #ff7a59;
    --coral-dark: #df543a;
    --peach: #ffe0d6;
    --cream: #fff8ec;
    --paper: #fffdf9;
    --gold: #f8b84e;
    --mint: #72c9ae;
    --lavender: #aaa0d8;
    --line: #e9ded0;
    --white: #fff;
    --shadow-sm: 0 8px 24px rgba(46, 39, 71, .08);
    --shadow: 0 18px 50px rgba(46, 39, 71, .12);
    --radius-sm: 14px;
    --radius: 24px;
    --radius-lg: 36px;
    --shell: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Nunito", "Avenir Next", Avenir, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--coral-dark); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

h1, h2, h3 {
    margin: 0 0 .65em;
    color: var(--ink);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -.035em;
}

h1 { font-size: clamp(2.6rem, 6vw, 5.7rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 3.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { margin: 0 0 1.25em; }
strong { font-weight: 800; }

.shell { width: var(--shell); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-compact { padding: clamp(40px, 6vw, 72px) 0; }
.section-warm { background: var(--cream); }
.section-peach { background: var(--peach); }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--coral-dark);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.eyebrow::before { content: "✦"; color: var(--gold); font-size: 1rem; }
.lede { color: var(--ink-soft); font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.7; }
.muted { color: var(--ink-soft); }
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; z-index: 999;
    top: 12px; left: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--white);
    background: var(--ink);
    transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgba(46, 39, 71, .07);
    background: rgba(255, 253, 249, .94);
}
.header-inner {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.brand { display: inline-flex; flex: 0 0 auto; }
.brand img { display: block; width: 215px; height: auto; }
.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav a {
    padding: 10px 13px;
    border-radius: 999px;
    color: var(--ink);
    font-size: .94rem;
    font-weight: 750;
    text-decoration: none;
}
.primary-nav a:hover, .primary-nav a:focus-visible { background: var(--cream); color: var(--coral-dark); }
.nav-toggle {
    display: none;
    width: 45px; height: 45px;
    border: 0; border-radius: 50%;
    background: var(--cream);
}
.nav-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; margin: 4px auto; border-radius: 2px; background: var(--ink); }

.breadcrumbs { padding-top: 20px; font-size: .88rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #aa9daf; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(58px, 8vw, 104px) 0 clamp(78px, 11vw, 140px);
    background:
        radial-gradient(circle at 82% 16%, rgba(248, 184, 78, .22) 0 9%, transparent 9.3%),
        radial-gradient(circle at 9% 80%, rgba(255, 122, 89, .13) 0 13%, transparent 13.3%),
        linear-gradient(135deg, #fffdf9 10%, var(--cream) 70%);
}
.hero::before, .hero::after { position: absolute; color: var(--gold); opacity: .7; pointer-events: none; }
.hero::before { content: "✦"; top: 15%; left: 8%; font-size: 27px; transform: rotate(12deg); }
.hero::after { content: "?"; right: 7%; bottom: 11%; color: var(--coral); font-size: 82px; font-weight: 900; opacity: .12; transform: rotate(9deg); }
.hero-inner { position: relative; z-index: 1; max-width: 930px; text-align: center; }
.hero h1 { max-width: 920px; margin-inline: auto; }
.hero h1 em { position: relative; color: var(--coral-dark); font-style: normal; }
.hero h1 em::after { content: ""; position: absolute; right: 0; bottom: -.02em; left: 0; height: .12em; border-radius: 99px; background: var(--gold); transform: rotate(-1deg); z-index: -1; }
.hero .lede { max-width: 690px; margin: 0 auto 30px; }
.hero-proof { display: flex; justify-content: center; align-items: center; gap: 12px 22px; flex-wrap: wrap; margin-top: 25px; color: var(--ink-soft); font-size: .91rem; }
.proof-item { display: flex; align-items: center; gap: 8px; }
.proof-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(114, 201, 174, .17); }

.search-card {
    max-width: 850px;
    margin: 34px auto 0;
    padding: 14px;
    border: 1px solid rgba(46, 39, 71, .08);
    border-radius: 24px;
    background: rgba(255,255,255,.93);
    box-shadow: var(--shadow);
}
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.search-input-wrap { position: relative; }
.search-input-wrap svg { position: absolute; left: 18px; top: 50%; width: 22px; transform: translateY(-50%); color: var(--coral-dark); }
.search-input {
    width: 100%; min-height: 60px;
    padding: 13px 18px 13px 54px;
    border: 2px solid transparent;
    border-radius: 15px;
    color: var(--ink);
    background: var(--cream);
    outline: none;
}
.search-input:focus { border-color: var(--coral); background: var(--white); box-shadow: 0 0 0 4px rgba(255, 122, 89, .12); }
.search-input::placeholder { color: #8d8398; }
.button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 23px;
    border: 0;
    border-radius: 14px;
    color: var(--white);
    background: var(--coral-dark);
    box-shadow: 0 9px 20px rgba(223, 84, 58, .22);
    font-weight: 850;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { color: var(--white); background: #cb432d; box-shadow: 0 12px 26px rgba(223, 84, 58, .28); transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.button-secondary { color: var(--ink); background: var(--cream); box-shadow: none; }
.button-secondary:hover { color: var(--ink); background: var(--peach); }
.button-large { min-height: 60px; padding-inline: 28px; }
.search-options { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding-top: 12px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--white); font-size: .84rem; font-weight: 800; cursor: pointer; }
.choice input:checked + label { border-color: var(--ink); color: var(--white); background: var(--ink); }
.choice input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.form-error { margin: 10px 0 0; color: #a82f22; font-size: .9rem; font-weight: 750; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card, .stat-card, .content-card {
    border: 1px solid rgba(46, 39, 71, .08);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.info-card { padding: 30px; }
.info-card:nth-child(2) { transform: translateY(16px); }
.card-icon {
    display: grid;
    width: 52px; height: 52px;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 17px;
    color: var(--ink);
    background: var(--peach);
    font-size: 24px;
}
.info-card:nth-child(2) .card-icon { background: #e1f4ed; }
.info-card:nth-child(3) .card-icon { background: #efeafc; }
.info-card p { margin-bottom: 0; color: var(--ink-soft); }

.data-banner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 55px;
    align-items: center;
    padding: clamp(34px, 5vw, 60px);
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: rgba(255,255,255,.8);
    box-shadow: var(--shadow);
}
.data-banner h2 { color: var(--white); }
.data-banner .eyebrow { color: #ffd798; }
.source-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.source-card { padding: 22px; border: 1px solid rgba(255,255,255,.15); border-radius: 20px; background: rgba(255,255,255,.08); }
.source-card span { display: block; color: #ffd798; font-size: .78rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.source-card strong { display: block; margin: 4px 0; color: var(--white); font-size: 1.1rem; }
.source-card p { margin: 0; font-size: .86rem; }

.page-hero { padding: clamp(58px, 8vw, 96px) 0; background: linear-gradient(145deg, var(--cream), #fff); }
.page-hero .shell, .page-hero .narrow { position: relative; }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); }
.page-hero .lede { max-width: 760px; }
.page-hero-centred { text-align: center; }
.page-hero-centred .lede { margin-inline: auto; }

.result-hero { padding: 48px 0 54px; background: linear-gradient(145deg, var(--cream), #fff); }
.result-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 28px; }
.result-hero h1 { margin-bottom: 8px; font-size: clamp(3rem, 7vw, 6rem); }
.rarity-pill { display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border-radius: 999px; color: var(--ink); background: var(--peach); font-weight: 850; }
.rarity-pill::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255,122,89,.18); }
.result-search { max-width: 390px; flex: 0 1 390px; }
.result-search .search-card { margin: 0; padding: 9px; border-radius: 18px; box-shadow: var(--shadow-sm); }
.result-search .search-input { min-height: 50px; }
.result-search .button { min-height: 50px; padding-inline: 17px; }
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 30px; }
.filter-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: #eee6da; }
.filter-tabs a { padding: 8px 15px; border-radius: 999px; color: var(--ink-soft); font-size: .86rem; font-weight: 850; text-decoration: none; }
.filter-tabs a.active { color: var(--white); background: var(--ink); }
.country-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.country-panel { overflow: hidden; border: 1px solid rgba(46,39,71,.08); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.country-panel-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 26px 28px 20px; border-bottom: 1px solid var(--line); }
.country-title { display: flex; align-items: center; gap: 12px; }
.flag-disc { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--cream); font-size: 20px; }
.country-title h2 { margin: 0; font-size: 1.35rem; }
.country-title p { margin: 2px 0 0; color: var(--ink-soft); font-size: .8rem; }
.country-body { padding: 28px; }
.headline-stat { padding-bottom: 25px; }
.headline-stat strong { display: block; color: var(--coral-dark); font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.05em; }
.headline-stat span { display: block; margin-top: 8px; color: var(--ink-soft); font-weight: 750; }
.trend-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: #e3f5ef; color: #256b58; font-size: .8rem; font-weight: 850; }
.trend-badge.down { color: #9d4034; background: #ffe6df; }
.trend-badge.stable, .trend-badge.insufficient { color: #675e80; background: #efecf8; }
.stats-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.mini-stat { padding: 16px; background: var(--white); }
.mini-stat span { display: block; color: var(--ink-soft); font-size: .76rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.mini-stat strong { display: block; margin-top: 3px; font-size: 1.12rem; }
.gender-breakdown { margin-top: 22px; }
.gender-breakdown h3 { font-size: 1rem; }
.gender-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.gender-row span { color: var(--ink-soft); font-size: .86rem; }
.gender-row strong { font-size: .95rem; }

.chart-card { padding: clamp(22px, 4vw, 38px); border: 1px solid rgba(46,39,71,.08); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.chart-header { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 24px; }
.chart-header h2 { margin-bottom: 4px; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.chart-header p { margin: 0; color: var(--ink-soft); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; }
.legend-item { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: .84rem; font-weight: 800; }
.legend-swatch { width: 24px; height: 4px; border-radius: 99px; background: var(--coral); }
.legend-swatch.us { background: var(--lavender); }
.name-chart { position: relative; width: 100%; min-height: 360px; }
.name-chart svg { display: block; width: 100%; min-height: 360px; overflow: visible; }
.chart-grid { stroke: #eee5da; stroke-width: 1; }
.chart-axis-label { fill: #776f83; font-size: 12px; font-family: inherit; }
.chart-line { fill: none; stroke: var(--coral); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.chart-line.us { stroke: var(--lavender); }
.chart-point { fill: var(--white); stroke: var(--coral); stroke-width: 3; }
.chart-point.us { stroke: var(--lavender); }
.chart-tooltip { position: absolute; z-index: 5; min-width: 150px; padding: 11px 13px; border-radius: 12px; color: var(--white); background: var(--ink); box-shadow: var(--shadow-sm); font-size: .8rem; pointer-events: none; transform: translate(-50%,-115%); }
.chart-tooltip strong { display: block; color: #ffd798; }
.chart-empty { display: grid; min-height: 300px; place-items: center; color: var(--ink-soft); text-align: center; }
.data-table-wrap { margin-top: 24px; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table caption { padding: 0 0 12px; color: var(--ink-soft); text-align: left; }
.data-table th, .data-table td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.data-table th { color: var(--ink); background: var(--cream); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
.details-toggle { margin-top: 16px; }

.comparison-card { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 28px; border-radius: var(--radius); background: var(--ink); color: rgba(255,255,255,.8); }
.comparison-icon { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 20px; color: var(--ink); background: var(--gold); font-size: 28px; font-weight: 900; }
.comparison-card h2 { margin-bottom: 5px; color: var(--white); font-size: 1.55rem; }
.comparison-card p { margin: 0; }
.comparison-card small { display: block; margin-top: 8px; color: rgba(255,255,255,.6); }

.notice { display: flex; gap: 13px; padding: 18px 20px; border: 1px solid #eadba7; border-radius: 16px; background: #fff9df; color: #5a502d; font-size: .9rem; }
.notice-icon { flex: 0 0 auto; font-size: 20px; }
.notice p { margin: 0; }

.prose { color: #443d58; }
.prose h2 { margin-top: 1.5em; font-size: clamp(1.55rem, 3vw, 2.25rem); }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-bottom: .55em; }
.prose a { font-weight: 700; }
.prose-callout { margin: 32px 0; padding: 24px 27px; border-left: 5px solid var(--coral); border-radius: 0 18px 18px 0; background: var(--cream); }
.prose-callout p:last-child { margin-bottom: 0; }
.about-photo {
    float: right;
    width: min(34%, 260px);
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 0 28px 42px;
    border: 10px solid var(--white);
    border-radius: 34% 20% 32% 18%;
    box-shadow: var(--shadow);
    transform: rotate(1.5deg);
}
.about-signoff { margin-top: 32px; color: var(--coral-dark); font-size: 1.25rem; font-weight: 850; }

.split-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 7vw, 90px); align-items: start; }
.sticky-card { position: sticky; top: 28px; padding: 28px; border-radius: var(--radius); background: var(--cream); }
.sticky-card ul { margin: 0; padding: 0; list-style: none; }
.sticky-card li + li { margin-top: 8px; }
.sticky-card a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.sticky-card a:hover { background: var(--peach); }

.form-card { padding: clamp(25px, 5vw, 44px); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 850; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--paper); outline: none; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255,122,89,.11); }
.field-help { margin-top: 5px; color: var(--ink-soft); font-size: .78rem; }
.field-error { margin-top: 5px; color: #a82f22; font-size: .8rem; font-weight: 750; }
.honeypot { position: absolute; left: -9999px; }
.alert { margin-bottom: 25px; padding: 16px 19px; border-radius: 14px; font-weight: 750; }
.alert-success { color: #215c4d; background: #dff4eb; }
.alert-error { color: #8b3127; background: #ffe4de; }

.faq-list { display: grid; gap: 13px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.faq-item summary { padding: 18px 21px; font-weight: 850; cursor: pointer; }
.faq-item div { padding: 0 21px 20px; color: var(--ink-soft); }
.faq-item p:last-child { margin-bottom: 0; }

.empty-state { padding: clamp(60px, 9vw, 110px) 0; text-align: center; }
.empty-mark { display: grid; width: 100px; height: 100px; place-items: center; margin: 0 auto 28px; border-radius: 32px; color: var(--coral-dark); background: var(--peach); font-size: 55px; font-weight: 900; transform: rotate(-4deg); }
.empty-state h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
.empty-state .lede { max-width: 650px; margin-inline: auto; }
.empty-state .search-card { margin-top: 28px; text-align: left; }

.site-footer { position: relative; overflow: hidden; padding: 64px 0 24px; color: rgba(255,255,255,.7); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; }
.footer-brand img { width: 215px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { max-width: 340px; }
.site-footer h2 { color: var(--white); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #ffd798; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }
.footer-base p { margin: 0; }
.footer-spark { position: absolute; opacity: .09; font-weight: 900; pointer-events: none; }
.footer-spark-one { top: 12%; right: 8%; color: var(--gold); font-size: 70px; }
.footer-spark-two { left: 3%; bottom: 0; color: var(--coral); font-size: 140px; transform: rotate(-12deg); }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .primary-nav { display: none; position: absolute; top: 73px; right: 20px; left: 20px; align-items: stretch; flex-direction: column; padding: 13px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
    .primary-nav.open { display: flex; }
    .primary-nav a { padding: 11px 14px; }
    .data-banner, .split-layout { grid-template-columns: 1fr; }
    .sticky-card { position: static; }
    .result-heading-row { align-items: start; flex-direction: column; }
    .result-search { width: 100%; max-width: none; flex-basis: auto; }
    .country-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1.5fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    :root { --shell: min(100% - 28px, 1160px); }
    body { font-size: 16px; }
    .header-inner { min-height: 72px; }
    .brand img { width: 183px; }
    .search-card { padding: 10px; }
    .search-row { grid-template-columns: 1fr; }
    .search-row .button { width: 100%; }
    .result-search .search-row { grid-template-columns: minmax(0, 1fr) auto; }
    .result-search .button { width: auto; }
    .result-search .button span:first-child { display: none; }
    .card-grid { grid-template-columns: 1fr; }
    .info-card:nth-child(2) { transform: none; }
    .source-cards { grid-template-columns: 1fr; }
    .data-banner { gap: 28px; }
    .filter-bar { align-items: start; flex-direction: column; }
    .filter-tabs { max-width: 100%; overflow-x: auto; }
    .chart-header { flex-direction: column; }
    .name-chart, .name-chart svg { min-height: 290px; }
    .comparison-card { grid-template-columns: 1fr; }
    .about-photo { float: none; display: block; width: min(72%, 260px); height: auto; margin: 0 auto 35px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
    .footer-base { align-items: start; flex-direction: column; }
}

@media (max-width: 450px) {
    .hero { padding-top: 48px; }
    .hero-proof { align-items: flex-start; flex-direction: column; padding-left: 12px; }
    .stats-mini-grid { grid-template-columns: 1fr; }
    .country-panel-header { align-items: flex-start; flex-direction: column; }
    .gender-row { grid-template-columns: 1fr auto; }
    .gender-row span:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
    .site-header, .site-footer, .result-search, .filter-bar, .details-toggle { display: none !important; }
    body { color: #000; background: #fff; }
    .section { padding: 30px 0; }
    .country-grid { grid-template-columns: 1fr 1fr; }
    .country-panel, .chart-card { box-shadow: none; }
}
