
/*
Theme Name: Kurunzi News
Theme URI: https://www.kurunzinews.com
Author: Kurunzi News Team
Description: Premium editorial news theme — People Daily layout geometry, Kurunzi brand identity.
Version: 3.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: kurunzi-news
*/

/* ════════════════════════════════════════════════
   1. TOKENS & RESET
   ════════════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Typography */
    --font-display: 'Poppins', sans-serif;
    --font-body:    'Roboto', sans-serif;
    --serif:        Georgia, 'Times New Roman', serif;
    --sans:         var(--font-body);

    /* Brand Colors */
    --blue:        #2c247a;
    --blue-dark:   #1a1560;
    --blue-mid:    #4a3fb5;
    --red:         #d52635;
    --red-hot:     #ff3347;
    --gold:        #a07820;

    /* Neutrals */
    --ink:         #111111;
    --ink-mid:     #333333;
    --ink-light:   #666666;
    --ink-muted:   #999999;
    --border:      #e2e8f0;
    --bg:          #f4f5f7;
    --white:       #ffffff;

    /* Layout */
    --wrap:        1200px;
    --pad:         16px;
    --gap:         16px;

    /* Single Post */
    --pd-black:       #1a1a1a;
    --pd-dark:        #2d2d2d;
    --pd-gray:        #6b6b6b;
    --pd-light-gray:  #e8e8e8;
    --pd-off-white:   #fafafa;
    --pd-red:         #c4281c;
    --pd-white:       #ffffff;
    --pd-border:      #e0e0e0;
    --pd-wrap:        1024px;
    --pd-canvas-max:  660px;
    --pd-sidebar-w:   300px;
    --pd-gap:         32px;
    --pd-pad-x:       20px;

    /* Footer */
    --footer-bg-dark:   #0b1320;
    --footer-bg-darker: #070c14;
    --footer-text:      #94a3b8;
    --footer-text-light:#cbd5e1;
    --footer-border:    rgba(255,255,255,0.06);
    --footer-accent:    #c4281c;
    --footer-transition:all 0.25s cubic-bezier(0.4,0,0.2,1);
}

html {
    scroll-behavior: smooth;
    /* Prevent horizontal overflow at root */
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Belt-and-suspenders horizontal overflow prevention */
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--blue);
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover { color: var(--red); }

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

/* Shared wrappers */
.site-wrap { background: var(--white); }
.site-canvas { background: var(--white); }

/*
 * Universal container — every major section uses these classes.
 * Single source of truth for max-width, centering, and horizontal padding.
 */
.hdr-inner,
.trending-bar__inner,
.pd-section__wrap,
.arc-wrap,
.footer-inner {
    max-width: var(--wrap);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
    /* Ensure containers never exceed viewport */
    width: 100%;
}

.img-placeholder {
    background: var(--border);
    width: 100%;
    aspect-ratio: 16 / 9;
}


/* ════════════════════════════════════════════════
   2. HEADER
   ════════════════════════════════════════════════ */
.site-header {
    background: var(--blue);
    border-bottom: 3px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 999; /* Bumped slightly to ensure it stays above all dynamic content blocks */
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    
    /* Correct way to handle full-width stickiness without horizontal layout shift */
    width: 100%;
    left: 0;
    
}

body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}

.hdr-inner {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    /* Overflow visible for dropdowns, but contain horizontal layout */
    overflow: visible;
}

/* Logo */
.hdr-logo {
    flex: 0 0 auto;
    min-width: 0;
}
.hdr-logo a { display: flex; align-items: center; }
.hdr-logo-img,
.hdr-logo .custom-logo {
    max-height: 44px;
    width: auto;
}
/* Force logo to respect container on all screens */
.hdr-logo img,
.custom-logo-enforcer img,
.hdr-logo .custom-logo {
    max-height: 44px !important;
    width: auto !important;
    display: inline-block !important;
    max-width: 180px;
}

/* Nav */
.hdr-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    position: relative;
    min-width: 0;
}

.hdr-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}

.hdr-menu > li { position: relative; }

.hdr-menu > li > a {
    display: block;
    padding: 0 12px;
    line-height: 64px;
    color: rgba(255,255,255,.9);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
    transition: background .2s, color .2s;
}

.hdr-menu > li > a:hover,
.hdr-menu > li.current-menu-item > a {
    background: rgba(255,255,255,.1);
    color: #fff;
}

/* Dropdown */
.hdr-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    background: var(--blue-dark);
    border-top: 3px solid var(--red);
    list-style: none;
    padding: 6px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
    z-index: 1000;
}

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

.hdr-menu .sub-menu li a {
    display: block;
    padding: 9px 16px;
    font-size: 13px;
    color: rgba(255,255,255,.85);
    transition: background .15s;
    white-space: nowrap;
}

.hdr-menu .sub-menu li a:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

/* Actions */
.hdr-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* Legacy icon-only search button (kept for fallback) */
.hdr-search-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,.3);
    color: rgba(255,255,255,.85);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.hdr-search-btn:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.6);
}

.hdr-search-drop {
    display: none;
    position: absolute;
    top: calc(64px + 3px);
    right: 15px;
    width: 300px;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    overflow: hidden;
    z-index: 200;
}

.hdr-search-drop.is-open { display: block; }

.hdr-search-drop form { display: flex; }
.hdr-search-drop input[type="search"] {
    flex: 1;
    border: none;
    padding: 11px 14px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}
.hdr-search-drop button {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 0 14px;
    cursor: pointer;
    font-size: 14px;
    transition: background .2s;
}
.hdr-search-drop button:hover { background: var(--red); }

/* Subscribe/TV button */
.hdr-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--red);
    color: #fff !important;
    padding: 7px 16px;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
    transition: background .2s;
}

.hdr-subscribe:hover {
    background: var(--red-hot);
    color: #fff !important;
}

/* Hamburger — hidden desktop, shown mobile */
.hdr-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.hdr-burger span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all .25s;
    pointer-events: none;
}


