/*
Theme Name: dds_g2-emea.com
Author: Elena Rossi
Description: Editorial theme for G2 EMEA, a publication on real estate marketing, residential branding and digital advertising for development projects.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: gemea
License: GNU General Public License v2 or later
*/

/* ---------- Hidden-state rules (must precede component styles) ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Tokens ---------- */
:root {
    --bg: #14161a;
    --bg-alt: #1c1f26;
    --bg-header: #0f1114;
    --bg-footer: #0b0c0f;
    --bg-side: #181b21;
    --line: #2a2e36;
    --text: #e8e6e3;
    --muted: #7a7f8a;
    --copper: #c87941;
    --copper-soft: rgba(200, 121, 65, 0.4);
    --teal: #4a9eb8;
    --teal-soft: rgba(74, 158, 184, 0.15);
    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --hatch: repeating-linear-gradient(45deg, #1a1d23 0, #1a1d23 1px, transparent 1px, transparent 24px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background-color: var(--bg);
    background-image: var(--hatch);
    color: var(--text);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Copper top bar — signature mark on every page */
body::before {
    content: "";
    display: block;
    height: 3px;
    background: var(--copper);
}

/* Outline skyline, bottom-right of every page */
body::after {
    content: "";
    position: fixed;
    right: 0;
    bottom: 0;
    width: 520px;
    max-width: 70%;
    height: 200px;
    pointer-events: none;
    z-index: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 200' fill='none' stroke='%23c87941' stroke-opacity='0.06' stroke-width='1.5'%3E%3Cpath d='M0 200V140h40v-30h30v90M70 200V90h50v110M120 200V60h26V40h22v20h26v140M194 200V110h40v90M234 200V30h60v170M254 30V12h20v18M294 200V96h44v104M338 200V70h56v130M394 200V120h34v80M428 200V50h48v150M476 200V134h44v66'/%3E%3Cpath d='M244 50h40M244 70h40M244 90h40M244 110h40M244 130h40M244 150h40M348 90h36M348 110h36M348 130h36M348 150h36M438 70h28M438 90h28M438 110h28M438 130h28M130 80h54M130 100h54M130 120h54M130 140h54'/%3E%3C/svg%3E") no-repeat right bottom / contain;
}

.site-header, .site-main, .site-footer { position: relative; z-index: 1; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    margin: 1.6em 0 0.6em;
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
p, li, td, th, dd, figcaption, blockquote { overflow-wrap: break-word; hyphens: auto; }
img { max-width: 100%; height: auto; }

a {
    color: var(--copper);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--copper-soft);
    text-underline-offset: 3px;
}
a:hover, a:focus-visible { text-decoration-color: var(--copper); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

blockquote {
    margin: 1.8em 0;
    padding: 0.2em 0 0.2em 1.25rem;
    border-left: 3px solid var(--copper);
    font-size: 1.4rem;
    font-style: normal;
    line-height: 1.5;
}
blockquote p:last-child { margin-bottom: 0; }
blockquote cite { display: block; margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); font-style: normal; }

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

code, pre { font-family: Consolas, Menlo, monospace; font-size: 0.9em; }
pre { background: var(--bg-alt); border: 1px solid var(--line); padding: 1rem 1.2rem; overflow-x: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
    position: fixed; top: 10px; left: 10px; z-index: 1000;
    width: auto; height: auto; clip: auto; padding: 0.6rem 1rem;
    background: var(--copper); color: var(--bg);
}

/* ---------- Container ---------- */
.shell { width: min(92%, 1180px); margin-inline: auto; }
.shell--front { width: 85%; max-width: 1360px; }

/* ---------- Buttons ---------- */
.btn,
.search-form button,
.comment-form .submit,
.cookie-banner button {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--copper);
    border-radius: 2px;
    background: transparent;
    color: var(--copper);
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.btn:hover, .btn:focus-visible,
.search-form button:hover,
.comment-form .submit:hover,
.cookie-banner button:hover {
    background: var(--copper);
    color: #14161a;
}

/* ---------- Header ---------- */
.site-header { background: var(--bg-header); border-bottom: 1px solid var(--line); }
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 auto;
    max-width: 680px;
    text-decoration: none;
    color: var(--text);
}
.brand-mark, .brand-logo { flex: 0 0 auto; display: block; }
.brand-mark { width: 44px; height: 44px; }
.brand-logo { max-height: 52px; width: auto; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}
.brand-tagline {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--muted);
}

