/*
Theme Name: dds_plantsulinmarket.com
Author: Clara Whitfield
Description: Forest-minimal theme for a wellness-minded journal about country homes, eco-friendly neighborhoods, land and nature-centric communities.
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: pmforest
*/

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

/* ---------- Tokens ---------- */
:root {
    --pm-bg: #F4F7F2;
    --pm-bg-alt: #E8EEE4;
    --pm-header: #2D4A3E;
    --pm-footer: #1E332A;
    --pm-sidebar: #EDF2EA;
    --pm-text: #1C2A24;
    --pm-amber: #C48B3A;
    --pm-amber-dark: #A8742E;
    --pm-sage: #6B8F7A;
    --pm-muted: #6E7F75;
    --pm-line: #DCE5D8;
    --pm-dot: #D0DBCB;
    --pm-serif: "Lora", Georgia, "Times New Roman", serif;
    --pm-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --pm-shadow: 0 4px 12px rgba(45, 74, 62, 0.08);
    --pm-shadow-hover: 0 10px 22px rgba(45, 74, 62, 0.13);
}

/* ---------- 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-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--pm-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--pm-text);
    background-color: var(--pm-bg);
    background-image: repeating-linear-gradient(45deg, var(--pm-line) 0, var(--pm-line) 1px, transparent 1px, transparent 24px);
    background-attachment: fixed;
    overflow-wrap: break-word;
    hyphens: auto;
}
img { max-width: 100%; height: auto; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--pm-serif);
    font-weight: 600;
    line-height: 1.25;
    color: var(--pm-text);
    margin: 1.6em 0 0.6em;
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: 2.3rem; margin-top: 0; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
@media (min-width: 960px) { h1 { font-size: 3.2rem; } h2 { font-size: 2rem; } }

a {
    color: var(--pm-amber);
    text-decoration: none;
    background-image: linear-gradient(var(--pm-sage), var(--pm-sage));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.35s ease, color 0.25s ease;
}
a:hover, a:focus-visible { background-size: 100% 1px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--pm-amber);
    outline-offset: 3px;
}
ul, ol { padding-left: 1.4em; margin: 0 0 1.1em; }
li { margin-bottom: 0.35em; }
blockquote {
    margin: 1.6em 0;
    padding: 1.2em 1.6em;
    background: var(--pm-bg-alt);
    border-left: 3px solid var(--pm-sage);
    border-radius: 0 8px 8px 0;
    font-family: var(--pm-serif);
    font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 1.4em 0; border: 1px solid #C9D6C4; font-size: 0.95rem; }
th, td { border: 1px solid #C9D6C4; padding: 0.6em 0.8em; text-align: start; vertical-align: top; }
th { background: var(--pm-bg-alt); font-weight: 600; }
pre { overflow-x: auto; background: #E4EBE0; padding: 1em 1.2em; border-radius: 6px; font-size: 0.9rem; }
code { background: #E4EBE0; padding: 0.1em 0.35em; border-radius: 3px; font-size: 0.92em; }
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--pm-line); margin: 2.5em 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;
    background: var(--pm-amber); color: var(--pm-text); padding: 0.6em 1em; border-radius: 4px;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--pm-sans);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.3;
    padding: 0.85em 1.6em;
    border-radius: 4px;
    border: 1.5px solid var(--pm-amber);
    cursor: pointer;
    text-align: center;
    background-image: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.btn-primary { background-color: var(--pm-amber); color: var(--pm-text); }
.btn-outline { background-color: transparent; color: var(--pm-amber); }
.btn:hover, .btn:focus-visible {
    background-color: var(--pm-amber-dark);
    border-color: var(--pm-amber-dark);
    color: var(--pm-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(196, 139, 58, 0.2);
    background-size: auto;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--pm-header);
    border-top: 4px solid var(--pm-amber);
    color: #E8EEE4;
}
.header-bar {
    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; }
.brand-mark { flex: 0 0 auto; display: block; background-image: none; }
.brand-mark:hover { background-size: 0 0; }
.brand-logo { display: block; max-height: 56px; width: auto; }
.brand-svg { display: block; width: 52px; height: 52px; }
.brand-text { min-width: 0; }
.brand-name {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin: 0;
    font-family: var(--pm-serif);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}
.brand-name a { color: #F4F7F2; background-image: none; }
.brand-name a:hover { color: #F2D9AE; }
.brand-desc {
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #A9BDB1;
}
.nav-toggle {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: transparent;
    color: #F4F7F2;
    border: 1.5px solid rgba(244, 247, 242, 0.45);
    border-radius: 4px;
    padding: 0.5rem 0.85rem;
    font: 600 0.9rem var(--pm-sans);
    cursor: pointer;
}
.nav-toggle-lines { display: block; width: 18px; height: 12px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.nav-toggle-lines::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.nav-panel { border-top: 1px solid rgba(244, 247, 242, 0.12); padding: 0.6rem 0 1rem; }
.main-menu { list-style: none; margin: 0; padding: 0; }
.main-menu li { margin: 0; }
.main-menu a {
    display: block;
    padding: 0.55rem 0;
    color: #E8EEE4;
    font-weight: 500;
    background-position: 0 85%;
}
.main-menu a:hover, .main-menu .current-menu-item > a { color: #F2C77F; }
.main-menu .sub-menu { list-style: none; padding-left: 1rem; margin: 0; }

@media (min-width: 960px) {
    .header-bar { padding: 1.3rem 0; }
    .brand-name { font-size: 1.05rem; }
    .brand-desc { -webkit-line-clamp: 2; }
    .nav-toggle { display: none; }
    .nav-panel, .nav-panel[hidden] { display: block !important; border-top: 0; padding: 0; }
    .header-bar { flex-wrap: nowrap; }
    .main-menu { display: flex; flex-wrap: wrap; gap: 0.3rem 1.8rem; justify-content: flex-end; }
    .main-menu a { padding: 0.3rem 0; white-space: nowrap; }
    .brand { max-width: 62%; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    font-size: 0.88rem;
    color: var(--pm-muted);
    padding: 1.6rem 0 0;
}
.breadcrumbs .sep { margin: 0 0.45em; color: var(--pm-sage); }
.breadcrumbs span:last-child { color: var(--pm-text); }

/* ---------- Layouts ---------- */
.site-main { position: relative; }
.page-body { padding: 0 0 5rem; }
.layout-single { display: block; width: 85%; margin-left: auto; margin-right: auto; padding-top: 2.4rem; }
.layout-with-sidebar { display: block; padding-top: 2.4rem; }
.content-area { min-width: 0; }
@media (min-width: 960px) {
    .layout-with-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
        column-gap: 6%;
        align-items: start;
    }
}
@media (max-width: 959px) {
    .layout-single { width: 100%; }
}