/* ════════════════════════════════════════════════
   3. AD SLOTS
   ════════════════════════════════════════════════ */
.ad-zone {
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.ad-zone--leader { min-height: 100px; padding: 8px 0; }
.ad-zone--mid    { min-height: 100px; padding: 8px 0; }

.ad-zone__inner {
    max-width: var(--wrap);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: inherit;
}

.ad-zone__label {
    font-size: 10px;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}


/* ════════════════════════════════════════════════
   4. TRENDING TICKER
   ════════════════════════════════════════════════ */
.trending-bar {
    background: var(--white);
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    /* Ensure it doesn't cause horizontal scroll */
    max-width: calc(var(--wrap) + (var(--pad) * 2));
    margin-left: auto;
    margin-right: auto;
    /* Account for page padding */
    width: calc(100% - (var(--pad) * 2));
}

.trending-bar__inner {
    height: 38px;
    display: flex;
    align-items: center;
    gap: 0;
    /* No extra padding — the label handles left edge */
    padding: 0;
    overflow: hidden;
}

.trending-bar__label {
    flex: 0 0 auto;
    background: var(--red);
    color: #fff;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    gap: 6px;
    white-space: nowrap;
    animation: breaking-pulse 2s infinite ease-in-out;
}

.trending-bar__label i,
.trending-bar__label .fa-bolt {
    animation: bolt-flash 1.5s infinite steps(2);
}

@keyframes breaking-pulse {
    0%, 100% { background-color: var(--red); }
    50%       { background-color: var(--red-hot); }
}

@keyframes bolt-flash {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(1.15); }
}

.trending-bar__track {
    flex: 1 1 auto;
    overflow: hidden;
    position: relative;
    min-width: 0;
    /* Small gap between label and track */
    padding-left: 12px;
}

.trending-bar__items {
    display: flex;
    gap: 28px;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    /* Prevent layout jump on animation start */
    will-change: transform;
}

.trending-bar__item {
    font-size: 14px;
    color: var(--ink-mid);
    white-space: nowrap;
    transition: color .2s;
    flex-shrink: 0;
}

.trending-bar__item:hover { color: var(--red); }

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.trending-bar__arrows {
    flex: 0 0 auto;
    display: flex;
    gap: 0;
}

.ticker-prev,
.ticker-next {
    background: var(--blue);
    color: #fff;
    border: none;
    width: 32px;
    height: 38px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
}

.ticker-prev:hover,
.ticker-next:hover { background: var(--red); }


/* ════════════════════════════════════════════════
   5. SECTION BLOCKS (front page & archive)
   ════════════════════════════════════════════════ */
.pd-section { padding: 28px 0 0; }

/* Section header */
.pd-section__hdr {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ink);
}

.pd-section__title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--ink);
    position: relative;
    padding-left: 12px;
}

.pd-section__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--red);
    border-radius: 2px;
}

/* Body: 60/40 grid — collapses gracefully */
.pd-section__body {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
    align-items: start;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

/* LEFT */
.pd-left { min-width: 0; }

/* Hero card */
.pd-hero { margin-bottom: 14px; }

.pd-hero__img {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.pd-hero__img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.pd-hero:hover .pd-hero__img img { transform: scale(1.03); }

/* Badge */
.pd-badge {
    position: absolute;
    bottom: 8px;
    left: 0;
    background: var(--red);
    color: #fff;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 3px 10px;
    pointer-events: none;
    line-height: 1.5;
    z-index: 1;
}

.pd-hero__title {
    font-family: var(--font-body);
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--blue-mid);
    margin-bottom: 8px;
}

.pd-hero__title--lg { font-size: clamp(20px, 3vw, 26px); }

.pd-hero__title a { color: var(--ink); }
.pd-hero__title a:hover { color: var(--blue-dark); }

.pd-hero__excerpt {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink-light);
    line-height: 1.55;
    margin-bottom: 8px;
}

/* Meta */
.pd-meta {
    display: flex;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-muted);
    flex-wrap: wrap;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    align-items: center;
}

.pd-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pd-meta a { color: var(--blue); }
.pd-meta a:hover { color: var(--red); }

/* Sub-story 2-col row */
.pd-sub-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

.pd-sub { min-width: 0; }

.pd-sub__img {
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
}

.pd-sub__img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.pd-sub:hover .pd-sub__img img { transform: scale(1.04); }

.pd-sub__title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
}

.pd-sub__title a { color: var(--ink); }
.pd-sub__title a:hover { color: var(--red); }

/* RIGHT — latest feed */
.pd-right { min-width: 0; }

.pd-right__hdr {
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--ink);
}

.pd-right__label {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--ink);
}

/* Row list */
.pd-rows { list-style: none; }

.pd-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.pd-row:last-child { border-bottom: none; }

.pd-row__text {
    flex: 1;
    min-width: 0;
}

.pd-row__cat {
    display: block;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--gold);
    margin-bottom: 3px;
}

.pd-row__title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pd-row__title a { color: var(--ink); }
.pd-row__title a:hover { color: var(--red); }

/* Thumbnail */
.pd-row__thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 60px;
    overflow: hidden;
}

.pd-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
    display: block;
}

.pd-row:hover .pd-row__thumb img { transform: scale(1.06); }

/* CTA button */
.pd-cta {
    display: block;
    background: var(--red);
    color: #fff !important;
    text-align: center;
    padding: 10px 16px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-top: 14px;
    transition: background .2s;
    border-radius: 2px;
}

.pd-cta:hover {
    background: var(--red-hot);
    color: #fff !important;
}

/* Featured section tweaks */
.pd-section--featured { padding-top: 16px; }
.pd-section--featured .pd-section__body { border-bottom: none; }


/* ════════════════════════════════════════════════
   6. ARCHIVE PAGE
   ════════════════════════════════════════════════ */
.archive-page { padding: 28px 0 48px; }

.archive-hdr {
    max-width: var(--wrap);
    margin: 0 auto 24px;
    padding: 0 var(--pad) 16px;
    border-bottom: 2px solid var(--ink);
}

