/*
Theme Name: dds_empactconsortium.com
Theme URI: https://empactconsortium.com/
Author: Алексей Воронцов
Author URI: https://empactconsortium.com/
Description: Контентно-сервисный сайт о строительстве частного дома с упором на проектирование, выбор технологий, этапы работ, материалы, инженерные системы и практику реализации загородного жилья.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: empact
*/

/* ============== Base / Reset ============== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    background: #FDF9F4;
    color: #24201E;
    font-family: 'Crimson Pro', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Manrope', 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: #24201E;
    font-weight: 600;
    line-height: 1.25;
    margin: 1.4em 0 0.6em;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }

p { margin: 0 0 1em; }

a {
    color: #9B5A2B;
    text-decoration: none;
    transition: color .18s ease, opacity .18s ease;
}
a:hover { color: #6E3F1C; }
a:focus-visible { outline: 2px solid #C47E2E; outline-offset: 2px; }

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

code, kbd, pre, samp,
.spec-label, .meta-mono {
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

pre {
    background: #F0ECE4;
    border-left: 3px solid #C47E2E;
    padding: 1em 1.1em;
    overflow-x: auto;
    font-size: 0.92em;
    border-radius: 4px;
}
:not(pre) > code {
    background: #F0ECE4;
    padding: 0.1em 0.35em;
    border-radius: 3px;
    font-size: 0.92em;
}

blockquote {
    margin: 1.6em 0;
    padding: 0.9em 1.2em;
    border-left: 4px solid #C47E2E;
    background: #F0ECE4;
    font-style: italic;
    color: #3a3531;
    border-radius: 0 4px 4px 0;
}

hr {
    border: none;
    border-top: 1px solid #D6C9B5;
    margin: 2em 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid #D6C9B5;
    background: #fff;
    font-size: 0.96em;
}
table caption {
    text-align: left;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6e655d;
    padding: 0.4em 0;
}
th, td {
    border: 1px solid #D6C9B5;
    padding: 0.7em 0.9em;
    text-align: left;
}
th {
    background: #F0ECE4;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #24201E;
}
tbody tr:nth-child(even) td { background: #faf6f0; }

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

/* ============== Layout / Shell ============== */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

.site-main {
    padding: 32px 0 56px;
}

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

.layout-no-sidebar .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 36px; }
    .layout-no-sidebar .content-area { width: 100%; }
}

