/* ==========================================================================
   YABAAA — STYLESHEET v3
   Two-column article: sticky rail (H1 + TOC) + interchangeable H2 blocks.
   Breakpoints: 900px (rail unsticks) and 600px (density). Nothing else.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTS  — 3 files (was 7). Playfair 700 for headings, Source Sans 400/600.
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/playfair-display-v40-cyrillic_latin-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0400-045F, U+0490-0491, U+04B0-04B1;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/source-sans-3-v19-cyrillic_latin-regular.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0400-045F, U+0490-0491, U+04B0-04B1;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/source-sans-3-v19-cyrillic_latin-600.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0400-045F, U+0490-0491, U+04B0-04B1;
}

/* Metric-matched fallbacks — kills CLS during font swap. */
@font-face {
    font-family: 'Playfair Fallback';
    src: local('Georgia'), local('Times New Roman');
    size-adjust: 97%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%;
}
@font-face {
    font-family: 'Source Sans Fallback';
    src: local('Arial'), local('Helvetica Neue');
    size-adjust: 94%; ascent-override: 104%; descent-override: 27%; line-gap-override: 0%;
}

/* --------------------------------------------------------------------------
   2. TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Colour — unchanged from v2 so new pages sit beside old ones. */
    --brand:        #1A3A52;
    --brand-2:      #2C5F8D;
    --brand-tint:   #EAF1F7;
    --ink:          #1F2937;
    --ink-soft:     #55606E;
    --bg:           #FAFAFA;
    --surface:      #FFFFFF;
    --line:         #E1E7EE;
    --line-strong:  #C9D4DF;
    --warn:         #9A5B12;
    --warn-tint:    #FDF5E8;
    --accent:       #E8742C;
    --accent-tint:  #FFF6EE;
    --accent-dark:  #B8541A;

    /* Type */
    --font-head: 'Playfair Display', 'Playfair Fallback', Georgia, serif;
    --font-body: 'Source Sans 3', 'Source Sans Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --t-h1:   clamp(2rem,   1.35rem + 2.6vw, 3rem);
    --t-h2:   clamp(1.5rem, 1.2rem  + 1.3vw, 2.1rem);
    --t-h3:   clamp(1.2rem, 1.1rem  + 0.5vw, 1.45rem);
    --t-body: 1.0625rem;
    --t-small: 0.9375rem;
    --t-tiny:  0.8125rem;
    --measure: 100%;

    /* Space — 4px scale */
    --s1: 0.25rem;  --s2: 0.5rem;   --s3: 0.75rem;  --s4: 1rem;
    --s5: 1.5rem;   --s6: 2rem;     --s7: 3rem;     --s8: 4rem;

    /* Shell */
    --nav-h: 50px;
    --page-max: 1520px;
    --rail-w: 400px;
    --gutter: clamp(1rem, 3vw, 2rem);
    --gap: clamp(2rem, 4vw, 3.5rem);
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 2px rgba(26,58,82,.06), 0 4px 12px rgba(26,58,82,.05);
}

/* --------------------------------------------------------------------------
   3. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
    font-family: var(--font-body);
    font-size: var(--t-body);
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--brand);
    line-height: 1.22;
    text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; }

/* Left-aligned, hyphenated, measured. Justify is gone: it makes rivers in
   Cyrillic and hurts scanning. */
p, li { text-wrap: pretty; hyphens: auto; }

a { color: var(--brand-2); text-underline-offset: .15em; }
a:hover { color: var(--brand); }

:focus-visible {
    outline: 3px solid var(--brand-2);
    outline-offset: 2px;
    border-radius: 2px;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 10001;
    background: var(--brand); color: #fff; padding: var(--s3) var(--s5);
    text-decoration: none;
}
.skip-link:focus { left: 0; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. NAVIGATION — visual parity with v2, inline handlers removed
   -------------------------------------------------------------------------- */
.site-nav {
    background: var(--brand-2);
    box-shadow: 0 1px 6px rgba(0,0,0,.12);
    position: sticky;
    top: 0;
    z-index: 10002;
}
.site-nav ul { list-style: none; padding: 0; display: flex; justify-content: flex-end; align-items: center; }
.site-nav li { height: var(--nav-h); }

.site-nav a,
.site-nav button {
    height: 100%;
    padding: 0 clamp(14px, 3vw, 30px);
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0625rem;
    transition: background-color .2s ease;
}
.site-nav a:hover,
.site-nav button:hover { background: rgba(255,255,255,.14); color: #fff; }
.site-nav svg { fill: currentColor; }

.site-nav .nav-home { margin-right: auto; }

/* Slide-out panel */
.site-nav .sidebar {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(260px, 80vw);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background: var(--brand);
    box-shadow: -8px 0 24px rgba(0,0,0,.25);
    transform: translateX(100%);
    transition: transform .25s ease;
}
.site-nav .sidebar[data-open="true"] { transform: translateX(0); }
.site-nav .sidebar li { height: auto; }
.site-nav .sidebar a,
.site-nav .sidebar button { height: 52px; }
.site-nav .sidebar .sidebar-close { justify-content: flex-end; width: 100%; }

.nav-scrim {
    position: fixed; inset: 0; background: rgba(15,28,40,.45);
    opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 10001;
}
.nav-scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

.menu-button { display: none; }
@media (max-width: 600px) {
    .hide-on-mobile { display: none; }
    .menu-button { display: block; }
}

/* --------------------------------------------------------------------------
   5. PAGE SHELL
   -------------------------------------------------------------------------- */
.page {
    max-width: var(--page-max);
    margin-inline: auto;
    padding: var(--s6) var(--gutter) var(--s8);
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, var(--rail-w)) minmax(0, 1fr);
    gap: var(--gap);
    align-items: start;
}
@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; gap: var(--s6); }
}