.archive-hdr__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--red);
    margin-bottom: 4px;
}

.archive-hdr__title {
    font-family: var(--serif);
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    color: var(--blue);
    line-height: 1.2;
}

.archive-hdr__desc {
    font-size: 14px;
    color: var(--ink-light);
    margin-top: 6px;
    max-width: 680px;
}

/* Responsive grid: 3 cols → 2 → 1 */
.archive-grid {
    max-width: var(--wrap);
    margin: 0 auto 32px;
    padding: 0 var(--pad);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.arc-card {
    background: var(--white);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
    /* Prevent card content from overflowing */
    min-width: 0;
}

.arc-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.arc-card__img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.arc-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
    display: block;
}

.arc-card:hover .arc-card__img img { transform: scale(1.04); }

.arc-card__img .pd-badge { bottom: 6px; }

.arc-card__body { padding: 14px 16px; }

.arc-card__title {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    margin-bottom: 8px;
}

.arc-card__title a { color: var(--ink); }
.arc-card__title a:hover { color: var(--red); }

.arc-card__excerpt {
    font-size: 13px;
    color: var(--ink-light);
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Archive pagination */
.arc-pagination {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.arc-pagination .nav-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.arc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-mid);
    transition: all .2s;
}

.arc-pagination .page-numbers:hover,
.arc-pagination .page-numbers.current {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.arc-empty {
    max-width: var(--wrap);
    margin: 40px auto;
    padding: 0 var(--pad);
    color: var(--ink-light);
}


/* ════════════════════════════════════════════════
   7. FOOTER
   ════════════════════════════════════════════════ */
.site-footer {
    background: var(--footer-bg-dark);
    color: var(--footer-text);
    margin-top: 0;
    font-family: var(--sans);
    width: 100%;
    overflow-x: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--pad);
    width: 100%;
}

/* 4-col grid, collapses to 2 then 1 */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 56px 0 48px;
}

.footer-col {
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-col-brand { grid-column: span 1; }

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--footer-accent);
    display: inline-block;
}

.footer-logo { margin-bottom: 20px; }

.footer-logo-img {
    max-height: 42px;
    width: auto;
    display: block;
    max-width: 100%;
}

.footer-description {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--footer-text);
    margin: 0 0 20px 0;
}

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

.footer-menu li { margin-bottom: 12px; line-height: 1.4; }
.footer-menu li:last-child { margin-bottom: 0; }

.footer-menu a {
    font-size: 13.5px;
    color: var(--footer-text);
    text-decoration: none;
    transition: var(--footer-transition);
    display: inline-block;
}

.footer-menu a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--footer-text);
}

.footer-contact li:last-child { margin-bottom: 0; }
.footer-contact li i { color: var(--footer-accent); width: 18px; margin-top: 2px; flex-shrink: 0; }
.footer-contact li span { flex: 1; }
.footer-contact a { color: var(--footer-text); text-decoration: none; transition: color .2s; }
.footer-contact a:hover { color: #fff; }

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--footer-text-light);
    text-decoration: none;
    transition: var(--footer-transition);
    /* Touch-friendly minimum */
    min-width: 36px;
}

.footer-social a:hover {
    background: var(--footer-accent);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-copyright {
    background: var(--footer-bg-darker);
    padding: 20px var(--pad);
    text-align: center;
    border-top: 1px solid var(--footer-border);
}

.footer-copyright p {
    margin: 0;
    font-size: 13px;
    color: var(--footer-text);
    line-height: 1.5;
}

.footer-copyright a {
    color: var(--footer-text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}

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

/* Legacy .footer-inner (kept if used anywhere) */
.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 32px;
}


/* ════════════════════════════════════════════════
   8. SINGLE POST LAYOUT
   ════════════════════════════════════════════════ */

/* Two-column: article + sidebar */
.pd-single-layout {
    max-width: var(--pd-wrap);
    margin: 0 auto;
    padding: 40px var(--pd-pad-x);
    display: grid;
    grid-template-columns: minmax(0, var(--pd-canvas-max)) var(--pd-sidebar-w);
    gap: var(--pd-gap);
    justify-content: center;
    align-items: start;
    background: var(--pd-white);
}

/* Left: editorial canvas */
.pd-core-canvas {
    min-width: 0;
    overflow: hidden;
    max-width: var(--pd-canvas-max);
    width: 100%;
    background: transparent;
}

/* Force all images inside canvas to stay in bounds */
.pd-core-canvas img,
.pd-core-canvas figure img,
.pd-core-canvas .pd-hero-figure img,
.pd-core-canvas .pd-article-body img,
.pd-core-canvas .wp-block-image img,
.pd-core-canvas .alignfull img,
.pd-core-canvas .alignwide img,
.pd-core-canvas .aligncenter img,
.pd-core-canvas .alignleft img,
.pd-core-canvas .alignright img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
}

/* Strip negative margins from Gutenberg wide/full align */
.pd-core-canvas .wp-block-image.alignfull,
.pd-core-canvas .wp-block-image.alignwide,
.pd-core-canvas .alignfull,
.pd-core-canvas .alignwide {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* In section 8, after the existing .pd-core-canvas image rules */
.pd-article-body .alignleft,
.pd-article-body .alignright,
.pd-article-body .aligncenter {
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block;
}

.pd-article-body .alignleft img,
.pd-article-body .alignright img,
.pd-article-body .aligncenter img {
    width: 100% !important;
    height: auto !important;
    float: none !important;
    display: block;
}

/* Also catch the caption wrapper WordPress generates */
.pd-article-body .wp-caption {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

.pd-article-body .wp-caption img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

.pd-article-body .wp-caption-text {
    font-size: 12px;
    color: var(--pd-gray);
    text-align: center;
    margin-top: 6px;
    line-height: 1.5;
    padding: 0 4px;
}


/* --- Header Stack --- */
.pd-canvas-header { margin-bottom: 24px; }

.pd-category-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--pd-red);
    text-decoration: none;
    margin-bottom: 12px;
    line-height: 1;
}

.pd-category-badge:hover { text-decoration: underline; }