/* Decorative fern, visible near the page end */
.site-main::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 280px;
    height: 360px;
    pointer-events: none;
    opacity: 0.06;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 360' fill='none' stroke='%232D4A3E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M250 350 C210 260 170 170 70 20'/%3E%3Cpath d='M236 318 C206 312 176 316 150 330M226 290 C196 280 164 282 136 296M214 262 C186 250 154 250 124 262M200 234 C174 220 144 218 114 228M186 206 C162 192 134 188 106 196M172 178 C150 164 124 158 98 164M158 150 C138 136 116 130 92 134M142 122 C126 110 106 104 86 106M126 94 C112 84 96 78 80 80M110 66 C100 58 88 54 76 54'/%3E%3Cpath d='M236 318 C246 292 244 266 238 240M226 290 C238 264 238 238 232 214M214 262 C226 236 226 210 222 188M200 234 C212 210 214 186 210 164M186 206 C198 184 200 162 198 142M172 178 C184 158 186 138 184 120M158 150 C168 132 170 114 168 98M142 122 C152 106 154 90 152 76M126 94 C134 82 136 70 134 58'/%3E%3C/svg%3E") no-repeat right bottom / contain;
    z-index: 0;
}
.site-main > * { position: relative; z-index: 1; }

/* ---------- Section headings ---------- */
.zone-title, .archive-title, .comments-title, .comment-reply-title {
    display: inline-block;
    position: relative;
    margin: 0 0 2.2rem;
    padding: 0 0 0.7rem 1.4rem;
    text-align: left;
}
.zone-title::after, .archive-title::after, .comments-title::after, .comment-reply-title::after {
    content: "";
    position: absolute;
    left: 1.4rem;
    bottom: 0;
    width: 50%;
    height: 1.5px;
    background: var(--pm-amber);
}
.zone-head { display: block; }

