/*
 Theme Name:   LFF Redesign
 Theme URI:    https://leftfootforward.org
 Description:  Astra child theme for Left Foot Forward site redesign mockups
 Author:       Steve
 Template:     astra
 Version:      0.1.0
 Text Domain:  lff
*/

/* ==========================================================================
   LFF Design Tokens
   ========================================================================== */

:root {
    /* Brand colours */
    --lff-purple: #5B2D8E;
    --lff-purple-dark: #3D1E5F;
    --lff-purple-light: #7B4DB0;

    /* Functional colours */
    --lff-accent: var(--lff-purple);
    --lff-text: #1a1a1a;
    --lff-text-secondary: #555;
    --lff-bg: #fff;
    --lff-bg-alt: #f5f5f5;
    --lff-border: #e0e0e0;
    --lff-link: var(--lff-purple);
    --lff-link-hover: var(--lff-purple-dark);

    /* Category colours */
    --lff-cat-news: #1a73e8;
    --lff-cat-opinion: #e8601a;
    --lff-cat-rww: #c62828;
    --lff-cat-reform: #6a1b9a;
    --lff-cat-columnists: #2e7d32;

    /* Typography */
    --lff-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --lff-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --lff-space-xs: 0.25rem;
    --lff-space-sm: 0.5rem;
    --lff-space-md: 1rem;
    --lff-space-lg: 1.5rem;
    --lff-space-xl: 2rem;
    --lff-space-2xl: 3rem;
    --lff-space-3xl: 4rem;

    /* Layout */
    --lff-max-width: 1200px;
    --lff-sidebar-width: 300px;
}

/* ==========================================================================
   Astra Overrides — ensure our templates get full width
   ========================================================================== */

/* Override Astra's .ast-container which has max-width but no auto margin */
.site-content > .ast-container {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    display: block;
}

/* White background everywhere — override Astra's grey (#F0F5FA) on archives */
body {
    background-color: #fff !important;
}

/* Override Astra's ast-narrow-container (750px) on single posts using our templates */
.ast-narrow-container .site-content > .ast-container {
    max-width: 100%;
}

/* ==========================================================================
   Default page containment — restores sane width for standard pages
   that don't use our custom full-width templates (V1, donate, newsletter).
   Without this, the .ast-container override above causes text/content
   to stretch edge-to-edge on About, Privacy, Complaints, etc.
   ========================================================================== */

/* Text-heavy pages: constrain to comfortable reading width */
body.page:not(.page-template) .entry-content,
body.page-template-default .entry-content {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* WooCommerce pages: wider container for cart table / checkout columns */
body.woocommerce-page.page-template-default .entry-content {
    max-width: 1200px;
}

/* Page titles — match archive header style (bold title + bottom rule)
   Archives use .lff-av1-header which sits outside Astra's article wrapper.
   Standard pages have: article.ast-article-single (padding: 3em) >
   header.entry-header (margin-top: 2em) > h1.entry-title.
   We need to remove all that inherited spacing so the title sits tight
   against the nav, exactly like the archive headers. */

/* Collapse empty featured image area on pages without a thumbnail */
body.page .ast-no-thumbnail .post-thumb-img-content {
    display: none;
}

/* Strip all Astra spacing above the title so it sits tight to the nav,
   exactly like the archive .lff-av1-header does. The chain is:
   .ast-container > #primary > main > article > header > h1
   Astra sets #primary { margin-top: 60px } at desktop breakpoints. */
body.page-template-default #primary,
body.page:not(.page-template) #primary {
    margin-top: 0 !important;
}

body.page-template-default .ast-article-single,
body.page:not(.page-template) .ast-article-single {
    padding: 0 !important;
    margin: 0 !important;
}

body.page-template-default header.entry-header,
body.page:not(.page-template) header.entry-header {
    margin: 0 auto !important;
    padding: var(--lff-space-xl) var(--lff-space-lg) var(--lff-space-lg) !important;
    border-bottom: 2px solid var(--lff-text);
    max-width: var(--lff-max-width);
}

body.page-template-default .entry-title,
body.page:not(.page-template) .entry-title {
    font-family: var(--lff-font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--lff-text);
    line-height: 1.1;
    margin: 0 !important;
    padding: 0;
}

/* Restore padding for the content area below the title */
body.page-template-default .entry-content,
body.page:not(.page-template) .entry-content {
    padding-top: var(--lff-space-2xl);
}

/* ==========================================================================
   "No Header" page template — hides Astra title, uses 1200px max-width.
   ========================================================================== */
body.page-template-page-no-header #primary {
    margin-top: 0 !important;
}

body.page-template-page-no-header .ast-article-single {
    padding: 0 !important;
    margin: 0 !important;
}

body.page-template-page-no-header .entry-content {
    max-width: var(--lff-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--lff-space-md);
    padding-right: var(--lff-space-md);
}

/* Shared Most Read block — suppress default <ol> numbering */
.lff-most-read {
    max-width: var(--lff-max-width);
    margin: 0 auto;
    padding: var(--lff-space-2xl) var(--lff-space-md);
}

/* Donate appeal panel (editor content) — full-width background,
   text constrained to page width */
.donate {
    max-width: none !important;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: var(--lff-space-xl) var(--lff-space-md) !important;
    box-sizing: border-box;
}

/* Use flexbox column to constrain all children to max-width
   while keeping them left-aligned within that area */
