/*
 * EarthBeat site stylesheet ("Station bulletin").
 * One file for every public page. Light and dark themes share the same rules;
 * only the tokens below change. Theme follows the system unless the visitor
 * picks one (html[data-theme] set by /assets/theme.js).
 */

@font-face {
    font-family: 'Archivo';
    src: url('/assets/fonts/archivo-latin-standard-normal.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
}
@font-face {
    font-family: 'STIX Two Text';
    src: url('/assets/fonts/stix-two-text-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'STIX Two Text';
    src: url('/assets/fonts/stix-two-text-latin-400-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'STIX Two Text';
    src: url('/assets/fonts/stix-two-text-latin-600-normal.woff2') format('woff2');
    font-weight: 600 700;
    font-display: swap;
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
    color-scheme: light;
    --paper: #EEF1EC;
    --paper-2: #E2E8E1;
    --ink: #16202E;
    --ink-2: #4C5866;
    --rule: #C3CDC6;
    --rule-strong: #16202E;
    --link: #1B4FA8;
    --sci: #1B4FA8;
    --aware: #5A3E91;
    --ok: #1F7A3D;
    --bad: #B3261E;
    --amber: #F0A050;
    --amber-ink: #16202E;
    --panel: #121A2B;
    --panel-ink: #E6EAF2;
    --panel-ink-2: #A3ADC2;
    --panel-rule: #2B3653;
    --shadow: rgba(8, 12, 30, 0.3);

    --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --font-text: 'STIX Two Text', 'Iowan Old Style', Georgia, serif;

    --axis: 10rem;
    --gutter: 2.5rem;
    --measure: 41rem;
    --wide: 58rem;
    --edge: clamp(1.25rem, 4vw, 3rem);
    --sheet: calc(var(--axis) + var(--gutter) + var(--wide));

    --track: var(--sci);

    /* Names used by older page-level and inline styles. Kept as aliases so
       that markup written against the previous design follows the theme. */
    --color-bg: var(--paper);
    --color-surface: var(--paper-2);
    --color-surface-alt: var(--paper-2);
    --color-text: var(--ink);
    --color-text-muted: var(--ink-2);
    --color-accent: var(--link);
    --color-accent-glow: transparent;
    --color-blue: var(--sci);
    --color-science: var(--sci);
    --color-awareness: var(--aware);
    --color-green: var(--ok);
    --color-red: var(--bad);
    --font-body: var(--font-text);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --paper: #0C1122;
        --paper-2: #141B31;
        --ink: #E6EAF2;
        --ink-2: #9BA6BC;
        --rule: #263050;
        --rule-strong: #E6EAF2;
        --link: #7FD6EA;
        --sci: #7FD6EA;
        --aware: #BBA8F2;
        --ok: #6FD08C;
        --bad: #FF8A80;
        --panel: #172040;
        --panel-rule: #2F3B62;
        --shadow: rgba(0, 0, 0, 0.5);
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #0C1122;
    --paper-2: #141B31;
    --ink: #E6EAF2;
    --ink-2: #9BA6BC;
    --rule: #263050;
    --rule-strong: #E6EAF2;
    --link: #7FD6EA;
    --sci: #7FD6EA;
    --aware: #BBA8F2;
    --ok: #6FD08C;
    --bad: #FF8A80;
    --panel: #172040;
    --panel-rule: #2F3B62;
    --shadow: rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 1.125rem;
    line-height: 1.62;
    font-variant-numeric: lining-nums;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-stretch: 112%; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; background: var(--paper-2); padding: 0.1rem 0.35rem; word-break: break-word; }

/* ==========================================================================
   Navigation + theme switch
   ========================================================================== */
.top-nav {
    display: flex;
    align-items: center;
    gap: 0.8rem 2rem;
    flex-wrap: wrap;
    padding: 0.9rem var(--edge);
    border-bottom: 1px solid var(--rule-strong);
    font-family: var(--font-display);
    font-size: 0.9rem;
    background: var(--paper);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-right: auto;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-stretch: 112%;
    font-size: 1.05rem;
}
.nav-logo img { width: 30px; height: 30px; border-radius: 7px; display: block; }
.nav-logo em { font-style: normal; margin-left: 0 !important; }
.nav-logo { gap: 0; }
.nav-logo img { margin-right: 0.6rem; }
.nav-links { display: flex; align-items: center; gap: 0.4rem 1.5rem; flex-wrap: wrap; }
.nav-links a { color: var(--ink); text-decoration: none; padding: 0.2rem 0; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 0.4em; }
.nav-links a.active { box-shadow: 0 2px 0 var(--amber); }

.theme-switch { display: flex; border: 1px solid var(--rule-strong); }
.theme-switch button {
    font: inherit;
    font-size: 0.8rem;
    color: var(--ink);
    background: none;
    border: 0;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
}
.theme-switch button + button { border-left: 1px solid var(--rule-strong); }
.theme-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Track strip under the navigation */
.track-badge {
    padding: 0.4rem var(--edge);
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 650;
    color: var(--track);
}
.track-badge::before {
    content: '';
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    margin-right: 0.5rem;
    background: var(--track);
}
.track-awareness, .track-awareness ~ * { --track: var(--aware); }

/* ==========================================================================
   Article / content pages
   ========================================================================== */
.content-page {
    display: grid;
    grid-template-columns: var(--axis) minmax(0, 1fr);
    column-gap: var(--gutter);
    max-width: calc(var(--sheet) + 2 * var(--edge));
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) var(--edge) 4rem;
}
.content-page > * { grid-column: 2; min-width: 0; max-width: var(--measure); }
.content-page > .article-content,
.content-page > .article-header,
.content-page > .showcase-item,
.content-page > .app-cta { max-width: var(--wide); }

/* Axis column: date, authorship, sources */
.content-page > .page-meta {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: start;
    max-width: none;
    padding-top: 0.4rem;
    border-top: 1px solid var(--rule-strong);
    font-family: var(--font-display);
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--ink-2);
}
.page-meta .last-updated { display: block; color: var(--ink); font-weight: 650; }
.page-meta .article-author { margin-top: 0.6rem; }
.page-meta a { color: inherit !important; }

.breadcrumbs-bar { margin-bottom: 2rem; }
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.82rem;
    color: var(--ink-2);
}
.breadcrumbs a { color: inherit; }
.breadcrumbs .current { color: var(--ink); }

