/* ==========================================================================
   Thraets — Main Stylesheet
   Based on Figma: https://www.figma.com/design/myjDvXpVAaPjy9Z7gdnv9D/Thraets
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Properties (Design Tokens)
-------------------------------------------------------------------------- */
:root {
    --color-ivory:  #EAE8D8;
    --color-red:    #922120;
    --color-red-dk: #CB2A1F;
    --color-black:  #412925;
    --color-sand:   #D8D2C1;
    --color-white:  #FFFFFF;
    --color-peach:  #FCE5C3;
    --color-peach-lt: #F6EFE7;
    --color-moss:   #DBDECB;
    --color-gray-dk: #3D3D3D;
    --color-gray-lt: #CCCCCC;
    --color-input-bg: #EAE8D8;

    --font-heading: 'Koulen', serif;
    --font-body:    'Inter Tight', sans-serif;

    --page-max:    1920px;
    --content-max: 1244px;
    /* Mobile/tablet: Figma 18px gutters. Desktop ≥1280: scale up to 338px at 1920. */
    --page-pad:    18px;
    --container:   var(--content-max);

    --gap-xs:  4px;
    --gap-sm:  12px;
    --gap-md:  20px;
    --gap-lg:  40px;
    --gap-xl:  80px;

    --radius-card: 0px;
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* kill horizontal scroll globally */
}

body {
    background-color: var(--color-ivory);
    color: var(--color-black);
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

.site-main {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

/* --------------------------------------------------------------------------
   Typography
-------------------------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   Layout Helpers
-------------------------------------------------------------------------- */
.container {
    width: min(var(--content-max), calc(100% - var(--page-pad) * 2));
    margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header
-------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-ivory);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
    /* containing block for the dropdown absolute positioning */
    isolation: isolate;
    overflow: visible;
}

.site-header.scrolled {
    border-color: rgba(65,41,37,0.1);
    box-shadow: 0 2px 20px rgba(65,41,37,0.08);
}

.header-inner {
    max-width: var(--page-max);
    margin-inline: auto;
    padding: 28px var(--page-pad);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.header-logo img,
.header-logo .custom-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 30px;
}

/* Donate button */
.btn-donate {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--color-red);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    padding: 12px 16px;
    width: 204px;
    transition: background var(--transition);
}
.btn-donate:hover { background: var(--color-red-dk); }
.btn-donate svg { flex-shrink: 0; }

/* Nav links */
.header-nav {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
}

.header-nav .nav-list {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
}

.header-nav .nav-list li a,
.header-nav .nav-list > a {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    color: var(--color-black);
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity var(--transition);
}
.header-nav .nav-list li a:hover { opacity: 0.7; }

/* Nav dropdown toggle button (Projects) */
.nav-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    color: var(--color-black);
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition);
    white-space: nowrap;
}
.nav-dropdown-toggle:hover { opacity: 0.7; }

/* Fix 2: Active Projects = red */
.nav-item-dropdown.open .nav-dropdown-toggle {
    color: var(--color-red);
}

/* Fix 1: Arrow — stem + bevel arrowhead, same as Figma arrow-down */
.nav-dropdown-toggle .dropdown-arrow {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    color: var(--color-black);
}
.nav-item-dropdown.open .nav-dropdown-toggle .dropdown-arrow {
    /* Fix 1: flip arrow to point up, in red */
    transform: scaleY(-1);
    color: var(--color-red);
}

/* Fix 3: Dropdown is positioned from site-header bottom, not from nav-item */
/* .nav-item-dropdown has NO position:relative — .site-header (sticky) is containing block */
.nav-item-dropdown {
    /* intentionally no position:relative */
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    right: var(--page-pad);
    background: var(--color-ivory);
    padding: 32px 20px 28px;
    width: min(509px, calc(100vw - var(--page-pad) * 2));
    pointer-events: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 200;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.nav-item-dropdown.open .nav-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
}

.dropdown-nav li a {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    color: var(--color-black);
    line-height: 1;
    white-space: nowrap;
    transition: opacity var(--transition);
    display: block;
}
.dropdown-nav li a:hover { opacity: 0.6; }

.nav-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.site-header.search-open .nav-search-btn {
    color: var(--color-red);
}

/* --------------------------------------------------------------------------
   Desktop Search Panel
-------------------------------------------------------------------------- */
.site-search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-sand);
    padding: 50px var(--page-pad) 66px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 150;
}

.site-header.search-open .site-search-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-search-panel-inner {
    max-width: var(--container);
    margin-inline: auto;
}

.site-search-form {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: var(--content-max);
    min-height: 44px;
}

.site-search-input-wrap {
    flex: 1;
    background: var(--color-input-bg);
    display: flex;
    align-items: center;
    padding: 12px 16px;
}