.donate {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

.donate > * {
    width: 100%;
    max-width: var(--lff-max-width);
}

.lff-most-read__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lff-most-read__item {
    display: flex;
    gap: var(--lff-space-sm);
    align-items: flex-start;
    padding: var(--lff-space-sm) 0;
    border-bottom: 1px solid var(--lff-border);
}
.lff-most-read__item:last-child {
    border-bottom: none;
}
.lff-most-read__number {
    font-family: var(--lff-font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--lff-accent);
    min-width: 1.5rem;
}

/* ==========================================================================
   Site Title — "LFF" logo image
   ========================================================================== */

.ast-site-identity .site-title {
    margin: 0;
    line-height: 0;
}

.ast-site-identity .site-title a {
    display: block;
    width: 96px;
    height: 60px;
    background-image: url('assets/img/lfflogo.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    font-size: 0;
    text-indent: -9999px;
    overflow: hidden;
}

.site-branding.ast-site-identity a {
    width: 128px;
    height: 80px;
}

/* Hide the tagline if present */
.ast-site-identity .site-description {
    display: none;
}

/* ==========================================================================
   Primary Navigation — darker, slightly bolder labels for prominence
   ========================================================================== */

.main-header-menu .menu-link,
.ast-primary-menu .menu-link {
    color: #333;
    font-weight: 600;
}

.main-header-menu .menu-link:hover,
.main-header-menu .menu-link:focus,
.ast-primary-menu .menu-link:hover,
.ast-primary-menu .menu-link:focus,
.main-header-menu .current-menu-item > .menu-link,
.ast-primary-menu .current-menu-item > .menu-link {
    color: var(--lff-text);
}

/* ==========================================================================
   Base Overrides
   ========================================================================== */

body {
    font-family: var(--lff-font-body);
    color: var(--lff-text);
    background: var(--lff-bg);
    line-height: 1.6;
}

a {
    color: var(--lff-link);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--lff-link-hover);
}

/* ==========================================================================
   Category Labels
   ========================================================================== */

.lff-cat-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15em 0.5em;
    border-radius: 2px;
    color: #fff;
}

.lff-cat-label--news { background: var(--lff-cat-news); }
.lff-cat-label--opinion { background: var(--lff-cat-opinion); }
.lff-cat-label--rww { background: var(--lff-cat-rww); }
.lff-cat-label--reform { background: var(--lff-cat-reform); }
.lff-cat-label--columnists { background: var(--lff-cat-columnists); }

/* ==========================================================================
   Homepage Sections
   ========================================================================== */

.lff-section {
    max-width: var(--lff-max-width);
    margin: 0 auto;
    padding: var(--lff-space-2xl) var(--lff-space-md);
}

.lff-section + .lff-section {
    border-top: 1px solid var(--lff-border);
}

.lff-section__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--lff-space-lg);
}

.lff-section__title {
    font-family: var(--lff-font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--lff-text);
    margin: 0;
}

.lff-section__title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1em;
    background: var(--lff-accent);
    margin-right: 0.5em;
    vertical-align: middle;
}

.lff-section__more {
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==========================================================================
   Hero Zone
   ========================================================================== */

.lff-hero {
    max-width: var(--lff-max-width);
    margin: 0 auto;
    padding: var(--lff-space-lg) var(--lff-space-md);
    display: grid;
    gap: var(--lff-space-lg);
}

/* V1: Lead + sidebar (Politico-inspired) */
.lff-hero--v1 {
    grid-template-columns: 2fr 1fr;
}

@media (max-width: 768px) {
    .lff-hero--v1 {
        grid-template-columns: 1fr;
    }
}

.lff-hero__lead {
    position: relative;
    overflow: hidden;
}

.lff-hero__lead img,
.lff-hero__lead .wp-post-image {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    max-width: none;
}

.lff-hero__lead-content {
    padding: var(--lff-space-md) 0;
}

.lff-hero__lead-title {
    font-family: var(--lff-font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin: var(--lff-space-sm) 0;
}

.lff-hero__lead-title a {
    color: var(--lff-text);
}

.lff-hero__lead-title a:hover {
    color: var(--lff-accent);
}

.lff-hero__lead-excerpt {
    color: var(--lff-text-secondary);
    margin: var(--lff-space-sm) 0;
    font-size: 0.95rem;
}

.lff-hero__sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--lff-space-md);
}

/* ==========================================================================
   Article Cards
   ========================================================================== */

.lff-card {
    display: flex;
    gap: var(--lff-space-md);
}

.lff-card--vertical {
    flex-direction: column;
}

.lff-card__image {
    flex-shrink: 0;
}

.lff-card__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 3px;
}

.lff-card--horizontal .lff-card__image {
    width: 120px;
}

.lff-card--horizontal .lff-card__image img {
    width: 120px;
    height: 80px;
}

.lff-card__title {
    font-family: var(--lff-font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: var(--lff-space-xs) 0;
}

.lff-card__title a {
    color: var(--lff-text);
}

.lff-card__title a:hover {
    color: var(--lff-accent);
}

.lff-card__meta {
    font-size: 0.8rem;
    color: var(--lff-text-secondary);
}

.lff-card__meta a {
    color: var(--lff-text-secondary);
    font-weight: 600;
}

.lff-card__readtime {
    font-size: 0.75rem;
    color: var(--lff-text-secondary);
}

.lff-card__excerpt {
    font-size: 0.9rem;
    color: var(--lff-text-secondary);
    line-height: 1.5;
    margin: var(--lff-space-xs) 0;
}

/* Card grid layouts */
.lff-card-grid {
    display: grid;
    gap: var(--lff-space-lg);
}

.lff-card-grid--2col { grid-template-columns: repeat(2, 1fr); }
.lff-card-grid--3col { grid-template-columns: repeat(3, 1fr); }
.lff-card-grid--4col { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .lff-card-grid--2col,
    .lff-card-grid--3col,
    .lff-card-grid--4col {
        grid-template-columns: 1fr;
    }
}

/* Headline-only list (Tribune sidebar style) */
.lff-headline-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lff-headline-list li {
    padding: var(--lff-space-sm) 0;
    border-bottom: 1px solid var(--lff-border);
}

.lff-headline-list li:last-child {
    border-bottom: none;
}

.lff-headline-list a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--lff-text);
    line-height: 1.4;
}

.lff-headline-list a:hover {
    color: var(--lff-accent);
}

.lff-headline-list .lff-card__meta {
    margin-top: 2px;
}

/* ==========================================================================
   Inline Newsletter Sign-up
   ========================================================================== */

.lff-newsletter-block {
    background: var(--lff-bg-alt);
    padding: var(--lff-space-xl);
    border-radius: 6px;
    text-align: center;
    max-width: var(--lff-max-width);
    margin: var(--lff-space-2xl) auto;
}