.article-header { margin-bottom: 2.25rem; }
.article-header h1 {
    font-size: clamp(2.2rem, 5.2vw, 3.6rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}
.article-lead { font-size: 1.3rem; line-height: 1.5; max-width: var(--measure); border: 0 !important; padding: 0 !important; }

.article-content > * { max-width: var(--measure); }
.article-content > table,
.article-content > .showcase-item,
.article-content > .sidebar-figure-row,
.article-content > .aura-export-row { max-width: none; }

.article-content h2 {
    font-size: 1.6rem;
    font-weight: 680;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 3rem 0 0.9rem;
}
.article-content h3 { font-size: 1.2rem; font-weight: 680; line-height: 1.2; margin: 2.2rem 0 0.7rem; }
.article-content p { margin-bottom: 1.15rem; }
.article-content ul, .article-content ol { margin-bottom: 1.15rem; padding-left: 1.3rem; }
.article-content li { margin-bottom: 0.45rem; }
.article-content li::marker { color: var(--ink-2); }
.article-content strong, .content-page strong { font-weight: 600; }
/* Inline link styles from the previous design set their own border; the
   underline now comes from text-decoration. */
.article-content a, .faq-answer a, .info-box a, .source-disclaimer a {
    border-bottom: 0 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
}
.article-content blockquote, .article-content p[style*="border-left"] {
    border-left: 3px solid var(--ink) !important;
    font-style: italic;
}

/* Key takeaways and notes: ruled block, no box */
.info-box {
    border-top: 1px solid var(--rule-strong);
    border-bottom: 1px solid var(--rule-strong);
    padding: 1.1rem 0;
    margin: 2rem 0;
    font-size: 1.02rem;
}
.info-box.awareness { border-color: var(--aware); }
.info-box > strong:first-child { font-family: var(--font-display); font-stretch: 112%; font-weight: 680; font-size: 1rem; }
.info-box ul, .info-box ol { padding-left: 1.3rem; }
.info-box li { margin-bottom: 0.4rem; }
.info-box li::marker { color: var(--ink-2); }

/* Tables */
.ref-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: 0.98rem; line-height: 1.45; }
.ref-table th {
    text-align: left;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 650;
    padding: 0.5rem 1rem 0.5rem 0;
    border-top: 1px solid var(--rule-strong);
    border-bottom: 1px solid var(--rule-strong);
}
.ref-table td { padding: 0.65rem 1rem 0.65rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ref-table td:first-child { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.ref-table td:first-child strong { font-weight: 680; font-stretch: 112%; }

/* Figures */
.source-image { margin: 2rem 0; }
.source-image img { display: block; width: 100%; border: 1px solid var(--rule); background: #fff; }
.source-image-caption, figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-top: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--ink-2);
}
figcaption { display: block; }
.source-image-caption { display: flex; }
.source-image-meta a { color: var(--link); }
.sidebar-figure-row img { border-radius: 0 !important; border: 1px solid var(--rule); }

.source-disclaimer {
    margin: 2rem 0;
    padding: 0.8rem 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    font-family: var(--font-display);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--ink-2);
}
.source-disclaimer strong { color: var(--ink); }

.references { margin: 2.5rem 0; font-size: 0.92rem; line-height: 1.5; }
.references h3 { font-size: 1rem; font-weight: 680; margin-bottom: 0.7rem; padding-top: 0.5rem; border-top: 1px solid var(--rule-strong); }
.references ul, .references ol { padding-left: 1.2rem; color: var(--ink-2); }
.references li { margin-bottom: 0.45rem; word-break: break-word; }

