/*
Theme Name: dds_organizingbyoz.com
Theme URI: https://organizingbyoz.com/
Author: Савина Дарья
Author URI: https://organizingbyoz.com/
Description: Кастомная тема для проекта «Организация пространства: порядок и расхламление». Минимализм, тёплая палитра натурального льна и берёзы, ясная структура.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: harmony_space
*/

/* ==========================================================================
   1. CSS Variables
   ========================================================================== */
:root {
    --bg-primary: #FDF8F5;
    --bg-secondary: #F4EFEA;
    --accent: #D9B48B;
    --accent-hover: #C7A17A;
    --accent-secondary: #E38B6D;
    --text-main: #2C2A29;
    --text-muted: #7E6B5E;
    --border: #E5DCD4;
    --sage: #A3B8A7;
    --shadow-soft: 0 1px 3px rgba(44, 42, 41, 0.06);

    --font-headings: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-body: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-main);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
    margin: 0 0 0.6em;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

p {
    margin: 0 0 1em;
    /* фон НЕ задаётся глобально на p */
}

blockquote {
    margin: 1.5em 0;
    padding: 0.5em 1.25em;
    border-left: 3px solid var(--accent);
    background: var(--bg-secondary);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15em;
    color: var(--text-main);
}

code, pre {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.92em;
}

code {
    background: var(--bg-secondary);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
    color: var(--text-main);
}

pre {
    background: var(--bg-secondary);
    padding: 1em;
    border-radius: var(--radius-md);
    overflow-x: auto;
    border: 1px solid var(--border);
}

pre code {
    background: transparent;
    padding: 0;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2em 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25em 0;
    border: 1px solid var(--border);
}

th, td {
    border: 1px solid var(--border);
    padding: 0.65em 0.85em;
    text-align: left;
}

th {
    background: var(--bg-secondary);
    font-weight: 600;
}

/* ==========================================================================
   3. Layout containers
   ========================================================================== */
.page-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.shell {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.site-main {
    flex: 1;
    padding: 2.5rem 0 4rem;
}

.layout-grid {
    display: grid;
    grid-template-columns: 67% 27%;
    gap: 6%;
    align-items: start;
}

.layout-grid.no-sidebar {
    grid-template-columns: 85%;
    justify-content: center;
}

.front-shell {
    width: 85%;
    margin: 0 auto;
}

@media (max-width: 960px) {
    .layout-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .front-shell {
        width: 92%;
    }
}

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 0;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 0 1 auto;
    text-decoration: none;
    color: var(--text-main);
}

.brand:hover { color: var(--text-main); text-decoration: none; }

.brand-logo,
.brand-figure {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: block;
}

.brand-figure {
    color: var(--accent);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
    margin: 0;
}

.brand-tagline {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0;
}

/* Primary nav */
.primary-nav {
    flex: 0 1 auto;
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.6rem;
}

.primary-nav a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.97rem;
    padding: 0.4rem 0;
    position: relative;
}

.primary-nav a:hover {
    color: var(--accent);
    text-decoration: none;
}

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    color: var(--accent);
}

.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--accent);
}

/* Burger toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.4rem;
    cursor: pointer;
    color: var(--text-main);
}

.nav-toggle svg { display: block; }

@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .primary-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border);
        padding: 1rem 1rem 1.4rem;
        transform: translateY(110%);
        transition: transform 0.3s ease;
        z-index: 50;
        box-shadow: 0 -4px 20px rgba(44, 42, 41, 0.08);
    }
    .primary-nav.is-open {
        transform: translateY(0);
    }
    .primary-nav ul {
        flex-direction: column;
        gap: 0.6rem;
        align-items: center;
    }
    .primary-nav a {
        display: block;
        padding: 0.6rem 0.8rem;
        font-size: 1.05rem;
    }
}

/* ==========================================================================
   5. Breadcrumbs
   ========================================================================== */
.breadcrumbs {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0 0 1.6rem;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.breadcrumbs .sep {
    margin: 0 0.5rem;
    color: var(--border);
}

.breadcrumbs .current {
    color: var(--text-main);
}

/* ==========================================================================
   6. Cards
   ========================================================================== */
.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.6rem;
    margin: 0 0 2rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    border-left: 4px solid var(--accent);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(44, 42, 41, 0.08);
}

.card.cat-declutter { border-left-color: var(--accent-secondary); }
.card.cat-habits { border-left-color: var(--sage); }

.card-thumb-wrap {
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
}

.card-thumb-wrap img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-thumb-wrap img {
    transform: scale(1.04);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.25rem 1.25rem;
}

.card-cats {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.card-cats a { color: var(--text-muted); }
.card-cats a:hover { color: var(--accent); }

.card-title {
    font-size: 1.18rem;
    margin: 0 0 0.55rem;
    line-height: 1.3;
}

.card-title a {
    color: var(--text-main);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--accent);
    text-decoration: none;
}