.lff-newsletter-block__title {
    font-family: var(--lff-font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: var(--lff-space-xs);
}

.lff-newsletter-block__subtitle {
    color: var(--lff-text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--lff-space-md);
}

.lff-newsletter-block__form {
    display: flex;
    gap: var(--lff-space-sm);
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.lff-newsletter-block__form input[type="email"] {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid var(--lff-border);
    border-radius: 4px;
    font-size: 0.9rem;
}

.lff-newsletter-block__form button {
    background: var(--lff-accent);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.lff-newsletter-block__form button:hover {
    background: var(--lff-purple-dark);
}

@media (max-width: 480px) {
    .lff-newsletter-block__form {
        flex-direction: column;
    }
}

.lff-newsletter-block__privacy {
    font-size: 0.75rem;
    color: var(--lff-text-secondary);
    text-align: center;
    max-width: 500px;
    margin: var(--lff-space-sm) auto 0;
}

.lff-newsletter-block__privacy a {
    color: inherit;
    text-decoration: underline;
}

/* ==========================================================================
   Donate CTA Banner
   ========================================================================== */

.lff-donate-banner {
    background: var(--lff-purple);
    color: #fff;
    padding: var(--lff-space-lg) var(--lff-space-md);
    text-align: center;
}

.lff-donate-banner__inner {
    max-width: var(--lff-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--lff-space-lg);
    flex-wrap: wrap;
}

.lff-donate-banner__text {
    font-weight: 600;
    font-size: 1rem;
}

.lff-donate-banner__btn {
    display: inline-block;
    background: #fff;
    color: var(--lff-purple);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.lff-donate-banner__btn:hover {
    background: #f0f0f0;
    color: var(--lff-purple-dark);
}

/* ==========================================================================
   Mid-page CTA Panel (Configurable: donate / newsletter / A/B)
   V1 Politico-style: sharp, authoritative, full-width band
   ========================================================================== */

.lff-cta-panel {
    margin: var(--lff-space-xl) 0;
}

.lff-cta-panel__inner {
    max-width: var(--lff-max-width);
    margin: 0 auto;
    padding: var(--lff-space-2xl) var(--lff-space-lg);
    display: flex;
    align-items: center;
    gap: var(--lff-space-2xl);
}

.lff-cta-panel__content {
    flex: 1;
}

.lff-cta-panel__kicker {
    font-family: var(--lff-font-heading);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 var(--lff-space-xs);
}

.lff-cta-panel__heading {
    font-family: var(--lff-font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 var(--lff-space-sm);
    color: inherit;
}

.lff-cta-panel__text {
    font-family: var(--lff-font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.lff-cta-panel__action {
    flex-shrink: 0;
}

/* ---- Donate variant ---- */

.lff-cta-panel--donate {
    background: var(--lff-purple);
    color: #fff;
}

.lff-cta-panel--donate .lff-cta-panel__kicker {
    color: rgba(255, 255, 255, 0.7);
}

.lff-cta-panel__btn--donate {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: #fff;
    color: var(--lff-purple);
    font-family: var(--lff-font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.lff-cta-panel__btn--donate:hover {
    background: #f0f0f0;
    color: var(--lff-purple-dark);
}

/* ---- Newsletter variant ---- */

.lff-cta-panel--newsletter {
    background: #f7f7f7;
    border-top: 3px solid var(--lff-text);
    border-bottom: 1px solid var(--lff-border);
    color: var(--lff-text);
}

.lff-cta-panel--newsletter .lff-cta-panel__kicker {
    color: var(--lff-accent);
}

.lff-cta-panel__form {
    display: flex;
    gap: 0;
}

.lff-cta-panel__form input[type="email"] {
    padding: 0.75rem 1rem;
    border: 2px solid var(--lff-border);
    border-right: none;
    border-radius: 0;
    font-family: var(--lff-font-body);
    font-size: 0.9rem;
    width: 240px;
    box-sizing: border-box;
}

.lff-cta-panel__form input[type="email"]:focus {
    border-color: var(--lff-text);
    outline: none;
}

.lff-cta-panel__btn--newsletter {
    padding: 0.75rem 1.5rem;
    background: var(--lff-accent);
    color: #fff;
    border: 2px solid var(--lff-accent);
    border-radius: 0;
    font-family: var(--lff-font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.lff-cta-panel__btn--newsletter:hover {
    background: var(--lff-purple-dark);
    border-color: var(--lff-purple-dark);
}

/* ---- Mobile ---- */

@media (max-width: 768px) {
    .lff-cta-panel__inner {
        flex-direction: column;
        text-align: center;
        gap: var(--lff-space-lg);
    }

    .lff-cta-panel__form {
        flex-direction: column;
        width: 100%;
    }

    .lff-cta-panel__form input[type="email"] {
        width: 100%;
        border-right: 2px solid var(--lff-border);
        border-bottom: none;
    }

    .lff-cta-panel__btn--newsletter {
        width: 100%;
    }

    .lff-cta-panel__heading {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   Donate Page
   ========================================================================== */

.lff-donate {
    max-width: var(--lff-max-width);
    margin: 0 auto;
    padding: var(--lff-space-2xl) var(--lff-space-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--lff-space-3xl);
}

@media (max-width: 768px) {
    .lff-donate {
        grid-template-columns: 1fr;
    }
}

.lff-donate__copy h2 {
    font-family: var(--lff-font-heading);
    font-weight: 800;
    margin-bottom: var(--lff-space-md);
}

.lff-donate__widget {
    background: var(--lff-bg-alt);
    padding: var(--lff-space-xl);
    border-radius: 8px;
    position: sticky;
    top: var(--lff-space-lg);
}

.lff-donate__toggle {
    display: flex;
    gap: 0;
    margin-bottom: var(--lff-space-lg);
}

.lff-donate__toggle button {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--lff-accent);
    background: transparent;
    color: var(--lff-accent);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.lff-donate__toggle button:first-child {
    border-radius: 4px 0 0 4px;
}

.lff-donate__toggle button:last-child {
    border-radius: 0 4px 4px 0;
}

.lff-donate__toggle button.active {
    background: var(--lff-accent);
    color: #fff;
}

.lff-donate__amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--lff-space-sm);
    margin-bottom: var(--lff-space-lg);
}

.lff-donate__amount {
    padding: 0.75rem;
    border: 2px solid var(--lff-border);
    border-radius: 4px;
    background: #fff;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.lff-donate__amount:hover,
.lff-donate__amount.selected {
    border-color: var(--lff-accent);
    background: var(--lff-accent);
    color: #fff;
}

.lff-donate__custom {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--lff-border);
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: var(--lff-space-lg);
}

.lff-donate__btn {
    display: block;
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
    margin-bottom: var(--lff-space-sm);
}

.lff-donate__btn--card {
    background: var(--lff-accent);
    color: #fff;
}

.lff-donate__btn--card:hover {
    background: var(--lff-purple-dark);
}

.lff-donate__btn--paypal {
    background: #ffc439;
    color: #111;
}

.lff-donate__btn--paypal:hover {
    background: #f0b830;
}

.lff-donate__btn--dd {
    background: #fff;
    color: var(--lff-text);
    border: 2px solid var(--lff-border);
}

.lff-donate__btn--dd:hover {
    border-color: var(--lff-accent);
}

/* ==========================================================================
   Homepage V1 — Politico-inspired Overrides
   Sharp, professional: no rounded corners, text-only labels,
   clean section headers, generous spacing, authoritative feel
   ========================================================================== */

/* V1: Remove all border-radius */
#lff-homepage-v1 .lff-hero__lead img,
#lff-homepage-v1 .lff-hero__lead .wp-post-image {
    border-radius: 0;
    height: 440px;
}

#lff-homepage-v1 .lff-card__image img {
    border-radius: 0;
}

#lff-homepage-v1 .lff-cat-label {
    background: none;
    color: var(--lff-cat-news);
    padding: 0;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

#lff-homepage-v1 .lff-cat-label--opinion { color: var(--lff-cat-opinion); }
#lff-homepage-v1 .lff-cat-label--rww { color: var(--lff-cat-rww); }
#lff-homepage-v1 .lff-cat-label--reform { color: var(--lff-cat-reform); }
#lff-homepage-v1 .lff-cat-label--columnists { color: var(--lff-cat-columnists); }

/* V1: Larger lead headline */
#lff-homepage-v1 .lff-hero__lead-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

/* V1: Section title — remove decorative purple bar, use thin bottom border */
#lff-homepage-v1 .lff-section__title::before {
    display: none;
}

#lff-homepage-v1 .lff-section__title {
    font-size: 1rem;
    font-weight: 800;
    padding-bottom: var(--lff-space-sm);
    border-bottom: 2px solid var(--lff-text);
    margin-bottom: var(--lff-space-lg);
    letter-spacing: 0.06em;
}

/* V1: Tighter section spacing, no top border between sections */
#lff-homepage-v1 .lff-section + .lff-section {
    border-top: none;
}

#lff-homepage-v1 .lff-section {
    padding: var(--lff-space-xl) var(--lff-space-md) var(--lff-space-2xl);
}

/* V1: Newsletter block — sharp corners, no border-radius */
#lff-homepage-v1 .lff-newsletter-block {
    border-radius: 0;
    background: #f7f7f7;
}

#lff-homepage-v1 .lff-newsletter-block__form input[type="email"] {
    border-radius: 0;
}

#lff-homepage-v1 .lff-newsletter-block__form button {
    border-radius: 0;
}

/* V1: Donate banner — sharp button */
#lff-homepage-v1 .lff-donate-banner__btn {
    border-radius: 0;
}

/* V1: Card title slightly larger */
#lff-homepage-v1 .lff-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
}

