/*
Theme Name: dds_thelegalbaba.com
Author: Андреева Элина Валерьевна
Description: Тема для учебного сайта о юридических экзаменах: правовые понятия, аргументация и разбор задач. Оформление в духе университетского конспекта-справочника на бумаге в клетку.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jurkon
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/caveat-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/caveat-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Переменные ---------- */
:root {
    --paper: #EDE6D3;
    --grid: #C9BFA6;
    --grid-soft: rgba(201, 191, 166, 0.55);
    --margin-red: #B5543F;
    --ink: #1E2C4A;
    --night: #141B29;
    --blue: #25365B;
    --muted: #6B7280;
    --marker: #E8B33A;
    --red: #B5543F;
    --sheet: #F4EFE0;
    --kraft: #D7C9A8;
    --steel: #6F86A8;
    --navy-deep: #18233D;
    --shell: min(85%, 1240px);
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --f-body: "PT Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --f-mono: "IBM Plex Mono", "PT Mono", Consolas, "Courier New", monospace;
    --f-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
}

/* ---------- Скрытые элементы (JS hidden) ---------- */
.cookie-banner[hidden],
.map-panel[hidden],
.task-answer[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--margin-red), var(--margin-red)),
        linear-gradient(var(--grid-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-soft) 1px, transparent 1px);
    background-size: 2px 100%, 22px 22px, 22px 22px;
    background-position: calc((100% - var(--shell)) / 2 - 30px) 0, 0 0, 0 0;
    background-repeat: no-repeat, repeat, repeat;
}
p, li, dd, td, th, blockquote, figcaption, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; hyphens: auto; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 700; line-height: 1.15; margin: 1.4em 0 0.55em; color: var(--ink); }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; }
button { font: inherit; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 200;
    background: var(--marker); color: var(--ink);
    padding: 0.6rem 1rem; font-family: var(--f-head); text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }

.shell { width: var(--shell); margin-inline: auto; }

/* ---------- Кнопка-штамп ---------- */
.stamp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 0.5em 1.1em;
    border: 3px solid var(--red);
    border-radius: 0;
    background: rgba(244, 239, 224, 0.6);
    color: var(--red);
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: inset 0 0 0 2px rgba(244, 239, 224, 0.9), inset 0 0 0 3px rgba(181, 84, 63, 0.45);
    transition: background-color 0.12s, color 0.12s, transform 0.08s;
}
.stamp-btn:hover, .stamp-btn:focus-visible { background: var(--red); color: var(--sheet); }
.stamp-btn:active { transform: translate(1px, 1px); }
.stamp-btn--small { font-size: 0.8rem; padding: 0.4em 0.8em; border-width: 2px; }

/* Ссылки в тексте — жёлтый маркер */
.entry-content a, .page-lead a, .crumbs a, .map-note a, .form-note a, .note-text a, .widget .textwidget a {
    text-decoration: none;
    background-image: linear-gradient(var(--marker), var(--marker));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 0.3em;
    transition: background-size 0.15s;
}
.entry-content a:hover, .page-lead a:hover, .crumbs a:hover, .map-note a:hover, .form-note a:hover, .note-text a:hover, .widget .textwidget a:hover { background-size: 100% 100%; }

