/*
 * Theme Name: Political Headache
 * Theme URI: https://politicalheadache.com
 * Description: Custom child theme for Political Headache â Decoding Kenya, Africa & World Politics
 * Author: Oduor Jagero
 * Author URI: https://politicalheadache.com
 * Template: astra
 * Version: 1.0.0
 * Text Domain: political-headache
 */

/* =============================================================================
   0. CSS CUSTOM PROPERTIES (from theme.json tokens)
   ============================================================================= */

:root {
    --ph-red: #C41E3A;
    --ph-red-hover: #A01830;
    --ph-bg: #F5F5F5;
    --ph-surface: #FFFFFF;
    --ph-text: #111111;
    --ph-text-secondary: #444444;
    --ph-muted: #777777;
    --ph-border: #E0E0E0;
    --ph-border-light: #EEEEEE;
    --ph-code-bg: #F0F0F0;
    --ph-serif: 'Playfair Display', Georgia, serif;
    --ph-sans: 'Source Sans Pro', sans-serif;
    --ph-ui: 'Inter', sans-serif;
    --ph-content-max: 1200px;
    --ph-gap: 2rem;
}

/* =============================================================================
   1. RESET ASTRA DEFAULTS we don't need
   ============================================================================= */

/* Hide Astra's built-in header â we use our own */
#masthead,
.ast-desktop-header-wrap,
.ast-mobile-header-wrap,
.site-header,
.ast-primary-header-bar,
.ast-above-header-bar,
.ast-below-header-bar {
    display: none !important;
}

/* Remove Astra body padding-top that compensates for its sticky header */
.ast-header-break-point .ast-main-header-wrap,
body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove Astra page/content padding */
.ast-container,
.ast-separate-container .ast-article-single,
#content .ast-container {
    padding: 0 !important;
    max-width: 100% !important;
}

/* =============================================================================
   2. RESET & BASE
   ============================================================================= */

*, *::before, *::after { box-sizing: border-box; }

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

body {
    font-family: var(--ph-sans) !important;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ph-text);
    background: var(--ph-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0 !important;
    padding: 0 !important;
}

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

a {
    color: var(--ph-bg);
    text-decoration: none;
    transition: color var(--ph-transition);
}
a:hover { color: var(--ph-red); }

ul, ol { list-style: none; margin: 0; padding: 0; }

button, input, select, textarea { font: inherit; }

/* =============================================================================
   3. TYPOGRAPHY
   ============================================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ph-serif) !important;
    line-height: 1.2;
    color: var(--ph-text);
    font-weight: 700;
    margin: 0 0 0.75rem;
}

h1 { font-size: clamp(1.875rem, 4vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 2rem); }
h4 { font-family: var(--ph-ui) !important; font-size: 1.5rem; font-weight: 600; }
h5 { font-family: var(--ph-ui) !important; font-size: 1.125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
h6 { font-family: var(--ph-ui) !important; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

blockquote {
    font-family: var(--ph-serif);
    font-style: italic;
    font-size: 1.125rem;
    border-left: 4px solid var(--ph-red);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    color: var(--ph-bg);
}

.ph-kicker {
    font-family: var(--ph-ui);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.ph-kicker--kenya  { color: var(--ph-red); }
.ph-kicker--africa { color: var(--ph-red); }
.ph-kicker--global { color: var(--ph-red); }
.ph-kicker--opinion { color: var(--ph-red); }

/* =============================================================================
   4. LAYOUT WRAPPERS
   ============================================================================= */

.ph-wrap {
    width: 100%;
    max-width: var(--ph-wide-max);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.ph-wrap--narrow { max-width: var(--ph-content-max); }

.ph-section { padding-block: 3rem; }
.ph-section + .ph-section { border-top: 1px solid var(--ph-border); }

/* =============================================================================
   5. SKIP LINK
   ============================================================================= */

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    padding: 0.75rem 1.25rem;
    background: var(--ph-red);
    color: var(--ph-white);
    font-family: var(--ph-ui);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 9999;
    transition: top var(--ph-transition);
}
.skip-link:focus { top: 0; }

/* =============================================================================
   6. TOP BAR
   ============================================================================= */

.ph-topbar {
    background: var(--ph-bg);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0.35rem 0;
}

.ph-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ph-topbar__date {
    font-family: var(--ph-ui);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.06em;
}

.ph-topbar__social { display: flex; gap: 0.75rem; }

.ph-topbar__social a {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    transition: color var(--ph-transition);
}
.ph-topbar__social a:hover { color: var(--ph-red); }

/* =============================================================================
   7. HEADER
   ============================================================================= */

.ph-header {
    background: var(--ph-bg);
    height: var(--ph-header-h);
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
    transition: box-shadow 0.3s ease;
}

.ph-header--scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.ph-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 2rem;
}

.ph-site-title { flex-shrink: 0; }

.ph-site-title a {
    font-family: var(--ph-serif) !important;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ph-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    white-space: nowrap;
}
.ph-site-title a:hover { color: var(--ph-red); }

.ph-site-title__tagline {
    font-family: var(--ph-ui);
    font-size: 0.65rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    display: block;
    margin-top: 0.2rem;
}

/* ââ Desktop Navigation âââââââââââââââââââââââââââââââââââ */