/* V1: Hero sidebar items — tighter, sharper */
#lff-homepage-v1 .lff-hero__sidebar .lff-card--horizontal .lff-card__image img {
    border-radius: 0;
}

/* Align card body text flush with top of image */
.lff-card--horizontal {
    align-items: flex-start;
}

.lff-card__image img {
    display: block;
}

.lff-card--horizontal .lff-card__body .lff-cat-label {
    display: block;
    padding: 0;
    margin: 0 0 0.3em;
    line-height: 1.2;
}

/* V1: Card excerpt — darker text */
#lff-homepage-v1 .lff-card__excerpt {
    color: #444;
}

/* V1: Reading time styling — small caps, grey */
#lff-homepage-v1 .lff-card__readtime {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--lff-text-secondary);
}

/* V1: 4-column grid needs smaller images to fit */
#lff-homepage-v1 .lff-card-grid--4col .lff-card__image img {
    height: 180px;
    object-fit: cover;
}

/* V1: Hide author on grid cards, show only readtime — Politico-style minimal meta */
#lff-homepage-v1 .lff-card-grid--4col .lff-card__meta a,
#lff-homepage-v1 .lff-card-grid--4col .lff-card__meta time {
    display: none;
}

#lff-homepage-v1 .lff-card-grid--4col .lff-card__readtime {
    display: inline;
}

/* V1: Thin separator above Latest News */
#lff-homepage-v1 .lff-section--latest {
    border-top: 1px solid var(--lff-border);
    margin-top: var(--lff-space-md);
}

/* ==========================================================================
   Single Post V1 — Politico Style
   Clean professional two-column layout, no border-radius
   ========================================================================== */

#lff-single-v1 {
    font-family: var(--lff-font-body);
}

/* Header */
.lff-sv1-header {
    border-bottom: 1px solid var(--lff-border);
    padding: var(--lff-space-2xl) var(--lff-space-md) var(--lff-space-lg);
}

.lff-sv1-header__inner {
    max-width: var(--lff-max-width);
    margin: 0 auto;
}

#lff-single-v1 .lff-cat-label {
    background: none;
    padding: 0;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.lff-sv1-title {
    font-family: var(--lff-font-heading);
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: var(--lff-space-sm) 0;
    max-width: 780px;
}

.lff-sv1-excerpt {
    font-size: 1.1rem;
    color: var(--lff-text-secondary);
    line-height: 1.5;
    margin: var(--lff-space-sm) 0;
    max-width: 780px;
}

.lff-sv1-meta-row {
    margin-top: var(--lff-space-sm);
}

.lff-sv1-meta-row .lff-card__meta {
    font-size: 0.85rem;
}

/* Featured image */
.lff-sv1-featured-image__inner {
    max-width: var(--lff-max-width);
    margin: 0 auto;
    padding: var(--lff-space-lg) var(--lff-space-md) 0;
}

.lff-sv1-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

/* Two-column body */
.lff-sv1-body__inner {
    max-width: var(--lff-max-width);
    margin: 0 auto;
    padding: var(--lff-space-xl) var(--lff-space-md) var(--lff-space-2xl);
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--lff-space-2xl);
}