.card-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0 0 0.65rem;
}

.card-excerpt {
    color: var(--text-main);
    font-size: 0.95rem;
    margin: 0 0 1rem;
    flex: 1;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-more {
    align-self: flex-start;
    margin-top: auto;
}

/* ==========================================================================
   7. Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    background-color: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition), box-shadow var(--transition), color var(--transition);
}

.btn:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
    text-decoration: none;
    box-shadow: inset 0 2px 4px rgba(44, 42, 41, 0.12);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-ghost:hover {
    background: var(--accent);
    color: #ffffff;
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   8. Front page sections
   ========================================================================== */
.front-section {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border);
}

.front-section:last-of-type {
    border-bottom: none;
}

.front-section.section-soft {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    margin: 2rem 0;
    border-bottom: none;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.section-head h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.section-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* «Дышите свободно» — три принципа на сетке-бумаге */
.principles {
    background-color: var(--bg-secondary);
    background-image:
        linear-gradient(to right, rgba(125, 107, 94, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(125, 107, 94, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.principle-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 1.6rem 1.4rem;
    text-align: center;
    border: 1px solid var(--border);
}

.principle-card .icon {
    width: 44px;
    height: 44px;
    color: var(--accent);
    margin: 0 auto 0.85rem;
    display: block;
}

.principle-card h3 {
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
}

.principle-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 760px) {
    .principles-grid { grid-template-columns: 1fr; }
}

/* «Сила перемен» — до/после */
.before-after {
    max-width: 760px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.ba-stage {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    user-select: none;
    touch-action: none;
}

.ba-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
}

.ba-after-wrap {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
    width: 50%;
    will-change: width;
}

.ba-after-wrap .ba-img {
    width: 100vw;
    max-width: 760px;
}

.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: #ffffff;
    transform: translateX(-50%);
    cursor: ew-resize;
    will-change: left;
}

.ba-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(44, 42, 41, 0.25);
    transform: translate(-50%, -50%);
}

.ba-handle::after {
    content: '⇆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
}

.ba-label {
    position: absolute;
    top: 1rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(253, 248, 245, 0.9);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    pointer-events: none;
}

.ba-label.before { left: 1rem; }
.ba-label.after { right: 1rem; }

/* «Энергия пространства» — рандомная фраза */
.energy-quote {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.energy-quote-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.6rem;
    line-height: 1.4;
    color: var(--text-main);
    margin: 0 0 1rem;
}

.energy-quote-refresh {
    background: none;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition);
    font-family: var(--font-headings);
}

.energy-quote-refresh:hover {
    background: var(--accent);
    color: #ffffff;
}

/* Hero */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 0.6rem;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

@media (max-width: 600px) {
    .hero { padding: 2.5rem 0 2rem; }
    .hero h1 { font-size: 2rem; }
}

/* ==========================================================================
   9. Single post & page
   ========================================================================== */