.site-search-input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    color: var(--color-black);
    line-height: 1;
    outline: none;
}

.site-search-input::placeholder {
    opacity: 0.5;
}

.site-search-submit {
    width: 204px;
    flex-shrink: 0;
    font-size: 20px;
    gap: 8px;
}

.site-search-submit svg {
    width: 20px;
    height: 20px;
}

/* --------------------------------------------------------------------------
   Search Results Page
-------------------------------------------------------------------------- */
.search-page {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-results {
    width: 100%;
    padding: 16px var(--page-pad) 100px;
}

.search-results--empty {
    padding-top: 20px;
}

.search-results-header--empty {
    gap: 12px;
}

.search-results-header--empty .search-results-empty-message {
    max-width: none;
}

.search-results-inner {
    max-width: var(--container);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.search-results-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: var(--content-max);
}

.search-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.search-breadcrumbs a { transition: color var(--transition); }
.search-breadcrumbs a:hover { color: var(--color-red); }

.search-breadcrumbs .breadcrumb-current {
    color: var(--color-red);
}

.search-results-title {
    font-size: 80px;
    letter-spacing: -1.6px;
    line-height: 1;
    text-transform: lowercase;
}

.search-results-empty-message {
    font-size: 20px;
    line-height: 1.4;
    max-width: 391px;
}

.search-cards-grid {
    max-width: var(--content-max);
}

.search-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    max-width: var(--content-max);
    width: 100%;
}

.search-empty-image {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
}

.search-empty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-empty-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 36px;
    letter-spacing: -0.72px;
    line-height: 1;
    padding: 8px 16px;
    white-space: nowrap;
    pointer-events: none;
}

.search-empty-btn {
    text-decoration: none;
    width: 204px;
}

body.search .nav-search-btn {
    color: var(--color-red);
}

@media (max-width: 1280px) {
    .search-results-title { font-size: 60px; }
}

@media (max-width: 768px) {
    .site-search-panel {
        padding: 20px 18px 40px;
    }

    .site-search-form {
        max-width: 100%;
        min-height: 40px;
    }

    .site-search-input-wrap {
        padding: 12px;
    }

    .site-search-input {
        font-size: 16px;
    }

    .site-search-submit {
        width: 120px;
        font-size: 16px;
        gap: 4px;
    }

    .site-search-submit svg {
        width: 16px;
        height: 16px;
    }

    .search-results {
        padding: 12px 18px 80px;
    }

    .search-results--empty {
        padding-top: 12px;
    }

    .search-results-header--empty {
        gap: 8px;
    }

    .search-breadcrumbs {
        font-size: 12px;
        gap: 4px;
        flex-wrap: wrap;
    }

    .search-results-title {
        font-size: 36px;
        letter-spacing: -1.44px;
    }

    .search-results-empty-message {
        font-size: 16px;
        max-width: 100%;
    }

    .search-empty {
        gap: 20px;
    }

    .search-empty-image {
        height: 146px;
    }

    .search-empty-badge {
        font-size: 24px;
        letter-spacing: -0.48px;
        padding: 6px 12px;
    }

    .search-empty-btn {
        width: 100%;
        font-size: 16px;
        padding: 12px;
        gap: 8px;
    }

    .search-empty-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* --------------------------------------------------------------------------
   Mobile Menu Toggle Button (hamburger — shown only on mobile)
-------------------------------------------------------------------------- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    align-self: center;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Mobile Menu — full-screen overlay, Sand bg (#D8D2C1) per Figma
-------------------------------------------------------------------------- */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--color-sand);   /* Sand, NOT ivory */
    z-index: 300;
    flex-direction: column;
}
.mobile-menu.open { display: flex; }

/* Menu header: logo 50px + X close icon, px-18 py-20 */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 18px;
    flex-shrink: 0;
}

.mobile-menu-logo img,
.mobile-menu-logo .custom-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

/* Menu body: flex-col, justify-between, px-18 py-20, flex-1 */
.mobile-menu-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 18px;
    overflow-y: auto;
}

.mobile-menu-top {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Search bar: input(flex-1 ivory) + Search btn(red 120px) */
.mobile-search {
    display: flex;
    height: 40px;
}

.mobile-search-input {
    flex: 1;
    background: var(--color-ivory);
    display: flex;
    align-items: center;
    padding: 12px;
    min-width: 0;
}

.mobile-search-input input {
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-black);
    width: 100%;
    line-height: 1;
}
.mobile-search-input input::placeholder { opacity: 0.5; }

.btn-search {
    background: var(--color-red);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    padding: 12px;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
    transition: background var(--transition);
}
.btn-search:hover { background: var(--color-red-dk); }