.nav-toggle {
    display: none;
    flex: 0 0 auto;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: transparent;
    color: var(--text);
    font: 500 0.85rem var(--sans);
    cursor: pointer;
}
.nav-toggle:hover { border-color: var(--copper); color: var(--copper); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; }
.main-nav a {
    display: block;
    padding: 0.3rem 0;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--copper); border-bottom-color: var(--copper); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    padding: 1.4rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}
.breadcrumbs a { color: var(--muted); text-decoration-color: rgba(122, 127, 138, 0.4); }
.breadcrumbs a:hover { color: var(--copper); text-decoration-color: var(--copper); }
.breadcrumbs .sep { margin: 0 0.45rem; color: var(--copper); }
.breadcrumbs span:last-child { color: var(--text); }

/* ---------- Layouts ---------- */
.page-wrap { padding: 0 0 5rem; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
    padding-top: 2rem;
}
.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 2rem;
}
.content-area { min-width: 0; }

.page-title {
    font-size: 2.6rem;
    margin: 0 0 1.4rem;
    padding-left: 16px;
    border-left: 3px solid var(--copper);
}
.page-intro { color: var(--muted); margin: -0.6rem 0 2rem; }

/* ---------- Sidebar & widgets ---------- */
.sidebar {
    min-width: 0;
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 1.6rem 1.5rem;
    color: var(--text);
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    margin: 0 0 1rem;
    padding-left: 12px;
    border-left: 3px solid var(--copper);
    font-size: 1.15rem;
    color: var(--text);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); color: var(--text); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--text); text-decoration: none; }
.sidebar a:hover { color: var(--copper); }
.sidebar .post-date, .sidebar .rss-date { display: block; font-size: 0.8rem; color: #9aa0ab; }
.sidebar p { color: var(--text); }

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.6rem;
}
.front-posts .card-grid,
.focus-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 2px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.card:hover { border-color: var(--copper); background: var(--bg-alt); }
.card-thumb { border-bottom: 1px solid var(--line); 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: block;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-alt);
    background-image: var(--hatch);
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.2rem 1.3rem 1.3rem;
}
.card-cat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
}
.card-cat::before { content: ""; width: 6px; height: 6px; background: var(--copper); flex: 0 0 auto; }
a.card-cat:hover { color: var(--copper); }
.card-title { margin: 0 0 0.6rem; font-size: 1.2rem; line-height: 1.3; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--copper); }
.card-excerpt { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--copper); }
.card-foot {
    margin-top: auto;
    padding-top: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--muted);
}
.card-more { font-size: 0.85rem; font-weight: 500; }

.empty-state {
    padding: 2rem 1.8rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--muted);
}

/* ---------- Pagination (type => plain) ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 2.5rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.8rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--text);
    font-size: 0.88rem;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.pager a.page-numbers:hover { border-color: var(--copper); color: var(--copper); }
.pager .page-numbers.current { background: var(--copper); border-color: var(--copper); color: #14161a; font-weight: 600; }
.pager .page-numbers.dots { border: 0; min-width: auto; padding: 0 0.3rem; color: var(--muted); }

/* ---------- Single entry ---------- */
.entry-header { margin-bottom: 1.6rem; }
.entry-title { font-size: 2.6rem; margin: 0 0 0.9rem; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}
.tag-chip {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--teal-soft);
    color: var(--teal);
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
}
.tag-chip:hover { color: var(--text); background: rgba(74, 158, 184, 0.3); }
.entry-thumb { margin: 0 0 2rem; border: 1px solid var(--line); }
.entry-thumb img { display: block; width: 100%; height: auto; }
.entry-content { font-size: 1.05rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content li::marker { color: var(--copper); }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2rem; }
.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}
.post-nav > div { min-width: 0; }
.post-nav .next { text-align: right; }
.post-nav small { display: block; color: var(--muted); font-size: 0.78rem; margin-bottom: 0.2rem; }
.post-nav a { color: var(--text); text-decoration: none; font-family: var(--serif); }
.post-nav a:hover { color: var(--copper); }

