/*
Theme Name: dds_horse-spb.ru
Theme URI: https://horse-spb.ru/
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: hrspb
*/

:root {
    --bg: #F7F5FA;
    --bg-alt: #EDE9F4;
    --bg-side: #F1EEF7;
    --ink: #2A2438;
    --accent: #7C5CBF;
    --accent-dark: #6A4DA8;
    --lav: #C4A8E8;
    --muted: #8B8299;
    --line: #D9D2E9;
    --line-soft: #E3DCF0;
    --f-head: "Unbounded", "Segoe UI", Arial, sans-serif;
    --f-body: "Inter", "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

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(--bg);
    background-image: repeating-linear-gradient(45deg, var(--bg-alt) 0, var(--bg-alt) 1px, transparent 1px, transparent 24px);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.22;
    color: var(--ink);
    margin: 1.6em 0 0.6em;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color .2s ease, text-decoration-color .2s ease;
}
a:hover {
    color: var(--lav);
    text-decoration-thickness: 2px;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

img { max-width: 100%; height: auto; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid var(--line); }
th, td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-weight: 600; }

blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.5rem;
    background: var(--bg-alt);
    border-left: 2px solid var(--lav);
    border-radius: 0 12px 12px 0;
}
blockquote p:last-child { margin-bottom: 0; }