/* Data readout */
.data-card { border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); margin: 2.5rem 0; padding: 1rem 0 1.1rem; font-family: var(--font-display); }
.data-card-header { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.data-card-title { font-weight: 680; font-stretch: 112%; font-size: 1rem; }
.data-card-date { font-size: 0.85rem; color: var(--ink-2); }
.data-card-values { display: flex; flex-wrap: wrap; gap: 1.25rem 3rem; margin: 0.9rem 0 1rem; }
.data-value .label { font-size: 0.8rem; color: var(--ink-2); }
.data-value .number { font-size: 2.4rem; font-weight: 700; font-stretch: 118%; line-height: 1.05; font-variant-numeric: tabular-nums; }
.data-value .number[style] { font-size: 1.15rem !important; font-weight: 600; line-height: 2.2; }
.data-value .unit { font-size: 0.85rem; color: var(--ink-2); }
.data-card-cta { font-size: 0.95rem; font-weight: 600; }

/* Status banner */
.status-banner {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin: 1.25rem 0;
    padding: 0.8rem 1rem;
    border: 1px solid var(--bad);
    border-left-width: 5px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    line-height: 1.5;
}
.status-banner::before { content: "\26A0"; color: var(--bad); flex-shrink: 0; }

/* ==========================================================================
   The app on the page: dark instrument panels in both themes
   ========================================================================== */
.app-cta, .showcase-item {
    background: var(--panel);
    color: var(--panel-ink);
}
.app-cta { margin: 3.5rem 0 2.5rem; padding: 2.25rem; }
.app-cta h2 { font-size: 1.7rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 0.7rem; }
.app-cta p { color: var(--panel-ink-2); font-size: 1.05rem; margin-bottom: 1.4rem; max-width: 34rem; }
.app-cta.has-device {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 2.25rem;
    align-items: end;
    padding-bottom: 0;
    overflow: hidden;
}
.app-cta-device { height: 250px; overflow: hidden; align-self: end; }
.app-cta-device img { display: block; width: 100%; }
.app-cta.has-device .app-cta-body { padding-bottom: 2.25rem; }

.store-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.appstore-badge { display: inline-block; }
.appstore-badge img { display: block; height: 50px; width: auto; }

.showcase-item {
    display: grid;
    grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
    gap: 2.25rem;
    align-items: center;
    margin: 2.5rem 0;
    padding: 2.25rem;
}
.showcase-item.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 190px); }
.showcase-item.reverse .showcase-img { order: 2; }
.showcase-img img { display: block; width: 100%; }
.showcase-label { font-family: var(--font-display); font-size: 0.8rem; font-weight: 650; color: var(--amber); margin-bottom: 0.4rem; }
.showcase-text h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.6rem; }
.showcase-text p { color: var(--panel-ink-2); font-size: 1.02rem; margin: 0; }
.showcase-text a { color: var(--panel-ink) !important; }
/* landscape screenshots get the wide column */
.showcase-item:has(img[src$=".gif"]), .showcase-item:has(img[src*="cumiana"]) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }

.spectrogram-teaser { position: relative; margin: 2rem 0; background: #000; }
.spectrogram-teaser img { display: block; width: 100%; }
.spectrogram-teaser .teaser-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 35%, rgba(0, 0, 0, 0.85) 100%); pointer-events: none; }
.spectrogram-teaser .teaser-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.9rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-display); font-size: 0.8rem; }
.spectrogram-teaser .teaser-caption { color: #C9D0DD; }
.spectrogram-teaser .teaser-cta { color: #16202E; background: var(--amber); padding: 0.4rem 0.8rem; font-weight: 650; text-decoration: none; white-space: nowrap; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { margin: 3rem 0; }
.faq h2 { font-size: 1.6rem; font-weight: 680; line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 1rem; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.9rem 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-stretch: 105%;
    font-size: 1.02rem;
    font-weight: 620;
    line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--ink-2); flex-shrink: 0; }
.faq details[open] summary::after { content: '\2212'; }
.faq .faq-answer { padding: 0 2rem 1.1rem 0; font-size: 1.02rem; }

/* ==========================================================================
   Section landing pages (/science/, /awareness/)
   ========================================================================== */
.landing-hero, .topic-grid {
    max-width: calc(var(--sheet) + 2 * var(--edge));
    margin: 0 auto;
    padding-left: calc(var(--edge) + var(--axis) + var(--gutter));
    padding-right: var(--edge);
}
.landing-hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: 1rem; }
.landing-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 720; line-height: 1; letter-spacing: -0.03em; margin-bottom: 1.5rem; max-width: 52rem; }
.landing-hero .lead { font-size: 1.3rem; line-height: 1.5; max-width: var(--measure); }
.landing-hero + .showcase-item, body > .showcase-item, main:not(.content-page) > .showcase-item {
    max-width: var(--wide);
    margin-left: max(calc(var(--edge) + var(--axis) + var(--gutter)), calc((100vw - var(--sheet)) / 2 + var(--axis) + var(--gutter)));
    margin-right: var(--edge);
}
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 0 var(--gutter);
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}
.topic-card {
    display: block;
    padding: 1.1rem 0 1.6rem;
    border-top: 1px solid var(--rule-strong);
    color: var(--ink);
    text-decoration: none;
}
.topic-card h3 { font-size: 1.25rem; font-weight: 680; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.topic-card p { font-size: 0.98rem; line-height: 1.5; color: var(--ink-2); }
.topic-card .arrow { display: inline-block; margin-top: 0.7rem; font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: var(--link); }
.topic-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }

/* Blocks that sit directly in <body> on the section landing pages */
:is(body, main:not(.content-page)) > :is(.faq, .app-cta, .info-box, .source-disclaimer) {
    max-width: var(--wide) !important;
    margin-left: max(calc(var(--edge) + var(--axis) + var(--gutter)), calc((100vw - var(--sheet)) / 2 + var(--axis) + var(--gutter))) !important;
    margin-right: var(--edge) !important;
}
:is(body, main:not(.content-page)) > .faq { max-width: var(--measure) !important; padding: 0 0 3rem !important; }
:is(body, main:not(.content-page)) > .app-cta { margin-bottom: 3rem !important; }

/* ==========================================================================
   Footer blocks
   ========================================================================== */
.related-topics, .cross-track, .telegram-banner, footer {
    padding-left: max(calc(var(--edge) + var(--axis) + var(--gutter)), calc((100vw - var(--sheet)) / 2 + var(--axis) + var(--gutter)));
    padding-right: max(var(--edge), calc((100vw - var(--sheet)) / 2));
}
.related-topics { padding-top: 3rem; padding-bottom: 1.5rem; border-top: 1px solid var(--rule-strong); }
.related-inner { max-width: var(--wide); }
.related-topics h2 { font-size: 1rem; font-weight: 680; margin-bottom: 1.25rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 var(--gutter); }
.related-card { display: block; padding: 0.9rem 0 1.4rem; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.related-card h3 { font-size: 1.1rem; font-weight: 680; line-height: 1.2; margin-bottom: 0.35rem; }
.related-card p { font-size: 0.92rem; line-height: 1.45; color: var(--ink-2); }
.related-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }

.cross-track { padding-top: 1.25rem; padding-bottom: 2.5rem; font-family: var(--font-display); font-size: 0.92rem; }
.cross-track p { color: var(--ink-2); margin-bottom: 0.2rem; }
.cross-track a { font-weight: 650; }

.telegram-banner { padding-top: 2.25rem; padding-bottom: 2.25rem; border-top: 1px solid var(--rule-strong); }
.telegram-banner h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 0.4rem; }
.telegram-banner p { max-width: var(--measure); margin-bottom: 1.1rem; }
.telegram-btn, .download-btn, .form-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.2rem;
    background: var(--ink);
    color: var(--paper) !important;
    border: 0 !important;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 650;
    text-decoration: none !important;
    cursor: pointer;
}
.telegram-btn:hover, .download-btn:hover, .form-submit:hover { background: var(--link); }
.telegram-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

footer { padding-top: 2.5rem; padding-bottom: 3rem; background: var(--panel); color: var(--panel-ink); }
.footer-cta { margin-bottom: 2.25rem; }
.footer-cta h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 720; line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; padding-top: 1.25rem; margin-bottom: 1.5rem; border-top: 1px solid var(--panel-rule); font-family: var(--font-display); font-size: 0.9rem; }
.footer-links a { color: var(--panel-ink); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copyright { font-family: var(--font-display); font-size: 0.8rem; line-height: 1.5; color: var(--panel-ink-2); max-width: var(--measure); }
.copyright a { color: inherit; }

/* ==========================================================================
   Page-specific components
   ========================================================================== */
/* /android-sideload/ */
.download-card { border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); padding: 1.5rem 0; margin: 2rem 0 3rem; }
.download-card .download-meta { font-family: var(--font-display); font-size: 0.8rem; font-weight: 650; color: var(--ink-2); margin-bottom: 0.3rem; }
.download-card h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5rem; }
.download-card p.lead { color: var(--ink-2); margin: 0 0 1.25rem; }
.download-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
.download-details { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.25rem; font-family: var(--font-display); font-size: 0.8rem; color: var(--ink-2); }
.step-list { list-style: none; padding: 0 !important; counter-reset: step; margin: 1.5rem 0; }
.step-list li { counter-increment: step; position: relative; padding: 0 0 1.4rem 3rem; }
.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 2rem;
    font-family: var(--font-display);
    font-stretch: 118%;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    border-top: 2px solid var(--ink);
}
.device-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0 1.5rem; margin: 1.5rem 0 2rem; }
.device-list .device { padding: 0.7rem 0 1rem; border-top: 1px solid var(--rule); font-family: var(--font-display); font-size: 0.85rem; color: var(--ink-2); }
.device-list .device strong { display: block; color: var(--ink); font-weight: 680; font-size: 0.95rem; }