/* ---------- Comments ---------- */
.comments-area { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments-title { margin-top: 0; font-size: 1.5rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.comment-item { margin: 0 0 1.4rem; }
.comment-box { padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: 2px; background: var(--bg-alt); }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; margin-bottom: 0.5rem; font-size: 0.85rem; }
.comment-head img { border-radius: 2px; display: block; }
.comment-author-name { font-weight: 600; color: var(--text); }
.comment-date { color: var(--muted); }
.comment-waiting { font-size: 0.85rem; color: var(--teal); }
.comment-reply-link { font-size: 0.82rem; }
.comment-respond { margin-top: 2rem; }
.comment-reply-title { font-size: 1.35rem; margin-top: 0; }
.comment-reply-title small { font-family: var(--sans); font-size: 0.8rem; margin-left: 0.6rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--text);
    font: 0.95rem var(--sans);
}
.comment-form input:focus, .comment-form textarea:focus, .search-form input:focus { border-color: var(--copper); outline: none; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; margin: 0; }
.comment-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0 2rem; }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 0.5rem; max-width: 560px; }
.search-form label { flex: 1; min-width: 0; }

/* ---------- 404 ---------- */
.error-block { padding: 1rem 0 2rem; }
.error-code { font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--copper); margin: 0 0 0.5rem; }
.error-block .search-form { margin: 1.6rem 0; }

/* ---------- Front page ---------- */
.fs { position: relative; padding: 80px 0; }
.fs--alt { background: var(--bg-alt); }

.sec-head { margin-bottom: 2.6rem; }
.sec-num {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--copper);
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--copper);
    margin-bottom: 0.9rem;
}
.sec-title {
    margin: 0;
    padding-left: 16px;
    border-left: 3px solid var(--copper);
    font-size: 2.2rem;
}
.sec-lead { margin: 1rem 0 0; max-width: 640px; color: var(--muted); }

/* Block 1 — hero */
.fs-hero {
    display: flex;
    align-items: center;
    min-height: 560px;
    padding: 110px 0 120px;
    overflow: hidden;
    background: #0f1114;
}
.fs-hero .hero-media {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}
.fs-hero::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}
.hero-inner { position: relative; z-index: 2; }
.hero-title {
    margin: 0 0 1.2rem;
    max-width: 820px;
    font-size: 3.2rem;
    line-height: 1.12;
    color: #e8e6e3;
}
.hero-sub {
    margin: 0 0 2rem;
    max-width: 640px;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--copper);
}
.hero-mark {
    position: absolute;
    left: 0;
    bottom: -76px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--copper);
}
.hero-mark::after { content: ""; width: 72px; height: 1px; background: var(--copper); }

/* Block 2 — stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat { min-width: 0; padding: 0.5rem 1.8rem; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num {
    display: block;
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--copper);
}
.stat-label { display: block; margin-top: 0.6rem; font-size: 0.85rem; line-height: 1.5; color: var(--muted); }

/* Latest posts */
.fs-foot { margin-top: 2.4rem; }

/* Divider with copper dot */
.rule-dot { position: relative; z-index: 1; height: 1px; background: var(--line); }
.rule-dot::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    margin: -2px 0 0 -2px;
    border-radius: 50%;
    background: var(--copper);
}

/* Block 3 — focus cards */
.focus-grid { display: grid; gap: 1.6rem; }
.focus-card .card-excerpt { margin: 0; }