pre {
    overflow-x: auto;
    padding: 1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    font-size: .9rem;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ---------- Контейнер ---------- */

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

/* ---------- Кнопки ---------- */

.btn {
    display: inline-block;
    padding: .75rem 1.45rem;
    border-radius: 12px;
    font-family: var(--f-body);
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid var(--accent);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-fill {
    background: var(--accent);
    color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(124, 92, 191, .28);
}
.btn-fill:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(124, 92, 191, .2);
}
.btn-ghost {
    background: transparent;
    color: var(--accent);
}
.btn-ghost:hover {
    background: var(--accent);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(124, 92, 191, .18);
}

/* ---------- Шапка ---------- */

.masthead {
    position: relative;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
}
.masthead-stripe {
    height: 3px;
    background: linear-gradient(90deg, #7C5CBF, #C4A8E8);
}
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1 1 520px;
    max-width: 720px;
    color: var(--ink);
    text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo { display: block; width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.brand-name {
    font-weight: 600;
    font-size: .92rem;
    line-height: 1.35;
    color: var(--ink);
}
.brand-desc {
    font-size: .8rem;
    line-height: 1.4;
    color: var(--muted);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .55rem;
    padding: .55rem .9rem;
    background: transparent;
    border: 1.5px solid var(--accent);
    border-radius: 12px;
    color: var(--accent);
    font: 600 .92rem var(--f-body);
    cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    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; }

.primary-menu {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.primary-menu a {
    display: block;
    padding: .35rem 0;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: var(--accent);
    border-bottom-color: var(--lav);
}

/* ---------- Хлебные крошки ---------- */

.crumbs {
    padding: 1.6rem 0 0;
    font-size: .88rem;
    color: var(--muted);
}
.crumbs a { color: var(--accent); }
.crumbs-sep { margin: 0 .35rem; color: var(--lav); }

/* ---------- Раскладки ---------- */

.page-wrap { padding-bottom: 80px; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    margin-top: 1.2rem;
}
.layout-single {
    display: block;
    margin-top: 1.2rem;
}
.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.content-area { min-width: 0; }

.page-head { margin-bottom: 2rem; }
.page-title { margin: .6rem 0 .5rem; }
.page-lead { color: var(--muted); max-width: 62ch; }
.empty-note { color: var(--muted); }

/* ---------- Сайдбар ---------- */

.sidebar {
    min-width: 0;
    align-self: start;
    background: var(--bg-side);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    padding: 1.6rem 1.5rem;
    color: var(--ink);
}
.sidebar .widget + .widget { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px dashed var(--line); }
.sidebar .widget-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--ink);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .5rem 0; line-height: 1.4; }
.sidebar li + li { border-top: 1px solid var(--line-soft); }
.sidebar a { color: var(--accent); }
.sidebar a:hover { color: var(--accent-dark); }
.sidebar .post-date { display: block; margin-top: .2rem; font-size: .82rem; color: var(--muted); }
.sidebar p, .sidebar .textwidget { color: var(--ink); }

/* ---------- Карточки ---------- */

.card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
}
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(124, 92, 191, 0.08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(124, 92, 191, 0.12);
    border-color: var(--lav);
}
.card-thumb { background: var(--bg-alt); }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, var(--line-soft) 0, var(--line-soft) 1px, transparent 1px, transparent 14px);
}
.card-thumb-empty svg { display: block; }
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.3rem 1.4rem 1.5rem;
}
.card-title {
    margin: .2rem 0 .4rem;
    font-size: 1.08rem;
    line-height: 1.35;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-date { font-size: .84rem; color: var(--muted); margin-bottom: .7rem; }
.card-excerpt { color: var(--ink); font-size: .96rem; margin-bottom: 1.1rem; overflow-wrap: anywhere; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt img, .card-excerpt figure { display: none; }
.card-more { margin-top: auto; align-self: flex-start; padding: .55rem 1.1rem; font-size: .9rem; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.chip {
    display: inline-block;
    padding: .18rem .55rem;
    border-radius: 4px;
    font-size: .76rem;
    font-weight: 500;
    line-height: 1.4;
    color: #2A2438;
    text-decoration: none;
}
.chip:hover { color: #2A2438; text-decoration: none; filter: brightness(.96); }

/* ---------- Пагинация ---------- */

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: 2.6rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .85rem;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.pager a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 .2rem; }

/* ---------- Запись и страница ---------- */

.entry-head { margin-bottom: 1.6rem; }
.entry-date { color: var(--muted); font-size: .9rem; }
.entry-cover { margin: 0 0 2rem; }
.entry-cover img { display: block; width: 100%; border-radius: 16px; }
.entry-content { overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 {
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid var(--lav);
}
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content img { display: block; border-radius: 12px; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: .86rem; color: var(--muted); margin-top: .5rem; }
.entry-content hr { border: 0; border-top: 1px dashed var(--line); margin: 2.4em 0; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); font-size: .9rem; }

/* ---------- Комментарии ---------- */

.remarks { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px dashed var(--line); }
.remarks-title { margin-top: 0; }
.remarks-list, .remarks-list .children { list-style: none; margin: 0; padding: 0; }
.remarks-list .children { padding-left: 1.6rem; }
.remark-body {
    margin-bottom: 1rem;
    padding: 1.1rem 1.3rem;
    background: #FFFFFF;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
}
.remark-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.remark-head img { display: block; border-radius: 50%; }
.remark-author { display: block; font-weight: 600; }
.remark-date { font-size: .82rem; color: var(--muted); }
.remark-wait { color: var(--muted); font-style: italic; }
.remark-reply a { font-size: .88rem; }
.comment-respond { margin-top: 2rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-size: .9rem; font-weight: 500; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.finder-input {
    width: 100%;
    padding: .7rem .9rem;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--ink);
    font: inherit;
}
.comment-form input[type="checkbox"] + label { display: inline; }
.comment-form input[type="submit"] {
    padding: .75rem 1.45rem;
    border: 1.5px solid var(--accent);
    border-radius: 12px;
    background: var(--accent);
    color: #FFFFFF;
    font: 600 .98rem var(--f-body);
    cursor: pointer;
}
.comment-form input[type="submit"]:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ---------- Поиск и 404 ---------- */

.finder { margin: 1.2rem 0 1.6rem; }
.finder-label { display: block; margin-bottom: .4rem; font-size: .9rem; font-weight: 500; }
.finder-row { display: flex; gap: .6rem; }
.finder-row .finder-input { flex: 1; min-width: 0; }
.lost { padding: 2rem 0; }
.lost-code {
    margin: 0;
    font-family: var(--f-head);
    font-size: clamp(4rem, 14vw, 8rem);
    line-height: 1;
    color: var(--lav);
}

/* ---------- Секции главной ---------- */

.fs {
    position: relative;
    padding: 80px 0;
}
.fs-inner {
    position: relative;
    z-index: 1;
    width: 85%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}
.fs-alt {
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, var(--line-soft) 0, var(--line-soft) 1px, transparent 1px, transparent 24px);
}
.fs-horseshoe { overflow: hidden; }
.fs-horseshoe::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -140px;
    width: 560px;
    height: 560px;
    opacity: .04;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M42 24C24 104 48 180 100 180S176 104 158 24' fill='none' stroke='%237C5CBF' stroke-width='30' stroke-linecap='round'/%3E%3Ccircle cx='52' cy='70' r='6' fill='%23F7F5FA'/%3E%3Ccircle cx='148' cy='70' r='6' fill='%23F7F5FA'/%3E%3Ccircle cx='62' cy='120' r='6' fill='%23F7F5FA'/%3E%3Ccircle cx='138' cy='120' r='6' fill='%23F7F5FA'/%3E%3C/svg%3E") no-repeat center / contain;
}

.fs-title {
    position: relative;
    margin: 0 0 2.6rem;
    padding: .2rem 0 .2rem 1.1rem;
    border-left: 2px solid var(--lav);
    max-width: 24ch;
}
.fs-title::before {
    content: "";
    position: absolute;
    left: -2px;
    top: -1.1rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.fs-head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 2.6rem;
}
.fs-head-row .fs-title { margin-bottom: 0; }

/* Hero */
.fs-hero {
    display: flex;
    align-items: center;
    min-height: 560px;
    overflow: hidden;
    background: var(--ink);
}
.fs-hero-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fs-hero::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 1;
    background: linear-gradient(90deg, #2A2438 0%, rgba(42, 36, 56, .82) 38%, rgba(42, 36, 56, 0) 100%);
}
.fs-hero-inner { z-index: 2; }
.fs-hero-title {
    margin: 0 0 1.2rem;
    max-width: 17ch;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    color: #FFFFFF;
    text-shadow: 0 2px 14px rgba(20, 16, 30, .45);
}
.fs-hero-sub {
    max-width: 46ch;
    margin: 0 0 2rem;
    font-size: 1.12rem;
    color: #E3DCF0;
}

/* Шаги */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 920px;
    margin-left: 8%;
}
.step {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 1.6rem;
    align-items: start;
    padding: 1.8rem 0;
}
.step + .step { border-top: 1px dashed var(--line); }
.step-num {
    font-family: var(--f-head);
    font-size: 3rem;
    font-weight: 500;
    line-height: 1;
    color: var(--lav);
}
.step-text { min-width: 0; }
.step-text h3 { margin: .2rem 0 .45rem; }
.step-text p { margin: 0; max-width: 62ch; }

