/* =========================================
   British Berries - Redesigned Stylesheet
   Warm, Organic, Editorial Garden Theme
   ========================================= */

/* --- Design Tokens --- */
:root {
    /* Primary palette */
    --color-primary: #8B2252;
    --color-primary-dark: #6E1A40;
    --color-secondary: #4A7C59;
    --color-secondary-dark: #3A6347;
    --color-accent: #FFF8F0;
    --color-gold: #D4A853;
    --color-gold-dark: #C49843;

    /* Neutrals */
    --color-bg: #FDFAF6;
    --color-surface: #FFFFFF;
    --color-text: #3D3530;
    --color-text-light: #7A7268;
    --color-text-heading: #2C2520;
    --color-border: #E8E2DA;
    --color-border-light: #F0EBE4;

    /* Semantic */
    --color-link: #8B2252;
    --color-link-hover: #4A7C59;

    /* Shadows (warm-tinted) */
    --shadow-sm: 0 2px 12px rgba(60, 45, 35, 0.06);
    --shadow-md: 0 4px 20px rgba(60, 45, 35, 0.1);
    --shadow-lg: 0 8px 30px rgba(60, 45, 35, 0.12);

    /* Fonts */
    --font-heading: 'Fraunces', Georgia, serif;
    --font-body: 'Petrona', Georgia, serif;

    /* Category accent colours */
    --cat-growing:  #2D6A4F;
    --cat-popular:  #8B2252;
    --cat-exotic:   #5E3A8A;
    --cat-foraging: #4A6741;
    --cat-recipes:  #C4841D;

    /* Spacing / Layout */
    --container-max: 1320px;
    --container-narrow: 800px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* --- Nature: page accent bar --- */
.page-accent-bar {
    height: 4px;
    background: linear-gradient(to right, #8B2252 0%, #4A7C59 50%, #D4A853 100%);
}
[data-season="spring"] .page-accent-bar { background: linear-gradient(to right, #4A7C59 0%, #8B2252 45%, #D4A853 100%); }
[data-season="summer"] .page-accent-bar { background: linear-gradient(to right, #8B2252 0%, #D4A853 55%, #4A7C59 100%); }
[data-season="autumn"] .page-accent-bar { background: linear-gradient(to right, #C4841D 0%, #8B2252 60%, #4A6741 100%); }
[data-season="winter"] .page-accent-bar { background: linear-gradient(to right, #2D6A4F 0%, #5E3A8A 55%, #8B2252 100%); }
[data-season="spring"]  .hero-editorial-text { background: #f3f8f3; }
[data-season="autumn"]  .hero-editorial-text { background: #fdf5ec; }
[data-season="winter"]  .hero-editorial-text { background: #f5f0f8; }

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    animation: fadeInPage .4s ease;
}
@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

::selection { background: var(--color-primary); color: #fff; }
::-moz-selection { background: var(--color-primary); color: #fff; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-link-hover); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text-heading);
    margin-bottom: .75rem;
    font-optical-sizing: auto;
}

h1 { font-size: 2.8rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; letter-spacing: -0.01em; }

p { margin-bottom: 1rem; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }

/* --- Layout --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container-wide-post {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: .65rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s, color .2s;
    text-decoration: none;
    line-height: 1.4;
    min-height: 44px;
    min-width: 44px;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: background .2s, transform .2s, padding-left .22s ease;
}
.btn-primary::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M7 1C7 1 5 5 7 9' stroke='rgba(255,255,255,0.9)' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M4.5 4Q7 2.5 9.5 4' stroke='rgba(255,255,255,0.9)' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: left .22s ease, opacity .22s ease;
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; padding-left: 2.25rem; }
.btn-primary:hover::before { left: 10px; opacity: 1; }

.btn-secondary {
    background: rgba(139,34,82,0.1);
    background: color-mix(in srgb, var(--color-secondary) 12%, var(--color-bg));
    color: var(--color-secondary);
    border: 1px solid rgba(139,34,82,0.3);
    border: 1px solid color-mix(in srgb, var(--color-secondary) 30%, transparent);
}
.btn-secondary:hover {
    background: var(--color-secondary);
    color: #fff;
}

.btn-secondary-outline {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    padding: .55rem 1.4rem;
}
.btn-secondary-outline:hover {
    background: var(--color-secondary);
    color: #fff;
}

.btn-danger {
    background: #c0392b;
    color: #fff;
}
.btn-danger:hover { background: #a93226; color: #fff; }

.btn-sm {
    padding: .35rem .75rem;
    font-size: .85rem;
    min-height: 36px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* CTA button - hero style */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--color-secondary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    text-decoration: none;
    min-height: 44px;
}
.btn-cta:hover {
    background: var(--color-secondary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(74, 124, 89, 0.4);
}
.btn-cta svg {
    transition: transform .2s;
}
.btn-cta:hover svg {
    transform: translateX(3px);
}

/* --- Header --- */
.site-header {
    background: rgba(253, 250, 246, 0.97);
    padding: .85rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: none;
    border-bottom: 2px solid var(--color-primary);
    transition: padding .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
.site-header.scrolled {
    padding: .5rem 0;
    background: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Transparent header on homepage over hero */
.site-header.header-transparent {
    background: rgba(110, 26, 64, 0.95);
    border-bottom-color: transparent;
    box-shadow: none;
}
.site-header.header-transparent .site-nav a {
    color: #fff;
}
.site-header.header-transparent .site-nav a:hover,
.site-header.header-transparent .site-nav a.active {
    color: #fff;
    background: rgba(255,255,255,0.2);
}
.site-header.header-transparent .site-logo {
    color: #fff;
}
.site-header.header-transparent .site-logo .logo-text {
    fill: #fff;
}
.site-header.header-transparent .nav-toggle span {
    background: #fff;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-heading);
    transition: color .2s;
}
.site-logo:hover { color: var(--color-primary); }
.site-logo-svg {
    height: 38px;
    width: auto;
}
.site-logo-svg .logo-text {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    fill: var(--color-text-heading);
    transition: fill .2s;
}
.site-logo:hover .logo-text {
    fill: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Nav links with hover pills */
.site-nav a {
    color: var(--color-text-heading);
    margin-left: .25rem;
    font-weight: 500;
    font-size: .95rem;
    padding: .4rem .85rem;
    border-radius: 20px;
    transition: background .2s, color .2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.site-nav a:hover {
    background: var(--color-primary);
    color: #fff;
}
.site-nav a.active {
    background: var(--color-primary);
    color: #fff;
}

/* Hamburger animation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-heading);
    transition: transform .3s, opacity .2s;
    transform-origin: center;
}
.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 72px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    width: 0;
    z-index: 200;
    transition: width .1s linear;
}

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #fff;
    text-align: center;
    padding: 4rem 1rem;
    position: relative;
}
/* Homepage hero - gradient with botanical SVGs */
.hero-home {
    padding: 7rem 1rem 5rem;
    background: linear-gradient(135deg, #8B2252 0%, #6E1A40 40%, #4A7C59 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(139,34,82,0.3) 0%, transparent 70%);
    z-index: 1;
}
.hero-botanical {
    position: absolute;
    top: 0;
    height: 100%;
    width: 200px;
    z-index: 1;
    opacity: 0.8;
    pointer-events: none;
}
.hero-botanical-left { left: 5%; }
.hero-botanical-right { right: 5%; transform: scaleX(-1); }

.hero-home .hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}
.hero-tagline {
    font-size: 1.4rem !important;
    font-weight: 400;
    font-family: var(--font-body);
    letter-spacing: .01em;
    margin-bottom: .8rem !important;
    opacity: .95 !important;
}
.hero-subtitle {
    font-size: 1.05rem !important;
    opacity: .8 !important;
    margin-bottom: 2.5rem !important;
    line-height: 1.6;
    font-family: var(--font-body);
}
/* Hero text fade-in animation */
.hero-content {
    animation: heroFadeUp .8s ease-out;
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
    color: #fff;
    font-size: 2.6rem;
    margin-bottom: .5rem;
}
.hero-home h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    letter-spacing: .01em;
    text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.hero p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    opacity: .9;
}

/* Section divider (replaces wave clip-path) */
.section-divider {
    display: block;
    width: 100%;
    height: 60px;
    margin-top: -60px;
    position: relative;
    z-index: 3;
}

/* Remove old wave on non-home hero pages */
.hero::after {
    display: none;
}

/* --- Post Grid --- */
.latest-posts, .blog-listing, .related-posts {
    padding: 3rem 0;
}
.latest-posts h2, .blog-listing h1, .related-posts h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 1.75rem;
}

/* Staggered fade-in for cards */
.fade-in-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease;
}
.fade-in-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Post cards - redesigned */
.post-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s;
    border-left: 4px solid var(--chip-color, var(--color-primary));
    position: relative;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Make entire card clickable via heading link */
.post-card-body h2 a::after,
.post-card-body h3 a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
/* Keep explicit links above the overlay */
.post-card .read-more,
.post-card .category-chip {
    position: relative;
    z-index: 2;
}

/* Post card image hover zoom */
.post-card a:first-child {
    display: block;
    overflow: hidden;
    position: relative;
}
.post-card a:first-child::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--chip-color, var(--color-primary));
    opacity: 0;
    z-index: 1;
    transition: opacity .3s ease;
    pointer-events: none;
}
.post-card:hover a:first-child::before { opacity: 0.18; }
.post-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .4s ease;
}
.post-card:hover img {
    transform: scale(1.05);
}

.post-card-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-gold) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: rgba(255,255,255,.5);
    font-family: var(--font-heading);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: transform .4s ease;
}
.post-card-placeholder svg {
    opacity: .6;
}
.post-card:hover .post-card-placeholder {
    transform: scale(1.05);
}

.post-card-body {
    padding: 1.5rem;
    position: relative;
}
.post-card-body h2,
.post-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: .5rem;
    line-height: 1.35;
}
.post-card-body h2 a,
.post-card-body h3 a {
    color: var(--color-text-heading);
}
.post-card-body h2 a:hover,
.post-card-body h3 a:hover {
    color: var(--color-primary);
}

/* Featured post card — full-bleed magazine editorial lead */
.post-card-featured {
    grid-column: 1 / -1;
    display: block;
    position: relative;
    overflow: hidden;
    border-left: none;
    border-radius: var(--radius-md);
    min-height: 520px;
}
.post-card-featured > a:first-child {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.post-card-featured > a:first-child::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
    transition: opacity .4s ease;
    z-index: 1;
    pointer-events: none;
}
.post-card-featured:hover > a:first-child::before { opacity: 0; }
.post-card-featured img,
.post-card-featured .post-card-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: unset;
    min-height: unset;
    display: block;
    transition: transform .7s ease;
}
.post-card-featured:hover img { transform: scale(1.03); }
.post-card-featured .post-card-body {
    position: relative;
    z-index: 2;
    padding: 2.5rem 3rem 2.5rem;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(4,16,8,0.93) 0%, rgba(4,16,8,0.55) 42%, rgba(4,16,8,0.12) 70%, transparent 100%);
    color: #fff;
}
.post-card-featured .post-card-body h3,
.post-card-featured .post-card-body h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.8rem);
    color: #fff;
    margin-bottom: .5rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
}
.post-card-featured .post-card-body h3 a,
.post-card-featured .post-card-body h2 a { color: #fff; }
.post-card-featured .post-card-body h3 a:hover,
.post-card-featured .post-card-body h2 a:hover { color: rgba(255,255,255,0.85); }
.post-card-featured .post-card-body p {
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 640px;
}
.post-card-featured .post-card-meta time,
.post-card-featured .post-card-meta .reading-time-badge { color: rgba(255,255,255,0.6); }
.post-card-featured .post-card-meta .reading-time-badge { background: transparent; border: 1px solid rgba(255,255,255,0.25); }
.post-card-featured .read-more { color: rgba(255,255,255,0.9); }
.post-card-featured .read-more:hover { color: #fff; }
.post-card-featured .category-chip {
    background: rgba(255,255,255,0.16) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.3);
}
.post-card-featured .new-badge { background: var(--color-secondary); }

/* Category chips */
.category-chip {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .2rem .7rem;
    border-radius: 20px;
    background: rgba(139,34,82,0.12);
    background: color-mix(in srgb, var(--chip-color, var(--color-secondary)) 12%, transparent);
    color: var(--chip-color, var(--color-secondary));
    margin-bottom: .4rem;
}

/* New badge - gold pill */
.new-badge {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-text-heading);
    font-size: .7rem;
    font-weight: 700;
    padding: .2rem .75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .4rem;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
}

.post-date {
    font-size: .85rem;
    color: var(--color-text-light);
    display: block;
}

/* Reading time badge on cards */
.reading-time-badge {
    display: inline-block;
    background: var(--color-border-light);
    color: var(--color-text-light);
    font-size: .75rem;
    font-weight: 600;
    padding: .15rem .55rem;
    border-radius: 12px;
}

/* Read More link */
.read-more {
    display: inline-block;
    margin-top: .5rem;
    font-weight: 600;
    color: var(--color-primary);
    font-size: .9rem;
    padding: .3rem .7rem;
    border-radius: var(--radius-sm);
    transition: background .2s, color .2s;
}
.read-more:hover {
    background: var(--color-primary);
    color: #fff;
}

/* --- Reading Time --- */
.reading-time {
    display: inline-block;
    font-size: .85rem;
    color: var(--color-text-light);
    margin-left: .75rem;
    padding-left: .75rem;
    border-left: 1px solid var(--color-border);
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem .75rem;
}

/* --- Search Form --- */
.search-form {
    display: flex;
    gap: .5rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}
.search-form input[type="search"] {
    flex: 1;
    padding: .6rem .85rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .95rem;
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color .2s, box-shadow .2s;
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 34, 82, 0.12);
}
.search-form .btn {
    white-space: nowrap;
}

/* --- Category Filter Chips --- */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.filter-chip {
    display: inline-block;
    padding: .4rem 1rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid var(--color-border);
    color: var(--color-text);
    background: var(--color-surface);
    transition: all .2s ease;
}
.filter-chip:hover {
    border-color: var(--chip-color, var(--color-primary));
    color: var(--chip-color, var(--color-primary));
}
.filter-chip.active {
    background: var(--chip-color, var(--color-primary));
    border-color: var(--chip-color, var(--color-primary));
    color: #fff;
}

/* --- Table of Contents --- */
.toc {
    background: var(--color-accent);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--page-cat-color, var(--color-primary));
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
.toc-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-heading);
    margin-bottom: .75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
.toc-title::after {
    content: '\25B2';
    font-size: .65rem;
    transition: transform .3s ease;
    color: var(--color-text-light);
}
.toc.collapsed .toc-title {
    margin-bottom: 0;
}
.toc.collapsed .toc-title::after {
    transform: rotate(180deg);
}
.toc-content {
    max-height: 600px;
    overflow: hidden;
    transition: max-height .3s ease;
}
.toc.collapsed .toc-content {
    max-height: 0;
}
.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.toc li {
    margin-bottom: .35rem;
}
.toc li a {
    color: var(--color-primary);
    font-size: .9rem;
    font-weight: 500;
    transition: padding-left .2s, color .2s;
}
.toc li a:hover {
    padding-left: .3rem;
    color: var(--color-secondary);
}
.toc li.toc-sub {
    padding-left: 1rem;
}
.toc li.toc-sub a {
    font-size: .85rem;
    font-weight: 400;
}

/* --- Mode Toggle (Bulk Generator) --- */
.mode-toggle {
    display: flex;
    gap: 1.5rem;
    margin-top: .25rem;
}
.mode-option {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-weight: 400 !important;
    cursor: pointer;
    font-size: .95rem;
}
.mode-option input[type="radio"] {
    accent-color: var(--color-primary);
}

/* --- Form Hints --- */
.form-hint {
    font-size: .8rem;
    color: var(--color-text-light);
    margin-top: .35rem;
}
.bulk-summary {
    margin-bottom: 1.5rem;
    font-size: .95rem;
    color: var(--color-text-heading);
}
.post-count-info {
    color: var(--color-text-light);
    font-size: .9rem;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem 0;
}
.page-info {
    color: var(--color-text-light);
    font-size: .9rem;
}

/* --- Single Post --- */
.single-post {
    padding: 2rem 0 3rem;
}

/* Post layout with sidebar */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}
.post-sidebar {}
.sidebar-sticky {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.sidebar-newsletter {
    background: var(--color-accent);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}
.sidebar-newsletter h4 {
    font-size: 1.1rem;
    margin-bottom: .25rem;
}
.sidebar-newsletter p {
    font-size: .9rem;
    color: var(--color-text-light);
    margin-bottom: .75rem;
}
.sidebar-newsletter .newsletter-form {
    flex-direction: column;
    max-width: 100%;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: .85rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .6rem 1rem;
    background: var(--color-surface);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border-left: 3px solid var(--color-border);
}
.breadcrumbs a {
    color: var(--color-primary);
    font-weight: 500;
}
.breadcrumbs a:hover { color: var(--color-secondary); }
.breadcrumbs .sep {
    color: var(--color-border);
    font-size: .7rem;
    display: inline-flex;
    align-items: center;
}
.breadcrumbs .sep::before {
    content: '\203A';
    font-size: 1rem;
}
.breadcrumbs .current {
    color: var(--color-text-heading);
    font-weight: 600;
}

/* Post header accent border */
.post-header {
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 4px solid var(--page-cat-color, var(--color-primary));
}
.post-header h1 {
    font-size: 2.4rem;
    margin-bottom: .25rem;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.post-featured-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    max-height: 520px;
}
.post-featured-image figcaption {
    font-size: .8rem;
    color: var(--color-text-light);
    padding: .5rem 0;
    text-align: right;
}

/* Post content - improved typography */
.post-content {
    font-size: 1.125rem;
    line-height: 1.85;
    letter-spacing: -0.01em;
}
.post-content p {
    margin-bottom: 1.25rem;
}
.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.post-content h3 {
    margin-top: 2rem;
    margin-bottom: .75rem;
}
.post-content ul, .post-content ol {
    margin-left: 1rem;
}
.post-content a { color: var(--color-primary); text-decoration: underline; }
.post-content a:hover { color: var(--color-secondary); }

/* Styled horizontal rule */
.post-content hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    margin: 2.5rem 0;
    border-radius: 2px;
}

/* Blockquotes - card treatment with decorative quote */
.post-content blockquote {
    position: relative;
    border-left: none;
    border: 1px solid var(--color-border);
    padding: 2rem 2rem 1.5rem 2.5rem;
    margin: 2rem 0;
    background: var(--color-accent);
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--color-text);
}
.post-content blockquote::before {
    content: '\201C';
    position: absolute;
    top: -.2rem;
    left: .75rem;
    font-size: 4rem;
    font-family: var(--font-heading);
    color: var(--page-cat-color, var(--color-primary));
    opacity: .25;
    line-height: 1;
}
.post-content blockquote p:last-child { margin-bottom: 0; }