.ph-nav__list {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.ph-nav__list li {
    position: relative;
}

.ph-nav__list a {
    font-family: var(--ph-ui);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.8);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: color 0.25s ease, background 0.25s ease;
    white-space: nowrap;
    position: relative;
}

/* Animated underline on hover */
.ph-nav__list a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--ph-red);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 1px;
}

.ph-nav__list a:hover::after,
.ph-nav__list .current-menu-item > a::after {
    width: calc(100% - 1.5rem);
    left: 0.75rem;
}

.ph-nav__list a:hover {
    color: var(--ph-white);
    background: rgba(255,255,255,0.06);
}

.ph-nav__list .current-menu-item > a {
    color: var(--ph-white);
}

/* ââ Search Toggle ââââââââââââââââââââââââââââââââââââââââ */

.ph-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    flex-shrink: 0;
}

.ph-search-toggle:hover {
    background: rgba(255,255,255,0.15);
    color: var(--ph-white);
    border-color: rgba(255,255,255,0.2);
}

/* ââ Hamburger Toggle (hidden on desktop) âââââââââââââââââ */

.ph-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--ph-white);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 510;
    flex-shrink: 0;
}

/* Animated hamburger lines */
.ph-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    transition: background 0.2s ease;
}

.ph-nav-toggle span::before,
.ph-nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s ease, top 0.3s ease;
}

.ph-nav-toggle span::before { top: -7px; }
.ph-nav-toggle span::after  { top: 7px; }

/* Hamburger to X animation */
.ph-nav-toggle.is-active span {
    background: transparent;
}

.ph-nav-toggle.is-active span::before {
    top: 0;
    transform: rotate(45deg);
}

.ph-nav-toggle.is-active span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ââ Search Overlay âââââââââââââââââââââââââââââââââââââââ */

.ph-search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 498;
}

.ph-search-overlay__inner {
    max-width: var(--ph-content-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ph-search-form {
    display: flex;
    flex: 1;
    gap: 0.5rem;
}

.ph-search-form__input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: white;
    font-family: var(--ph-sans);
    font-size: 1rem;
    transition: border-color 0.25s ease;
}

.ph-search-form__input:focus {
    outline: none;
    border-color: var(--ph-red);
}

.ph-search-form__input::placeholder {
    color: rgba(255,255,255,0.35);
}

.ph-search-form__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ph-red);
    border: none;
    border-radius: 6px;
    width: 44px;
    color: white;
    cursor: pointer;
    transition: background 0.25s ease;
}

.ph-search-form__btn:hover {
    background: var(--ph-red-hover);
}

.ph-search-overlay__close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.25s ease;
}
.ph-search-overlay__close:hover { color: white; }

/* =============================================================================
   8. BREAKING NEWS TICKER
   ============================================================================= */

.ph-ticker {
    background: var(--ph-red);
    height: var(--ph-ticker-h);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ph-ticker__label {
    flex-shrink: 0;
    font-family: var(--ph-ui);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ph-white);
    background: rgba(0,0,0,0.25);
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.ph-ticker__track {
    overflow: hidden;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.ph-ticker__items {
    display: flex;
    animation: ph-ticker-scroll 40s linear infinite;
    white-space: nowrap;
}

.ph-ticker__items a {
    font-family: var(--ph-ui);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ph-white);
    padding-inline: 2rem;
    border-right: 1px solid rgba(255,255,255,0.2);
}
.ph-ticker__items a:last-child { border-right: none; }
.ph-ticker__items a:hover { text-decoration: underline; }

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

.ph-ticker:hover .ph-ticker__items { animation-play-state: paused; }

/* =============================================================================
   9. HERO SECTION
   ============================================================================= */

.ph-hero { padding-block: 2.5rem; }

.ph-hero__grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.ph-hero__main { grid-row: 1 / 3; position: relative; }
.ph-hero__main .ph-card__image { aspect-ratio: 16 / 10; }

.ph-hero__side { display: flex; flex-direction: column; gap: 1.5rem; }
.ph-hero__side .ph-card { flex: 1; }

/* =============================================================================
   10. CARD COMPONENT
   ============================================================================= */

.ph-card { display: flex; flex-direction: column; }

.ph-card__image {
    overflow: hidden;
    border-radius: var(--ph-radius);
    background: var(--ph-light-grey);
    aspect-ratio: 16 / 9;
    margin-bottom: 0.875rem;
}

.ph-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ph-card:hover .ph-card__image img { transform: scale(1.04); }

.ph-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.ph-card__author,
.ph-card__date {
    font-family: var(--ph-ui);
    font-size: 0.75rem;
    color: var(--ph-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ph-card__date::before { content: '\00B7'; margin-right: 0.5rem; }

.ph-card__title {
    font-family: var(--ph-serif) !important;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ph-text);
    margin-bottom: 0.5rem;
}
.ph-card__title a { color: inherit; }
.ph-card__title a:hover { color: var(--ph-red); }

.ph-card__excerpt {
    font-family: var(--ph-sans);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #444;
}

.ph-card--lg .ph-card__title { font-size: clamp(1.5rem, 3vw, 2rem); }
.ph-card--md .ph-card__title { font-size: 1.25rem; }
.ph-card--sm .ph-card__title { font-size: 1.0625rem; }
.ph-card--sm .ph-card__image { aspect-ratio: 16 / 7; }

.ph-card--horiz { flex-direction: row; gap: 1rem; align-items: flex-start; }
.ph-card--horiz .ph-card__image { flex: 0 0 120px; aspect-ratio: 4 / 3; margin-bottom: 0; }
.ph-card--horiz .ph-card__body { flex: 1; }

/* =============================================================================
   11. SECTION HEADER
   ============================================================================= */

.ph-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.875rem;
    border-bottom: 3px solid var(--ph-border);
    position: relative;
}

.ph-section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--ph-red);
}