.pd-headline {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.18;
    color: var(--pd-black);
    letter-spacing: -0.4px;
    margin: 0 0 16px 0;
}

.pd-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    font-size: 13px;
    color: var(--pd-gray);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pd-border);
}

.pd-meta-divider {
    color: var(--pd-border);
    user-select: none;
    -webkit-user-select: none;
}

.pd-meta-author a {
    color: var(--pd-dark);
    font-weight: 600;
    text-decoration: none;
}

.pd-meta-author a:hover {
    color: var(--pd-red);
    text-decoration: underline;
}

/* --- Hero Figure --- */
.pd-hero-figure {
    margin: 0 0 28px 0;
    width: 100%;
    overflow: hidden;
}

.pd-hero-figure img {
    width: 100% !important;
    height: auto !important;
    display: block;
    max-width: 100% !important;
}

.pd-hero-caption {
    font-size: 12px;
    color: var(--pd-gray);
    line-height: 1.5;
    margin-top: 8px;
    padding-left: 10px;
    border-left: 2px solid var(--pd-border);
}

/* --- Audio Bar --- */
.pd-audio-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--pd-off-white);
    border: 1px solid var(--pd-border);
    padding: 12px 18px;
    margin-bottom: 28px;
    width: 100%;
    box-sizing: border-box;
}

.pd-audio-play {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--pd-black);
    color: var(--pd-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.pd-audio-play:hover { background: var(--pd-red); }

.pd-audio-track {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pd-audio-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pd-gray);
}

.pd-audio-progress {
    height: 3px;
    background: var(--pd-border);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.pd-audio-fill {
    position: absolute;
    inset: 0;
    right: auto;
    width: 0%;
    background: var(--pd-red);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.pd-audio-time {
    font-size: 10px;
    color: var(--pd-gray);
    text-align: right;
}

/* --- Standfirst --- */
.pd-standfirst {
    font-family: var(--serif);
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.55;
    color: var(--pd-dark);
    font-weight: 500;
    margin-bottom: 32px;
}

.pd-standfirst p { margin: 0; }

/* --- Article Body --- */
.pd-article-body {
    font-family: var(--serif);
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.78;
    color: var(--pd-black);
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.pd-article-body p { margin: 0 0 1.5em 0; }

/* Drop-cap */
.pd-article-body > p:first-of-type::first-letter {
    font-family: var(--serif);
    font-size: 64px;
    font-weight: 800;
    float: left;
    line-height: 0.8;
    padding-right: 8px;
    padding-top: 4px;
    color: var(--pd-black);
}

.pd-article-body h2 {
    font-size: clamp(19px, 2.5vw, 23px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--pd-black);
    margin: 2em 0 .75em;
}

.pd-article-body h3 {
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 600;
    line-height: 1.35;
    color: var(--pd-dark);
    margin: 1.75em 0 .6em;
}

.pd-article-body blockquote {
    margin: 1.8em 0;
    padding: 0 0 0 22px;
    border-left: 3px solid var(--pd-red);
    font-style: italic;
    color: var(--pd-dark);
    font-size: 19px;
}

.pd-article-body figure {
    margin: 1.5em 0;
    max-width: 100%;
    overflow: hidden;
}

.pd-article-body figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
}

.pd-article-body figcaption {
    font-size: 12px;
    color: var(--pd-gray);
    text-align: center;
    margin-top: 8px;
    line-height: 1.45;
}

/* Neutralise Gutenberg align breakouts */
.pd-article-body .wp-block-image,
.pd-article-body .wp-block-image.alignfull,
.pd-article-body .wp-block-image.alignwide,
.pd-article-body .wp-block-image.aligncenter,
.pd-article-body .wp-block-image.alignleft,
.pd-article-body .wp-block-image.alignright {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
}

/* --- Inline YMLA --- */
.pd-inline-ymla {
    background: var(--pd-off-white);
    border-left: 4px solid var(--red);
    padding: 24px 28px;
    margin: 48px 0;
    width: 100%;
    box-sizing: border-box;
}

.pd-ymla-heading {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    margin: 0 0 20px 0;
}

.pd-ymla-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.pd-ymla-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 18px;
    align-items: center;
}

.pd-ymla-thumb {
    width: 96px;
    height: 64px;
    overflow: hidden;
    flex-shrink: 0;
}

.pd-ymla-thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform .3s ease;
}

.pd-ymla-item:hover .pd-ymla-thumb img { transform: scale(1.05); }

.pd-ymla-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pd-ymla-cat {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold);
}

.pd-ymla-title {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
}

.pd-ymla-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color .2s;
}

.pd-ymla-title a:hover { color: var(--red); }

/* --- Canvas Footer --- */
.pd-canvas-footer {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--pd-border);
}

.pd-author-card {
    background: var(--pd-off-white);
    border: 1px solid var(--pd-border);
    padding: 20px 22px;
    margin-bottom: 22px;
}

.pd-author-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pd-gray);
    margin-bottom: 6px;
}

.pd-author-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--pd-black);
    margin: 0 0 10px;
}

.pd-author-bio {
    font-size: 13px;
    line-height: 1.55;
    color: var(--pd-gray);
    margin: 0 0 14px;
}

.pd-author-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--pd-white);
    background: var(--pd-red);
    padding: 7px 16px;
    text-decoration: none;
    transition: background .2s;
}

.pd-author-link:hover {
    background: var(--pd-black);
    color: var(--pd-white);
}

/* Share strip */
.pd-share-strip {
    display: flex;
    gap: 10px;
}

.pd-share-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pd-white);
    text-decoration: none;
    border-radius: 2px;
    transition: opacity .2s;
    white-space: nowrap;
    min-width: 0;
}

.pd-share-btn:hover { opacity: 0.85; color: var(--pd-white); }
.pd-share-fb { background: #1877f2; }
.pd-share-x  { background: var(--pd-black); }
.pd-share-wa { background: #25d366; }

/* --- Sidebar --- */
.pd-utility-sidebar {
    top: 24px;
    align-self: start;
    width: var(--pd-sidebar-w);
    min-width: 0;
    /* Sticky sidebar on desktop */
    position: sticky;
}

.pd-sidebar-widget { margin-bottom: 32px; }

.pd-widget-heading {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--pd-black);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pd-black);
}