/* Styled tables in content */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: .95rem;
    display: block;
    overflow-x: auto;
}
.post-content table th,
.post-content table td {
    padding: .7rem .9rem;
    border: 1px solid var(--color-border);
    text-align: left;
}
.post-content table th {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}
.post-content table tr:nth-child(even) {
    background: var(--color-accent);
}
.post-content table tr:hover {
    background: var(--color-border-light);
}

/* Styled code blocks */
.post-content pre {
    background: #2C2520;
    color: #f8f8f2;
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: .9rem;
    line-height: 1.5;
}
.post-content code {
    font-family: 'Courier New', Courier, monospace;
    font-size: .9em;
}
.post-content p code,
.post-content li code {
    background: var(--color-border-light);
    padding: .15rem .4rem;
    border-radius: 3px;
    color: var(--color-primary);
}

/* --- Author Bio Card --- */
.author-card {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    background: var(--color-accent);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 2.5rem;
}
.author-avatar svg {
    display: block;
}
.author-info h4 {
    margin-bottom: .25rem;
    font-size: 1rem;
}
.author-info p {
    margin: 0;
    font-size: .9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- Share Bar --- */
.share-bar {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}
.share-label {
    font-weight: 600;
    font-size: .9rem;
    color: var(--color-text-heading);
    margin-right: .25rem;
}
.share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .5rem .85rem;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s, transform .15s;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    position: relative;
}
/* Platform-specific share button colors */
.share-x { background: #f0f0f0; color: #000; }
.share-x:hover { background: #000; color: #fff; transform: translateY(-1px); }
.share-facebook { background: #E8F0FE; color: #1877F2; }
.share-facebook:hover { background: #1877F2; color: #fff; transform: translateY(-1px); }
.share-whatsapp { background: #E8F8E8; color: #25D366; }
.share-whatsapp:hover { background: #25D366; color: #fff; transform: translateY(-1px); }
.share-email { background: #FFF3E0; color: #F57C00; }
.share-email:hover { background: #F57C00; color: #fff; transform: translateY(-1px); }
.share-copy { background: var(--color-accent); color: var(--color-text); border: 1px solid var(--color-border); }
.share-copy:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); transform: translateY(-1px); }

/* Copy link button */
.copy-link-btn {
    cursor: pointer;
}

/* Lightbox overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeInPage .2s ease;
}
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}
.lightbox-close:hover {
    color: var(--color-gold);
}

/* --- 404 --- */
.error-page {
    padding: 5rem 1rem;
}
.error-page h1 {
    font-size: 6rem;
    color: var(--color-primary);
    margin-bottom: .25rem;
    text-shadow: 2px 2px 0 rgba(139,34,82,.15);
}
.error-subtitle {
    font-size: 1.4rem;
    margin-bottom: .5rem;
    color: var(--color-text-heading);
}
.error-page p {
    max-width: 480px;
    margin: 0 auto 1.5rem;
}
.error-page .btn { margin: .5rem; }
.error-illustration {
    margin-bottom: 1.5rem;
    opacity: .75;
}
.error-illustration svg {
    display: block;
    margin: 0 auto;
}

/* --- Contact Page --- */
.contact-page {
    padding: 2.5rem 0 3rem;
}
.contact-page h1 {
    text-align: center;
    margin-bottom: .5rem;
}
.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--color-text-light);
}
.contact-form {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}
/* Contact form validation states */
.contact-form input:invalid:not(:placeholder-shown) {
    border-color: #c0392b;
}
.contact-form input:valid:not(:placeholder-shown) {
    border-color: #27ae60;
}
.contact-form textarea:invalid:not(:placeholder-shown) {
    border-color: #c0392b;
}
.contact-form textarea:valid:not(:placeholder-shown) {
    border-color: #27ae60;
}

/* --- Seasonal Banner --- */
.seasonal-banner {
    padding: 2rem 0;
}
.seasonal-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--color-accent);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-secondary);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
}
.seasonal-icon {
    flex-shrink: 0;
}
.seasonal-content {
    flex: 1;
}
.seasonal-content h3 {
    font-size: 1.15rem;
    margin-bottom: .25rem;
    color: var(--color-secondary-dark);
}
.seasonal-content p {
    margin: 0;
    color: var(--color-text-light);
    font-size: .95rem;
    line-height: 1.6;
}

/* --- Why Berries Section --- */
.why-berries {
    padding: 3.5rem 0;
    text-align: center;
}
.why-berries h2 {
    margin-bottom: .5rem;
}
.why-berries > .container > p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.benefit-card {
    background: var(--color-surface);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--color-secondary);
    transition: transform .2s, box-shadow .2s;
}
.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.benefit-card svg {
    margin: 0 auto .75rem;
    display: block;
}
.benefit-card h3 {
    font-size: 1.15rem;
    margin-bottom: .4rem;
}
.benefit-card p {
    font-size: .9rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.6;
}