/* ---------- Front page ---------- */
.zone { padding: 7rem 0; }
.zone--alt {
    background-color: var(--pm-bg-alt);
    background-image: radial-gradient(circle, var(--pm-dot) 1px, transparent 1.4px);
    background-size: 16px 16px;
}
.zone--plain { background-color: var(--pm-bg); }
.zone-inner { width: 85%; margin-left: auto; margin-right: auto; }
.zone-inner--lean-left { padding-right: 7%; }
.zone-inner--lean-right { padding-left: 7%; }
.zone-lead { max-width: 640px; color: var(--pm-muted); margin: -1.2rem 0 2.6rem 1.4rem; }

/* Hero */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--pm-header);
}
.hero-media { position: absolute; inset: 0; margin: 0; }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(45, 74, 62, 0.5);
    z-index: 1;
}
.hero-copy { position: relative; z-index: 2; padding: 5rem 0; }
.hero-copy .zone-inner { padding-right: 18%; }
.hero-title {
    color: #FFFFFF;
    font-size: 2.4rem;
    margin: 0 0 1.1rem;
    max-width: 15ch;
    text-shadow: 0 2px 18px rgba(20, 36, 30, 0.35);
}
.hero-sub {
    color: #E3E9E4;
    font-size: 1.12rem;
    max-width: 560px;
    margin: 0 0 2rem;
}
@media (min-width: 960px) { .hero-title { font-size: 3.2rem; } }

/* Stats */
.stats-row {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.4rem;
}
.stats-row li { margin: 0; padding: 0 1.4rem; min-width: 0; border-left: 1px solid var(--pm-line); }
.stats-row li:nth-child(odd) { border-left: 0; }
.stat-num { display: block; font-family: var(--pm-serif); font-size: 2.8rem; line-height: 1.1; color: var(--pm-amber); font-weight: 600; }
.stat-label { display: block; margin-top: 0.5rem; color: var(--pm-muted); font-size: 0.95rem; line-height: 1.5; }
@media (min-width: 960px) {
    .stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .stats-row li:nth-child(odd) { border-left: 1px solid var(--pm-line); }
    .stats-row li:first-child { border-left: 0; padding-left: 1.4rem; }
    .stat-num { font-size: 3.4rem; }
}

/* Latest posts */
.posts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}
@media (min-width: 600px) { .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .posts-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.zone-more { margin-top: 2.8rem; }

/* Zigzag */
.zz-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}
.zz-row + .zz-row { margin-top: 6rem; }
.zz-media { margin: 0; min-width: 0; }
.zz-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.zz-text { min-width: 0; }
.zz-text h3 { font-size: 1.6rem; margin: 0 0 0.8rem; }
.zz-text p { color: var(--pm-text); }
@media (min-width: 960px) {
    .zz-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4.5rem; }
    .zz-row--flip .zz-media { order: -1; }
    .zz-row:first-child .zz-text { padding-left: 1.4rem; }
}

/* FAQ */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--pm-line); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1.4rem 0;
    font-family: var(--pm-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pm-text);
    transition: color 0.25s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--pm-sans); font-weight: 400; color: var(--pm-sage); transition: transform 0.3s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--pm-amber); }
.faq-answer { color: var(--pm-muted); padding: 0 2.5rem 1.4rem 0; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-item[open] .faq-answer { animation: pmfReveal 0.45s ease both; }
@keyframes pmfReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 959px) {
    .zone-inner, .zone-inner--lean-left, .zone-inner--lean-right { width: 100%; padding-left: 0; padding-right: 0; }
    .hero-copy .zone-inner { padding-right: 0; }
}
@media (max-width: 600px) {
    .zone { padding: 4.2rem 0; }
    .zz-row + .zz-row { margin-top: 3.5rem; }
    .zone-title, .archive-title, .comments-title, .comment-reply-title { padding-left: 0.8rem; }
    .zone-title::after, .archive-title::after, .comments-title::after, .comment-reply-title::after { left: 0.8rem; }
    .zone-lead { margin-left: 0.8rem; }
}