.ph-section-header--africa::after  { background: var(--ph-red); }
.ph-section-header--global::after  { background: var(--ph-red); }
.ph-section-header--opinion::after { background: var(--ph-red); }

.ph-section-header__title {
    font-family: var(--ph-ui) !important;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ph-text);
    margin: 0;
}

.ph-section-header__link {
    margin-left: auto;
    font-family: var(--ph-ui);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ph-muted);
    transition: color var(--ph-transition);
}
.ph-section-header__link:hover { color: var(--ph-red); }

/* =============================================================================
   12. GRIDS
   ============================================================================= */

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

.ph-grid-feature { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; }

.ph-grid-feature__list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-left: 1px solid var(--ph-border);
    padding-left: 1.5rem;
}

.ph-grid-feature__list .ph-card + .ph-card {
    padding-top: 1.25rem;
    border-top: 1px solid var(--ph-border);
}

/* =============================================================================
   12b. CATEGORY PAGE
   ============================================================================= */

.ph-cat-header {
    margin-bottom: 1.5rem;
}

.ph-cat-header__label {
    font-family: var(--ph-ui);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ph-muted);
    margin-bottom: 0.25rem;
}

.ph-cat-header h1 {
    font-family: var(--ph-serif) !important;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ph-text);
    margin: 0 0 0.75rem;
}

.ph-cat-header__desc {
    font-family: var(--ph-sans);
    font-size: 1rem;
    color: var(--ph-text-secondary);
    line-height: 1.6;
    max-width: 640px;
}

/* --- Category hero card --- */
.ph-cat-hero {
    margin-bottom: 2rem;
}

.ph-cat-hero__card {
    position: relative;
    overflow: hidden;
    border-radius: var(--ph-radius, 8px);
    min-height: 320px;
    background: var(--ph-border);
}

.ph-cat-hero__card > a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.ph-cat-hero__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ph-cat-hero__card:hover img {
    transform: scale(1.03);
}

.ph-cat-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #fff;
    z-index: 2;
}

.ph-cat-hero__overlay .ph-card__cat {
    font-family: var(--ph-ui);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ph-red);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.ph-cat-hero__overlay h2 {
    font-family: var(--ph-serif) !important;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 0.5rem;
}

.ph-cat-hero__overlay h2 a {
    color: inherit;
    text-decoration: none;
}

.ph-cat-hero__overlay h2 a:hover {
    text-decoration: underline;
}

.ph-cat-hero__overlay p {
    font-family: var(--ph-sans);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Category grid --- */
.ph-cat-grid-wrap {
    margin-bottom: 2rem;
}

.ph-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .ph-cat-grid {
        grid-template-columns: 1fr;
    }
}

.ph-cat-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.ph-cat-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ph-cat-hero__card:hover .ph-cat-hero__image img {
    transform: scale(1.03);
}

.ph-cat-hero__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #fff;
    z-index: 2;
}

.ph-cat-hero__kicker {
    font-family: var(--ph-ui);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ph-red);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.ph-cat-hero__title {
    font-family: var(--ph-serif) !important;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 0.5rem;
}

.ph-cat-hero__title a {
    color: inherit;
    text-decoration: none;
}

.ph-cat-hero__title a:hover {
    text-decoration: underline;
}

.ph-cat-hero__excerpt {
    font-family: var(--ph-sans);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ph-cat-hero__meta {
    font-family: var(--ph-ui);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
    margin-top: 0.5rem;
}

.ph-cat-hero__meta a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

/* =============================================================================
   13. CONTENT + SIDEBAR
   ============================================================================= */

.ph-content-area {
    display: grid;
    grid-template-columns: 1fr var(--ph-sidebar-w);
    gap: 3rem;
    align-items: start;
}

.ph-main { min-width: 0; }

.ph-sidebar {
    position: sticky;
    top: calc(var(--ph-header-h) + 1.5rem);
}

/* =============================================================================
   14. SINGLE ARTICLE
   ============================================================================= */

.ph-article__header { margin-bottom: 2rem; }

.ph-article__kicker {
    font-family: var(--ph-ui);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ph-red);
    display: block;
    margin-bottom: 0.625rem;
}

.ph-article__title {
    font-family: var(--ph-serif) !important;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ph-text);
    margin-bottom: 1rem;
}

.ph-article__deck {
    font-family: var(--ph-sans);
    font-size: 1.1875rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1.25rem;
}

.ph-article__byline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-block: 1rem;
    border-top: 1px solid var(--ph-border);
    border-bottom: 1px solid var(--ph-border);
    margin-bottom: 2rem;
}

.ph-article__author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--ph-light-grey);
    flex-shrink: 0;
}