/* ---------- Шапка ---------- */
.masthead {
    background: var(--ink);
    color: var(--sheet);
    border-bottom: 4px solid var(--navy-deep);
}
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 1.1rem 0 1.15rem;
}
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; min-width: 0; }
.brand-mark {
    flex: 0 0 auto;
    display: grid; place-items: center;
    width: 76px; height: 76px;
    border: 2px solid var(--marker);
    padding: 4px;
}
.brand-svg { display: block; width: 62px; height: 62px; }
.brand-logo { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.brand-name {
    font-family: var(--f-head);
    font-weight: 500;
    font-size: clamp(1.15rem, 2.1vw, 1.75rem);
    line-height: 1.12;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #F6F1E2;
    max-width: 30ch;
}
.brand-desc { font-size: 0.82rem; line-height: 1.4; color: #B9C0CE; max-width: 58ch; }

.primary-nav { flex: 0 0 auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; }
.nav-list a {
    display: inline-block;
    padding: 0.3rem 0;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.03em;
    color: #E9E2CE;
    text-decoration: none;
    border-bottom: 3px solid transparent;
}
.nav-list a:hover, .nav-list a:focus-visible { color: var(--marker); border-bottom-color: rgba(232, 179, 58, 0.5); }
.nav-list .current-menu-item > a, .nav-list .current_page_item > a { color: var(--marker); border-bottom-color: var(--marker); }

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.55rem;
    background: transparent;
    color: var(--marker);
    border: 2px solid var(--marker);
    padding: 0.45rem 0.8rem;
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ---------- Главная: общие ---------- */
.front { padding: 2.2rem 0 3.5rem; }
.fs { position: relative; padding: 2.4rem 0; }
.fs + .fs { border-top: 1px solid rgba(30, 44, 74, 0.35); }
.fs-title {
    margin: 0 0 1.4rem;
    font-size: clamp(1.65rem, 5vw, 3.6rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    hyphens: manual;
}
.empty-note { font-family: var(--f-mono); font-size: 0.92rem; color: var(--muted); }

/* Заметки на полях */
.margin-notes { display: none; }
@media (min-width: 1560px) {
    .margin-notes {
        display: flex;
        flex-direction: column;
        gap: 2.4rem;
        position: absolute;
        top: 4.5rem;
        right: 100%;
        margin-right: 46px;
        width: 108px;
        pointer-events: none;
    }
    .mnote {
        display: block;
        font-family: var(--f-hand);
        font-weight: 500;
        font-size: 1.12rem;
        line-height: 1.1;
        color: var(--ink);
        transform: rotate(-7deg);
        border-bottom: 2px solid var(--marker);
        padding-bottom: 0.15rem;
    }
    .mnote--stamp {
        align-self: flex-start;
        font-family: var(--f-head);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--red);
        border: 2px solid var(--red);
        padding: 0.15rem 0.45rem;
        transform: rotate(-9deg);
    }
}

/* ---------- Блок 1: анатомия понятия ---------- */
.fs-anatomy { padding-top: 0.6rem; }
.spread {
    position: relative;
    background-color: #F2ECDA;
    background-image:
        linear-gradient(var(--grid-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-soft) 1px, transparent 1px);
    background-size: 18px 18px;
    border: 3px solid var(--ink);
    box-shadow: 7px 7px 0 var(--ink);
    padding: 1.6rem 2.2rem 2.2rem;
}
.spread .fs-title { margin-bottom: 1.6rem; }
.spread-tab {
    position: absolute;
    top: 1.6rem;
    right: -22px;
    width: 18px;
    height: 46%;
    background: var(--kraft);
    border: 2px solid var(--ink);
    border-left: 0;
    border-radius: 0 6px 6px 0;
}
.spread-pages {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
    gap: 0 1.6rem;
    align-items: stretch;
}
.spread-left { position: relative; min-width: 0; display: flex; align-items: center; }
.anatomy-img { display: block; width: 100%; height: auto; aspect-ratio: 988 / 880; }
.anatomy-lines {
    position: absolute;
    left: 0; top: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 2;
}
.anatomy-lines path { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.anatomy-lines circle { fill: var(--ink); }
.spread-rings {
    position: relative;
    background-image:
        radial-gradient(ellipse 13px 5px at 50% 50%, transparent 55%, var(--ink) 58%, var(--ink) 80%, transparent 84%);
    background-size: 30px 15px;
    background-repeat: repeat-y;
}
.spread-rings::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    margin-left: -1px;
    background: var(--ink);
}
.anatomy-list {
    list-style: none;
    margin: 0;
    padding: 0.4rem 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.9rem;
    font-size: 0.92rem;
    line-height: 1.45;
    min-width: 0;
    position: relative;
    z-index: 3;
}
.anatomy-item { position: relative; }
.mark {
    font-weight: 700;
    padding: 0 0.2em;
    background: linear-gradient(transparent 12%, var(--marker) 12%, var(--marker) 88%, transparent 88%);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* ---------- Блок 2: карта отраслей ---------- */
.fs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 2rem; margin-bottom: 1.4rem; }
.fs-head .fs-title { margin: 0; }
.red-stamp {
    display: inline-block;
    padding: 0.25em 0.8em;
    border: 3px solid var(--red);
    color: var(--red);
    background: rgba(244, 239, 224, 0.55);
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(1.05rem, 2vw, 1.5rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transform: rotate(-4deg);
    box-shadow: inset 0 0 0 3px rgba(244, 239, 224, 0.8), inset 0 0 0 4px rgba(181, 84, 63, 0.5);
}
.map-strip {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 2px;
    background: var(--ink);
    border: 2px solid var(--ink);
}
.map-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 0;
    min-height: 6.2rem;
    padding: 0.9rem 0.4rem;
    border: 0;
    background: #273A63;
    color: #F2ECDA;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.12s;
}
.map-cell--paper { background: var(--kraft); color: var(--ink); }
.map-cell:hover { background: #31497A; }
.map-cell--paper:hover { background: #E3D7B8; }
.map-name {
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 0.86rem;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    overflow-wrap: anywhere;
}
.map-count { font-family: var(--f-mono); font-size: 0.76rem; opacity: 0.92; }
.map-count b { font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; }
.map-cell[aria-selected="true"] { box-shadow: inset 0 -6px 0 var(--marker); }
.map-cell[aria-selected="true"]::after {
    content: "";
    position: absolute;
    left: 50%; bottom: -12px;
    margin-left: -9px;
    border: 9px solid transparent;
    border-bottom: 0;
    border-top-color: var(--marker);
    z-index: 2;
}
.map-panel {
    margin-top: 1rem;
    padding: 1.1rem 1.5rem;
    background: var(--sheet);
    border: 2px solid var(--ink);
    border-left: 8px solid var(--marker);
}
.map-panel-row { margin: 0 0 0.5rem; }
.map-panel-row:last-child { margin-bottom: 0; }
.map-label {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0.05em 0.5em;
    border: 2px solid var(--red);
    color: var(--red);
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: 0.1em;
}
.map-note { margin: 0.9rem 0 0; font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }

/* ---------- Блок записей ---------- */
.card-drawer {
    background: var(--blue);
    border: 3px solid var(--ink);
    padding: 2.2rem 1.6rem 1.6rem;
    box-shadow: 7px 7px 0 rgba(30, 44, 74, 0.35);
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.6rem;
}
.card-grid--list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 2.4rem 1.6rem; padding-top: 0.8rem; }
.latest-more { margin: 1.6rem 0 0; text-align: right; }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--sheet);
    border: 1.5px solid var(--ink);
    padding: 0.9rem 0.9rem 1rem;
    box-shadow: 4px 4px 0 rgba(20, 27, 41, 0.55);
    transition: transform 0.12s, box-shadow 0.12s;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--marker); }