/* /awareness/aura/ */
.aura-export-row { display: grid; grid-template-columns: repeat(3, minmax(0, 240px)); justify-content: start; align-items: end; gap: 1.5rem; margin: 3rem 0; }
.aura-export-row figure { margin: 0; }
.aura-export-row img { display: block; width: 100%; filter: drop-shadow(0 10px 22px var(--shadow)); }
.aura-color-table { width: 100%; max-width: 42rem; margin: 2rem 0 2.5rem; border-collapse: collapse; font-size: 0.95rem; }
.aura-color-table th, .aura-color-table td { padding: 0.75rem 0.5rem; text-align: center; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.aura-color-table th { font-family: var(--font-display); font-size: 0.8rem; font-weight: 650; border-top: 1px solid var(--rule-strong); border-bottom-color: var(--rule-strong); }
.aura-color-table td:first-child, .aura-color-table th:first-child { text-align: left; white-space: nowrap; padding-left: 0; }
.aura-color-table .h-name { font-family: var(--font-display); font-weight: 680; }
.aura-color-table .h-freq { color: var(--ink-2); font-size: 0.8rem; margin-left: 0.35rem; font-variant-numeric: tabular-nums; }
.aura-swatch { display: inline-block; width: 64px; height: 28px; border: 1px solid var(--rule); vertical-align: middle; }
.aura-color-table .threshold { display: block; margin-top: 0.4rem; font-family: var(--font-display); font-size: 0.75rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* /science/schumann-resonance/history/ */
.timeline-marker { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.25rem; margin: 1.5rem 0; padding-top: 0.6rem; border-top: 1px solid var(--rule); }
.timeline-marker .year { font-family: var(--font-display); font-stretch: 118%; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; }

/* /support/ */
.contact-form { max-width: 38rem; margin: 2rem 0; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-family: var(--font-display); font-size: 0.85rem; font-weight: 650; margin-bottom: 0.35rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    background: var(--paper);
    border: 1px solid var(--ink-2);
    border-radius: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--ink); }
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--ink-2); opacity: 0.8; }
.form-success, .form-error { padding: 0.9rem 1rem; margin: 1.5rem 0; border: 1px solid; border-left-width: 5px; font-family: var(--font-display); font-size: 0.95rem; }
.form-success { border-color: var(--ok); }
.form-error { border-color: var(--bad); }
.honeypot { display: none !important; }

/* ==========================================================================
   Narrow screens: the axis column folds into the flow
   ========================================================================== */