/* --- Homepage Newsletter Section --- */
.newsletter-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 4rem 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.newsletter-section h2 {
    color: #fff;
    margin-bottom: .5rem;
}
.newsletter-section p {
    opacity: .9;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}
.newsletter-form-wide {
    display: flex;
    gap: .5rem;
    max-width: 480px;
    margin: 0 auto;
}
.newsletter-form-wide input[type="email"] {
    flex: 1;
    padding: .75rem 1rem;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: .95rem;
    background: rgba(255,255,255,0.95);
    color: var(--color-text);
}
.newsletter-form-wide input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}
.newsletter-form-wide .btn-cta {
    padding: .75rem 2rem;
    font-size: 1rem;
}

/* --- Footer --- */
.site-footer {
    background: linear-gradient(160deg, #3A2028 0%, #1E3A28 100%);
    color: #C8BFB5;
    padding: 3.5rem 0 0;
    font-size: .9rem;
    position: relative;
    overflow: hidden;
}
.footer-botanical-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    position: relative;
    z-index: 1;
}
.footer-col h4 {
    color: var(--color-accent);
    font-size: 1.05rem;
    margin-bottom: .75rem;
    font-family: var(--font-heading);
}
.footer-col p {
    line-height: 1.6;
    margin-bottom: .75rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: .4rem; }