.pd-related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pd-related-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.pd-related-thumb {
    flex-shrink: 0;
    width: 68px;
    height: 54px;
    overflow: hidden;
    background: var(--pd-light-gray);
}

.pd-related-thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    display: block;
}

.pd-thumb-placeholder {
    width: 68px;
    height: 54px;
    background: var(--pd-light-gray);
    flex-shrink: 0;
}

.pd-related-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pd-related-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--pd-red);
}

.pd-related-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.pd-related-title a { color: var(--pd-dark); text-decoration: none; }
.pd-related-title a:hover { color: var(--pd-red); }

.pd-related-date {
    font-size: 10px;
    color: var(--pd-gray);
    text-transform: uppercase;
}

/* Ad widget */
.pd-widget-ad { margin-top: 24px; }

.pd-widget-ad .pd-ad-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.pd-ad-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--pd-gray);
    
    /* Cross-browser text selection restriction */
    -webkit-user-select: none; /* Safari 3+, Safari on iOS 3+ */
    -moz-user-select: none;    /* Older Firefox builds if needed */
    -ms-user-select: none;     /* Internet Explorer 10-11/Legacy Edge */
    user-select: none;         /* Standard syntax (Chrome, Edge, Opera, Modern Firefox) */
}

.pd-ad-slot {
    width: 100%;
    max-width: var(--pd-sidebar-w);
    height: 250px;
    background: var(--pd-off-white);
    border: 1px dashed var(--pd-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pd-ad-fallback-text {
    font-size: 11px;
    font-weight: 500;
    color: var(--pd-gray);
    letter-spacing: 0.3px;
}

.pd-ad-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ════════════════════════════════════════════════
   9. IN-ARTICLE ADS & BOTTOM CATEGORY SECTION
   ════════════════════════════════════════════════ */
.kurunzi-dynamic-in-article-ad {
    margin: 36px 0;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.ad-disclosure-label {
    display: block;
    font-family: var(--font-display);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    margin-bottom: 8px;
}

.ad-slot-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
    width: 100%;
    overflow: hidden;
}

/* Bottom category block */
.pd-bottom-category-section {
    margin: 56px auto 32px;
    width: 100%;
    max-width: var(--pd-wrap);
    padding: 0 var(--pd-pad-x);
    box-sizing: border-box;
}

.brand-accent-text {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.pd-bottom-category-section .pd-section__hdr {
    border-bottom: 2px solid var(--red);
}

.pd-bottom-category-section .pd-hero__title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(18px, 3vw, 24px);
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-top: 12px;
}

.pd-bottom-category-section .pd-row__cat { color: var(--red); }

.pd-bottom-category-section .pd-row__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}


/* ════════════════════════════════════════════════
   10. COMMENTS
   ════════════════════════════════════════════════ */
.kn-comments-section {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 2px solid var(--pd-black);
    font-family: var(--sans);
}

.kn-comments-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.kn-comments-count {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--pd-black);
    white-space: nowrap;
    margin: 0;
}

.kn-comments-number { color: var(--pd-red); }

.kn-comments-rule {
    flex: 1;
    height: 1px;
    background: var(--pd-border);
}

.kn-comment-list,
.kn-comment-list .children {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kn-comment-list .comment {
    padding: 24px 0;
    border-bottom: 1px solid var(--pd-border);
}

.kn-comment-list .comment:last-child { border-bottom: none; }

.kn-comment-list .children {
    margin-top: 16px;
    padding-left: 24px;
    border-left: 2px solid var(--pd-border);
}

.kn-comment-inner {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0 16px;
    align-items: start;
}

.kn-comment-avatar {
    grid-row: span 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--pd-light-gray);
    flex-shrink: 0;
}

.kn-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.kn-comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    margin-bottom: 8px;
}

.kn-comment-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--pd-black);
}

.kn-comment-author a { color: inherit; text-decoration: none; }
.kn-comment-author a:hover { color: var(--pd-red); }

.kn-comment-date {
    font-size: 11px;
    color: var(--pd-gray);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.kn-comment-date a { color: inherit; text-decoration: none; }
.kn-comment-date a:hover { color: var(--pd-red); }

.kn-comment-body {
    font-size: 15px;
    line-height: 1.65;
    color: var(--pd-dark);
    margin-bottom: 10px;
}

.kn-comment-body p { margin: 0 0 .75em; }
.kn-comment-body p:last-child { margin-bottom: 0; }

.kn-comment-reply {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--pd-gray);
    text-decoration: none;
    transition: color .2s;
}

.kn-comment-reply:hover { color: var(--pd-red); }

.comment-awaiting-moderation {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #7a5a00;
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 2px 8px;
    border-radius: 2px;
    margin-left: 6px;
}

.comment-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0 0;
    font-size: 13px;
    font-weight: 600;
    flex-wrap: wrap;
}

.comment-navigation .nav-previous a,
.comment-navigation .nav-next a {
    color: var(--pd-dark);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--pd-border);
    display: inline-block;
    transition: background .2s, border-color .2s;
}

.comment-navigation .nav-previous a:hover,
.comment-navigation .nav-next a:hover {
    border-color: var(--pd-black);
    background: var(--pd-off-white);
}

.kn-comments-closed {
    font-size: 13px;
    color: var(--pd-gray);
    padding: 20px;
    border: 1px solid var(--pd-border);
    background: var(--pd-off-white);
    text-align: center;
}

/* Comment form */
.kn-comment-form-wrap { margin-top: 48px; }

.kn-reply-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--pd-black);
    margin: 0 0 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pd-black);
}

.kn-cancel-reply { font-size: 11px; font-weight: 400; margin-left: 10px; }
.kn-cancel-reply a { color: var(--pd-gray); text-decoration: none; font-weight: 500; }
.kn-cancel-reply a:hover { color: var(--pd-red); }

