/*
Theme Name: dds_colourservicetr.com
Theme URI: https://colourservicetr.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: clrjrn
*/

/* ---------- Шрифты ---------- */
@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+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: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/oswald-cyrillic-600-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: 600; font-display: swap; src: url("fonts/oswald-latin-600-normal.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: "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+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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-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+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: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-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: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-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+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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-cyrillic-600-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 Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.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; }

/* ---------- Переменные ---------- */
:root {
    --paper: #F3EFE6;
    --paper-hi: #FBF8F1;
    --ink: #1E1E1C;
    --muted: #6B6459;
    --magenta: #9B1B5A;
    --cyan: #2E7E9E;
    --navy: #17324F;
    --ochre: #C9A227;
    --white: #FFFFFF;
    --proc-c: #00A8E4;
    --proc-m: #E90087;
    --proc-y: #FDEC01;
    --proc-k: #212121;
    --sw-violet: #844C97;
    --sw-magenta: #BA2B84;
    --sw-yellow: #F9D738;
    --sw-cyan: #2CA4D4;
    --signal: #F2D13A;
    --navy-soft: #B9C8D8;
    --line: rgba(30, 30, 28, .22);
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --f-body: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(rgba(30, 30, 28, .07) 1px, transparent 1.3px),
        url("images/paper-grain.png");
    background-size: 12px 12px, 240px 240px;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--magenta); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.15;
    margin: 1.6em 0 .55em;
    letter-spacing: .01em;
}
h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p, li, dd, td, th, h1, h2, h3, h4, h5, h6, .card-title, .site-name, figcaption, blockquote {
    overflow-wrap: break-word;
    hyphens: auto;
}
button, input, textarea, select { font: inherit; color: 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: 100;
    padding: .6rem 1rem;
    background: var(--ink);
    color: var(--white);
    font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Контейнер ---------- */
.shell {
    width: min(85%, 1180px);
    margin-inline: auto;
}

/* ---------- Лист: цветовые полосы и линейки по краям ---------- */
.sheet {
    position: relative;
    padding: 0 0 1.5rem;
}
.sheet-strip, .sheet-ruler { display: none; }
.sheet-top, .sheet-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(92%, 1320px);
    margin-inline: auto;
    padding: .9rem 0 1.1rem;
}
.sheet-bottom { padding: 1.2rem 0 0; }
.reg-mark {
    flex: 0 0 18px;
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(30, 30, 28, .45);
    background:
        linear-gradient(rgba(30, 30, 28, .55), rgba(30, 30, 28, .55)) center / 1px 100% no-repeat,
        linear-gradient(rgba(30, 30, 28, .55), rgba(30, 30, 28, .55)) center / 100% 1px no-repeat,
        radial-gradient(circle, rgba(30, 30, 28, .25) 0 4px, transparent 4.5px);
}
.top-scale {
    flex: 0 1 380px;
    height: 12px;
    background:
        repeating-linear-gradient(90deg, rgba(30, 30, 28, .55) 0 1px, transparent 1px 38px) 0 0 / 100% 12px no-repeat,
        repeating-linear-gradient(90deg, rgba(30, 30, 28, .35) 0 1px, transparent 1px 7.6px) 0 100% / 100% 6px no-repeat;
    border-bottom: 1px solid rgba(30, 30, 28, .35);
}

@media (min-width: 1100px) {
    .sheet-strip {
        display: block;
        position: absolute;
        top: 3.2rem; bottom: 3rem;
        width: 22px;
        background: repeating-linear-gradient(to bottom,
            var(--proc-c) 0 58px,
            var(--proc-m) 58px 116px,
            var(--proc-y) 116px 174px,
            var(--proc-k) 174px 252px,
            transparent 252px 760px);
    }
    .sheet-strip--left { left: 1.1%; }
    .sheet-strip--right {
        right: 1.1%;
        background: repeating-linear-gradient(to bottom,
            var(--proc-c) 0 58px,
            var(--proc-m) 58px 116px,
            var(--proc-y) 116px 174px,
            var(--proc-k) 174px 252px,
            transparent 252px 760px);
        background-position: 0 380px;
    }
    .sheet-ruler {
        display: block;
        position: absolute;
        top: 3.2rem; bottom: 3rem;
        width: 14px;
        background:
            repeating-linear-gradient(to bottom, rgba(30, 30, 28, .5) 0 1px, transparent 1px 48px) 0 0 / 14px 100% no-repeat,
            repeating-linear-gradient(to bottom, rgba(30, 30, 28, .3) 0 1px, transparent 1px 8px) 0 0 / 7px 100% no-repeat;
    }
    .sheet-ruler--left { left: calc(1.1% + 40px); }
    .sheet-ruler--right { right: calc(1.1% + 40px); transform: scaleX(-1); }
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    min-height: 2.75rem;
    padding: .55rem 1.3rem;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: var(--ink);
    background: transparent;
    border: 3px solid var(--ink);
    border-radius: 0;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease;
}
.btn:hover { color: var(--white); background: var(--ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--magenta); }
.btn--solid { background: var(--ink); color: var(--white); }
.btn--solid:hover { background: var(--magenta); border-color: var(--ink); color: var(--white); box-shadow: 4px 4px 0 var(--ink); }
.btn--small { min-height: 2.1rem; padding: .25rem .75rem; font-size: .85rem; border-width: 2px; }

