/*
Theme Name: dds_runlanguages.com
Author: Claire Durand
Description: Editorial theme for a regional guide to French homes, architecture and property. Cold steel-blue palette with copper and plum accents.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: runlang
*/

/* ---------- Tokens ---------- */
:root {
    --paper: #F4F6F8;
    --paper-alt: #E8EDF2;
    --ink: #1B2A3A;
    --night: #141F2B;
    --side: #EDF1F5;
    --copper: #B87333;
    --copper-deep: #9A5F2A;
    --copper-bright: #D4884A;
    --plum: #6B4E71;
    --mute: #7A8A9A;
    --hatch: #DCE3EA;
    --hatch-dark: #2A3F54;
    --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
    --sans: "Public Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --shadow: 0 4px 12px rgba(27, 42, 58, 0.08);
    --shadow-up: 0 8px 20px rgba(27, 42, 58, 0.13);
}

/* ---------- Hidden-attribute guards (before element styles) ---------- */
.cookie-banner[hidden] { display: none !important; }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--paper);
    background-image: repeating-linear-gradient(45deg, var(--hatch) 0 1px, transparent 1px 24px);
    overflow-wrap: break-word;
}

/* Shuttered-window silhouette, bottom right corner */
body::after {
    content: "";
    position: fixed;
    right: 2vw;
    bottom: 0;
    width: 260px;
    height: 380px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 380'%3E%3Cg fill='%23B87333'%3E%3Cpath d='M70 40h120v300H70z M80 52v130h46V52z M134 52v130h46V52z M80 194v134h46V194z M134 194v134h46V194z' fill-rule='evenodd'/%3E%3Crect x='10' y='40' width='54' height='300'/%3E%3Crect x='196' y='40' width='54' height='300'/%3E%3Crect x='56' y='20' width='148' height='14'/%3E%3Crect x='46' y='346' width='168' height='14'/%3E%3C/g%3E%3Cg stroke='%23F4F6F8' stroke-width='3'%3E%3Cpath d='M14 60h46M14 80h46M14 100h46M14 120h46M14 140h46M14 160h46M14 180h46M14 200h46M14 220h46M14 240h46M14 260h46M14 280h46M14 300h46M14 320h46'/%3E%3Cpath d='M200 60h46M200 80h46M200 100h46M200 120h46M200 140h46M200 160h46M200 180h46M200 200h46M200 220h46M200 240h46M200 260h46M200 280h46M200 300h46M200 320h46'/%3E%3C/g%3E%3C/svg%3E") no-repeat center bottom / contain;
}

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

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

p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
    margin: 1.4em 0 0.55em;
    hyphens: auto;
    overflow-wrap: break-word;
}
h1 { font-size: 2.35rem; letter-spacing: -0.005em; }
h2 { font-size: 1.95rem; }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1.05rem; }
@media (min-width: 960px) {
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.3rem; }
}

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