.kn-logged-in { font-size: 13px; color: var(--pd-gray); margin-bottom: 24px; }
.kn-logged-in strong { color: var(--pd-dark); }
.kn-logged-in a { color: var(--pd-red); text-decoration: none; }

.kn-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.kn-field-wrap { display: flex; flex-direction: column; gap: 6px; }
.kn-field-message { margin-bottom: 20px; }

.kn-field-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pd-gray);
}

.kn-field-label .required { color: var(--pd-red); margin-left: 2px; }

.kn-input {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--pd-black);
    background: var(--pd-white);
    border: 1px solid var(--pd-border);
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s;
    -webkit-appearance: none;
    appearance: none;
}

.kn-input:focus {
    border-color: var(--pd-black);
    box-shadow: 0 0 0 3px rgba(26,26,26,.08);
}

.kn-input::placeholder { color: #b0b0b0; }

.kn-textarea {
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.65;
    color: var(--pd-black);
    background: var(--pd-white);
    border: 1px solid var(--pd-border);
    padding: 12px 14px;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    min-height: 130px;
    outline: none;
    transition: border-color .2s;
    -webkit-appearance: none;
    appearance: none;
}

.kn-textarea:focus {
    border-color: var(--pd-black);
    box-shadow: 0 0 0 3px rgba(26,26,26,.08);
}

.kn-textarea::placeholder { color: #b0b0b0; }

.kn-submit-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.kn-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--pd-white);
    background: var(--pd-red);
    border: none;
    padding: 12px 28px;
    cursor: pointer;
    transition: background .2s;
    line-height: 1;
}

.kn-submit-btn:hover { background: var(--pd-black); }
.kn-submit-btn:active { transform: translateY(1px); }


/* ════════════════════════════════════════════════
   11. AUTHOR ARCHIVE
   ════════════════════════════════════════════════ */
.author-layout-container {
    max-width: var(--wrap);
    margin: 40px auto;
    padding: 0 var(--pad);
    width: 100%;
    box-sizing: border-box;
}

.author-profile-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: var(--pd-gap);
    align-items: center;
    margin-bottom: 48px;
}

.author-profile-main {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    min-width: 0;
}

.author-profile-avatar-wrapper { flex: 0 0 120px; }

.author-profile-avatar-large {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 1px solid var(--border);
    display: block;
}

.author-profile-details { flex: 1; min-width: 0; }

.author-profile-role {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
    margin: 0 0 4px 0;
}

.author-profile-name {
    font-family: var(--font-display);
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 900;
    line-height: 1.15;
    color: var(--blue-dark);
    margin: 0 0 12px 0;
}

.author-profile-bio {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-mid);
    margin: 0 0 16px 0;
    max-width: 680px;
}

.author-social { display: flex; gap: 12px; flex-wrap: wrap; }

.author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg);
    color: var(--blue);
    font-size: 13px;
    transition: all .2s;
    /* Touch-friendly */
    min-width: 32px;
}

.author-social a:hover {
    background: var(--red);
    color: var(--white);
}

.author-profile-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-left: 1px solid var(--border);
    padding-left: var(--pd-gap);
}

.author-stat { display: flex; flex-direction: column; }

.stat-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    color: var(--blue);
    letter-spacing: -0.03em;
}

.stat-label {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-light);
    margin-top: 2px;
}

/* 3-col news grid */
.author-posts-section { width: 100%; }

.author-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px var(--gap);
    margin-top: 24px;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

.news-card-image {
    position: relative;
    overflow: hidden;
    background: var(--ink);
}

.news-card-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.news-card:hover .news-card-image img {
    transform: scale(1.04);
    opacity: 0.9;
}

.news-card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
    flex-wrap: wrap;
}

.news-card-meta-row .post-date {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.news-card-title {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px 0;
}

.news-card-title a { color: var(--ink); }
.news-card-title a:hover { color: var(--red); }

.news-card-excerpt {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-light);
    margin: 0;
}

/* Pagination */
.kurunzi-pagination-container {
    margin-top: 48px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.kurunzi-pagination-container .nav-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.kurunzi-pagination-container a,
.kurunzi-pagination-container .current {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--ink);
    transition: all .2s;
}

.kurunzi-pagination-container a:hover,
.kurunzi-pagination-container .current {
    background: var(--blue);
    color: var(--white) !important;
    border-color: var(--blue);
}

.author-empty-state {
    text-align: center;
    padding: 64px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    font-family: var(--font-body);
    color: var(--ink-light);
}


/* ════════════════════════════════════════════════
   12. PREMIUM LIGHT HEADER OVERRIDES
   ════════════════════════════════════════════════ */
.premium-header-bar {
    background: var(--white) !important;
    border-bottom: 2px solid var(--pd-light-gray) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.05) !important;
}

.premium-header-bar .hdr-menu > li > a {
    color: var(--pd-black) !important;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0;
}

.premium-header-bar .hdr-menu > li > a:hover {
    background: transparent !important;
    color: var(--red) !important;
}

/* Light header: burger lines become dark */
.premium-header-bar .hdr-burger span { background: var(--pd-black); }

/* Persistent search pill */
.hdr-search-pill-container { display: block; position: relative; }

.hdr-search-inline-form {
    display: flex;
    align-items: center;
    border: 1.5px solid #df0b0b;
    background: var(--white);
    padding: 4px 14px;
    border-radius: 25px;
    width: 180px;
    transition: width .3s ease;
}

.hdr-search-inline-form:focus-within { width: 220px; }

.hdr-search-inline-input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: 13px;
    color: var(--pd-dark);
    width: 100%;
    padding: 2px 0;
    min-width: 0;
}

.hdr-search-inline-input::placeholder { color: var(--ink-muted); }

.hdr-search-inline-submit {
    background: transparent !important;
    border: none !important;
    color: #df0b0b;
    cursor: pointer;
    padding-left: 6px;
    font-size: 13px;
    flex-shrink: 0;
}