/* ---------- Заголовки секций: маркировка на полях ---------- */
.sec-title {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: 0 0 1.4rem;
    font-family: var(--f-head);
    font-size: clamp(1.35rem, 2.3vw, 1.75rem);
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    line-height: 1.1;
}
.sec-title::before {
    content: "";
    flex: 0 0 1.6rem;
    height: 2px;
    background: currentColor;
}
.sec-title::after {
    content: "";
    flex: 1 1 auto;
    min-width: 1.5rem;
    height: 2px;
    background: currentColor;
}
.sec-title > span { min-width: 0; }
.sec-title--light { color: var(--white); }

/* ---------- Шапка ---------- */
.masthead {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem 2.5rem;
    padding: 1.7rem 2.2rem;
    background: var(--ink);
    color: var(--white);
}
.masthead::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 6px;
    background: linear-gradient(90deg, var(--proc-c) 0 25%, var(--proc-m) 25% 50%, var(--proc-y) 50% 75%, var(--proc-k) 75%);
}
.masthead-brand {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    min-width: 0;
}
.masthead-logo { flex: 0 0 auto; display: block; }
.brand-mark { width: 72px; height: 72px; display: block; }
.brand-logo { max-width: 96px; max-height: 96px; width: auto; }
.masthead-text { min-width: 0; }
.site-name {
    margin: 0 0 .5rem;
    font-family: var(--f-head);
    font-size: clamp(1.35rem, 2.5vw, 2.2rem);
    font-weight: 600;
    line-height: 1.12;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.site-name a { color: var(--white); text-decoration: none; }
.site-name a:hover { color: var(--signal); }
.site-desc {
    margin: 0;
    max-width: 44rem;
    font-size: .9rem;
    line-height: 1.5;
    color: #DCD6CA;
}
.masthead-nav { min-width: 0; }
.masthead-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .35rem;
}
.masthead-menu a {
    display: inline-block;
    padding: .2rem 0;
    font-family: var(--f-head);
    font-size: .98rem;
    font-weight: 500;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.masthead-menu a:hover { border-bottom-color: var(--proc-m); color: var(--white); }
.masthead-menu .current-menu-item > a,
.masthead-menu .current_page_item > a,
.masthead-menu .current-menu-ancestor > a { color: var(--signal); }
.menu-toggle { display: none; }

/* ---------- Главная: общие ---------- */
.site-main { padding-top: 2.4rem; }
.front > section, .front > .duo { margin-bottom: 2.8rem; }

/* Блок 1: шкала расхождений */
.drift {
    padding: 1.8rem 2.2rem 2.2rem;
    border: 2px solid var(--ink);
    background: rgba(251, 248, 241, .55);
}
.drift-lead { max-width: 46rem; color: var(--muted); margin-bottom: 1.4rem; }
.drift-bar {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 2px solid var(--ink);
    background:
        linear-gradient(90deg, var(--sw-cyan) 0%, var(--sw-violet) 34%, var(--sw-magenta) 58%, #EE8A4E 80%, var(--proc-y) 100%) 0 0 / 100% 3rem no-repeat,
        var(--paper-hi);
}
.drift-seg { min-width: 0; display: flex; flex-direction: column; }
.drift-seg + .drift-seg { border-left: 1px solid rgba(30, 30, 28, .25); }
.drift-seg-name {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    padding: 0 .5rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: .04em;
    color: var(--white);
    border-left: 1px solid rgba(255, 255, 255, .7);
    margin-left: -1px;
}
.drift-seg:first-child .drift-seg-name { border-left: 0; margin-left: 0; }
.drift-seg:last-child .drift-seg-name { color: var(--ink); }
.drift-seg-note {
    display: block;
    padding: .7rem .9rem .8rem;
    font-size: .86rem;
    line-height: 1.45;
    color: var(--muted);
    border-top: 2px solid var(--ink);
}
.drift-swatches {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}
.swatch {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 1.8rem;
}
.swatch::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: 1px; height: 1.8rem;
    background: var(--ink);
}
.swatch-chip {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 3.4rem;
    height: 5.4rem;
    padding-bottom: .45rem;
    border: 2px solid var(--ink);
    font-family: var(--f-head);
    font-size: .8rem;
    line-height: 1.1;
    color: var(--white);
    transition: transform .12s ease;
}
.swatch-chip b { font-size: 1.05rem; font-weight: 600; }
.swatch:hover .swatch-chip { transform: translateY(-4px); }
.swatch--c .swatch-chip { background: var(--sw-cyan); }
.swatch--v .swatch-chip { background: var(--sw-violet); }
.swatch--m .swatch-chip { background: var(--sw-magenta); }
.swatch--y .swatch-chip { background: var(--sw-yellow); color: var(--ink); }
.swatch--k .swatch-chip { background: var(--proc-k); }
.swatch-cap {
    margin-top: .6rem;
    font-size: .82rem;
    line-height: 1.35;
    letter-spacing: .02em;
    color: var(--muted);
    max-width: 11rem;
}

/* Блок 2: анатомия отпечатка */
.anatomy {
    padding: 1.8rem 2.2rem 2.2rem;
    background: var(--navy);
    color: var(--white);
    border-radius: 4px;
}
.anatomy-stage {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr) 3.2rem;
    gap: 1.4rem;
    align-items: stretch;
}
.anatomy-rail {
    display: flex;
    gap: .55rem;
    justify-content: space-between;
}
.anatomy-crosses {
    flex: 0 0 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='38'%3E%3Cpath d='M7 12v14M0 19h14' stroke='%23ffffff' stroke-width='1.3' fill='none' opacity='.85'/%3E%3C/svg%3E") 0 0 / 14px 38px repeat-y;
    background-repeat: round;
}
.anatomy-scale {
    flex: 0 0 18px;
    border-left: 1px solid rgba(255, 255, 255, .6);
    background:
        repeating-linear-gradient(to bottom, rgba(255, 255, 255, .7) 0 1px, transparent 1px 30px) 0 0 / 18px 100% no-repeat,
        repeating-linear-gradient(to bottom, rgba(255, 255, 255, .45) 0 1px, transparent 1px 6px) 0 0 / 9px 100% no-repeat,
        rgba(255, 255, 255, .06);
}
.anatomy-rail--right .anatomy-scale { transform: scaleX(-1); }
.anatomy-figure {
    position: relative;
    margin: 0;
    min-width: 0;
    container-type: inline-size;
}
.anatomy-figure img { width: 70%; height: auto; aspect-ratio: 975 / 585; }
.anatomy-labels { position: absolute; inset: 0; }
.anatomy-label {
    --reach: 1.8rem;
    position: absolute;
    left: 70%;
    right: 0;
    padding-left: calc(var(--reach) + .55rem);
    display: flex;
    flex-direction: column;
    transform: translateY(-.75em);
    line-height: 1.2;
}
.anatomy-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: var(--reach);
    height: 1px;
    background: var(--white);
}
.anatomy-label b {
    font-family: var(--f-head);
    font-weight: 500;
    font-size: clamp(.95rem, 1.6vw, 1.15rem);
    letter-spacing: .02em;
}
.anatomy-label small {
    margin-top: .2rem;
    font-size: .78rem;
    color: var(--navy-soft);
}
.anatomy-label--1 { top: 17.6%; }
.anatomy-label--2 { top: 36%; }
.anatomy-label--3 { top: 53.3%; }
.anatomy-label--4 { top: 78.6%; left: 58%; --reach: calc(12cqw + 1.8rem); }