/* --------------------------------------------------------------------------
   6. RAIL — breadcrumb, H1, lead image, description, meta, TOC
   -------------------------------------------------------------------------- */
.rail {
    position: sticky;
    top: calc(var(--nav-h) + var(--s4));
    max-height: calc(100dvh - var(--nav-h) - var(--s6));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding-right: var(--s2);
}
@media (max-width: 900px) {
    .rail { position: static; max-height: none; overflow: visible; padding-right: 0; }
}

.breadcrumb {
    font-size: var(--t-tiny);
    color: var(--ink-soft);
    margin-bottom: var(--s4);
    display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2);
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-2); text-decoration: underline; }
.breadcrumb .sep { color: var(--line-strong); }
.breadcrumb .current { color: var(--ink); }

.rail > header {
    background: #FFEEDD;
    border: 1px solid #F3D9C2;
    border-radius: var(--radius);
    padding: var(--s4);
}

.rail h1 { margin-bottom: var(--s4); }

/* LCP element. 840px source, displayed at 420 max. */
.rail__figure {
    margin: 0 0 var(--s4);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--brand-tint);
    aspect-ratio: 4 / 3;
}
.rail__figure img { width: 100%; height: 100%; object-fit: cover; }

.rail__lead {
    font-size: var(--t-small);
    color: var(--ink-soft);
    margin-bottom: var(--s4);
}

.rail__meta {
    display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4);
    font-size: var(--t-tiny);
    color: var(--ink-soft);
}

.rail__meta span { display: inline-flex; align-items: center; gap: var(--s2); }
.rail__meta svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* Table of contents — <details> so mobile collapses with no JS */
.toc { border: 0; margin-top: var(--s2); }
.toc > summary {
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--brand);
    cursor: pointer;
    list-style: none;
    padding: var(--s2) 0;
    display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
}
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after {
    content: "";
    width: 9px; height: 9px;
    border-right: 2px solid var(--brand-2);
    border-bottom: 2px solid var(--brand-2);
    transform: rotate(45deg);
    transition: transform .2s ease;
}
.toc[open] > summary::after { transform: rotate(-135deg); }

.toc__list {
    list-style: none;
    padding: 0;
    margin: var(--s2) 0 0;
    counter-reset: toc;
}
.toc__list li { counter-increment: toc; }
.toc__list a {
    display: flex;
    gap: var(--s3);
    padding: var(--s2) var(--s3);
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
    color: var(--ink-soft);
    font-size: var(--t-small);
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.toc__list a::before {
    content: counter(toc);
    flex: 0 0 1.4em;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    font-weight: 700;
}
.toc__list a:hover { background: #FBE7D6; color: var(--accent-dark); }
.toc__list a[aria-current="true"] {
    background: var(--accent);
    border-left-color: var(--accent-dark);
    color: #fff;
    font-weight: 600;
}
.toc__list a[aria-current="true"]::before { color: #fff; }

.toc {
    background: var(--accent-tint);
    border: 1px solid #F3D9C2;
    border-radius: var(--radius);
    padding: var(--s3) var(--s4);
}

@media (max-width: 900px) {
    .toc__list { max-height: 40vh; overflow-y: auto; }
}

/* --------------------------------------------------------------------------
   7. BLOCKS — the H2 section patterns
   Three primitives: base, --split, --stack. Everything else is a component
   dropped inside .block__body.
   -------------------------------------------------------------------------- */
.content > .block + .block { margin-top: var(--s8); }

.block { scroll-margin-top: calc(var(--nav-h) + var(--s5)); }

.block__head {
    display: flex;
    align-items: flex-start;
    gap: var(--s3);
    margin-bottom: var(--s4);
}
/* Optional. Mirrors the TOC number so the reader can match rail to section. */
.block__num {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem);
    height: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem);
    margin-top: .18em;
    border-radius: 50%;
    font-family: var(--font-body);
    font-size: clamp(1rem, .9rem + .3vw, 1.2rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: #fff;
    background: var(--accent);
}
.block__head h2 { margin: 0; }

.block__body > * + * { margin-top: var(--s4); }
:where(.block__body) :where(p, ul, ol) { max-width: var(--measure); }
:where(.block__body) :where(ul, ol) { padding-left: 1.25rem; }
:where(.block__body) :where(li + li) { margin-top: var(--s2); }

/* Pattern 2/3/4/9 — text beside media */
.block--split .block__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 38%);
    gap: var(--gap);
    align-items: start;
}
.block--split .block__body > * + * { margin-top: 0; }
.block--split .block__text > * + * { margin-top: var(--s4); }