/* Nav links: gap-24px, no borders per Figma */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav > a {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    color: var(--color-black);
    display: block;
    transition: opacity var(--transition);
}
.mobile-nav > a:hover { opacity: 0.6; }

/* Mobile Projects dropdown */
.mobile-nav-dropdown {
    display: flex;
    flex-direction: column;
}

.mobile-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-black);
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    text-align: left;
    transition: color var(--transition);
}

/* Projects = red when open, same as Figma */
.mobile-nav-dropdown.open .mobile-dropdown-toggle {
    color: var(--color-red);
}

.mobile-dropdown-toggle .dropdown-arrow {
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}
/* Arrow flips up and turns red when open */
.mobile-nav-dropdown.open .mobile-dropdown-toggle .dropdown-arrow {
    transform: scaleY(-1);
    color: var(--color-red);
}

/* Submenu: red left border + 12px padding, gap-16px, full width — per Figma */
.mobile-submenu {
    display: none;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    padding-left: 12px;
    border-left: 1px solid var(--color-red);
    width: 100%;
}
.mobile-nav-dropdown.open .mobile-submenu { display: flex; }

.mobile-submenu a {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-black);
    line-height: 1;
    /* text wraps — no white-space: nowrap per Figma */
    word-break: break-word;
    display: block;
    transition: opacity var(--transition);
}
.mobile-submenu a:hover { opacity: 0.6; }

/* Donate at bottom of menu */
.btn-donate-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-red);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    padding: 12px;
    width: 100%;
    transition: background var(--transition);
}
.btn-donate-mobile:hover { background: var(--color-red-dk); }

/* --------------------------------------------------------------------------
   Hero Section
-------------------------------------------------------------------------- */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image {
    width: 100%;
    height: 992px;
    overflow: hidden;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 108.87%;
    object-fit: cover;
    object-position: center top;
    position: absolute;
    top: -0.5%;
    left: 0;
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
    margin-top: -120px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-content {
    background: var(--color-ivory);
    width: min(var(--content-max), calc(100% - var(--page-pad) * 2));
    padding: var(--gap-lg);
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
    overflow: hidden;
}

.hero-text-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: 80px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -1.6px;
    color: var(--color-black);
    flex: 1 1 0;
    min-width: 0;
    max-width: 700px;
}

.hero-description {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.4;
    color: var(--color-black);
    flex: 0 1 372px;
    min-width: 0;
    max-width: 372px;
}

/* Supported by — desktop */
.hero-supporters {
    display: flex;
    align-items: center;
    gap: var(--gap-xl);
    width: 100%;
}

.supporters-label {
    font-family: var(--font-heading);
    font-size: 36px;
    letter-spacing: -0.72px;
    color: var(--color-black);
    opacity: 0.4;
    white-space: nowrap;
    flex-shrink: 0;
}

.supporters-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

/* Desktop logo sizes per Figma (order: Africa | Luminate | DDI | GIZ | CIPESA) */
.supporter-logo {
    opacity: 0.4;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

.supporter-logo-africa   { width: 67px;  height: 50px; object-position: bottom; }
.supporter-logo-luminate { width: 149px; height: 26px; }
.supporter-logo-ddi      { width: 116px; height: 46px; }
.supporter-logo-giz      { width: 44px;  height: 36px; }
.supporter-logo-cipesa   { width: 34px;  height: 48px; }

/* Divider: 1px Sand (#D8D2C1) vertical line between logos */
.supporters-divider {
    flex-shrink: 0;
    width: 1px;
    height: 20px;
    background: #D8D2C1;
    align-self: center;
}

/* --------------------------------------------------------------------------
   Category Cards Grid
-------------------------------------------------------------------------- */
.category-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap-xs);
    padding: 60px var(--page-pad) 100px;
    max-width: var(--page-max);
    margin-inline: auto;
    width: 100%;
}

.category-card {
    position: relative;
    height: 360px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card.card-wide {
    grid-column: 1 / -1;
    height: 700px;
}

.card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.category-card:hover .card-img {
    transform: scale(1.03);
}

.card-label-link {
    position: relative;
    z-index: 2;
    display: block;
}

.card-label {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.72px;
    padding: 4px 8px;
    text-align: center;
    /* no max-width — line breaks handled via <br> per Figma design */
    transition: opacity var(--transition);
}

.category-card:hover .card-label { opacity: 0.85; }

/* --------------------------------------------------------------------------
   Inner Pages — Content
-------------------------------------------------------------------------- */
.page-content {
    padding: 60px 0 100px;
}

.single-header {
    margin-bottom: 40px;
}

.single-title {
    font-family: var(--font-heading);
    font-size: 64px;
    letter-spacing: -1.28px;
    color: var(--color-black);
    line-height: 1;
    margin-bottom: 16px;
}

.single-meta {
    font-size: 18px;
    opacity: 0.6;
}

.single-thumbnail {
    margin-bottom: 40px;
    overflow: hidden;
}

.single-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.single-content {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.6;
    color: var(--color-black);
    max-width: 800px;
}

.single-content p { margin-bottom: 20px; }
.single-content h2 { font-size: 48px; margin: 40px 0 20px; letter-spacing: -0.96px; }
.single-content h3 { font-size: 36px; margin: 32px 0 16px; letter-spacing: -0.72px; }
.single-content a { text-decoration: underline; }

/* Post Cards (index) */
.post-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    padding-bottom: 60px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(65,41,37,0.2);
}

