/*
Theme Name: dds_nomadcoffeeproductions.com
Theme URI: https://nomadcoffeeproductions.com/
Author: Дмитрий Соколов
Description: Тема для экспертного портала о налогах на недвижимость и наследственном праве Японии.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: jpnalog
*/

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

:root {
    --bg:        #F7F5FC;
    --bg-alt:    #EEEAFA;
    --head-bg:   #FFFFFF;
    --foot-bg:   #1A142F;
    --side-bg:   #F0EDF8;
    --ink:       #1E1A2B;
    --acc:       #7C4DFF;
    --acc-dark:  #5E35B1;
    --acc2:      #B388FF;
    --muted:     #9A94AB;
    --line:      #E0DAF0;
    --font-head: "Manrope", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Noto Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   2. База
   ========================================================================== */

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

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

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17.5px;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(90deg, rgba(124, 77, 255, .05) 0 1px, rgba(124, 77, 255, 0) 1px 34px);
    position: relative;
}

body::after {
    content: "";
    position: fixed;
    right: -60px;
    bottom: -80px;
    width: 460px;
    height: 460px;
    opacity: .04;
    pointer-events: none;
    z-index: -1;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='%237C4DFF'%3E%3Cellipse cx='100' cy='55' rx='26' ry='40'/%3E%3Cellipse cx='143' cy='86' rx='26' ry='40' transform='rotate(72 143 86)'/%3E%3Cellipse cx='126' cy='137' rx='26' ry='40' transform='rotate(144 126 137)'/%3E%3Cellipse cx='74' cy='137' rx='26' ry='40' transform='rotate(216 74 137)'/%3E%3Cellipse cx='57' cy='86' rx='26' ry='40' transform='rotate(288 57 86)'/%3E%3Ccircle cx='100' cy='100' r='15'/%3E%3C/g%3E%3C/svg%3E");
}

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

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

.entry-text a,
.side-block a,
.crumbs a,
.card-excerpt a {
    background-image: linear-gradient(var(--acc2), var(--acc2));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1.5px;
    transition: background-size .28s ease;
}

.entry-text a:hover,
.side-block a:hover,
.crumbs a:hover,
.card-excerpt a:hover { background-size: 100% 1.5px; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 .7em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.42rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .45em; }

blockquote {
    margin: 1.8rem 0;
    padding: 1.2rem 1.6rem;
    border-left: 3px dashed var(--acc);
    background: var(--bg-alt);
    border-radius: 0 6px 6px 0;
    font-size: 1.06rem;
}

blockquote p:last-child { margin-bottom: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem;
    border: 1px solid var(--line);
}

th, td {
    border: 1px solid var(--line);
    padding: .7rem .9rem;
    text-align: left;
}

th { background: var(--bg-alt); font-family: var(--font-head); font-weight: 600; }

code, pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: .92em;
    background: var(--bg-alt);
}

pre { padding: 1rem 1.2rem; overflow-x: auto; border-radius: 6px; }

/* ==========================================================================
   3. Контейнеры и раскладки
   ========================================================================== */

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

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

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    column-gap: 6%;
    align-items: start;
}

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

.content-area { min-width: 0; }

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

.btn,
.entry-text .btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.2;
    padding: .82rem 1.5rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: var(--acc);
    color: #fff;
    transition: background .22s ease, box-shadow .22s ease, color .22s ease;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
}

.btn:hover {
    background: var(--acc-dark);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(179, 136, 255, .38);
}

.btn-ghost {
    background: transparent;
    color: var(--acc);
    border: 1.5px solid var(--acc);
    padding: calc(.82rem - 1.5px) calc(1.5rem - 1.5px);
}

.btn-ghost:hover {
    background: var(--acc);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(179, 136, 255, .38);
}

/* ==========================================================================
   5. Шапка
   ========================================================================== */

.top-strip {
    height: 4px;
    background: linear-gradient(90deg, var(--acc2), var(--acc));
}

.site-head {
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-bottom: 1px solid var(--line);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: .95rem;
    min-width: 0;
}

.brand-logo { display: block; width: 56px; height: 56px; }

.brand-text { min-width: 0; }

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.12rem;
    line-height: 1.3;
    color: var(--ink);
    max-width: 30ch;
}

