:root {
    --ink: #0f172a;
    --ink-soft: #475569;
    --ink-muted: #94a3b8;
    --paper: #f4f7fb;
    --surface: #ffffff;
    --line: rgba(148, 163, 184, .18);
    --line-strong: rgba(148, 163, 184, .32);
    --primary: #0891b2;
    --primary-dark: #0e7490;
    --primary-soft: #ecfeff;
    --accent: #7c3aed;
    --accent-soft: #f3e8ff;
    --culture: #db2777;
    --media: #4f46e5;
    --success: #059669;
    --shadow-xs: 0 1px 3px rgba(15, 23, 42, .04);
    --shadow-sm: 0 8px 24px rgba(15, 23, 42, .06);
    --shadow-md: 0 16px 48px rgba(15, 23, 42, .08);
    --shadow-lg: 0 28px 70px rgba(15, 23, 42, .1);
    --radius: 20px;
    --radius-sm: 14px;
    --radius-lg: 28px;
    --nav-h: 74px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
}

/* Ambient blobs */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    width: 100%;
    max-width: 100vw;
    contain: paint;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .45;
}

.blob-1 {
    width: 520px; height: 520px;
    top: -180px; right: -120px;
    background: rgba(8, 145, 178, .22);
}

.blob-2 {
    width: 440px; height: 440px;
    top: 35%; left: -160px;
    background: rgba(124, 58, 237, .16);
}

.blob-3 {
    width: 380px; height: 380px;
    bottom: 8%; right: 10%;
    background: rgba(219, 39, 119, .1);
}

/* Prose justify */
.masthead-lead, .intro-text p, .check-list li,
.topic-card p, .mag-col p, .mag-note,
.research-feature p, .research-card > p,
.source-item.intl, .context-card p, .footer-brand p {
    text-align: justify;
    text-align-last: right;
    text-justify: inter-word;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

/* ── Nav ── */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid transparent;
    transition: background .3s, box-shadow .3s, border-color .3s;
}

.site-nav.is-open-menu {
    z-index: 130;
}

.site-nav.is-scrolled {
    background: rgba(255, 255, 255, .92);
    border-color: var(--line);
    box-shadow: var(--shadow-xs);
}

.back-to-top {
    position: fixed;
    z-index: 90;
    inset-inline-end: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #0891b2, #7c3aed);
    color: #fff;
    box-shadow: 0 10px 28px rgba(8, 145, 178, .32);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, box-shadow .25s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.back-to-top:hover {
    box-shadow: 0 14px 32px rgba(124, 58, 237, .36);
    transform: translateY(-2px);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.nav-inner {
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}

.nav-mark {
    width: 44px; height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0891b2 0%, #7c3aed 100%);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: .82rem;
    box-shadow: 0 6px 20px rgba(8, 145, 178, .28);
}

.nav-brand-text strong { display: block; font-size: .9rem; font-weight: 800; }
.nav-brand-text span { font-size: .72rem; color: var(--ink-muted); font-weight: 500; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0; padding: 0;
}

.nav-links li:has(.nav-cta) {
    margin-inline-end: 6px;
}

.nav-links a {
    text-decoration: none;
    font-size: .84rem;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 9px 15px;
    border-radius: 999px;
    transition: color .2s, background .2s, transform .2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--ink);
    background: rgba(8, 145, 178, .08);
    outline: none;
}

.nav-cta {
    background: linear-gradient(135deg, #0891b2, #06b6d4) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(8, 145, 178, .28);
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(8, 145, 178, .34) !important; color: #fff !important; }

.nav-cta--magazine {
    background: linear-gradient(135deg, #db2777, #e11d48) !important;
    box-shadow: 0 4px 16px rgba(219, 39, 119, .28);
}

.nav-cta--magazine:hover {
    box-shadow: 0 8px 24px rgba(219, 39, 119, .34) !important;
    color: #fff !important;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
}

/* ── Hero ── */

.masthead {
    position: relative;
    padding-bottom: 12px;
}

.masthead::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(148, 163, 184, .14) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    pointer-events: none;
    opacity: .5;
}

.masthead-inner {
    position: relative;
    z-index: 1;
    padding: 16px 0 14px;
}

.masthead-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 14px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}

.masthead-main,
.masthead-aside {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
}

.masthead-aside { gap: 6px; min-height: 0; }

.masthead-panel {
    flex: 1;
    min-height: 0;
    padding: 8px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.panel-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    flex-shrink: 0;
}

.panel-eyebrow {
    margin: 0;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--primary-dark);
    text-transform: uppercase;
    flex-shrink: 0;
}

.hero-slider {
    background: linear-gradient(135deg, #f0f9ff 0%, #ede9fe 55%, #fdf2f8 100%);
    border-radius: var(--radius);
    padding: 8px;
    margin-top: 0;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(8, 145, 178, .14);
    box-shadow: var(--shadow-xs);
}

.hero-slider-track {
    position: relative;
    min-height: 48px;
}

.hero-slide {
    display: none;
    opacity: 0;
}

.hero-slide.is-active {
    display: block;
    opacity: 1;
    animation: hero-slide-in .35s var(--ease);
}

@keyframes hero-slide-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide.is-active { animation: none; }
}

.hero-slide-label {
    margin: 0 0 3px;
    font-size: .62rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .05em;
}

.hero-slide-text {
    margin: 0;
    font-size: .84rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--ink);
    cursor: pointer;
    transition: color .2s;
}

.hero-slide-text:hover { color: var(--primary-dark); }