/* ---------- Последние записи ---------- */
.latest-sub {
    margin: -1rem 0 1.5rem 2.5rem;
    font-family: var(--f-head);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.latest-more { margin: 1.6rem 0 0; text-align: right; }
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 1.6rem;
}
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
    --tone: var(--magenta);
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: .85rem;
    background: var(--paper-hi);
    border: 1.5px solid var(--ink);
    overflow: hidden;
    transition: transform .14s ease, box-shadow .14s ease;
}
.card--tone-1 { --tone: var(--sw-violet); }
.card--tone-2 { --tone: var(--cyan); }
.card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--tone); }
.card-thumb { position: relative; border: 1px solid var(--ink); background: #ddd6c8; }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; }
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: .95rem .15rem .1rem;
}
.card-title {
    margin: 0 0 .55rem;
    font-family: var(--f-head);
    font-size: 1.28rem;
    font-weight: 600;
    line-height: 1.15;
    text-transform: uppercase;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--tone); }
.card-excerpt { flex: 1; font-size: .93rem; line-height: 1.5; color: #3B3833; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .7rem;
}
.card-date {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    letter-spacing: .06em;
    color: var(--muted);
}
.card-date::before { content: ""; width: .6rem; height: .6rem; background: var(--tone); }
.empty-note { color: var(--muted); font-style: italic; }