/* TV button */
.hdr-action-tv-btn {
    background: rgb(235,2,2) !important;
    color: var(--white) !important;
    font-family: var(--font-display);
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    padding: 8px 18px !important;
    border-radius: 25px !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
}

.hdr-action-tv-btn:hover { background: var(--red-hot) !important; }


/* ════════════════════════════════════════════════
   13. CRISIS STRIP
   ════════════════════════════════════════════════ */
.kurunzi-crisis-strip {
    background: #fff5f5;
    border-left: 4px solid var(--red);
    padding: 12px 0;
    border-bottom: 1px solid #ffe3e3;
    width: 100%;
    overflow: hidden;
}

.crisis-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    flex-wrap: wrap;
}

.crisis-badge {
    background: var(--red);
    color: var(--white);
    font-weight: 800;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 2px;
    white-space: nowrap;
}

.crisis-text { color: var(--pd-dark); flex: 1; min-width: 0; }
.crisis-link { color: var(--red); font-weight: 700; text-decoration: underline; }


/* ════════════════════════════════════════════════
   14. SEARCH PAGE
   ════════════════════════════════════════════════ */
.search-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-avatar-placeholder {
    background: #f4f6f8;
    color: #a4ca39;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    border-radius: 50%;
    border: 2px dashed #e2e8f0;
    width: 120px;
    height: 120px;
}

.search-empty-state {
    text-align: center;
    padding: 60px 20px !important;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    max-width: 700px;
    margin: 40px auto;
}

.search-empty-icon {
    font-size: 48px;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.search-empty-state h3 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--pd-black);
    margin-bottom: 10px;
    font-weight: 700;
}