/* Footer link hover arrow */
.footer-links a {
    color: #C8BFB5;
    transition: color .2s, padding-left .2s;
}
.footer-links a:hover {
    color: var(--color-gold);
    padding-left: .4rem;
}

/* Newsletter in footer */
.footer-newsletter {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    text-align: center;
    position: relative;
    z-index: 1;
}
.footer-newsletter h4 {
    color: var(--color-accent);
    font-family: var(--font-heading);
    margin-bottom: .25rem;
}
.footer-newsletter p {
    margin-bottom: .75rem;
    color: #C8BFB5;
}
.newsletter-form {
    display: flex;
    gap: .5rem;
    max-width: 400px;
    margin: 0 auto;
}
.newsletter-form input[type="email"] {
    flex: 1;
    padding: .55rem .75rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .9rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}
.newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.5);
}
.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212,168,83,0.2);
}
.newsletter-form .btn {
    white-space: nowrap;
}

/* Social links in footer */
.footer-social {
    display: flex;
    gap: .75rem;
    margin-top: 1rem;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #C8BFB5;
    transition: background .2s, color .2s, transform .2s;
}
.footer-social a:hover {
    background: var(--color-gold);
    color: var(--color-text-heading);
    transform: translateY(-2px);
}
.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding: 1.25rem 0;
    font-size: .85rem;
    position: relative;
    z-index: 1;
}
.footer-bottom p { margin: 0; }

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2C2520;
    color: #fff;
    z-index: 150;
    box-shadow: 0 -2px 12px rgba(0,0,0,.2);
}
.cookie-banner-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.cookie-banner p {
    margin: 0;
    font-size: .9rem;
    flex: 1;
}
.cookie-actions {
    display: flex;
    gap: .5rem;
}
/* Bump cookie banner buttons to the 44px tap-target guideline (base .btn-sm is 36px, used elsewhere for compact card CTAs) */
.cookie-actions .btn-sm {
    min-height: 44px;
    padding: .6rem 1rem;
}

