/*
Theme Name: dds_newmemberpins.com
Author: Алексей Громов
Description: Тема для информационно-аналитического портала о профессии риелтора: ассоциации, стандарты, сертификация и карьерное развитие.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: rltmap
*/

/* ============ Переменные ============ */

:root {
    --paper: #F7F9F5;
    --paper-alt: #E9EFE5;
    --paper-alt-deep: #DCE4D7;
    --head-bg: #17241A;
    --foot-bg: #0F1712;
    --aside-bg: #F1F4EE;
    --ink: #1F2A22;
    --acc: #2A6B3E;
    --acc-deep: #1F5230;
    --gold: #C9A96E;
    --mute: #6F7A6C;
    --line: rgba(42, 107, 62, .3);
    --serif: Georgia, "Times New Roman", "PT Serif", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============ Сброс и база ============ */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.72;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(to right, rgba(42, 107, 62, .05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(42, 107, 62, .05) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    line-height: 1.24;
    color: var(--ink);
    margin: 0 0 .7em;
    font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 1.95rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.15em; }

a { color: var(--acc); text-decoration: none; }

ul, ol { padding-left: 1.3rem; }

blockquote { margin: 1.6rem 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    border: 1px solid #C7D2C2;
}
th, td {
    border: 1px solid #C7D2C2;
    padding: .65rem .8rem;
    text-align: left;
}
th { background: var(--paper-alt); font-family: var(--serif); }

code, pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: .92em;
    background: var(--paper-alt);
}
pre { padding: 1rem; overflow-x: auto; }

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

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

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

.site-main { padding: 2.6rem 0 3.4rem; }

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

.btn,
.btn-line {
    display: inline-block;
    font-family: var(--sans);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .01em;
    padding: .72rem 1.5rem;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .22s ease, box-shadow .22s ease, color .22s ease, border-color .22s ease;
}

.btn {
    background: var(--acc);
    color: #fff;
}
.btn:hover,
.btn:focus {
    background: var(--acc-deep);
    box-shadow: 0 6px 16px rgba(15, 23, 18, .22);
    color: #fff;
}

.btn-line {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}
.btn-line:hover,
.btn-line:focus {
    background: rgba(201, 169, 110, .12);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
    color: #fff;
}

/* ============ Анимированные ссылки ============ */

.entry-content a:not(.btn):not(.btn-line),
.card-excerpt a,
.crumbs a,
.widget a {
    position: relative;
}

.entry-content a:not(.btn):not(.btn-line)::after,
.card-excerpt a::after,
.crumbs a::after,
.widget a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .28s ease;
}

.entry-content a:not(.btn):not(.btn-line):hover::after,
.card-excerpt a:hover::after,
.crumbs a:hover::after,
.widget a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

/* ============ Заголовки секций ============ */

.sec-title {
    position: relative;
    padding-bottom: .75rem;
    margin-bottom: 1.7rem;
}
.sec-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34%;
    max-width: 190px;
    height: 2px;
    background: var(--acc);
}
.sec-title.shift-left { margin-left: -1.6rem; }

/* Приём: золотые точки вместо маркеров */
.entry-content ul,
.dot-list {
    list-style: none;
    padding-left: 1.4rem;
}
.entry-content ul li,
.dot-list li {
    position: relative;
    margin-bottom: .55rem;
}
.entry-content ul li::before,
.dot-list li::before {
    content: "";
    position: absolute;
    left: -1.15rem;
    top: .72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
}

/* Приём: изумрудная полоса слева у цитат */
.entry-content blockquote,
.pull-note {
    border-left: 4px solid var(--acc);
    padding: .35rem 0 .35rem 1.4rem;
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--ink);
}

/* Декоративная линейка между секциями */
.rule {
    width: 34%;
    max-width: 260px;
    height: 1px;
    border: 0;
    background: var(--line);
    margin: 0 auto;
}

/* ============ Шапка ============ */

.site-head {
    background: var(--head-bg);
    color: #E8EFE6;
    padding: 1.5rem 0;
    border-bottom: 3px solid var(--acc);
}