.lff-sv1-content {
    font-size: 1.05rem;
    line-height: 1.7;
}

.lff-sv1-content p {
    margin-bottom: 1.2em;
}

.lff-sv1-content blockquote {
    border-left: 3px solid var(--lff-accent);
    margin: 1.5em 0;
    padding: 0.5em 0 0.5em 1.5em;
    font-style: italic;
    color: var(--lff-text-secondary);
}

/* Sidebar */
.lff-sv1-sidebar__title {
    font-family: var(--lff-font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: var(--lff-space-sm);
    border-bottom: 2px solid var(--lff-text);
    margin: 0 0 var(--lff-space-md);
}

.lff-sv1-sidebar__block {
    margin-bottom: var(--lff-space-2xl);
}

/* Most Read */
.lff-sv1-most-read {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lff-sv1-most-read li {
    display: flex;
    gap: var(--lff-space-sm);
    align-items: flex-start;
    padding: var(--lff-space-sm) 0;
    border-bottom: 1px solid var(--lff-border);
}

.lff-sv1-most-read li:last-child {
    border-bottom: none;
}

.lff-sv1-most-read__num {
    font-family: var(--lff-font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--lff-border);
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
}

.lff-sv1-most-read li a {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--lff-text);
}

.lff-sv1-most-read li a:hover {
    color: var(--lff-accent);
}

/* Sidebar newsletter */
.lff-sv1-sidebar__newsletter {
    background: #f7f7f7;
    padding: var(--lff-space-lg);
}

.lff-sv1-sidebar__newsletter p {
    font-size: 0.85rem;
    color: var(--lff-text-secondary);
    margin-bottom: var(--lff-space-md);
}

.lff-sv1-nl-form {
    display: flex;
    flex-direction: column;
    gap: var(--lff-space-sm);
}

.lff-sv1-nl-form input[type="email"] {
    padding: 0.6rem;
    border: 1px solid var(--lff-border);
    border-radius: 0;
    font-size: 0.85rem;
}

.lff-sv1-nl-form button {
    background: var(--lff-accent);
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 0.6rem;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.lff-sv1-nl-form button:hover {
    background: var(--lff-purple-dark);
}

.lff-sv1-nl-privacy {
    font-size: 0.75rem;
    color: var(--lff-text-secondary);
    margin-top: var(--lff-space-sm);
}

.lff-sv1-nl-privacy a {
    color: inherit;
    text-decoration: underline;
}

/* Article Donate Appeal */
.lff-donate-appeal {
    background: #e2cbf4;
    border: 1px solid #d4b5e8;
    padding: var(--lff-space-xl);
    margin-top: var(--lff-space-2xl);
}

.lff-donate-appeal p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 var(--lff-space-md);
}

.lff-donate-appeal p:last-of-type {
    margin-bottom: var(--lff-space-lg);
}

.lff-donate-appeal__btn {
    display: inline-block;
    background: var(--lff-accent);
    color: #fff !important;
    padding: 0.7rem 2rem;
    font-family: var(--lff-font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s;
}

.lff-donate-appeal__btn:hover {
    background: var(--lff-purple-dark);
    color: #fff !important;
}

/* Related articles */
.lff-sv1-related {
    border-top: 1px solid var(--lff-border);
    background: var(--lff-bg-alt);
}

.lff-sv1-related__inner {
    max-width: var(--lff-max-width);
    margin: 0 auto;
    padding: var(--lff-space-2xl) var(--lff-space-md);
}

.lff-sv1-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--lff-space-lg);
    margin-top: var(--lff-space-lg);
}

.lff-sv1-related__image img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: var(--lff-space-sm);
}

.lff-sv1-related__card .lff-card__title {
    font-size: 1rem;
    font-weight: 800;
}

@media (max-width: 900px) {
    .lff-sv1-body__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .lff-sv1-title {
        font-size: 1.6rem;
    }
    .lff-sv1-related__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Archive V1 — Politico Style
   ========================================================================== */

.lff-av1-header {
    padding: var(--lff-space-xl) 0 var(--lff-space-lg);
    border-bottom: 2px solid var(--lff-text);
}
.lff-av1-header__inner {
    max-width: var(--lff-max-width);
    margin: 0 auto;
    padding: 0 var(--lff-space-lg);
}
.lff-av1-header__title {
    font-family: var(--lff-font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--lff-text);
    margin: 0;
    line-height: 1.1;
}
.lff-av1-header__desc {
    font-size: 0.95rem;
    color: var(--lff-text-secondary);
    margin: 0.5rem 0 0;
}
.lff-av1-content__inner {
    max-width: var(--lff-max-width);
    margin: 0 auto;
    padding: var(--lff-space-xl) var(--lff-space-lg);
}

/* Lead story */
.lff-av1-lead {
    margin-bottom: var(--lff-space-2xl);
    padding-bottom: var(--lff-space-2xl);
    border-bottom: 1px solid var(--lff-border);
}
.lff-av1-lead__image {
    display: block;
    margin-bottom: var(--lff-space-lg);
}
.lff-av1-lead__image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.lff-av1-lead .lff-cat-label {
    margin-bottom: var(--lff-space-sm);
}
.lff-av1-lead__title {
    font-family: var(--lff-font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    margin: var(--lff-space-sm) 0;
}
.lff-av1-lead__title a {
    color: var(--lff-text);
    text-decoration: none;
}
.lff-av1-lead__title a:hover {
    color: var(--lff-accent);
}
.lff-av1-lead__excerpt {
    font-size: 1rem;
    color: var(--lff-text-secondary);
    margin: var(--lff-space-sm) 0;
    line-height: 1.5;
}

/* 2-column grid */
.lff-av1-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--lff-space-xl);
    margin-bottom: var(--lff-space-2xl);
    padding-bottom: var(--lff-space-2xl);
    border-bottom: 1px solid var(--lff-border);
}
.lff-av1-grid__card {
    display: flex;
    flex-direction: column;
}
.lff-av1-grid__image {
    display: block;
    margin-bottom: var(--lff-space-sm);
}
.lff-av1-grid__image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.lff-av1-grid__title {
    font-family: var(--lff-font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    margin: var(--lff-space-xs) 0;
}
.lff-av1-grid__title a {
    color: var(--lff-text);
    text-decoration: none;
}
.lff-av1-grid__title a:hover {
    color: var(--lff-accent);
}

/* Text river */
.lff-av1-river__item {
    padding: var(--lff-space-lg) 0;
    border-bottom: 1px solid var(--lff-border);
}
.lff-av1-river__title {
    font-family: var(--lff-font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 var(--lff-space-xs);
}
.lff-av1-river__title a {
    color: var(--lff-text);
    text-decoration: none;
}
.lff-av1-river__title a:hover {
    color: var(--lff-accent);
}
.lff-av1-river__excerpt {
    font-size: 0.9rem;
    color: var(--lff-text-secondary);
    margin: var(--lff-space-xs) 0;
    line-height: 1.5;
}

/* Pagination */
.lff-av1-pagination {
    margin: var(--lff-space-2xl) 0;
    text-align: center;
}
.lff-av1-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: var(--lff-space-xs);
    flex-wrap: wrap;
}
.lff-av1-pagination .nav-links a,
.lff-av1-pagination .nav-links span {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-family: var(--lff-font-heading);
    text-decoration: none;
    border: 1px solid var(--lff-border);
    color: var(--lff-text);
}
.lff-av1-pagination .nav-links .current {
    background: var(--lff-text);
    color: #fff;
    border-color: var(--lff-text);
}
.lff-av1-pagination .nav-links a:hover {
    background: var(--lff-bg-alt);
}

@media (max-width: 768px) {
    .lff-av1-header__title { font-size: 1.8rem; }
    .lff-av1-lead__title { font-size: 1.5rem; }
    .lff-av1-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.lff-404__search {
    margin-bottom: var(--lff-space-2xl);
    padding-bottom: var(--lff-space-2xl);
    border-bottom: 1px solid var(--lff-border);
}

.lff-404__search-form {
    display: flex;
    max-width: 560px;
}

.lff-404__search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--lff-border);
    border-right: none;
    border-radius: 0;
    font-family: var(--lff-font-body);
    font-size: 1rem;
}

