/* ==========================================================================
   Pagina articolo — stessa lingua visiva di it.simonerenzi.com
   Impaginato editoriale: titolo su fondo bianco, immagine sotto, colonna di
   lettura stretta. Il lettore audio resta scuro: è un widget multimediale,
   e il contrasto lo stacca dal testo invece di confonderlo.
   ========================================================================== */

@font-face {
    font-family: Inter; font-style: normal; font-weight: 300 900; font-display: swap;
    src: url(/fonts/inter-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: Inter; font-style: normal; font-weight: 300 900; font-display: swap;
    src: url(/fonts/inter-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
        U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #ffffff;
    --bg-alt: #f5f5f7;
    --bg-dark: #1d1d1f;
    --text: #1d1d1f;
    --text-2: #6e6e73;
    --accent: #0071e3;
    /* inchiostro per testo piccolo su fondo tenue: #0071e3 si ferma a 4.15:1 */
    --accent-ink: #0058b0;
    --border: rgba(0, 0, 0, 0.08);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

    --s-sm: 8px; --s-md: 16px; --s-lg: 24px;
    --s-xl: 32px; --s-2xl: 48px; --s-3xl: 64px;

    --w-read: 820px;   /* colonna di lettura */
    --toc-rail: 250px; /* indice nel margine */
    --w-wide: 1080px;  /* immagini e blocchi larghi */
    --nav-h: 68px;

    --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-full: 9999px;
    --sh-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --sh-md: 0 4px 16px rgba(0,0,0,.08);
    --sh-lg: 0 8px 30px rgba(0,0,0,.12);
    --sh-xl: 0 16px 48px rgba(0,0,0,.16);
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --dur: 0.35s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body.blog-post-page {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Azzeramento a bassa specificità: con `body.blog-post-page a` questa regola
   batteva `.nav-brand` e `.post-content a`, che tornavano al colore del testo. */
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; flex: none; }

/* Lo sfondo animato non serve più: la pagina è chiara e ferma. */
#bg-canvas { display: none !important; }

/* --- Barra di avanzamento della lettura ---------------------------------- */
#reading-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: var(--accent);
    z-index: 1100;
    transition: width 0.1s linear;
}

/* --- Navigazione: identica all'elenco ------------------------------------ */
.glass-nav {
    position: fixed; top: 14px; left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    width: calc(100% - 28px); max-width: 1200px;
}
.nav-container {
    display: flex; align-items: center; gap: var(--s-lg);
    background: rgba(29, 29, 31, 0.94);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: var(--r-full);
    padding: 10px 12px 10px 22px;
    box-shadow: var(--sh-md);
}
.nav-brand { font-weight: 700; color: #fff; letter-spacing: -0.02em; white-space: nowrap; }
.nav-brand span { color: #6ea8fe; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links .nav-link, .nav-link {
    color: rgba(255,255,255,0.82);
    font-size: 0.875rem; font-weight: 500;
    padding: 8px 14px; border-radius: var(--r-full);
    white-space: nowrap;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-link:hover { background: rgba(255,255,255,0.12); color: #fff; }
.lang-switcher {
    display: flex; align-items: center; gap: 4px;
    margin-right: var(--s-sm); padding-right: var(--s-sm);
    border-right: 1px solid rgba(255,255,255,0.16);
}
.lang-btn { font-size: 1rem; line-height: 1; padding: 6px; border-radius: var(--r-full); opacity: .45; transition: opacity var(--dur) var(--ease); }
.lang-btn.active, .lang-btn:hover { opacity: 1; }

.burger-menu { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger-menu span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.burger-menu span + span { margin-top: 4px; }
.burger-menu.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease); z-index: 850; }
.mobile-overlay.active { opacity: 1; pointer-events: auto; }

/* --- Intestazione dell'articolo ------------------------------------------ */
.post-hero {
    max-width: var(--w-wide);
    margin: 0 auto;
    padding: calc(var(--nav-h) + var(--s-3xl)) var(--s-lg) 0;
    text-align: center;
}
/* Nell'impaginato chiaro l'immagine sta sotto il titolo, non dietro. */
.hero-overlay { display: none; }
.hero-content { max-width: 820px; margin: 0 auto; }

.article-meta {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; column-gap: var(--s-md); row-gap: var(--s-sm);
    font-size: 0.8125rem; color: var(--text-2);
}
.category-pill {
    font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    font-size: 0.75rem; color: var(--accent-ink);
    background: rgba(0, 113, 227, 0.09);
    padding: 5px 12px; border-radius: var(--r-full);
}
.article-title {
    font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
    font-weight: 800; letter-spacing: -0.035em; line-height: 1.08;
    /* i discendenti non devono essere tagliati */
    padding-bottom: 0.06em;
    margin: var(--s-lg) 0 0;
}

.hero-bg {
    display: block;
    max-width: var(--w-wide);
    margin: var(--s-2xl) auto var(--s-3xl);
    aspect-ratio: 21 / 9;
    width: 100%;
    object-fit: cover;
    background-color: var(--bg-alt);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-lg);
}

/* --- Impianto: indice nel margine, articolo al centro -------------------- */
.article-shell {
    display: grid;
    grid-template-columns: var(--toc-rail) minmax(0, var(--w-read));
    justify-content: center;
    column-gap: var(--s-3xl);
    margin: 0 auto;
    padding: 0 var(--s-lg) var(--s-3xl);
}
/* L'indice accompagna la lettura invece di occupare spazio in cima. */
.toc-rail {
    position: sticky;
    top: calc(var(--nav-h) + var(--s-lg));
    align-self: start;
    max-height: calc(100vh - var(--nav-h) - var(--s-2xl));
    overflow-y: auto;
    overscroll-behavior: contain;
}
.article-container { min-width: 0; }
/* Ancore dei titoli: lo scroll non deve finire sotto la barra. */
.article-container h2[id], .article-container h3[id],
.article-container h4[id], .article-container h5[id], .article-container h6[id] {
    scroll-margin-top: calc(var(--nav-h) + 24px);
}

/* --- Indice dei contenuti ------------------------------------------------ */
.post-toc { padding: 0; }
.post-toc__header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: var(--s-md); flex-wrap: wrap;
    margin-bottom: var(--s-md);
    padding-bottom: var(--s-md);
    border-bottom: 1px solid var(--border);
}
.post-toc__title { font-size: 0.75rem; font-weight: 600; margin: 0; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.post-toc__subtitle { display: none; }
.post-toc__count { display: none; }
.post-toc__count {
    font-size: 0.75rem; font-weight: 500; color: var(--text-2);
    background: #fff; border: 1px solid var(--border);
    padding: 4px 12px; border-radius: var(--r-full); white-space: nowrap;
}
.post-toc__list { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.post-toc__item { margin: 0; }
.post-toc__item--level3 { padding-left: var(--s-md); }
.post-toc__item--level4 { padding-left: var(--s-xl); }
.post-toc__link {
    display: block; position: relative;
    padding: 7px 0 7px 14px;
    font-size: 0.875rem; line-height: 1.45; color: var(--text-2);
    border-left: 2px solid transparent;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.post-toc__link:before {
    content: ''; position: absolute; left: -1px; top: 50%;
    width: 2px; height: 0; background: var(--accent);
    transform: translateY(-50%);
    transition: height var(--dur) var(--ease);
}
.post-toc__link:hover { color: var(--text); }
.post-toc__link.is-active { color: var(--accent-ink); font-weight: 500; }
.post-toc__link.is-active:before { height: 70%; }

/* --- Lettore audio (resta scuro, per stacco) ----------------------------- */
.blog-audio-player {
    background: var(--bg-dark);
    color: #f5f5f7;
    border-radius: var(--r-lg);
    padding: var(--s-lg);
    margin-bottom: var(--s-2xl);
    box-shadow: var(--sh-lg);
}
.blog-audio-header { display: flex; align-items: center; gap: var(--s-md); margin-bottom: var(--s-md); }
.blog-audio-icon {
    width: 42px; height: 42px; flex: none;
    display: grid; place-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--r-full);
    font-size: 1rem;
}
.blog-audio-icon i { color: #fff; }
.blog-audio-info { min-width: 0; }
.blog-audio-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.6); font-weight: 600; }
.blog-audio-title { font-size: 0.9375rem; font-weight: 500; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blog-audio-controls { display: flex; align-items: center; gap: var(--s-md); }
.blog-audio-play-btn {
    width: 48px; height: 48px; flex: none;
    border: 0; border-radius: var(--r-full);
    background: var(--accent); color: #fff;
    cursor: pointer; display: grid; place-items: center;
    font-size: 1rem;
    transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.blog-audio-play-btn:hover { background: #0077ed; transform: scale(1.06); }
.blog-audio-play-btn i { pointer-events: none; }
.blog-audio-waveform-wrap { flex: 1; min-width: 0; }
.blog-audio-waveform { height: 48px; cursor: pointer; }
.blog-audio-waveform canvas { width: 100%; height: 100%; display: block; }
.blog-audio-time { display: flex; justify-content: space-between; font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-top: 4px; font-variant-numeric: tabular-nums; }


/* Il blocco <style> interno al lettore colora l'attivo con #3b82f6: bianco su
   quel blu si ferma a 3.4:1. Qui si riporta sopra la soglia. */
.blog-audio-speed-btn.active { background: var(--accent) !important; border-color: var(--accent) !important; }

/* --- Corpo dell'articolo ------------------------------------------------- */
.post-content { font-size: 1.125rem; line-height: 1.75; color: var(--text); }
.post-content > *:first-child, .post-content *:first-child { margin-top: 0; }
.post-content p { margin: 0 0 var(--s-lg); }
.post-content p:empty { display: none; }
.post-content p:last-child { margin-bottom: 0; }

.post-content h2 {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
    font-weight: 700; letter-spacing: -0.025em; line-height: 1.25;
    margin: var(--s-3xl) 0 var(--s-md);
    padding-bottom: 0.05em;
}
.post-content h3 {
    font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.4rem);
    font-weight: 600; letter-spacing: -0.02em; line-height: 1.3;
    margin: var(--s-2xl) 0 var(--s-sm);
}
.post-content h4 { font-size: 1.0625rem; font-weight: 600; margin: var(--s-xl) 0 var(--s-sm); }
.post-content h5, .post-content h6 { font-size: 1rem; font-weight: 600; margin: var(--s-lg) 0 var(--s-sm); }

.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-content a:hover { text-decoration-thickness: 2px; }
.post-content strong { font-weight: 600; }

.post-content ul, .post-content ol { margin: 0 0 var(--s-lg); padding-left: 1.4em; }
.post-content li { margin-bottom: var(--s-sm); }
.post-content li::marker { color: var(--text-2); }

.post-content blockquote {
    margin: var(--s-xl) 0;
    padding: var(--s-md) var(--s-lg);
    border-left: 3px solid var(--accent);
    background: var(--bg-alt);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    color: var(--text-2);
    font-size: 1.0625rem;
}
.post-content blockquote p:last-child { margin-bottom: 0; }

.post-content img,
.post-content figure.article-image img {
    width: 100%; height: auto; display: block;
    border-radius: var(--r-md);
    box-shadow: var(--sh-md);
}
.post-content figure.article-image { margin: var(--s-2xl) 0; }
.post-content figure.article-image figcaption {
    font-size: 0.8125rem; color: var(--text-2);
    text-align: center; margin-top: var(--s-sm);
}

.post-content code {
    font-family: var(--mono); font-size: 0.875em;
    background: var(--bg-alt); border: 1px solid var(--border);
    padding: 0.15em 0.4em; border-radius: 6px;
}
.post-content pre {
    background: #1d1d1f; color: #f5f5f7;
    border-radius: var(--r-md);
    padding: var(--s-lg);
    overflow-x: auto;
    margin: var(--s-xl) 0;
    font-size: 0.875rem; line-height: 1.6;
}
.post-content pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

/* highlight.js arriva senza tema: senza queste regole i blocchi di codice
   restano monocromi anche dopo l'evidenziazione. */
.post-content .hljs-comment, .post-content .hljs-quote { color: #8e8e93; font-style: italic; }
.post-content .hljs-keyword, .post-content .hljs-selector-tag, .post-content .hljs-literal { color: #ff7ab2; }
.post-content .hljs-string, .post-content .hljs-attr { color: #a5e075; }
.post-content .hljs-number, .post-content .hljs-built_in { color: #d9a5ff; }
.post-content .hljs-title, .post-content .hljs-function .post-content .hljs-title { color: #7cc7ff; }
.post-content .hljs-type, .post-content .hljs-class .post-content .hljs-title { color: #ffd479; }
.post-content .hljs-variable, .post-content .hljs-template-variable { color: #f5f5f7; }

.post-content table { width: 100%; border-collapse: collapse; margin: var(--s-xl) 0; font-size: 0.9375rem; display: block; overflow-x: auto; }
.post-content th, .post-content td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.post-content th { background: var(--bg-alt); font-weight: 600; }

.post-content hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-2xl) 0; }
mjx-container { overflow-x: auto; overflow-y: hidden; max-width: 100%; }

/* --- Mappa mentale ------------------------------------------------------- */
.post-mindmap {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s-lg) var(--s-xl) var(--s-xl);
    /* L'albero è per natura molto più largo che alto: dentro la colonna di
       lettura markmap lo rimpicciolisce fino a renderlo illeggibile, quindi
       qui esce a tutta larghezza. */
    border-left: 0; border-right: 0; border-radius: 0;
    margin: var(--s-3xl) 0;
    padding: var(--s-xl) max(var(--s-lg), calc((100vw - 1240px) / 2));
}
/* Riquadro basso: con 500px restava mezzo vuoto sotto la mappa. */
.post-mindmap svg { width: 100%; height: 380px; display: block; }
.markmap-node-text { fill: var(--text); font-family: var(--font); }
.markmap-link { stroke: rgba(0, 0, 0, 0.22); }

/* --- Coda: dopo la mappa il testo riprende, allineato ma senza barra ----- */
.article-coda {
    display: grid;
    grid-template-columns: var(--toc-rail) minmax(0, var(--w-read));
    justify-content: center;
    column-gap: var(--s-3xl);
    margin: 0 auto;
    padding: 0 var(--s-lg) var(--s-3xl);
}
.article-coda > * { grid-column: 2; }

/* --- Autore -------------------------------------------------------------- */
.author-section {
    display: flex; gap: var(--s-lg); align-items: flex-start;
    margin-top: var(--s-3xl);
    padding-top: var(--s-2xl);
    border-top: 1px solid var(--border);
}
.author-avatar-large {
    width: 72px; height: 72px; flex: none;
    border-radius: var(--r-full); object-fit: cover;
    box-shadow: var(--sh-sm);
}
.author-info h3 { font-size: 1.0625rem; font-weight: 600; margin: 0 0 var(--s-sm); letter-spacing: -0.01em; }
.author-info p { font-size: 0.9375rem; color: var(--text-2); margin: 0; line-height: 1.65; }
.blog-social-icon { transition: opacity var(--dur) var(--ease); }
.blog-social-icon:hover { opacity: .7; }

/* --- Articoli correlati -------------------------------------------------- */
.section-divider { display: none; }
.related-section {
    max-width: var(--w-wide);
    margin: 0 auto;
    padding: var(--s-3xl) var(--s-lg);
    border-top: 1px solid var(--border);
}
.section-title {
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.875rem);
    font-weight: 700; letter-spacing: -0.025em;
    text-align: center; margin: 0 0 var(--s-2xl);
    padding-bottom: 0.05em;
}
.related-grid { display: grid; gap: var(--s-lg); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.related-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--r-lg); overflow: hidden;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
.related-thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--bg-alt); }
.related-content { padding: var(--s-md) var(--s-lg) var(--s-lg); display: flex; flex-direction: column; gap: var(--s-sm); flex: 1; }
.related-title { font-size: 1rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; margin: 0; flex: 1; }
.related-date { font-size: 0.75rem; color: var(--text-2); }

/* --- Piè di pagina ------------------------------------------------------- */
.blog-post-page > footer {
    background: var(--bg-alt) !important;
    border-top: 1px solid var(--border) !important;
    color: var(--text-2) !important;
    padding: var(--s-2xl) var(--s-lg) !important;
    margin-top: 0 !important;
    text-align: center;
    font-size: 0.875rem;
}

/* --- Modalità zen -------------------------------------------------------- */
#zen-exit-btn {
    display: none;
    position: fixed; top: 18px; right: 18px; z-index: 1000;
    background: var(--bg-dark); color: #fff;
    border: 0; border-radius: var(--r-full);
    padding: 10px 18px; font-size: 0.8125rem; font-weight: 500;
    font-family: inherit; cursor: pointer;
    box-shadow: var(--sh-md);
    transition: transform var(--dur) var(--ease);
}
#zen-exit-btn:hover { transform: scale(1.04); }
body.zen-mode #zen-exit-btn { display: block; }
body.zen-mode .glass-nav,
body.zen-mode .post-hero,
body.zen-mode .hero-bg,
body.zen-mode .post-toc,
body.zen-mode .post-mindmap,
body.zen-mode .author-section,
body.zen-mode .related-section,
body.zen-mode .blog-audio-player,
body.zen-mode > footer,
body.zen-mode #chat-launcher { display: none !important; }
body.zen-mode #reading-progress { display: block; }
body.zen-mode .toc-rail { display: none !important; }
body.zen-mode .article-shell { grid-template-columns: minmax(0, 720px); padding-top: var(--s-3xl); }
body.zen-mode .article-coda { display: none !important; }
body.zen-mode .post-content { font-size: 1.125rem; line-height: 1.85; }

/* --- Adattamento a schermi stretti --------------------------------------- */
@media (max-width: 1120px) {
    /* Non c'e' piu' margine per l'indice: torna in cima, come scheda. */
    .article-shell,
    .article-coda { grid-template-columns: minmax(0, var(--w-read)); }
    .article-coda > * { grid-column: 1; }
    .toc-rail {
        position: static; max-height: none; overflow: visible;
        margin-bottom: var(--s-2xl);
    }
    .post-toc {
        background: var(--bg-alt);
        border: 1px solid var(--border);
        border-radius: var(--r-lg);
        padding: var(--s-md) var(--s-lg);
    }
    .post-toc__count { display: inline-block; }
}
@media (max-width: 900px) {
    .hero-bg { aspect-ratio: 16 / 9; border-radius: var(--r-lg); }
}
@media (max-width: 760px) {
    .burger-menu { display: block; }
    .nav-links {
        position: absolute; top: calc(100% + 8px); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: rgba(29,29,31,0.96);
        -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
        border-radius: var(--r-lg); padding: var(--s-sm);
        box-shadow: var(--sh-lg);
        display: none;
    }
    .nav-links.active { display: flex; }
    .lang-switcher { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); margin: 0 0 4px; padding: 0 0 8px; justify-content: center; }
    .post-hero { padding-top: calc(var(--nav-h) + var(--s-2xl)); }
    .post-toc { padding: var(--s-md) var(--s-lg); }
    .author-section { flex-direction: column; align-items: center; text-align: center; }
    .author-info div { justify-content: center; }
    /* La mappa mentale resta nascosta sotto i 768px, come prima: su schermi
       stretti markmap non è leggibile. */
    .post-mindmap { display: none !important; }
}
@media (max-width: 600px) {
    .blog-audio-controls { gap: var(--s-sm); }
    .article-container { padding-left: var(--s-md); padding-right: var(--s-md); }
    .post-hero { padding-left: var(--s-md); padding-right: var(--s-md); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

@media print {
    .glass-nav, #chat-launcher, #chat-box, .related-section,
    .blog-audio-player, #reading-progress, #zen-exit-btn { display: none !important; }
}