.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    max-width: 640px;
}
.brand-logo { width: auto; max-height: 62px; }
.brand-mark { flex: 0 0 auto; }
.brand-text { min-width: 0; }
.brand-title {
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.35;
    color: #fff;
    margin: 0 0 .3rem;
    display: block;
    max-height: 4.1em;
    overflow: hidden;
}
.brand-title a { color: #fff; }
.brand-desc {
    font-size: .8rem;
    line-height: 1.5;
    color: #9FB39F;
    margin: 0;
    max-height: 4.5em;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(201, 169, 110, .55);
    color: var(--gold);
    border-radius: 4px;
    padding: .5rem .9rem;
    font-size: .9rem;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav a {
    color: #DCE6DA;
    font-size: .97rem;
    font-weight: 500;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

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

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}
.layout-single { display: block; }
.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.content-area { min-width: 0; }

.sidebar {
    min-width: 0;
    background: var(--aside-bg);
    border: 1px solid #DCE4D7;
    border-radius: 8px;
    padding: 1.5rem 1.4rem;
}

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

.crumbs {
    font-size: .87rem;
    color: var(--mute);
    padding: 1.4rem 0 0;
}
.crumbs a { color: var(--acc); }
.crumbs .sep { color: var(--gold); margin: 0 .3rem; }

/* ============ Карточки записей ============ */

.card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(31, 42, 34, .12);
    border-color: var(--acc);
}

.card-line {
    display: flex;
    flex: 1;
    align-items: stretch;
}

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: var(--paper-alt);
}
.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
}
.card-title {
    font-size: 1.3rem;
    margin: 0 0 .55rem;
}
.card-title a { color: var(--ink); transition: color .2s ease; }
.card-title a:hover { color: var(--acc); }