.brand-name:hover { color: var(--acc); }

.brand-tag {
    display: block;
    font-size: .8rem;
    line-height: 1.45;
    color: var(--muted);
    max-width: 46ch;
    margin-top: .25rem;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid var(--acc);
    color: var(--acc);
    font-family: var(--font-head);
    font-size: .92rem;
    padding: .55rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.7rem;
    margin: 0;
    padding: 0;
}

.main-nav li { margin: 0; }

.main-nav a {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .96rem;
    color: var(--ink);
    padding-bottom: 4px;
    display: inline-block;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--acc2);
    transition: width .28s ease;
}

.main-nav a:hover { color: var(--acc); }
.main-nav a:hover::after { width: 100%; }

.main-nav .current-menu-item > a { color: var(--acc); }
.main-nav .current-menu-item > a::after { width: 100%; }

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

.sec-title {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.6rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .52em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--acc);
    opacity: .55;
}

.sec-title::after {
    content: "";
    display: block;
    width: 66%;
    max-width: 320px;
    height: 2px;
    margin-top: .75rem;
    background: linear-gradient(90deg, var(--acc), rgba(124, 77, 255, 0));
}

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

.fs {
    position: relative;
    padding: 5rem 0;
}

.fs-alt { background: var(--bg-alt); }

.fs-alt::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    width: 34px;
    height: 22px;
    opacity: .2;
    background-image: repeating-linear-gradient(90deg, var(--acc2) 0 3px, rgba(0, 0, 0, 0) 3px 15px);
}

.fs-inner {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

/* --- Hero --- */

.fs-hero {
    padding: 4.4rem 0 5.4rem;
    background: linear-gradient(120deg, var(--bg) 0%, #E8E1F5 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    gap: 2.5rem;
    align-items: center;
}

.hero-text { min-width: 0; max-width: 30ch; }

.hero-kicker {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--acc);
    margin-bottom: 1.1rem;
}

.hero-grid h1 { margin-bottom: 1.1rem; }

.hero-sub {
    font-size: 1.1rem;
    color: #4A4360;
    max-width: 46ch;
    margin-bottom: 1.8rem;
}

.hero-lines { display: block; width: 100%; height: auto; min-width: 0; }

/* --- Статистика --- */

.fs-stats {
    background: linear-gradient(135deg, var(--bg) 0%, rgba(124, 77, 255, .05) 50%, var(--bg-alt) 100%);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.stat-cell {
    position: relative;
    padding: .4rem 1.2rem;
    text-align: center;
    min-width: 0;
}

.stat-cell + .stat-cell::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 46px;
    opacity: .45;
    background-image: repeating-linear-gradient(180deg, var(--acc2) 0 3px, rgba(0, 0, 0, 0) 3px 10px);
}

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 2.9rem;
    line-height: 1.1;
    color: var(--acc);
    margin-bottom: .35rem;
}

.stat-cap {
    display: block;
    font-size: .93rem;
    line-height: 1.5;
    color: var(--muted);
}

/* --- Сетка карточек-направлений --- */

.dir-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.dir-card {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.9rem 1.7rem;
    transition: border-color .22s ease, transform .22s ease;
}

.dir-card:hover { border-color: var(--acc); transform: translateY(-2px); }

.dir-icon { display: block; width: 46px; height: 46px; margin-bottom: 1.1rem; }

.dir-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }

.dir-card p { margin: 0; font-size: .98rem; color: #4A4360; }

/* --- Zigzag --- */

.zig-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.zig-row + .zig-row { margin-top: 3.6rem; }

.zig-row.reverse .zig-media { order: -1; }

.zig-text { min-width: 0; }

.zig-text h3 { font-size: 1.55rem; }

.zig-note {
    border-left: 3px dashed var(--acc);
    padding: .2rem 0 .2rem 1.1rem;
    color: #4A4360;
    font-size: .98rem;
    margin-top: 1.2rem;
}

.zig-media { min-width: 0; }

.zig-media img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

/* --- Последние записи на главной --- */

.latest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.latest-head .sec-title { margin-bottom: 1.2rem; }

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

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.7rem;
}

.cards-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.7rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color .22s ease, transform .22s ease;
}

.card:hover { border-color: var(--acc); transform: translateY(-2px); }