/* Block 4 — quote */
.fs-quote {
    overflow: hidden;
    background-color: var(--bg-alt);
    background-image: linear-gradient(135deg, #1c1f26 0%, #14161a 100%);
}
.fs-quote::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: var(--hatch);
    opacity: 0.5;
    pointer-events: none;
}
.fs-quote::after {
    content: "";
    position: absolute;
    right: 3%;
    bottom: 0;
    width: 340px;
    max-width: 50%;
    height: 220px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 220' fill='none' stroke='%23c87941' stroke-opacity='0.06' stroke-width='2'%3E%3Cpath d='M20 220V60l70-40 70 40v160M90 20v200M20 100h140M20 140h140M20 180h140M160 220V110h90v110M250 220V80h70v140M180 130h50M180 160h50M180 190h50M265 100h40M265 130h40M265 160h40M265 190h40'/%3E%3C/svg%3E") no-repeat right bottom / contain;
}
.quote-inner { position: relative; z-index: 1; }
.quote-num {
    position: absolute;
    top: -40px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--copper);
}
.quote-num::before { content: ""; width: 72px; height: 1px; background: var(--copper); }
.big-quote {
    margin: 0;
    max-width: 900px;
    padding: 0.4rem 0 0.4rem 1.6rem;
    border-left: 3px solid var(--copper);
}
.big-quote p {
    margin: 0 0 1.2rem;
    font-family: var(--serif);
    font-size: 1.8rem;
    line-height: 1.45;
    font-style: normal;
    color: #e8e6e3;
}
.big-quote cite {
    display: block;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-style: normal;
    color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--line);
    color: #c9c7c3;
    padding: 3.5rem 0 1.5rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}
.footer-col { min-width: 0; }
.site-footer .widget { margin-bottom: 1.5rem; color: #c9c7c3; }
.site-footer .widget-title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: #e8e6e3;
}
.site-footer p { color: #c9c7c3; font-size: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.site-footer a { color: #e8e6e3; text-decoration-color: rgba(232, 230, 227, 0.3); }
.site-footer a:hover { color: var(--copper); text-decoration-color: var(--copper); }
.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
    color: var(--muted);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    max-width: 880px;
    margin-inline: auto;
    padding: 1rem 1.3rem;
    background: var(--bg-header);
    border: 1px solid var(--line);
    border-top: 2px solid var(--copper);
    border-radius: 2px;
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.5;
}
.cookie-banner p { margin: 0; min-width: 0; }
.cookie-banner button { flex: 0 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
    .layout-single { width: 100%; }
    .front-posts .card-grid, .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .stat:nth-child(3) { border-left: 0; padding-left: 0; }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-title { font-size: 2.6rem; }

    .nav-toggle { display: block; }
    .header-row { flex-wrap: wrap; }
    .main-nav { display: none; width: 100%; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; padding: 0.4rem 0 0.6rem; }
    .main-nav li { border-top: 1px solid var(--line); }
    .main-nav a { padding: 0.7rem 0; border-bottom: 0; }
}

@media (max-width: 600px) {
    .shell--front { width: 92%; }
    .fs { padding: 56px 0; }
    .fs-hero { min-height: 460px; padding: 70px 0 100px; }
    .hero-title { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }
    .hero-mark { bottom: -64px; }
    .sec-title, .page-title, .entry-title { font-size: 1.8rem; }
    .front-posts .card-grid, .focus-grid, .footer-cols { grid-template-columns: minmax(0, 1fr); }
    .stats { grid-template-columns: minmax(0, 1fr); }
    .stat, .stat:first-child, .stat:nth-child(3) { padding: 0 0 0 1rem; border-left: 1px solid var(--line); }
    .stat + .stat { border-left: 1px solid var(--line); }
    .stat-num { font-size: 2.3rem; }
    .big-quote { padding-left: 1rem; }
    .big-quote p { font-size: 1.35rem; }
    .quote-num { top: -32px; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .brand-mark { width: 38px; height: 38px; }
    .brand-tagline { display: none; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav .next { text-align: left; }
    .search-form { flex-direction: column; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.1rem; }
    body::after { width: 300px; height: 120px; }
    blockquote { font-size: 1.2rem; }
}