/* ---------- Блоки 3 и 4 ---------- */
.duo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.8rem;
    align-items: stretch;
}
.duo > section { min-width: 0; }

/* Блок 3: палитра носителей */
.media {
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--ink);
    background: #E9E7E2;
}
.sec-title--band {
    margin: 0;
    padding: 1rem 1.4rem;
    background: #E6E4DF;
    border-bottom: 1.5px solid var(--ink);
}
.media-board {
    flex: 1;
    padding: 1.6rem 1.4rem;
    background:
        linear-gradient(90deg, var(--proc-c) 0 25%, #F08BB8 25% 50%, var(--proc-m) 50% 75%, var(--proc-c) 75%) 0 0 / 100% 25.2% no-repeat,
        linear-gradient(90deg, var(--proc-m) 0 25%, #A9DCEE 25% 50%, var(--proc-c) 50% 75%, var(--proc-m) 75%) 0 33.333% / 100% 25.2% no-repeat,
        linear-gradient(90deg, var(--proc-y) 0 25%, #A9DCEE 25% 50%, var(--proc-c) 50% 75%, var(--proc-y) 75%) 0 66.666% / 100% 25.2% no-repeat,
        linear-gradient(90deg, var(--proc-k) 0 25%, #A7A7A6 25% 50%, #8E8E8D 50% 75%, var(--proc-k) 75%) 0 100% / 100% 25.2% no-repeat;
}
.media-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}
.media-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: .5rem .5rem .65rem;
    background: var(--white);
    border: 1px solid rgba(30, 30, 28, .35);
    box-shadow: 2px 3px 0 rgba(30, 30, 28, .25);
    transition: transform .14s ease;
}
.media-item:nth-child(odd) { transform: rotate(-.6deg); }
.media-item:nth-child(even) { transform: rotate(.5deg); }
.media-item:hover { transform: rotate(0) translateY(-3px); }
.media-item img { width: 100%; height: auto; aspect-ratio: 295 / 260; object-fit: cover; }
.media-name {
    margin-top: .5rem;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: .98rem;
    letter-spacing: .02em;
}
.media-spec { font-size: .76rem; line-height: 1.35; color: var(--muted); }

/* Блок 4: контрольные метки */
.marks {
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.6rem 1.6rem;
    background: var(--ochre);
    color: var(--ink);
    border: 1.5px solid var(--ink);
}
.sec-title--dark { color: var(--ink); }
.marks-body {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3.4rem;
    gap: 1.2rem;
}
.marks-table-wrap { min-width: 0; overflow-x: auto; }
.marks-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 246, 214, .35);
    font-size: .95rem;
}
.marks-table th, .marks-table td {
    border: 1px solid var(--ink);
    padding: .5rem .7rem;
    text-align: center;
}
.marks-table th {
    font-family: var(--f-head);
    font-weight: 600;
    letter-spacing: .04em;
    background: rgba(30, 30, 28, .1);
}
.marks-table td:first-child { text-align: left; }
.marks-table tbody tr:hover { background: rgba(255, 255, 255, .35); }
.marks-note { margin: .9rem 0 0; font-size: .82rem; line-height: 1.45; color: #3A3118; }
.marks-strip {
    list-style: none;
    margin: 1.2rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    border: 1.5px solid var(--ink);
}
.marks-strip li {
    min-width: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 3.2rem;
    padding-bottom: .25rem;
    font-family: var(--f-head);
    font-size: .78rem;
    font-weight: 500;
    color: var(--white);
}
.marks-strip li + li { border-left: 1px solid var(--ink); }
.marks-strip .p-c { background: var(--proc-c); }
.marks-strip .p-m { background: var(--proc-m); }
.marks-strip .p-y { background: var(--proc-y); color: var(--ink); }
.marks-strip .p-k { background: var(--proc-k); }
.marks-strip .p-r { background: #E2231A; }
.marks-strip .p-g { background: #009A44; }
.marks-strip .p-b { background: #2B3990; }
.marks-strip .p-n { background: #8A8A89; }
.marks-strip-cap { margin: .45rem 0 0; font-size: .8rem; color: #3A3118; }
.density-ruler {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: .2rem .35rem .2rem 0;
    border: 1.5px solid var(--ink);
    font-family: var(--f-head);
    font-size: .72rem;
    background:
        repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 10px) 0 0 / 40% 100% no-repeat,
        repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 50px) 0 0 / 65% 100% no-repeat,
        rgba(255, 246, 214, .35);
}

/* ---------- Внутренние страницы ---------- */
.inner { padding-bottom: 1rem; }
.crumbs {
    margin: 0 0 1.6rem;
    font-size: .88rem;
    letter-spacing: .03em;
    color: var(--muted);
}
.crumbs a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.crumbs a:hover { color: var(--magenta); border-bottom-color: var(--magenta); }
.crumbs-sep { margin: 0 .35rem; color: var(--magenta); }
.crumbs-current { color: var(--muted); }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}
.layout-single { display: block; }
.content-area { min-width: 0; }
.layout-single .entry,
.layout-single .comments,
.layout-single .entry-nav { max-width: 54rem; }

.page-head { margin-bottom: 1.8rem; }
.page-title {
    margin: 0 0 .6rem;
    padding-bottom: .7rem;
    border-bottom: 3px solid var(--ink);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    text-transform: uppercase;
}
.page-intro { color: var(--muted); }

.entry {
    padding: 2rem 2.2rem 2.2rem;
    background: var(--paper-hi);
    border: 1.5px solid var(--ink);
    box-shadow: 6px 6px 0 rgba(30, 30, 28, .12);
}
.entry-head { margin-bottom: 1.4rem; }
.entry-title { margin: 0 0 .5rem; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.entry-meta { margin: 0; font-size: .85rem; letter-spacing: .06em; color: var(--muted); }
.entry-cats { margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.entry-cats a {
    padding: .15rem .55rem;
    font-family: var(--f-head);
    font-size: .8rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    background: var(--cyan);
}
.entry-cats a:hover { background: var(--magenta); color: var(--white); }
.entry-cover { margin: 0 0 1.6rem; border: 1px solid var(--ink); }
.entry-cover img { width: 100%; height: auto; }
.entry-tags { margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a { font-size: .88rem; text-decoration: none; color: var(--muted); border: 1px solid var(--line); padding: .1rem .5rem; }
.entry-tags a:hover { color: var(--magenta); border-color: var(--magenta); }

.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { text-transform: uppercase; border-bottom: 2px solid var(--ink); padding-bottom: .3rem; }
.entry-content a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--magenta);
}
.entry-content a::before {
    content: "";
    display: inline-block;
    width: .45em; height: .45em;
    margin-right: .3em;
    vertical-align: .12em;
    background: var(--magenta);
}
.entry-content a:hover { color: var(--magenta); }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin: 0 0 1.2em; }
.entry-content ul { list-style: none; padding-left: 1.4rem; }
.entry-content ul li { position: relative; }
.entry-content ul li::before {
    content: "";
    position: absolute;
    left: -1.2rem; top: .62em;
    width: .5rem; height: .5rem;
    background: var(--cyan);
}
.entry-content ol li::marker { font-family: var(--f-head); font-weight: 600; color: var(--magenta); }
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.5rem 1.2rem 1.6rem;
    background: var(--navy);
    color: var(--white);
    border-left: 8px solid var(--proc-m);
    font-size: 1.08rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .6rem; font-size: .85rem; color: var(--navy-soft); font-style: normal; }
.entry-content blockquote a { color: var(--white); }
.entry-content table {
    width: 100%;
    margin: 1.4em 0;
    border-collapse: collapse;
    font-size: .95rem;
    border: 1.5px solid var(--ink);
}
.entry-content th, .entry-content td { border: 1px solid var(--ink); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.entry-content th { font-family: var(--f-head); font-weight: 600; letter-spacing: .03em; background: rgba(201, 162, 39, .28); }
.entry-content tbody tr:nth-child(even) { background: rgba(30, 30, 28, .04); }
.wp-block-table { overflow-x: auto; margin: 1.4em 0; }
.wp-block-table table { margin: 0; }
.entry-content img { height: auto; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption, .wp-caption-text { margin-top: .5rem; font-size: .85rem; color: var(--muted); }
.entry-content pre, .entry-content code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9em; }
.entry-content pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--ink); color: #EDE8DC; }
.entry-content hr { border: 0; height: 6px; margin: 2em 0; background: linear-gradient(90deg, var(--proc-c) 0 25%, var(--proc-m) 25% 50%, var(--proc-y) 50% 75%, var(--proc-k) 75%); }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { clear: both; }

.entry-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin: 2rem 0;
}
.entry-nav-link {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 1rem 1.2rem;
    border: 1.5px solid var(--ink);
    background: var(--paper-hi);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    min-width: 0;
}
.entry-nav-link span { font-family: var(--f-head); font-weight: 500; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.entry-nav-link--next { grid-column: 2; text-align: right; }
.entry-nav-link:hover { box-shadow: 5px 5px 0 var(--cyan); transform: translate(-2px, -2px); color: var(--ink); }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    padding: 0 1.4rem 1.4rem;
    background: var(--paper-hi);
    border: 1.5px solid var(--ink);
    color: var(--ink);
}
.sidebar::before {
    content: "";
    display: block;
    height: 8px;
    margin: 0 -1.4rem 1.3rem;
    background: linear-gradient(90deg, var(--proc-c) 0 25%, var(--proc-m) 25% 50%, var(--proc-y) 50% 75%, var(--proc-k) 75%);
}
.sidebar .widget { margin-bottom: 1.8rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 .9rem;
    font-size: 1.05rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink);
}
.sidebar .widget-title::after { content: ""; flex: 1; height: 2px; background: var(--ink); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dashed var(--line); line-height: 1.4; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); text-decoration: none; }
.sidebar a:hover { color: var(--magenta); text-decoration: underline; }
.sidebar .post-date, .sidebar .rss-date { display: block; font-size: .8rem; color: var(--muted); }
.sidebar p, .sidebar .textwidget { color: var(--ink); font-size: .95rem; }
.sidebar .finder { flex-direction: column; }

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin: 2.2rem 0 .5rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .8rem;
    font-family: var(--f-head);
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--ink);
    text-decoration: none;
    background: var(--paper-hi);
    border: 2px solid var(--ink);
    transition: transform .12s ease, box-shadow .12s ease;
}
.pager a.page-numbers:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--magenta); color: var(--ink); }
.pager .page-numbers.current { background: var(--ink); color: var(--white); box-shadow: inset 0 -5px 0 var(--proc-m); }
.pager .page-numbers.dots { border: 0; background: none; min-width: 1.6rem; padding: 0; }
.pager--parts { margin-top: 1.5rem; }
.pager--parts .post-page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.3rem; height: 2.3rem; border: 2px solid var(--ink); text-decoration: none; color: var(--ink); font-weight: 600;
}
.pager--parts .post-page-numbers::before { display: none; }
.pager--parts .post-page-numbers.current { background: var(--ink); color: var(--white); }