.sample-result {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    gap: 0;
    margin-top: 8px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(8, 145, 178, .18);
    border-inline-start: 3px solid var(--primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.sample-result:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(8, 145, 178, .28);
}

.sample-result-badge {
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .05em;
    color: #0e6655;
    background: linear-gradient(180deg, #ecfdf5, #e4f4f2);
}

.sample-result-body {
    flex: 1;
    min-width: 0;
    padding: 7px 10px 7px 8px;
}

.sample-result-kicker {
    margin: 0 0 3px;
    font-size: .6rem;
    font-weight: 700;
    color: var(--ink-muted);
}

.sample-result-title {
    margin: 0 0 4px;
    font-size: .76rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sample-result-meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 6px;
    font-size: .6rem;
    font-weight: 600;
    color: var(--ink-soft);
    line-height: 1.4;
}

.sample-result-meta span + span::before {
    content: '·';
    margin-inline-end: 8px;
    color: var(--ink-muted);
}

.quick-search {
    flex: 0 0 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0;
}

.quick-search-label {
    display: block;
    margin-bottom: 6px;
    font-size: .78rem;
    font-weight: 800;
    flex-shrink: 0;
    background: linear-gradient(120deg, #0e7490 0%, #0891b2 35%, #7c3aed 72%, #db2777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quick-search-stat {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px;
    margin: 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(236, 254, 255, .85), rgba(224, 231, 255, .75));
    border: 1px solid rgba(8, 145, 178, .16);
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
    text-align: start;
    box-sizing: border-box;
}

.quick-search-stat strong {
    font-size: .95rem;
    font-weight: 900;
    color: var(--primary-dark);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: .02em;
    transition: transform .25s ease, color .25s ease;
}

.quick-search-stat strong.is-counting {
    transform: scale(1.04);
    color: #0e7490;
}

.quick-search-stat span {
    font-size: .62rem;
    font-weight: 600;
    color: var(--ink-soft);
    line-height: 1.3;
    white-space: nowrap;
}

.quick-search-row { display: flex; gap: 8px; }

.quick-search-row input {
    flex: 1; min-width: 0;
    padding: 9px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: .82rem;
    background: var(--paper);
    transition: border-color .2s, box-shadow .2s;
}

.quick-search-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(8, 145, 178, .12);
    background: #fff;
}

.quick-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: #fff;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(8, 145, 178, .28);
    transition: transform .2s, box-shadow .2s;
}

.quick-search-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(8, 145, 178, .34); }

/* Quick search year chart (aligned with research engine) */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.quick-year-range {
    margin: 4px 0 0;
    padding: 6px 8px 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(236, 254, 255, .35), #fff);
    flex-shrink: 0;
}

.quick-year-range .year-chart-head {
    display: flex;
    align-items: center;
    gap: 6px 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.quick-year-range .year-chart-label {
    font-size: .68rem;
    font-weight: 700;
    color: var(--ink-muted);
}

.quick-year-range .year-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    height: 14px;
    pointer-events: none;
}

.quick-year-range .year-chart-readout {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    font-size: .74rem;
    color: var(--ink-soft);
}

.quick-year-range .year-chart-readout b {
    font-size: .92rem;
    font-weight: 800;
    color: var(--primary-dark);
    font-variant-numeric: tabular-nums;
}

.quick-year-range .year-chart-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-inline-start: auto;
}

.quick-year-range .year-chart-presets button {
    font-family: inherit;
    font-size: .66rem;
    font-weight: 700;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--ink-soft);
    border-radius: 999px;
    padding: 4px 9px;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}

.quick-year-range .year-chart-presets button:hover,
.quick-year-range .year-chart-presets button.is-on {
    border-color: rgba(8, 145, 178, .35);
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.quick-year-range .year-chart-plot {
    position: relative;
    direction: ltr;
    padding: 6px 4px 0;
    user-select: none;
    touch-action: none;
}

.quick-year-range .year-chart-bars i {
    flex: 1;
    min-width: 0;
    border-radius: 2px 2px 0 0;
    background: rgba(148, 163, 184, .22);
    opacity: .65;
}

.quick-year-range .year-chart-bars i.is-in {
    background: linear-gradient(180deg, #22d3ee, #0891b2);
    opacity: 1;
}

.quick-year-range .year-chart-track {
    position: relative;
    height: 14px;
    margin-top: -7px;
}

.quick-year-range .year-chart-range {
    position: absolute;
    top: 6px;
    height: 4px;
    border-radius: 999px;
    background: #0891b2;
    box-shadow: 0 0 0 1px rgba(8, 145, 178, .2);
}

.quick-year-range .year-chart-track::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 6px;
    height: 4px;
    border-radius: 999px;
    background: #e2e8f0;
}

.quick-year-range .year-chart-handle {
    position: absolute;
    top: 0;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--ink);
    box-shadow: 0 1px 4px rgba(15, 23, 42, .22);
    cursor: grab;
    z-index: 2;
    padding: 0;
}

.quick-year-range .year-chart-handle.is-end {
    background: #0891b2;
}

.quick-year-range .year-chart-handle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.quick-year-range .year-chart-handle.is-dragging {
    cursor: grabbing;
    transform: scale(1.1);
}

.quick-year-range .year-chart-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    color: var(--ink-muted);
    font-size: .62rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Masthead hero card (right block) */

