/* ============================================================
   PartyTrends — South Africa's Event Industry Intelligence
   ============================================================ */

:root {
    --navy: #16213e;
    --navy-2: #1f2d52;
    --ink: #1a2238;
    --cyan: #1ba0c4;
    --magenta: #c2208c;
    --gold: #d4a017;
    --green: #3da935;
    --purple: #7c4da0;

    --bg: #f6f8fc;
    --bg-card: #ffffff;
    --line: #e6ebf3;
    --muted: #5a6781;
    --text: #1f2740;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 18px 48px -24px rgba(22, 33, 62, 0.28);
    --shadow-sm: 0 8px 24px -16px rgba(22, 33, 62, 0.3);
    --maxw: 85%;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Sora', 'Manrope', sans-serif; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }

a { color: var(--cyan); text-decoration: none; }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
    padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; width: 85%; margin: 0 auto;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 16px; max-width: none; padding: 0 24px; }
.brand-logo { height: 56px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
    color: var(--navy); font-weight: 600; font-size: .94rem; padding: 8px 13px;
    border-radius: 9px; transition: background .2s, color .2s; position: relative;
}
.site-nav a:not(.nav-cta):hover { background: var(--bg); }
.site-nav a.active { color: var(--cyan); }
.site-nav a.active::after {
    content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta)); border-radius: 2px;
}
.nav-cta {
    margin-left: 8px; background: var(--navy); color: #fff !important; padding: 9px 18px !important;
    border-radius: 999px !important; font-weight: 700; transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -10px rgba(22, 33, 62, .6);
    background: var(--navy-2);
    color: #fff !important;
}
.nav-cta::after { display: none; }

/* dropdown */
.nav-item { position: relative; }
.nav-parent { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-parent .caret { transition: transform .25s var(--ease); opacity: .7; }
.has-dropdown:hover .nav-parent .caret,
.has-dropdown:focus-within .nav-parent .caret { transform: rotate(180deg); }
.dropdown {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
    min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; gap: 2px;
    opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease); z-index: 120;
}
.dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
    padding: 10px 14px !important; border-radius: 9px; font-size: .9rem; white-space: nowrap; color: var(--navy);
}
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--bg); color: var(--cyan); }
.dropdown a.active { background: var(--bg); color: var(--cyan); }

