/* PrymeStudy Newsroom — public editorial stylesheet.
   The logo is the original PrymeStudy asset. No decorative animation,
   floating shapes, fake telemetry, marketing overlays or cookie banners. */
:root {
    --brand-blue: #001e90;
    --brand-cyan: #00d4ff;
    --ink: #172137;
    --muted: #58677d;
    --line: #e0e6ee;
    --surface: #ffffff;
    --subtle: #f6f8fb;
    --header-height: 80px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { width: 100%; max-width: 100%; overflow-x: clip; }
body {
    margin: 0;
    padding-top: var(--header-height);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
    background: var(--surface);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
main, section, footer, article, figure { min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 3px;
}
.skip-link {
    position: fixed;
    z-index: 1000;
    left: 16px;
    top: -70px;
    padding: 12px 18px;
    background: #fff;
    color: var(--brand-blue);
    border: 2px solid currentColor;
}
.skip-link:focus { top: 10px; }

/* The same fixed header stays visible on the homepage and articles.
   No 100vw widths or unrestricted flex items that produce horizontal scroll. */
.site-header {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    width: 100%;
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 30px);
    width: min(100%, 1440px);
    min-width: 0;
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
}
.brand-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    white-space: nowrap;
}
.brand-link img { display: block; width: 188px; height: auto; }
.brand-divider { height: 27px; width: 1px; background: #cfd7e3; }
.brand-section { font-size: 15px; font-weight: 720; letter-spacing: -.02em; }
.desktop-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.6vw, 26px);
}
.desktop-nav a {
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}
.desktop-nav a:hover, .topics-panel a:hover, .footer-links a:hover {
    color: var(--brand-blue);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    min-width: 0;
    gap: 13px;
}
.topics-dropdown { position: relative; }
.topics-dropdown summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    list-style: none;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
}
.topics-dropdown summary::-webkit-details-marker { display: none; }
.topics-dropdown svg, .icon-button svg, .search-close svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.topics-panel {
    position: absolute;
    top: calc(100% + 15px);
    right: -10px;
    width: 240px;
    max-width: calc(100vw - 24px);
    padding: 12px;
    display: grid;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgb(11 31 72 / 12%);
}
.topics-panel a {
    padding: 11px 10px;
    font-size: 13px;
    font-weight: 600;
}
.icon-button {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    color: var(--ink);
    border: none;
    border-radius: 50%;
    background: transparent;
}
.icon-button:hover { background: var(--subtle); }
.newsletter-button {
    padding: 13px 19px;
    border-radius: 9px;
    background: var(--brand-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}
.newsletter-button:hover { background: #082baf; }
.reading-context {
    display: none;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 850px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 650;
}
.header-share { display: none; }
.site-header.is-scrolled { height: 68px; border-bottom-color: #d4dce8; }
.site-header.is-reading .reading-context { display: block; }
.site-header.is-reading .desktop-nav,
.site-header.is-reading .topics-dropdown,
.site-header.is-reading .newsletter-button,
.site-header.is-reading .brand-divider,
.site-header.is-reading .brand-section { display: none; }
.site-header.is-reading .header-share { display: inline-grid; }
.site-header.is-reading .brand-link img { width: 150px; }
.reading-progress {
    position: absolute;
    height: 3px;
    left: 0;
    bottom: 0;
    width: 0;
    background: var(--brand-blue);
}

/* Search is a functional dialog, not a decorative popup. */
.search-dialog {
    width: min(620px, calc(100vw - 24px));
    max-width: 100%;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    box-shadow: 0 20px 50px rgb(18 40 78 / 18%);
}
.search-dialog::backdrop { background: rgb(13 24 49 / 46%); }
.search-dialog-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 23px;
}
.search-dialog-title label { font-size: 21px; font-weight: 750; letter-spacing: -.03em; }
.search-close {
    display: grid;
    place-items: center;
    border: none;
    background: #fff;
    width: 36px;
    height: 36px;
}
.search-controls { display: flex; gap: 10px; }
.search-controls input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #b8c5d6;
    border-radius: 8px;
}
.search-controls button {
    border: none;
    background: var(--brand-blue);
    color: white;
    border-radius: 8px;
    padding: 12px 18px;
}

/* Homepage: no fabricated stories or placeholder brand-symbol illustrations. */
.overline, .eyebrow {
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 750;
}
.feature-outer, .stories-section {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 54px 24px 64px;
}
.top-eyebrow { margin-bottom: 24px; }
.feature-card {
    display: grid;
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    min-height: 470px;
    overflow: hidden;
    background: #f1f6fc;
    border-radius: 16px;
}
.feature-card--text-only { display: block; min-height: auto; }
.feature-copy {
    padding: clamp(35px, 4.5vw, 68px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.feature-copy h1 {
    font-size: clamp(34px, 3.75vw, 61px);
    line-height: 1.13;
    letter-spacing: -.052em;
    font-weight: 740;
    color: var(--brand-blue);
    margin: 22px 0 16px;
    overflow-wrap: anywhere;
}
.feature-copy p { font-size: 17px; line-height: 1.65; color: #40526b; }
.feature-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 36px;
    font-size: 13px;
    color: #43546f;
}
.feature-bottom strong { color: var(--brand-blue); font-weight: 750; }
.feature-image { min-height: 440px; overflow: hidden; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.empty-hero {
    width: min(100%, 1280px);
    min-height: 395px;
    margin: 0 auto;
    padding: 72px 24px 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.empty-hero h1 {
    font-weight: 750;
    color: var(--ink);
    font-size: clamp(44px, 5.8vw, 80px);
    line-height: 1.08;
    letter-spacing: -.06em;
    max-width: 925px;
    margin: 19px 0;
}
.empty-hero p {
    font-size: clamp(17px, 1.8vw, 21px);
    line-height: 1.6;
    color: var(--muted);
    max-width: 670px;
    margin: 0;
}
.text-link {
    color: var(--brand-blue);
    display: inline-block;
    margin-top: 28px;
    padding-bottom: 5px;
    border-bottom: 1px solid currentColor;
    font-size: 14px;
    font-weight: 750;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding-top: 25px;
    margin-bottom: 30px;
    border-top: 1px solid var(--line);
}
.section-heading h2 {
    margin: 6px 0;
    font-size: clamp(27px, 3.4vw, 43px);
    line-height: 1.2;
    letter-spacing: -.04em;
    font-weight: 720;
}
.section-heading .overline { margin: 0; }
.section-small { color: var(--muted); font-size: 13px; }
.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 26px;
}
.story-card, .story-link { min-width: 0; }
.story-image { margin-bottom: 18px; }
.story-image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.story-meta { color: var(--brand-blue); font-size: 12px; font-weight: 720; margin: 12px 0; }
.story-meta span { padding: 0 8px; }
.story-card h3 {
    font-size: clamp(22px, 2.1vw, 27px);
    line-height: 1.25;
    letter-spacing: -.035em;
    font-weight: 700;
    margin: 0 0 10px;
    overflow-wrap: break-word;
}
.story-card p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.story-read { display: inline-block; color: var(--brand-blue); font-size: 13px; font-weight: 750; padding-top: 5px; }
.editorial-empty {
    padding: 38px 0 44px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}
.editorial-empty h3 { color: var(--ink); font-size: 25px; font-weight: 710; margin: 0 0 12px; }
.editorial-empty p { line-height: 1.65; margin: 0; }
.subscribe-band {
    width: min(calc(100% - 48px), 1232px);
    margin: 34px auto 0;
    padding: 50px 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    color: #fff;
    background: var(--brand-blue);
    border-radius: 14px;
}
.subscribe-band .overline { color: var(--brand-cyan); }
.subscribe-band h2 { font-size: clamp(28px, 3vw, 43px); font-weight: 740; letter-spacing: -.045em; margin: 10px 0; }
.subscribe-band p { line-height: 1.6; font-size: 15px; color: #e7edff; margin: 0; }
.subscribe-band a {
    background: #fff;
    color: var(--brand-blue);
    border-radius: 8px;
    padding: 15px 22px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 750;
}

/* Articles, tables and simple interactive data blocks. */
.article-masthead { background: #f3f7fc; padding: 62px 24px 44px; }
.article-masthead > * { width: min(100%, 950px); margin-left: auto; margin-right: auto; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 14px; color: var(--brand-blue); font-size: 13px; margin-bottom: 54px; }
.article-kicker { color: var(--brand-blue); font-weight: 750; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; margin-bottom: 22px; }
.article-masthead h1 {
    font-weight: 760;
    font-size: clamp(38px, 5.4vw, 74px);
    line-height: 1.13;
    letter-spacing: -.058em;
    margin: 0 auto 22px;
    overflow-wrap: anywhere;
}
.article-dek { color: #3f4e65; font-size: clamp(17px, 2vw, 25px); line-height: 1.55; }
.article-meta {
    margin-top: 34px;
    padding: 20px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid #d2dce8;
    border-bottom: 1px solid #d2dce8;
}
.article-meta > div { display: flex; flex: 1 1 165px; flex-direction: column; gap: 6px; }
.article-meta strong { font-weight: 750; font-size: 14px; }
.article-meta span, .article-meta time { color: var(--muted); font-size: 13px; }
.share-action { color: var(--brand-blue); background: none; border: 0; padding: 9px 0; font-weight: 750; }
.share-feedback { min-height: 1px; }
.article-hero { width: min(100%, 1320px); margin: 0 auto; padding: 36px 24px 0; }
.article-hero img { display: block; width: 100%; max-height: 700px; object-fit: cover; border-radius: 10px; }
.article-hero figcaption, .article-inline-image figcaption { color: var(--muted); font-size: 12px; margin-top: 10px; }
.article-flow { width: min(100%, 810px); margin: 46px auto 70px; padding: 0 24px; }
.article-heading { margin: 52px 0 18px; font-size: clamp(25px, 3vw, 37px); line-height: 1.2; letter-spacing: -.035em; font-weight: 720; }
.article-paragraph, .richtext { font-size: 18px; line-height: 1.8; margin: 22px 0; overflow-wrap: break-word; }
.article-paragraph a { color: var(--brand-blue); text-decoration: underline; }
.article-quote { font-size: clamp(23px, 2.5vw, 31px); line-height: 1.45; padding-left: 22px; border-left: 3px solid var(--brand-blue); margin: 35px 0; }
.article-inline-image { margin: 36px 0; }
.article-inline-image img { width: 100%; height: auto; border-radius: 8px; }
.article-callout { border-left: 3px solid var(--brand-blue); padding: 20px 24px; background: #f4f8fd; margin: 35px 0; }
.article-callout strong { color: var(--brand-blue); }
.code-block { overflow: auto; margin: 35px 0; background: #17223b; color: #eff5ff; border-radius: 9px; }
.code-block > span { display: block; padding: 9px 18px; background: #263653; font-size: 12px; }
.code-block pre { margin: 0; padding: 20px; line-height: 1.65; font-size: 14px; }
.table-scroller, .interactive-chart { width: min(980px, calc(100% + 100px)); max-width: calc(100vw - 48px); margin: 38px 0 38px 50%; transform: translateX(-50%); }
.table-scroller { overflow-x: auto; }
.chart-head h3 { font-size: 22px; margin-bottom: 3px; }
.chart-head p { color: var(--muted); font-size: 12px; }
.chart-switch { display: flex; justify-content: flex-end; gap: 8px; margin: 15px 0; }
.chart-switch button { background: #fff; padding: 9px 12px; color: var(--brand-blue); border: 1px solid #d9e2ee; border-radius: 7px; }
.chart-switch button[aria-pressed=true] { background: var(--brand-blue); color: #fff; }
.chart-data-table, .article-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.chart-data-table th, .chart-data-table td, .article-table td, .article-table th { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
.article-table th { background: #f1f6fd; }
.interactive-chart.enhanced > .chart-data-table { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.bar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 55px; gap: 14px; margin: 15px 0; align-items: center; font-size: 13px; }
.bar-track { background: #eaf0f8; height: 17px; border-radius: 4px; }
.bar-fill { background: var(--brand-blue); height: 100%; border-radius: 4px; }
.article-accordion { border-top: 1px solid var(--line); padding: 16px 0; }
.article-accordion summary { font-weight: 720; cursor: pointer; }
.article-end { width: min(100%, 810px); margin: auto; display: flex; justify-content: space-between; padding: 25px 24px; border-top: 1px solid var(--line); font-size: 13px; }
.related { padding-top: 75px; }
.topic-hero { background: #f3f7fc; padding: 70px max(24px, calc((100vw - 1232px) / 2)); }
.topic-hero h1 { font-size: clamp(38px, 5.3vw, 70px); margin: 16px 0; letter-spacing: -.05em; }
.topic-hero p { color: var(--muted); line-height: 1.6; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; margin: 35px 0; font-size: 13px; }
.pagination a { color: var(--brand-blue); font-weight: 750; }

/* Newsletter: branded but static; it is a working opt-in form, not an iframe. */
.newsletter-page {
    width: min(100%, 1232px);
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: 0;
    margin: 50px auto 0;
    padding: 0 24px;
    min-height: 560px;
}
.newsletter-illustration { padding: 65px 45px; background: var(--brand-blue); color: #fff; }
.newsletter-illustration .overline { color: var(--brand-cyan); }
.newsletter-illustration h2 { font-size: clamp(36px, 4vw, 53px); line-height: 1.13; letter-spacing: -.05em; margin: 42px 0 24px; }
.newsletter-illustration p { line-height: 1.7; color: #dce8ff; }
.newsletter-form-wrap { padding: 62px clamp(24px, 5vw, 74px); border: 1px solid var(--line); }
.newsletter-form-wrap h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.14; letter-spacing: -.045em; margin: 15px 0; }
.newsletter-form-wrap > p { color: var(--muted); line-height: 1.7; }
.newsletter-form { display: grid; gap: 15px; margin-top: 28px; }
.newsletter-form > label { font-weight: 700; font-size: 13px; }
.newsletter-form input[type=email] { width: 100%; min-width: 0; padding: 14px; border: 1px solid #bfcad9; border-radius: 8px; }
.newsletter-form button { background: var(--brand-blue); color: #fff; padding: 14px 20px; border: 0; border-radius: 8px; font-weight: 730; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.consent-row input { margin-top: 2px; flex: 0 0 auto; }
.privacy-note { font-size: 12px; color: var(--muted); }
.privacy-note a { text-decoration: underline; }
.form-error { color: #9d202e; }
.form-success { color: #116b46; }

/* Corporate footer uses canonical PrymeStudy destinations, not duplicated pages. */
.site-footer {
    width: 100%;
    margin-top: 90px;
    border-top: 1px solid var(--line);
    background: var(--subtle);
}
.footer-main, .footer-bottom {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 48px 24px;
    display: flex;
    justify-content: space-between;
    gap: 38px;
}
.footer-brand { min-width: 0; }
.footer-brand img { width: 192px; height: auto; display: block; }
.footer-brand p { max-width: 340px; color: var(--muted); line-height: 1.6; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 20px; padding-top: 6px; font-size: 13px; font-weight: 650; }
.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    padding-bottom: 25px;
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 1190px) {
    .header-inner { padding: 0 24px; gap: 16px; }
    .brand-link img { width: 160px; }
    .brand-section { font-size: 13px; }
    .desktop-nav { gap: 14px; }
    .desktop-nav a { font-size: 12px; }
}
@media (max-width: 970px) {
    .desktop-nav { display: none; }
    .header-actions { margin-left: auto; }
    .site-header.is-reading .header-actions { margin-left: 0; }
    .newsletter-button { padding: 12px 15px; }
}
@media (max-width: 680px) {
    :root { --header-height: 68px; }
    .header-inner { padding: 0 16px; gap: 9px; }
    .brand-link { gap: 8px; }
    .brand-link img { width: 137px; }
    .brand-divider { height: 22px; }
    .brand-section { font-size: 12px; }
    .header-actions { gap: 4px; }
    .icon-button { width: 36px; height: 36px; }
    .desktop-topics-label { display: none; }
    .topics-dropdown summary { width: 28px; justify-content: center; }
    .topics-panel { right: -82px; top: calc(100% + 14px); }
    .newsletter-button { padding: 11px 12px; font-size: 12px; }
    .site-header.is-reading .brand-link img { width: 107px; }
    .reading-context { font-size: 12px; }
    .search-dialog { padding: 20px; }
    .feature-outer, .stories-section { padding: 28px 18px 45px; }
    .feature-card { display: block; }
    .feature-copy { padding: 32px 25px; }
    .feature-copy h1 { font-size: 37px; }
    .feature-image { min-height: 280px; }
    .feature-image img { height: 300px; }
    .feature-bottom { padding-top: 18px; }
    .empty-hero { min-height: 310px; padding: 60px 20px 42px; }
    .empty-hero h1 { font-size: 46px; }
    .section-small { display: none; }
    .story-grid { grid-template-columns: 1fr; gap: 32px; }
    .subscribe-band { width: calc(100% - 36px); margin-top: 10px; padding: 32px 26px; display: block; }
    .subscribe-band a { display: inline-block; margin-top: 22px; }
    .article-masthead { padding: 38px 20px 30px; }
    .article-masthead h1 { font-size: 39px; }
    .breadcrumbs { margin-bottom: 35px; }
    .article-flow { padding: 0 19px; }
    .article-paragraph { font-size: 17px; }
    .article-hero { padding: 18px; }
    .article-meta { gap: 12px; }
    .bar-row { grid-template-columns: minmax(65px, 100px) 1fr 40px; gap: 8px; }
    .table-scroller, .interactive-chart { max-width: calc(100vw - 38px); }
    .newsletter-page { display: block; padding: 0 18px; margin-top: 26px; }
    .newsletter-illustration { padding: 35px 26px; }
    .newsletter-illustration h2 { margin: 20px 0; }
    .newsletter-form-wrap { padding: 36px 26px; }
    .footer-main, .footer-bottom { padding: 34px 20px; display: block; }
    .footer-links { margin-top: 28px; }
    .footer-bottom > span { display: block; margin: 6px 0; }
}
@media (max-width: 360px) {
    .brand-link img { width: 108px; }
    .brand-section { font-size: 11px; }
    .newsletter-button { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}


/* Newsroom theme and CMS appearance layer — deliberately no animation or blobs. */
html { font-family:var(--newsroom-font,Inter,ui-sans-serif,system-ui,sans-serif); }
body { font-family:inherit; }
.site-header, .site-header.is-scrolled {
    background:var(--header-bg, #ffffff);
    color:var(--header-ink, #172137);
}
.brand-divider { background:currentColor; opacity:.23; }
.desktop-nav a, .topics-dropdown summary, .site-header .icon-button { color:inherit; }
.site-header .icon-button:hover { background:rgba(115,123,154,.13); }
.topics-panel { background:var(--surface); color:var(--ink); border-color:var(--line); }
.topics-panel .topic-mobile-only { display:none; }
.icon-button.theme-toggle { width:39px; }
.theme-icon-sun, html[data-theme="dark"] .theme-icon-moon { display:none; }
html[data-theme="dark"] .theme-icon-sun { display:block; }
.reading-progress { height:2px; background:var(--brand-cyan); }
.site-header.is-reading .theme-toggle { display:inline-grid; }
.newsletter-button, .subscribe-band, .newsletter-form button, .search-controls button {
    background:var(--brand-blue);
}
.newsletter-button:hover { filter:brightness(.94); }
:root { --link-color:var(--brand-blue); }
html[data-theme="dark"] {
    color-scheme:dark;
    --ink:#F0F4FC;
    --muted:#B1BED4;
    --line:#334059;
    --surface:#111A2B;
    --subtle:#182338;
    --link-color:#6BE4EF;
}
html[data-theme="dark"] body { background:var(--surface); color:var(--ink); }
html[data-theme="dark"] .site-header, html[data-theme="dark"] .site-header.is-scrolled {
    background:var(--header-dark-bg, #121B30);
    color:var(--header-dark-ink, #F4F7FC);
    border-bottom-color:var(--line);
}
html[data-theme="dark"] .empty-hero,
html[data-theme="dark"] .story-card,
html[data-theme="dark"] .stories-section,
html[data-theme="dark"] .feature-outer { background:var(--surface); }
html[data-theme="dark"] .feature-card, html[data-theme="dark"] .article-masthead,
html[data-theme="dark"] .topic-hero, html[data-theme="dark"] .newsletter-form-wrap,
html[data-theme="dark"] .article-callout, html[data-theme="dark"] .editorial-empty {
    background:var(--subtle); color:var(--ink);
}
html[data-theme="dark"] .footer-main, html[data-theme="dark"] .site-footer {
    background:var(--subtle); color:var(--ink);
}
html[data-theme="dark"] .newsletter-form-wrap { border-color:var(--line); }
html[data-theme="dark"] .feature-copy h1,html[data-theme="dark"] .empty-hero h1,
html[data-theme="dark"] .editorial-empty h3,html[data-theme="dark"] .article-masthead h1,
html[data-theme="dark"] .article-callout strong { color:var(--ink); }
html[data-theme="dark"] .feature-copy p,html[data-theme="dark"] .article-dek,
html[data-theme="dark"] .article-meta span,html[data-theme="dark"] .article-meta time,
html[data-theme="dark"] .story-card p,html[data-theme="dark"] .empty-hero p { color:var(--muted); }
html[data-theme="dark"] .overline,html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .story-meta,html[data-theme="dark"] .story-read,
html[data-theme="dark"] .article-kicker,html[data-theme="dark"] .text-link,
html[data-theme="dark"] .breadcrumbs,html[data-theme="dark"] .share-action,
html[data-theme="dark"] .footer-links a:hover { color:var(--link-color); }
html[data-theme="dark"] .section-heading,html[data-theme="dark"] .article-meta,
html[data-theme="dark"] .article-end { border-color:var(--line); }
html[data-theme="dark"] .search-dialog { background:var(--surface);color:var(--ink);border-color:var(--line); }
html[data-theme="dark"] .search-close { background:var(--surface);color:var(--ink); }
html[data-theme="dark"] .search-controls input,
html[data-theme="dark"] .newsletter-form input[type=email],
html[data-theme="dark"] .chart-switch button {
    background:var(--surface);color:var(--ink);border-color:var(--line);
}
html[data-theme="dark"] .chart-switch button[aria-pressed=true] { background:var(--brand-blue);color:white; }
html[data-theme="dark"] .article-table th { background:#1D2C46; color:var(--ink); }
html[data-theme="dark"] .bar-track { background:#2A3A52; }
html[data-theme="dark"] .article-paragraph a { color:var(--link-color); }
html[data-theme="dark"] .share-action { color:var(--link-color); }
html[data-theme="dark"] .newsletter-illustration { color:#fff; }
html[data-theme="dark"] .newsletter-illustration p { color:#e5eafa; }
html[data-theme="dark"] .subscribe-band a { color:var(--brand-blue);background:#fff; }
html[data-theme="dark"] .topics-panel a:hover { color:var(--link-color); }
html[data-theme="dark"] .footer-brand img,html[data-theme="dark"] .brand-link img {
    /* The official multi-colour logo stays unmodified for brand integrity. */
    background:transparent;
}
@media(max-width:970px) {
    .topics-panel .topic-mobile-only { display:block; }
}
@media(max-width:680px) {
    .theme-toggle { display:inline-grid; }
    .header-actions { gap:1px; }
    .site-header.is-reading .brand-link img { width:100px; }
}
@media(max-width:440px) {
    .brand-link img { width:110px; }
    .brand-section { font-size:11px; }
    .brand-link { gap:5px; }
    .header-inner { padding:0 10px; }
    .newsletter-button { padding:10px 9px; font-size:11px; }
}

/* Keep all header controls reachable on narrow phones without clipping. */
@media(max-width:440px){
  .site-header .brand-divider,.site-header .brand-section{display:none}
  .brand-link img{width:116px}
  .header-actions{gap:1px}
  .header-inner{gap:4px;padding:0 10px}
}
@media(max-width:355px){
  .brand-link img{width:96px}
  .newsletter-button{font-size:10px;padding:10px 8px}
  .icon-button{width:32px;height:34px}
}

/* Empty categories stay editorial and compact rather than showing a giant blank panel. */
.topic-hero { padding-top:52px; padding-bottom:45px; }
.topic-hero h1 { font-size:clamp(36px,4.4vw,59px); line-height:1.13; }
.topic-hero p { margin-bottom:0; }
.topic-hero + .stories-section { padding-top:32px; }
.topic-hero + .stories-section .editorial-empty { padding:24px 0 35px; }