/* --- Alerts --- */
.alert {
    padding: .75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: .95rem;
    position: relative;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.alert-dismiss {
    position: absolute;
    top: .5rem;
    right: .75rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: inherit;
    opacity: .6;
    line-height: 1;
}
.alert-dismiss:hover { opacity: 1; }

/* --- No Posts --- */
.no-posts {
    text-align: center;
    padding: 3rem 0;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* =========================================
   ADMIN STYLES
   ========================================= */

.admin-body {
    background: #f4f5f7;
}

/* Admin Login */
.admin-login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}
.admin-login-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 400px;
}
.admin-login-box h1 {
    text-align: center;
    color: var(--color-primary);
    font-size: 1.6rem;
    margin-bottom: .25rem;
}
.admin-login-box h2 {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* Admin Layout */
.admin-header {
    background: #2C2520;
    padding: .6rem 0;
}
.admin-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}
.admin-logo {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
}
.admin-logo:hover { color: var(--color-gold); }

.admin-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.admin-nav a {
    color: #bdc3c7;
    font-size: .9rem;
    font-weight: 500;
}
.admin-nav a:hover { color: #fff; }

.admin-content {
    padding: 2rem 0;
}
.admin-content h1 {
    margin-bottom: .5rem;
}

.admin-actions {
    margin: 1.5rem 0;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

/* Dashboard Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: #fff;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
}
.stat-card .stat-label {
    font-size: .85rem;
    color: var(--color-text-light);
    margin-top: .25rem;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: .25rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0;
}
.filter-tab {
    padding: .5rem 1rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--color-text-light);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
}
.filter-tab:hover {
    color: var(--color-primary);
}
.filter-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
}
.filter-tab .tab-count {
    background: var(--color-border);
    color: var(--color-text-light);
    font-size: .75rem;
    padding: .1rem .4rem;
    border-radius: 10px;
    margin-left: .3rem;
}
.filter-tab.active .tab-count {
    background: var(--color-primary);
    color: #fff;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.admin-table th,
.admin-table td {
    padding: .75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}
.admin-table th {
    background: var(--color-accent);
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    color: var(--color-text-light);
}
/* Admin table row hover */
.admin-table tbody tr:hover {
    background: var(--color-accent);
}
.admin-table td a { color: var(--color-primary); }
.admin-table td a:hover { color: var(--color-secondary); }

.status-badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 12px;
    font-size: .8rem;
    font-weight: 600;
}
.status-draft { background: #e2e3e5; color: #383d41; }
.status-scheduled { background: #fff3cd; color: #856404; }
.status-published { background: #d4edda; color: #155724; }

/* Word count display */
.word-count-display {
    font-size: .8rem;
    color: var(--color-text-light);
    margin-top: .35rem;
}

/* Slug preview */
.slug-preview {
    font-size: .8rem;
    color: var(--color-text-light);
    margin-top: .35rem;
    word-break: break-all;
}
.slug-preview span {
    color: var(--color-primary);
    font-weight: 600;
}

/* Keyword density display */
.keyword-density {
    margin-top: .5rem;
}
.keyword-density summary {
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-text-heading);
    cursor: pointer;
    margin-bottom: .5rem;
}
.kw-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
}
.kw-list li {
    background: var(--color-border-light);
    padding: .2rem .6rem;
    border-radius: 12px;
    font-size: .75rem;
    color: var(--color-text);
}
.kw-list li strong {
    color: var(--color-primary);
}

/* Calendar view */
.schedule-calendar {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}
.schedule-calendar h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}
.cal-header {
    font-size: .75rem;
    font-weight: 700;
    color: var(--color-text-light);
    padding: .3rem;
}
.cal-day {
    padding: .4rem .2rem;
    font-size: .8rem;
    border-radius: 4px;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cal-day.has-post {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    cursor: help;
}
.cal-day.empty {
    color: #ccc;
}
.cal-day.today {
    border: 2px solid var(--color-secondary);
}

/* Autosave indicator */
.autosave-status {
    font-size: .8rem;
    color: var(--color-text-light);
    margin-left: .5rem;
}
.autosave-status.saved {
    color: #27ae60;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
    font-size: .95rem;
    color: var(--color-text-heading);
}
.form-group label small {
    font-weight: 400;
    color: var(--color-text-light);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="search"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: .65rem .8rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
    background: var(--color-surface);
    color: var(--color-text);
}
/* Accent border on focus */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 34, 82, 0.1);
}
.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: .75rem;
    align-items: center;
}