@keyframes hero-border-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes hero-shine-sweep {
    0% { transform: translateX(120%) skewX(-18deg); opacity: 0; }
    15% { opacity: 1; }
    100% { transform: translateX(-180%) skewX(-18deg); opacity: 0; }
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes hero-enter {
    from { opacity: 0; transform: translateY(22px) scale(.985); }
    to { opacity: 1; transform: none; }
}

.masthead-main { min-width: 0; flex: 1; }

.masthead-hero-card {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    border-radius: calc(var(--radius-lg) + 4px);
    padding: 2px;
    background: linear-gradient(130deg, #0891b2, #7c3aed, #db2777, #0891b2);
    background-size: 280% 280%;
    animation: hero-border-shift 10s ease infinite, hero-enter .85s var(--ease) both;
    box-shadow:
        var(--shadow-lg),
        0 0 0 1px rgba(255, 255, 255, .5) inset;
    overflow: hidden;
}

.masthead-hero-bg {
    position: absolute;
    inset: 2px;
    border-radius: calc(var(--radius-lg) + 2px);
    background:
        radial-gradient(circle at 100% 0%, rgba(124, 58, 237, .14), transparent 44%),
        radial-gradient(circle at 0% 100%, rgba(8, 145, 178, .16), transparent 42%),
        linear-gradient(165deg, #ffffff 0%, #f8fafc 42%, #eef6ff 100%);
    pointer-events: none;
    overflow: hidden;
}

.masthead-hero-bg::after {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(8, 145, 178, .14);
    opacity: .7;
}

.masthead-hero-bg::before {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -40px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, .1), transparent 70%);
}

.masthead-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

.masthead-hero-orb--1 {
    width: 120px;
    height: 120px;
    top: 18%;
    left: -30px;
    background: radial-gradient(circle, rgba(8, 145, 178, .18), transparent 68%);
    animation: hero-float 7s ease-in-out infinite;
}

.masthead-hero-orb--2 {
    width: 90px;
    height: 90px;
    bottom: 22%;
    right: 8%;
    background: radial-gradient(circle, rgba(219, 39, 119, .14), transparent 70%);
    animation: hero-float 8.5s ease-in-out infinite reverse;
}

.masthead-hero-shine {
    position: absolute;
    inset: 2px;
    border-radius: calc(var(--radius-lg) + 2px);
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.masthead-hero-shine::after {
    content: '';
    position: absolute;
    top: -20%;
    bottom: -20%;
    width: 45%;
    background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
    animation: hero-shine-sweep 7s ease-in-out 1.2s infinite;
}

.masthead-hero-mark {
    position: absolute;
    inset-inline-end: 22px;
    inset-inline-start: auto;
    bottom: 22px;
    top: auto;
    width: 52px;
    height: 52px;
    color: var(--primary-dark);
    opacity: .09;
    z-index: 1;
    pointer-events: none;
}

.masthead-hero-mark svg { width: 100%; height: 100%; }

.masthead-hero-content {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 14px 16px 12px;
}

.masthead-hero-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.masthead-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .68rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(124, 58, 237, .18);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 0;
    box-shadow: var(--shadow-xs), 0 0 0 1px rgba(255, 255, 255, .6) inset;
}

.masthead-tag::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(124, 58, 237, .45);
}

.masthead-en {
    margin: 0;
    font-size: .62rem;
    font-weight: 700;
    color: var(--ink-muted);
    letter-spacing: .12em;
    text-transform: uppercase;
    direction: ltr;
    text-align: left;
    font-family: 'Segoe UI', system-ui, sans-serif;
    opacity: .75;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .5);
    border: 1px solid rgba(148, 163, 184, .12);
    max-width: min(100%, 260px);
    line-height: 1.3;
}

.masthead-title {
    margin: 0 0 8px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.15;
    flex-shrink: 0;
}

.masthead-title-pre {
    font-size: clamp(1rem, .85rem + .6vw, 1.2rem);
    font-weight: 700;
    color: var(--ink-soft);
    letter-spacing: -.01em;
}

.masthead-title-accent {
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -.04em;
    background: linear-gradient(120deg, #0e7490 0%, #0891b2 35%, #7c3aed 72%, #db2777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.12;
    filter: drop-shadow(0 2px 12px rgba(8, 145, 178, .12));
}

.masthead-title-rule {
    display: block;
    width: min(140px, 38%);
    height: 2px;
    margin: 4px 0 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0891b2, #7c3aed 55%, transparent);
    opacity: .85;
}

.masthead-title-sub {
    font-size: clamp(1rem, .85rem + .7vw, 1.35rem);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.025em;
}

.masthead-lead {
    margin: 0;
    max-width: none;
    font-size: .84rem;
    color: var(--ink-soft);
    font-weight: 500;
    line-height: 1.6;
    padding: 6px 10px 6px 0;
    border-right: 3px solid transparent;
    border-image: linear-gradient(180deg, #0891b2, #7c3aed) 1;
    background: linear-gradient(90deg, rgba(236, 254, 255, .55), transparent 85%);
    border-radius: 0 12px 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

.masthead-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-top: 8px;
    padding-top: 0;
    flex-shrink: 0;
}

.masthead-stat {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 1px 6px;
    align-items: center;
    padding: 7px 10px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
    transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
    position: relative;
    overflow: hidden;
}

.masthead-stat::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #0891b2, #7c3aed);
    opacity: .55;
}

.masthead-stat:nth-child(2)::before { background: linear-gradient(180deg, #7c3aed, #db2777); }
.masthead-stat:nth-child(3)::before { background: linear-gradient(180deg, #0891b2, #4f46e5); }
.masthead-stat:nth-child(4)::before { background: linear-gradient(180deg, #059669, #0891b2); }

.masthead-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(8, 145, 178, .2);
}

.masthead-stat-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #ecfeff, #e0e7ff);
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(8, 145, 178, .1);
}

.masthead-stat-icon svg { width: 15px; height: 15px; }

.masthead-stat-label {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    font-size: .62rem;
    font-weight: 700;
    color: var(--ink-muted);
    letter-spacing: .04em;
}

.masthead-stat strong {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    font-size: .8rem;
    font-weight: 800;
    color: var(--ink);
}

.masthead-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    flex-shrink: 0;
}

.masthead-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.masthead-btn--primary {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #7c3aed 140%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(8, 145, 178, .28);
}

.masthead-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(8, 145, 178, .34);
}

.masthead-btn--ghost {
    background: rgba(255, 255, 255, .8);
    color: var(--ink-soft);
    border: 1px solid var(--line-strong);
}

.masthead-btn--ghost:hover {
    background: #fff;
    color: var(--primary-dark);
    border-color: rgba(8, 145, 178, .35);
    transform: translateY(-2px);
}

.masthead-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .masthead-hero-card,
    .masthead-hero-orb,
    .masthead-hero-shine::after {
        animation: none;
    }
}

/* legacy selectors kept out */

/* ── Layout ── */

.wrap {
    width: min(1160px, calc(100% - 36px));
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.section { padding: 76px 0; }

.panel-section {
    margin: 0 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .85);
    box-shadow: var(--shadow-sm);
}

.panel-section--tint {
    background: linear-gradient(145deg, rgba(255,255,255,.88) 0%, rgba(236,254,255,.55) 100%);
}

.panel-section .wrap { padding-top: 56px; padding-bottom: 56px; }

.intro-strip.panel-section { margin-top: 8px; }

.section-label {
    display: inline-block;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    color: var(--primary-dark);
    background: var(--primary-soft);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.section-title {
    margin: 0 0 14px;
    font-size: clamp(1.45rem, 1.05rem + 1.3vw, 2rem);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -.025em;
    position: relative;
    padding-bottom: 14px;
}

.section-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0891b2, #7c3aed);
}

.section-desc { margin: 0; color: var(--ink-soft); max-width: 640px; font-size: .96rem; }

.section-head {
    margin-bottom: 40px;
    text-align: center;
}

.section-head .section-title::after {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

.section-head .section-desc {
    margin-inline: auto;
    text-align: center;
    text-align-last: center;
    text-justify: auto;
}

/* ── Intro ── */

.intro-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 36px;
    align-items: start;
}

.intro-text p { margin: 0 0 16px; color: var(--ink-soft); font-size: .95rem; }
.intro-text p:last-child { margin-bottom: 0; }

.intro-aside {
    padding: 28px;
    background: linear-gradient(160deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}

.intro-aside h3 { margin: 0 0 18px; font-size: .98rem; font-weight: 800; }

.check-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.check-list:last-child { margin-bottom: 0; }

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    font-size: .86rem;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
}

.check-list li:last-child { border-bottom: none; }

.check-list li::before {
    flex-shrink: 0;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .65rem;
    font-weight: 800;
    margin-top: 2px;
}

.check-list--yes li::before {
    content: '✓';
    background: #d1fae5;
    color: var(--success);
}

.check-list--no li::before {
    content: '✕';
    background: #fee2e2;
    color: #dc2626;
}

/* ── Context ── */

.context-section { padding-bottom: 60px; }

.context-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.context-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 26px 26px;
    box-shadow: var(--shadow-xs);
    transition: transform .3s var(--ease), box-shadow .3s;
    position: relative;
    overflow: hidden;
}

.context-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0891b2, #22d3ee);
}