blockquote {
    margin: 1.8em 0;
    padding: 1.2rem 1.6rem;
    border-left: 3px solid var(--copper);
    background: var(--paper-alt);
    font-family: var(--serif);
    font-size: 1.35rem;
    line-height: 1.45;
}
blockquote p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 1.5em 0; border: 1px solid #C3CDD7; }
th, td { border: 1px solid #C3CDD7; padding: 0.6em 0.85em; text-align: start; vertical-align: top; }
th { background: var(--paper-alt); font-weight: 600; }

pre { overflow-x: auto; background: var(--ink); color: var(--paper); padding: 1rem 1.2rem; border-radius: 2px; }
code { font-size: 0.92em; }
hr { border: 0; height: 1px; background: #C9D3DD; margin: 2.5em 0; }

ul, ol { padding-inline-start: 1.4em; }
li { margin-bottom: 0.35em; }

.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: absolute;
    left: 1rem; top: 1rem;
    width: auto; height: auto;
    clip: auto;
    z-index: 100;
    background: var(--paper);
    color: var(--ink);
    padding: 0.6rem 1rem;
}

/* ---------- Container (single source of width) ---------- */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 2px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.3;
    text-decoration: none;
    border: 1.5px solid var(--copper);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    max-width: 100%;
    white-space: normal;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--filled { background: var(--copper); color: var(--ink); }
.btn--filled:hover { background: var(--copper-deep); border-color: var(--copper-deep); color: var(--ink); }
.btn--outline { background: transparent; color: var(--copper-deep); }
.btn--outline:hover { background: var(--copper-deep); border-color: var(--copper-deep); color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
    background: var(--ink);
    border-top: 2px solid var(--copper);
    color: var(--paper);
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.15rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
    flex: 1 1 auto;
}
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-mark svg, .brand-logo { width: 52px; height: 52px; display: block; object-fit: contain; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--paper);
    text-decoration: none;
    max-width: 62ch;
}
.brand-name:hover { color: #FFFFFF; text-decoration: none; }
.brand-desc {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #A7B4C1;
    max-width: 78ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid var(--copper);
    color: var(--paper);
    border-radius: 2px;
    padding: 0.5rem 0.85rem;
    font: 600 0.9rem/1 var(--sans);
    cursor: pointer;
    flex: 0 0 auto;
}
.nav-toggle-bars { display: inline-block; width: 16px; height: 10px; margin-inline-end: 0.45rem; vertical-align: middle; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 2px; background: currentColor; }

.main-nav { flex: 0 0 auto; }
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1.6rem;
}
.main-nav li { margin: 0; }
.main-nav a {
    color: #D9E0E7;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.35rem 0;
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: var(--copper-bright);
    border-bottom-color: var(--copper);
}

@media (max-width: 960px) {
    .header-row { flex-wrap: wrap; }
    .nav-toggle { display: inline-block; }
    .main-nav { flex: 1 0 100%; }
    .main-nav.is-collapsed { display: none; }
    .main-nav ul { flex-direction: column; gap: 0; padding: 0.4rem 0 0.6rem; border-top: 1px solid var(--hatch-dark); }
    .main-nav a { padding: 0.6rem 0; display: block; border-bottom: 1px solid var(--hatch-dark); }
}
@media (max-width: 600px) {
    .brand-mark svg, .brand-logo { width: 42px; height: 42px; }
    .brand-name { font-size: 1rem; }
    .brand-desc { -webkit-line-clamp: 3; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--mute);
    padding: 1.4rem 0 0;
}
.breadcrumbs a { color: var(--mute); text-decoration-color: rgba(122, 138, 154, 0.5); }
.breadcrumbs a:hover { color: var(--copper); }
.breadcrumbs .sep { margin: 0 0.4rem; color: var(--copper); }
.breadcrumbs span:last-child { color: var(--ink); }

/* ---------- Section title: copper rule at 60% height ---------- */
.sec-title {
    position: relative;
    padding-inline-start: 1.1rem;
    margin: 0 0 1.6rem;
    font-size: 2rem;
}
.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: var(--copper);
}
@media (min-width: 960px) { .sec-title { font-size: 2.4rem; } }

/* ---------- Layouts ---------- */
.site-main { padding-bottom: 4rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding-top: 1.6rem;
}
@media (min-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
        column-gap: 6%;
    }
}
.layout-single {
    display: block;
    padding-top: 1.6rem;
}
.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 600px) {
    .layout-single .content-area { width: auto; }
}
.content-area { min-width: 0; }

.page-head { margin-bottom: 2rem; }
.page-head h1 { margin: 0.6rem 0 0.4rem; }
.page-lede { color: #4A5B6C; max-width: 62ch; margin: 0; }

/* ---------- Entry ---------- */
.entry {
    background: #FFFFFF;
    padding: 2.4rem 2.6rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
}
.entry-title { margin: 0 0 0.6rem; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.86rem;
    color: var(--mute);
    margin-bottom: 1.6rem;
}
.entry-figure { margin: 0 0 1.8rem; }
.entry-figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; filter: saturate(0.82) brightness(0.98); }
.entry-content { max-width: 70ch; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { border-radius: 2px; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 0.85rem; color: var(--mute); margin-top: 0.4em; }
.entry-content .alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: block; clear: both; }
.entry-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }

.page-links { margin-top: 1.5rem; font-weight: 600; }

@media (max-width: 600px) {
    .entry { padding: 1.5rem 1.25rem; }
    .entry-content .alignleft, .entry-content .alignright { float: none; margin: 1em 0; }
}

/* ---------- Category labels ---------- */
.cat-label {
    display: inline-block;
    background: var(--plum);
    color: #FFFFFF;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    padding: 0.32rem 0.6rem;
    border-radius: 2px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.cat-label:hover { background: var(--copper); color: #FFFFFF; text-decoration: none; }

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
}
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.layout-with-sidebar .card-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .layout-with-sidebar .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-up); transform: translateY(-2px); }

.card-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--paper-alt);
}
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    filter: saturate(0.8) brightness(0.98);
}
.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(27, 42, 58, 0.08);
    pointer-events: none;
}
.card-thumb--empty {
    aspect-ratio: 3 / 2;
    background-color: var(--ink);
    background-image: repeating-linear-gradient(45deg, var(--hatch-dark) 0 1px, transparent 1px 24px);
}
.card-thumb--empty::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46px;
    height: 58px;
    transform: translate(-50%, -50%);
    border: 2px solid var(--copper);
    border-bottom-width: 0;
    border-radius: 23px 23px 0 0;
    opacity: 0.6;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.4rem 1.5rem 1.5rem;
}
.card-cats { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.85rem; }
.card-title {
    position: relative;
    margin: 0 0 0.7rem;
    padding-inline-start: 0.85rem;
    font-size: 1.5rem;
    line-height: 1.2;
}
.card-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 2px;
    background: var(--copper);
    opacity: 0.6;
    transition: opacity 0.25s ease, background-color 0.25s ease;
}
.card:hover .card-title::before { opacity: 1; background: var(--copper-bright); }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--copper-deep); }
.card-excerpt { font-size: 0.97rem; color: #3A4A5A; margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.84rem;
    color: var(--mute);
}
.card-more { font-weight: 600; font-size: 0.9rem; }