/* ============== Header ============== */
.site-header {
    background: #FDF9F4;
    border-bottom: 1px solid #D6C9B5;
    padding: 18px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    min-width: 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: 0;
}
.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
.brand-logo-svg {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}
.brand-text { min-width: 0; }
.brand-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #24201E;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.brand-desc {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #6e655d;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.main-nav { margin-left: auto; min-width: 0; }
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.main-nav a {
    display: inline-block;
    padding: 8px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #24201E;
    border-radius: 4px;
    transition: background .15s ease, color .15s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    background: #F0ECE4;
    color: #9B5A2B;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #D6C9B5;
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #24201E;
    border-radius: 4px;
    margin-left: auto;
}
.nav-toggle:hover { background: #F0ECE4; }

@media (max-width: 720px) {
    .nav-toggle { display: inline-block; }
    .main-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        display: none;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav a { display: block; }
}

/* ============== Breadcrumbs ============== */
.breadcrumbs {
    padding: 18px 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #6e655d;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid #E6E3DC;
}
.breadcrumbs a {
    color: #6e655d;
    border-bottom: 1px dotted transparent;
}
.breadcrumbs a:hover {
    color: #9B5A2B;
    border-bottom-color: #9B5A2B;
}
.breadcrumbs .sep {
    margin: 0 0.5em;
    color: #C47E2E;
}

/* ============== Front page sections ============== */
.front-section {
    padding: 56px 0;
    border-bottom: 1px solid #E6E3DC;
}
.front-section.alt { background: #F0ECE4; }
.front-section.dark {
    background: #24201E;
    color: #FDF9F4;
}
.front-section.dark h1,
.front-section.dark h2,
.front-section.dark h3 { color: #FDF9F4; }
.front-section.dark a { color: #E5B56A; }
.front-section.dark a:hover { color: #fff; }

.section-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #C47E2E;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.6em;
    display: inline-block;
    padding-bottom: 6px;
    border-bottom: 1px solid #C47E2E;
}
.section-title {
    font-size: 2rem;
    margin: 0 0 0.6em;
    max-width: 720px;
}
.section-lead {
    font-size: 1.1rem;
    max-width: 720px;
    color: #3a3531;
    margin-bottom: 1.8em;
}
.front-section.dark .section-lead { color: #d8d1c6; }

/* Roadmap (timeline) */
.roadmap {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    position: relative;
}
.roadmap::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #D6C9B5;
}
.roadmap li {
    position: relative;
    padding: 14px 0 14px 56px;
    margin: 0;
}
.roadmap li::before {
    content: counter(stage-counter, decimal-leading-zero);
    counter-increment: stage-counter;
    position: absolute;
    left: 0;
    top: 12px;
    width: 38px;
    height: 38px;
    background: #FDF9F4;
    border: 2px solid #C47E2E;
    color: #9B5A2B;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.roadmap { counter-reset: stage-counter; }
.roadmap .stage-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #24201E;
    margin: 0 0 4px;
}
.roadmap .stage-desc { color: #3a3531; margin: 0; }

/* Feature grid (tech blocks) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 24px;
    margin-top: 32px;
}
.feature-card {
    background: #FDF9F4;
    border: 1px solid #D6C9B5;
    border-top: 3px solid #C47E2E;
    padding: 22px 22px 24px;
    border-radius: 4px;
    transition: transform .2s ease, box-shadow .2s ease;
    min-width: 0;
}
.feature-card.engineering { border-top-color: #3B5B6E; }
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(36, 32, 30, 0.06);
}
.feature-card .feature-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #9B5A2B;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 8px;
}
.feature-card.engineering .feature-tag { color: #3B5B6E; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature-card p { margin: 0; color: #3a3531; font-size: 0.98em; }

/* Author block */
.author-block {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    background: #E6E3DC;
    padding: 24px 28px;
    border-radius: 4px;
    margin-top: 32px;
}
.author-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #C47E2E;
    color: #FDF9F4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    flex-shrink: 0;
}
.author-quote {
    font-family: 'Crimson Pro', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #24201E;
    margin: 0 0 8px;
    line-height: 1.5;
}
.author-sign {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #6e655d;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
@media (max-width: 600px) {
    .author-block { grid-template-columns: 1fr; text-align: center; }
    .author-avatar { margin: 0 auto; }
}

/* ============== Cards (post cards) ============== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 28px;
    margin-top: 28px;
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #D6C9B5;
    border-radius: 6px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    min-width: 0;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(36, 32, 30, 0.08);
}
.card-thumb-wrap {
    overflow: hidden;
    background: #F0ECE4;
}
.card-thumb-wrap a {
    display: block;
}
.card-thumb-wrap img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.card:hover .card-thumb-wrap img { transform: scale(1.03); }

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 22px 22px;
    min-width: 0;
}
.card-stage {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #9B5A2B;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: inline-block;
}
.card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.18rem;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.3;
}
.card-title a { color: #24201E; }
.card-title a:hover { color: #9B5A2B; }
.card-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #6e655d;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}
.card-excerpt {
    color: #3a3531;
    font-size: 0.98em;
    margin-bottom: 18px;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    align-self: flex-start;
}

/* Horizontal card variation for blog listing */
.card-row {
    flex-direction: row;
    align-items: stretch;
}
.card-row .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}
.card-row .card-thumb-wrap a {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-row .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    display: block;
}
.card-row .card-body { min-width: 0; }

@media (max-width: 600px) {
    .card-row { flex-direction: column; }
    .card-row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-row .card-thumb-wrap a { position: static; }
    .card-row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ============== Buttons ============== */
.btn {
    display: inline-block;
    padding: 11px 22px;
    background: #9B5A2B;
    color: #FDF9F4;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.08);
}
.btn:hover {
    background: #6E3F1C;
    color: #FDF9F4;
    box-shadow: inset 0 -2px 0 #E5B56A;
}

.btn-secondary {
    background: transparent;
    color: #9B5A2B;
    border: 1px solid #C47E2E;
    box-shadow: none;
    padding: 10px 21px;
}
.btn-secondary:hover {
    background: rgba(196, 126, 46, 0.1);
    border-color: #9B5A2B;
    color: #6E3F1C;
    box-shadow: none;
}

.btn-chip {
    display: inline-block;
    padding: 6px 14px;
    background: #E6E3DC;
    color: #3a3531;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    border-radius: 20px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
    margin: 0 4px 6px 0;
}
.btn-chip:hover,
.btn-chip.is-active {
    background: #C47E2E;
    color: #fff;
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(36, 32, 30, 0.75);
    color: #FDF9F4;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: background .18s ease, transform .18s ease;
    font-size: 1.2rem;
    line-height: 1;
}
.back-to-top.is-visible { display: flex; }
.back-to-top:hover { background: rgba(36, 32, 30, 1); transform: translateY(-2px); }

/* ============== Sidebar / Widgets ============== */
.sidebar { min-width: 0; }

.widget {
    background: #E6E3DC;
    padding: 22px 24px;
    margin-bottom: 28px;
    border-radius: 4px;
    border-left: 3px solid #C47E2E;
    color: #24201E;
}
.widget-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #24201E;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #D6C9B5;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li {
    padding: 8px 0;
    border-bottom: 1px dashed #D6C9B5;
    color: #24201E;
}
.widget li:last-child { border-bottom: none; }
.widget a { color: #24201E; }
.widget a:hover { color: #9B5A2B; }
.widget .post-date {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #6e655d;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ============== Footer ============== */
.site-footer {
    background: #24201E;
    color: #d8d1c6;
    padding: 56px 0 24px;
    margin-top: 64px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 36px;
    margin-bottom: 36px;
}
.footer-column { min-width: 0; }

.site-footer .widget {
    background: transparent;
    border-left: none;
    padding: 0;
    margin-bottom: 0;
    color: #d8d1c6;
}
.site-footer .widget-title {
    color: #FDF9F4;
    border-bottom-color: #4a4541;
}
.site-footer .widget a { color: #E5B56A; }
.site-footer .widget a:hover { color: #FDF9F4; }
.site-footer .widget li {
    color: #d8d1c6;
    border-bottom-color: #3a3531;
}
.site-footer .widget .post-date { color: #aaa295; }

.copyright {
    border-top: 1px solid #3a3531;
    padding-top: 22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #aaa295;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
}

/* ============== Search form ============== */
.search-form {
    display: flex;
    gap: 8px;
    max-width: 560px;
    min-width: 0;
}
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #D6C9B5;
    background: #FDF9F4;
    color: #24201E;
    font-family: inherit;
    font-size: 0.96em;
    border-radius: 4px;
}
.search-form input[type="search"]:focus {
    outline: 2px solid #C47E2E;
    outline-offset: 1px;
    border-color: #C47E2E;
}
.search-form button {
    padding: 10px 18px;
    background: #9B5A2B;
    color: #FDF9F4;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border-radius: 4px;
    transition: background .15s ease;
}
.search-form button:hover { background: #6E3F1C; }

.widget .search-form input[type="search"] {
    background: #fff;
}

/* ============== Single post ============== */
.single-article {
    max-width: 100%;
    min-width: 0;
}
.article-header { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid #E6E3DC; }
.article-stage {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #9B5A2B;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    display: inline-block;
    padding: 4px 10px;
    background: #F0ECE4;
    border-radius: 3px;
}
.article-title {
    font-size: 2.1rem;
    margin: 0 0 12px;
    line-height: 1.2;
}
.article-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #6e655d;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.article-thumb { margin: 0 0 28px; }
.article-thumb img { width: 100%; height: auto; display: block; border-radius: 6px; }

.article-content { font-size: 1.05rem; line-height: 1.7; }
.article-content h2, .article-content h3 { margin-top: 1.6em; }
.article-content img { border-radius: 4px; margin: 1em 0; }

.article-footer {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid #E6E3DC;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #6e655d;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.article-tags a {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 4px 12px;
    background: #F0ECE4;
    color: #9B5A2B;
    border-radius: 20px;
    font-size: 0.78rem;
}
.article-tags a:hover { background: #C47E2E; color: #fff; }

/* ============== Comments ============== */
.comments-area { margin-top: 48px; }
.comments-title {
    font-size: 1.3rem;
    margin: 0 0 22px;
    padding-bottom: 10px;
    border-bottom: 1px solid #D6C9B5;
}
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list li, .comment-list .comment { margin-bottom: 22px; }
.comment-list .children { list-style: none; padding-left: 28px; margin-top: 18px; }
.comment-body {
    background: #F0ECE4;
    padding: 18px 22px;
    border-radius: 4px;
    border-left: 3px solid #D6C9B5;
}
.comment-author { font-weight: 600; font-family: 'Inter', sans-serif; }
.comment-author .says { display: none; }
.comment-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #6e655d;
    text-transform: uppercase;
    margin: 4px 0 10px;
}
.comment-content p:last-child { margin-bottom: 0; }
.reply { margin-top: 8px; }
.comment-reply-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #9B5A2B;
}

.comment-respond { margin-top: 28px; }
.comment-reply-title { font-size: 1.15rem; margin: 0 0 14px; }
.comment-form p { margin: 0 0 14px; }
.comment-form label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    margin-bottom: 5px;
    color: #24201E;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #D6C9B5;
    background: #FDF9F4;
    color: #24201E;
    font-family: inherit;
    font-size: 1em;
    border-radius: 4px;
}
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-form input:focus, .comment-form textarea:focus {
    outline: 2px solid #C47E2E;
    outline-offset: 1px;
    border-color: #C47E2E;
}
.form-submit { margin-top: 8px; }
.form-submit input[type="submit"] {
    padding: 11px 22px;
    background: #9B5A2B;
    color: #FDF9F4;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border-radius: 5px;
    transition: background .15s ease;
}
.form-submit input[type="submit"]:hover { background: #6E3F1C; }

/* ============== Pagination ============== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 40px 0 0;
    padding-top: 28px;
    border-top: 1px solid #E6E3DC;
}
.pagination a,
.pagination .current,
.pagination .dots {
    display: inline-block;
    min-width: 38px;
    padding: 8px 12px;
    text-align: center;
    background: #FDF9F4;
    border: 1px solid #D6C9B5;
    color: #24201E;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pagination a:hover {
    background: #F0ECE4;
    border-color: #C47E2E;
    color: #9B5A2B;
}
.pagination .current {
    background: #9B5A2B;
    border-color: #9B5A2B;
    color: #FDF9F4;
}
.pagination .dots { border: none; background: transparent; }

/* ============== 404 ============== */
.page-404 {
    text-align: center;
    padding: 60px 0;
}
.page-404 .big-number {
    font-family: 'Inter', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: #C47E2E;
    line-height: 1;
    margin: 0 0 16px;
}
.page-404 h1 { font-size: 1.6rem; margin: 0 0 14px; }
.page-404 p { color: #3a3531; margin-bottom: 28px; }
.page-404 .search-form { margin: 24px auto; }

/* ============== Cookie banner ============== */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: #24201E;
    color: #FDF9F4;
    padding: 16px 22px;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    font-size: 0.92em;
    line-height: 1.5;
}
.cookie-banner p { margin: 0; flex: 1 1 280px; min-width: 0; }
.cookie-banner a { color: #E5B56A; text-decoration: underline; }
.cookie-banner a:hover { color: #fff; }
.cookie-banner .btn {
    padding: 9px 20px;
    background: #C47E2E;
    color: #FDF9F4;
    flex-shrink: 0;
}
.cookie-banner .btn:hover { background: #E5B56A; color: #24201E; }

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

.alignleft  { float: left; margin: 0.4em 1.2em 0.6em 0; }
.alignright { float: right; margin: 0.4em 0 0.6em 1.2em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #6e655d;
    text-align: center;
    margin: 6px 0 0;
}

.no-results {
    padding: 36px 0;
    text-align: center;
    color: #3a3531;
}

/* Smaller screens */
@media (max-width: 600px) {
    body { font-size: 17px; }
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    .section-title { font-size: 1.5rem; }
    .article-title { font-size: 1.5rem; }
    .front-section { padding: 40px 0; }
    .site-footer { padding: 40px 0 20px; }
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
}