.ph-article__author-name {
    font-family: var(--ph-ui);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ph-text);
}
.ph-article__author-name a { color: inherit; }
.ph-article__author-name a:hover { color: var(--ph-red); }

.ph-article__date-read {
    font-family: var(--ph-ui);
    font-size: 0.75rem;
    color: var(--ph-muted);
}

.ph-article__share {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

.ph-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ph-light-grey);
    color: var(--ph-text);
    font-size: 0.8125rem;
    transition: background var(--ph-transition), color var(--ph-transition);
}
.ph-share-btn:hover { background: var(--ph-bg); color: var(--ph-white); }

.ph-article__hero-image {
    margin-bottom: 0.5rem;
    border-radius: var(--ph-radius);
    overflow: hidden;
}

.ph-article__hero-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.ph-article__caption {
    font-family: var(--ph-ui);
    font-size: 0.75rem;
    color: var(--ph-muted);
    margin-bottom: 2rem;
}

.ph-article__body {
    font-family: var(--ph-sans);
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #222;
}

.ph-article__body .has-large-font-size {
    font-size: 1.25rem !important;
    line-height: 1.7;
}

.ph-article__body p { margin-bottom: 1.5rem; }
.ph-article__body h2 { font-size: 1.625rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.ph-article__body h3 { font-size: 1.3125rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.ph-article__body ul, .ph-article__body ol { list-style: revert; padding-left: 1.5rem; margin-bottom: 1.5rem; }
.ph-article__body li { margin-bottom: 0.5rem; }
.ph-article__body a { color: var(--ph-red); text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================================
   15. ALSO READ BOX
   ============================================================================= */

.ph-also-read {
    border: 1px solid var(--ph-border);
    border-left: 4px solid var(--ph-red);
    background: var(--ph-light-grey);
    border-radius: 0 var(--ph-radius) var(--ph-radius) 0;
    padding: 1.25rem 1.5rem;
    margin: 2.5rem 0;
}

.ph-also-read__label {
    font-family: var(--ph-ui);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ph-red);
    margin-bottom: 0.875rem;
    display: block;
}

.ph-also-read__list { display: flex; flex-direction: column; gap: 0.625rem; }

.ph-also-read__item { display: flex; align-items: baseline; gap: 0.5rem; }
.ph-also-read__item::before { content: '\2192'; color: var(--ph-red); flex-shrink: 0; font-size: 0.875rem; }

.ph-also-read__item a {
    font-family: var(--ph-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ph-text);
    text-decoration: none;
}
.ph-also-read__item a:hover { color: var(--ph-red); text-decoration: underline; }

/* =============================================================================
   16. YOU MAY ALSO LIKE
   ============================================================================= */

.ph-also-like {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 3px solid var(--ph-border);
    position: relative;
}

.ph-also-like::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--ph-red);
}

.ph-also-like__heading {
    font-family: var(--ph-ui) !important;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ph-text);
    margin-bottom: 1.5rem;
}

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

/* =============================================================================
   17. TAGS
   ============================================================================= */

.ph-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ph-border);
}

.ph-tag {
    font-family: var(--ph-ui);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ph-text);
    border: 1px solid var(--ph-border);
    border-radius: 2px;
    padding: 0.3rem 0.65rem;
    transition: background var(--ph-transition), border-color var(--ph-transition);
}
.ph-tag:hover { background: var(--ph-bg); border-color: var(--ph-bg); color: var(--ph-white); }

/* =============================================================================
   18. SIDEBAR WIDGETS
   ============================================================================= */

.ph-widget { margin-bottom: 2rem; }

.ph-widget__title {
    font-family: var(--ph-ui) !important;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ph-text);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 3px solid var(--ph-border);
    position: relative;
}

.ph-widget__title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--ph-red);
}

.ph-widget-list { display: flex; flex-direction: column; }

.ph-widget-list__item {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.75rem;
    align-items: start;
    padding-block: 0.875rem;
    border-bottom: 1px solid var(--ph-border);
}
.ph-widget-list__item:last-child { border-bottom: none; }

.ph-widget-list__num {
    font-family: var(--ph-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ph-border);
    line-height: 1;
}

.ph-widget-list__title {
    font-family: var(--ph-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ph-text);
}
.ph-widget-list__title a { color: inherit; }
.ph-widget-list__title a:hover { color: var(--ph-red); }

.ph-widget-newsletter {
    background: var(--ph-bg);
    border-radius: var(--ph-radius);
    padding: 1.5rem;
    color: var(--ph-white);
}

.ph-widget-newsletter__heading {
    font-family: var(--ph-serif) !important;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--ph-white);
}

.ph-widget-newsletter__sub {
    font-family: var(--ph-ui);
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.ph-widget-newsletter__form { display: flex; flex-direction: column; gap: 0.625rem; }

.ph-widget-newsletter__input {
    width: 100%;
    padding: 0.6rem 0.875rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 3px;
    background: rgba(255,255,255,0.08);
    color: var(--ph-white);
    font-size: 0.875rem;
}
.ph-widget-newsletter__input::placeholder { color: rgba(255,255,255,0.35); }
.ph-widget-newsletter__input:focus { outline: none; border-color: var(--ph-red); }

.ph-widget-newsletter__btn {
    width: 100%;
    background: var(--ph-red);
    color: var(--ph-white);
    border: none;
    padding: 0.65rem 1rem;
    border-radius: 3px;
    font-family: var(--ph-ui);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background var(--ph-transition);
}
.ph-widget-newsletter__btn:hover { background: #a31830; }

.ph-widget-ad {
    background: var(--ph-light-grey);
    border: 1px dashed var(--ph-border);
    border-radius: var(--ph-radius);
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ph-muted);
    font-family: var(--ph-ui);
    font-size: 0.75rem;
}

/* =============================================================================
   19. PAGINATION
   ============================================================================= */

.ph-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding-block: 2.5rem;
}