/* ---------- Cards ---------- */
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--pm-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--pm-shadow-hover); }
.card-thumb { display: block; overflow: hidden; background-image: none; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.card:hover .card-thumb img { transform: scale(1.02); }
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.5rem 1.6rem;
    min-width: 0;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.card-title { font-size: 1.25rem; margin: 0 0 0.5rem; }
.card-title a { color: var(--pm-text); background-position: 0 92%; }
.card-title a:hover { color: var(--pm-amber); }
.card-meta { font-size: 0.85rem; color: var(--pm-muted); margin-bottom: 0.8rem; }
.card-excerpt { font-size: 0.97rem; color: #33443C; margin-bottom: 1.2rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { margin-top: auto; font-weight: 600; font-size: 0.93rem; align-self: flex-start; }
.card--sticky { box-shadow: 0 0 0 1.5px rgba(196, 139, 58, 0.45), var(--pm-shadow); }

/* Category tags */
.tag-chip {
    display: inline-block;
    padding: 0.18em 0.6em;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.5;
    color: #FFFFFF;
    background-color: var(--pm-sage);
    border: 1px solid var(--pm-sage);
    border-radius: 2px;
    background-image: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.tag-chip:hover, .tag-chip:focus-visible { background-color: #FFFFFF; color: var(--pm-sage); }
.tag-chip--featured { background-color: var(--pm-amber); border-color: var(--pm-amber); }
.tag-chip--featured:hover { background-color: #FFFFFF; color: var(--pm-amber-dark); }

/* ---------- Single / Page ---------- */
.entry-header { margin-bottom: 1.8rem; }
.entry-title { margin: 0 0 0.8rem; }
.entry-meta { color: var(--pm-muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.entry-figure { margin: 0 0 2.2rem; }
.entry-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.entry-content { min-width: 0; }
.entry-content > *:first-child { margin-top: 0; }
.single-post .entry-content > p:first-of-type::first-letter {
    float: left;
    font-family: var(--pm-serif);
    font-size: 3.5rem;
    line-height: 0.9;
    color: var(--pm-sage);
    margin: 0.08em 0.12em 0 -0.06em;
    padding-top: 0.06em;
}
.entry-content img { border-radius: 6px; }
.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; }
.wp-caption, figure.wp-block-image { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 0.85rem; color: var(--pm-muted); margin-top: 0.4rem; }
.entry-footer { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--pm-line); display: flex; flex-wrap: wrap; gap: 0.4rem; }
.page-links { margin-top: 1.6rem; }

/* ---------- Sidebar ---------- */
.sidebar {
    background: var(--pm-sidebar);
    padding: 1.8rem 1.6rem;
    border-radius: 8px;
    margin-top: 3rem;
    min-width: 0;
    color: var(--pm-text);
}
@media (min-width: 960px) { .sidebar { margin-top: 0; } }
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-size: 1.15rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    color: var(--pm-text);
    position: relative;
}
.sidebar .widget-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40%; height: 1.5px; background: var(--pm-amber); }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: 0.55rem 0; border-bottom: 1px solid var(--pm-line); margin: 0; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: #2D4A3E; }
.sidebar a:hover { color: var(--pm-amber-dark); }
.sidebar .post-date { display: block; font-size: 0.8rem; color: var(--pm-muted); }
.sidebar p { color: var(--pm-text); }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 0.5rem; max-width: 520px; }
.search-form label { flex: 1; min-width: 0; }
.search-field {
    width: 100%;
    font: inherit;
    padding: 0.75em 1em;
    border: 1.5px solid #C9D6C4;
    border-radius: 4px;
    background: #FFFFFF;
    color: var(--pm-text);
}
.search-submit { flex: 0 0 auto; }

/* ---------- Pagination ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 3rem;
}
.pager .page-numbers {
    display: inline-block;
    min-width: 2.6rem;
    padding: 0.5em 0.85em;
    text-align: center;
    border: 1.5px solid #C9D6C4;
    border-radius: 4px;
    color: var(--pm-text);
    background-color: #FFFFFF;
    background-image: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.pager a.page-numbers:hover { border-color: var(--pm-amber); color: var(--pm-amber-dark); }
.pager .page-numbers.current { background-color: var(--pm-amber); border-color: var(--pm-amber); color: var(--pm-text); font-weight: 700; }
.pager .page-numbers.dots { border: 0; background: none; min-width: 0; padding: 0.5em 0.3em; }

/* ---------- Archive head / empty ---------- */
.archive-head { margin-bottom: 1rem; }
.archive-desc { color: var(--pm-muted); max-width: 680px; }
.empty-state { padding: 2rem 2rem; background: var(--pm-bg-alt); border-radius: 8px; }
.empty-state p:last-child { margin-bottom: 0; }

/* ---------- 404 ---------- */
.notfound { padding: 2.5rem 0 1rem; }
.notfound-code { font-family: var(--pm-serif); font-size: 5rem; line-height: 1; color: var(--pm-sage); margin: 0 0 0.5rem; }
.notfound .search-form { margin: 1.8rem 0 2rem; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 3.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2.5rem; }
.comment-list .children { list-style: none; padding-left: 1.6rem; margin: 0; border-left: 1px solid var(--pm-line); }
.comment-body { padding: 1.3rem 1.4rem; background: #FFFFFF; border-radius: 8px; box-shadow: var(--pm-shadow); margin-bottom: 1.2rem; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; margin-bottom: 0.6rem; }
.comment-head img { border-radius: 50%; display: block; }
.comment-author-name { font-weight: 600; }
.comment-date { font-size: 0.82rem; color: var(--pm-muted); }
.comment-awaiting { font-size: 0.88rem; color: var(--pm-amber-dark); }
.comment-text p:last-child { margin-bottom: 0.4rem; }
.comment-reply-link { font-size: 0.88rem; font-weight: 600; }
.comment-respond { background: var(--pm-bg-alt); padding: 2rem 2rem; border-radius: 8px; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; font: inherit; padding: 0.7em 0.9em; border: 1.5px solid #C9D6C4; border-radius: 4px; background: #FFFFFF; color: var(--pm-text);
}
.comment-form .comment-form-cookies-consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; display: inline; }
.comment-navigation { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 600px) {
    .comment-respond { padding: 1.5rem 1.2rem; }
    .comment-body { padding: 1.1rem 1.1rem; }
    .sidebar { padding: 1.5rem 1.2rem; }
    .empty-state { padding: 1.5rem 1.3rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--pm-footer); color: #C9D6CE; padding: 4.5rem 0 2rem; font-size: 0.95rem; }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
@media (min-width: 600px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .footer-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 1.2fr); gap: 3.5rem; } }
.footer-col { min-width: 0; }
.site-footer .widget-title { font-size: 1.1rem; color: #F4F7F2; margin: 0 0 1rem; padding-bottom: 0.5rem; position: relative; }
.site-footer .widget-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 1.5px; background: var(--pm-amber); }
.site-footer p, .site-footer .textwidget { color: #C9D6CE; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 0.5rem; }
.site-footer a { color: #E6C08A; }
.site-footer a:hover { color: #F4F7F2; }
.site-footer .post-date { color: #93A89B; font-size: 0.8rem; display: block; }
.footer-base {
    margin-top: 3.5rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(201, 214, 206, 0.16);
    font-size: 0.85rem;
    color: #93A89B;
}
.footer-base p { margin: 0; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 900;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.6rem;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.2rem 1.5rem;
    background: var(--pm-header);
    color: #E8EEE4;
    border-radius: 8px;
    border-top: 3px solid var(--pm-amber);
    box-shadow: 0 12px 30px rgba(20, 36, 30, 0.25);
    font-size: 0.92rem;
}
.cookie-banner p { margin: 0; flex: 1 1 320px; min-width: 0; }
.cookie-banner .btn { flex: 0 0 auto; }
@media (max-width: 600px) { .cookie-banner { padding: 1.1rem 1.2rem; } }