.post-form {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Bulk select checkbox */
.bulk-checkbox {
    accent-color: var(--color-primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.bulk-actions {
    display: none;
    margin-bottom: 1rem;
    align-items: center;
    gap: .75rem;
}
.bulk-actions.visible {
    display: flex;
}
.bulk-count {
    font-size: .9rem;
    color: var(--color-text-light);
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    overflow: visible;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s, background .2s, transform .2s;
    box-shadow: var(--shadow-md);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}
.back-to-top::before {
    content: 'Back to top';
    position: absolute;
    right: calc(100% + .5rem);
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-text-heading);
    color: #fff;
    font-size: .72rem;
    font-family: var(--font-body);
    font-weight: 500;
    padding: .22rem .55rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.back-to-top:hover::before { opacity: 1; }

/* --- Skip to Content (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-primary);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 0 0 4px 4px;
    z-index: 200;
    font-weight: 600;
    transition: top .2s;
}
.skip-link:focus {
    top: 0;
    color: #fff;
}

/* --- Homepage: editorial split hero --- */
.hero-editorial { background: var(--color-bg); position: relative; overflow: hidden; }
/* Grain texture overlay — makes the hero feel crafted, not AI-generated */
.hero-editorial::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: multiply;
}
.hero-editorial-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 540px;
    max-height: 680px;
}
.hero-editorial-text {
    padding: 4.5rem 3.5rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.hero-eyebrow {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 1.25rem;
}
.hero-editorial-text h1 {
    font-size: clamp(3.2rem, 7vw, 6.5rem);
    line-height: 1.0;
    letter-spacing: -0.035em;
    color: var(--color-text-heading);
    margin-bottom: 1.25rem;
}
.hero-editorial-text h1 em {
    color: var(--color-secondary);
    font-style: italic;
    font-size: 1.06em;
    display: block;
    margin-top: -0.08em;
    padding-left: 0.06em;
    font-weight: 900;
}
.hero-editorial-desc {
    font-size: 1.05rem;
    color: var(--color-text-light);
    max-width: 460px;
    line-height: 1.75;
    margin-bottom: 2rem;
}
.hero-editorial-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-editorial-photo {
    overflow: hidden;
    background: var(--color-secondary);
    position: relative;
    clip-path: polygon(5% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.hero-editorial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}
.hero-editorial-photo:hover img { transform: scale(1.02); }

/* --- Homepage: category browse strip (replaces Why Grow Berries) --- */
.category-browse {
    padding: 4rem 0;
    background: #F3F8F3;
}
.category-browse > .container > h2 {
    text-align: center;
    margin-bottom: .5rem;
}
.category-browse > .container > p {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    font-size: .95rem;
}
.category-browse-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.browse-cat-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    background: var(--color-surface);
}
.browse-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.browse-cat-swatch {
    height: 90px;
    background: var(--bc-color, var(--color-primary));
    transition: height .25s ease;
}
.browse-cat-card:hover .browse-cat-swatch { height: 102px; }
.browse-cat-body { padding: 1rem 1rem .9rem; flex: 1; display: flex; flex-direction: column; }
.browse-cat-body h3 {
    font-size: .98rem;
    color: var(--color-text-heading);
    margin-bottom: .2rem;
    line-height: 1.3;
}
.browse-cat-body p {
    font-size: .8rem;
    color: var(--color-text-light);
    margin: 0 0 auto;
    line-height: 1.5;
}
.browse-cat-arrow {
    font-size: .9rem;
    color: var(--bc-color, var(--color-primary));
    font-weight: 700;
    margin-top: .65rem;
    display: block;
    transition: transform .2s;
}
.browse-cat-card:hover .browse-cat-arrow { transform: translateX(4px); }

/* --- Homepage: seasonal editorial strip --- */
.seasonal-editorial {
    background: #F5EFE8;
    border-top: 1px solid #E2D4C6;
    border-bottom: 1px solid #E2D4C6;
}
.seasonal-editorial-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: stretch;
}
.seasonal-month-block {
    background: var(--cat-growing, #2D6A4F);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 -1.25rem 0 -1.25rem;
}
.seasonal-month-label {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.025em;
    display: block;
}
.seasonal-month-sub {
    font-size: .73rem;
    color: rgba(255,255,255,0.55);
    margin-top: .3rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    display: block;
}
.seasonal-tip-block {
    padding: 2.5rem 0 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.seasonal-eyebrow {
    font-size: .73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--cat-growing, #2D6A4F);
    margin-bottom: .6rem;
}
.seasonal-tip-text {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    max-width: 700px;
}

/* --- Section ink-bleed dividers --- */
.section-blob {
    position: relative;
    z-index: 2;
    pointer-events: none;
    line-height: 0;
    overflow: hidden;
    margin-bottom: -2px;
}
.section-blob svg { display: block; width: 100%; }

/* --- Handwritten month underline --- */
.month-underline {
    display: block;
    width: 85%;
    max-width: 150px;
    overflow: visible;
    color: rgba(255,255,255,0.42);
    margin: .3rem 0 .25rem;
}

/* --- Homepage: article grid hierarchy --- */
.homepage-post-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}
.post-card-second {
    grid-column: span 2;
}
.post-card-second .post-card-body h3 { font-size: 1.35rem; }
.post-card-second img { aspect-ratio: 16 / 7; }

/* --- Newsletter: editorial two-column --- */
.newsletter-editorial {
    background: none !important;
    padding: 0 !important;
    text-align: left !important;
}
.newsletter-editorial-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.newsletter-editorial-left {
    background: var(--color-primary);
    padding: 4rem 3rem;
    color: #fff;
}
.newsletter-eyebrow {
    font-size: .73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1rem;
    display: block;
}
.newsletter-editorial-left h2 {
    color: #fff;
    font-size: 1.9rem;
    line-height: 1.22;
    margin-bottom: .75rem;
    max-width: 360px;
}
.newsletter-editorial-left > p {
    color: rgba(255,255,255,0.7);
    font-size: .92rem;
    margin: 0;
    max-width: none;
    opacity: 1;
}
.newsletter-editorial-right {
    background: var(--color-accent);
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
}
.newsletter-form-editorial { width: 100%; }
.nl-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: .5rem;
}
.nl-field-row { display: flex; gap: .5rem; }
.nl-field-row input[type="email"] {
    flex: 1;
    padding: .7rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .95rem;
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color .2s;
}
.nl-field-row input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
}
.nl-small {
    font-size: .78rem;
    color: var(--color-text-light);
    margin: .55rem 0 0;
}

/* drop cap removed — featured card is now a dark overlay; coloured letter would be invisible */

/* --- Nature: paper grain on card body --- */
.post-card-body {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
}