.ph-pagination a,
.ph-pagination span {
    font-family: var(--ph-ui);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: 3px;
    padding-inline: 0.5rem;
    border: 1px solid var(--ph-border);
    color: var(--ph-text);
    transition: background var(--ph-transition), border-color var(--ph-transition), color var(--ph-transition);
}
.ph-pagination a:hover { background: var(--ph-bg); border-color: var(--ph-bg); color: var(--ph-white); }
.ph-pagination .current { background: var(--ph-red); border-color: var(--ph-red); color: var(--ph-white); }

/* =============================================================================
   20. OPINION STRIPE
   ============================================================================= */

.ph-stripe {
    background: var(--ph-bg);
    padding-block: 3rem;
}

.ph-stripe .ph-section-header { border-bottom-color: rgba(255,255,255,0.12); }
.ph-stripe .ph-section-header::after { background: var(--ph-gold); }

/* =============================================================================
   21. FOOTER
   ============================================================================= */

/* Hide Astra footer */
#colophon, .site-footer, .ast-small-footer { display: none !important; }

.ph-footer {
    background: var(--ph-bg);
    color: rgba(255,255,255,0.7);
    padding-top: 3.5rem;
}

/* Ticker links stay white on dark bg */
.ph-ticker__items a {
    color: #fff !important;
}
.ph-ticker__items a:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* Footer links stay light */
.ph-footer a {
    color: rgba(255,255,255,0.7) !important;
}
.ph-footer a:hover {
    color: #fff !important;
}

/* Tighter hero card body */
.ph-hero__main .ph-card__body {
    padding: 1rem 1.25rem 1.25rem !important;
}
.ph-hero__main .ph-kicker {
    padding-top: 0.75rem !important;
}

.ph-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ph-footer__logo {
    font-family: var(--ph-serif) !important;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--ph-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 0.75rem;
}
.ph-footer__logo:hover { color: var(--ph-red); }

.ph-footer__tagline {
    font-family: var(--ph-ui);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1rem;
}

.ph-footer__desc {
    font-size: 0.875rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.ph-footer__social { display: flex; gap: 0.625rem; }

.ph-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    transition: background var(--ph-transition), color var(--ph-transition);
}
.ph-footer__social a:hover { background: var(--ph-red); color: var(--ph-white); }

.ph-footer__col-title {
    font-family: var(--ph-ui) !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ph-white);
    margin-bottom: 1.125rem;
}

.ph-footer__links { display: flex; flex-direction: column; gap: 0.5rem; }

.ph-footer__links a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    transition: color var(--ph-transition);
}
.ph-footer__links a:hover { color: var(--ph-white); }

.ph-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.25rem;
}

.ph-footer__copy {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.35);
}
.ph-footer__copy a { color: inherit; }

.ph-footer__legal { display: flex; gap: 1.25rem; }
.ph-footer__legal a { font-size: 0.8125rem; color: rgba(255,255,255,0.35); }
.ph-footer__legal a:hover { color: rgba(255,255,255,0.7); }

/* =============================================================================
   22. UTILITY
   ============================================================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ph-divider { border: none; border-top: 1px solid var(--ph-border); margin-block: 2rem; }

.ph-label {
    display: inline-block;
    font-family: var(--ph-ui);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ph-white);
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
    line-height: 1;
}

.ph-label--kenya    { background: var(--ph-red); }
.ph-label--africa   { background: var(--ph-red); }
.ph-label--global   { background: var(--ph-red); }
.ph-label--opinion  { background: var(--ph-red); }
.ph-label--breaking { background: var(--ph-red); }

/* =============================================================================
   23. RESPONSIVE â TABLET
   ============================================================================= */

@media (max-width: 1024px) {
    .ph-hero__grid { grid-template-columns: 1fr 280px; }
    .ph-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .ph-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .ph-grid-feature { grid-template-columns: 1fr 240px; }
    .ph-content-area { grid-template-columns: 1fr 260px; gap: 2rem; }
}