/* Статистика */
.stats {
    list-style: none;
    margin: 0;
    padding: 2.2rem 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.4rem 1.6rem;
    border-top: 1px dashed var(--line);
}
.stat { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.stat-num {
    font-family: var(--f-head);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 600;
    line-height: 1;
    color: var(--accent);
}
.stat-label { color: var(--muted); font-size: 1rem; }

/* Карта тем */
.topics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.topic {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .35rem;
    min-width: 0;
    aspect-ratio: 1 / 1;
    padding: 1.3rem 1.2rem;
    background: #FFFFFF;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    color: #2A2438;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}
.topic:hover {
    background: var(--bg-alt);
    border-color: var(--lav);
    color: #2A2438;
}
.topic-icon { display: block; color: var(--accent); margin-bottom: auto; }
.topic-name { font-family: var(--f-head); font-weight: 500; font-size: 1rem; line-height: 1.25; }
.topic-note { font-size: .84rem; color: var(--muted); line-height: 1.4; }

/* ---------- Подвал ---------- */

.colophon {
    background: #2A2438;
    color: #E3DCF0;
    padding: 64px 0 0;
}
.colophon-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
}
.colophon-col { min-width: 0; }
.colophon .widget-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: #FFFFFF;
}
.colophon .widget,
.colophon .widget p,
.colophon .textwidget { color: #E3DCF0; font-size: .95rem; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { padding: .3rem 0; }
.colophon a { color: #C4A8E8; }
.colophon a:hover { color: #FFFFFF; }
.colophon .post-date { color: #B3AAC4; font-size: .82rem; }
.colophon-bottom {
    margin-top: 3rem;
    padding: 1.4rem 0 1.6rem;
    border-top: 1px solid rgba(196, 168, 232, .22);
    font-size: .86rem;
    color: #B3AAC4;
}
.colophon-bottom p { margin: 0; }

/* ---------- Cookie ---------- */

.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.6rem;
    max-width: 880px;
    margin: 0 auto;
    padding: 1.1rem 1.4rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(42, 36, 56, .14);
}
.cookie-text { flex: 1 1 320px; min-width: 0; margin: 0; font-size: .9rem; color: var(--ink); }

/* ---------- Адаптив ---------- */

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav { display: none; width: 100%; }
    .primary-nav.is-open { display: block; }
    .primary-menu { flex-direction: column; gap: 0; padding: .4rem 0 .6rem; }
    .primary-menu li + li { border-top: 1px solid var(--line-soft); }
    .primary-menu a { padding: .7rem 0; border-bottom: 0; }
    .brand { flex-basis: 0; flex-grow: 1; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .brand-desc { display: none; }
    .brand-name { font-size: .82rem; }
    .layout-single .content-area { width: 100%; }
    .fs { padding: 56px 0; }
    .fs-inner { width: 90%; }
    .fs-hero { min-height: 480px; }
    .fs-hero::before { background: linear-gradient(90deg, #2A2438 0%, rgba(42, 36, 56, .8) 70%, rgba(42, 36, 56, .45) 100%); }
    .steps { margin-left: 0; }
    .step { grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1rem; }
    .step-num { font-size: 2.3rem; }
    .finder-row { flex-direction: column; }
    .sidebar { padding: 1.4rem 1.2rem; }
    .remark-body { padding: 1rem 1.1rem; }
    .cookie-banner { padding: 1rem 1.1rem; }
    blockquote { padding: 1rem 1.1rem; }
    .fs-horseshoe::after { width: 340px; height: 340px; right: -90px; bottom: -110px; }
}

@media (min-width: 601px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .colophon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 961px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; }
    .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .layout-single .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .stat + .stat { padding-left: 1.6rem; border-left: 1px solid var(--line); }
    .colophon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 3rem; }
}
@media (min-width: 1200px) {
    .topics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