.lff-404__search-form input[type="search"]:focus {
    border-color: var(--lff-text);
    outline: none;
}

.lff-404__search-form button {
    padding: 0.75rem 1.5rem;
    background: var(--lff-accent);
    color: #fff;
    border: 2px solid var(--lff-accent);
    border-radius: 0;
    font-family: var(--lff-font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
}

.lff-404__search-form button:hover {
    background: var(--lff-purple-dark);
    border-color: var(--lff-purple-dark);
}

#lff-404 .lff-section__title {
    font-size: 1rem;
    font-weight: 800;
    padding-bottom: var(--lff-space-sm);
    border-bottom: 2px solid var(--lff-text);
    margin-bottom: var(--lff-space-lg);
    letter-spacing: 0.06em;
}

#lff-404 .lff-section__title::before {
    display: none;
}

/* ==========================================================================
   Donate Page V1 — Politico-inspired, We Own It functional pattern
   Sharp, professional, authoritative. No rounded corners, uppercase labels,
   thin rule dividers. Separate payment widgets: Card, PayPal, Direct Debit.
   ========================================================================== */

.lff-donate-v1 {
    max-width: var(--lff-max-width);
    margin: 0 auto;
    padding: 0 var(--lff-space-md);
}

/* ---- Full-width header ---- */

.lff-donate-v1__header {
    padding: var(--lff-space-3xl) 0 var(--lff-space-xl);
}

.lff-donate-v1__kicker {
    font-family: var(--lff-font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lff-accent);
    margin: 0 0 var(--lff-space-sm);
}

.lff-donate-v1__title {
    font-family: var(--lff-font-heading);
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--lff-text);
    margin: 0 0 var(--lff-space-lg);
    max-width: 700px;
}

.lff-donate-v1__rule {
    height: 3px;
    background: var(--lff-text);
    width: 100%;
}

/* ---- Two-column grid ---- */

.lff-donate-v1__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--lff-space-3xl);
    padding: var(--lff-space-2xl) 0 var(--lff-space-3xl);
    align-items: start;
}

@media (max-width: 900px) {
    .lff-donate-v1__grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Left column: copy ---- */

.lff-donate-v1__lede {
    font-family: var(--lff-font-body);
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--lff-text);
    margin: 0 0 var(--lff-space-2xl);
}

.lff-donate-v1__subhead {
    font-family: var(--lff-font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lff-text);
    margin: 0 0 var(--lff-space-xs);
}

.lff-donate-v1__thin-rule {
    height: 2px;
    background: var(--lff-text);
    margin-bottom: var(--lff-space-lg);
}

.lff-donate-v1__list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--lff-space-2xl);
}

.lff-donate-v1__list li {
    font-family: var(--lff-font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: var(--lff-space-sm) 0;
    border-bottom: 1px solid var(--lff-border);
}

.lff-donate-v1__list li:last-child {
    border-bottom: none;
}

/* Dynamic page content (from WP editor) */

.lff-donate-v1__custom-content {
    font-family: var(--lff-font-body);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--lff-space-2xl);
}

.lff-donate-v1__custom-content h2 {
    font-family: var(--lff-font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--lff-text);
    padding-bottom: var(--lff-space-xs);
    margin: var(--lff-space-2xl) 0 var(--lff-space-lg);
}

.lff-donate-v1__custom-content h3 {
    font-family: var(--lff-font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    margin: var(--lff-space-xl) 0 var(--lff-space-sm);
}

.lff-donate-v1__custom-content ul {
    list-style: none;
    padding: 0;
}

.lff-donate-v1__custom-content ul li {
    padding: var(--lff-space-sm) 0;
    border-bottom: 1px solid var(--lff-border);
}

.lff-donate-v1__custom-content ul li:last-child {
    border-bottom: none;
}

/* Social proof callout */

.lff-donate-v1__social-proof {
    background: var(--lff-bg-alt);
    border-left: 3px solid var(--lff-accent);
    padding: var(--lff-space-md) var(--lff-space-lg);
    margin-bottom: var(--lff-space-xl);
}

.lff-donate-v1__social-proof p {
    font-family: var(--lff-font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Impact grid — 2x2 */

.lff-donate-v1__impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 2px solid var(--lff-text);
    margin-bottom: var(--lff-space-2xl);
}

.lff-donate-v1__impact {
    padding: var(--lff-space-lg) var(--lff-space-md);
    border-bottom: 1px solid var(--lff-border);
    border-right: 1px solid var(--lff-border);
}

.lff-donate-v1__impact:nth-child(2n) {
    border-right: none;
}

.lff-donate-v1__impact-amount {
    display: block;
    font-family: var(--lff-font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--lff-accent);
    margin-bottom: var(--lff-space-xs);
}

.lff-donate-v1__impact-amount small {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--lff-text-secondary);
}

.lff-donate-v1__impact-desc {
    font-family: var(--lff-font-body);
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--lff-text-secondary);
}