.card-thumb-wrap { padding: 12px 12px 0; }

.card-thumb-wrap a { display: block; }

.card-thumb-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 4px;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.4rem 1.5rem;
    min-width: 0;
}

.card-title {
    font-size: 1.16rem;
    margin: 0 0 .5rem;
}

.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--acc); }

.post-meta {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: .7rem;
}

.card-excerpt {
    font-size: .96rem;
    color: #4A4360;
    margin-bottom: 1.1rem;
}

.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-excerpt p:last-child { margin-bottom: 0; }

.card-more { margin-top: auto; }

.card-more .btn { font-size: .9rem; padding: .62rem 1.15rem; }

/* ==========================================================================
   9. Записи, страницы, архивы
   ========================================================================== */

.crumbs {
    font-size: .85rem;
    color: var(--muted);
    padding: 1.2rem 0 0;
}

.crumbs a { color: var(--acc); }

.crumbs-sep { color: var(--acc2); margin: 0 .3rem; }

.page-head { margin-bottom: 2.2rem; }

.page-head h1 { font-size: 2.6rem; margin-bottom: .5rem; }

.entry-thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
    margin-bottom: 1.8rem;
}

.entry-text h2 { font-size: 1.7rem; margin-top: 2rem; }
.entry-text h3 { font-size: 1.32rem; margin-top: 1.7rem; }

.entry-text img { border-radius: 6px; display: block; }

.entry-tags {
    margin-top: 2rem;
    font-size: .9rem;
    color: var(--muted);
}

.entry-tags a {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: .2rem .65rem;
    margin: 0 .3rem .4rem 0;
}

.entry-tags a:hover { border-color: var(--acc); }

.no-posts {
    background: var(--bg-alt);
    border-radius: 6px;
    padding: 2rem 1.8rem;
}

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

.sidebar {
    min-width: 0;
    background: var(--side-bg);
    border-left: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.7rem 1.5rem;
}

.side-block { margin-bottom: 2rem; }
.side-block:last-child { margin-bottom: 0; }

.side-block-title {
    font-size: 1.08rem;
    color: var(--ink);
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 1rem;
}

.side-block-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--acc);
    opacity: .6;
}

.sidebar ul { list-style: none; margin: 0; padding: 0; }

.sidebar li {
    padding: .5rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
    color: var(--ink);
}

.sidebar li:last-child { border-bottom: none; }

.sidebar a { color: var(--ink); }
.sidebar a:hover { color: var(--acc); }

.sidebar .post-date {
    display: block;
    font-size: .8rem;
    color: var(--muted);
}

.sidebar p { font-size: .95rem; color: var(--ink); }

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.6rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: .5rem .8rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--font-head);
    font-size: .94rem;
    color: var(--ink);
    background: #fff;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--acc);
    color: var(--acc);
}

.pager .page-numbers.current {
    background: var(--acc);
    border-color: var(--acc);
    color: #fff;
}

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* ==========================================================================
   12. Поиск, комментарии, 404
   ========================================================================== */

.search-form {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.search-form input[type="search"] {
    flex: 1 1 200px;
    min-width: 0;
    padding: .75rem .95rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    font-family: var(--font-body);
    font-size: .97rem;
    color: var(--ink);
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--acc);
}