.entry-header {
    margin: 0 0 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.entry-title {
    font-size: 2.1rem;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.entry-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.entry-meta a { color: var(--text-muted); }
.entry-meta a:hover { color: var(--accent); }

.entry-thumbnail {
    margin: 0 0 1.6rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
}

.entry-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

.entry-content {
    font-size: 1.02rem;
    line-height: 1.75;
}

.entry-content h2 { margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.5em; }

.entry-content img {
    border-radius: var(--radius-md);
    display: block;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}

.entry-content li { margin-bottom: 0.4em; }

.entry-footer {
    margin: 2.5rem 0 1.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
    color: var(--text-muted);
}

.entry-tags a {
    display: inline-block;
    padding: 0.18rem 0.7rem;
    background: var(--bg-secondary);
    border-radius: 999px;
    color: var(--text-main);
    font-size: 0.82rem;
    margin: 0 0.3rem 0.3rem 0;
    transition: background-color var(--transition);
}

.entry-tags a:hover {
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
}

/* ==========================================================================
   10. Sidebar
   ========================================================================== */
.sidebar {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.sb-widget {
    margin: 0 0 1.6rem;
}

.sb-widget:last-child { margin-bottom: 0; }

.sb-title {
    font-size: 1.05rem;
    margin: 0 0 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

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

.sb-widget li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(229, 220, 212, 0.5);
}

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

.sb-widget li a {
    color: var(--text-main);
}

.sb-widget li a:hover {
    color: var(--accent);
}

/* ==========================================================================
   11. Pagination
   ========================================================================== */
.pagination {
    margin: 2.5rem 0 1rem;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-weight: 500;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.pagination .page-numbers:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.pagination .page-numbers.dots {
    background: transparent;
    border: none;
}

/* ==========================================================================
   12. Search form
   ========================================================================== */
.search-form {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.search-form .search-field {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font: inherit;
    background: #ffffff;
    color: var(--text-main);
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--accent);
}

.search-form .search-submit {
    padding: 0.6rem 1.1rem;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.search-form .search-submit:hover {
    background: var(--accent-hover);
}

/* ==========================================================================
   13. Comments
   ========================================================================== */
.comments-area {
    margin-top: 2.5rem;
}

.comments-title {
    font-size: 1.4rem;
    margin: 0 0 1.5rem;
}

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

.comment-list .comment,
.comment-list .pingback,
.comment-list .trackback {
    margin: 0 0 1.25rem;
    padding: 1.1rem 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

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

.comment-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--text-main);
}

.comment-body p { margin: 0 0 0.6em; }

.comment-respond {
    background: var(--bg-secondary);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
}

.comment-respond label {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font: inherit;
    background: #ffffff;
    color: var(--text-main);
    margin-bottom: 0.85rem;
}

.comment-form textarea { min-height: 120px; resize: vertical; }

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.comment-form .form-submit input {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
}

.comment-form .form-submit input:hover {
    background: var(--accent-hover);
}

/* ==========================================================================
   14. Footer
   ========================================================================== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.4rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 0 0 2rem;
}

@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.footer-col h2,
.footer-col h3,
.footer-col .widget-title {
    font-size: 1.05rem;
    margin: 0 0 0.85rem;
    color: var(--text-main);
}

.footer-col,
.footer-col p,
.footer-col li {
    color: var(--text-main);
    font-size: 0.95rem;
}

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

.footer-col li {
    margin: 0 0 0.4rem;
}

.footer-col a {
    color: var(--text-main);
}

.footer-col a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    padding-top: 1.4rem;
    border-top: 1px solid var(--border);
}

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

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 100;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: 0 6px 24px rgba(44, 42, 41, 0.12);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 720px;
    margin: 0 auto;
}

.cookie-banner-text {
    flex: 1 1 240px;
    font-size: 0.9rem;
    color: var(--text-main);
    margin: 0;
}

.cookie-banner-accept {
    flex: 0 0 auto;
    padding: 0.55rem 1.2rem;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.cookie-banner-accept:hover {
    background: var(--accent-hover);
}

/* ==========================================================================
   16. Inspiration float button + drawer
   ========================================================================== */
.inspire-float[hidden] { display: none !important; }

.inspire-float {
    position: fixed;
    right: 1.2rem;
    bottom: 5rem;
    z-index: 80;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(44, 42, 41, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition), transform var(--transition);
}

.inspire-float:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.inspire-float svg { width: 26px; height: 26px; }

@media (max-width: 960px) {
    .inspire-float { display: none; }
}

.inspire-drawer[hidden] { display: none !important; }

.inspire-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 92%);
    background: var(--bg-secondary);
    background-image:
        linear-gradient(to right, rgba(125, 107, 94, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(125, 107, 94, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    box-shadow: -4px 0 18px rgba(44, 42, 41, 0.12);
    padding: 1.5rem 1.4rem;
    z-index: 110;
    overflow-y: auto;
}

.inspire-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 1rem;
}

.inspire-drawer-head h3 {
    margin: 0;
    font-size: 1.15rem;
}

.inspire-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.3rem;
    font-size: 1.4rem;
    line-height: 1;
}

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

.inspire-list li {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    margin: 0 0 0.7rem;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.45;
    color: var(--text-main);
}

/* ==========================================================================
   17. 404
   ========================================================================== */
.error-404 {
    text-align: center;
    padding: 3rem 1rem;
}

.error-404-code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin: 0 0 0.5rem;
}

.error-404 h1 {
    font-size: 1.6rem;
    margin: 0 0 0.8rem;
}

.error-404 p {
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 1.5rem;
}

.error-404 .search-form {
    max-width: 480px;
    margin: 0 auto 1.25rem;
}

/* ==========================================================================
   18. Misc
   ========================================================================== */
.alignleft { float: left; margin: 0 1.25rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.25rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.wp-caption {
    max-width: 100%;
    margin: 0 0 1rem;
}
.wp-caption-text {
    font-size: 0.86rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0.4rem 0 0;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* Two-column intro on front-page */
.intro-cols {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 760px) {
    .intro-cols { grid-template-columns: 1fr; }
}

.intro-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.intro-img svg {
    width: 70%;
    height: auto;
}

/* Recent posts on front */
.front-recent {
    margin: 1rem 0;
}

/* Latest small list (sidebar widget recent posts) */
.widget_recent_entries ul li {
    border-bottom: 1px solid rgba(229, 220, 212, 0.5);
    padding: 0.4rem 0;
}
.widget_recent_entries ul li:last-child { border-bottom: none; }

/* Print fix */
@media print {
    .site-header, .site-footer, .cookie-banner, .inspire-float, .inspire-drawer {
        display: none !important;
    }
}