/* Media first (pattern 3) */
.block--split-start .block__body { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); }
.block--split-start .block__media { order: -1; }

@media (max-width: 900px) {
    .block--split .block__body,
    .block--split-start .block__body {
        grid-template-columns: 1fr;
        gap: var(--s5);
    }
    .block--split .block__media,
    .block--split-start .block__media { order: 0; }
}

/* Pattern 5 — media between two text passages: plain flow, nothing needed */
.block--stack .block__media { margin-block: var(--s5); }

/* --------------------------------------------------------------------------
   8. COMPONENTS
   -------------------------------------------------------------------------- */

/* Figure ------------------------------------------------------------------ */
.figure { margin: 0; }
.figure img {
    width: 100%;
    border-radius: var(--radius);
    background: var(--brand-tint);
}
.figure figcaption {
    font-size: var(--t-tiny);
    color: var(--ink-soft);
    margin-top: var(--s2);
}
.figure--portrait img { aspect-ratio: 3 / 4; object-fit: cover; }
.figure--wide img { aspect-ratio: 16 / 9; object-fit: cover; }

/* Feature list (pattern 6) ------------------------------------------------- */
.feature-list { list-style: none; padding-left: 0; }
.feature-list li {
    position: relative;
    padding-left: 1.75rem;
}
.feature-list li::before {
    content: "";
    position: absolute;
    left: 0; top: .62em;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--brand-2);
}

/* Downloads (pattern 4) — handles 0 to 8 PDFs -------------------------------*/
.downloads > li { margin-top: 0; }
.downloads {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: var(--s3);
    max-width: none;
}
.download {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: var(--s3) var(--s4);
    background: var(--accent-tint);
    border: 2px solid #F3D9C2;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ink);
    transition: border-color .15s ease, background-color .15s ease;
}
.download:hover { border-color: var(--accent); background: #FFE3CC; color: var(--accent-dark); }
.download svg { flex: 0 0 22px; width: 22px; height: 22px; stroke: var(--accent-dark); fill: none; stroke-width: 1.9; }
.download__name { font-weight: 600; font-size: var(--t-small); line-height: 1.3; }
.download__meta { display: block; font-weight: 400; font-size: var(--t-tiny); color: var(--ink-soft); }

/* Comparison (pattern 9) --------------------------------------------------- */
.compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--s4);
}
.compare__col {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--s4);
}
.compare__col h3 {
    font-family: var(--font-body);
    font-size: var(--t-small);
    font-weight: 600;
    color: var(--brand);
    padding-bottom: var(--s2);
    border-bottom: 1px solid var(--line);
    margin-bottom: var(--s3);
}
.compare__col ul { list-style: none; padding-left: 0; font-size: var(--t-small); }
.compare__col li { padding-left: 1.25rem; position: relative; }
.compare__col li::before {
    content: "";
    position: absolute; left: 0; top: .6em;
    width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong);
}

/* Callout (pattern 10) ----------------------------------------------------- */
.callout {
    display: flex;
    gap: var(--s3);
    padding: var(--s4);
    background: var(--brand-tint);
    border-left: 4px solid var(--brand-2);
    border-radius: 0 var(--radius) var(--radius) 0;
    max-width: var(--measure);
}
.callout svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: .2em; stroke: var(--brand-2); fill: none; stroke-width: 1.8; }
.callout p { font-size: var(--t-small); max-width: none; }
.callout p + p { margin-top: var(--s2); }
.callout--warn { background: var(--warn-tint); border-left-color: var(--warn); }
.callout--warn svg { stroke: var(--warn); }

/* Gallery (pattern 8) — 6 to 20 images, brick layout ------------------------*/
.gallery > li { margin-top: 0; }
.gallery {
    --row: 8.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    grid-auto-rows: var(--row);
    grid-auto-flow: dense;
    gap: var(--s2);
    list-style: none;
    padding-left: 0;
    max-width: none;
}
.gallery__item {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--brand-tint);
    cursor: zoom-in;
    display: block;
    width: 100%;
    height: 100%;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--big  { grid-column: span 2; grid-row: span 2; }