.post-thumbnail img {
    width: 400px;
    height: 260px;
    object-fit: cover;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 48px;
    letter-spacing: -0.96px;
    line-height: 1;
    margin-bottom: 20px;
}

.post-title a:hover { opacity: 0.75; }

.post-excerpt {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 18px;
    color: var(--color-red);
    transition: opacity var(--transition);
}
.btn-read-more:hover { opacity: 0.75; }

/* --------------------------------------------------------------------------
   Footer
-------------------------------------------------------------------------- */
.site-footer {
    background: var(--color-sand);
    color: var(--color-black);
}

.footer-inner {
    max-width: var(--page-max);
    margin-inline: auto;
    padding: var(--gap-xl) var(--page-pad) 20px;
    display: flex;
    flex-direction: column;
    gap: var(--gap-xl);
}

/* Newsletter */
.footer-subscribe {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
    max-width: 604px;
}

.footer-subscribe-text h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    letter-spacing: -0.96px;
    color: var(--color-black);
    margin-bottom: 12px;
}

.footer-subscribe-text p {
    font-size: 20px;
    line-height: 1.4;
}

.subscribe-input-wrap {
    display: flex;
    width: 100%;
    max-width: 604px;
}

.subscribe-email {
    flex: 1;
    background: var(--color-input-bg);
    border: none;
    outline: none;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    color: var(--color-black);
    line-height: 1;
}
.subscribe-email::placeholder { opacity: 0.5; }

.btn-subscribe {
    background: var(--color-red);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 204px;
    transition: background var(--transition);
}
.btn-subscribe:hover { background: var(--color-red-dk); }

.subscribe-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.subscribe-notice {
    font-size: 16px;
    line-height: 1.4;
    padding: 12px 16px;
    max-width: 604px;
}

.subscribe-notice--success {
    background: var(--color-white);
    color: var(--color-black);
}

.subscribe-notice--info {
    background: var(--color-peach-lt);
    color: var(--color-black);
}

.subscribe-notice--error {
    background: #f6e8e8;
    color: var(--color-red);
}

.footer-divider {
    height: 1px;
    background: var(--color-black);
    opacity: 0.2;
    width: 100%;
}

/* Info columns */
.footer-info {
    display: flex;
    gap: var(--gap-xs);
    width: 100%;
}

.footer-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-xl);
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 32px;
    letter-spacing: -0.64px;
    margin-bottom: 16px;
}

.footer-section p {
    font-size: 18px;
    line-height: 1.4;
    max-width: 480px;
    margin-bottom: 8px;
}

.footer-section p span { font-weight: 500; }
.footer-section a { text-decoration: underline; }
.footer-section a:hover { opacity: 0.75; }

/* Bottom row */
.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition);
}
.social-icon:hover { opacity: 0.8; }

.footer-copyright {
    font-size: 18px;
    line-height: 1.4;
    max-width: 620px;
}

/* --------------------------------------------------------------------------
   Responsive — 1280px (fluid desktop gutters + large tablet)
-------------------------------------------------------------------------- */
@media (min-width: 1280px) {
    :root {
        --page-pad: clamp(18px, calc((100vw - var(--content-max)) / 2), 338px);
    }
}

@media (max-width: 1280px) {
    .header-nav,
    .header-nav .nav-list {
        gap: 24px;
    }

    /* Title + description stay side by side until 900px */
    .hero-heading     { font-size: 60px; }
    .hero-description { max-width: 300px; flex-basis: 300px; }

    .supporters-logos { flex-wrap: wrap; }

    .footer-subscribe { max-width: 100%; }

    .nav-dropdown { right: var(--page-pad); }
}