.context-card.culture::before { background: linear-gradient(90deg, var(--culture), #f472b6); }
.context-card.media::before { background: linear-gradient(90deg, var(--media), #818cf8); }

.context-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.context-icon {
    width: 46px; height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.context-card.culture .context-icon { background: #fce7f3; color: var(--culture); }
.context-card.media .context-icon { background: #eef2ff; color: var(--media); }

.context-icon svg { width: 22px; height: 22px; }

.context-card h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
}
.context-card p { margin: 0; font-size: .87rem; color: var(--ink-soft); line-height: 1.88; }

/* ── Topics ── */

.topics-section.section { padding: 0; margin: 24px 18px; }

.topics-section .wrap {
    padding-top: 36px;
    padding-bottom: 36px;
}

.topics-section .section-head { margin-bottom: 22px; }

.topic-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
    margin-bottom: 18px;
    padding: 5px;
    background: rgba(255, 255, 255, .85);
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

.topic-tab {
    border: none;
    background: transparent;
    color: var(--ink-soft);
    font-family: inherit;
    font-size: .84rem;
    font-weight: 700;
    padding: 11px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all .25s var(--ease);
    text-align: center;
}

.topic-tab:hover { color: var(--primary-dark); background: rgba(8, 145, 178, .07); }

.topic-tab.is-active {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: #fff;
    box-shadow: 0 4px 14px rgba(8, 145, 178, .28);
}

.topic-panels { min-height: 0; }

.topic-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
    animation: fadeUp .4s var(--ease);
}

.topic-panel.is-active { display: grid; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

.topic-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 22px 20px;
    box-shadow: var(--shadow-xs);
    transition: transform .3s var(--ease), box-shadow .3s;
    display: flex;
    flex-direction: column;
}

.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.topic-card h3 { margin: 0 0 10px; font-size: 1rem; font-weight: 800; }
.topic-card p { margin: 0 0 10px; font-size: .88rem; color: var(--ink-soft); line-height: 1.82; }
.topic-card p:last-child { margin-bottom: 0; }

.topic-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: auto 0 0;
    padding: 12px 0 0;
}

.topic-keywords li {
    font-size: .72rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: linear-gradient(135deg, #ecfeff, #f0f9ff);
    border: 1px solid rgba(8, 145, 178, .16);
    border-radius: 999px;
    padding: 5px 11px;
    line-height: 1.4;
}

/* ── Magazine grid ── */

.sections-block { padding: 76px 0; }

.mag-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 100%;
}

.mag-col {
    --mag-accent: var(--primary);
    --mag-bg: linear-gradient(160deg, #fff 0%, #f8fafc 100%);
    --mag-glow: rgba(8, 145, 178, .12);
    position: relative;
    background: var(--mag-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-height: 228px;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-xs);
    transition: transform .35s var(--ease), box-shadow .35s;
}

.mag-col::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mag-accent), transparent 80%);
}

.mag-col::after {
    content: '';
    position: absolute;
    width: 130px; height: 130px;
    top: -50px; left: -50px;
    background: radial-gradient(circle, var(--mag-glow), transparent 70%);
    pointer-events: none;
    transition: transform .35s var(--ease);
}

.mag-col:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mag-col:hover::after { transform: scale(1.12); }

.mag-col--a { --mag-accent: #db2777; --mag-glow: rgba(219,39,119,.14); --mag-bg: linear-gradient(160deg,#fff,#fdf2f8); }
.mag-col--b { --mag-accent: #2563eb; --mag-glow: rgba(37,99,235,.14); --mag-bg: linear-gradient(160deg,#fff,#eff6ff); }
.mag-col--c { --mag-accent: #d97706; --mag-glow: rgba(217,119,6,.14); --mag-bg: linear-gradient(160deg,#fff,#fffbeb); }
.mag-col--d { --mag-accent: #059669; --mag-glow: rgba(5,150,105,.14); --mag-bg: linear-gradient(160deg,#fff,#ecfdf5); }
.mag-col--e { --mag-accent: #7c3aed; --mag-glow: rgba(124,58,237,.14); --mag-bg: linear-gradient(160deg,#fff,#f5f3ff); }
.mag-col--f { --mag-accent: #0891b2; --mag-glow: rgba(8,145,178,.16); --mag-bg: linear-gradient(160deg,#fff,#ecfeff); }

.mag-col-top {
    display: flex;
    justify-content: center;
    padding: 24px 22px 0;
    position: relative;
    z-index: 1;
}

.mag-col-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 8px 22px var(--mag-glow);
    color: var(--mag-accent);
    transition: transform .3s var(--ease);
}

.mag-col-icon svg { width: 24px; height: 24px; }
.mag-col:hover .mag-col-icon { transform: scale(1.06) rotate(-4deg); }

.mag-col h3 {
    margin: 16px 22px 8px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
    position: relative;
    z-index: 1;
}
.mag-col p { margin: 0 22px; flex: 1; font-size: .84rem; color: var(--ink-soft); line-height: 1.88; position: relative; z-index: 1; }

.mag-col-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 14px 22px 18px;
    border-top: 1px dashed var(--line);
    position: relative; z-index: 1;
}

.mag-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
}

.mag-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }

.mag-status--soon { color: #b45309; background: #fef3c7; }
.mag-status--soon::before { background: #f59e0b; }
.mag-status--draft { color: #6d28d9; background: #ede9fe; }
.mag-status--draft::before { background: #8b5cf6; }
.mag-status--live { color: #047857; background: #d1fae5; }
.mag-status--live::before { background: #10b981; animation: magPulse 2s ease infinite; }

@keyframes magPulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.mag-col-link {
    font-size: .76rem;
    font-weight: 700;
    color: var(--mag-accent);
    opacity: 0;
    transform: translateX(6px);
    transition: opacity .25s, transform .25s;
}

.mag-col--featured:hover .mag-col-link { opacity: 1; transform: none; }

.mag-col--featured {
    border-color: rgba(8, 145, 178, .28);
    box-shadow: 0 10px 36px rgba(8, 145, 178, .12);
}

.mag-col--featured::before {
    height: 4px;
    background: linear-gradient(90deg, #0891b2, #7c3aed);
}

.mag-note {
    margin-top: 28px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #fffbeb, #fef9c3);
    border: 1px solid rgba(251, 191, 36, .22);
    border-radius: var(--radius);
    font-size: .88rem;
    color: #92400e;
}

.mag-grid.reveal.is-visible .mag-col {
    animation: cardIn .55s var(--ease) both;
}

.mag-grid.reveal.is-visible .mag-col:nth-child(1) { animation-delay: .04s; }
.mag-grid.reveal.is-visible .mag-col:nth-child(2) { animation-delay: .08s; }
.mag-grid.reveal.is-visible .mag-col:nth-child(3) { animation-delay: .12s; }
.mag-grid.reveal.is-visible .mag-col:nth-child(4) { animation-delay: .16s; }
.mag-grid.reveal.is-visible .mag-col:nth-child(5) { animation-delay: .20s; }
.mag-grid.reveal.is-visible .mag-col:nth-child(6) { animation-delay: .24s; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

/* ── Research hub ── */

.research-hub {
    margin: 0 18px 24px;
    padding: 76px 0;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 70% 60% at 100% 0%, rgba(124,58,237,.08), transparent 50%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(8,145,178,.1), transparent 45%),
        linear-gradient(180deg, rgba(255,255,255,.92), rgba(236,254,255,.65));
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: var(--shadow-md);
}

.research-hub .wrap { padding: 0; }

.research-hub .section-label { color: var(--accent); background: var(--accent-soft); }

.research-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 36px;
}

.research-features { display: flex; flex-direction: column; gap: 10px; }

.research-feature {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255,255,255,.82);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    transition: transform .25s var(--ease), box-shadow .25s;
}

.research-feature:hover { transform: translateX(-4px); box-shadow: var(--shadow-sm); }

.research-feature-num {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ecfeff, #cffafe);
    color: var(--primary-dark);
    display: grid;
    place-items: center;
    font-size: .82rem;
    font-weight: 800;
}

.research-feature h3 { margin: 0 0 4px; font-size: .92rem; font-weight: 700; }
.research-feature p { margin: 0; font-size: .82rem; color: var(--ink-soft); line-height: 1.78; }

.research-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 4px;
    background: linear-gradient(90deg, #0891b2, #7c3aed, #db2777);
}

.research-card h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 800; }
.research-card > p { margin: 0 0 22px; font-size: .86rem; color: var(--ink-soft); }

.source-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}

.source-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: var(--paper);
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 600;
    border: 1px solid var(--line);
    transition: border-color .2s, transform .2s;
}

.source-item:hover { border-color: rgba(8,145,178,.35); transform: translateY(-1px); }

.source-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.source-item.intl {
    grid-column: 1 / -1;
    font-size: .8rem;
    color: var(--ink-muted);
    font-weight: 500;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.btn-teal {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: #fff;
    width: 100%;
    box-shadow: 0 6px 20px rgba(8,145,178,.28);
}

.btn-teal:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(8,145,178,.34); }

.btn-outline {
    background: var(--surface);
    color: var(--ink-soft);
    border: 1px solid var(--line-strong);
    margin-top: 12px;
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }

.research-actions { display: flex; flex-direction: column; }

/* ── Recent searches ── */

.recent-searches-section.section {
    padding: 0;
    margin: 0 18px 20px;
}

.recent-searches-section .wrap {
    padding-top: 40px;
    padding-bottom: 36px;
}

.recent-searches-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    grid-auto-flow: row;
    align-items: stretch;
    gap: 10px 18px;
    width: 100%;
    max-width: 920px;
    margin-inline: auto;
}

.recent-searches-grid > li {
    display: flex;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
}

.recent-search-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 118px;
    box-sizing: border-box;
    padding: 12px 14px 12px 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(8, 145, 178, .14);
    border-radius: 14px;
    box-shadow: var(--shadow-xs);
    transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
}

.recent-search-item:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 145, 178, .32);
    box-shadow: var(--shadow-sm);
    background: #fff;
}

.recent-search-num {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-size: .86rem;
    font-weight: 900;
    color: #0e7490;
    background: linear-gradient(145deg, #ecfeff, #e0e7ff);
    font-variant-numeric: tabular-nums;
    margin-top: 2px;
}

.recent-search-body {
    flex: 1;
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-search-query {
    flex: 0 0 auto;
    min-width: 0;
    font-size: .72rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-search-sample {
    flex: 1 1 auto;
    min-height: 0;
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.45;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-search-meta {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px 8px;
    min-width: 0;
    max-width: 100%;
    font-size: .66rem;
    font-weight: 600;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-search-meta > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-search-meta span + span::before {
    content: '·';
    margin-inline-end: 8px;
    color: var(--ink-muted);
}

.recent-searches-empty {
    margin: 0 auto;
    max-width: 420px;
    text-align: center;
    font-size: .92rem;
    color: var(--ink-soft);
    line-height: 1.8;
}

.recent-searches-empty a {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.recent-searches-empty a:hover { text-decoration: underline; }

@media (max-width: 720px) {
    .recent-searches-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: 1fr;
        grid-auto-flow: row;
        gap: 8px;
        max-width: 100%;
    }

    .recent-search-item {
        height: 110px;
    }
}

/* ── Word cloud ── */

.keywords-section.section { padding: 0; margin: 0 18px 24px; }

.keywords-section .wrap {
    padding-top: 36px;
    padding-bottom: 36px;
}

.word-cloud-panel {
    width: min(1040px, 100%);
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
}

.word-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: flex-start;
    gap: 6px 10px;
    width: 100%;
    margin: 0 auto;
    padding: 8px 4px 4px;
    max-width: 100%;
}

.word-cloud a {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.15;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .035);
    opacity: 1;
    transition: color .2s, transform .2s, opacity .35s, background .2s, box-shadow .2s;
    max-width: 100%;
}

.word-cloud a.is-placed { opacity: 1; }

.word-cloud--extra {
    display: none;
    margin-top: 10px;
}

.word-cloud-panel.is-expanded .word-cloud--extra {
    display: flex;
}

.word-cloud a.w10 { font-size: 1.55rem; background: rgba(8, 145, 178, .1); }
.word-cloud a.w8 { font-size: 1.15rem; background: rgba(8, 145, 178, .07); }
.word-cloud a.w5 { font-size: .92rem; }
.word-cloud a.w2 { font-size: .78rem; font-weight: 700; }
.word-cloud a.w1 { font-size: .7rem; font-weight: 700; opacity: .9; }

.word-cloud a:hover {
    z-index: 3;
    filter: brightness(0.92);
    transform: translateY(-2px);
    background: rgba(8, 145, 178, .12);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
}

.word-cloud-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin: 18px auto 0;
    padding: 12px 18px;
    border: 1px dashed rgba(15, 23, 42, .16);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(248, 250, 252, .9), rgba(241, 245, 249, .95));
    color: var(--ink);
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: border-color .2s, background .2s, transform .2s;
}

.word-cloud-more:hover {
    border-color: rgba(8, 145, 178, .45);
    background: rgba(8, 145, 178, .06);
    transform: translateY(-1px);
}

.word-cloud-more__label {
    font-size: .92rem;
    font-weight: 800;
    color: var(--primary-dark, #0e7490);
}

.word-cloud-more__count {
    font-size: .78rem;
    color: var(--ink-soft);
}

.word-cloud-panel.is-expanded .word-cloud-more__label::before {
    content: none;
}

.word-cloud-panel.is-expanded .word-cloud-more {
    margin-top: 22px;
}

@media (max-width: 640px) {
    .word-cloud {
        gap: 5px 6px;
        padding-inline: 0;
    }
    .word-cloud a {
        padding: 5px 8px;
        white-space: normal;
        text-align: center;
        line-height: 1.35;
        word-break: break-word;
    }
    .word-cloud a.w10 { font-size: 1.05rem; }
    .word-cloud a.w8 { font-size: .92rem; }
    .word-cloud a.w5 { font-size: .84rem; }
    .word-cloud a.w2 { font-size: .76rem; }
    .word-cloud a.w1 { font-size: .72rem; }
    .word-cloud-more {
        margin-top: 14px;
        padding: 14px 16px;
        min-height: 52px;
    }
}

/* موبایل: واژه‌های بیشتر زیر دکمه، داخل باکس اسکرول — بدون پرش صفحه */
@media (max-width: 960px) {
    .word-cloud-panel.is-expanded .word-cloud--extra {
        max-height: min(55vh, 400px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: 8px;
        margin-top: 12px;
        mask-image: linear-gradient(180deg, #000 88%, transparent);
    }

    .word-cloud-more {
        position: relative;
        z-index: 2;
        scroll-margin: 0;
    }
}

/* ── Mobile sticky CTA ── */

.mobile-sticky-cta {
    display: none;
}

@media (max-width: 960px) {
    body {
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-sticky-cta {
        display: grid !important;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, .85fr);
        gap: 8px;
        position: fixed;
        z-index: 1200;
        inset-inline: 0;
        bottom: 0;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        margin: 0;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, .97);
        backdrop-filter: blur(18px) saturate(1.4);
        -webkit-backdrop-filter: blur(18px) saturate(1.4);
        border-top: 1px solid var(--line);
        box-shadow: 0 -10px 32px rgba(15, 23, 42, .1);
    }

    .mobile-sticky-cta__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 0;
        min-height: 50px;
        padding: 11px 10px;
        border-radius: 14px;
        text-decoration: none;
        color: #fff !important;
        font-size: .8rem;
        font-weight: 800;
        line-height: 1.25;
        text-align: center;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        box-sizing: border-box;
    }

    .mobile-sticky-cta__btn span {
        min-width: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .mobile-sticky-cta__btn svg {
        flex-shrink: 0;
    }

    .mobile-sticky-cta__btn--search {
        background: linear-gradient(135deg, #0891b2, #06b6d4);
        box-shadow: 0 6px 18px rgba(8, 145, 178, .28);
    }

    .mobile-sticky-cta__btn--mag {
        background: linear-gradient(135deg, #db2777, #e11d48);
        box-shadow: 0 6px 18px rgba(219, 39, 119, .28);
    }

    .back-to-top {
        bottom: calc(84px + env(safe-area-inset-bottom, 0px));
        z-index: 1190;
    }
}

/* ── Contact ── */

.contact-section {
    padding-bottom: 80px;
}

.contact-simple {
    display: block;
    max-width: 860px;
    margin-inline: auto;
}

.contact-lead {
    margin: 0 auto 28px;
    max-width: 540px;
    font-size: .94rem;
    color: var(--ink-soft);
    text-align: center;
    line-height: 1.9;
}

.contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 26px 22px 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.9));
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    text-decoration: none;
    box-shadow: var(--shadow-xs);
    transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 20%;
    left: 20%;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, #0891b2, #7c3aed);
    opacity: .85;
}

.contact-link:nth-child(2)::before { background: linear-gradient(90deg, #7c3aed, #db2777); }
.contact-link:nth-child(3)::before { background: linear-gradient(90deg, #0e7490, #0891b2); }
.contact-link:nth-child(4)::before { background: linear-gradient(90deg, #7c3aed, #0891b2); }

.contact-link:hover {
    border-color: rgba(8,145,178,.28);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-link-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #ecfeff, #e0e7ff);
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.contact-link-icon svg { width: 22px; height: 22px; }

.contact-link strong {
    display: block;
    font-size: .72rem;
    color: var(--ink-muted);
    font-weight: 700;
    letter-spacing: .06em;
}

.contact-link > span:last-child {
    font-size: .92rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.65;
}

.contact-link--static { cursor: default; }
.contact-link--static:hover {
    transform: none;
    box-shadow: var(--shadow-xs);
    border-color: var(--line);
}

.contact-visit-note {
    margin: 18px auto 0;
    max-width: 640px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fffbeb, #fef9c3);
    border: 1px solid rgba(251, 191, 36, .28);
    border-radius: var(--radius-sm);
    font-size: .84rem;
    font-weight: 700;
    color: #92400e;
    line-height: 1.75;
    text-align: center;
}

/* ── Footer ── */

.site-footer {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 48px 0 32px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; right: 10%; left: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(8,145,178,.4), rgba(124,58,237,.4), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
}

.footer-brand strong { display: block; color: var(--ink); font-size: .92rem; margin-bottom: 10px; }
.footer-brand p { margin: 0; font-size: .82rem; color: var(--ink-soft); line-height: 1.85; }

.footer-col h4 {
    margin: 0 0 14px;
    font-size: .78rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: .04em;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; font-size: .84rem; color: var(--ink-soft); transition: color .2s; }
.footer-links a:hover { color: var(--primary-dark); }

.footer-bottom {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: .76rem;
    color: var(--ink-muted);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

/* ── Reveal ── */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* ── Masthead viewport (desktop) ── */

@media (min-width: 961px) {
    .masthead {
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-bottom: 0;
    }

    .masthead-inner {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-height: none;
        padding: 16px 0 14px;
        min-height: 0;
    }

    .masthead-grid {
        flex: 0 0 auto;
        min-height: 0;
        max-height: none;
        align-items: stretch;
        gap: 12px;
    }

    .masthead-main,
    .masthead-aside {
        height: auto;
        max-height: none;
    }

    .masthead-hero-card,
    .masthead-panel {
        height: 100%;
        max-height: none;
    }

    .masthead-aside.masthead-panel {
        justify-content: flex-start;
        overflow: visible;
    }

    .masthead-aside .quick-search {
        flex: 0 0 auto;
        min-height: 0;
        overflow: visible;
    }

    .masthead-aside .hero-slider {
        margin-top: 0;
        flex: 0 0 auto;
    }

    .masthead-hero-content {
        padding: 16px 18px 14px;
        min-height: 0;
        overflow: visible;
    }

    .masthead-hero-head { margin-bottom: 8px; }

    .masthead-title { margin-bottom: 6px; }

    .masthead-title-accent {
        font-size: clamp(1.35rem, .95rem + 1.2vw, 1.9rem);
    }

    .masthead-title-sub {
        font-size: clamp(.95rem, .8rem + .5vw, 1.2rem);
    }

    .masthead-lead {
        font-size: .78rem;
        line-height: 1.5;
        padding: 5px 8px 5px 0;
        -webkit-line-clamp: 2;
    }

    .masthead-stats {
        margin-top: 8px;
        padding-top: 0;
        gap: 5px;
    }

    .masthead-stat {
        padding: 6px 8px;
    }

    .masthead-stat-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .masthead-stat-icon svg { width: 14px; height: 14px; }

    .masthead-actions {
        margin-top: auto;
        padding-top: 8px;
        gap: 6px;
    }

    .masthead-btn {
        padding: 7px 12px;
        font-size: .76rem;
    }

    .masthead-panel {
        padding: 8px;
    }

    .panel-eyebrow {
        margin-bottom: 0;
        font-size: .58rem;
    }

    .quick-search-stat {
        margin-bottom: 0;
        padding: 3px 8px;
    }

    .quick-search-stat strong { font-size: .88rem; }

    .quick-search-stat span { font-size: .58rem; }

    .quick-search {
        padding: 7px;
        margin-bottom: 0;
    }

    .quick-search-label {
        margin-bottom: 4px;
        font-size: .7rem;
    }

    .quick-search-row input {
        padding: 6px 10px;
        font-size: .76rem;
    }

    .quick-search-btn {
        padding: 0 10px;
        font-size: .72rem;
    }

    .quick-year-range {
        margin-top: 4px;
        padding: 5px 7px 3px;
    }

    .quick-year-range .year-chart-head { margin-bottom: 14px; }

    .quick-year-range .year-chart-label {
        display: none;
    }

    .quick-year-range .year-chart-bars { height: 12px; }

    .quick-year-range .year-chart-track {
        height: 12px;
        margin-top: -4px;
    }
}

@media (min-width: 961px) and (max-height: 820px) {
    .masthead-inner { padding: 10px 0 8px; }

    .masthead-grid { gap: 10px; }

    .masthead-hero-content { padding: 12px 14px 10px; }

    .masthead-hero-mark {
        width: 34px;
        height: 34px;
        inset-inline-end: 12px;
        inset-inline-start: auto;
        bottom: 12px;
        top: auto;
    }

    .masthead-title-accent { font-size: 1.35rem; }

    .masthead-title-sub { font-size: .95rem; }

    .masthead-lead { -webkit-line-clamp: 2; font-size: .74rem; }

    .masthead-stats { margin-top: 6px; }

    .masthead-stat { padding: 4px 7px; }

    .masthead-stat-icon {
        width: 24px;
        height: 24px;
    }

    .masthead-actions { margin-top: 8px; }

    .masthead-btn { padding: 5px 10px; font-size: .72rem; }

    .masthead-panel { padding: 8px; }

    .quick-search { padding: 6px; }

    .quick-year-range .year-chart-bars { height: 12px; }
}

/* ── Responsive ── */

@media (max-width: 960px) {
    .masthead { min-height: auto; display: block; }
    .masthead-inner { max-height: none; flex: none; display: block; width: 100%; max-width: 100%; }
    .masthead-grid { max-height: none; flex: none; grid-template-columns: minmax(0, 1fr); width: 100%; }
    .masthead-main,
    .masthead-aside,
    .masthead-hero-card,
    .quick-search { flex: none; min-height: auto; min-width: 0; max-width: 100%; }
    .masthead-aside { order: -1; width: 100%; }
    .masthead-panel {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .masthead-hero-content { padding: 28px 24px 26px; }
    .masthead-hero-mark {
        width: 44px;
        height: 44px;
        inset-inline-end: 16px;
        inset-inline-start: auto;
        bottom: 16px;
        top: auto;
    }
    .masthead-stats { grid-template-columns: 1fr 1fr; }
    .panel-section { margin: 0 10px; max-width: calc(100% - 20px); }
    .topics-section.section { margin: 24px 10px; max-width: calc(100% - 20px); }
    .recent-searches-section.section { margin: 0 10px 16px; max-width: calc(100% - 20px); }
    .keywords-section.section { margin: 0 10px 24px; max-width: calc(100% - 20px); }
    .research-hub { margin: 0 10px 20px; max-width: calc(100% - 20px); }
    .intro-grid, .research-layout, .topic-panel, .context-grid { grid-template-columns: minmax(0, 1fr); }
    .mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wrap { width: min(1160px, calc(100% - 24px)); }
}

@media (max-width: 640px) {
    .quick-search-btn span { display: none; }
    .quick-search-btn { padding: 0 14px; flex-shrink: 0; }
    .nav-inner {
        width: min(1160px, calc(100% - 20px));
        max-width: 100%;
        gap: 10px;
    }
    .nav-brand { min-width: 0; flex: 1; }
    .nav-brand-text { min-width: 0; }
    .nav-brand-text span { display: none; }
    .nav-brand-text strong {
        font-size: .78rem;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        align-items: stretch;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line);
        padding: 12px 16px 20px;
        box-shadow: var(--shadow-md);
        z-index: 120;
        max-height: min(70vh, calc(100dvh - var(--nav-h) - 80px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
    .nav-links.is-open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 14px;
        box-sizing: border-box;
    }
    .nav-links li:has(.nav-cta) {
        margin-inline-end: 0;
        margin-bottom: 6px;
    }
    .nav-toggle {
        display: block;
        flex-shrink: 0;
        min-width: 44px;
        min-height: 44px;
    }
    .mag-grid { grid-template-columns: minmax(0, 1fr); }
    .source-list { grid-template-columns: minmax(0, 1fr); }
    .contact-links { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .section { padding: 56px 0; }
    .masthead-meta span { font-size: .72rem; }
    .masthead-panel { padding: 12px; }
    .masthead-stats { grid-template-columns: minmax(0, 1fr); }
    .masthead-actions { flex-direction: column; }
    .masthead-btn { width: 100%; }
    .masthead-hero-head { flex-direction: column; align-items: flex-start; }
    .masthead-hero-content { padding: 22px 16px 20px; }
    .masthead-en { max-width: 100%; letter-spacing: .06em; }
    .panel-top {
        flex-direction: column;
        align-items: stretch;
    }
    .panel-eyebrow {
        white-space: normal;
        flex-shrink: 1;
        line-height: 1.5;
    }
    .quick-search-stat {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex-wrap: wrap;
        justify-content: center;
    }
    .quick-search-stat span {
        white-space: normal;
    }
    .quick-search-row {
        width: 100%;
        max-width: 100%;
    }
    .quick-year-range {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .quick-year-range .year-chart-head {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-bottom: 10px;
    }
    .quick-year-range .year-chart-presets {
        margin-inline-start: 0;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
    .quick-year-range .year-chart-presets button {
        width: 100%;
        text-align: center;
        padding: 8px 6px;
    }
    .quick-year-range .year-chart-plot {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    .hero-slider,
    .sample-result {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .wrap { width: min(1160px, calc(100% - 20px)); }

    body.nav-is-open {
        overflow: hidden;
    }

    .back-to-top {
        inset-inline-end: 14px;
        width: 44px;
        height: 44px;
    }

    .site-footer {
        padding-bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mag-grid.reveal.is-visible .mag-col { animation: none; }
    .mag-status--live::before { animation: none; }
}