.card-tab {
    position: absolute;
    top: -14px;
    left: 18px;
    width: 26px;
    height: 30px;
    background: var(--marker);
    border: 1.5px solid var(--ink);
    box-shadow: 2px 2px 0 rgba(20, 27, 41, 0.35);
}
.card-grid .card:nth-child(3n+1) .card-tab { background: var(--kraft); }
.card-thumb {
    border: 1.5px solid var(--ink);
    border-bottom: 5px solid var(--marker);
    overflow: hidden;
    background: #EFE8D6;
}
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding-top: 0.9rem; }
.card-pin {
    align-self: flex-start;
    margin-bottom: 0.4rem;
    padding: 0 0.45em;
    border: 2px solid var(--red);
    color: var(--red);
    font-family: var(--f-head);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.card-title {
    margin: 0 0 0.55rem;
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
.card-title a { text-decoration: none; color: var(--ink); }
.card-title a:hover { background: linear-gradient(transparent 55%, rgba(232, 179, 58, 0.75) 55%); }
.card-title::after { content: ""; display: block; width: 3.2rem; height: 4px; margin-top: 0.45rem; background: var(--marker); }
.card-excerpt { font-size: 0.92rem; line-height: 1.5; color: #2B3753; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot {
    margin-top: auto;
    padding-top: 0.7rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}
.card-date { font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); }

/* ---------- Блок 3: задача ---------- */
.task-sheet {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    border: 3px solid var(--ink);
    box-shadow: 7px 7px 0 var(--blue);
    background: var(--sheet);
}
.task-text {
    min-width: 0;
    padding: 28px 2rem 28px 84px;
    background-image:
        linear-gradient(90deg, transparent 56px, var(--margin-red) 56px, var(--margin-red) 58px, transparent 58px),
        repeating-linear-gradient(180deg, transparent 0, transparent 27px, rgba(30, 44, 74, 0.16) 27px, rgba(30, 44, 74, 0.16) 28px);
    background-attachment: local;
}
.task-cond { font-family: var(--f-mono); font-size: 0.88rem; line-height: 28px; margin: 0 0 28px; }
.task-q { font-weight: 500; }
.task-answers { border-top: 2px dashed rgba(30, 44, 74, 0.45); padding-top: 26px; }
.task-answer-title {
    display: inline-block;
    margin: 0 0 0.3rem;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--red);
}
.task-answer p { margin: 0; line-height: 28px; font-size: 0.98rem; }
.task-ruler {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 3.6rem 1.2rem 1.4rem 2.4rem;
    border-left: 2px solid var(--ink);
    background-color: #E9E1CB;
    background-image:
        repeating-linear-gradient(180deg, var(--ink) 0, var(--ink) 1px, transparent 1px, transparent 14px),
        repeating-linear-gradient(180deg, var(--ink) 0, var(--ink) 2px, transparent 2px, transparent 70px);
    background-size: 10px 100%, 20px 100%;
    background-position: 0 3rem, 0 3rem;
    background-repeat: no-repeat;
}
.task-badge {
    position: absolute;
    top: 0.9rem;
    left: 1.6rem;
    right: 0.8rem;
    padding: 0.15rem 0.5rem;
    background: var(--marker);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transform: rotate(-2deg);
}
.ruler-scale {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 1.2rem;
    padding: 1rem 0;
}
.ruler-scale::before {
    content: "";
    position: absolute;
    left: 7px; top: 0; bottom: 0;
    border-left: 2px dotted rgba(181, 84, 63, 0.6);
}
.ruler-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.2rem 0.3rem 0.2rem 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.3rem;
    text-align: left;
    cursor: pointer;
}
.ruler-step::before {
    content: "";
    flex: 0 0 auto;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 3px #E9E1CB;
}
.ruler-step:hover { color: var(--red); }
.ruler-step.is-active { background: linear-gradient(transparent 20%, var(--marker) 20%, var(--marker) 85%, transparent 85%); }
.ruler-step.is-active::before { box-shadow: 0 0 0 3px #E9E1CB, 0 0 0 5px var(--red); }
.ruler-hint { margin: 0.6rem 0 0; font-family: var(--f-mono); font-size: 0.72rem; line-height: 1.4; color: var(--muted); }

/* ---------- Блок 4: словарь ---------- */
.dict-box {
    position: relative;
    background: var(--ink);
    border: 3px solid var(--navy-deep);
    padding: 1.2rem 1.4rem 1.6rem;
}
.dict-wall { display: flex; flex-direction: column; gap: 0.8rem; }
.dict-row { position: relative; display: flex; gap: 0.7rem; }
.dict-row::before {
    content: "";
    position: absolute;
    left: -1.4rem; right: -1.4rem; top: 50%;
    height: 1px;
    background: rgba(215, 201, 168, 0.4);
}
.dict-tab {
    position: relative;
    flex: 1 1 auto;
    min-width: 7.2rem;
    height: 2.3rem;
    padding: 0 0.9rem;
    border: 1px solid rgba(10, 14, 24, 0.5);
    background: #1B2946;
    color: #F2ECDA;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(215, 201, 168, 0.22), 2px 3px 0 rgba(0, 0, 0, 0.25);
    transition: transform 0.1s, background-color 0.12s;
}
.dict-tab--navy { background: #22345A; border-color: #43597F; }
.dict-tab--blue { background: #34497A; }
.dict-tab--steel { background: var(--steel); color: #F7F3E8; }
.dict-tab--paper { background: var(--kraft); color: var(--ink); }
.dict-tab--light { background: var(--sheet); color: var(--ink); }
.dict-tab:hover { transform: translateY(-2px); }
.dict-tab.is-active { background: var(--marker); color: var(--ink); box-shadow: 0 4px 0 var(--red); transform: translateY(-2px); }
.tab-jut-left { margin-left: -2.6rem; padding-left: 1.8rem; }
.tab-jut-right { margin-right: -2.6rem; padding-right: 1.8rem; }
.dict-card {
    position: relative;
    margin: 1.6rem 0 0;
    padding: 1.1rem 1.5rem 1.2rem;
    background: var(--sheet);
    border: 2px solid var(--navy-deep);
    border-top: 8px solid var(--marker);
}
.dict-term {
    margin: 0 0 0.35rem;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.dict-text { margin: 0; max-width: 75ch; }

/* ---------- Внутренние страницы ---------- */
.inner { padding: 1.6rem 0 3.5rem; }
.crumbs {
    margin: 0 0 1.6rem;
    font-family: var(--f-mono);
    font-size: 0.8rem;
    color: var(--muted);
}
.crumbs a { color: var(--ink); }
.crumbs-sep { color: var(--red); padding: 0 0.2rem; }
.crumbs-current { color: var(--muted); }

.layout-single { display: block; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 2.5rem 6%;
    align-items: start;
}
.content-area { min-width: 0; }
.page-head { margin-bottom: 1.6rem; }
.page-title {
    margin: 0 0 0.6rem;
    hyphens: manual;
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    line-height: 1.05;
    text-transform: uppercase;
}
.page-lead { color: #34405C; max-width: 70ch; }

.entry {
    background: var(--sheet);
    border: 2px solid var(--ink);
    box-shadow: 7px 7px 0 var(--ink);
    padding: 2rem clamp(1.2rem, 4vw, 3rem) 2.4rem;
}
.entry-head { margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.entry-title { hyphens: manual; margin: 0 0 0.6rem; font-size: clamp(1.8rem, 3.8vw, 2.8rem); line-height: 1.08; text-transform: uppercase; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0; font-family: var(--f-mono); font-size: 0.82rem; color: var(--muted); }
.entry-cat a { color: var(--red); text-decoration: none; border-bottom: 2px solid var(--red); }
.entry-cover { margin: 0 0 1.6rem; border: 2px solid var(--ink); }
.entry-cover img { display: block; width: 100%; height: auto; }
.entry-content { font-size: 1.05rem; line-height: 1.7; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.7rem; text-transform: uppercase; }
.entry-content h2::after { content: ""; display: block; width: 3.5rem; height: 5px; margin-top: 0.4rem; background: var(--marker); }
.entry-content h3 { font-size: 1.35rem; }
.entry-content h4 { font-size: 1.15rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.35em; }
.entry-content ul { list-style: none; padding-left: 1.5em; }
.entry-content ul > li { position: relative; }
.entry-content ul > li::before {
    content: "";
    position: absolute;
    left: -1.2em; top: 0.62em;
    width: 0.5em; height: 0.5em;
    background: var(--red);
}
.entry-content ol > li::marker { font-family: var(--f-head); color: var(--red); }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.1rem 1.4rem;
    background: #E8DFC6;
    border-left: 6px solid var(--red);
    font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.95rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1.5px solid var(--ink); padding: 0.55rem 0.75rem; text-align: left; vertical-align: top; }
.entry-content th { background: var(--ink); color: var(--sheet); font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; }
.entry-content tr:nth-child(even) td { background: rgba(215, 201, 168, 0.35); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; }
.entry-content code, .entry-content pre { font-family: var(--f-mono); font-size: 0.88em; background: #E8DFC6; }
.entry-content code { padding: 0.1em 0.3em; }
.entry-content pre { padding: 1rem; overflow-x: auto; border: 1.5px solid var(--ink); }
.entry-content img { display: block; }
.entry-content hr { border: 0; border-top: 2px dashed rgba(30, 44, 74, 0.45); margin: 2em 0; }
.entry-tags { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.entry-tags a { font-family: var(--f-mono); font-size: 0.8rem; text-decoration: none; padding: 0.15rem 0.55rem; background: var(--kraft); border: 1px solid var(--ink); }
.entry-tags a:hover { background: var(--marker); }
.page-links { margin-top: 1.2rem; font-family: var(--f-mono); }

.post-navigation { margin: 2.2rem 0 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.post-navigation a {
    display: flex; flex-direction: column; gap: 0.3rem;
    padding: 0.9rem 1.1rem;
    background: var(--sheet);
    border: 2px solid var(--ink);
    text-decoration: none;
    height: 100%;
}
.post-navigation a:hover { background: #F7E5B3; }
.post-navigation .nav-next a { text-align: right; }
.nav-label { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }
.nav-title { font-family: var(--f-head); font-weight: 500; text-transform: uppercase; }

/* Сайдбар */
.sidebar {
    min-width: 0;
    position: relative;
    background: #E4DAC0;
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 var(--blue);
    padding: 1.6rem 1.4rem 1.4rem;
    color: var(--ink);
}
.sidebar::before {
    content: "";
    position: absolute;
    top: -14px; left: 1.4rem;
    width: 26px; height: 28px;
    background: var(--marker);
    border: 1.5px solid var(--ink);
}
.sidebar .widget + .widget { margin-top: 1.8rem; }
.sidebar .widget-title {
    margin: 0 0 0.9rem;
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--ink);
}
.sidebar .widget-title::after { content: ""; display: block; width: 2.8rem; height: 4px; margin-top: 0.35rem; background: var(--marker); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.55rem 0; border-bottom: 1px dashed rgba(30, 44, 74, 0.4); color: var(--ink); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); text-decoration: none; font-weight: 700; }
.sidebar a:hover { color: var(--red); }
.sidebar .post-date { display: block; font-family: var(--f-mono); font-size: 0.78rem; color: #4F5868; }
.sidebar p, .sidebar .textwidget { color: var(--ink); }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 2.4rem 0 0; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.7rem;
    border: 2px solid var(--ink);
    background: var(--sheet);
    color: var(--ink);
    font-family: var(--f-head);
    font-weight: 500;
    text-decoration: none;
}
.pager a.page-numbers:hover { background: var(--marker); }
.pager .page-numbers.current { background: var(--ink); color: var(--sheet); }
.pager .page-numbers.dots { border-color: transparent; background: transparent; min-width: 1.6rem; }
.pager .prev, .pager .next { border-color: var(--red); color: var(--red); text-transform: uppercase; letter-spacing: 0.04em; }
.pager .prev:hover, .pager .next:hover { background: var(--red); color: var(--sheet); }

/* Поиск */
.search-form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0; }
.search-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.6rem 0.85rem;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: var(--sheet);
    color: var(--ink);
    font-family: var(--f-mono);
    font-size: 0.92rem;
}
.search-field:focus { outline: 3px solid var(--marker); outline-offset: 0; }
.empty-sheet { background: var(--sheet); border: 2px solid var(--ink); padding: 1.4rem 1.6rem; }

/* 404 */
.lost-sheet {
    position: relative;
    background: var(--sheet);
    border: 3px solid var(--ink);
    box-shadow: 7px 7px 0 var(--ink);
    padding: 2rem clamp(1.2rem, 4vw, 3rem) 2.4rem;
    max-width: 820px;
}
.lost-code {
    margin: 0 0 0.4rem;
    display: inline-block;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(4.5rem, 14vw, 8rem);
    line-height: 1;
    color: var(--red);
    border: 4px solid var(--red);
    padding: 0 0.25em;
    transform: rotate(-4deg);
}
.lost-back { margin: 1.2rem 0 0; }

/* Комментарии */
.notes { margin-top: 2.4rem; background: var(--sheet); border: 2px solid var(--ink); padding: 1.6rem clamp(1rem, 3vw, 2rem); }
.notes-title, .comment-reply-title { margin: 0 0 1rem; font-size: 1.5rem; text-transform: uppercase; }
.comment-reply-title small { margin-left: 0.6rem; font-family: var(--f-mono); font-size: 0.8rem; text-transform: none; }
.notes-list, .notes-list .children { list-style: none; margin: 0; padding: 0; }
.notes-list .children { padding-left: clamp(1rem, 4vw, 2.4rem); border-left: 2px solid var(--marker); margin-left: 0.4rem; }
.note-body { padding: 1rem 0; border-bottom: 1px dashed rgba(30, 44, 74, 0.4); }
.note-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; margin-bottom: 0.5rem; }
.note-avatar { display: block; border: 1.5px solid var(--ink); }
.note-author { font-family: var(--f-head); font-weight: 500; text-transform: uppercase; }
.note-date { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }
.note-wait { font-family: var(--f-mono); font-size: 0.85rem; color: var(--red); }
.note-reply a { font-family: var(--f-head); font-size: 0.85rem; text-transform: uppercase; color: var(--red); text-decoration: none; letter-spacing: 0.05em; }
.comment-respond { margin-top: 1.6rem; }
.comment-form p { margin: 0 0 1rem; }
.comment-form label { display: block; margin-bottom: 0.3rem; font-family: var(--f-head); font-weight: 500; text-transform: uppercase; font-size: 0.88rem; letter-spacing: 0.03em; }
.comment-form .comment-form-cookies-consent label { display: inline; text-transform: none; font-family: var(--f-body); font-weight: 400; font-size: 0.9rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: #FBF8EF;
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 1rem;
}
.form-note { font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); }
.req { color: var(--red); }
.comments-navigation, .comment-navigation { margin: 1rem 0; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--f-mono); font-size: 0.85rem; }

/* ---------- Подвал ---------- */
.colophon {
    background: var(--night);
    color: #C6CCD8;
    padding: 3rem 0 1.4rem;
    border-top: 6px solid var(--ink);
}
.colophon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
.colophon-col { min-width: 0; }
.colophon .widget + .widget { margin-top: 1.6rem; }
.colophon .widget-title {
    margin: 0 0 0.8rem;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #F3EEDF;
}
.colophon .widget-title::after { content: ""; display: block; width: 2.4rem; height: 3px; margin-top: 0.35rem; background: var(--marker); }
.colophon p, .colophon .textwidget { color: #C6CCD8; font-size: 0.95rem; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: 0.4rem; color: #C6CCD8; }
.colophon a {
    color: #EDE6D3;
    text-decoration: none;
    background-image: linear-gradient(rgba(232, 179, 58, 0.55), rgba(232, 179, 58, 0.55));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 1px;
}
.colophon a:hover { color: var(--marker); background-size: 100% 2px; }
.colophon .post-date { color: #9AA2B2; font-size: 0.8rem; }
.colophon-bottom { margin-top: 2.4rem; padding-top: 1.1rem; border-top: 1px solid rgba(237, 230, 211, 0.18); }
.copyright { margin: 0; text-align: center; font-family: var(--f-mono); font-size: 0.8rem; color: #9AA2B2; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 1rem 1.4rem;
    max-width: 780px;
    margin-inline: auto;
    padding: 1rem 1.3rem;
    background: var(--ink);
    color: #E9E2CE;
    border: 2px solid var(--marker);
    box-shadow: 6px 6px 0 rgba(20, 27, 41, 0.5);
}
.cookie-text { margin: 0; font-size: 0.9rem; line-height: 1.45; }
.cookie-accept { flex: 0 0 auto; border-color: var(--marker); color: var(--marker); background: transparent; box-shadow: none; }
.cookie-accept:hover, .cookie-accept:focus-visible { background: var(--marker); color: var(--ink); }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
    .map-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .map-cell[aria-selected="true"]::after { display: none; }
    .nav-list { gap: 0.3rem 1.1rem; }
}

@media (max-width: 960px) {
    :root { --shell: 92%; }
    body { background-position: 6px 0, 0 0, 0 0; }
    .masthead-row { flex-wrap: wrap; }
    .brand { flex: 1 1 0; }
    .nav-toggle { display: inline-flex; }
    .primary-nav { flex: 1 1 100%; display: none; }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0; border-top: 1px solid rgba(233, 226, 206, 0.2); padding-top: 0.4rem; }
    .nav-list a { padding: 0.55rem 0; }
    .spread { padding: 1.4rem 1.4rem 1.6rem; }
    .spread-pages { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .spread-rings { display: none; }
    .spread-left { justify-content: center; }
    .anatomy-img { max-width: 520px; margin-inline: auto; }
    .anatomy-list { counter-reset: part; }
    .anatomy-item { counter-increment: part; padding-left: 2rem; }
    .anatomy-item::before {
        content: counter(part);
        position: absolute; left: 0; top: 0.1rem;
        width: 1.45rem; height: 1.45rem;
        display: grid; place-items: center;
        border: 2px solid var(--red);
        color: var(--red);
        font-family: var(--f-head);
        font-size: 0.8rem;
    }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid--list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .task-sheet { grid-template-columns: minmax(0, 1fr); }
    .task-ruler {
        order: -1;
        border-left: 0;
        border-bottom: 2px solid var(--ink);
        padding: 3.4rem 1.2rem 1rem;
        background-image: repeating-linear-gradient(90deg, var(--ink) 0, var(--ink) 1px, transparent 1px, transparent 14px);
        background-size: 100% 10px;
        background-position: 0 100%;
    }
    .task-badge { left: 1.2rem; right: auto; }
    .ruler-scale { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 0.8rem 1.6rem; padding: 0.4rem 0; }
    .ruler-scale::before { display: none; }
    .colophon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dict-row { flex-wrap: wrap; }
    .dict-row::before { display: none; }
    .tab-jut-left, .tab-jut-right { margin-left: 0; margin-right: 0; padding-left: 0.9rem; padding-right: 0.9rem; }
}

@media (max-width: 600px) {
    .front { padding-top: 1.2rem; }
    .fs { padding: 1.8rem 0; }
    .brand-mark { width: 58px; height: 58px; }
    .brand-svg { width: 46px; height: 46px; }
    .brand-desc { display: none; }
    .brand-name { font-size: 1.02rem; }
    .spread { padding: 1.1rem 1rem 1.3rem; box-shadow: 5px 5px 0 var(--ink); }
    .spread-tab { display: none; }
    .map-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .map-panel { padding: 1rem 1.1rem; }
    .card-drawer { padding: 1.8rem 1rem 1.2rem; }
    .card-grid { grid-template-columns: minmax(0, 1fr); }
    .task-text { padding: 28px 1.1rem 28px 46px; background-image: linear-gradient(90deg, transparent 28px, var(--margin-red) 28px, var(--margin-red) 30px, transparent 30px), repeating-linear-gradient(180deg, transparent 0, transparent 27px, rgba(30, 44, 74, 0.16) 27px, rgba(30, 44, 74, 0.16) 28px); }
    .dict-box { padding: 1rem 1rem 1.2rem; }
    .dict-row { flex-wrap: wrap; gap: 0.6rem; }
    .dict-row::before { display: none; }
    .dict-tab { min-width: 0; flex: 1 1 40%; white-space: normal; height: auto; min-height: 2.3rem; padding: 0.3rem 0.6rem; line-height: 1.15; }
    .tab-jut-left, .tab-jut-right { margin-left: 0; margin-right: 0; padding-left: 0.6rem; padding-right: 0.6rem; }
    .dict-card { padding: 1rem 1.1rem; }
    .entry { padding: 1.4rem 1.1rem 1.8rem; box-shadow: 5px 5px 0 var(--ink); }
    .sidebar { padding: 1.5rem 1.1rem 1.2rem; }
    .lost-sheet { padding: 1.6rem 1.1rem 1.8rem; }
    .colophon-grid { grid-template-columns: minmax(0, 1fr); }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.1rem; }
    .latest-more { text-align: left; }
}

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