/* ---- Mega dropdown (grouped, multi-column) ---- */
.dropdown-mega {
    display: grid; grid-template-columns: repeat(3, minmax(176px, 1fr));
    gap: 6px 14px; padding: 16px; min-width: 0; width: max-content; max-width: min(94vw, 720px);
    left: 0; transform: translateX(0) translateY(8px);
}
.has-dropdown:hover .dropdown-mega,
.has-dropdown:focus-within .dropdown-mega { transform: translateX(0) translateY(0); }
.dropdown-group { display: flex; flex-direction: column; gap: 1px; }
.dropdown-group-label {
    font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    color: var(--cyan); padding: 4px 14px 6px; margin-top: 2px;
}
.dropdown-mega a { padding: 7px 14px !important; font-size: .86rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem;
    padding: 13px 26px; border-radius: 999px; cursor: pointer; border: 0; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-primary { background: linear-gradient(120deg, var(--cyan), var(--purple)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(124, 77, 160, .7); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); background: var(--navy-2); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(1200px 600px at 80% -10%, #2a3a6b 0%, transparent 60%),
                radial-gradient(900px 500px at 0% 110%, #3a2456 0%, transparent 55%),
                linear-gradient(135deg, #131d36 0%, #16213e 55%, #101a30 100%);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 46px 46px; mask-image: radial-gradient(900px 500px at 70% 20%, #000 0%, transparent 75%);
}
.hero-inner { position: relative; padding: 96px 0 110px; }
.hero h1 { max-width: 16ch; }
.hero .eyebrow, .hero p.lead, .hero-actions, .hero-chips { position: relative; z-index: 2; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px; font-size: .8rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: #bcd6ff;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
    padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(61,169,53,.25); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4rem); margin-bottom: 22px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--cyan), var(--magenta) 55%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #cdd7ee; max-width: 660px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.hero-chips span {
    font-size: .82rem; font-weight: 600; color: #d7e1f6; background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14); padding: 7px 14px; border-radius: 999px;
}

/* floating mini bars decoration */
.hero-bars { position: absolute; right: -40px; bottom: 0; display: flex; align-items: flex-end; gap: 14px; height: 78%; opacity: .9; pointer-events: none; }
.hero-bars i { width: 34px; border-radius: 8px 8px 0 0; display: block; animation: growBar 1.1s var(--ease) backwards; }
.hero-bars i:nth-child(1) { height: 30%; background: var(--cyan); animation-delay: .1s; }
.hero-bars i:nth-child(2) { height: 48%; background: var(--magenta); animation-delay: .2s; }
.hero-bars i:nth-child(3) { height: 64%; background: var(--gold); animation-delay: .3s; }
.hero-bars i:nth-child(4) { height: 82%; background: var(--green); animation-delay: .4s; }
.hero-bars i:nth-child(5) { height: 100%; background: var(--purple); animation-delay: .5s; }
@keyframes growBar { from { height: 0; opacity: 0; } }

/* ---------- KPI strip ---------- */
.kpi-strip { margin-top: -56px; position: relative; z-index: 5; }
.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.kpi {
    background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 20px 18px; box-shadow: var(--shadow); border-top: 3px solid var(--cyan);
}
.kpi .v { font-family: 'Sora'; font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.kpi .l { font-size: .82rem; color: var(--muted); font-weight: 600; }
.kpi[data-accent="cyan"] { border-top-color: var(--cyan); }
.kpi[data-accent="magenta"] { border-top-color: var(--magenta); }
.kpi[data-accent="gold"] { border-top-color: var(--gold); }
.kpi[data-accent="green"] { border-top-color: var(--green); }
.kpi[data-accent="purple"] { border-top-color: var(--purple); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.section-tag { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 12px 0; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* feature grid (what we measure) */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
    background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; transition: transform .25s var(--ease), box-shadow .25s; box-shadow: var(--shadow-sm);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; font-size: 1.4rem; }
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }

.acc-cyan { background: rgba(27,160,196,.12); color: var(--cyan); }
.acc-magenta { background: rgba(194,32,140,.12); color: var(--magenta); }
.acc-gold { background: rgba(212,160,23,.14); color: var(--gold); }
.acc-green { background: rgba(61,169,53,.12); color: var(--green); }
.acc-purple { background: rgba(124,77,160,.12); color: var(--purple); }

/* ---------- Stats feed (infinite scroll) ---------- */
.stats-section { background: linear-gradient(180deg, #eef2f9 0%, var(--bg) 100%); }
.stats-toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.chip-filter {
    font-size: .85rem; font-weight: 700; color: var(--navy); background: var(--bg-card);
    border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: .2s;
}
.chip-filter:hover { border-color: var(--cyan); }
.chip-filter.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.chart-feed { display: flex; align-items: flex-start; gap: 22px; }
.chart-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.chart-card {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
    opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .25s;
    border-top: 4px solid var(--cyan);
}
.chart-card.in { opacity: 1; transform: none; }
.chart-card:hover { box-shadow: var(--shadow); }
.chart-card[data-accent="cyan"] { border-top-color: var(--cyan); }
.chart-card[data-accent="magenta"] { border-top-color: var(--magenta); }
.chart-card[data-accent="gold"] { border-top-color: var(--gold); }
.chart-card[data-accent="green"] { border-top-color: var(--green); }
.chart-card[data-accent="purple"] { border-top-color: var(--purple); }
.chart-card .c-tag { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chart-card h3 { font-size: 1.15rem; margin: 6px 0 3px; }
.chart-card .c-insight { font-size: .95rem; font-weight: 700; color: var(--navy); margin: 8px 0 6px; line-height: 1.45; }
.chart-card .c-sub { font-size: .85rem; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.chart-wrap { position: relative; width: 100%; }
.chart-wrap canvas { width: 100% !important; }

/* ---- per-chart footer: research backlink + embed ---- */
.c-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
}
.c-credit { font-size: .74rem; font-weight: 700; color: var(--cyan); text-decoration: none; line-height: 1.3; }
.c-credit:hover { text-decoration: underline; }
.c-embed {
    flex: none; cursor: pointer; font-size: .72rem; font-weight: 700; color: var(--muted);
    background: var(--bg, #f4f6fb); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px;
    transition: background .2s, color .2s, border-color .2s;
}
.c-embed:hover { color: var(--cyan); border-color: var(--cyan); background: #fff; }
.c-embed span { font-family: ui-monospace, Menlo, Consolas, monospace; opacity: .8; }

/* ---- embed modal ---- */
.pt-embed-overlay {
    position: fixed; inset: 0; z-index: 2000; background: rgba(13, 20, 38, .58);
    display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(2px);
}
.pt-embed-overlay[hidden] { display: none; }
.pt-embed-modal {
    position: relative; width: 100%; max-width: 580px; max-height: 88vh; overflow: auto;
    background: #fff; border-radius: 16px; padding: 26px 26px 22px; box-shadow: 0 24px 60px rgba(13, 20, 38, .35);
}
.pt-embed-x {
    position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 1.7rem; line-height: 1;
    color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
.pt-embed-x:hover { background: var(--line); color: var(--navy); }
.pt-embed-title { font-size: 1.15rem; margin: 0 28px 4px 0; color: var(--navy); }
.pt-embed-sub { font-size: .86rem; color: var(--muted); margin: 0 0 16px; line-height: 1.5; }
.pt-embed-tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.pt-embed-tabs button {
    border: 0; background: none; cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--muted);
    padding: 8px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.pt-embed-tabs button.active { color: var(--cyan); border-bottom-color: var(--cyan); }
.pt-embed-lbl { display: block; font-size: .8rem; font-weight: 700; color: var(--navy); margin: 12px 0 6px; }
.pt-embed-code { position: relative; }
.pt-embed-code textarea {
    width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .78rem; line-height: 1.5;
    color: #1c2a4a; background: #f6f8fc; border: 1px solid var(--line); border-radius: 10px;
    padding: 12px 12px; resize: vertical; white-space: pre;
}
.pt-embed-copy {
    position: absolute; top: 8px; right: 8px; cursor: pointer; font-size: .72rem; font-weight: 700;
    color: #fff; background: var(--cyan); border: 0; border-radius: 7px; padding: 5px 11px;
}
.pt-embed-copy:hover { background: #1689a8; }
.pt-embed-hint { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }
.pt-embed-note {
    font-size: .76rem; color: var(--muted); margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); line-height: 1.5;
}

/* ============================================================
   SEO silo pages: chart.php + topics.php
   ============================================================ */
[data-accent="cyan"]    { --acc: var(--cyan); }
[data-accent="magenta"] { --acc: var(--magenta); }
[data-accent="gold"]    { --acc: var(--gold); }
[data-accent="green"]   { --acc: var(--green); }
[data-accent="purple"]  { --acc: var(--purple); }

/* Breadcrumbs */
.crumbs { font-size: .82rem; color: var(--muted); margin: 22px 0 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--cyan); font-weight: 600; }
.crumbs span[aria-hidden] { color: #b6bfd0; }
.crumbs .here { color: var(--navy); font-weight: 700; }

/* Topic nav strip on the homepage */
.topic-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 22px; }
.topic-nav-label { font-size: .82rem; font-weight: 700; color: var(--muted); margin-right: 4px; }
.topic-nav a {
    font-size: .82rem; font-weight: 700; color: var(--navy); background: #fff;
    border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; transition: border-color .2s, color .2s;
}
.topic-nav a:hover { border-color: var(--acc, var(--cyan)); color: var(--acc, var(--cyan)); }
.topic-nav a em { font-style: normal; color: var(--muted); font-weight: 600; margin-left: 3px; }
.topic-nav-all { background: var(--navy) !important; color: #fff !important; border-color: var(--navy) !important; }

/* Single chart page */
.chart-page { padding: 14px 0 50px; }
.chart-detail {
    background: var(--bg-card, #fff); border: 1px solid var(--line); border-top: 4px solid var(--acc, var(--cyan));
    border-radius: 16px; padding: 26px 26px 22px; box-shadow: var(--shadow, 0 6px 24px rgba(22,33,62,.06)); max-width: 760px;
}
.chart-detail .c-tag { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chart-detail h1 { font-size: 1.6rem; line-height: 1.2; margin: 6px 0 10px; color: var(--navy); }
.chart-detail .lead-insight { font-size: 1.02rem; font-weight: 700; color: var(--navy); line-height: 1.5; margin: 0 0 6px; }
.chart-detail .lead-what { font-size: .92rem; color: var(--muted); line-height: 1.55; margin: 0 0 16px; }
.chart-detail .chart-wrap { margin-top: 8px; }

.chart-embed-block { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.ceb-head strong { display: block; color: var(--navy); font-size: .95rem; }
.ceb-head span { font-size: .8rem; color: var(--muted); }
.ceb-code { position: relative; margin: 10px 0; }
.ceb-code textarea {
    width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .76rem; line-height: 1.5;
    color: #1c2a4a; background: #f6f8fc; border: 1px solid var(--line); border-radius: 10px; padding: 11px; resize: vertical; white-space: pre;
}
.ceb-code button {
    position: absolute; top: 7px; right: 7px; cursor: pointer; font-size: .72rem; font-weight: 700;
    color: #fff; background: var(--cyan); border: 0; border-radius: 7px; padding: 5px 11px;
}
.chart-embed-block .c-credit { font-size: .8rem; font-weight: 700; color: var(--cyan); }

/* Related + cross-silo */
.related-charts, .other-topics, .topic-hub .hub-list, .topic-index-extra { margin-top: 40px; }
.related-charts .section-head, .topic-index .section-head { text-align: left; margin-bottom: 14px; }
.related-grid, .hub-list {
    list-style: none; padding: 0; margin: 0; display: grid; gap: 8px 22px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.related-grid li, .hub-list li { border-bottom: 1px dashed var(--line); padding: 7px 0; }
.related-grid a, .hub-list a { color: var(--navy); font-weight: 600; font-size: .9rem; line-height: 1.4; }
.related-grid a:hover, .hub-list a:hover { color: var(--cyan); }

.other-topics h2, .topic-index-extra h2 { font-size: 1.15rem; color: var(--navy); margin: 0 0 12px; }
.topic-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.topic-pills a {
    display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--navy);
    background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--acc, var(--cyan));
    border-radius: 10px; padding: 9px 14px;
}
.topic-pills a:hover { border-color: var(--acc, var(--cyan)); }
.topic-pills a em { font-style: normal; color: var(--muted); font-weight: 600; }

/* Silo hub header */
.topic-hub { padding: 14px 0 50px; }
.hub-head { max-width: 720px; margin-bottom: 26px; }
.hub-head .hub-ico { font-size: 2rem; }
.hub-head h1 { font-size: 1.9rem; color: var(--navy); margin: 6px 0 8px; }
.hub-head .hub-blurb { font-size: 1rem; color: var(--muted); line-height: 1.6; }
.hub-head .hub-count { font-size: .9rem; color: var(--navy); margin-top: 10px; }

/* Topic index cards */
.topic-index { padding: 14px 0 50px; }
.topic-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 8px; }
.topic-card {
    display: block; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--acc, var(--cyan));
    border-radius: 16px; padding: 22px; box-shadow: var(--shadow, 0 6px 24px rgba(22,33,62,.06)); transition: transform .15s, box-shadow .2s;
}
.topic-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(22,33,62,.12); }
.topic-card .tc-ico { font-size: 1.8rem; }
.topic-card h2 { font-size: 1.2rem; color: var(--navy); margin: 8px 0 8px; }
.topic-card p { font-size: .88rem; color: var(--muted); line-height: 1.55; margin: 0 0 12px; }
.topic-card .tc-count { font-size: .82rem; font-weight: 800; color: var(--acc, var(--cyan)); }
.chart-card h3 { font-size: 1.05rem; line-height: 1.3; margin: 4px 0 8px; }
.chart-card h3 a { color: var(--navy); text-decoration: none; }
.chart-card h3 a:hover { color: var(--cyan); text-decoration: underline; }
.chart-full-link { font-size: .88rem; margin: -4px 0 10px; }
.chart-full-link a { font-weight: 700; color: var(--cyan); }
.chart-detail h1 a { color: inherit; text-decoration: none; }
.chart-detail h1 a:hover { color: var(--cyan); }
.hub-list .hub-sub { font-size: .72rem; margin-left: 6px; }
.hub-list .hub-sub a { color: var(--muted); font-weight: 500; }

/* ============================================================
   Viral article landing pages (article.php)
   ============================================================ */
.article-page { padding: 10px 0 60px; }
/* Single-column reading flow — sidebar sits below the article so blocks use full width. */
.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}
.article-page .crumbs { grid-column: 1; }
.article-main {
    grid-column: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.article-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0;
}
.art-sec { width: 100%; }
.article-sidebar {
    grid-column: 1;
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding-top: 28px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
}
.article-sidebar .sidebar-box { margin: 0; }

/* Uniform vertical rhythm — flex gap instead of stacked margins. */
.article-main > .article-hero,
.article-main > .article-chart,
.article-main > .stat-strip,
.article-main > .ab-highlights,
.article-main > .ab-method,
.article-main > .article-body,
.article-main > .article-poll,
.article-main > .external-research,
.article-main > .supporting-charts,
.article-main > .chart-embed-block,
.article-main > .article-author-box,
.article-main .ab-callout,
.article-main .ab-cards,
.article-main .ab-table-wrap,
.article-main .ab-compare,
.article-main .ab-icon-list,
.article-main .ab-quote,
.article-main .ab-bar-row,
.article-main .ab-timeline,
.article-main .ab-forecast,
.article-main .ab-retail {
    margin: 0;
}

.article-hero { border-left: 4px solid var(--acc, var(--cyan)); padding-left: 18px; }
.article-hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; color: var(--navy); margin: 6px 0 10px; }
.share-hook { font-size: 1.15rem; font-weight: 800; color: var(--magenta); line-height: 1.35; margin: 0 0 10px; }
.article-deck { font-size: 1rem; color: var(--navy); line-height: 1.55; margin: 0; }

.article-chart { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.article-chart figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.sup-chart h3 { font-size: 1rem; margin: 0 0 6px; }
.sup-chart h3 a { color: var(--navy); }
.sup-insight { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }

.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    align-items: start;
}
.stat-box {
    background: #f6f8fc;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    min-height: 0;
}
.stat-icon { display: block; font-size: 1.2rem; margin-bottom: 4px; }
.stat-val { display: block; font-size: 1.1rem; font-weight: 800; color: var(--navy); line-height: 1.25; }
.stat-lbl { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }

/* Article rich blocks (v4) */
.ab-highlights { display: flex; flex-wrap: wrap; gap: 10px; }
.ab-highlight {
    flex: 1 1 200px; display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, #fff8e6, #fff); border: 1px solid #f0d78c;
    border-radius: 12px; padding: 12px 14px; font-size: .92rem; font-weight: 700; color: var(--navy);
}
.ab-hl-icon { font-size: 1.3rem; flex: none; }

.ab-method {
    background: #f0f7ff; border: 1px solid #c8ddf5; border-left: 4px solid var(--cyan);
    border-radius: 12px; padding: 16px 18px;
}
.ab-method-head { font-weight: 800; color: var(--navy); margin-bottom: 10px; font-size: .95rem; }
.ab-method ul { margin: 0; padding-left: 1.2rem; }
.ab-method li { font-size: .88rem; line-height: 1.55; color: #2a3550; margin-bottom: 4px; }

.ab-callout {
    display: flex; gap: 14px; align-items: flex-start;
    border-radius: 12px; padding: 16px 18px;
    border: 1px solid var(--line);
}
.ab-callout .ab-icon { font-size: 1.5rem; flex: none; line-height: 1; }
.ab-callout-title { display: block; font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.ab-callout-body { font-size: .94rem; line-height: 1.6; color: #2a3550; }
.ab-tone-gold { background: #fffbf0; border-color: #f0d78c; }
.ab-tone-cyan { background: #f0faff; border-color: #a8e4f5; }
.ab-tone-magenta { background: #fff0f8; border-color: #f5b8dc; }
.ab-tone-green { background: #f0fff4; border-color: #a8e4bc; }
.ab-tone-purple { background: #f8f0ff; border-color: #d4b8f5; }

.ab-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.ab-card {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 14px; text-align: center; box-shadow: 0 2px 8px rgba(19,29,54,.04);
}
.ab-card-icon { font-size: 1.4rem; display: block; margin-bottom: 6px; }
.ab-card-stat { font-size: 1.35rem; font-weight: 800; color: var(--magenta); line-height: 1.1; }
.ab-card-title { font-size: .82rem; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .03em; margin: 4px 0; }
.ab-card-body { font-size: .78rem; color: var(--muted); line-height: 1.4; }

.ab-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.ab-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ab-table caption { caption-side: top; text-align: left; padding: 10px 14px; font-weight: 700; color: var(--navy); background: #f6f8fc; }
.ab-table th, .ab-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.ab-table th { background: #f6f8fc; font-weight: 800; color: var(--navy); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.ab-table tbody tr:last-child td { border-bottom: 0; }
.ab-table tbody tr:nth-child(even) { background: #fafbfd; }

.ab-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .ab-compare { grid-template-columns: 1fr; } }
.ab-compare-side {
    background: #fff; border: 2px solid var(--line); border-radius: 14px;
    padding: 18px; text-align: center;
}
.ab-compare-val { font-size: 1.8rem; font-weight: 800; color: var(--magenta); line-height: 1.1; }
.ab-compare-label { font-size: .95rem; font-weight: 800; color: var(--navy); margin-top: 6px; }
.ab-compare-note { font-size: .82rem; color: var(--muted); margin-top: 4px; }

.ab-icon-list { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ab-icon-list-title { font-weight: 800; color: var(--navy); margin-bottom: 10px; font-size: .95rem; }
.ab-icon-list ul { list-style: none; padding: 0; margin: 0; }
.ab-icon-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; line-height: 1.5; }
.ab-icon-list li:last-child { border-bottom: 0; }
.ab-li-icon { flex: none; font-size: 1.1rem; }

.ab-quote {
    padding: 18px 22px; border-left: 4px solid var(--magenta);
    background: linear-gradient(90deg, #fdf0f8, #fff); border-radius: 0 12px 12px 0;
}
.ab-quote p { font-size: 1.05rem; font-weight: 700; font-style: italic; color: var(--navy); margin: 0; line-height: 1.45; }
.ab-quote footer { font-size: .78rem; color: var(--muted); margin-top: 8px; font-style: normal; }

.ab-bar-row { padding: 16px 18px; background: #f6f8fc; border-radius: 12px; border: 1px solid var(--line); width: 100%; }
.ab-bar-title { font-weight: 800; font-size: .88rem; color: var(--navy); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em; }
.ab-bar-item { display: grid; grid-template-columns: minmax(64px, 88px) 1fr minmax(48px, 64px); gap: 12px; align-items: center; margin-bottom: 8px; }
.ab-bar-label { font-size: .82rem; font-weight: 700; color: var(--navy); }
.ab-bar-track { height: 10px; background: #e4e9f2; border-radius: 999px; overflow: hidden; }
.ab-bar-fill { height: 100%; border-radius: 999px; }
.ab-bar-fill.ab-tone-gold { background: linear-gradient(90deg, #e8c547, #f5d76e); }
.ab-bar-fill.ab-tone-cyan { background: linear-gradient(90deg, #2ec4e8, #5dd4f5); }
.ab-bar-fill.ab-tone-magenta { background: linear-gradient(90deg, #e84393, #f062a8); }
.ab-bar-fill.ab-tone-green { background: linear-gradient(90deg, #2ecc71, #58d68d); }
.ab-bar-pct { font-size: .78rem; font-weight: 800; color: var(--muted); text-align: right; }

.ab-timeline { list-style: none; padding: 0 0 0 18px; margin: 0; border-left: 3px solid var(--cyan); }
.ab-timeline li { position: relative; padding: 0 0 16px 12px; }
.ab-timeline li::before {
    content: ""; position: absolute; left: -24px; top: 4px;
    width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); border: 2px solid #fff;
}
.ab-tl-when { display: block; font-size: .78rem; font-weight: 800; color: var(--cyan); text-transform: uppercase; letter-spacing: .04em; }
.ab-tl-text { font-size: .92rem; color: #2a3550; line-height: 1.5; }

.ab-forecast {
    display: flex; gap: 14px; padding: 18px;
    background: repeating-linear-gradient(-45deg, #f8f9fc, #f8f9fc 8px, #eef1f8 8px, #eef1f8 16px);
    border: 2px dashed var(--purple); border-radius: 14px;
}
.ab-forecast-val { font-size: 1.6rem; font-weight: 800; color: var(--purple); }
.ab-forecast-title { font-weight: 800; color: var(--navy); font-size: .9rem; }
.ab-forecast-detail { font-size: .88rem; color: #2a3550; margin-top: 4px; }
.ab-forecast-method { font-size: .75rem; color: var(--muted); margin-top: 6px; font-style: italic; }

.ab-retail {
    padding: 16px 18px; background: #fff;
    border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 4px 14px rgba(19,29,54,.05);
}
.ab-retail-head { font-weight: 800; color: var(--navy); margin-bottom: 12px; font-size: .95rem; }
.ab-retail-stores, .ab-retail-products { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ab-retail-tag { font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: #e8f4fc; color: var(--navy); }
.ab-retail-prod { font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: #fdf0f8; color: var(--magenta); }

.art-sec.role-pt_view, .art-sec.art-role-pt_view {
    background: linear-gradient(135deg, #fffbf0 0%, #fff 100%);
    border: 1px solid #f0d78c; border-radius: 14px; padding: 20px 22px;
}
.art-sec.art-role-pt_view h2 { border-bottom-color: #e8c547; color: #8a6914; }
.art-sec.art-role-pt_view h2::before { content: "📊 PartyTrends view · "; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #b8860b; }
.art-sec.art-role-market { border-left: 4px solid var(--cyan); padding-left: 18px; }
.art-sec.art-role-consumer { border-left: 4px solid var(--magenta); padding-left: 18px; }
.art-sec.art-role-retail { border-left: 4px solid var(--green); padding-left: 18px; background: #f0fff4; border-radius: 0 12px 12px 0; padding: 16px 18px 16px 22px; }
.art-sec.art-role-retail h2::before { content: "🛒 "; }

.art-sec {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    /* Override global `section { padding: 84px 0 }` — article sections use flex gap instead. */
    padding-top: 0;
    padding-bottom: 0;
}
.art-sec-prose {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.art-sec-prose p { margin: 0; }
.art-sec h2 { font-size: 1.2rem; color: var(--navy); margin: 0; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.art-sec p, .art-sec li { font-size: .98rem; line-height: 1.65; color: #2a3550; margin: 0; }
.art-sec ul { padding-left: 1.2rem; margin: 0; }
.debate-q { font-size: 1.1rem !important; font-weight: 800; color: var(--magenta) !important; font-style: italic; }

.article-poll { background: linear-gradient(135deg, #f0f7ff, #fdf0f8); border-radius: 14px; padding: 22px; }
.article-poll h3 { margin: 0 0 14px; color: var(--navy); }
.poll-options { display: flex; flex-wrap: wrap; gap: 8px; }
.poll-opt { cursor: default; font-size: .85rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); }
.poll-note { font-size: .78rem; color: var(--muted); margin: 12px 0 0; }

.external-research {
    padding: 24px 26px;
    background: linear-gradient(135deg, #f8fbff 0%, #f4f9f4 100%);
    border: 1px solid #c8d8e8; border-radius: 16px;
}
.external-research h2 { font-size: 1.35rem; color: var(--navy); margin: 0 0 8px; border: 0; }
.ext-research-intro { color: var(--muted); font-size: .92rem; margin: 0 0 18px; }
.ext-geo-badge {
    font-size: .88rem; color: var(--navy); background: #e8f4fc;
    border: 1px solid #b8d9ec; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px;
}
.ext-research-summary p { margin: 0 0 12px; }
.ext-research-findings {
    margin-top: 20px; padding: 18px 20px; background: #fff;
    border: 1px solid var(--line); border-radius: 12px;
}
.ext-research-findings h3 { margin-top: 0; }
.ext-research-findings p { margin: 0 0 12px; }
.ext-indicators h3, .ext-pt-take h3, .ext-references h3 {
    font-size: 1rem; color: var(--navy-2); margin: 22px 0 10px;
}
.ext-indicator-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ext-ind {
    display: grid; grid-template-columns: auto 1fr; gap: 4px 12px;
    padding: 12px 14px; background: #fff; border-radius: 10px; border: 1px solid var(--line);
}
.ext-ind-icon { grid-row: span 2; font-size: 1.2rem; align-self: center; }
.ext-ind-label { font-weight: 800; color: var(--navy); font-size: .92rem; }
.ext-ind-detail { grid-column: 2; font-size: .86rem; color: var(--muted); line-height: 1.45; }
.ext-ind-up { border-left: 4px solid var(--green); }
.ext-ind-down { border-left: 4px solid #e05555; }
.ext-ind-neutral { border-left: 4px solid var(--cyan); }
.ext-pt-take {
    margin-top: 8px; padding: 16px 18px; background: #fffbf0;
    border: 1px solid #f0d78c; border-radius: 12px;
}
.ext-ref-list { padding-left: 1.25rem; margin: 0; }
.ext-ref-list li { margin-bottom: 12px; font-size: .9rem; line-height: 1.5; }
.ext-ref-list a { color: var(--cyan); font-weight: 700; text-decoration: none; }
.ext-ref-list a:hover { text-decoration: underline; }
.ext-ref-src { color: var(--muted); font-size: .82rem; }
.ext-ref-note { display: block; font-size: .82rem; color: var(--muted); margin-top: 6px; padding-left: 0; }
.ext-research-meta { font-size: .75rem; color: var(--muted); margin: 18px 0 0; }

.supporting-charts { padding: 24px 0 0; border-top: 2px solid var(--line); }
.supporting-charts h2 { font-size: 1.35rem; color: var(--navy); }
.sec-intro { color: var(--muted); margin: -6px 0 18px; }

.sidebar-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.sidebar-box h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { border-bottom: 1px dashed var(--line); padding: 8px 0; }
.sidebar-box a { font-size: .86rem; font-weight: 600; color: var(--navy); line-height: 1.4; }
.article-byline { font-size: .88rem; color: var(--muted); margin: 0 0 8px; }
.article-byline strong { color: var(--navy); }
.article-author-box {
    display: flex; gap: 16px; padding: 20px;
    background: #f6f8fc; border: 1px solid var(--line); border-radius: 14px;
}
.author-avatar {
    flex: none; width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #fff; font-weight: 800; font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center;
}
.author-meta strong { display: block; font-size: 1rem; color: var(--navy); }
.author-title { font-size: .78rem; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: .04em; }
.author-meta p { font-size: .88rem; color: var(--muted); line-height: 1.55; margin: 8px 0 0; }

.feed-sentinel { height: 10px; }
.feed-loader { text-align: center; padding: 30px 0; color: var(--muted); font-weight: 600; }
.feed-loader .spinner {
    width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--cyan);
    border-radius: 50%; margin: 0 auto 12px; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Generic content pages ---------- */
.page-hero {
    color: #fff; padding: 78px 0 64px;
    background: radial-gradient(900px 500px at 85% -20%, #2a3a6b 0%, transparent 60%),
                linear-gradient(135deg, #131d36, #16213e);
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.page-hero p { color: #cdd7ee; max-width: 680px; font-size: 1.1rem; margin: 0; }

.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; padding-top: .3em; }
.prose h3 { font-size: 1.22rem; margin-top: 1.4em; color: var(--navy-2); }
.prose p { color: var(--text); }
.prose ul { padding-left: 0; list-style: none; margin: 1em 0; }
.prose ul li { position: relative; padding: 6px 0 6px 30px; color: var(--text); }
.prose ul li::before {
    content: ""; position: absolute; left: 4px; top: 15px; width: 9px; height: 9px; border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.lead-text { font-size: 1.2rem; color: var(--muted); }

.callout {
    background: var(--bg-card); border: 1px solid var(--line); border-left: 4px solid var(--gold);
    border-radius: var(--radius-sm); padding: 22px 26px; margin: 28px 0; box-shadow: var(--shadow-sm);
}
.callout strong { color: var(--navy); }

/* cards grid for awards/team/etc */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.info-card {
    background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s;
    border-top: 4px solid var(--purple);
}
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.info-card h3 { font-size: 1.2rem; }
.info-card .badge { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--purple); }
.info-card p { color: var(--muted); font-size: .95rem; }
.info-card ul { list-style: none; padding: 0; margin: 14px 0 0; }
.info-card ul li { font-size: .9rem; color: var(--text); padding: 4px 0 4px 22px; position: relative; }
.info-card ul li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

.tier-1 { border-top-color: var(--gold); }
.tier-1 .badge { color: var(--gold); }

/* simple stat row */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin: 36px 0; }
.stat-row .s { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-row .s .n { font-family: 'Sora'; font-size: 2rem; font-weight: 800; color: var(--navy); }
.stat-row .s .t { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* CTA band */
.cta-band {
    color: #fff; text-align: center; border-radius: var(--radius); padding: 54px 28px; margin: 0 auto;
    background: linear-gradient(120deg, var(--navy), var(--purple));
    box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6def3; max-width: 560px; margin: 0 auto 26px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c4cee4; padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-logo { height: 38px; background: #fff; padding: 8px 12px; border-radius: 10px; margin-bottom: 14px; }
.footer-brand p { color: #aab6d2; margin: 4px 0; font-size: .92rem; }
.footer-slogan { color: var(--cyan) !important; font-weight: 700; }
.footer-col h4 { color: #fff; font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col a { display: block; color: #aab6d2; padding: 5px 0; font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { font-size: .82rem; color: #8a98ba; margin: 0; }
.footer-note { max-width: 520px; }

/* back to top */
.to-top {
    position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
    border: 0; background: var(--navy); color: #fff; font-size: 1.2rem; cursor: pointer; opacity: 0;
    pointer-events: none; transform: translateY(12px); transition: .3s; box-shadow: var(--shadow); z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--purple); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .kpi-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .container { max-width: 92%; padding: 0 16px; }
    .site-header { width: 100%; }
    .header-inner { padding: 0 16px; }
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed; inset: 88px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
        padding: 14px 24px 24px; gap: 2px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        transform: translateY(-130%); transition: transform .35s var(--ease); max-height: calc(100vh - 88px); overflow: auto;
    }
    .site-nav.open { transform: none; }
    .site-nav a { padding: 13px 10px; }
    .nav-item.has-dropdown { display: block; }
    .nav-parent .caret { display: none; }
    .dropdown {
        position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
        border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 6px 10px;
        padding: 0 0 0 8px; min-width: 0;
    }
    .dropdown a { padding: 10px 10px !important; font-size: .88rem; }
    .dropdown-mega { display: block; width: auto; max-width: none; padding: 0 0 0 8px; }
    .dropdown-group { margin-bottom: 6px; }
    .dropdown-group-label { padding: 6px 10px 2px; }
    .dropdown-mega a { padding: 8px 10px !important; font-size: .86rem; }
    .nav-cta { margin: 8px 0 0; text-align: center; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-bars { display: none; }
    section { padding: 60px 0; }
    .hero-inner { padding: 70px 0 80px; }
}