/* =============================================================================
   24. RESPONSIVE â MOBILE
   ============================================================================= */

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .ph-wrap, .ph-article, .ph-content-area, main {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .ph-article__hero-image { max-width: 100%; }
    .ph-article__hero-image img { max-width: 100%; height: auto; }

    .ph-hero__grid { grid-template-columns: 1fr; }
    .ph-hero__main { grid-row: auto; }
    .ph-hero__side { flex-direction: row; }
    .ph-hero__side .ph-card { flex: 1; }

    .ph-grid-3,
    .ph-grid-feature,
    .ph-also-like__grid {
        grid-template-columns: 1fr;
    }

    .ph-grid-feature__list {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--ph-border);
        padding-top: 1.25rem;
    }

    .ph-content-area { grid-template-columns: 1fr; }

    .ph-sidebar {
        position: static;
        border-top: 1px solid var(--ph-border);
        padding-top: 2rem;
    }

    .ph-footer__grid { grid-template-columns: 1fr; }
    .ph-footer__bottom { flex-direction: column; text-align: center; }

    /* ââ Mobile Nav Toggle: show hamburger âââââââââââââââââ */
    .ph-nav-toggle {
        display: flex !important;
    }

    /* ââ Mobile Navigation: fullscreen overlay âââââââââââââ */
    .ph-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: calc(var(--ph-header-h) + 2rem) 2rem 2rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
        z-index: 499;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .ph-nav.is-open {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .ph-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .ph-nav__list li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .ph-nav__list li:first-child {
        border-top: 1px solid rgba(255,255,255,0.06);
    }

    .ph-nav__list a {
        display: flex;
        align-items: center;
        padding: 1rem 0.5rem;
        width: 100%;
        font-size: 1.125rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        color: rgba(255,255,255,0.85);
        border-radius: 0;
        transition: color 0.25s ease, padding-left 0.25s ease;
    }

    .ph-nav__list a::after {
        display: none;
    }

    .ph-nav__list a:hover,
    .ph-nav__list .current-menu-item > a {
        color: var(--ph-white);
        background: transparent;
        padding-left: 1rem;
    }

    .ph-nav__list .current-menu-item > a {
        color: var(--ph-red);
    }

    .ph-article__title { font-size: 1.75rem; }
}

@media (max-width: 480px) {
    .ph-hero__side { flex-direction: column; }
    .ph-article__byline { flex-wrap: wrap; }
    .ph-article__share { margin-left: 0; width: 100%; justify-content: flex-start; }
    .ph-grid-2 { grid-template-columns: 1fr; }
}


/* =============================================================================
   POLITICAL HEADACHE — COMPREHENSIVE REDESIGN
   Modern digital-native style with red brand accent
   ============================================================================= */

/* --- 0. Updated Custom Properties --- */
:root {
    --ph-wide-max: 1280px;
    --ph-content-max: 1200px;
    --ph-radius: 10px;
    --ph-radius-sm: 6px;
    --ph-shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --ph-shadow-card-hover: 0 8px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    --ph-transition: 0.25s ease;
    --ph-header-h: 64px;
    --ph-ticker-h: 36px;
    --ph-bg: #F7F8FA;
    --ph-surface: #FFFFFF;
    --ph-border: #E5E7EB;
    --ph-border-light: #F0F1F3;
    --ph-sidebar-w: 300px;
}

/* --- Body & Base --- */
body {
    background: var(--ph-bg) !important;
}


/* --- Layout: Contained width --- */
.ph-wrap {
    max-width: var(--ph-wide-max) !important;
    padding-inline: 2rem;
}

/* HEADER — White background with red accent stripe */
.ph-header {
    background: var(--ph-surface) !important;
    box-shadow: none !important;
    border-bottom: none !important;
    position: sticky;
    top: 0;
    z-index: 500;
}

.ph-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ph-red);
    z-index: 501;
}

.ph-header__inner {
    height: var(--ph-header-h);
    border-bottom: 1px solid var(--ph-border);
}

/* --- Logo --- */
.ph-site-title a {
    color: var(--ph-text) !important;
}
.ph-site-title a:hover {
    color: var(--ph-red) !important;
}
.ph-site-title__tagline {
    color: var(--ph-muted) !important;
}

/* --- Desktop Nav Links --- */
.ph-nav__list a {
    color: var(--ph-text) !important;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.5rem 0.875rem;
    border-radius: var(--ph-radius-sm);
    transition: color 0.2s ease, background 0.2s ease;
}
.ph-nav__list a:hover {
    color: var(--ph-red) !important;
    background: rgba(196, 30, 58, 0.06) !important;
}
.ph-nav__list .current-menu-item > a {
    color: var(--ph-red) !important;
    background: rgba(196, 30, 58, 0.08) !important;
}
.ph-nav__list a::after {
    background: var(--ph-red);
    bottom: 4px;
    height: 2px;
    border-radius: 1px;
}
.ph-nav__list .current-menu-item > a::after {
    width: calc(100% - 1.75rem);
    left: 0.875rem;
}

/* --- Search Toggle on light bg --- */
.ph-search-toggle {
    background: var(--ph-bg) !important;
    border: 1px solid var(--ph-border) !important;
    color: var(--ph-text) !important;
}
.ph-search-toggle:hover {
    background: var(--ph-red) !important;
    border-color: var(--ph-red) !important;
    color: #fff !important;
}

/* --- Hamburger on light bg --- */
.ph-nav-toggle {
    color: var(--ph-text) !important;
}