.card-excerpt { color: #46524A; font-size: .96rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-foot { margin-top: auto; padding-top: 1rem; }

.post-meta {
    font-size: .82rem;
    color: var(--mute);
    margin-bottom: .6rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.post-meta a { color: var(--acc); }
.dot-sep {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    display: inline-block;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2.4rem 0 .5rem;
}
.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: .5rem .8rem;
    border: 1px solid #CBD8C6;
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font-size: .93rem;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pager a.page-numbers:hover {
    background: var(--acc);
    border-color: var(--acc);
    color: #fff;
}
.pager .page-numbers.current {
    background: var(--acc);
    border-color: var(--acc);
    color: #fff;
    font-weight: 600;
}
.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* ============ Главная ============ */

.front-wrap {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 2.6rem 0 3.6rem;
}

.front-section { padding: 3.4rem 0; }
.front-section.tint {
    background: linear-gradient(160deg, var(--paper-alt) 0%, var(--paper-alt-deep) 100%);
    border-radius: 10px;
    padding: 3.2rem 2.4rem;
}

/* --- Блок 1: hero --- */

.hero {
    position: relative;
    overflow: hidden;
    background-color: var(--head-bg);
    background-image: radial-gradient(rgba(201, 169, 110, .16) 1.4px, transparent 1.4px);
    background-size: 14px 14px;
    border-radius: 10px;
    padding: 4.2rem 2.8rem;
    color: #E9F0E7;
    margin-bottom: 3.2rem;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(23, 36, 26, .96) 30%, rgba(23, 36, 26, .72) 100%);
}
.hero-inner { position: relative; max-width: 760px; }
.hero h1 {
    color: #fff;
    margin-bottom: 1.1rem;
}
.hero .gold { color: var(--gold); }
.hero p {
    font-size: 1.08rem;
    color: #C4D2C2;
    max-width: 620px;
}
.hero-actions { margin-top: 1.9rem; display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-roof {
    position: absolute;
    right: 1.6rem;
    bottom: -1rem;
    width: 320px;
    opacity: .14;
    pointer-events: none;
}

/* --- Блок 2: таймлайн --- */

.track { position: relative; margin-top: 2.4rem; padding-left: 2.6rem; }
.track::before {
    content: "";
    position: absolute;
    left: 7px;
    top: .6rem;
    bottom: .6rem;
    width: 2px;
    background: var(--acc);
}
.track-item { position: relative; padding-bottom: 2.2rem; min-width: 0; }
.track-item:last-child { padding-bottom: 0; }
.track-item::before {
    content: "";
    position: absolute;
    left: -2.6rem;
    top: .45rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--paper);
}
.track-stage {
    font-family: var(--serif);
    font-size: .92rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--acc);
    margin-bottom: .2rem;
}
.track-item h3 { margin: 0 0 .4rem; font-size: 1.28rem; }
.track-item p { margin: 0; color: #46524A; }

/* --- Блок 3: статистика --- */

.figures {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
    margin-top: 2.2rem;
}
.figure-cell {
    text-align: center;
    min-width: 0;
    padding: 1.4rem 1rem;
    background: rgba(255, 255, 255, .55);
    border-radius: 8px;
}
.figure-cell svg { margin: 0 auto .8rem; display: block; }
.figure-num {
    font-family: var(--serif);
    font-size: 2.9rem;
    line-height: 1;
    color: var(--acc);
    display: block;
    margin-bottom: .5rem;
}
.figure-cap {
    font-size: .92rem;
    color: var(--ink);
    margin: 0;
}

/* --- Блок 4: рубрикатор --- */

.topic-map {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 2.2rem;
}
.topic-tile {
    display: block;
    min-width: 0;
    background: #fff;
    border: 1px solid #D3DECE;
    border-radius: 8px;
    padding: 1.7rem 1.4rem;
    color: var(--ink);
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.topic-tile svg { margin-bottom: 1rem; }
.topic-tile svg path,
.topic-tile svg circle,
.topic-tile svg rect,
.topic-tile svg line,
.topic-tile svg polyline { transition: stroke .25s ease; }
.topic-tile h3 { font-size: 1.15rem; margin: 0 0 .45rem; transition: color .25s ease; }
.topic-tile p { font-size: .9rem; color: var(--mute); margin: 0; transition: color .25s ease; }
.topic-tile:hover {
    background: var(--acc);
    border-color: var(--acc);
    transform: translateY(-3px);
}
.topic-tile:hover h3,
.topic-tile:hover p { color: #fff; }
.topic-tile:hover svg path,
.topic-tile:hover svg circle,
.topic-tile:hover svg rect,
.topic-tile:hover svg line,
.topic-tile:hover svg polyline { stroke: #fff; }

/* --- Свежие записи на главной --- */

.front-latest { padding: 3.4rem 0; }
.latest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.latest-head .sec-title { margin-bottom: 1rem; }

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

.entry-head { margin-bottom: 1.6rem; }
.entry-title { margin-bottom: .7rem; }
.entry-cover { margin: 0 0 1.8rem; border-radius: 8px; overflow: hidden; }
.entry-cover img { width: 100%; height: auto; display: block; }

.entry-content { font-size: 1.02rem; }
.entry-content h2 { margin-top: 2rem; }
.entry-content h3 { margin-top: 1.6rem; }
.entry-content img { border-radius: 8px; margin: 1.2rem 0; }

.entry-foot {
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid #D8E1D3;
    font-size: .9rem;
    color: var(--mute);
}
.entry-foot a { color: var(--acc); }

/* ============ Сайдбар и виджеты ============ */

.widget { margin-bottom: 1.9rem; }
.widget:last-child { margin-bottom: 0; }
.widget-title {
    font-size: 1.12rem;
    margin: 0 0 .9rem;
    padding-bottom: .5rem;
    position: relative;
}
.widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 2px;
    background: var(--acc);
}
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget li {
    position: relative;
    padding-left: 1.05rem;
    margin-bottom: .6rem;
    line-height: 1.5;
}
.widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.sidebar .widget-title { color: var(--ink); }
.sidebar .widget,
.sidebar .widget li,
.sidebar .widget p { color: var(--ink); }
.sidebar .widget a { color: var(--acc); }
.sidebar .widget .post-date { color: var(--mute); font-size: .84rem; display: block; }

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

.site-foot {
    background: var(--foot-bg);
    color: #C6D3C4;
    padding: 3rem 0 1.8rem;
    margin-top: 3rem;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.foot-col { min-width: 0; }
.site-foot .widget-title { color: #fff; }
.site-foot .widget-title::after { background: var(--gold); }
.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li { color: #C6D3C4; }
.site-foot .widget a { color: #E4EBE1; }
.site-foot .widget a:hover { color: var(--gold); }
.site-foot .widget li::before { background: var(--gold); }
.site-foot .widget .post-date { color: #8C9C8B; font-size: .84rem; display: block; }

.foot-note {
    margin-top: 2.4rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(201, 169, 110, .28);
    font-size: .85rem;
    color: #8C9C8B;
}

/* ============ Cookie-баннер ============ */

.cookie-note[hidden] { display: none !important; }

.cookie-note {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--head-bg);
    color: #DCE6DA;
    border-top: 2px solid var(--gold);
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    font-size: .9rem;
}
.cookie-note p { margin: 0; max-width: 760px; }
.cookie-note a { color: var(--gold); }

/* ============ Поиск ============ */

.search-form {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: .68rem .9rem;
    border: 1px solid #C6D2C1;
    border-radius: 4px;
    font-size: .95rem;
    font-family: var(--sans);
    background: #fff;
    color: var(--ink);
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--acc);
}

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

.comments-area {
    margin-top: 2.8rem;
    padding-top: 1.8rem;
    border-top: 1px solid #D8E1D3;
}
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0; padding-left: 1.6rem; }
.comment-item { margin-bottom: 1.2rem; }
.comment-inner {
    background: #fff;
    border: 1px solid #DCE4D7;
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
}
.comment-head {
    display: flex;
    gap: .8rem;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: .5rem;
}
.comment-author { font-family: var(--serif); font-weight: 700; }
.comment-date { font-size: .82rem; color: var(--mute); }
.comment-text p:last-child { margin-bottom: 0; }
.comment-actions { margin-top: .6rem; font-size: .88rem; }
.comment-hold { font-size: .85rem; color: var(--mute); }

.comment-respond { margin-top: 1.6rem; }
.comment-form label { display: block; font-size: .9rem; margin-bottom: .3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .65rem .85rem;
    border: 1px solid #C6D2C1;
    border-radius: 4px;
    font-family: var(--sans);
    font-size: .95rem;
    background: #fff;
    color: var(--ink);
}
.comment-form textarea { min-height: 150px; }
.comment-form .form-submit input[type="submit"] {
    background: var(--acc);
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: .75rem 1.6rem;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .22s ease, box-shadow .22s ease;
}
.comment-form .form-submit input[type="submit"]:hover {
    background: var(--acc-deep);
    box-shadow: 0 6px 16px rgba(15, 23, 18, .22);
}

/* ============ 404 ============ */

.err-box { text-align: center; padding: 2.5rem 1.6rem 3rem; }
.err-code {
    font-family: var(--serif);
    font-size: 5.4rem;
    line-height: 1;
    color: var(--acc);
    margin: 0 0 .6rem;
}
.err-box .search-form { max-width: 460px; margin: 1.8rem auto; }

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

@media (max-width: 960px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.7rem; }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.2rem;
    }
    .layout-single .content-area { width: 100%; }
    .front-wrap { width: 100%; }

    .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .nav-toggle { display: inline-block; }
    .main-nav {
        flex-basis: 100%;
        display: none;
    }
    .main-nav.open { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: .9rem;
        padding-top: 1rem;
    }
    .hero-roof { width: 220px; opacity: .1; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.45rem; }

    .site-main { padding: 1.8rem 0 2.4rem; }
    .front-wrap { padding: 1.8rem 0 2.4rem; }
    .front-section { padding: 2.2rem 0; }
    .front-section.tint { padding: 2rem 1.4rem; }
    .hero { padding: 2.4rem 1.4rem; }
    .hero-roof { display: none; }
    .front-latest { padding: 2.2rem 0; }

    .card-line { flex-direction: column; }
    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-thumb-wrap a { position: static; }
    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .card-body { padding: 1.2rem 1.1rem; }

    .figures { grid-template-columns: minmax(0, 1fr); }
    .topic-map { grid-template-columns: minmax(0, 1fr); }
    .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }

    .sidebar { padding: 1.2rem 1.1rem; }
    .cookie-note { padding: 1rem 1.1rem; gap: .9rem; }
    .sec-title.shift-left { margin-left: 0; }
    .track { padding-left: 2rem; }
    .track-item::before { left: -2rem; }
    .err-code { font-size: 3.8rem; }
}