.search-empty-state p { color: #718096; font-size: 15px; margin-bottom: 30px; }

.search-empty-form-wrapper { max-width: 450px; margin: 0 auto; }

.search-empty-form-wrapper form {
    display: flex;
    width: 100%;
}

.search-empty-form-wrapper input[type="search"] {
    flex: 1;
    padding: 12px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 25px 0 0 25px;
    outline: none;
    font-size: 14px;
    transition: border-color .2s;
    min-width: 0;
}

.search-empty-form-wrapper input[type="search"]:focus { border-color: #a4ca39; }

.search-empty-form-wrapper button[type="submit"],
.search-empty-form-wrapper input[type="submit"] {
    background: var(--pd-black);
    color: #fff;
    border: none;
    padding: 0 24px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background .2s;
}

.search-empty-form-wrapper button[type="submit"]:hover { background: #a4ca39; }


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


/* ════════════════════════════════════════════════
   16. RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════ */

/* ── Large tablet (≤ 1100px) ── */
@media (max-width: 1100px) {
    :root {
        --pd-sidebar-w: 260px;
        --pd-canvas-max: 580px;
        --pd-gap: 24px;
    }

    .footer-grid { gap: 24px; }
}

/* ── Tablet landscape (≤ 1024px) ── */
@media (max-width: 1024px) {
    .pd-section__body {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

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

    /* Single: sidebar moves below content */
    .pd-single-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 28px var(--pd-pad-x);
    }

    .pd-core-canvas {
        max-width: 100%;
        width: 100%;
    }

    .pd-utility-sidebar {
        position: static;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .pd-bottom-category-section .pd-section__body {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ── Tablet portrait (≤ 991px) ── */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
        padding: 48px 0 40px;
    }

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Author profile: collapse stats to row */
    .author-profile-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .author-profile-stats {
        flex-direction: row;
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 20px;
        justify-content: space-around;
    }

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

/* ── Mobile landscape (≤ 768px) ── */
@media (max-width: 768px) {
    /* Header height reduced */
    .hdr-inner { height: 54px; }

    /* Show hamburger, hide desktop nav */
    .hdr-burger { display: flex; }

    .hdr-nav .hdr-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--blue-dark);
        flex-direction: column;
        z-index: 800;
        padding: 70px 0 20px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Animate in */
        transform: translateX(-100%);
        transition: transform .3s ease;
    }

    .hdr-nav .hdr-menu.is-open {
        display: flex;
        transform: translateX(0);
    }

    .hdr-menu > li > a {
        line-height: 1;
        padding: 14px 24px;
        font-size: 15px;
        border-bottom: 1px solid rgba(255,255,255,.06);
        width: 100%;
    }

    /* Hide TV button label on small screens, show icon only */
    .hdr-action-tv-btn { padding: 7px 12px !important; font-size: 12px !important; }

    /* Hide search pill on narrow screens — search accessible via menu */
    .hdr-search-pill-container { display: none; }

    /* Section grids: stack */
    .pd-section__body { grid-template-columns: 1fr; }
    .pd-right { border-top: 1px solid var(--border); padding-top: 14px; }
    .pd-sub-row { grid-template-columns: 1fr 1fr; }

    /* Trending bar: smaller font */
    .trending-bar { width: calc(100% - 32px); }
    .trending-bar__label { font-size: 11px; padding: 0 10px; }
    .trending-bar__item { font-size: 13px; }

    /* Archive: single column */
    .archive-grid { grid-template-columns: 1fr; }
    .archive-hdr__title { font-size: 22px; }

    /* Footer: two col */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 20px;
        padding: 40px 0 32px;
    }

    /* Single */
    .pd-single-layout { padding: 20px var(--pad); }

    /* Author grid: single col */
    .author-posts-grid { grid-template-columns: 1fr; }

    .author-profile-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-social { justify-content: center; }
}

/* ── Mobile portrait (≤ 600px) ── */
@media (max-width: 600px) {
    :root {
        --pd-pad-x: 16px;
        --pad: 12px;
    }

    /* Single post typography */
    .pd-headline { font-size: clamp(20px, 6vw, 28px); }

    .pd-article-body {
        font-size: 16px;
        line-height: 1.72;
    }

    .pd-article-body > p:first-of-type::first-letter { font-size: 48px; }
    .pd-standfirst { font-size: 16px; }

    /* Share buttons wrap gracefully */
    .pd-share-strip { flex-wrap: wrap; }
    .pd-share-btn { flex: 1 0 calc(33.33% - 8px); min-width: 80px; }

    .pd-audio-bar { padding: 10px 12px; gap: 10px; }

    /* YMLA */
    .pd-inline-ymla { padding: 16px; }
    .pd-ymla-item { grid-template-columns: 72px 1fr; gap: 12px; }
    .pd-ymla-thumb { width: 72px; height: 52px; }

    /* Comments */
    .kn-fields-row { grid-template-columns: 1fr; gap: 16px; }
    .kn-comment-inner { grid-template-columns: 36px 1fr; gap: 0 12px; }
    .kn-comment-avatar { width: 36px; height: 36px; }
    .kn-submit-row { flex-direction: column; align-items: flex-start; }
    .kn-submit-btn { width: 100%; justify-content: center; }
}

/* ── Small mobile (≤ 480px) ── */
@media (max-width: 480px) {
    .pd-sub-row { grid-template-columns: 1fr; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 0 28px;
        text-align: center;
    }

    .footer-inner { grid-template-columns: 1fr; }

    .footer-col { text-align: center; }
    .footer-heading { display: block; text-align: center; }
    .footer-logo { display: flex; justify-content: center; }
    .footer-logo-img { margin: 0 auto; }
    .footer-description { text-align: center; }
    .footer-menu { text-align: center; }
    .footer-menu a:hover { transform: none; }
    .footer-contact li { justify-content: center; }
    .footer-social { justify-content: center; }

    .footer-copyright { padding: 16px 12px; }
    .footer-copyright p { font-size: 11px; }

    .trending-bar__arrows { display: none; }

    .author-profile-card { padding: 16px; }

    .hdr-action-tv-btn {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }

    /* Show only icon on very small screens */
    .hdr-action-tv-btn span { display: none; }
}

/* ── Touch device improvements ── */
@media (hover: none) and (pointer: coarse) {
    .footer-menu a,
    .footer-social a,
    .footer-copyright a {
        padding: 6px 0;
    }

    .footer-menu li { margin-bottom: 14px; }

    .footer-social a {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
    }

    /* Larger tap targets for nav */
    .hdr-menu > li > a { padding: 16px 24px; }

    /* No hover transforms that might stick on touch */
    .arc-card:hover { transform: none; }
    .pd-hero:hover .pd-hero__img img { transform: none; }
    .pd-sub:hover .pd-sub__img img { transform: none; }
}

/* ════════════════════════════════════════════════
   17. PRINT
   ════════════════════════════════════════════════ */
@media print {
    .site-header,
    .trending-bar,
    .ad-zone,
    .kurunzi-dynamic-in-article-ad,
    .site-footer,
    .pd-share-strip,
    .pd-utility-sidebar { display: none !important; }

    .pd-single-layout,
    .pd-section__body { grid-template-columns: 1fr; }

    .pd-core-canvas { max-width: 100%; }

    .site-footer { background: transparent; color: #000; border-top: 1px solid #ccc; }
}

/* ── Mobile nav — SIDEBAR DRAWER ─────────────────────────────────────── */
@media (max-width: 768px) {

    .hdr-burger { display: flex; }
    .hdr-search-pill-container { display: none; }

    /* Overlay behind the sidebar */
    .hdr-nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 996;
    }
    .hdr-nav-overlay.is-open { display: block; }

    /* Sidebar drawer — slides in from the LEFT */
    .hdr-menu {
        display: flex !important;          /* always in DOM for transition */
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        background: #ffffff;
        border-right: 3px solid var(--red);
        padding: 72px 0 32px;              /* 72px clears the header height */
        z-index: 997;
        overflow-y: auto;
        box-shadow: 4px 0 24px rgba(0,0,0,.15);

        /* Slide-in transition */
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hdr-menu.is-open {
        transform: translateX(0);
    }

    /* Menu items — dark text on white */
    .hdr-menu > li > a {
        line-height: 1;
        padding: 14px 24px;
        font-size: 14px;
        color: var(--ink) !important;
        border-bottom: 1px solid var(--border);
        text-transform: uppercase;
        letter-spacing: .4px;
        font-weight: 600;
        transition: background .15s, color .15s;
    }

    .hdr-menu > li > a:hover {
        background: var(--bg);
        color: var(--red) !important;
    }

    .hdr-menu > li.current-menu-item > a {
        color: var(--red) !important;
        background: #fff5f5;
    }

    /* Sub-menus inside the sidebar */
    .hdr-menu .sub-menu {
        position: static;
        display: none;
        border-top: none;
        box-shadow: none;
        padding: 4px 0 4px 16px;
        background: var(--bg);
    }

    .hdr-menu .sub-menu li a {
        color: var(--ink-mid) !important;
        font-size: 13px;
        padding: 10px 24px;
        border-bottom: 1px solid var(--border);
    }

    .hdr-menu .sub-menu li a:hover {
        color: var(--red) !important;
        background: #fff5f5;
    }

    .hdr-menu > li.submenu-open > .sub-menu { display: block; }

    /* Sidebar close button (×) injected by JS */
    .hdr-sidebar-close {
        position: absolute;
        top: 18px;
        right: 16px;
        background: none;
        border: none;
        font-size: 22px;
        cursor: pointer;
        color: var(--ink-mid);
        line-height: 1;
        padding: 4px 8px;
    }
    .hdr-sidebar-close:hover { color: var(--red); }

    /* Sidebar branding strip at top */
    .hdr-sidebar-brand {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: var(--blue);
        border-bottom: 3px solid var(--red);
        display: flex;
        align-items: center;
        padding: 0 20px;
    }

    .hdr-sidebar-brand span {
        color: #fff;
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 15px;
        text-transform: uppercase;
        letter-spacing: .5px;
    }
}

/* Burger → X animation */
.hdr-burger.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hdr-burger.is-active span:nth-child(2) { opacity: 0; }
.hdr-burger.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Scrolled state */
.site-header.scrolled {
    box-shadow: 0 4px 16px rgba(0,0,0,.35);
}