/* BREAKING NEWS TICKER */
.ph-ticker {
    background: var(--ph-text) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ph-ticker__label {
    background: var(--ph-red) !important;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
}

/* HERO SECTION */
.ph-hero {
    padding-block: 2rem;
}

/* CARD COMPONENT — Elevated */
.ph-card {
    background: var(--ph-surface);
    border-radius: var(--ph-radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: var(--ph-shadow-card);
}
.ph-card:hover {
    box-shadow: var(--ph-shadow-card-hover);
    transform: translateY(-2px);
}
.ph-card__image {
    border-radius: 0;
    margin-bottom: 0;
}
.ph-card__body,
.ph-card .ph-kicker,
.ph-card__title:not(.ph-cat-hero__title),
.ph-card__excerpt,
.ph-card__meta {
    padding-inline: 1.25rem;
}
.ph-card .ph-kicker {
    padding-top: 1rem;
}
.ph-card__excerpt {
    font-size: 0.875rem;
    color: var(--ph-text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ph-card__meta {
    padding-bottom: 1.25rem;
    padding-top: 0.5rem;
    margin-bottom: 0;
}
.ph-card--horiz {
    flex-direction: row;
    background: var(--ph-surface);
}
.ph-card--horiz .ph-card__image {
    flex: 0 0 140px;
    border-radius: 0;
}
.ph-card--horiz .ph-card__body {
    padding: 1rem 1.25rem;
}

/* SECTION HEADERS */
.ph-section-header {
    border-bottom: 2px solid var(--ph-border);
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
}
.ph-section-header::after {
    height: 2px;
    bottom: -2px;
    width: 48px;
    background: var(--ph-red);
}
.ph-section-header__title {
    font-size: 0.875rem;
    letter-spacing: 0.12em;
}

/* CATEGORY PAGE — Modern contained editorial */
.ph-cat-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--ph-border);
    position: relative;
}
.ph-cat-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--ph-red);
}
.ph-cat-header__label {
    font-size: 0.6875rem;
    color: var(--ph-red);
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 0.5rem;
}
.ph-cat-header h1 {
    font-size: clamp(2rem, 4.5vw, 2.75rem) !important;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem !important;
}
.ph-cat-header__desc {
    font-size: 1.0625rem;
    max-width: 600px;
    color: var(--ph-text-secondary);
}

/* Hero Card — contained, rounded, elevated */
.ph-cat-hero {
    margin-bottom: 2.5rem;
}
.ph-cat-hero__card {
    border-radius: var(--ph-radius) !important;
    min-height: 400px;
    box-shadow: var(--ph-shadow-card);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.ph-cat-hero__card:hover {
    box-shadow: var(--ph-shadow-card-hover);
}
.ph-cat-hero__body {
    padding: 2.5rem 2rem 2rem !important;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 50%, transparent 100%) !important;
}
.ph-cat-hero__kicker {
    font-size: 0.6875rem !important;
    letter-spacing: 0.14em !important;
    color: #fff !important;
    background: var(--ph-red);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 0.75rem !important;
}
.ph-cat-hero__title {
    font-size: clamp(1.375rem, 3vw, 2rem) !important;
    font-weight: 700;
    line-height: 1.2 !important;
    color: #fff !important;
    margin: 0 0 0.75rem !important;
    letter-spacing: -0.01em;
}
.ph-cat-hero__title a {
    color: inherit !important;
    text-decoration: none !important;
}
.ph-cat-hero__title a:hover {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}
.ph-cat-hero__excerpt {
    font-size: 0.9375rem !important;
    color: rgba(255,255,255,0.88) !important;
    line-height: 1.55 !important;
    max-width: 600px;
}
.ph-cat-hero__meta {
    font-size: 0.75rem !important;
    color: rgba(255,255,255,0.6) !important;
    margin-top: 0.75rem !important;
}
.ph-cat-hero__meta a {
    color: rgba(255,255,255,0.75) !important;
}

/* Category Grid — Cards with white backgrounds */
.ph-cat-grid-wrap {
    margin-bottom: 3rem;
}
.ph-cat-grid {
    gap: 1.75rem;
}
.ph-cat-grid .ph-card {
    background: var(--ph-surface);
    border-radius: var(--ph-radius);
    overflow: hidden;
    box-shadow: var(--ph-shadow-card);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.ph-cat-grid .ph-card:hover {
    box-shadow: var(--ph-shadow-card-hover);
    transform: translateY(-2px);
}
.ph-cat-grid .ph-card__image {
    border-radius: 0;
    margin-bottom: 0;
    aspect-ratio: 16 / 9;
}
.ph-cat-grid .ph-card__body {
    padding: 1.25rem;
}
.ph-cat-grid .ph-card__kicker,
.ph-cat-grid .ph-card .ph-kicker {
    padding-inline: 0;
    padding-top: 0;
}
.ph-cat-grid .ph-card__title {
    padding-inline: 0;
}
.ph-cat-grid .ph-card__excerpt {
    padding-inline: 0;
    font-size: 0.875rem;
    -webkit-line-clamp: 2;
}
.ph-cat-grid .ph-card__meta {
    padding-inline: 0;
    padding-bottom: 0;
}

/* HOMEPAGE CARDS — Elevated */
.ph-hero__main .ph-card {
    border-radius: var(--ph-radius);
    overflow: hidden;
}
.ph-hero__side .ph-card {
    border-radius: var(--ph-radius);
    overflow: hidden;
}
.ph-grid-feature .ph-card {
    border-radius: var(--ph-radius);
    overflow: hidden;
}

/* FOOTER */
.ph-footer {
    background: var(--ph-text) !important;
    border-top: 3px solid var(--ph-red);
}

/* RESPONSIVE — Mobile refinements */
@media (max-width: 768px) {
    .ph-wrap {
        padding-inline: 1.25rem !important;
    }
    .ph-header::before {
        height: 3px;
    }
    .ph-cat-hero__card {
        min-height: 300px;
        border-radius: var(--ph-radius) !important;
    }
    .ph-cat-hero__body {
        padding: 1.5rem 1.25rem 1.25rem !important;
    }
    .ph-cat-hero__title {
        font-size: clamp(1.125rem, 4vw, 1.5rem) !important;
    }
    .ph-cat-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }
    .ph-card {
        border-radius: var(--ph-radius);
    }
    /* Mobile nav stays dark overlay */
    .ph-nav {
        background: rgba(17, 17, 17, 0.98) !important;
    }
    .ph-nav__list a {
        color: rgba(255,255,255,0.85) !important;
    }
    .ph-nav__list .current-menu-item > a {
        color: var(--ph-red) !important;
    }
}