@media (max-width: 1024px) {
    .header-inner {
        align-items: center;
    }

    .header-right       { display: none; }
    .mobile-menu-toggle { display: flex; }
    .nav-dropdown       { display: none !important; }

    /* Content blocks: side gutters via padding, inner fills available width */
    .project-hero,
    .about-hero,
    .article-page,
    .member-page {
        padding-inline: var(--page-pad);
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    .project-hero-inner,
    .about-hero-block,
    .article-layout {
        width: 100%;
        max-width: 100%;
    }

    .hero-content-wrap {
        padding-inline: var(--page-pad);
        box-sizing: border-box;
        margin-top: 24px;
    }

    .hero-image {
        height: 200px;
        overflow: hidden;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .supporters-logos {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .post-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .post-thumbnail img {
        width: 100%;
        height: 280px;
    }
}

@media (max-width: 900px) {
    /* Below 900px — title and description stack vertically */
    .hero-text-row    { flex-direction: column; }
    .hero-heading     { font-size: 52px; max-width: 100%; flex: none; }
    .hero-description { max-width: 100%; flex: none; }

    .footer-info {
        flex-direction: column;
        gap: 40px;
    }
}

/* --------------------------------------------------------------------------
   Responsive — 768px mobile breakpoint
   All values exact from Figma 360px design.
   The layout fills the full viewport width from 360px to 768px.
-------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Prevent any child from pushing the viewport wider */
    html, body { overflow-x: hidden; }

    body { font-size: 16px; }

    /* ── All top-level sections: never wider than 100% ── */
    .site-header,
    .site-main,
    .site-footer,
    .hero,
    .category-cards,
    .footer-inner,
    .header-inner,
    .about-hero,
    .about-team,
    .search-results,
    .project-page,
    .article-page,
    .project-hero,
    .ongoing-projects {
        max-width: 100%;
        width: 100%;
    }

    .project-title,
    .article-title,
    .about-title,
    .search-results-title {
        overflow-wrap: anywhere;
    }

    /* ── Header (mobile menu also active ≤1024px) ── */
    .header-inner {
        padding: 20px 18px;
    }
    .header-logo img,
    .header-logo .custom-logo {
        width: 50px;
        height: 50px;
    }

    /* Hide desktop dropdown on mobile */
    .nav-dropdown { display: none !important; }

    /* ── Hero ── */
    .hero { overflow: hidden; }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 16px 12px;
        gap: 40px;
    }
    .hero-heading {
        font-size: 36px;
        letter-spacing: -1.44px;
        max-width: 100%;
    }

    .hero-text-row {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }

    /* Description: 16px Inter Tight */
    .hero-description { font-size: 16px; max-width: 100%; flex: none; }

    /* Supported by: 24px Koulen, column layout, logos in single row */
    .supporters-label  { font-size: 24px; letter-spacing: -0.48px; }
    .hero-supporters   { flex-direction: column; align-items: flex-start; gap: 16px; }

    /* Logos row: single line, gap 8px — per Figma 360px */
    .supporters-logos  {
        gap: 8px;
        flex-wrap: nowrap;     /* single row, no wrapping */
        align-items: center;
        overflow: visible;
    }

    /* Mobile logo exact sizes from Figma 360px (order: Africa | Luminate | DDI | GIZ | CIPESA) */
    .supporter-logo-africa   { width: 40px; height: 30px; }
    .supporter-logo-luminate { width: 80px; height: 14px; }
    .supporter-logo-ddi      { width: 60px; height: 24px; }
    .supporter-logo-giz      { width: 22px; height: 18px; }
    .supporter-logo-cipesa   { width: 20px; height: 28px; }

    /* Divider: 12px tall on mobile */
    .supporters-divider { height: 12px; width: 1px; }

    /* ── Category cards: single column, 188px tall, 18px side gutters ── */
    .category-cards {
        grid-template-columns: 1fr;
        gap: var(--gap-xs);
        padding: 40px 18px;
        max-width: 100%;
    }
    .category-card,
    .category-card.card-wide {
        grid-column: auto;
        width: 100%;
        max-width: 100%;
        height: 188px;
    }

    /* Card label: 24px Koulen, tracking -0.48px (Figma XS/H3) */
    .card-label { font-size: 24px; letter-spacing: -0.48px; }

    /* ── Footer ── */
    .site-footer       { max-width: 100%; }
    .footer-inner      { padding: 40px 18px 20px; gap: 40px; max-width: 100%; }

    /* Newsletter */
    .footer-subscribe         { max-width: 100%; gap: 20px; }
    .footer-subscribe-text h2 { font-size: 32px; letter-spacing: -0.64px; }
    .footer-subscribe-text p  { font-size: 16px; }
    .subscribe-input-wrap     { width: 100%; flex-direction: row; max-width: 100%; }
    .subscribe-email          { flex: 1; min-width: 0; font-size: 16px; padding: 12px; }
    .btn-subscribe            { width: 120px; flex-shrink: 0; font-size: 16px; padding: 12px; }

    /* Info columns: stack vertically, 20px headings, 14px body */
    .footer-info              { flex-direction: column; gap: 30px; }
    .footer-col               { gap: 30px; }
    .footer-section h4        { font-size: 20px; letter-spacing: -0.4px; margin-bottom: 12px; }
    .footer-section p         { font-size: 14px; max-width: 100%; }

    /* Bottom row */
    .footer-bottom            { gap: 20px; }
    .footer-bottom-row        { flex-direction: column; align-items: flex-start; gap: 30px; }
    .footer-copyright         { font-size: 14px; width: 100%; }

    /* ── Inner pages ── */
    .post-card         { grid-template-columns: 1fr; }
    .post-thumbnail img { width: 100%; height: 220px; }
    .post-title        { font-size: 32px; }
    .single-title      { font-size: 36px; }
    .page-content      { padding: 40px 0 60px; }
}

/* --------------------------------------------------------------------------
   Project Page
-------------------------------------------------------------------------- */
.project-page {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-hero {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 0;
}

.project-hero-inner {
    width: min(var(--content-max), calc(100% - var(--page-pad) * 2));
    background: var(--color-white);
    padding: 16px 16px 120px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-hero-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.project-breadcrumbs a {
    transition: color var(--transition);
}

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

.breadcrumb-current { color: var(--color-red); }

.project-title {
    font-size: 80px;
    letter-spacing: -1.6px;
    line-height: 1;
    max-width: 100%;
}

.project-hero-image {
    width: 100%;
    aspect-ratio: 620 / 360;
    overflow: hidden;
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-intro {
    display: flex;
    gap: 60px;
    max-width: 970px;
}

.project-intro-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-intro-heading {
    font-size: 32px;
    letter-spacing: -0.64px;
    line-height: 1;
}

.project-intro-text {
    font-size: 20px;
    line-height: 1.4;
}

.project-intro-text p + p { margin-top: 16px; }

.ongoing-projects {
    width: 100%;
    padding: 100px var(--page-pad);
}

.ongoing-projects-inner {
    max-width: var(--container);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.ongoing-projects-title {
    font-size: 48px;
    letter-spacing: -0.96px;
    line-height: 1;
}

.project-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 12px;
}

.project-card {
    width: 100%;
    min-width: 0;
    min-height: 646px;
    background: var(--color-white);
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-card-image {
    height: 450px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    padding: 8px;
}

.project-card-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--color-black);
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 24px;
    letter-spacing: -0.48px;
    line-height: 1;
}

.project-card-title a {
    color: inherit;
    transition: color var(--transition);
}

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

.project-card-image-link {
    display: block;
    width: 100%;
    color: inherit;
}

.project-card-subtitle {
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.32px;
}

.project-card-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    width: fit-content;
    transition: color var(--transition);
}

.project-card-link:hover { color: var(--color-red); }

.project-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    padding: 12px 4px;
    border: 1px solid var(--color-black);
    background: transparent;
    color: var(--color-black);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    transition: background var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
}

.pagination-item:hover:not(.is-active):not(.is-disabled):not(.pagination-ellipsis) {
    background: rgba(65, 41, 37, 0.06);
}

.pagination-item.is-active {
    background: var(--color-red);
    border-color: var(--color-red);
    color: var(--color-white);
    pointer-events: none;
}

.pagination-item.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pagination-arrow img,
.pagination-arrow svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
    transform: rotate(180deg);
}