/* --- Nature: hero h1 word reveal --- */
.h1-reveal .h1-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    animation: wordReveal .55s ease forwards;
}
@keyframes wordReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Nature: seasonal nudge pill --- */
#seasonal-nudge {
    position: fixed;
    bottom: 88px;
    right: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-secondary);
    border-radius: var(--radius-md);
    padding: .7rem 1rem .7rem .9rem;
    box-shadow: var(--shadow-md);
    font-size: .8rem;
    line-height: 1.4;
    max-width: 230px;
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    z-index: 50;
    transform: translateY(130px);
    opacity: 0;
    transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .45s ease;
}
#seasonal-nudge.visible { transform: translateY(0); opacity: 1; }
.nudge-body { flex: 1; min-width: 0; }
.nudge-month {
    font-weight: 700;
    color: var(--color-secondary);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    display: block;
    margin-bottom: 2px;
}
.nudge-tip { color: var(--color-text); display: block; }
.nudge-link {
    font-weight: 600;
    color: var(--color-secondary);
    font-size: .75rem;
    display: inline-block;
    margin-top: 3px;
}
.nudge-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    min-height: unset;
    min-width: unset;
}
.nudge-close:hover { color: var(--color-text); }

/* --- Nature: pre-footer botanical band --- */
.footer-botanical-band {
    background: linear-gradient(to right, #2a5240, #1e3d30, #2a5240);
    height: 72px;
    overflow: hidden;
    position: relative;
}
.footer-band-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Category browse: article count badge --- */
.browse-cat-count {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    color: var(--bc-color, var(--color-primary));
    background: rgba(74,124,89,0.12);
    background: color-mix(in srgb, var(--bc-color, var(--color-primary)) 12%, transparent);
    border-radius: 20px;
    padding: 1px 7px;
    margin-top: .3rem;
}

/* Responsive: homepage additions */
@media (max-width: 1024px) {
    .category-browse-grid { grid-template-columns: repeat(3, 1fr); }
    .browse-cat-card:nth-child(4),
    .browse-cat-card:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 768px) {
    .hero-editorial-split { grid-template-columns: 1fr; }
    .hero-editorial-photo { height: 280px; }
    .hero-editorial-text { padding: 2.5rem 1.25rem 2rem; }
    .hero-editorial-text h1 { font-size: 2.6rem; }
    .category-browse-grid { grid-template-columns: repeat(2, 1fr); }
    .seasonal-editorial-inner { grid-template-columns: 1fr; padding: 0; }
    .seasonal-month-block { margin: 0; padding: 1.5rem 1.25rem; flex-direction: row; align-items: baseline; gap: 1rem; }
    .seasonal-tip-block { padding: 1.5rem 1.25rem; }
    .newsletter-editorial-inner { grid-template-columns: 1fr; }
    .newsletter-editorial-left { padding: 2.5rem 1.25rem; }
    .newsletter-editorial-right { padding: 2rem 1.25rem; }
    .homepage-post-grid { grid-template-columns: 1fr !important; }
    .post-card-second { grid-column: span 1; }
    .post-card-second img { aspect-ratio: 16 / 10; }
}

/* --- Nature: section heading botanical ornament --- */
.section-botanical {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    vertical-align: middle;
}
.section-botanical svg {
    flex-shrink: 0;
    opacity: .72;
    vertical-align: middle;
    align-self: flex-start;
    margin-top: .2em;
}

/* --- Nature: hero corner botanical watermark --- */
.hero-botanical-corner {
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 150px;
    height: 150px;
    opacity: .07;
    pointer-events: none;
}

/* --- Blog Bento Hero --- */
.blog-bento-hero {
    padding: 0;
    background: var(--color-bg);
    overflow: hidden;
}
.blog-index-heading {
    padding: 2rem 0 1rem;
}
.blog-index-heading h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}
.bento-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    grid-template-rows: 240px 240px;
    gap: 3px;
    height: 483px;
}
.bento-card {
    position: relative;
    overflow: hidden;
    background: var(--color-primary);
}
.bento-card--large { grid-row: 1 / 3; }
.bento-card > a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    color: #fff;
    text-decoration: none;
}
.bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.bento-card:hover img { transform: scale(1.06); }
.bento-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to top, rgba(20,12,8,0.85) 0%, rgba(20,12,8,0.4) 55%, transparent 100%);
}
.bento-card--large .bento-card-overlay { padding: 2rem 2.5rem; }
.bento-card-overlay .category-chip {
    background: var(--chip-color, rgba(255,255,255,0.18));
    color: #fff;
    margin-bottom: 0.45rem;
    display: block;
    opacity: .92;
}
.bento-card-overlay h2,
.bento-card-overlay h3 {
    color: #fff;
    margin: 0;
    line-height: 1.25;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.bento-card--large .bento-card-overlay h2 { font-size: 2rem; }
.bento-card--small .bento-card-overlay h3 { font-size: 1.05rem; }
.bento-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

/* --- Category page header --- */
.category-page-header {
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}
.category-page-header::before {
    content: '';
    position: absolute;
    right: 2rem;
    top: -20%;
    bottom: -20%;
    width: 200px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='12' cy='19' r='7' fill='%238B2252'/%3E%3Ccircle cx='20' cy='17' r='7' fill='%234A7C59'/%3E%3Ccircle cx='16' cy='13' r='5' fill='%23D4A853'/%3E%3Cpath d='M16 4C16 4 14 8 16 13' stroke='%234A7C59' stroke-width='1.5' fill='none'/%3E%3Cpath d='M13 6Q16 5 19 7' stroke='%234A7C59' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.06;
    pointer-events: none;
}
.category-page-header::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: var(--cat-accent, var(--color-primary));
}
.category-page-header .container {
    padding-left: 2.5rem;
}
.category-page-header h1 {
    color: var(--cat-accent, var(--color-primary));
    margin-bottom: 0.6rem;
}
.category-page-header p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 620px;
    margin: 0;
}

/* --- Bento responsive --- */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 260px 150px;
        height: auto;
    }
    .bento-card--large {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    .bento-card:nth-child(n+4) { display: none; }
    .bento-card--large .bento-card-overlay h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .bento-card--large { height: 260px; }
    .bento-card--small { display: none; }
    #seasonal-nudge { display: none !important; }
    .hero-editorial-ctas { flex-direction: column; gap: .75rem; }
    .hero-editorial-ctas .btn { justify-content: center; }
}

