/*
Theme Name: Kilimokwanza Digital Hub Pro
Theme URI: https://kilimokwanza.org
Author: AppsValle / Kilimokwanza Team
Author URI: https://appsvalle.com
Description: Professional WordPress theme for the Kilimokwanza agricultural intelligence platform. v2.5.2 adds smart sidebar widgets for deep archives — collapsible Archives by year (current year auto-expanded), clean Recent Comments with snippets, and compact Categories in a grid. Built specifically for sites with 100+ months of archives.
Version: 2.5.2
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kilimokwanza
Tags: agriculture, news, two-columns, custom-header, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, custom-colors, full-width-template
*/

/* ==========================================================================
   Reset and Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #F5F5F5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1B5E20;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #4CAF50;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #2E7D32;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-content {
    min-height: 60vh;
    padding: 40px 0;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.site-header {
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Top Bar */
.header-top-bar {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.top-bar-links a {
    color: white;
    opacity: 0.9;
}

.top-bar-links a:hover {
    opacity: 1;
}

/* Header Social */
.header-social {
    display: flex;
    gap: 15px;
}

.header-social a {
    color: white;
    font-size: 16px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.header-social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Main Header */
.header-main {
    padding: 20px 0;
}

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

/* Site Branding */
.site-branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-logo {
    width: 60px;
    height: 60px;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #4CAF50;
    color: white;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    text-decoration: none;
}

.site-info {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 28px;
    margin: 0;
}

.site-title a {
    color: #1B5E20;
    text-decoration: none;
    font-weight: 700;
}

.site-tagline {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    background: white;
    border-radius: 30px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.lang-item {
    padding: 8px 16px;
    border-radius: 26px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lang-item.active,
.lang-item:hover {
    background: #1B5E20;
    color: white;
}

/* Login Button */
.btn-login {
    padding: 10px 24px;
    background: #4CAF50;
    color: white;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76,175,80,0.3);
}

.btn-login:hover {
    background: #388E3C;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76,175,80,0.4);
}

/* ==========================================================================
   Navigation Menu
   ========================================================================== */

.main-navigation {
    background: #2E7D32;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: #FFD700;
}

/* Dropdown Menus */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: none;
    z-index: 999;
}

.nav-menu li:hover > .sub-menu {
    display: block;
}

.nav-menu .sub-menu a {
    color: #333;
    padding: 10px 20px;
    border-bottom: 1px solid #F0F0F0;
}

.nav-menu .sub-menu a:hover {
    background: #E8F5E9;
    color: #1B5E20;
}

/* ==========================================================================
   Mega Search Section
   ========================================================================== */

.mega-search-section {
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    padding: 60px 0;
}

.mega-search-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mega-search-title {
    color: white;
    font-size: 36px;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Search Form */
.mega-search-form {
    display: flex;
    background: white;
    border-radius: 60px;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
}

.mega-search-form.focused {
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.mega-search-input {
    flex: 1;
    padding: 25px 30px;
    font-size: 18px;
    border: none;
    outline: none;
    background: transparent;
    color: #333;
}

.mega-search-input::placeholder {
    color: #999;
}

.mega-search-filters {
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-left: 1px solid #E0E0E0;
}

.search-filter-select {
    padding: 10px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #666;
    outline: none;
    cursor: pointer;
}

.mega-search-button {
    padding: 25px 50px;
    background: #FFD700;
    color: #000;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 0 60px 60px 0;
}

.mega-search-button:hover {
    background: #FFC107;
    transform: scale(1.05);
}

/* Search Suggestions */
#search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

/* Quick Search Tags */
.quick-search-tags {
    margin-top: 20px;
}

.quick-search-label {
    color: rgba(255,255,255,0.8);
    margin-right: 10px;
}

.search-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 20px;
    margin: 5px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.search-tag:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-navigation {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

.mobile-navigation.active {
    right: 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 9998;
}

.mobile-overlay.active {
    display: block;
}

/* ==========================================================================
   Content Styles
   ========================================================================== */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card h3 {
    padding: 15px;
    font-size: 20px;
}

.article-card p {
    padding: 0 15px 15px;
    color: #666;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #1B5E20;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h4 {
    color: #FFD700;
    margin-bottom: 20px;
}

.footer-widget a {
    color: rgba(255,255,255,0.8);
}

.footer-widget a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs-wrapper {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #E0E0E0;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 10px;
}

.breadcrumb-list li::after {
    content: '/';
    margin-left: 10px;
    color: #999;
}

.breadcrumb-list li:last-child::after {
    content: '';
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hide desktop navigation */
    .main-navigation {
        display: none;
    }
    
    /* Header adjustments */
    .header-main-content {
        flex-wrap: wrap;
    }
    
    .site-branding {
        flex: 1;
    }
    
    /* Search form mobile */
    .mega-search-form {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .mega-search-input {
        padding: 20px;
        font-size: 16px;
    }
    
    .mega-search-filters {
        border-left: none;
        border-top: 1px solid #E0E0E0;
        padding: 10px;
        width: 100%;
    }
    
    .mega-search-button {
        padding: 20px;
        border-radius: 0 0 16px 16px;
        width: 100%;
        justify-content: center;
    }
    
    /* Grid adjustments */
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .mega-search-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-social {
        display: none;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    position: absolute;
    left: 6px;
    top: 7px;
    z-index: 999999;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
}
/* Version 2.3 Enhancements */

/* Search Suggestions Dropdown */
.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-top: 10px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:hover {
    background: #E8F5E9;
    padding-left: 25px;
}

.suggestion-item i {
    color: #4CAF50;
    margin-right: 10px;
}

/* Sticky Header Enhancement */
.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.site-header.sticky.hidden {
    transform: translateY(-100%);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}


/* ==========================================================================
   v2.4 Additions — Series, Ad Zones, Hero, Sponsored, Newsletter, Breadcrumbs,
   Reports, Layouts, Media Kit, Search, 404
   ========================================================================== */

/* ==========================================================================
   v2.4 — Layout primitives
   ========================================================================== */
.kdh-layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}
.kdh-layout-main { min-width: 0; }
.kdh-layout-sidebar {
    position: sticky;
    top: 24px;
}
@media (max-width: 1024px) {
    .kdh-layout-with-sidebar {
        grid-template-columns: 1fr;
    }
    .kdh-layout-sidebar { position: static; }
}

/* Generic CTA buttons (used in Media Kit, 404, etc.) */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}
.btn-primary {
    background: #1B5E20;
    color: #fff;
}
.btn-primary:hover {
    background: #2E7D32;
    color: #fff;
}
.btn-secondary {
    background: transparent;
    color: #1B5E20;
    border-color: #1B5E20;
}
.btn-secondary:hover {
    background: #1B5E20;
    color: #fff;
}

/* ==========================================================================
   v2.4 — Compatibility shim: .kdh-social = old .header-social
   ========================================================================== */
.kdh-social {
    display: flex;
    gap: 8px;
    align-items: center;
}
.kdh-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}
.kdh-social a:hover {
    background: #4CAF50;
    transform: translateY(-2px);
}
/* Footer variant — darker base, brighter on hover */
.site-footer .kdh-social a {
    background: rgba(255,255,255,0.05);
}

/* ==========================================================================
   v2.4 — Live AJAX search results panel
   ========================================================================== */
.kdh-live-results {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    margin-top: 12px;
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
}
.kdh-live-results__item {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    text-decoration: none;
    transition: background 0.15s;
}
.kdh-live-results__item:hover { background: #F1F8E9; }
.kdh-live-results__item:last-child { border-bottom: 0; }
.kdh-live-results__title {
    font-weight: 600;
    color: #1B5E20;
    font-family: 'Merriweather', Georgia, serif;
    margin-bottom: 4px;
    font-size: 0.95rem;
}
.kdh-live-results__meta {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.kdh-live-results__type {
    background: #1B5E20;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.kdh-live-results__excerpt {
    font-size: 0.85rem;
    color: #555;
    margin-top: 4px;
}
.kdh-live-results__empty {
    padding: 18px;
    text-align: center;
    color: #888;
}

/* ==========================================================================
   v2.4 — Hero Section (homepage featured story)
   ========================================================================== */
.kdh-hero {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0;
    margin-bottom: 50px;
}
.kdh-hero__inner {
    max-width: 900px;
}
.kdh-hero__category {
    display: inline-block;
    background: #4CAF50;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    margin-bottom: 16px;
}
.kdh-hero__series { margin-bottom: 16px; }
.kdh-hero__series .kdh-series-badge {
    background: rgba(255,255,255,0.18);
    color: #fff;
}
.kdh-hero__title {
    font-size: 3rem;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 16px;
}
.kdh-hero__title a {
    color: #fff;
    text-decoration: none;
}
.kdh-hero__title a:hover { color: #C8E6C9; }
.kdh-hero__excerpt {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.92);
}
.kdh-hero__meta {
    display: flex;
    gap: 8px;
    align-items: center;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.kdh-hero__cta {
    display: inline-block;
    background: #fff;
    color: #1B5E20;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.kdh-hero__cta:hover { transform: translateX(4px); }

@media (max-width: 768px) {
    .kdh-hero { padding: 50px 0; margin-bottom: 30px; }
    .kdh-hero__title { font-size: 2rem; }
    .kdh-hero__excerpt { font-size: 1rem; }
}

/* ==========================================================================
   v2.4 — Featured Series rail
   ========================================================================== */
.kdh-featured-series {
    margin: 0 0 50px;
}
.kdh-featured-series__inner {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    background-size: cover;
    border-radius: 12px;
    padding: 40px;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.kdh-featured-series__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #C8E6C9;
    margin-bottom: 10px;
}
.kdh-featured-series__title {
    font-size: 2rem;
    margin: 0 0 8px;
    color: #fff;
}
.kdh-featured-series__title a {
    color: #fff;
    text-decoration: none;
}
.kdh-featured-series__tagline {
    color: rgba(255,255,255,0.92);
    font-size: 1.05rem;
    margin-bottom: 8px;
}
.kdh-featured-series__count {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}
.kdh-featured-series__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.kdh-featured-series__item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    transition: background 0.15s;
}
.kdh-featured-series__item:hover { background: rgba(255,255,255,0.15); }
.kdh-featured-series__item-date {
    font-weight: 700;
    font-size: 0.85rem;
    color: #C8E6C9;
}
.kdh-featured-series__item-title {
    font-size: 0.95rem;
    line-height: 1.4;
}
.kdh-featured-series__cta {
    display: inline-block;
    background: #fff;
    color: #1B5E20;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 16px;
    grid-column: 1;
}
@media (max-width: 768px) {
    .kdh-featured-series__inner {
        grid-template-columns: 1fr;
        padding: 28px;
    }
    .kdh-featured-series__title { font-size: 1.5rem; }
}

/* ==========================================================================
   v2.4 — Series Badge (small inline marker on cards / articles)
   ========================================================================== */
.kdh-series-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(27,94,32,0.08);
    color: #1B5E20;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 8px;
    transition: background 0.15s;
}
.kdh-series-badge:hover {
    background: #1B5E20;
    color: #fff;
}
.kdh-series-badge--compact {
    font-size: 0.72rem;
    padding: 2px 10px;
}

/* ==========================================================================
   v2.4 — Episode navigation (prev/next on single articles in a series)
   ========================================================================== */
.kdh-episode-nav {
    margin: 40px 0;
    padding: 24px;
    background: #F1F8E9;
    border-left: 4px solid #1B5E20;
    border-radius: 6px;
}
.kdh-episode-nav__series {
    font-size: 0.9rem;
    margin-bottom: 14px;
}
.kdh-episode-nav__label { color: #666; }
.kdh-episode-nav__series a {
    color: #1B5E20;
    font-weight: 700;
    text-decoration: none;
}
.kdh-episode-nav__pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.kdh-episode-nav__prev,
.kdh-episode-nav__next {
    display: flex;
    flex-direction: column;
    padding: 14px;
    background: #fff;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: transform 0.15s ease;
}
.kdh-episode-nav__next { text-align: right; }
.kdh-episode-nav__prev:hover { transform: translateX(-3px); }
.kdh-episode-nav__next:hover { transform: translateX(3px); }
.kdh-episode-nav__direction {
    font-size: 0.75rem;
    color: #1B5E20;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 600;
}
.kdh-episode-nav__title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: #1B5E20;
    line-height: 1.3;
}
@media (max-width: 600px) {
    .kdh-episode-nav__pager { grid-template-columns: 1fr; }
    .kdh-episode-nav__next { text-align: left; }
}

/* ==========================================================================
   v2.4 — Series taxonomy archive page
   ========================================================================== */
.kdh-series-hero {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 70px 0;
    margin-bottom: 40px;
}
.kdh-series-hero__inner { max-width: 900px; }
.kdh-series-hero__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #C8E6C9;
    margin-bottom: 12px;
}
.kdh-series-hero__title {
    font-size: 3rem;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 12px;
}
.kdh-series-hero__tagline {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.92);
    margin-bottom: 14px;
}
.kdh-series-hero__description {
    color: rgba(255,255,255,0.88);
    margin-bottom: 16px;
    line-height: 1.7;
}
.kdh-series-hero__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.88);
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    .kdh-series-hero__title { font-size: 2rem; }
}

.kdh-series-episode-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.kdh-series-episode {
    display: grid;
    grid-template-columns: 70px 200px 1fr;
    gap: 24px;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    align-items: start;
}
.kdh-series-episode__number {
    background: #1B5E20;
    color: #fff;
    border-radius: 6px;
    padding: 12px 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.kdh-series-episode__thumb {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    display: block;
}
.kdh-series-episode__date {
    color: #1B5E20;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.kdh-series-episode__title {
    font-size: 1.4rem;
    margin: 6px 0 10px;
    line-height: 1.3;
}
.kdh-series-episode__title a {
    color: #1B5E20;
    text-decoration: none;
}
.kdh-series-episode__title a:hover { color: #4CAF50; }
.kdh-series-episode__excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}
.kdh-series-episode__reading {
    font-size: 0.85rem;
    color: #888;
}
@media (max-width: 768px) {
    .kdh-series-episode {
        grid-template-columns: 1fr;
    }
    .kdh-series-episode__number {
        justify-self: start;
        padding: 6px 14px;
    }
}

/* ==========================================================================
   v2.4 — Article card (rebuilt with cleaner BEM)
   ========================================================================== */
.article-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.article-card__thumb {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #F1F8E9;
}
.article-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.article-card:hover .article-card__thumb img {
    transform: scale(1.04);
}
.article-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.article-card__category {
    display: inline-block;
    color: #1B5E20;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 6px;
}
.article-card__title {
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 0 0 8px;
}
.article-card__title a {
    color: #1B5E20;
    text-decoration: none;
}
.article-card__title a:hover { color: #4CAF50; }
.article-card__meta {
    font-size: 0.78rem;
    color: #888;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.article-card__excerpt {
    color: #555;
    font-size: 0.93rem;
    line-height: 1.55;
    margin: 0;
}

/* ==========================================================================
   v2.4 — Single article layout
   ========================================================================== */
.kdh-article {
    background: #fff;
    padding: 30px 35px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    margin-bottom: 30px;
}
.kdh-article__header { margin-bottom: 24px; }
.kdh-article__category {
    display: inline-block;
    color: #1B5E20;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 10px;
}
.kdh-article__series { margin-bottom: 12px; }
.kdh-article__title {
    font-size: 2.4rem;
    line-height: 1.18;
    color: #1B5E20;
    margin: 0 0 14px;
}
.kdh-article__standfirst {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 18px;
    font-family: 'Merriweather', Georgia, serif;
}
.kdh-article__meta {
    display: flex;
    gap: 16px;
    align-items: center;
    color: #666;
    font-size: 0.92rem;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}
.kdh-article__author {
    display: flex;
    gap: 10px;
    align-items: center;
}
.kdh-article__author img {
    border-radius: 50%;
}
.kdh-article__author a {
    color: #1B5E20;
    font-weight: 600;
    text-decoration: none;
}
.kdh-article__featured {
    margin: 24px -35px;
}
.kdh-article__featured img {
    width: 100%;
    height: auto;
    display: block;
}
.kdh-article__featured-caption {
    padding: 8px 35px;
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
}
.kdh-article__content {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #333;
}
.kdh-article__content p { margin-bottom: 1.2em; }
.kdh-article__content h2 {
    font-size: 1.7rem;
    margin: 1.5em 0 0.6em;
}
.kdh-article__content h3 {
    font-size: 1.35rem;
    margin: 1.3em 0 0.5em;
}
.kdh-article__content blockquote {
    border-left: 4px solid #1B5E20;
    padding: 4px 24px;
    margin: 1.5em 0;
    font-style: italic;
    color: #555;
}
.kdh-article__content a {
    color: #1B5E20;
    text-decoration: underline;
}
.kdh-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.kdh-article__footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}
.kdh-article__tags {
    margin-bottom: 24px;
    font-size: 0.9rem;
}
.kdh-article__tags a {
    display: inline-block;
    background: #F1F8E9;
    color: #1B5E20;
    padding: 4px 12px;
    border-radius: 12px;
    text-decoration: none;
    margin: 0 4px 4px 0;
    font-size: 0.82rem;
}
.kdh-article__tags a:hover { background: #1B5E20; color: #fff; }

@media (max-width: 768px) {
    .kdh-article { padding: 22px; }
    .kdh-article__title { font-size: 1.7rem; }
    .kdh-article__featured { margin: 18px -22px; }
    .kdh-article__featured-caption { padding: 8px 22px; }
}

/* ==========================================================================
   v2.4 — Sponsored article banner
   ========================================================================== */
.kdh-sponsored-banner {
    background: #FFF8E1;
    border-left: 4px solid #F39C12;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.92rem;
}
.kdh-sponsored-banner__label {
    background: #F39C12;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.kdh-sponsored-banner__by { color: #666; }
.kdh-sponsored-banner__logo {
    max-height: 28px;
    width: auto;
    vertical-align: middle;
}
.kdh-sponsored-banner a {
    color: #1B5E20;
    font-weight: 600;
    text-decoration: none;
}

/* ==========================================================================
   v2.4 — Report page extras (executive summary, citation)
   ========================================================================== */
.kdh-report-summary {
    background: linear-gradient(135deg, #F1F8E9 0%, #E8F5E9 100%);
    padding: 24px 28px;
    border-radius: 8px;
    margin: 24px 0;
    border-left: 4px solid #1B5E20;
}
.kdh-report-summary h2 {
    font-size: 1.2rem;
    color: #1B5E20;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.kdh-report-summary p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 14px;
}
.kdh-report-summary__download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1B5E20;
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}
.kdh-report-summary__download:hover { background: #2E7D32; }

.kdh-report-citation {
    background: #FAFAFA;
    padding: 18px 24px;
    border-radius: 6px;
    margin-top: 30px;
    border: 1px solid #eee;
}
.kdh-report-citation h3 {
    font-size: 1rem;
    margin: 0 0 8px;
    color: #1B5E20;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.kdh-report-citation blockquote {
    margin: 0;
    border: 0;
    padding: 0;
    font-family: 'Merriweather', serif;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   v2.4 — Inline newsletter signup
   ========================================================================== */
.kdh-newsletter-inline {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    color: #fff;
    padding: 36px;
    border-radius: 10px;
    margin: 30px 0;
}
.kdh-newsletter-inline__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}
.kdh-newsletter-inline__eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    color: #fff;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}
.kdh-newsletter-inline h3 {
    font-size: 1.6rem;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.25;
}
.kdh-newsletter-inline p {
    color: rgba(255,255,255,0.92);
    margin: 0;
    line-height: 1.55;
}
.kdh-newsletter-inline__form form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.kdh-newsletter-inline__form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 12px 14px;
    border: 0;
    border-radius: 6px;
    font-size: 0.95rem;
}
.kdh-newsletter-inline__form button {
    background: #fff;
    color: #1B5E20;
    border: 0;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.kdh-newsletter-inline__form button:hover { background: #C8E6C9; }
.kdh-newsletter-inline__form small {
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
    display: block;
    margin-top: 6px;
}
@media (max-width: 768px) {
    .kdh-newsletter-inline__inner { grid-template-columns: 1fr; }
    .kdh-newsletter-inline { padding: 24px; }
}

/* ==========================================================================
   v2.4 — Breadcrumbs
   ========================================================================== */
.kdh-breadcrumbs {
    font-size: 0.85rem;
    color: #888;
    padding: 12px 0;
}
.kdh-breadcrumbs a {
    color: #1B5E20;
    text-decoration: none;
}
.kdh-breadcrumbs a:hover { text-decoration: underline; }
.kdh-breadcrumb__sep {
    margin: 0 4px;
    color: #ccc;
}
.kdh-breadcrumb__current { color: #555; }
.kdh-breadcrumb__sponsored-flag {
    background: #F39C12;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   v2.4 — Ad zones
   ========================================================================== */
.kdh-ad-zone {
    margin: 24px auto;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}
.kdh-ad-label {
    display: block;
    font-size: 0.7rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}
.kdh-ad-creative {
    display: inline-block;
    max-width: 100%;
}
.kdh-ad-zone--header {
    padding: 14px 0;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}
.kdh-ad-zone--in-feed-card {
    grid-column: 1 / -1;
    padding: 20px 0;
    border-top: 1px dashed #e0e0e0;
    border-bottom: 1px dashed #e0e0e0;
}
.kdh-ad-zone--sidebar-sticky {
    margin-bottom: 24px;
}
.kdh-ad-zone--footer-pre {
    padding: 20px 0;
    background: #fafafa;
    border-top: 1px solid #eee;
}

/* House ad creatives — render when no paid creative is set */
.kdh-house-ad {
    display: block;
    text-decoration: none;
    color: #1B5E20;
    border: 1px solid #1B5E20;
    border-radius: 8px;
    padding: 18px 22px;
    transition: background 0.15s;
}
.kdh-house-ad:hover {
    background: #F1F8E9;
}
.kdh-house-ad strong {
    display: block;
    font-family: 'Merriweather', serif;
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: #1B5E20;
}
.kdh-house-ad span {
    display: block;
    color: #555;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 8px;
}
.kdh-house-ad em {
    color: #1B5E20;
    font-style: normal;
    font-weight: 700;
    font-size: 0.92rem;
}
.kdh-house-ad--leaderboard {
    max-width: 970px;
    margin: 0 auto;
}
.kdh-house-ad--card {
    text-align: left;
}
.kdh-house-ad--inline {
    text-align: left;
    background: #F1F8E9;
}
.kdh-house-ad--sidebar {
    text-align: left;
}

/* ==========================================================================
   v2.4 — Search results listing
   ========================================================================== */
.kdh-archive-header {
    text-align: left;
    padding: 24px 0 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
}
.kdh-archive-title {
    font-size: 2rem;
    color: #1B5E20;
    margin: 0 0 8px;
}
.kdh-archive-description {
    color: #666;
    font-size: 1rem;
}

.kdh-search-results {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.kdh-search-result {
    background: #fff;
    padding: 22px 26px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.15s ease;
}
.kdh-search-result:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.kdh-search-result__title {
    font-size: 1.3rem;
    margin: 0 0 6px;
}
.kdh-search-result__title a {
    color: #1B5E20;
    text-decoration: none;
}
.kdh-search-result__title a:hover { color: #4CAF50; }
.kdh-search-result__meta {
    font-size: 0.82rem;
    color: #888;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.kdh-search-result__excerpt {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   v2.4 — 404 page
   ========================================================================== */
.kdh-404__inner {
    max-width: 720px;
    margin: 60px auto;
    text-align: center;
}
.kdh-404__big {
    display: block;
    font-family: 'Merriweather', serif;
    font-size: 8rem;
    color: #1B5E20;
    line-height: 1;
    margin-bottom: 0;
    opacity: 0.85;
}
.kdh-404__title {
    font-size: 2rem;
    margin: 0 0 14px;
}
.kdh-404__lead {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 24px;
}
.kdh-404__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.kdh-404__search { margin-bottom: 36px; }
.kdh-404__search h2,
.kdh-404__recent h2 {
    font-size: 1.2rem;
    color: #1B5E20;
    margin-bottom: 12px;
}
.kdh-404__recent ul {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}
.kdh-404__recent li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.kdh-404__recent li a {
    color: #1B5E20;
    text-decoration: none;
    flex: 1;
}
.kdh-404__recent .post-date {
    color: #888;
    font-size: 0.82rem;
    flex-shrink: 0;
}

/* ==========================================================================
   v2.4 — Media Kit / Advertiser Portal page
   ========================================================================== */
.kdh-media-kit__hero {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 50px;
}
.kdh-media-kit__hero h1 {
    color: #fff;
    font-size: 2.8rem;
    line-height: 1.18;
    max-width: 800px;
    margin: 14px auto 18px;
}
.kdh-media-kit__eyebrow {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.kdh-media-kit__lead {
    max-width: 720px;
    margin: 0 auto 28px;
    font-size: 1.12rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.95);
}
.kdh-media-kit__hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.kdh-media-kit__hero .btn-primary {
    background: #fff;
    color: #1B5E20;
}
.kdh-media-kit__hero .btn-secondary {
    color: #fff;
    border-color: #fff;
}
.kdh-media-kit__hero .btn-secondary:hover {
    background: #fff;
    color: #1B5E20;
}

.kdh-media-kit__section {
    padding: 50px 0;
}
.kdh-media-kit__section--alt {
    background: #FAFAFA;
}
.kdh-media-kit__section--editable {
    background: #fff;
}
.kdh-media-kit__section h2 {
    font-size: 2rem;
    color: #1B5E20;
    margin-bottom: 22px;
    text-align: center;
}
.kdh-media-kit__section-lead {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 32px;
    color: #666;
    font-size: 1.05rem;
}

.kdh-media-kit__grid {
    display: grid;
    gap: 22px;
}
.kdh-media-kit__grid--audience {
    grid-template-columns: repeat(4, 1fr);
}
.kdh-media-kit__grid--products {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
    .kdh-media-kit__grid--audience,
    .kdh-media-kit__grid--products {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .kdh-media-kit__grid--audience,
    .kdh-media-kit__grid--products {
        grid-template-columns: 1fr;
    }
}

.kdh-media-kit__stat {
    background: #fff;
    padding: 22px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
}
.kdh-media-kit__stat-num {
    display: block;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: #1B5E20;
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 6px;
}
.kdh-media-kit__stat-label {
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.kdh-media-kit__note {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-top: 24px;
    padding: 14px;
    background: #fff;
    border-radius: 6px;
}

.kdh-media-kit__zones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 1024px) {
    .kdh-media-kit__zones { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .kdh-media-kit__zones { grid-template-columns: 1fr; }
}
.kdh-media-kit__zone {
    background: #fff;
    border: 1px solid #1B5E20;
    border-radius: 8px;
    padding: 22px;
}
.kdh-media-kit__zone h3 {
    color: #1B5E20;
    font-size: 1.15rem;
    margin: 0 0 6px;
}
.kdh-media-kit__zone-sizes {
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.kdh-media-kit__zone p {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

.kdh-media-kit__product {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: box-shadow 0.15s ease;
}
.kdh-media-kit__product:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.kdh-media-kit__product h3 {
    color: #1B5E20;
    font-size: 1.25rem;
    margin: 0 0 10px;
}
.kdh-media-kit__product p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}
.kdh-media-kit__price-hint {
    color: #1B5E20 !important;
    font-weight: 600;
    font-size: 0.85rem !important;
    border-top: 1px solid #eee;
    padding-top: 8px;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}
.kdh-media-kit__product code {
    background: #F1F8E9;
    color: #1B5E20;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.85rem;
}

.kdh-media-kit__cta {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.kdh-media-kit__cta h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 12px;
}
.kdh-media-kit__cta p {
    color: rgba(255,255,255,0.95);
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0 auto 24px;
    line-height: 1.6;
}
.kdh-media-kit__cta a { color: #fff; text-decoration: underline; }
.kdh-media-kit__cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.kdh-media-kit__cta .btn-primary {
    background: #fff;
    color: #1B5E20;
}
.kdh-media-kit__cta .btn-secondary {
    color: #fff;
    border-color: #fff;
}
.kdh-media-kit__editable-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.75;
    color: #444;
}

/* ==========================================================================
   v2.4 — Comments
   ========================================================================== */
.kdh-comments {
    background: #fff;
    padding: 30px 35px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    margin-top: 30px;
}
.kdh-comments__title {
    font-size: 1.4rem;
    color: #1B5E20;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}
.kdh-comments__list,
.kdh-comments__list ol {
    list-style: none;
    padding: 0;
}
.kdh-comments__list .children {
    list-style: none;
    padding-left: 32px;
    margin-top: 12px;
}
.kdh-comments__list .comment {
    background: #FAFAFA;
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 12px;
}
.kdh-comments__list .comment-author {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}
.kdh-comments__list .comment-author img {
    border-radius: 50%;
}
.kdh-comments__list .comment-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
}
.kdh-comments__closed {
    color: #888;
    font-style: italic;
    margin-top: 14px;
}

/* ==========================================================================
   v2.4 — Pages, sidebar widgets
   ========================================================================== */
.kdh-page {
    background: #fff;
    padding: 30px 35px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.kdh-page__title {
    font-size: 2.2rem;
    color: #1B5E20;
    margin: 0 0 12px;
}
.kdh-page__standfirst {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 18px;
    font-family: 'Merriweather', serif;
}
.kdh-page__featured { margin: 18px -35px; }
.kdh-page__featured img { width: 100%; height: auto; display: block; }
.kdh-page__content {
    font-size: 1.05rem;
    line-height: 1.75;
}

.widget-area--sidebar .widget {
    background: #fff;
    padding: 18px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}
.widget-area--sidebar .widget-title {
    font-size: 1rem;
    color: #1B5E20;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.widget-area--sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget-area--sidebar li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.widget-area--sidebar li:last-child { border-bottom: 0; }
.widget-area--sidebar a {
    color: #333;
    text-decoration: none;
}
.widget-area--sidebar a:hover { color: #1B5E20; }

/* ==========================================================================
   v2.4 — Footer (rewritten — replaces v2.3 placeholder footer)
   ========================================================================== */
.site-footer {
    background: #1A1A1A;
    color: #ccc;
    padding: 50px 0 20px;
    margin-top: 50px;
}
.site-footer__widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 32px;
    border-bottom: 1px solid #333;
    margin-bottom: 24px;
}
@media (max-width: 1024px) {
    .site-footer__widgets { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .site-footer__widgets { grid-template-columns: 1fr; }
}
.site-footer__col .footer-widget-title {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 14px;
    font-family: 'Inter', sans-serif;
}
.site-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer__col li {
    padding: 5px 0;
}
.site-footer__col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.15s;
}
.site-footer__col a:hover { color: #4CAF50; }
.site-footer__brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid #333;
    margin-bottom: 18px;
}
.site-footer__brand h3 {
    color: #fff;
    margin: 0 0 4px;
    font-size: 1.4rem;
}
.site-footer__brand h3 a {
    color: #fff;
    text-decoration: none;
}
.site-footer__brand p {
    color: #aaa;
    margin: 0;
    font-size: 0.9rem;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #888;
    font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
.footer-credit a {
    color: #4CAF50;
    text-decoration: none;
}
.footer-credit a:hover { color: #C8E6C9; }

/* End of v2.4 additions */

/* ==========================================================================
   v2.5 — Series pillar page, Sub-Series, Issue components, Galleries, Newsletter ribbon
   Brand colors: #2E7D32 (dark green), #79B93E (light green), #E8F1E2 (pullout bg)
   ========================================================================== */

/* ----- Issue meta header (Issue NN | Series | Sub-Series | flagship | pages) ----- */
.kdh-issue-meta-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 0.92rem;
}
.kdh-issue-meta-header__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    transition: opacity 0.15s ease;
}
.kdh-issue-meta-header__pill:hover { opacity: 0.85; }
.kdh-issue-meta-header__pill--issue {
    background: #2E7D32;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.kdh-issue-meta-header__pill--series {
    background: #E8F1E2;
    color: #1B5E20;
}
.kdh-issue-meta-header__pill--sub {
    background: #fff;
    color: #2E7D32;
    border: 1px solid #79B93E;
}
.kdh-issue-meta-header__divider {
    opacity: 0.7;
    font-weight: 400;
    margin-left: 4px;
}
.kdh-issue-meta-header__flagship {
    color: #555;
    font-size: 0.9rem;
    margin-left: 4px;
}
.kdh-issue-meta-header__pages {
    color: #888;
    font-size: 0.85rem;
}

/* ----- Issue download CTA box ----- */
.kdh-issue-downloads {
    background: linear-gradient(135deg, #f4faf2 0%, #E8F1E2 100%);
    border-left: 4px solid #79B93E;
    padding: 28px 32px;
    margin: 40px 0;
    border-radius: 4px;
}
.kdh-issue-downloads__title {
    color: #1B5E20;
    margin: 0 0 6px;
    font-size: 1.4rem;
}
.kdh-issue-downloads__lead {
    color: #555;
    margin: 0 0 18px;
    font-size: 0.95rem;
}
.kdh-issue-downloads__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}
.kdh-issue-downloads__buttons .btn-primary,
.kdh-issue-downloads__buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kdh-issue-downloads__buttons .btn-primary {
    background: #2E7D32;
    color: #fff;
}
.kdh-issue-downloads__buttons .btn-primary:hover {
    background: #1B5E20;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46,125,50,0.25);
}
.kdh-issue-downloads__buttons .btn-secondary {
    background: #fff;
    color: #2E7D32;
    border: 1px solid #79B93E;
}
.kdh-issue-downloads__buttons .btn-secondary:hover {
    background: #f4faf2;
    transform: translateY(-1px);
}
.kdh-issue-downloads__citation {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
    padding-top: 14px;
    border-top: 1px solid rgba(121,185,62,0.3);
}
.kdh-issue-downloads__citation strong { color: #1B5E20; }
.kdh-issue-downloads__citation a {
    color: #2E7D32;
    word-break: break-all;
}

/* ----- Cross-Series alignment callout ----- */
.kdh-cross-series-callout {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #FF9800;
    padding: 22px 28px;
    margin: 32px 0;
    border-radius: 4px;
}
.kdh-cross-series-callout__title {
    color: #E65100;
    margin: 0 0 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.kdh-cross-series-callout__lead {
    color: #555;
    margin: 0 0 10px;
    font-size: 0.92rem;
}
.kdh-cross-series-callout__list {
    margin: 0;
    padding-left: 22px;
}
.kdh-cross-series-callout__list li {
    margin-bottom: 6px;
}
.kdh-cross-series-callout__list a {
    color: #2E7D32;
    text-decoration: none;
}
.kdh-cross-series-callout__list a:hover { text-decoration: underline; }

/* ----- Domain title bar (inside Issue body) ----- */
.kdh-domain-bar {
    background: #2E7D32;
    color: #fff;
    padding: 24px 32px;
    margin: 40px 0 24px;
    border-bottom: 4px solid #79B93E;
    border-radius: 2px;
}
.kdh-domain-bar__label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.9;
    display: block;
    margin-bottom: 6px;
}
.kdh-domain-bar__title {
    color: #fff !important;
    font-size: 1.9rem;
    margin: 0 0 4px;
    line-height: 1.2;
}
.kdh-domain-bar__latin {
    font-style: italic;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* ----- Pull-out box ----- */
.kdh-pullout {
    background: #E8F1E2;
    border-top: 6px solid #79B93E;
    border-left: 4px solid #79B93E;
    padding: 28px 32px;
    margin: 32px 0;
    border-radius: 2px;
}
.kdh-pullout__title {
    color: #2E7D32;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}
.kdh-pullout__body p:first-child { margin-top: 0; }
.kdh-pullout__body p:last-child { margin-bottom: 0; }

/* ----- Stats cards ----- */
.kdh-stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 28px 0;
}
.kdh-stats-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #79B93E;
    padding: 22px 18px;
    text-align: center;
    border-radius: 4px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kdh-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.kdh-stats-card__value {
    display: block;
    font-size: 2.1rem;
    font-weight: 700;
    color: #2E7D32;
    line-height: 1;
    margin-bottom: 8px;
}
.kdh-stats-card__label {
    display: block;
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
@media (max-width: 768px) {
    .kdh-stats-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .kdh-stats-cards { grid-template-columns: 1fr; }
}

/* ----- Comparison table wrapper ----- */
.kdh-comparison-table {
    margin: 32px 0;
    overflow-x: auto;
}
.kdh-comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.kdh-comparison-table th {
    background: #2E7D32;
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
}
.kdh-comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8e8;
}
.kdh-comparison-table tr:hover td { background: #f9fcf6; }
.kdh-comparison-table__caption {
    text-align: center;
    color: #777;
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* ==========================================================================
   Series Pillar Page
   ========================================================================== */

/* ----- Hero (pillar page variant) ----- */
.kdh-series-hero--pillar {
    padding: 80px 0 70px;
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    color: #fff;
    margin-bottom: 0;
}
.kdh-series-hero--pillar .kdh-series-hero__inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}
.kdh-series-hero--pillar .kdh-series-hero__title {
    font-size: 2.8rem;
    color: #fff;
    margin: 16px 0 14px;
    line-height: 1.15;
}
.kdh-series-hero--pillar .kdh-series-hero__tagline {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 720px;
    margin: 0 auto 24px;
}
.kdh-series-hero--pillar .kdh-series-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.kdh-series-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    font-size: 0.95rem;
    opacity: 0.95;
    margin-bottom: 26px;
}
.kdh-series-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.kdh-series-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}
.kdh-series-hero__btn.btn-primary {
    background: #fff;
    color: #1B5E20;
}
.kdh-series-hero__btn.btn-primary:hover {
    background: #f4faf2;
    transform: translateY(-2px);
}
.kdh-series-hero__btn.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}
.kdh-series-hero__btn.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}
@media (max-width: 768px) {
    .kdh-series-hero--pillar .kdh-series-hero__title { font-size: 2rem; }
}

/* ----- Hero (sub-series variant) ----- */
.kdh-series-hero--sub {
    padding: 60px 0 50px;
    background: linear-gradient(135deg, #2E7D32 0%, #43A047 100%);
    color: #fff;
}
.kdh-series-hero--sub .kdh-series-hero__inner { max-width: 880px; margin: 0 auto; }
.kdh-series-hero--sub .kdh-series-hero__title { font-size: 2.2rem; color: #fff; margin: 14px 0 10px; }
.kdh-series-hero__breadcrumb {
    margin-bottom: 8px;
    font-size: 0.92rem;
    opacity: 0.9;
}
.kdh-series-hero__breadcrumb a {
    color: #fff;
    text-decoration: underline;
    opacity: 0.95;
}

/* ----- Section title pattern ----- */
.kdh-series-section-title {
    font-size: 1.7rem;
    color: #1B5E20;
    margin: 0 0 8px;
    text-align: center;
}
.kdh-series-section-lead {
    text-align: center;
    color: #666;
    margin: 0 0 28px;
    font-size: 1rem;
}

/* ----- Foreword ----- */
.kdh-series-foreword {
    background: #fafafa;
    padding: 60px 0;
}
.kdh-series-foreword__inner {
    max-width: 720px;
    margin: 0 auto;
}
.kdh-series-foreword__eyebrow {
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    color: #2E7D32;
    font-weight: 700;
    margin-bottom: 16px;
}
.kdh-series-foreword__body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    line-height: 1.75;
    color: #333;
}
.kdh-series-foreword__body p { margin-bottom: 1.2em; }

/* ----- At-a-glance table ----- */
.kdh-series-glance {
    padding: 60px 0;
}
.kdh-series-glance__table-wrap {
    overflow-x: auto;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.kdh-series-glance__table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.kdh-series-glance__table th {
    background: #2E7D32;
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
}
.kdh-series-glance__table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}
.kdh-series-glance__table .col-num {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #2E7D32;
    width: 80px;
}
.kdh-series-glance__table .col-title a {
    color: #222;
    text-decoration: none;
    font-weight: 600;
}
.kdh-series-glance__table .col-title a:hover {
    color: #2E7D32;
    text-decoration: underline;
}
.kdh-series-glance__table .col-flagship { font-style: italic; color: #666; }
.kdh-series-glance__table .col-pages { width: 80px; text-align: right; color: #888; }
.kdh-series-glance__table tr:hover td { background: #f9fcf6; }

/* ----- Sub-Series cards ----- */
.kdh-series-subs {
    padding: 60px 0;
    background: #fafafa;
}
.kdh-series-subs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 28px;
}
.kdh-subseries-card {
    background: #fff;
    border-top: 4px solid #79B93E;
    padding: 28px 26px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kdh-subseries-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.kdh-subseries-card__title {
    margin: 0 0 8px;
    font-size: 1.3rem;
}
.kdh-subseries-card__title a {
    color: #1B5E20;
    text-decoration: none;
}
.kdh-subseries-card__range {
    display: inline-block;
    background: #E8F1E2;
    color: #1B5E20;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.kdh-subseries-card__tagline {
    color: #555;
    margin: 8px 0 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.kdh-subseries-card__flagship {
    font-size: 0.88rem;
    color: #666;
    margin: 8px 0 16px;
}
.kdh-subseries-card__cta {
    color: #2E7D32;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 6px;
}
.kdh-subseries-card__cta:hover { text-decoration: underline; }

/* ----- Cross-cutting themes ----- */
.kdh-series-themes {
    padding: 60px 0;
}
.kdh-series-themes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 28px;
}
.kdh-series-theme {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #2E7D32;
    padding: 24px 22px;
    border-radius: 4px;
}
.kdh-series-theme__num {
    display: inline-block;
    color: #79B93E;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}
.kdh-series-theme__title {
    color: #1B5E20;
    font-size: 1.05rem;
    margin: 0 0 10px;
    line-height: 1.3;
}
.kdh-series-theme__summary {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}
.kdh-series-themes__cta {
    text-align: center;
    margin-top: 32px;
}

/* ----- Newsletter wrapper inside Series page ----- */
.kdh-series-newsletter {
    padding: 50px 0;
    background: #fafafa;
}

/* ----- Final CTAs (Compiled Volume + Closer) ----- */
.kdh-series-final-ctas {
    padding: 60px 0;
}
.kdh-series-final-ctas__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}
.kdh-series-final-cta {
    background: linear-gradient(135deg, #f4faf2 0%, #E8F1E2 100%);
    border-left: 4px solid #79B93E;
    padding: 32px 28px;
    border-radius: 4px;
}
.kdh-series-final-cta h3 {
    color: #1B5E20;
    margin: 0 0 8px;
    font-size: 1.3rem;
}
.kdh-series-final-cta p {
    color: #555;
    margin: 0 0 18px;
}
.kdh-series-final-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.kdh-series-final-cta .btn-primary {
    background: #2E7D32;
    color: #fff;
    padding: 12px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.kdh-series-final-cta .btn-primary:hover {
    background: #1B5E20;
}
.kdh-series-final-cta .btn-secondary {
    background: #fff;
    color: #2E7D32;
    border: 1px solid #79B93E;
    padding: 12px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ----- Series episode list (full reading list) ----- */
.kdh-series-episodes {
    padding: 60px 0;
    background: #fafafa;
}
.kdh-series-episode-list {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: grid;
    gap: 20px;
}
.kdh-series-episode {
    display: grid;
    grid-template-columns: 100px 180px 1fr;
    gap: 22px;
    background: #fff;
    padding: 22px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    align-items: start;
}
.kdh-series-episode__number {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #2E7D32;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.kdh-series-episode__thumb {
    display: block;
    width: 100%;
    height: 110px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}
.kdh-series-episode__date {
    color: #888;
    font-size: 0.85rem;
}
.kdh-series-episode__title {
    margin: 4px 0 8px;
    font-size: 1.15rem;
    line-height: 1.3;
}
.kdh-series-episode__title a {
    color: #222;
    text-decoration: none;
}
.kdh-series-episode__title a:hover { color: #2E7D32; }
.kdh-series-episode__flagship {
    color: #666;
    font-size: 0.9rem;
    margin: 4px 0 8px;
}
.kdh-series-episode__excerpt {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 10px;
}
.kdh-series-episode__reading {
    color: #888;
    font-size: 0.82rem;
}
@media (max-width: 768px) {
    .kdh-series-episode {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .kdh-series-episode__thumb { height: 180px; }
}

/* ----- Acknowledgements footer ----- */
.kdh-series-acks {
    padding: 50px 0;
    background: #f4faf2;
}
.kdh-series-acks__body {
    max-width: 720px;
    margin: 20px auto 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: center;
}

/* ==========================================================================
   Photo Galleries
   ========================================================================== */
.kdh-gallery-hero {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    color: #fff;
    padding: 60px 0 50px;
}
.kdh-gallery-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.kdh-gallery-hero__title {
    color: #fff;
    font-size: 2.2rem;
    margin: 14px 0 10px;
    line-height: 1.2;
}
.kdh-gallery-hero__standfirst {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 720px;
    margin-bottom: 16px;
}
.kdh-gallery-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.92rem;
    opacity: 0.95;
}
.kdh-gallery__intro {
    max-width: 720px;
    margin: 30px auto;
    color: #444;
    font-size: 1.05rem;
    line-height: 1.7;
}
.kdh-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4px;
    padding: 20px 0 40px;
}
.kdh-gallery-item {
    margin: 0;
    overflow: hidden;
    background: #f0f0f0;
}
.kdh-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.kdh-gallery-item:hover img { transform: scale(1.04); }
.kdh-gallery-item figcaption {
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #666;
    background: #fafafa;
}
.kdh-galleries-archive { padding: 50px 0; }
.kdh-galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.kdh-gallery-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kdh-gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.kdh-gallery-card__thumb {
    display: block;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #2E7D32;
    position: relative;
}
.kdh-gallery-card__count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}
.kdh-gallery-card__body { padding: 18px 20px; }
.kdh-gallery-card__title { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.3; }
.kdh-gallery-card__title a { color: #1B5E20; text-decoration: none; }
.kdh-gallery-card__meta { color: #666; font-size: 0.88rem; }

.kdh-archive-hero {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    color: #fff;
    padding: 60px 0 50px;
    text-align: center;
}
.kdh-archive-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.kdh-archive-hero__title {
    color: #fff;
    font-size: 2.4rem;
    margin: 14px 0 10px;
}
.kdh-archive-hero__lead {
    font-size: 1.05rem;
    opacity: 0.92;
}

/* ==========================================================================
   Sticky newsletter ribbon
   ========================================================================== */
.kdh-newsletter-ribbon {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    color: #fff;
    z-index: 999;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.kdh-newsletter-ribbon.is-visible { transform: translateY(0); }
.kdh-newsletter-ribbon__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 24px;
    flex-wrap: wrap;
}
.kdh-newsletter-ribbon__copy {
    flex: 1 1 320px;
    min-width: 0;
}
.kdh-newsletter-ribbon__copy strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 2px;
}
.kdh-newsletter-ribbon__copy span {
    font-size: 0.88rem;
    opacity: 0.92;
    display: block;
}
.kdh-newsletter-ribbon__form {
    display: flex;
    gap: 8px;
    flex: 1 1 360px;
    min-width: 0;
}
.kdh-newsletter-ribbon__form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font-size: 0.95rem;
}
.kdh-newsletter-ribbon__form button {
    background: #79B93E;
    color: #fff;
    border: 0;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}
.kdh-newsletter-ribbon__form button:hover { background: #66A12F; }
.kdh-newsletter-ribbon__dismiss {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}
.kdh-newsletter-ribbon__dismiss:hover { opacity: 1; }
@media (max-width: 600px) {
    .kdh-newsletter-ribbon__inner { padding: 12px 16px; gap: 10px; }
    .kdh-newsletter-ribbon__copy strong { font-size: 0.95rem; }
    .kdh-newsletter-ribbon__copy span { font-size: 0.82rem; }
    .kdh-newsletter-ribbon__form { flex-basis: 100%; }
    .kdh-newsletter-ribbon__dismiss {
        position: absolute;
        top: 6px;
        right: 10px;
    }
}

/* End of v2.5 additions */

/* ==========================================================================
   v2.5.1 — Subscription extras: Compiled Volume gate, Google Sign-in placement
   ========================================================================== */

/* ----- Compiled Volume gate page ----- */
.kdh-gate {
    padding: 80px 0;
    background: linear-gradient(135deg, #f4faf2 0%, #E8F1E2 100%);
    min-height: 65vh;
}
.kdh-gate__inner {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    padding: 48px 40px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(27,94,32,0.08);
    text-align: center;
}
.kdh-gate__eyebrow {
    display: inline-block;
    background: #2E7D32;
    color: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}
.kdh-gate__title {
    color: #1B5E20;
    margin: 18px 0 10px;
    font-size: 1.9rem;
}
.kdh-gate__lead {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 26px;
}
.kdh-gate__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}
.kdh-gate__form input[type="email"] {
    padding: 14px 16px;
    border: 1px solid #c8e0bb;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.15s ease;
}
.kdh-gate__form input[type="email"]:focus {
    outline: 0;
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
}
.kdh-gate__form button {
    padding: 14px 22px;
    background: #2E7D32;
    color: #fff;
    border: 0;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.kdh-gate__form button:hover {
    background: #1B5E20;
    transform: translateY(-1px);
}
.kdh-gate__divider {
    text-align: center;
    margin: 18px 0 14px;
    position: relative;
    color: #888;
    font-size: 0.85rem;
}
.kdh-gate__divider::before,
.kdh-gate__divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 24px);
    height: 1px;
    background: #ddd;
}
.kdh-gate__divider::before { left: 0; }
.kdh-gate__divider::after  { right: 0; }
.kdh-gate__divider span {
    background: #fff;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}
.kdh-gate__skip {
    margin-top: 24px;
    color: #777;
    font-size: 0.88rem;
}
.kdh-gate__skip a {
    color: #2E7D32;
    text-decoration: underline;
}
.kdh-gate__privacy {
    margin-top: 18px;
    color: #999;
    font-size: 0.8rem;
}

/* ----- Google Sign-in placement (newsletter inline + gate) ----- */
.kdh-google-signin {
    display: flex;
    justify-content: center;
    margin: 8px 0;
}
.kdh-newsletter-inline__divider {
    text-align: center;
    margin: 12px 0;
    position: relative;
    color: #888;
    font-size: 0.82rem;
}
.kdh-newsletter-inline__divider::before,
.kdh-newsletter-inline__divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 20px);
    height: 1px;
    background: rgba(255,255,255,0.25);
}
.kdh-newsletter-inline__divider::before { left: 0; }
.kdh-newsletter-inline__divider::after  { right: 0; }
.kdh-newsletter-inline__divider span {
    padding: 0 8px;
    position: relative;
    z-index: 1;
}
.kdh-newsletter-ribbon__google {
    flex: 0 0 auto;
}
@media (max-width: 720px) {
    .kdh-newsletter-ribbon__google { display: none; }
}

/* End of v2.5.1 additions */

/* ==========================================================================
   v2.5.2 — Sidebar widgets for deep-archive sites
   ========================================================================== */

/* ----- Compact Archive (collapsible by year) ----- */
.kdh-compact-archive {
    margin: 8px 0 0;
}
.kdh-compact-archive__year {
    border-bottom: 1px solid #eee;
}
.kdh-compact-archive__year:last-child {
    border-bottom: 0;
}
.kdh-compact-archive__year-summary {
    padding: 10px 0;
    cursor: pointer;
    font-weight: 600;
    color: #1B5E20;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}
/* Hide default <summary> arrow across browsers */
.kdh-compact-archive__year-summary::-webkit-details-marker { display: none; }
.kdh-compact-archive__year-summary::marker { content: ''; }

.kdh-compact-archive__year-label {
    font-variant-numeric: tabular-nums;
    flex: 1;
}
.kdh-compact-archive__year-count {
    color: #888;
    font-weight: 400;
    font-size: 0.85rem;
}
.kdh-compact-archive__year-chevron {
    color: #2E7D32;
    font-size: 0.9rem;
    transition: transform 0.15s ease;
}
.kdh-compact-archive__year[open] .kdh-compact-archive__year-chevron {
    transform: rotate(180deg);
}
.kdh-compact-archive__year-summary:hover {
    color: #2E7D32;
}
.kdh-compact-archive__months {
    list-style: none;
    margin: 0 0 10px;
    padding: 4px 0 4px 8px;
    border-left: 2px solid #E8F1E2;
}
.kdh-compact-archive__months li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    font-size: 0.92rem;
}
.kdh-compact-archive__months a {
    color: #444;
    text-decoration: none;
    flex: 1;
}
.kdh-compact-archive__months a:hover {
    color: #2E7D32;
    text-decoration: underline;
}
.kdh-compact-archive__count {
    color: #999;
    font-size: 0.78rem;
    background: #f4faf2;
    padding: 1px 6px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

/* ----- Recent Comments (clean snippets) ----- */
.kdh-recent-comments {
    list-style: none;
    margin: 0;
    padding: 0;
}
.kdh-recent-comments__item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.kdh-recent-comments__item:last-child {
    border-bottom: 0;
}
.kdh-recent-comments__head {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 4px;
    color: #555;
}
.kdh-recent-comments__author {
    color: #1B5E20;
    font-weight: 600;
}
.kdh-recent-comments__on {
    color: #999;
    margin: 0 4px;
}
.kdh-recent-comments__post {
    color: #2E7D32;
    text-decoration: none;
    font-weight: 500;
}
.kdh-recent-comments__post:hover {
    text-decoration: underline;
}
.kdh-recent-comments__snippet {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
    margin: 4px 0 0;
    font-style: italic;
}

/* ----- Compact Categories (grid layout) ----- */
.kdh-compact-cats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
@media (max-width: 480px) {
    .kdh-compact-cats {
        grid-template-columns: 1fr;
    }
}
.kdh-compact-cats__item {
    margin: 0;
}
.kdh-compact-cats__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    background: #fafafa;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 0.88rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.kdh-compact-cats__link:hover {
    background: #E8F1E2;
    color: #1B5E20;
}
.kdh-compact-cats__name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kdh-compact-cats__count {
    color: #888;
    font-size: 0.78rem;
    background: #fff;
    padding: 1px 6px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.kdh-compact-cats__link:hover .kdh-compact-cats__count {
    color: #2E7D32;
}

/* End of v2.5.2 additions */