.lff-donate-v1__reg-note {
    font-family: var(--lff-font-body);
    font-size: 0.8rem;
    color: var(--lff-text-secondary);
    font-style: italic;
    border-top: 1px solid var(--lff-border);
    padding-top: var(--lff-space-md);
}

/* ---- Right column: sidebar with stacked widgets ---- */

.lff-donate-v1__sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--lff-space-lg);
}

.lff-donate-v1__widget {
    background: #f7f7f7;
    border: 1px solid var(--lff-border);
    padding: var(--lff-space-xl);
}

.lff-donate-v1__widget-label {
    font-family: var(--lff-font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lff-text-secondary);
    margin: 0 0 var(--lff-space-lg);
    padding-bottom: var(--lff-space-sm);
    border-bottom: 2px solid var(--lff-text);
}

/* Toggle: one-off / monthly */

.lff-donate-v1__toggle {
    display: flex;
    margin-bottom: var(--lff-space-sm);
}

.lff-donate-v1__toggle button {
    flex: 1;
    padding: 0.7rem;
    border: 2px solid var(--lff-text);
    background: transparent;
    color: var(--lff-text);
    font-family: var(--lff-font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s;
    border-radius: 0;
}

.lff-donate-v1__toggle button + button {
    border-left: none;
}

.lff-donate-v1__toggle button.active {
    background: var(--lff-text);
    color: #fff;
}

.lff-donate-v1__toggle button:hover:not(.active) {
    background: var(--lff-border);
}

/* Frequency hint text */

.lff-donate-v1__freq-hint {
    font-family: var(--lff-font-body);
    font-size: 0.8rem;
    color: var(--lff-text-secondary);
    margin: 0 0 var(--lff-space-lg);
}

/* DD intro text */

.lff-donate-v1__dd-intro {
    font-family: var(--lff-font-body);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--lff-text-secondary);
    margin: 0 0 var(--lff-space-lg);
}

/* Amount grid — radio-based */

.lff-donate-v1__amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-bottom: var(--lff-space-md);
    border: 2px solid var(--lff-border);
}