.empty-note {
    background: #FFFFFF;
    padding: 2rem 2.2rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

/* ---------- Pagination (type => plain) ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 2.8rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.85rem;
    border: 1.5px solid #C3CDD7;
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pager a.page-numbers:hover { border-color: var(--copper); color: var(--copper-deep); }
.pager .page-numbers.current { background: var(--copper); border-color: var(--copper); color: var(--ink); }
.pager .page-numbers.dots { border: 0; background: none; min-width: 1.4rem; padding: 0; }

/* ---------- Sidebar & widgets ---------- */
.sidebar {
    min-width: 0;
    align-self: start;
    background: var(--side);
    padding: 1.8rem 1.6rem;
    border-radius: 4px;
    color: var(--ink);
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title, .sidebar .widget h2, .sidebar .wp-block-heading {
    position: relative;
    margin: 0 0 1rem;
    padding-inline-start: 0.85rem;
    font-size: 1.45rem;
    color: var(--ink);
}
.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0; top: 20%;
    height: 60%; width: 3px;
    background: var(--copper);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.6rem 0; border-bottom: 1px solid #D3DBE3; margin: 0; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); text-decoration: none; }
.sidebar a:hover { color: var(--copper-deep); text-decoration: underline; }
.sidebar .post-date { display: block; color: var(--mute); font-size: 0.8rem; }
.sidebar p, .sidebar .textwidget { color: #33475B; }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 0.5rem; max-width: 520px; }
.search-form label { flex: 1; min-width: 0; }
.search-field {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid #C3CDD7;
    border-radius: 2px;
    font: inherit;
    background: #FFFFFF;
    color: var(--ink);
}
.search-field:focus { border-color: var(--copper); outline: none; }
.search-submit { flex: 0 0 auto; }

/* ---------- 404 ---------- */
.notfound {
    background: #FFFFFF;
    padding: 3rem 2.6rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
}
.notfound-code {
    font-family: var(--serif);
    font-size: 5.5rem;
    line-height: 1;
    color: var(--copper);
    margin: 0;
}
.notfound .search-form { margin: 1.6rem 0; }
@media (max-width: 600px) { .notfound { padding: 2rem 1.3rem; } }

/* ---------- Comments ---------- */
.comments-area {
    margin-top: 2.5rem;
    background: #FFFFFF;
    padding: 2.2rem 2.6rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
}
.comments-title { margin-top: 0; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-inline-start: 1.6rem; border-inline-start: 2px solid var(--paper-alt); }
.comment-item { margin: 0; }
.comment-box { padding: 1.2rem 0; border-bottom: 1px solid var(--paper-alt); }
.comment-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.comment-head img { border-radius: 50%; display: block; }
.comment-author-name { font-weight: 600; }
.comment-when { font-size: 0.8rem; color: var(--mute); }
.comment-wait { font-size: 0.88rem; color: var(--plum); font-style: italic; }
.comment-reply-link { font-size: 0.86rem; font-weight: 600; }
.comment-respond { margin-top: 2rem; }
.comment-respond label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1.5px solid #C3CDD7;
    border-radius: 2px;
    font: inherit;
    background: var(--paper);
    color: var(--ink);
}
.comment-respond .comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-respond .comment-form-cookies-consent label { font-weight: 400; }
.comment-navigation { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }
@media (max-width: 600px) { .comments-area { padding: 1.5rem 1.25rem; } }

/* ---------- Front page ---------- */
.front-sec { padding: 5rem 0; }
.front-sec--alt { background-color: var(--paper-alt); }
.front-inner {
    width: 85%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 600px) {
    .front-sec { padding: 3.2rem 0; }
    .front-inner { width: 90%; }
}
.sec-intro { max-width: 60ch; color: #3A4A5A; margin: -0.6rem 0 2.2rem; }
.sec-foot { margin-top: 2.4rem; }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: var(--paper);
    min-height: 560px;
    display: flex;
    align-items: center;
}
.hero-media {
    position: absolute;
    inset: 0;
}
.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(27, 42, 58, 0.93) 0%, rgba(27, 42, 58, 0.82) 45%, rgba(27, 42, 58, 0.6) 100%);
}
.hero-body {
    position: relative;
    padding: 5.5rem 0;
}
.hero-title {
    margin: 0;
    font-size: 2.6rem;
    line-height: 1.08;
    color: #FFFFFF;
    max-width: 17ch;
}
@media (min-width: 960px) { .hero-title { font-size: 3.2rem; } }
.hero-rule {
    display: block;
    width: 88px;
    height: 3px;
    background: var(--copper);
    margin: 1.6rem 0 1.4rem;
    border: 0;
}
.hero-text {
    max-width: 54ch;
    font-size: 1.1rem;
    color: #D3DCE5;
    margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero .btn--outline { color: var(--paper); }
@media (max-width: 600px) {
    .hero { min-height: 480px; }
    .hero-body { padding: 4rem 0; }
    .hero-title { font-size: 2.15rem; }
}

/* Region cards */
.region-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
}
@media (min-width: 760px) { .region-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.region-card .card-body { padding: 1.4rem 1.5rem 1.6rem; }
.region-card .card-title { font-size: 1.55rem; }
.region-traits {
    margin: auto 0 0;
    padding: 0.9rem 0 0;
    border-top: 1px solid var(--paper-alt);
    list-style: none;
    font-size: 0.86rem;
    color: var(--mute);
}
.region-traits li { margin: 0 0 0.2rem; }
.region-traits strong { color: var(--ink); font-weight: 600; }

/* Stats (dark accent section) */
.front-sec--dark {
    background-color: var(--ink);
    background-image: repeating-linear-gradient(45deg, var(--hatch-dark) 0 1px, transparent 1px 24px);
    color: var(--paper);
}
.front-sec--dark .sec-title { color: var(--paper); }
.front-sec--dark .sec-intro { color: #B9C5D1; }
.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}
.stat {
    margin: 0;
    padding: 1.4rem 1.6rem;
    border-inline-start: 1px solid var(--hatch-dark);
    min-width: 0;
}
.stat:nth-child(2n+1) { border-inline-start: 0; }
.stat-num {
    display: block;
    font-family: var(--serif);
    font-size: 3.4rem;
    font-weight: 600;
    line-height: 1;
    color: var(--copper);
    margin-bottom: 0.7rem;
}
.stat-cap { display: block; color: #A7B4C1; font-size: 0.93rem; line-height: 1.5; }
@media (min-width: 960px) {
    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .stat:nth-child(2n+1) { border-inline-start: 1px solid var(--hatch-dark); }
    .stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
    .stat-num { font-size: 4rem; }
}
@media (max-width: 600px) {
    .stats { grid-template-columns: minmax(0, 1fr); }
    .stat { border-inline-start: 0; border-top: 1px solid var(--hatch-dark); padding: 1.3rem 0; }
    .stat:first-child { border-top: 0; }
}

/* CTA plate */
.cta-plate {
    background-color: var(--paper-alt);
    background-image: repeating-linear-gradient(45deg, #D3DCE5 0 1px, transparent 1px 24px);
    border-radius: 4px;
    padding: 3.2rem 3.4rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
    align-items: center;
}
@media (min-width: 960px) {
    .cta-plate { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
    .cta-actions { justify-self: end; }
}
.cta-plate .sec-title { margin-bottom: 1rem; }
.cta-plate p { margin: 0; max-width: 58ch; color: #33475B; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
@media (max-width: 600px) {
    .cta-plate { padding: 2rem 1.4rem; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--night);
    color: #B9C5D1;
    padding: 4rem 0 0;
    font-size: 0.95rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
}
@media (min-width: 760px) { .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.footer-col { min-width: 0; }
.site-footer .widget { margin-bottom: 1.6rem; }
.site-footer .widget-title, .site-footer .widget h2, .site-footer .wp-block-heading {
    position: relative;
    font-size: 1.4rem;
    color: #F4F6F8;
    margin: 0 0 1rem;
    padding-inline-start: 0.85rem;
}
.site-footer .widget-title::before {
    content: "";
    position: absolute;
    left: 0; top: 20%;
    height: 60%; width: 3px;
    background: var(--copper);
}
.site-footer p, .site-footer .textwidget { color: #B9C5D1; }
.site-footer a { color: #E2B98E; text-decoration-color: rgba(226, 185, 142, 0.45); }
.site-footer a:hover { color: #F0CDA6; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0; padding: 0.35rem 0; }
.site-footer .menu a { color: #D2DAE2; text-decoration: none; }
.site-footer .menu a:hover { color: #E2B98E; text-decoration: underline; }
.site-footer .post-date { color: #7F90A1; font-size: 0.8rem; display: block; }
.footer-bottom {
    margin-top: 2.6rem;
    padding: 1.4rem 0 1.6rem;
    border-top: 1px solid #22303F;
    font-size: 0.85rem;
    color: #7F90A1;
}
.footer-bottom p { margin: 0; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 50;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.4rem;
    padding: 1.1rem 1.4rem;
    background: var(--ink);
    color: #D3DCE5;
    border-top: 2px solid var(--copper);
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(20, 31, 43, 0.3);
    font-size: 0.9rem;
}
.cookie-banner p { margin: 0; flex: 1 1 320px; min-width: 0; }
.cookie-banner a { color: #E2B98E; }
.cookie-banner .btn { padding: 0.6rem 1.3rem; }

/* ---------- WP core classes ---------- */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--mute); }
.sticky .card-title a::after {
    content: "";
    display: inline-block;
    width: 7px; height: 7px;
    margin-inline-start: 0.5rem;
    background: var(--copper);
    vertical-align: middle;
}
.bypostauthor > .comment-box .comment-author-name { color: var(--plum); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; }
.gallery img { display: block; width: 100%; height: auto; }