.talk {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.talk-title { font-size: 1.5rem; }

.talk-list { list-style: none; margin: 0 0 2rem; padding: 0; }

.talk-list .children { list-style: none; margin: 1rem 0 0 1.5rem; padding: 0; }

.talk-item { margin-bottom: 1.2rem; }

.talk-body {
    background: var(--bg-alt);
    border-radius: 6px;
    padding: 1.2rem 1.4rem;
}

.talk-head {
    display: flex;
    gap: .9rem;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: .5rem;
}

.talk-author { font-family: var(--font-head); font-weight: 600; }

.talk-date { font-size: .82rem; color: var(--muted); }

.talk-text p:last-child { margin-bottom: 0; }

.talk-actions { font-size: .88rem; margin-top: .6rem; }

.talk-hold { font-size: .88rem; color: var(--muted); }

.comment-respond {
    background: var(--side-bg);
    border-radius: 6px;
    padding: 1.6rem 1.6rem 1.2rem;
}

.comment-respond .comment-reply-title { font-size: 1.25rem; margin-bottom: .8rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    font-family: var(--font-body);
    font-size: .97rem;
    color: var(--ink);
}

.comment-form textarea { min-height: 140px; }

.comment-form p { margin-bottom: .9rem; }

.comment-form .form-submit input[type="submit"] {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .98rem;
    padding: .82rem 1.5rem;
    border: none;
    border-radius: 4px;
    background: var(--acc);
    color: #fff;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
}

.comment-form .form-submit input[type="submit"]:hover { background: var(--acc-dark); }

.err-box {
    background: var(--bg-alt);
    border-radius: 6px;
    padding: 2.4rem 2rem;
}

.err-code {
    font-family: var(--font-head);
    font-size: 4.6rem;
    font-weight: 600;
    color: var(--acc);
    line-height: 1;
    margin-bottom: .6rem;
}

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

.site-foot {
    background: var(--foot-bg);
    color: #D9D3EC;
    padding: 3.4rem 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; }

.foot-block { margin-bottom: 1.6rem; }
.foot-block:last-child { margin-bottom: 0; }

.foot-block-title {
    font-size: 1.05rem;
    color: #FFFFFF;
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: .9rem;
}

.foot-block-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--acc2);
}

.site-foot p,
.site-foot li { color: #D9D3EC; font-size: .95rem; }

.site-foot ul { list-style: none; margin: 0; padding: 0; }

.site-foot li { padding: .35rem 0; border-bottom: 1px solid rgba(217, 211, 236, .14); }

.site-foot li:last-child { border-bottom: none; }

.site-foot a { color: #E4DEF5; }

.site-foot a:hover { color: var(--acc2); }

.site-foot .post-date { color: #A79FC2; font-size: .82rem; display: block; }

.foot-bottom {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(217, 211, 236, .16);
    font-size: .88rem;
    color: #A79FC2;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.6rem;
    background: rgba(26, 20, 47, .96);
    color: #E4DEF5;
    border-top: 2px solid var(--acc);
}

.cookie-banner p { margin: 0; font-size: .92rem; max-width: 74ch; }

.cookie-banner a { color: var(--acc2); }

.cookie-banner .btn { flex: none; }

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

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

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 2.4rem;
    }

    .layout-single,
    .fs-inner { width: 100%; }

    .hero-grid { grid-template-columns: minmax(0, 1fr); }

    .hero-lines { max-width: 320px; }

    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }

    .stat-cell:nth-child(3)::before { display: none; }

    .dir-grid,
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .zig-row { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }

    .zig-row.reverse .zig-media { order: 0; }

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

@media (max-width: 600px) {
    body { font-size: 16.5px; }

    h1 { font-size: 2.05rem; }
    h2 { font-size: 1.5rem; }

    .page-head h1 { font-size: 1.9rem; }

    .fs { padding: 3.2rem 0; }

    .fs-hero { padding: 2.8rem 0 3.4rem; }

    .head-inner { padding: 1.1rem 0; }

    .nav-toggle { display: inline-block; }

    .main-nav {
        flex-basis: 100%;
        display: none;
    }

    .main-nav.is-open { display: block; }

    .main-nav ul {
        flex-direction: column;
        gap: .2rem;
        padding-top: .8rem;
    }

    .main-nav a { display: block; padding: .55rem 0; }

    .stats-row { grid-template-columns: minmax(0, 1fr); }

    .stat-cell + .stat-cell::before { display: none; }

    .stat-cell {
        padding: 1.2rem 1rem;
        border-top: 1px solid var(--line);
    }

    .dir-grid,
    .cards-grid,
    .cards-list,
    .foot-cols { grid-template-columns: minmax(0, 1fr); }

    .dir-card { padding: 1.5rem 1.3rem; }

    .sidebar { padding: 1.4rem 1.2rem; }

    blockquote { padding: 1rem 1.2rem; }

    .err-box { padding: 1.8rem 1.4rem; }

    .talk-body { padding: 1rem 1.1rem; }

    .comment-respond { padding: 1.3rem 1.2rem 1rem; }

    .cookie-banner { padding: 1rem 1.2rem; }

    .site-foot { padding: 2.6rem 0 1.5rem; }
}