@media (max-width: 860px) {
    body { font-size: 1.0625rem; }
    .nav-logo { flex: 1; margin-right: 0; }
    .nav-links { order: 3; width: 100%; gap: 0.3rem 1.1rem; }

    .content-page { display: block; }
    .content-page > *, .article-content > * { max-width: none; }
    .content-page > .page-meta { margin-bottom: 1.5rem; }
    .breadcrumbs-bar { margin-bottom: 1.25rem; }

    .landing-hero, .topic-grid, .related-topics, .cross-track, .telegram-banner, footer { padding-left: var(--edge); padding-right: var(--edge); }
    .landing-hero + .showcase-item, body > .showcase-item, main:not(.content-page) > .showcase-item { margin-left: var(--edge); margin-right: var(--edge); }

    .ref-table { display: block; overflow-x: auto; }
    .ref-table th:nth-child(n+3), .ref-table td:nth-child(n+3) { min-width: 13rem; }
    :is(body, main:not(.content-page)) > :is(.faq, .app-cta, .info-box, .source-disclaimer) { margin-left: var(--edge) !important; margin-right: var(--edge) !important; }

    .app-cta { padding: 1.75rem 1.5rem; }
    .app-cta.has-device { grid-template-columns: 1fr; padding-bottom: 0; }
    .app-cta-device { order: 2; width: 150px; height: 200px; margin: 0 auto; }
    .app-cta.has-device .app-cta-body { padding-bottom: 0.5rem; }

    .showcase-item, .showcase-item.reverse,
    .showcase-item:has(img[src$=".gif"]), .showcase-item:has(img[src*="cumiana"]) { grid-template-columns: 1fr; padding: 1.75rem 1.5rem; gap: 1.5rem; }
    .showcase-item.reverse .showcase-img { order: 0; }
    .showcase-img img { max-width: 220px; margin: 0 auto; }
    .showcase-item:has(img[src$=".gif"]) .showcase-img img, .showcase-item:has(img[src*="cumiana"]) .showcase-img img { max-width: 100%; }

    .aura-export-row { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    .aura-swatch { width: 44px; height: 24px; }
    .aura-color-table .h-freq { display: block; margin-left: 0; }
}
@media (max-width: 480px) {
    .aura-export-row { grid-template-columns: 1fr; gap: 2rem; }
    .aura-export-row img { max-width: min(320px, 80vw); }
}

/* ==========================================================================
   Landing pages: / , /schumann-resonance/ , /earth-pulse/
   Body classes: .page-home, .page-sr, .page-pulse
   ========================================================================== */
:root {
    --lp: max(calc(var(--edge) + var(--axis) + var(--gutter)), calc((100vw - var(--sheet)) / 2 + var(--axis) + var(--gutter)));
    --rp: max(var(--edge), calc((100vw - var(--sheet)) / 2));
    --device: clamp(190px, 24vw, 270px);
    --warn: #8A5A00;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --warn: #FFD54F; } }
:root[data-theme="dark"] { --warn: #FFD54F; }

.nav-links .nav-cta { font-weight: 650; }

:is(.page-home, .page-sr, .page-pulse) :is(header.hero, section.hero, main > section, body > section, main > div[style]) {
    padding-left: var(--lp);
    padding-right: var(--rp);
}
:is(.page-home, .page-sr, .page-pulse) :is(main > section, body > section) { padding-top: 3.25rem; padding-bottom: 3.25rem; }
:is(.page-home, .page-sr, .page-pulse) :is(main > section, body > section) > * { max-width: var(--wide); }
:is(.page-home, .page-sr, .page-pulse) section > p,
:is(.page-home, .page-sr, .page-pulse) section > ul,
:is(.page-home, .page-sr, .page-pulse) section > ol { max-width: var(--measure); margin-bottom: 1.15rem; }
:is(.page-home, .page-sr, .page-pulse) section > ul { padding-left: 1.3rem; }
:is(.page-home, .page-sr, .page-pulse) section li { margin-bottom: 0.45rem; }
:is(.page-home, .page-sr, .page-pulse) section :is(h2, .section-heading) {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 720;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    text-align: left !important;
}
:is(.page-home, .page-sr, .page-pulse) section > h3 { font-size: 1.25rem; font-weight: 680; line-height: 1.2; margin: 2.2rem 0 0.7rem; }
:is(.page-home, .page-sr, .page-pulse) section[style], :is(.page-home, .page-sr, .page-pulse) section > [style*="text-align"] { text-align: left !important; }
:is(.page-home, .page-sr, .page-pulse) main > section + section,
.page-pulse > section + section { border-top: 1px solid var(--rule); }
.divider { height: 1px; background: var(--rule); margin: 0; }
.divider + section { border-top: 0 !important; }

.section-intro, .desc { color: var(--ink-2); margin-bottom: 2rem !important; }
.section-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 650;
    color: var(--ink-2);
    margin-bottom: 0.5rem !important;
}
.live-dot { display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.4rem; background: var(--ok); }

/* Heroes */
:is(.page-home, .page-sr, .page-pulse) .hero { padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: 3rem; }
:is(.page-home, .page-sr, .page-pulse) .hero h1 { font-weight: 750; font-stretch: 118%; line-height: 0.95; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; }
.hero-subtitle { max-width: 33rem; margin: 1.4rem 0 1.8rem; }
.sideload-note { font-family: var(--font-display); font-size: 0.82rem; color: var(--ink-2); margin-top: 0.9rem; }
.scroll-indicator, .frequency-badge .dot { display: none; }

/* Homepage hero: reading in the axis column, wordmark, device over the strip */
.page-home main > section.hero { padding-left: calc(var(--lp) - var(--axis) - var(--gutter)); padding-bottom: 0; position: relative; }
.page-home .hero-content {
    display: grid;
    grid-template-columns: var(--axis) minmax(0, 1fr) var(--device);
    column-gap: var(--gutter);
    max-width: var(--sheet);
    align-items: start;
}
.page-home .hero-text { display: contents; }
.page-home .hero-text > * { grid-column: 2; }
.page-home .frequency-badge {
    grid-column: 1;
    grid-row: 1 / span 6;
    padding-top: 0.45rem;
    border-top: 1px solid var(--rule-strong);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.35;
}
.page-home .hero h1 { font-size: min(7rem, calc((100vw - var(--lp) - var(--rp) - var(--device) - var(--gutter)) / 5.9)); }
.page-home .hero h1 .h1-suffix {
    display: block;
    font-family: var(--font-text);
    font-style: italic;
    font-weight: 400;
    font-stretch: 100%;
    font-size: clamp(1.25rem, 2.6vw, 1.75rem);
    letter-spacing: 0;
    line-height: 1.3;
    margin-top: 1.1rem;
}
.page-home .hero-device { grid-column: 3; grid-row: 1 / span 6; margin-bottom: -7.5rem; position: relative; z-index: 2; }
.page-home .hero-device img { display: block; width: 100%; filter: drop-shadow(0 18px 28px var(--shadow)); }
.page-home .hero::after {
    content: '';
    display: block;
    height: clamp(150px, 19vw, 280px);
    margin: 3rem calc(-1 * var(--rp)) 0 calc(-1 * (var(--lp) - var(--axis) - var(--gutter)));
    background: #000 url('/screenshots/weekly-spectrogram.jpg') center / cover no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
    .page-home .hero::after { animation: strip-draw 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
    @keyframes strip-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}

/* Feature lists (ruled, no cards, no icons) */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 var(--gutter); }
.features-grid > a { color: inherit; }
.feature-card { padding: 1rem 0 1.6rem; border-top: 1px solid var(--rule-strong); height: 100%; }
.feature-icon { display: none; }
.feature-card h3 { font-size: 1.2rem; font-weight: 680; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 0.45rem; }
.feature-card p { font-size: 0.98rem; line-height: 1.5; color: var(--ink-2); }
.features-grid > a .feature-card h3 { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.badge-pro { display: inline-block; margin-left: 0.4rem; padding: 0 0.35rem; border: 1px solid currentColor; font-size: 0.7rem; font-weight: 650; font-stretch: 100%; vertical-align: 0.15em; color: var(--ink-2); }

/* Homepage sections */
.page-home .showcase .showcase-item { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
.page-home .showcase .showcase-item:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 220px); }
.page-home .showcase .showcase-item:nth-of-type(even) .showcase-img { order: 2; }
.page-home .showcase .showcase-item:has(img[src$=".gif"]), .page-home .showcase .showcase-item:has(img[src*="cumiana"]) { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.page-home .showcase .showcase-item:nth-of-type(even):has(img[src*="cumiana"]),
.page-home .showcase .showcase-item:nth-of-type(even):has(img[src$=".gif"]) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.local-timeline-header p, .weekly-header p { max-width: var(--measure); margin-bottom: 1.5rem; }
.local-timeline-header .showcase-label, .weekly-header .showcase-label { color: var(--ink-2); }
.local-timeline-image img { display: block; width: 100%; border: 1px solid var(--rule); }
.page-home .weekly-spectrogram { max-width: none; margin: 0 calc(-1 * var(--rp)) 0 calc(-1 * var(--lp)); background: #000; }
.weekly-spectrogram img { display: block; width: 100%; }
.weekly-caption { font-family: var(--font-display); font-size: 0.8rem; color: var(--ink-2); padding-top: 0.6rem; max-width: none !important; }
.weekly-device {
    display: grid;
    grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
    gap: 2.25rem;
    align-items: center;
    margin-top: 2rem;
    padding: 2.25rem;
    background: var(--panel);
    color: var(--panel-ink);
}
.weekly-device img { display: block; width: 100%; }
.weekly-device-text p { color: var(--panel-ink-2); margin-bottom: 0.8rem; }
.weekly-device-text a { color: var(--panel-ink); }
.page-home .about a { text-decoration: underline; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.reviews-grid img { display: block; width: 100%; border: 1px solid var(--rule); }
.page-home main > div[style] {
    max-width: none !important;
    margin: 0 !important;
    padding-left: var(--lp) !important;
    padding-right: var(--rp) !important;
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
    border-top: 1px solid var(--rule) !important;
    font-family: var(--font-display);
}
.quote-section blockquote { font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; max-width: 46rem; }
.quote-section cite { display: block; margin-top: 0.8rem; font-family: var(--font-display); font-style: normal; font-size: 0.9rem; color: var(--ink-2); }
footer .sideload-note { color: var(--panel-ink-2); }
footer .sideload-note a { color: var(--panel-ink); }

/* Live readouts (/schumann-resonance/ hero, /earth-pulse/ hero) */
.page-sr .hero h1, .page-pulse .hero h1 { font-size: clamp(2.8rem, 8vw, 6rem); }
.page-sr .hero-content { display: grid; grid-template-columns: minmax(0, 1fr) var(--device); gap: var(--gutter); align-items: start; max-width: var(--wide); }
.page-sr .hero-device img { display: block; width: 100%; filter: drop-shadow(0 18px 28px var(--shadow)); }
.live-status, .status-chips { display: flex; flex-wrap: wrap; gap: 0 2.5rem; margin: 2rem 0 0; max-width: var(--wide); border-top: 1px solid var(--rule-strong); }
.status-item, .status-chip { display: flex; flex-direction: column; padding: 0.6rem 0 0; font-family: var(--font-display); }
.status-value, .status-chip .value { font-size: 1.9rem; font-weight: 700; font-stretch: 118%; line-height: 1.1; font-variant-numeric: tabular-nums; }
.status-label, .status-chip .label { font-size: 0.8rem; color: var(--ink-2); }
.kp-green { color: var(--ok); }
.kp-yellow { color: var(--warn); }
.kp-red { color: var(--bad); }
.live-badge { font-family: var(--font-display); font-size: 0.85rem; font-weight: 650; color: var(--ink-2); margin-bottom: 0.6rem; }

/* Spectrogram + share row */
.spectrogram-stack { background: #000; font-size: 0; line-height: 0; }
.spectrogram-img { display: block; width: 100%; }
.spectrogram-caption, .card-timestamp { font-family: var(--font-display); font-size: 0.8rem; color: var(--ink-2); padding-top: 0.6rem; }
.share-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: none;
    border: 1px solid var(--rule-strong);
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
}
.share-btn:hover { background: var(--ink); color: var(--paper); }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }
.toast {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    padding: 0.6rem 1.1rem;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1000;
}
.toast.show { opacity: 1; }

.harmonics-table { width: 100%; max-width: var(--measure); border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: 0.98rem; }
.harmonics-table th { text-align: left; font-family: var(--font-display); font-size: 0.8rem; font-weight: 650; padding: 0.5rem 1rem 0.5rem 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.harmonics-table td { padding: 0.6rem 1rem 0.6rem 0; border-bottom: 1px solid var(--rule); }
.harmonics-table td:first-child { font-family: var(--font-display); font-weight: 650; }

.screenshots-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; }
.screenshot-item img { display: block; width: 100%; }
.screenshot-item p { font-family: var(--font-display); font-size: 0.85rem; color: var(--ink-2); padding-top: 0.5rem; }

/* Script-driven FAQ on the two landing pages */
.faq-section .faq-item { border-top: 1px solid var(--rule); max-width: var(--measure); }
.faq-section .faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.9rem 0;
    cursor: pointer;
    font-stretch: 105%;
    font-size: 1.02rem;
    font-weight: 620;
    line-height: 1.3;
}
.faq-question::after { content: '+'; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--ink-2); flex-shrink: 0; }
.faq-item.open .faq-question::after { content: '\2212'; }
.faq-section .faq-answer { display: none; padding: 0 2rem 1.1rem 0; font-size: 1.02rem; }
.faq-section .faq-item.open .faq-answer { display: block; }

.cta-section { background: var(--panel); color: var(--panel-ink); border-top: 0 !important; }
.cta-section p { color: var(--panel-ink-2); }
.cta-section .cta-buttons { margin: 1.5rem 0; }
.cta-section .telegram-btn { background: var(--panel-ink); color: var(--panel) !important; }

/* /earth-pulse/ */
.card-frame { max-width: 34rem; }
.card-frame img { display: block; width: 100%; }
.guide-item { max-width: var(--measure); padding: 1rem 0 0.6rem; border-top: 1px solid var(--rule); }
.guide-item h3 { font-size: 1.2rem; font-weight: 680; margin-bottom: 0.4rem; }
.guide-item p, .guide-item ul { margin-bottom: 0.7rem; }
.guide-item ul { padding-left: 1.3rem; }
.wellness-callout { max-width: var(--measure); margin: 1.5rem 0; padding: 0.2rem 0 0.2rem 1.25rem; border-left: 3px solid var(--ink); font-style: italic; }
.sources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0 var(--gutter); margin-top: 1.5rem; }
.source-card { padding: 1rem 0 1.4rem; border-top: 1px solid var(--rule-strong); }
.source-card h3 { font-size: 1.1rem; font-weight: 680; margin-bottom: 0.4rem; }
.source-card p { font-size: 0.98rem; line-height: 1.5; color: var(--ink-2); }
.page-pulse .app-showcase { background: var(--panel); color: var(--panel-ink); border-top: 0 !important; }
.showcase-layout { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 2.5rem; align-items: center; margin-top: 1.5rem; }
.showcase-device img { display: block; width: 100%; }
.showcase-features { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.showcase-features li { display: flex; gap: 0.75rem; align-items: baseline; padding: 0.7rem 0; margin: 0 !important; border-top: 1px solid var(--panel-rule); }
.showcase-features .icon { flex-shrink: 0; width: 1.5rem; color: var(--amber); }
.showcase-features a { color: var(--panel-ink); }
.showcase-screenshots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; max-width: 40rem !important; }
.showcase-screenshots img { display: block; width: 100%; }

@media (max-width: 860px) {
    :root { --lp: var(--edge); --rp: var(--edge); }
    .page-home main > section.hero { padding-left: var(--edge); }
    .page-home .hero-content { display: block; }
    .page-sr .hero-content { display: block; }
    .page-sr .hero-device { width: 210px; margin: 2.5rem auto 0; }
    .page-home .hero-text { display: block; }
    .page-home .frequency-badge { margin-bottom: 1rem; }
    .page-home .hero h1 { font-size: min(6rem, calc((100vw - 2 * var(--edge)) / 5.9)); }
    .page-home .hero-device { width: 210px; margin: 2.5rem auto -5rem; }
    .page-home .hero::after { margin: 0 calc(-1 * var(--edge)); }
    .page-home .showcase .showcase-item, .page-home .showcase .showcase-item:nth-of-type(even),
    .weekly-device, .showcase-layout { grid-template-columns: 1fr !important; }
    .page-home .showcase .showcase-item:nth-of-type(even) .showcase-img { order: 0; }
    .weekly-device { padding: 1.75rem 1.5rem; }
    .weekly-device img, .showcase-device img { max-width: 210px; margin: 0 auto; }
    .harmonics-table { display: block; overflow-x: auto; }
    .showcase-screenshots { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
}

@media print {
    .top-nav, .theme-switch, .telegram-banner, footer, .app-cta, .showcase-item { display: none; }
    body { background: #fff; color: #000; }
}