/* #59 Print Stylesheet */
@media print {
    .site-header, .site-footer, .back-to-top, .skip-link,
    .share-bar, .search-form, .pagination, .nav-toggle,
    .reading-progress, .toc, .related-posts, .cookie-banner,
    .post-sidebar, .newsletter-section,
    .seasonal-banner, .why-berries { display: none !important; }
    .single-post { padding: 0; }
    .post-layout { grid-template-columns: 1fr; }
    .post-content { font-size: 12pt; }
    .breadcrumbs { background: none; padding: 0; border: none; }
    a { color: #000 !important; text-decoration: underline; }
    a[href]::after { content: ' (' attr(href) ')'; font-size: .8em; color: #666; }
    .post-featured-image img { max-height: 300px; aspect-ratio: auto; }
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero { padding: 2.5rem 1rem; }
    .hero-home { padding: 5rem 1rem 4rem; min-height: 380px; }
    .hero h1 { font-size: 2rem; }
    .hero-home h1 { font-size: 2.4rem; }
    .hero-tagline { font-size: 1.1rem !important; }
    .hero-subtitle { font-size: .95rem !important; }
    .hero-botanical { display: none; }
    .section-divider { height: 40px; margin-top: -40px; }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .post-card-featured { min-height: 380px; }
    .post-card-featured .post-card-body { min-height: 380px; padding: 1.5rem; }
    .post-card-featured .post-card-body h3,
    .post-card-featured .post-card-body h2 { font-size: 1.5rem; }

    .category-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding-bottom: .25rem;
    }

    .post-layout {
        grid-template-columns: 1fr;
    }
    .post-sidebar {
        order: -1;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .seasonal-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    .seasonal-card .btn-secondary-outline {
        align-self: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        padding: 1rem;
        flex-direction: column;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--color-border);
    }
    .site-nav.open {
        display: flex;
    }
    .site-nav a {
        margin-left: 0;
        padding: .65rem .85rem;
        border-bottom: 1px solid var(--color-border-light);
        border-radius: var(--radius-sm);
        min-height: 44px;
    }
    .nav-toggle {
        display: flex;
    }

    .site-header.header-transparent .site-nav {
        background: var(--color-surface);
    }
    .site-header.header-transparent .site-nav a {
        color: var(--color-text-heading);
        text-shadow: none;
    }

    .admin-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-nav {
        gap: .5rem;
        font-size: .85rem;
    }

    .admin-table {
        font-size: .85rem;
    }
    .admin-table th,
    .admin-table td {
        padding: .5rem;
    }

    .post-form, .contact-form {
        padding: 1.25rem;
    }

    .post-header h1 {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .share-bar {
        justify-content: center;
    }

    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-tabs {
        overflow-x: auto;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form-wide {
        flex-direction: column;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .admin-actions {
        flex-direction: column;
    }
    .form-actions {
        flex-direction: column;
    }
    .btn-block-mobile {
        width: 100%;
        text-align: center;
    }
    .search-form {
        flex-direction: column;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .btn-cta {
        padding: .85rem 2rem;
        font-size: 1rem;
    }
}

/* ===== Author byline + author box (#audit) ===== */
.post-author {
    font-size: .85rem;
    color: var(--color-text-light);
}
.post-author a {
    color: var(--color-link);
    font-weight: 600;
    text-decoration: none;
}
.post-author a:hover { text-decoration: underline; }
.post-meta .post-date {
    margin-left: .75rem;
    padding-left: .75rem;
    border-left: 1px solid var(--color-border);
}
.author-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin: 2.5rem 0 1.5rem;
}
.author-box-avatar svg { width: 48px; height: 48px; display: block; }
.author-box-name {
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 0 0 .35rem;
    color: var(--color-text-heading);
}
.author-box-bio {
    margin: 0;
    font-size: .92rem;
    line-height: 1.55;
    color: var(--color-text-light);
}
.author-box-bio a { color: var(--color-link); font-weight: 600; text-decoration: none; }
.author-box-bio a:hover { text-decoration: underline; }

/* ===== Post lede paragraph (item 12 — no drop cap) ===== */
.post-content > p:first-of-type {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text);
}

/* ===== About page ===== */
.about-page { padding: 2.5rem 0; }
.about-intro {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}
.about-page h2 {
    margin-top: 2rem;
    color: var(--color-text-heading);
}
.about-list { margin: 1rem 0; padding-left: 1.25rem; line-height: 1.7; }
.about-list li { margin-bottom: .5rem; }

/* About hero (item 5) */
.about-hero {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 4rem 0;
}
.about-hero-inner {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    align-items: center;
}
.about-hero-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-hero-avatar svg {
    width: 180px;
    height: 180px;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.08));
}
.about-hero-lead {
    font-size: 1.15rem;
    color: var(--color-text-light);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 1.75rem;
}
.about-hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.about-content {
    padding: 3rem 0 1rem;
}
/* About CTA strip */
.about-cta-strip {
    background: #F3F8F3;
    padding: 3.5rem 0;
    text-align: center;
    border-top: 1px solid #d8e8d4;
    border-bottom: 1px solid #d8e8d4;
    margin-bottom: 2rem;
}
.about-cta-strip h2 {
    margin-bottom: .4rem;
}
.about-cta-strip p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}
.about-cta-grid {
    display: flex;
    gap: .85rem;
    justify-content: center;
    flex-wrap: wrap;
}
.about-cta-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .6rem 1.3rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    border: 2px solid;
    transition: background .18s, color .18s, transform .15s;
}
.about-cta-link:hover {
    transform: translateY(-1px);
}
@media (max-width: 640px) {
    .about-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 1.75rem; }
    .about-hero-ctas { justify-content: center; }
    .about-hero-lead { max-width: 100%; }
}

/* ===== Sidebar category box (item 26) ===== */
.sidebar-cat-box {
    background: #f9f4f6;
    background: color-mix(in srgb, var(--chip-color, var(--color-secondary)) 8%, white);
    border: 1px solid rgba(139,34,82,0.22);
    border: 1px solid color-mix(in srgb, var(--chip-color, var(--color-secondary)) 22%, transparent);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}
.sidebar-cat-label {
    font-size: .76rem;
    font-weight: 700;
    color: var(--chip-color, var(--color-secondary));
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .65rem;
}
.sidebar-cat-btn {
    display: flex !important;
    justify-content: center;
    width: 100%;
    border-color: var(--chip-color, var(--color-secondary)) !important;
    color: var(--chip-color, var(--color-secondary)) !important;
}
.sidebar-cat-btn:hover {
    background: var(--chip-color, var(--color-secondary)) !important;
    color: #fff !important;
}

/* ===== Seasonal SVG illustration ===== */
.seasonal-month-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .5rem;
    opacity: .85;
}

/* ===== Performance & scroll polish ===== */
.post-card,
.browse-cat-card,
.bento-card img {
    will-change: transform;
}
.post-content h2,
.post-content h3,
.post-content h4 {
    scroll-margin-top: 80px;
}

/* ===== About list coloured markers ===== */
.about-list li::marker {
    color: var(--color-secondary);
}

/* ===== Newsletter success message ===== */
.newsletter-success {
    font-weight: 600;
    color: var(--color-gold);
}