@media (max-width: 600px) {
    .gallery { --row: 6rem; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); }
}

/* Video facade (pattern 7) — no third-party JS until clicked ----------------*/
.video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--brand);
    width: 100%;
    display: block;
    cursor: pointer;
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s ease; }
.video:hover img { opacity: .68; }
.video__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 66px; height: 66px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    display: grid;
    place-items: center;
    pointer-events: none;
}
.video__play::after {
    content: "";
    border-left: 19px solid var(--brand);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}
.video iframe { width: 100%; height: 100%; border: 0; }

/* FAQ (optional pattern 11) ------------------------------------------------ */
.faq { max-width: var(--measure); }
.faq__item {
    border-bottom: 1px solid var(--line);
}
.faq__item > summary {
    padding: var(--s4) var(--s6) var(--s4) 0;
    position: relative;
    cursor: pointer;
    font-weight: 600;
    color: var(--brand);
    list-style: none;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after {
    content: "";
    position: absolute; right: var(--s3); top: 50%;
    width: 9px; height: 9px;
    border-right: 2px solid var(--brand-2);
    border-bottom: 2px solid var(--brand-2);
    transform: translateY(-65%) rotate(45deg);
    transition: transform .2s ease;
}
.faq__item[open] > summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq__item > summary:hover { color: var(--brand-2); }
.faq__answer { padding-bottom: var(--s4); }
.faq__answer p { font-size: var(--t-small); }

/* Author / disclaimer ------------------------------------------------------ */
.article-note {
    margin-top: var(--s8);
    padding-top: var(--s4);
    border-top: 1px solid var(--line);
    font-size: var(--t-tiny);
    color: var(--ink-soft);
    max-width: var(--measure);
}

/* Tables ------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: var(--t-small); }
.table-wrap th, .table-wrap td { padding: var(--s3); border-bottom: 1px solid var(--line); text-align: left; }
.table-wrap th { background: var(--brand-tint); color: var(--brand); font-weight: 600; }

/* --------------------------------------------------------------------------
   9. LIGHTBOX — native <dialog>: free focus trap and Escape
   -------------------------------------------------------------------------- */
.lightbox {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 100vw;
    max-height: 100dvh;
    width: 100%;
    height: 100%;
}
.lightbox::backdrop { background: rgba(12,22,31,.92); }
.lightbox__stage {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: var(--s5);
}
.lightbox img {
    max-width: 100%;
    max-height: 82dvh;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}
.lightbox__caption {
    color: #E8EDF2;
    font-size: var(--t-small);
    text-align: center;
    margin-top: var(--s3);
    max-width: 60ch;
}
.lightbox__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    line-height: 1;
}
.lightbox__btn:hover { background: rgba(255,255,255,.26); }
.lightbox__prev { left: var(--s4); }
.lightbox__next { right: var(--s4); }
.lightbox__close {
    position: absolute;
    top: var(--s4); right: var(--s4);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
}
.lightbox__close:hover { background: rgba(255,255,255,.26); }

/* --------------------------------------------------------------------------
   10. FOOTER — visual parity with v2
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--brand);
    color: #D9E2EA;
    padding: var(--s6) var(--gutter);
    margin-top: var(--s8);
}
.footer-languages {
    display: flex; justify-content: center; align-items: center; gap: var(--s3);
    font-size: var(--t-small);
    margin-bottom: var(--s4);
}
.footer-languages a { color: #D9E2EA; text-decoration: none; }
.footer-languages a:hover { color: #fff; text-decoration: underline; }
.footer-languages .separator { color: rgba(217,226,234,.4); }

.footer-container {
    max-width: var(--page-max);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s4);
}
.footer-share { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.footer-share a {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: #D9E2EA;
    transition: background-color .2s ease, color .2s ease;
}
.footer-share a:hover { background: rgba(255,255,255,.12); color: #fff; }
.footer-share svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 2; }

.footer-legal { font-size: var(--t-small); text-align: center; }
.footer-legal a { color: #D9E2EA; }
.footer-legal .separator { color: rgba(217,226,234,.4); margin: 0 var(--s2); }

/* --------------------------------------------------------------------------
   11. MOTION & PRINT
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    .gallery__item:hover img { transform: none; }
}

@media print {
    .site-nav, .site-footer, .toc, .nav-scrim, .lightbox { display: none !important; }
    .layout { display: block; }
    .rail { position: static; max-height: none; }
    body { background: #fff; font-size: 11pt; }
    .block { break-inside: avoid; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