.lff-donate-v1__amount {
    position: relative;
    padding: 0.75rem;
    background: #fff;
    text-align: center;
    font-family: var(--lff-font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.15s;
    border-right: 1px solid var(--lff-border);
    border-bottom: 1px solid var(--lff-border);
}

/* Hide native radio, style the label */
.lff-donate-v1__amount input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.lff-donate-v1__amount:nth-child(2n) {
    border-right: none;
}

.lff-donate-v1__amount:nth-child(n+3) {
    border-bottom: none;
}

.lff-donate-v1__amount:hover {
    background: var(--lff-bg-alt);
}

.lff-donate-v1__amount:has(input:checked) {
    background: var(--lff-accent);
    color: #fff;
    border-color: var(--lff-accent);
}

/* Fallback for browsers without :has() — JS adds this class */
.lff-donate-v1__amount--checked {
    background: var(--lff-accent);
    color: #fff;
    border-color: var(--lff-accent);
}

/* Custom amount with currency prefix */

.lff-donate-v1__custom-wrap {
    display: flex;
    align-items: center;
    border: 2px solid var(--lff-border);
    margin-bottom: var(--lff-space-lg);
    background: #fff;
}

.lff-donate-v1__currency {
    font-family: var(--lff-font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--lff-text-secondary);
    padding: 0 0.75rem;
    white-space: nowrap;
}

.lff-donate-v1__custom {
    flex: 1;
    padding: 0.75rem 0.75rem 0.75rem 0;
    border: none;
    border-radius: 0;
    font-family: var(--lff-font-body);
    font-size: 0.95rem;
    box-sizing: border-box;
    background: transparent;
}

.lff-donate-v1__custom:focus {
    outline: none;
}

.lff-donate-v1__custom-wrap:focus-within {
    border-color: var(--lff-text);
}

/* Buttons */

.lff-donate-v1__btn {
    display: block;
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 0;
    font-family: var(--lff-font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
    margin-bottom: var(--lff-space-sm);
}

.lff-donate-v1__btn--primary {
    background: var(--lff-accent);
    color: #fff;
}

.lff-donate-v1__btn--primary:hover {
    background: var(--lff-purple-dark);
}

.lff-donate-v1__btn--paypal {
    background: #ffc439;
    color: #111;
}

.lff-donate-v1__btn--paypal:hover {
    background: #f0b830;
}

.lff-donate-v1__btn--dd {
    background: #fff;
    color: var(--lff-text);
    border: 2px solid var(--lff-border);
}

.lff-donate-v1__btn--dd:hover {
    border-color: var(--lff-text);
}

/* Fine print */

.lff-donate-v1__fine-print {
    font-family: var(--lff-font-body);
    font-size: 0.75rem;
    color: var(--lff-text-secondary);
    text-align: center;
    margin-top: var(--lff-space-sm);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ---- Mobile adjustments ---- */

@media (max-width: 900px) {
    .lff-donate-v1__title {
        font-size: 2rem;
    }

    .lff-donate-v1__impact-grid {
        grid-template-columns: 1fr;
    }

    .lff-donate-v1__impact {
        border-right: none;
    }
}

/* ==========================================================================
   Ad Wireframes — placeholder boxes for ad-slot positions
   ========================================================================== */

.lff-ad-wireframe {
    position: relative;
    margin: var(--lff-space-lg) auto;
    background: #fff;
    border: 1px solid #999;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Diagonal X via two linear gradients */
    background-image:
        linear-gradient(
            to top right,
            transparent calc(50% - 0.5px),
            #ccc calc(50% - 0.5px),
            #ccc calc(50% + 0.5px),
            transparent calc(50% + 0.5px)
        ),
        linear-gradient(
            to bottom right,
            transparent calc(50% - 0.5px),
            #ccc calc(50% - 0.5px),
            #ccc calc(50% + 0.5px),
            transparent calc(50% + 0.5px)
        );
    background-size: 100% 100%;
}

.lff-ad-wireframe__label {
    font-family: var(--lff-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #999;
    background: #fff;
    padding: 0.25rem 0.75rem;
    position: relative;
    z-index: 1;
}

/* Size variants */
.lff-ad-wireframe--billboard {
    width: 970px;
    height: 250px;
    max-width: 100%;
}

.lff-ad-wireframe--large-leaderboard {
    width: 970px;
    height: 90px;
    max-width: 100%;
}

.lff-ad-wireframe--leaderboard,
.lff-ad-wireframe--mid-content {
    width: 728px;
    height: 90px;
    max-width: 100%;
}

.lff-ad-wireframe--mpu {
    width: 300px;
    height: 250px;
    max-width: 100%;
}

/* Responsive: scale down on small screens */
@media (max-width: 768px) {
    .lff-ad-wireframe--billboard {
        width: 100%;
        height: auto;
        aspect-ratio: 970 / 250;
    }

    .lff-ad-wireframe--large-leaderboard {
        width: 100%;
        height: auto;
        aspect-ratio: 970 / 90;
    }

    .lff-ad-wireframe--leaderboard,
    .lff-ad-wireframe--mid-content {
        width: 100%;
        height: auto;
        aspect-ratio: 728 / 90;
    }
}

/* ==========================================================================
   A/B Testing — hide variant B by default, JS reveals the correct one
   ========================================================================== */

.lff-ab-hidden { display: none !important; }

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

/* Astra's built-in footer — styled to match LFF lower footer design */
.site-footer {
    background: #111;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--lff-font-body);
    border-top: none;
}

.site-footer .site-info {
    max-width: var(--lff-max-width);
    margin: 0 auto;
    padding: var(--lff-space-xl) var(--lff-space-md);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.site-footer .site-info a {
    color: rgba(255, 255, 255, 0.6);
}

.site-footer .site-info a:hover {
    color: #fff;
}

/* ---- Upper Footer: Most Popular + Newsletter ---- */

.lff-footer__upper {
    background: var(--lff-text);
    color: #fff;
    padding: var(--lff-space-2xl) var(--lff-space-md);
}

.lff-footer__upper-inner {
    max-width: var(--lff-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--lff-space-3xl);
}

.lff-footer__title {
    font-family: var(--lff-font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    padding-bottom: var(--lff-space-sm);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    margin: 0 0 var(--lff-space-lg);
}

/* Most Popular list */
.lff-footer__popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lff-footer__popular-list li {
    display: flex;
    gap: var(--lff-space-sm);
    align-items: flex-start;
    padding: var(--lff-space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lff-footer__popular-list li:last-child {
    border-bottom: none;
}

.lff-footer__popular-num {
    font-family: var(--lff-font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1;
    flex-shrink: 0;
    width: 24px;
}

.lff-footer__popular-list li a {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.lff-footer__popular-list li a:hover {
    color: var(--lff-purple-light);
}

/* Newsletter */
.lff-footer__newsletter p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 var(--lff-space-md);
}

.lff-footer__nl-form {
    display: flex;
    flex-direction: column;
    gap: var(--lff-space-sm);
}

.lff-footer__nl-form input[type="email"],
.lff-footer__nl-form input[type="text"] {
    padding: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: var(--lff-font-body);
    font-size: 0.9rem;
}

.lff-footer__nl-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.lff-footer__nl-form input:focus {
    border-color: var(--lff-purple-light);
    outline: none;
}

.lff-footer__nl-form button {
    padding: 0.7rem;
    background: var(--lff-accent);
    color: #fff;
    border: none;
    border-radius: 0;
    font-family: var(--lff-font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
}

.lff-footer__nl-form button:hover {
    background: var(--lff-purple-light);
}

.lff-footer__nl-privacy {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    margin-top: var(--lff-space-sm) !important;
}

.lff-footer__nl-privacy a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
}

/* ---- Lower Footer: Links, Regulatory, Copyright ---- */

.lff-footer__lower {
    background: #111;
    color: rgba(255, 255, 255, 0.6);
    padding: var(--lff-space-xl) var(--lff-space-md);
}

.lff-footer__lower-inner {
    max-width: var(--lff-max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--lff-space-lg);
}

.lff-footer__brand {
    display: flex;
    align-items: center;
    gap: var(--lff-space-sm);
}

.lff-footer__logo {
    display: inline-block;
    background: var(--lff-purple);
    color: #fff;
    font-family: var(--lff-font-heading);
    font-weight: 900;
    font-style: italic;
    font-size: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.lff-footer__tagline {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.lff-footer__links {
    display: flex;
    gap: var(--lff-space-md);
    flex-wrap: wrap;
}

.lff-footer__links a {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.lff-footer__links a:hover {
    color: #fff;
}

.lff-footer__regulatory {
    margin-left: auto;
}

.lff-footer__regulatory p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.lff-footer__regulatory a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
}

.lff-footer__copyright {
    width: 100%;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin: var(--lff-space-sm) 0 0;
    padding-top: var(--lff-space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---- Footer Responsive ---- */

@media (max-width: 768px) {
    .lff-footer__upper-inner {
        grid-template-columns: 1fr;
    }

    .lff-footer__lower-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .lff-footer__regulatory {
        margin-left: 0;
    }
}

/* ==========================================================================
   Ad wireframe — live variant (real AdSense unit in place)
   ========================================================================== */

.lff-ad-wireframe--live {
    background: none;
    border: none;
    display: block;
    overflow: hidden;
    /* Drop the wireframe placeholder's fixed height + aspect-ratio so the
       container collapses to whatever creative AdSense returns — otherwise
       a mobile 320×50 banner sits inside a 4:1 box leaving empty space. */
    height: auto;
    aspect-ratio: auto;
}
.lff-ad-wireframe--live .lff-ad-wireframe__label {
    display: none;
}