@media (max-width: 480px) {
    .ph-cat-hero__card {
        min-height: 260px;
    }
    .ph-cat-hero__excerpt {
        display: none !important;
    }
}



/* =============================================================================
   SINGLE POST — Contained, readable layout
   ============================================================================= */

/* Content area grid: article + sidebar */
.ph-content-area {
    display: grid !important;
    grid-template-columns: 1fr var(--ph-sidebar-w) !important;
    gap: 3rem;
    max-width: 100% !important;
}

/* Article main area */
.ph-main.post,
article.ph-main {
    min-width: 0;
    max-width: 100%;
}

/* Article header — slightly wider for impact */
.ph-article__header {
    max-width: 720px;
    margin-bottom: 2rem;
}

.ph-article__kicker {
    color: var(--ph-red);
}

.ph-article__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.ph-article__deck {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--ph-text-secondary);
    max-width: 680px;
}

/* Byline bar */
.ph-article__byline {
    max-width: 720px;
    border-top: 1px solid var(--ph-border);
    border-bottom: 1px solid var(--ph-border);
    padding-block: 1rem;
    margin-bottom: 2rem;
}

/* Hero image */
.ph-article__hero-image {
    max-width: 720px;
    border-radius: var(--ph-radius);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.ph-article__hero-image img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
    border-radius: var(--ph-radius);
}

.ph-article__caption {
    max-width: 720px;
}

/* Article body — constrained for readability */
.ph-article__body,
.ph-article__body.entry-content {
    max-width: 720px !important;
    font-family: var(--ph-sans);
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--ph-text);
}

.ph-article__body p {
    margin-bottom: 1.5rem;
}

.ph-article__body h2,
.ph-article__body h3,
.ph-article__body h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.ph-article__body h2 {
    font-size: 1.625rem;
    letter-spacing: -0.01em;
}

.ph-article__body h3 {
    font-size: 1.375rem;
}

.ph-article__body blockquote {
    border-left: 3px solid var(--ph-red);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--ph-text-secondary);
    background: var(--ph-bg);
    border-radius: 0 var(--ph-radius-sm) var(--ph-radius-sm) 0;
}

.ph-article__body img {
    border-radius: var(--ph-radius-sm);
    margin-block: 1.5rem;
}

.ph-article__body a {
    color: var(--ph-red);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(196, 30, 58, 0.3);
    transition: text-decoration-color 0.2s ease;
}

.ph-article__body a:hover {
    text-decoration-color: var(--ph-red);
}

/* Also Read / inline callout boxes */
.ph-article__body .ph-also-read,
.ph-article__body .wp-block-group {
    border-left: 3px solid var(--ph-red);
    padding: 1rem 1.25rem;
    margin: 2rem 0;
    background: var(--ph-bg);
    border-radius: 0 var(--ph-radius-sm) var(--ph-radius-sm) 0;
}

/* Author bio */
.ph-author-bio {
    max-width: 720px;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ph-border);
}

/* Also Like section */
.ph-also-like {
    max-width: 100%;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ph-border);
}

/* Sidebar refinement */
.ph-sidebar {
    position: sticky;
    top: calc(var(--ph-header-h) + 1.5rem);
}

/* Mobile: single column */
@media (max-width: 1024px) {
    .ph-content-area {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .ph-sidebar {
        position: static;
        border-top: 1px solid var(--ph-border);
        padding-top: 2rem;
    }
}

@media (max-width: 768px) {
    .ph-article__header,
    .ph-article__byline,
    .ph-article__hero-image,
    .ph-article__caption,
    .ph-article__body,
    .ph-article__body.entry-content,
    .ph-author-bio {
        max-width: 100% !important;
    }
    
    .ph-article__title {
        font-size: 1.625rem !important;
    }
    
    .ph-article__body,
    .ph-article__body.entry-content {
        font-size: 1rem !important;
        line-height: 1.75;
    }
}

/* =============================================================================
   25. PRINT
   ============================================================================= */

@media print {
    .ph-header, .ph-ticker, .ph-topbar, .ph-footer, .ph-sidebar,
    .ph-also-like, .ph-pagination, .ph-widget-newsletter, .ph-widget-ad {
        display: none !important;
    }
    body { font-size: 12pt; color: #000; }
    a::after { content: " (" attr(href) ")"; font-size: 0.75em; color: #666; }
}