/* ---------- Поиск ---------- */
.finder { display: flex; gap: .5rem; max-width: 34rem; margin: 1rem 0 1.4rem; }
.finder-field {
    flex: 1 1 auto;
    min-width: 0;
    height: 2.75rem;
    padding: 0 .9rem;
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 0;
}
.finder-submit { flex: 0 0 auto; }

/* ---------- 404 ---------- */
.lost { max-width: 46rem; padding: 2.4rem 0 1rem; }
.lost-code {
    margin: 0 0 .4rem;
    font-family: var(--f-head);
    font-size: clamp(3.2rem, 9vw, 6rem);
    font-weight: 700;
    line-height: 1;
    color: var(--magenta);
    text-shadow: 4px 4px 0 var(--proc-c), 8px 8px 0 var(--proc-y);
}
.lost-text { color: var(--muted); }

/* ---------- Комментарии ---------- */
.comments { margin-top: 2.6rem; }
.notes, .notes .children { list-style: none; margin: 0; padding: 0; }
.notes .children { margin-left: 1.6rem; padding-left: 1rem; border-left: 2px solid var(--line); }
.note-body {
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    background: var(--paper-hi);
    border: 1px solid var(--ink);
}
.note-head { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; margin-bottom: .5rem; }
.note-avatar { width: 44px; height: 44px; border: 1px solid var(--ink); }
.note-author { font-weight: 600; }
.note-date { font-size: .82rem; color: var(--muted); }
.note-moderation { font-size: .88rem; color: var(--magenta); }
.note-text p:last-child { margin-bottom: 0; }
.note-reply a { font-family: var(--f-head); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.comment-respond {
    margin-top: 1.8rem;
    padding: 1.6rem 1.8rem;
    background: var(--paper-hi);
    border: 1.5px solid var(--ink);
}
.comment-reply-title { margin: 0 0 .8rem; font-size: 1.35rem; text-transform: uppercase; }
.comment-reply-title small { margin-left: .6rem; font-size: .8rem; text-transform: none; }
.form-hint { font-size: .88rem; color: var(--muted); }
.form-row { display: flex; flex-direction: column; gap: .3rem; }
.form-row label { font-weight: 600; font-size: .92rem; }
.form-row input, .form-row textarea {
    width: 100%;
    padding: .6rem .8rem;
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 0;
}
.form-check { display: flex; gap: .5rem; align-items: flex-start; font-size: .88rem; }
.form-check input { margin-top: .3rem; }
.req { color: var(--magenta); }
.comments-pagination, .comment-navigation { margin: 1rem 0; display: flex; justify-content: space-between; gap: 1rem; }

/* ---------- Подвал ---------- */
.colophon {
    margin-top: 1rem;
    padding: 2rem 2.2rem 1.4rem;
    background: var(--ink);
    color: #DCD6CA;
}
.colophon-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.colophon-col { min-width: 0; }
.colophon .widget { margin-bottom: 1rem; }
.colophon .widget-title {
    margin: 0 0 .7rem;
    font-size: 1.2rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--white);
}
.colophon p, .colophon .textwidget { font-size: .92rem; line-height: 1.55; color: #DCD6CA; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { padding: .18rem 0; }
.colophon a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: .22em; }
.colophon a:hover { color: var(--signal); text-decoration-color: var(--signal); }
.colophon .menu li a::before {
    content: "";
    display: inline-block;
    width: .55em; height: .55em;
    margin-right: .55em;
    background: var(--proc-c);
}
.colophon .menu li:nth-child(4n+2) a::before { background: var(--proc-m); }
.colophon .menu li:nth-child(4n+3) a::before { background: var(--proc-y); }
.colophon .menu li:nth-child(4n+4) a::before { background: #F3EFE6; }
.colophon .post-date { display: block; font-size: .8rem; color: #B8B1A4; }
.colophon-copy {
    margin: 1.4rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .25);
    font-size: .86rem;
    color: #CFC8BB;
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    max-width: 62rem;
    margin-inline: auto;
    padding: 1rem 1.4rem;
    background: var(--ink);
    color: #EDE8DC;
    border-top: 6px solid var(--proc-m);
    box-shadow: 6px 6px 0 rgba(30, 30, 28, .3);
}
.cookie-text { margin: 0; font-size: .9rem; line-height: 1.5; min-width: 0; }
.cookie-banner .btn { flex: 0 0 auto; border-color: var(--white); }
.cookie-banner .btn:hover { background: var(--proc-m); box-shadow: 4px 4px 0 var(--white); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
    .duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
    .shell { width: min(92%, 1180px); }
    .masthead { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.3rem 1.4rem; }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: .55rem;
        justify-self: start;
        padding: .45rem .8rem;
        background: transparent;
        color: var(--white);
        border: 2px solid var(--white);
        font-family: var(--f-head);
        letter-spacing: .07em;
        text-transform: uppercase;
        cursor: pointer;
    }
    .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
        display: block;
        width: 18px; height: 2px;
        background: currentColor;
        position: relative;
    }
    .menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
    .menu-toggle-bars::before { top: -6px; }
    .menu-toggle-bars::after { top: 6px; }
    .masthead-nav { display: none; grid-column: 1 / -1; }
    .masthead-nav.is-open { display: block; }
    .masthead-menu { align-items: stretch; gap: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
    .masthead-menu a { display: block; padding: .7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .drift-swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
    .anatomy-stage { grid-template-columns: minmax(0, 1fr); }
    .anatomy-rail { display: none; }
    .colophon-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .anatomy-figure img { width: 100%; }
    .anatomy-labels {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .9rem 1.2rem;
        margin-top: 1.2rem;
    }
    .anatomy-label, .anatomy-label--4 {
        position: relative;
        left: auto; right: auto; top: auto;
        transform: none;
        padding-left: 1.1rem;
    }
    .anatomy-label::before, .anatomy-label--4::before {
        width: .55rem; height: .55rem; top: .35em;
        background: var(--proc-m);
    }
    .drift-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--paper-hi); }
    .drift-seg-name { background: var(--sw-cyan); border-left: 0; margin-left: 0; }
    .drift-seg:nth-child(2) .drift-seg-name { background: var(--sw-violet); }
    .drift-seg:nth-child(3) .drift-seg-name { background: var(--sw-magenta); }
    .drift-seg:nth-child(4) .drift-seg-name { background: var(--proc-y); }
    .drift-seg:nth-child(3) { border-left: 0; }
    .drift-seg:nth-child(n+3) { border-top: 2px solid var(--ink); }
    .drift-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.2rem; }
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .site-main { padding-top: 1.6rem; }
    .masthead-brand { gap: .9rem; align-items: flex-start; }
    .brand-mark { width: 52px; height: 52px; }
    .site-desc { font-size: .82rem; }
    .drift, .anatomy { padding: 1.4rem 1.2rem 1.6rem; }
    .marks { padding: 1.2rem 1.1rem 1.3rem; }
    .marks-body { grid-template-columns: minmax(0, 1fr); }
    .marks-strip {
    list-style: none;
    margin: 1.2rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    border: 1.5px solid var(--ink);
}
.marks-strip li {
    min-width: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 3.2rem;
    padding-bottom: .25rem;
    font-family: var(--f-head);
    font-size: .78rem;
    font-weight: 500;
    color: var(--white);
}
.marks-strip li + li { border-left: 1px solid var(--ink); }
.marks-strip .p-c { background: var(--proc-c); }
.marks-strip .p-m { background: var(--proc-m); }
.marks-strip .p-y { background: var(--proc-y); color: var(--ink); }
.marks-strip .p-k { background: var(--proc-k); }
.marks-strip .p-r { background: #E2231A; }
.marks-strip .p-g { background: #009A44; }
.marks-strip .p-b { background: #2B3990; }
.marks-strip .p-n { background: #8A8A89; }
.marks-strip-cap { margin: .45rem 0 0; font-size: .8rem; color: #3A3118; }
.density-ruler { display: none; }
    .media-board { padding: 1.1rem .9rem; }
    .sec-title--band { padding: .9rem 1rem; }
    .card-grid--three { grid-template-columns: minmax(0, 1fr); }
    .latest-sub { margin-left: 0; }
    .latest-more { text-align: left; }
    .entry { padding: 1.4rem 1.2rem 1.6rem; }
    .comment-respond { padding: 1.3rem 1.1rem; }
    .sidebar { padding: 0 1.1rem 1.1rem; }
    .sidebar::before { margin: 0 -1.1rem 1.1rem; }
    .entry-nav { grid-template-columns: minmax(0, 1fr); }
    .entry-nav-link--next { grid-column: auto; }
    .colophon { padding: 1.6rem 1.3rem 1.2rem; }
    .colophon-cols { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; left: .6rem; right: .6rem; bottom: .6rem; padding: 1rem 1.1rem; }
    .finder { flex-wrap: wrap; }
    .finder-submit { flex: 1 1 100%; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}
@media (max-width: 600px) {
    .site-name { font-size: 1.3rem; }
    .media-grid { gap: .8rem; }
    .media-spec { font-size: .72rem; }
}
@media (max-width: 340px) {
    .media-grid { grid-template-columns: minmax(0, 1fr); }
    .drift-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