.pagination-arrow-next img,
.pagination-arrow-next svg { transform: rotate(0deg); }

.pagination-ellipsis {
    border: none;
    background: transparent;
    pointer-events: none;
}

body.page-template-page-project .nav-item-dropdown.open .nav-dropdown-toggle,
body.page-template-page-project .mobile-nav-dropdown.open .mobile-dropdown-toggle {
    color: var(--color-red);
}

@media (max-width: 1280px) {
    .project-title { font-size: 60px; }
    .project-cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .project-intro { flex-direction: column; max-width: 100%; }
    .project-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-card { min-height: auto; }
    .project-card-image { height: 320px; }
}

@media (max-width: 768px) {
    .project-hero-inner {
        width: 100%;
        padding: 12px 12px 80px;
        gap: 24px;
    }

    .project-breadcrumbs { font-size: 12px; gap: 8px; }
    .breadcrumb-sep { font-size: 12px; }

    .project-title {
        font-size: 36px;
        letter-spacing: -1.44px;
    }

    .project-hero-image { aspect-ratio: 300 / 175; }

    .project-intro { gap: 30px; }

    .project-intro-heading {
        font-size: 20px;
        letter-spacing: -0.4px;
    }

    .project-intro-text { font-size: 16px; }

    .ongoing-projects { padding: 80px 18px; }

    .ongoing-projects-title {
        font-size: 32px;
        letter-spacing: -0.64px;
    }

    .project-cards-grid {
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-card { min-height: auto; }

    .project-card-image { height: 230px; }

    .project-card-title { font-size: 18px; }

    .project-card-subtitle { font-size: 12px; }

    .project-card-link { font-size: 12px; gap: 8px; }

    .project-pagination {
        flex-wrap: wrap;
        max-width: 100%;
    }

    .pagination-item {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .pagination-arrow img,
    .pagination-arrow svg {
        width: 14px;
        height: 14px;
    }
}

body.page-template-page-about .header-nav .nav-list > li:first-child > a,
body.page-template-page-about .mobile-nav > a:first-child,
body.single-thraets_team_member .header-nav .nav-list > li:first-child > a,
body.single-thraets_team_member .mobile-nav > a:first-child {
    color: var(--color-red);
}

/* --------------------------------------------------------------------------
   About Page
-------------------------------------------------------------------------- */
.about-page {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-hero {
    width: 100%;
    display: flex;
    justify-content: center;
}

.about-hero-block {
    width: min(var(--content-max), calc(100% - var(--page-pad) * 2));
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-hero-inner {
    background: var(--color-white);
    padding: 16px 16px 120px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-hero-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.about-breadcrumbs a { transition: color var(--transition); }
.about-breadcrumbs a:hover { color: var(--color-red); }

.about-title {
    font-size: 80px;
    letter-spacing: -1.6px;
    line-height: 1;
}

.about-hero-image {
    width: 100%;
    aspect-ratio: 1940 / 806;
    overflow: hidden;
}

.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-intro {
    max-width: 970px;
    font-size: 20px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-pillars {
    display: flex;
    gap: 4px;
    width: 100%;
}

.about-pillar {
    flex: 1;
    min-width: 0;
    background: var(--color-white);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    min-height: 249px;
}

.about-pillar-title {
    font-size: 32px;
    letter-spacing: -0.64px;
    line-height: 1;
}

.about-pillar-text {
    font-size: 18px;
    line-height: 1.4;
    max-width: 340px;
}

.about-team {
    width: 100%;
    padding: 100px var(--page-pad);
}

.about-team-inner {
    max-width: var(--container);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-team-title {
    font-size: 48px;
    letter-spacing: -0.96px;
    line-height: 1;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 4px;
}

.team-card {
    width: 100%;
    min-width: 0;
    background: var(--color-white);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-card-image {
    height: 450px;
    overflow: hidden;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-body {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 4px;
}

.team-card-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-card-name {
    font-family: var(--font-heading);
    font-size: 24px;
    letter-spacing: -0.48px;
    line-height: 1;
}

.team-card-role {
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.32px;
}

.team-card-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    width: fit-content;
    transition: color var(--transition);
}

.team-card-link:hover { color: var(--color-red); }

.team-card-image-link {
    display: block;
    width: 100%;
    color: inherit;
}

.team-card-name a {
    color: inherit;
    transition: color var(--transition);
}

.team-card-name a:hover { color: var(--color-red); }

.member-hero-image {
    aspect-ratio: 4 / 5;
}

@media (max-width: 768px) {
    .member-hero-image {
        aspect-ratio: 300 / 375;
    }
}

@media (max-width: 1280px) {
    .about-title { font-size: 60px; }
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-pillar-text { max-width: 100%; }
}

@media (max-width: 900px) {
    .about-pillars { flex-direction: column; }
    .about-pillar { min-height: auto; gap: 32px; }
}

@media (max-width: 768px) {
    .about-hero-inner {
        padding: 12px 12px 80px;
        gap: 24px;
    }

    .about-breadcrumbs { font-size: 12px; gap: 8px; }

    .about-title {
        font-size: 36px;
        letter-spacing: -1.44px;
    }

    .about-hero-image { aspect-ratio: 300 / 125; }

    .about-intro { font-size: 16px; max-width: 100%; }

    .about-pillars {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }

    .about-pillar:nth-child(3) {
        grid-column: 1 / -1;
    }

    .about-pillar {
        gap: 24px;
        padding: 12px;
        min-width: 0;
    }

    .about-pillar-title {
        font-size: 20px;
        letter-spacing: -0.4px;
    }

    .about-pillar-text { font-size: 14px; max-width: 100%; }

    .about-team { padding: 80px 18px; }

    .about-team-title {
        font-size: 32px;
        letter-spacing: -0.64px;
    }

    .team-grid {
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-card-image { height: 170px; }

    .team-card-body { gap: 16px; }

    .team-card-name { font-size: 18px; }

    .team-card-role { font-size: 12px; }

    .team-card-link { font-size: 12px; gap: 8px; }
}

/* --------------------------------------------------------------------------
   Article Page (single investigation)
-------------------------------------------------------------------------- */
.article-page {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-layout {
    width: min(var(--content-max), calc(100% - var(--page-pad) * 2));
    margin-inline: auto;
    padding-bottom: 100px;
    display: grid;
    grid-template-columns: minmax(0, 820px) minmax(0, 412px);
    column-gap: 12px;
    row-gap: 80px;
    align-items: start;
}

.article-hero-block {
    grid-column: 1;
    grid-row: 1;
    background: var(--color-white);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.article-breadcrumbs a { transition: color var(--transition); }
.article-breadcrumbs a:hover { color: var(--color-red); }

.article-breadcrumbs .breadcrumb-current { color: var(--color-red); }

.article-title {
    font-size: 80px;
    letter-spacing: -1.6px;
    line-height: 1;
    max-width: 100%;
    word-break: break-word;
}

.article-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.32px;
}

.article-byline-sep { opacity: 0.6; }

.article-hero-image {
    width: 100%;
    aspect-ratio: 788 / 1190;
    overflow: hidden;
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-sidebar {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 24px;
}

.article-recent {
    background: var(--color-white);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.article-recent-title {
    font-size: 32px;
    letter-spacing: -0.64px;
    line-height: 1;
}

.article-recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-recent-divider {
    height: 1px;
    background: var(--color-sand);
    width: 100%;
}

.article-recent-card-link {
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: var(--color-black);
    transition: color var(--transition);
}

.article-recent-card-link:hover { color: var(--color-red); }

.article-recent-card-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-recent-card-title {
    font-family: var(--font-heading);
    font-size: 24px;
    letter-spacing: -0.48px;
    line-height: 1;
}

.article-recent-card-excerpt {
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.32px;
}

.article-recent-card-date {
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.32px;
}

.article-share {
    display: flex;
    gap: 4px;
    align-items: center;
}

.article-share-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: opacity var(--transition);
}

.article-share-icon:hover { opacity: 0.75; }

.article-body {
    grid-column: 1;
    grid-row: 2;
}

.article-body-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.article-lead-headline {
    font-size: 48px;
    letter-spacing: -0.96px;
    line-height: 1;
    max-width: 100%;
}

.article-content {
    font-size: 20px;
    line-height: 1.4;
    color: var(--color-black);
}

.article-content p + p { margin-top: 16px; }

.article-content h2,
.article-content h3 {
    font-family: var(--font-heading);
    line-height: 1;
    margin-top: 30px;
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 32px;
    letter-spacing: -0.64px;
}

.article-content h3 {
    font-size: 24px;
    letter-spacing: -0.48px;
}

.article-content a { text-decoration: underline; }

.article-content img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content figure {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 30px 0;
}

.article-content figcaption {
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.32px;
}

@media (max-width: 1280px) {
    .article-title { font-size: 60px; }

    .article-layout {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    }
}

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }

    .article-hero-block {
        grid-column: 1;
        grid-row: 1;
    }

    .article-body {
        grid-column: 1;
        grid-row: 2;
    }

    .article-sidebar {
        grid-column: 1;
        grid-row: 3;
        position: static;
    }
}

@media (max-width: 768px) {
    .article-layout {
        width: 100%;
        padding-bottom: 80px;
        row-gap: 40px;
    }

    .article-hero-block {
        width: 100%;
        padding: 12px;
        gap: 16px;
    }

    .article-breadcrumbs {
        font-size: 12px;
        gap: 8px;
    }

    .article-title {
        font-size: 36px;
        letter-spacing: -1.44px;
    }

    .article-byline {
        font-size: 12px;
        gap: 8px;
    }

    .article-hero-image {
        aspect-ratio: 300 / 452;
    }

    .article-recent { gap: 24px; }

    .article-recent-title {
        font-size: 20px;
        letter-spacing: -0.4px;
    }

    .article-recent-card-title { font-size: 18px; }

    .article-recent-card-excerpt,
    .article-recent-card-date { font-size: 12px; }

    .article-recent-card-link { gap: 16px; }

    .article-sidebar {
        flex-direction: column;
    }

    .article-share { order: -1; }

    .article-body-inner { max-width: 100%; }

    .article-lead-headline {
        font-size: 32px;
        letter-spacing: -0.64px;
    }

    .article-content {
        font-size: 16px;
    }

    .article-content h2 { font-size: 20px; }
}

/* --------------------------------------------------------------------------
   Accessibility
-------------------------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--color-red);
    outline-offset: 2px;
}

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