/*
Theme Name: SCF Theme
Theme URI: https://southeasterncf.com
Author: TAG Strategies
Author URI: https://tagstrategies.com
Description: Custom theme for the Southeastern Conservative Foundation
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: scf
*/

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
    /* Brand Colors */
    --scf-red: #A22F23;
    --scf-red-dark: #8c2633;
    --scf-red-hover: #661a24;
    --scf-red-flag: #B22234;
    --scf-blue: #3C3B6E;
    --scf-navy: #17364B;
    --scf-black: #000000;
    --scf-white: #FFFFFF;
    --scf-white-85: rgba(255, 255, 255, 0.85);
    --scf-white-66: rgba(255, 255, 255, 0.66);

    /* Neutrals */
    --scf-gray-50: #F5F5F5;
    --scf-gray-100: #EDEDED;
    --scf-gray-200: #DFDFDF;
    --scf-gray-300: #A8A8A8;
    --scf-gray-400: #808080;
    --scf-gray-500: #777777;
    --scf-gray-600: #555555;
    --scf-gray-700: #444444;
    --scf-gray-800: #333333;

    /* Typography */
    --font-body: "Poppins", sans-serif;
    --font-heading: "Work Sans", sans-serif;
    --font-serif: "PT Serif", serif;

    /* Layout */
    --container-max: 1600px;
    --container-narrow: 1024px;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.breadcrumbs {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.8125rem;
    color: var(--scf-gray-500);
    max-width: var(--container-max);
    margin: 0 auto;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.25em;
}

.breadcrumbs__item + .breadcrumbs__item::before {
    content: "/";
    margin-right: 0.25em;
    color: var(--scf-gray-300);
}

.breadcrumbs__item a {
    color: var(--scf-red);
    text-decoration: none;
}

.breadcrumbs__item a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   EXPLORE MORE (Homepage Internal Links)
   ========================================================================== */
.explore-more {
    background: var(--scf-gray-50);
    padding: var(--spacing-xl) var(--spacing-md);
    border-top: 3px solid var(--scf-red);
}

.explore-more__inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.explore-more__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--scf-navy);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.explore-more__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm) var(--spacing-lg);
    list-style: none;
}

.explore-more__links a {
    color: var(--scf-red);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.explore-more__links a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   FOOTER NAV (Internal Links)
   ========================================================================== */
.footer__nav {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--scf-gray-700);
}

.footer__nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm) var(--spacing-md);
    list-style: none;
}

.footer__nav-links a {
    color: var(--scf-white-66);
    text-decoration: none;
    font-size: 0.8125rem;
}

.footer__nav-links a:hover {
    color: var(--scf-white);
    text-decoration: underline;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overscroll-behavior: none;
    scroll-behavior: smooth;
}

body {
    overflow-x: clip;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.4em;
    color: var(--scf-black);
    background-color: var(--scf-white);
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-main {
    min-height: calc(100vh - 300px);
}


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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

*:focus {
    outline: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2em;
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 2.254vw + 1.972rem, 4rem);
    font-weight: 500;
}

h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 1.502vw + 1.648rem, 3rem);
    font-weight: 500;
}

h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 1.127vw + 1.486rem, 2.5rem);
    font-weight: 500;
}

h4 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 0.563vw + 1.368rem, 1.875rem);
    font-weight: 700;
}

h5 {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 0.376vw + 1.162rem, 1.5rem);
    font-weight: 700;
}

h6 {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 0.188vw + 0.956rem, 1.125rem);
    font-weight: 600;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--spacing-2xl) 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.589rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.75rem 3rem;
    border: 1.5px solid var(--scf-red);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1;
    letter-spacing: 0.5px;
}

.btn--primary {
    background-color: var(--scf-red);
    color: var(--scf-white);
}

.btn--primary:hover {
    background-color: var(--scf-white);
    color: var(--scf-red);
}

.btn--outline {
    background-color: transparent;
    color: var(--scf-red);
}

.btn--outline:hover {
    background-color: var(--scf-red);
    color: var(--scf-white);
}

.btn--small {
    padding: 0.5rem 1.5rem;
    font-size: 0.5rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background-color: var(--scf-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Offset sticky elements below WP admin bar when logged in */
.admin-bar .site-header {
    top: 32px;
}

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

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.header__logo {
    width: 160px;
    flex-shrink: 0;
}

.header__logo img,
.header__logo .custom-logo {
    max-height: 65px;
    width: auto;
    height: auto;
}

.header__nav > .btn {
    width: 160px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.header__nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    flex: 1;
    justify-content: center;
}

.header__nav-list li a {
    display: block;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--scf-black);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.header__nav-list li a:hover,
.header__nav-list li a.current {
    color: var(--scf-red);
    background: var(--scf-gray-50);
}

/* Mobile menu toggle */
.header__toggle {
    display: none;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1.5px solid var(--scf-red);
    border-radius: 4px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.header__toggle:active {
    background: rgba(162, 47, 35, 0.08);
}

.header__toggle.is-active {
    background: var(--scf-red);
    border-color: var(--scf-red);
}

.header__toggle-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--scf-red);
    line-height: 1;
    transition: color 0.25s ease;
}

.header__toggle.is-active .header__toggle-label {
    color: var(--scf-white);
}

.header__toggle-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 18px;
    height: 14px;
    position: relative;
}

.header__toggle-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--scf-red);
    border-radius: 1px;
    position: absolute;
    left: 0;
    transition: transform 0.3s ease, opacity 0.2s ease, width 0.3s ease, background 0.25s ease;
}

.header__toggle-icon span:nth-child(1) {
    top: 0;
}

.header__toggle-icon span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.header__toggle-icon span:nth-child(3) {
    bottom: 0;
}

/* Active: white lines, middle fades, top/bottom cross */
.header__toggle.is-active .header__toggle-icon span {
    background: var(--scf-white);
}

.header__toggle.is-active .header__toggle-icon span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.header__toggle.is-active .header__toggle-icon span:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
}

.header__toggle.is-active .header__toggle-icon span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ==========================================================================
   STATE SUB-NAV
   ========================================================================== */
.state-nav {
    background-color: var(--scf-red);
    position: sticky;
    top: var(--header-height, 80px);
    z-index: 999;
    padding: 8px 0;
    transition: transform 0.3s ease-in-out;
}

/* Offset for WP admin bar when logged in */
.admin-bar .state-nav {
    top: calc(var(--header-height, 80px) + 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .state-nav {
        top: calc(var(--header-height, 80px) + 46px);
    }
}

.state-nav.slide-up {
    transform: translateY(-100%);
}

.state-nav__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.state-nav__list {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 0;
}

.state-nav__list li a {
    display: block;
    padding: 0.75rem 2rem;
    color: var(--scf-white-85);
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.state-nav__list li a:hover,
.state-nav__list li a.current {
    color: var(--scf-white);
}

/* ==========================================================================
   HERO BANNER (State Pages + Interior)
   ========================================================================== */
.hero-banner {
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.hero-banner--has-image,
.hero-banner--home.hero-banner--has-image {
    min-height: 0;
    display: block;
    background: none;
}

.hero-banner--has-image::before {
    display: none;
}

.hero-banner__img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-banner__content {
    position: relative;
    z-index: 2;
    color: var(--scf-white);
    padding: var(--spacing-2xl) var(--spacing-md);
}

.hero-banner__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3vw + 0.75rem, 4rem);
    font-weight: 500;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

/* Homepage hero — italic PT Serif "the Conservative conscience" */
.hero-banner--home .hero-banner__title {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* Homepage hero with the Conservative Conscience graphic */
.hero-banner--home {
    min-height: 400px;
    background-color: var(--scf-navy);
}

/* Interior page hero */
.hero-banner--red {
    background: linear-gradient(135deg, var(--scf-navy) 0%, #0e2233 100%);
    min-height: 200px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--scf-gray-50);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--scf-gray-200);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer__logo img,
.footer__logo .custom-logo {
    max-height: 65px;
    width: auto;
    height: auto;
}

.footer__links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.footer__links a {
    font-size: 0.8rem;
    line-height: 1.25em;
    color: var(--scf-black);
}

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

/* ==========================================================================
   MAILING LIST BAR
   ========================================================================== */
.mailing-bar {
    background-color: var(--scf-red);
    padding: var(--spacing-lg) 0;
}

.mailing-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    flex-wrap: wrap;
}

.mailing-bar__title {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 1vw + 1rem, 1.75rem);
    font-weight: 700;
    color: var(--scf-white);
    font-style: italic;
    white-space: nowrap;
}

.mailing-bar__form {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.mailing-bar__input {
    width: 400px;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--scf-white);
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.25;
    border-radius: 4px;
    box-sizing: border-box;
    height: 44px;
}

.mailing-bar__input::placeholder {
    color: var(--scf-white-66);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.mailing-bar__submit {
    background: var(--scf-white);
    color: var(--scf-navy);
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: 44px;
}

.mailing-bar__submit:hover {
    background: var(--scf-gray-100);
}

/* -- Gravity Forms inside Mailing Bar -- */
.mailing-bar .gform_wrapper {
    min-width: 0;
}

.mailing-bar .gform_wrapper form {
    display: flex !important;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
}

.mailing-bar .gform_wrapper .gform_body {
    min-width: 400px;
}

.mailing-bar .gform_wrapper .gform_fields {
    display: flex !important;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    padding: 0 !important;
    margin: 0 !important;
}

.mailing-bar .gform_wrapper .gfield {
    flex: 1;
    min-width: 200px;
    padding: 0 !important;
    margin: 0 !important;
}

.mailing-bar .gform_wrapper .gfield_label,
.mailing-bar .gform_wrapper .gfield_description,
.mailing-bar .gform_wrapper .gform_validation_errors,
.mailing-bar .gform_wrapper .gfield_required {
    display: none !important;
}

.mailing-bar .gform_wrapper input[type="text"],
.mailing-bar .gform_wrapper input[type="email"],
.mailing-bar .gform_wrapper input[type="tel"],
.mailing-bar .gform_wrapper textarea,
.mailing-bar .gform_wrapper select {
    width: 100% !important;
    height: 44px !important;
    padding: 0.75rem 1.25rem !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--scf-white) !important;
    font-family: var(--font-body) !important;
    font-size: 0.875rem !important;
    line-height: 1.25 !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    outline: none !important;
}

.mailing-bar .gform_wrapper input::placeholder,
.mailing-bar .gform_wrapper textarea::placeholder {
    color: var(--scf-white-66) !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.mailing-bar .gform_wrapper .gform_footer,
.mailing-bar .gform_wrapper .gform_page_footer {
    padding: 0 !important;
    margin: 0 !important;
}

.mailing-bar .gform_wrapper input[type="submit"],
.mailing-bar .gform_wrapper button[type="submit"],
.mailing-bar .gform_wrapper .gform-button {
    background: var(--scf-white) !important;
    color: var(--scf-navy) !important;
    border: none !important;
    height: 44px !important;
    padding: 0.75rem 1.5rem !important;
    width: auto !important;
    white-space: nowrap;
    font-family: var(--font-body) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.mailing-bar .gform_wrapper input[type="submit"]:hover,
.mailing-bar .gform_wrapper button[type="submit"]:hover,
.mailing-bar .gform_wrapper .gform-button:hover {
    background: var(--scf-gray-100) !important;
}

/* Hide title + show centered confirmation after submit */
.mailing-bar__inner:has(.gform_confirmation_message) .mailing-bar__title {
    display: none;
}

.mailing-bar__inner:has(.gform_confirmation_message) .gform_wrapper,
.mailing-bar__inner:has(.gform_confirmation_message) .gform_confirmation_wrapper {
    width: 100%;
}

.mailing-bar .gform_confirmation_message,
.mailing-bar .gform_confirmation_wrapper .gform_confirmation_message,
.mailing-bar .gform_wrapper .gform_confirmation_message {
    color: var(--scf-white) !important;
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    font-style: normal !important;
    text-align: center !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    padding: 0.5rem 0 !important;
}

.mailing-bar .gform_confirmation_message h4 {
    font-family: var(--font-serif) !important;
    font-size: clamp(1.25rem, 1vw + 1rem, 1.75rem) !important;
    font-weight: 700 !important;
    font-style: italic !important;
    color: var(--scf-white) !important;
    margin: 0 0 0.5rem !important;
}

.mailing-bar .gform_confirmation_message strong {
    color: var(--scf-white) !important;
    font-weight: 700 !important;
}

/* -- Gravity Forms inside Subscribe Popup -- */
.subscribe-popup .gform_wrapper {
    text-align: left;
}

.subscribe-popup .gform_wrapper .gfield_label {
    display: none !important;
}

.subscribe-popup .gform_wrapper .gfield_required,
.subscribe-popup .gform_wrapper .gfield_description {
    display: none !important;
}

.subscribe-popup .gform_wrapper .gform_fields {
    padding: 0 !important;
    margin: 0 !important;
}

.subscribe-popup .gform_wrapper .gfield {
    padding: 0 !important;
    margin: 0 0 0.5rem !important;
}

.subscribe-popup .gform_wrapper input[type="text"],
.subscribe-popup .gform_wrapper input[type="email"],
.subscribe-popup .gform_wrapper input[type="tel"],
.subscribe-popup .gform_wrapper textarea,
.subscribe-popup .gform_wrapper select {
    width: 100% !important;
    padding: 0.75rem !important;
    margin: 0 !important;
    border: 1px solid var(--scf-gray-200) !important;
    border-radius: 4px !important;
    font-family: var(--font-body) !important;
    font-size: 0.875rem !important;
    box-shadow: none !important;
    outline: none !important;
}

.subscribe-popup .gform_wrapper input[type="text"]:focus,
.subscribe-popup .gform_wrapper input[type="email"]:focus,
.subscribe-popup .gform_wrapper input[type="tel"]:focus,
.subscribe-popup .gform_wrapper textarea:focus,
.subscribe-popup .gform_wrapper select:focus {
    border-color: var(--scf-navy) !important;
}

.subscribe-popup .gform_wrapper .gform_footer,
.subscribe-popup .gform_wrapper .gform_page_footer {
    padding: 0.5rem 0 0 !important;
    margin: 0 !important;
}

.subscribe-popup .gform_wrapper input[type="submit"],
.subscribe-popup .gform_wrapper button[type="submit"],
.subscribe-popup .gform_wrapper .gform-button {
    width: 100% !important;
    background: var(--scf-red) !important;
    color: var(--scf-white) !important;
    border: none !important;
    padding: 0.75rem !important;
    font-family: var(--font-body) !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: none !important;
}

.subscribe-popup .gform_wrapper input[type="submit"]:hover,
.subscribe-popup .gform_wrapper button[type="submit"]:hover,
.subscribe-popup .gform_wrapper .gform-button:hover {
    background: var(--scf-navy) !important;
}

.subscribe-popup .gform_wrapper .gform_confirmation_message {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--scf-navy);
    padding: 1rem 0;
}

/* Hide header text after GF confirmation */
.subscribe-popup__content:has(.gform_confirmation_message) .subscribe-popup__header {
    display: none;
}

.subscribe-popup .gform_wrapper .gform_validation_errors {
    display: none !important;
}

.subscribe-popup .gform_wrapper .gfield_error input {
    border-color: var(--scf-red) !important;
}

/* ==========================================================================
   LEGAL PAGE TEMPLATE
   ========================================================================== */
.legal-page {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-md);
}

.legal-page__inner {
    background: var(--scf-white);
    border: 1px solid var(--scf-gray-200);
    border-radius: 8px;
    padding: clamp(2rem, 4vw, 3.5rem);
}

.legal-page__meta {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--scf-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--scf-gray-200);
}

.legal-page__content {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--scf-gray-700);
}

.legal-page__content h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--scf-navy);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--scf-gray-100);
}

.legal-page__content h2:first-child {
    margin-top: 0;
}

.legal-page__content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--scf-gray-800);
    margin: 2rem 0 0.75rem;
}

.legal-page__content p {
    margin: 0 0 1.25rem;
}

.legal-page__content ul,
.legal-page__content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.75rem;
}

.legal-page__content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-page__content a {
    color: var(--scf-red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-page__content a:hover {
    color: var(--scf-navy);
}

.legal-page__content strong {
    color: var(--scf-gray-800);
    font-weight: 600;
}

.legal-page__content blockquote {
    border-left: 3px solid var(--scf-navy);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--scf-gray-50);
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: var(--scf-gray-600);
}

.legal-page__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.legal-page__content th,
.legal-page__content td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--scf-gray-200);
}

.legal-page__content th {
    font-weight: 700;
    color: var(--scf-navy);
    background: var(--scf-gray-50);
}

.legal-page__content hr {
    border: none;
    border-top: 1px solid var(--scf-gray-200);
    margin: 2rem 0;
}

@media (max-width: 767px) {
    .legal-page__inner {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   SINGLE POST TEMPLATE
   ========================================================================== */
.single-post {
    background: var(--scf-gray-50);
    padding: var(--spacing-2xl) var(--spacing-md);

}
body.single-post {
    padding:0 !important;
}

.single-post__inner {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.single-post__meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-body);
    font-size: 0.8rem;
}

.single-post__category {
    background: var(--scf-red);
    color: var(--scf-white);
    padding: 0.2rem 0.75rem;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.7rem;
}

.single-post__date {
    color: var(--scf-gray-400);
}

.single-post__featured {
    margin-bottom: var(--spacing-xl);
    border-radius: 6px;
    overflow: hidden;
}

.single-post__featured img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post__source-link {
    margin-bottom: var(--spacing-xl);
}

.single-post__content {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--scf-gray-700);
}

.single-post__content h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--scf-navy);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--scf-gray-100);
}

.single-post__content h2:first-child {
    margin-top: 0;
}

.single-post__content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--scf-navy);
    margin: 2rem 0 0.75rem;
}

.single-post__content p {
    margin: 0 0 1.25rem;
}

.single-post__content ul,
.single-post__content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.75rem;
}

.single-post__content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.single-post__content a {
    color: var(--scf-red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.single-post__content a:hover {
    color: var(--scf-navy);
}

.single-post__content strong {
    color: var(--scf-gray-800);
    font-weight: 600;
}

.single-post__content blockquote {
    border-left: 3px solid var(--scf-red);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--scf-gray-50);
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: var(--scf-gray-600);
}

.single-post__content img {
    border-radius: 6px;
    margin: 1.5rem 0;
}

.single-post__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.single-post__content th,
.single-post__content td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--scf-gray-200);
}

.single-post__content th {
    font-weight: 700;
    color: var(--scf-navy);
    background: var(--scf-gray-50);
}

.single-post__content hr {
    border: none;
    border-top: 1px solid var(--scf-gray-200);
    margin: 2rem 0;
}

.single-post__back {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--scf-gray-200);
}

.single-post__back a {
    color: var(--scf-red);
    font-weight: 600;
    text-decoration: none;
}

.single-post__back a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .single-post__inner {
        padding: 1.5rem;
    }

    .single-post__meta {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   GENERIC PAGE TEMPLATE
   ========================================================================== */
.generic-page {
    background: var(--scf-gray-50);
    padding: var(--spacing-2xl) 0;
}

.generic-page__inner {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    background: var(--scf-white);
    border: 1px solid var(--scf-gray-200);
    border-radius: 8px;
    padding: clamp(2rem, 4vw, 3.5rem);
}

.generic-page__featured {
    margin-bottom: var(--spacing-xl);
    border-radius: 6px;
    overflow: hidden;
}

.generic-page__featured img {
    width: 100%;
    height: auto;
    display: block;
}

.generic-page__content {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--scf-gray-700);
}

.generic-page__content h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--scf-navy);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--scf-gray-100);
}

.generic-page__content h2:first-child {
    margin-top: 0;
}

.generic-page__content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--scf-navy);
    margin: 2rem 0 0.75rem;
}

.generic-page__content p {
    margin: 0 0 1.25rem;
}

.generic-page__content ul,
.generic-page__content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.75rem;
}

.generic-page__content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.generic-page__content a {
    color: var(--scf-red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.generic-page__content a:hover {
    color: var(--scf-navy);
}

.generic-page__content strong {
    color: var(--scf-gray-800);
    font-weight: 600;
}

.generic-page__content blockquote {
    border-left: 3px solid var(--scf-red);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--scf-gray-50);
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: var(--scf-gray-600);
}

.generic-page__content img {
    border-radius: 6px;
    margin: 1.5rem 0;
}

.generic-page__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.generic-page__content th,
.generic-page__content td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--scf-gray-200);
}

.generic-page__content th {
    font-weight: 700;
    color: var(--scf-navy);
    background: var(--scf-gray-50);
}

.generic-page__content hr {
    border: none;
    border-top: 1px solid var(--scf-gray-200);
    margin: 2rem 0;
}

@media (max-width: 767px) {
    .generic-page__inner {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   HOMEPAGE LAYOUT
   ========================================================================== */
.home-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-md);
}

.home-grid {
    display: grid;
    grid-template-columns: 350px 1fr 400px;
    gap: 0;
    min-width: 0;
    overflow: hidden;
}

.home-grid__sidebar-left {
    padding-right: var(--spacing-lg);
    border-right: 1px solid var(--scf-gray-200);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.home-grid__main {
    padding: 0 var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    min-width: 0;
    overflow: hidden;
}

.home-grid__sidebar-right {
    padding-left: var(--spacing-lg);
    border-left: 1px solid var(--scf-gray-200);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    min-width: 0;
    overflow: hidden;
}

/* Section heading with left border */
.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 0.376vw + 1.162rem, 1.5rem);
    font-weight: 700;
    color: var(--scf-black);
    padding-left: 0.5rem;
    border-left: 2px solid var(--scf-red-flag);
    margin-bottom: var(--spacing-sm);
}

.section-heading--linked {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-heading--linked a {
    color: inherit;
}

.section-heading--linked svg {
    fill: var(--scf-red);
    width: 1.25rem;
    height: 1.25rem;
}

/* ==========================================================================
   POTUS SCHEDULE (Homepage left sidebar)
   ========================================================================== */
.potus-block {
    margin-bottom: var(--spacing-md);
    position: relative;
    background-color: var(--scf-gray-50);
    padding: var(--spacing-md);
    border-radius: 4px;
    overflow: hidden;
}

.potus-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://secf.wpenginepowered.com/wp-content/uploads/2025/10/Seal_of_the_President_of_the_United_States.svg_.png') center / contain no-repeat;
    opacity: 0.1;
    pointer-events: none;
}

.potus-block__date {
    color: var(--scf-red);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

.potus-block .ics-calendar-date,
.potus-block .ics-calendar-label {
    display: none !important;
}

.potus-item {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--scf-gray-200);
}

.potus-item:last-child {
    border-bottom: none;
}

.potus-item__time {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.potus-item__title {
    font-size: 0.875rem;
    color: var(--scf-gray-800);
}

.potus-item__location {
    font-size: 0.75rem;
    color: var(--scf-gray-500);
}

.potus-item__status {
    font-size: 0.75rem;
    color: var(--scf-gray-400);
    font-style: italic;
}

/* ==========================================================================
   NATIONAL STORIES / NEWS FEEDS
   ========================================================================== */
.news-feed {
    margin-bottom: var(--spacing-md);
}

/* Strip bullets from WP RSS Aggregator output */
.news-feed ul,
.news-feed ol,
.news-feed .wpra-list-template ul,
.state-section__content ul,
.state-section__content ol {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

/* Also strip from WP RSS Aggregator display wrapper */
.wpra-display ul,
.wpra-display ol,
.wp-rss-aggregator ul,
.wp-rss-aggregator ol {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.news-feed__item {
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--scf-gray-100);
}

.news-feed__item:last-child {
    border-bottom: none;
}

.news-feed__headline {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--scf-black);
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.news-feed__headline a:hover {
    color: var(--scf-red);
}

.news-feed__meta {
    font-size: 0.85rem;
    color: var(--scf-black);
    margin-top: 0.75rem;
}

.news-feed__source,
.wprss-feed-meta .feed-source,
.wpra-item .feed-source,
.feed-source {
    color: var(--scf-red);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 500;
}

.news-feed__time,
.time-ago,
.feed-date {
    color: var(--scf-gray-400);
    margin-left: 0.5rem;
}

.wprss-feed-meta,
.wpra-item-meta {
    color: var(--scf-gray-600);
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

/* WP RSS Aggregator items — consistent styling everywhere */
.news-feed li,
.wpra-display li,
.wp-rss-aggregator li {
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--scf-gray-100);
}

.news-feed li:last-child,
.wpra-display li:last-child,
.wp-rss-aggregator li:last-child {
    border-bottom: none;
}

.news-feed li a,
.wpra-display li a,
.wp-rss-aggregator li a {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--scf-black);
    line-height: 1.4;
}

.news-feed li a:hover,
.wpra-display li a:hover,
.wp-rss-aggregator li a:hover {
    color: var(--scf-red);
}

/* ==========================================================================
   X (TWITTER) FEED
   ========================================================================== */
[data-widget="latest_on_x"],
[data-widget="political_updates"] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

/* Homepage twitter wrapper */
.twitter-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

/* State page twitter — section + scroll container fill column */
[data-widget="political_updates"] > section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

[data-widget="political_updates"] .mobile-scroll-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.twitter-sidebar .mobile-scroll-container {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

@media (max-width: 1024px) {
    .twitter-sidebar .mobile-scroll-container {
        max-height: 600px;
        overflow-y: auto !important;
    }
}

/* Scrollbar styling */
.mobile-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.mobile-scroll-container::-webkit-scrollbar-track {
    background: var(--scf-red);
}

.mobile-scroll-container::-webkit-scrollbar-thumb {
    background: var(--scf-gray-300);
    border-radius: 10px;
}

.mobile-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--scf-gray-500);
}

.mobile-scroll-container {
    scrollbar-width: thin;
    scrollbar-color: var(--scf-gray-300) var(--scf-red);
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ==========================================================================
   MARK HALPERIN'S DAYBOOK (sidebar widget)
   ========================================================================== */
.daybook-widget {
    border: 2px solid var(--scf-gray-200);
    border-radius: 8px;
    padding: var(--spacing-md);
    text-align: center;
}

.daybook-widget__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--scf-navy);
    line-height: 1.2;
}

.daybook-widget__subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--scf-gray-400);
    margin-bottom: var(--spacing-md);
}

.daybook-widget__toggle {
    margin-top: var(--spacing-md);
    width: 100%;
    background-color: var(--scf-navy);
    border-color: var(--scf-navy);
}

.daybook-widget__toggle:hover {
    background-color: var(--scf-white);
    color: var(--scf-navy);
    border-color: var(--scf-navy);
}

.daybook-widget__items {
    margin-top: var(--spacing-md);
    text-align: left;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.daybook-widget__items.is-open {
    max-height: 600px;
    overflow-y: auto;
}

.daybook-widget__item {
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--scf-gray-100);
}

.daybook-widget__item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.daybook-widget__item-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--scf-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.daybook-widget__item-desc {
    font-size: 0.825rem;
    line-height: 1.5;
    color: var(--scf-gray-600);
}

.daybook-widget__item-desc p {
    margin: 0 0 0.5rem;
}

.daybook-widget__item-desc p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   POLYMARKET TRENDS (sidebar)
   ========================================================================== */
.polymarket-widget {
    overflow: hidden;
    min-width: 0;
}

.polymarket-widget iframe {
    max-width: 100%;
}

/* ==========================================================================
   KALSHI PREDICTIONS (sidebar)
   ========================================================================== */
.kalshi-widget {
    overflow: hidden;
    min-width: 0;
}

.kalshi-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: box-shadow 0.15s;
}

.kalshi-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.kalshi-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--scf-navy, #1a1a2e);
}

.kalshi-card__prices {
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
}

.kalshi-card__price {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.kalshi-card__price--yes {
    background: #edf7ee;
    color: #00a32a;
}

.kalshi-card__price--no {
    background: #fef0f0;
    color: #d63638;
}

.kalshi-card__multi {
    font-size: 0.8rem;
    color: #666;
}

.kalshi-card__meta {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 8px;
}

.kalshi-card__link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--scf-red, #c0392b);
    text-decoration: none;
}

.kalshi-card__link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   BEHIND ENEMY HEADLINES (homepage section)
   ========================================================================== */
.enemy-headlines {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--scf-white);
    padding: var(--spacing-xl) var(--spacing-xl) 0;
    border-radius: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.enemy-headlines__title {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.enemy-headlines__subtitle {
    font-size: 0.875rem;
    color: var(--scf-white-66);
    font-style: italic;
    margin-bottom: var(--spacing-lg);
}

.enemy-headlines__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.enemy-headlines__item {
    display: block;
    aspect-ratio: 3 / 2.5;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    padding: 0;
    background: none;
    position: relative;
}

.enemy-headlines__item::after {
    content: '\2922';
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.55);
    color: var(--scf-white);
    font-size: 0.75rem;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.enemy-headlines__item:hover::after {
    opacity: 1;
}

.enemy-headlines__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.3s;
}

.enemy-headlines__item:hover img {
    transform: scale(1.05);
}

/* Torn newspaper bottom edge */
.enemy-headlines__torn-edge {
    height: 28px;
    margin-top: var(--spacing-md);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 28' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L0,8 Q15,22 30,6 Q45,18 60,4 Q75,20 90,8 Q105,24 120,6 Q135,18 150,4 Q165,22 180,10 Q195,20 210,4 Q225,18 240,8 Q255,24 270,6 Q285,16 300,4 Q315,22 330,10 Q345,18 360,6 Q375,24 390,8 Q405,16 420,4 Q435,22 450,10 Q465,18 480,6 Q495,24 510,8 Q525,16 540,4 Q555,22 570,10 Q585,18 600,6 Q615,24 630,8 Q645,16 660,4 Q675,22 690,10 Q705,18 720,6 Q735,24 750,8 Q765,16 780,4 Q795,22 810,10 Q825,18 840,6 Q855,24 870,8 Q885,16 900,4 Q915,22 930,10 Q945,18 960,6 Q975,24 990,8 Q1005,16 1020,4 Q1035,22 1050,10 Q1065,18 1080,6 Q1095,24 1110,8 Q1125,16 1140,4 Q1155,22 1170,10 Q1185,18 1200,6 L1200,0 Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 28' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L0,8 Q15,22 30,6 Q45,18 60,4 Q75,20 90,8 Q105,24 120,6 Q135,18 150,4 Q165,22 180,10 Q195,20 210,4 Q225,18 240,8 Q255,24 270,6 Q285,16 300,4 Q315,22 330,10 Q345,18 360,6 Q375,24 390,8 Q405,16 420,4 Q435,22 450,10 Q465,18 480,6 Q495,24 510,8 Q525,16 540,4 Q555,22 570,10 Q585,18 600,6 Q615,24 630,8 Q645,16 660,4 Q675,22 690,10 Q705,18 720,6 Q735,24 750,8 Q765,16 780,4 Q795,22 810,10 Q825,18 840,6 Q855,24 870,8 Q885,16 900,4 Q915,22 930,10 Q945,18 960,6 Q975,24 990,8 Q1005,16 1020,4 Q1035,22 1050,10 Q1065,18 1080,6 Q1095,24 1110,8 Q1125,16 1140,4 Q1155,22 1170,10 Q1185,18 1200,6 L1200,0 Z'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* BEL Lightbox */
.bel-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.bel-lightbox.is-active {
    display: flex;
}

.bel-lightbox__img {
    max-width: 100vw;
    max-height: 100vh;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

.bel-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    color: var(--scf-white);
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
}

/* ==========================================================================
   SMART FEED (homepage 2-column video/article grid)
   ========================================================================== */
.smart-feed__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.smart-feed__item {
    overflow: hidden;
    position: relative;
}

.smart-feed__link {
    display: block;
    text-decoration: none;
    color: var(--scf-black);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.smart-feed__thumb {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
}

.smart-feed__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.smart-feed__play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 4px;
}

.smart-feed__link:hover .smart-feed__play-icon {
    opacity: 1;
}

.smart-feed__title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.4rem;
    line-height: 1.3;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.video-modal.is-active {
    display: flex;
}

.video-modal__content {
    width: 90vw;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    position: relative;
}

.video-modal__content iframe,
.video-modal__content video {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 6px;
}

.video-modal__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--scf-white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
}

/* ==========================================================================
   STATE SECTIONS (Homepage lower area)
   ========================================================================== */
.state-section {
    background: var(--scf-white);
    border: 1px solid var(--scf-gray-200, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
    scroll-margin-top: 80px;
}

.state-section__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.state-section__banner {
    display: block;
    width: 100%;
    height: auto;
}

.state-section__header::before {
    display: none;
}

.state-section__header h2 {
    position: relative;
    z-index: 2;
    color: var(--scf-white);
    font-size: clamp(2.5rem, 3vw + 1rem, 4rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    padding: 40px 20px;
}

.state-section__content {
    padding: var(--spacing-lg);
}

/* ==========================================================================
   POLL BARS (used on state pages and homepage)
   ========================================================================== */
.polls-container {
    width: 100%;
}

.poll-wrapper {
    background: var(--scf-white, #fff);
    border: 1px solid var(--scf-gray-200);
    border-radius: 6px;
    padding: 0;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.poll-title {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0.875rem 1.25rem;
    background: var(--scf-navy);
    color: var(--scf-white);
    border-bottom: 2px solid var(--scf-red);
}

.poll-wrapper .poll-candidate-row {
    margin: 0 var(--spacing-md) 0.75rem;
}

.poll-title + .poll-candidate-row {
    margin-top: var(--spacing-md);
}

.poll-wrapper .poll-candidate-row:last-child {
    margin-bottom: var(--spacing-md);
}

.poll-candidate-row--leader .poll-bar-container {
    height: 34px;
}

.poll-candidate-row--leader .poll-percentage-text {
    font-size: 1rem;
    font-weight: 800;
    color: var(--scf-navy);
}

.poll-bar-container {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: var(--scf-gray-100);
    border-radius: 4px;
    height: 26px;
}

.poll-bar-fill {
    height: 100%;
    border-radius: 4px 0 0 4px;
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-width: fit-content;
}

.poll-bar-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 0 0.5rem;
}

.poll-percentage-text {
    margin-left: var(--spacing-sm);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--scf-gray-500);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================================================
   STATE OFFICIALS (state page)
   ========================================================================== */
.officials-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.official-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.official-headshot {
    width: 70px !important;
    height: 70px !important;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center;
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.official-placeholder {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--scf-gray-200);
}

.official-details-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.official-name {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--scf-black);
    line-height: 1.2;
    margin-bottom: 0.125rem;
}

.official-title {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--scf-gray-700);
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.official-elected {
    font-size: 0.75rem;
    color: var(--scf-gray-500);
    margin-bottom: 0.375rem;
}

.official-website-link {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--scf-red);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.official-website-link:hover {
    color: var(--scf-red);
    text-decoration: underline;
}

/* ==========================================================================
   STATE CANDIDATES ACCORDION
   ========================================================================== */
.candidates-accordion {
    width: 100%;
    border: 1px solid var(--scf-gray-200);
    border-radius: 6px;
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.race-details {
    border-bottom: 1px solid var(--scf-gray-200);
}

.race-details:last-child {
    border-bottom: none;
}

.race-summary {
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--scf-white);
    color: var(--scf-black);
    list-style: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Red left bar (1st, 5th, 9th…) */
.race-details:nth-child(4n - 3) .race-summary {
    border-left: 4px solid var(--scf-red);
    padding-left: calc(1.25rem - 4px);
}

/* Blue left bar (3rd, 7th, 11th…) */
.race-details:nth-child(4n - 1) .race-summary {
    border-left: 4px solid var(--scf-navy);
    padding-left: calc(1.25rem - 4px);
}

/* Default hover (no color bar) */
.race-summary:hover {
    background-color: var(--scf-gray-50);
}

/* Red rows — hover + open */
.race-details:nth-child(4n - 3) .race-summary:hover,
.race-details:nth-child(4n - 3)[open] .race-summary {
    background: var(--scf-red);
    color: var(--scf-white);
    border-left-color: var(--scf-red);
}

.race-details:nth-child(4n - 3) .race-summary:hover .race-icon,
.race-details:nth-child(4n - 3)[open] .race-summary .race-icon {
    color: var(--scf-white);
}

/* Blue rows — hover + open */
.race-details:nth-child(4n - 1) .race-summary:hover,
.race-details:nth-child(4n - 1)[open] .race-summary {
    background: var(--scf-navy);
    color: var(--scf-white);
    border-left-color: var(--scf-navy);
}

.race-details:nth-child(4n - 1) .race-summary:hover .race-icon,
.race-details:nth-child(4n - 1)[open] .race-summary .race-icon {
    color: var(--scf-white);
}

.race-summary::-webkit-details-marker {
    display: none;
}

.race-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    text-transform: uppercase;
}

.race-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease, color 0.15s ease;
    flex-shrink: 0;
    color: var(--scf-gray-300);
}

.race-summary:hover .race-icon {
    color: var(--scf-gray-600);
}

details[open] .race-summary .race-icon {
    transform: rotate(90deg);
}

.race-content {
    padding: 0 1.25rem 1.25rem;
    background: var(--scf-white);
}

/* Red drawer: left bar + tinted background */
.race-details:nth-child(4n - 3) .race-content {
    border-left: 4px solid var(--scf-red);
    padding-left: calc(1.25rem - 4px);
    background-color: #faf0f1;
}

/* Blue drawer: left bar + tinted background */
.race-details:nth-child(4n - 1) .race-content {
    border-left: 4px solid var(--scf-navy);
    padding-left: calc(1.25rem - 4px);
    background-color: #eef3f6;
}

details[open] .race-content {
    animation: smoothReveal 0.35s ease-out;
}

@keyframes smoothReveal {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.race-candidate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    transition: background-color 0.15s ease;
}

.race-candidate-row:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.race-candidate-row:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.race-candidate-row:first-child {
    border-top: none;
}

.cand-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.cand-name .party-tag {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

.cand-name .party-tag--rep {
    background-color: rgba(162, 47, 35, 0.12);
    color: var(--scf-red);
}

.cand-name .party-tag--dem {
    background-color: rgba(23, 54, 75, 0.12);
    color: var(--scf-navy);
}

.cand-link {
    text-decoration: none;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--scf-red);
    padding: 4px 10px;
    border: 1px solid var(--scf-red);
    border-radius: 3px;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.cand-link:hover {
    background-color: var(--scf-red);
    color: var(--scf-white);
}

/* ==========================================================================
   CANDIDATE SCORECARDS
   ========================================================================== */
.scorecards-container {
    width: 100%;
    margin-bottom: var(--spacing-2xl);
}

.scorecard-org-row {
    border-bottom: 1px solid var(--scf-gray-100);
    padding: 20px 0;
}

.scorecard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

.org-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.scorecard-btn {
    font-family: var(--font-body);
    font-size: 0.589rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.5rem 1.5rem;
    border: 1.5px solid var(--scf-red);
    border-radius: 4px;
    background-color: transparent;
    color: var(--scf-red);
    cursor: pointer;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.scorecard-btn:hover {
    background-color: var(--scf-red);
    color: var(--scf-white);
}

.scorecard-dropdown {
    width: 100%;
    margin-top: 15px;
    border: 1px solid var(--scf-gray-200);
    border-radius: 6px;
    overflow: hidden;
    animation: fadeIn 0.3s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

table.candidate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.candidate-table th {
    background: var(--scf-navy);
    text-align: left;
    padding: 0.875rem 1.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--scf-white);
    border-bottom: 2px solid var(--scf-red);
}

.candidate-table--sortable th {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.candidate-table--sortable th:hover {
    background-color: #1e4260;
}

.sort-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 4px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.candidate-table--sortable th.sort-asc .sort-arrow {
    border-top-color: var(--scf-white);
    transform: rotate(180deg);
}

.candidate-table--sortable th.sort-desc .sort-arrow {
    border-top-color: var(--scf-white);
}

.candidate-table td {
    padding: 11px 15px;
    border-bottom: 1px solid var(--scf-gray-100);
    color: var(--scf-gray-600);
}

.candidate-table tbody tr:nth-child(even) {
    background-color: var(--scf-gray-50);
}

.candidate-table tbody tr:hover {
    background-color: #fdf5f4;
}

.candidate-table tr:last-child td {
    border-bottom: none;
}

.candidate-table td.col-cand {
    color: var(--scf-black);
    font-weight: 600;
    width: 40%;
    border-left: 3px solid transparent;
}

.candidate-table tbody tr:hover td.col-cand {
    border-left-color: var(--scf-red);
}

/* Grade/rank cell styling */
.candidate-table td:not(.col-cand) {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--scf-navy);
}

/* Center grade & rank columns (all non-candidate columns) */
.candidate-table th:not(.col-cand),
.candidate-table td:not(.col-cand) {
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   BUSINESS SCORE CARD (State page)
   ========================================================================== */
.business-score {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--scf-gray-50);
    border-radius: 8px;
}

.business-score__number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--scf-red);
    line-height: 1;
}

.business-score__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--scf-gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.business-score__details {
    margin-top: var(--spacing-md);
    text-align: left;
}

.business-score__detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--scf-gray-200);
    font-size: 0.875rem;
}

/* ==========================================================================
   CAMPAIGN VIDEOS PAGE
   ========================================================================== */
.videos-page__filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.videos-page__filter-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--scf-gray-400);
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.videos-page__filter-btn:hover,
.videos-page__filter-btn.active {
    color: var(--scf-black);
    font-weight: 700;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.video-card {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.video-card__thumbnail {
    width: 280px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.video-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 0, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-card__play svg {
    fill: var(--scf-white);
    width: 20px;
    height: 20px;
    margin-left: 3px;
}

.video-card__info h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.video-card__date {
    font-size: 0.875rem;
    color: var(--scf-red);
}

.video-card__button {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
    width: 100%;
}

.video-card__button:hover .video-card__play {
    background: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
    transition: transform 0.2s ease, background 0.2s ease;
}

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

.video-card--vertical .video-card__button {
    flex-direction: column;
}

.video-card--vertical .video-card__thumbnail {
    width: 100%;
}

.video-card__excerpt {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.4rem;
}

/* ==========================================================================
   BOOK SHELF PAGE
   ========================================================================== */
.bookshelf-page {
    background: linear-gradient(135deg, var(--scf-red) 0%, #c0392b 50%, var(--scf-red-dark) 100%);
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.bookshelf-page__inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

.bookshelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.book-card {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}

.book-card:hover .book-card__title {
    text-decoration: underline;
}

.book-card__cover {
    width: 120px;
    flex-shrink: 0;
}

.book-card__cover img {
    width: 100%;
    height: auto;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.book-card__title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--scf-white);
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.book-card__author {
    font-size: 0.875rem;
    color: var(--scf-white-66);
}

/* ==========================================================================
   POLITICAL WORD (sidebar widget)
   ========================================================================== */
.political-word {
    border: 3px solid var(--scf-red);
    border-radius: 8px;
    padding: var(--spacing-lg);
    text-align: center;
}

.political-word__heading {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--scf-navy);
    line-height: 1.2;
}

.political-word__subheading {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--scf-gray-400);
    margin-bottom: var(--spacing-md);
}

.political-word__toggle {
    width: auto;
}

.political-word__content {
    margin-top: var(--spacing-md);
    text-align: left;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.political-word__content.is-open {
    max-height: 400px;
    overflow-y: auto;
}

.political-word__term {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--scf-red);
    margin-bottom: 0.5rem;
}

.political-word__type {
    font-size: 0.75rem;
    color: var(--scf-gray-400);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.political-word__definition {
    font-size: 0.875rem;
    color: var(--scf-gray-800);
    line-height: 1.5;
}

/* ==========================================================================
   BOOK SHELF WIDGET (homepage sidebar)
   ========================================================================== */
.bookshelf-widget {
    display: block;
    text-decoration: none;
    color: var(--scf-white);
}

.bookshelf-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

.bookshelf-widget__header-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--scf-navy);
    padding-left: var(--spacing-sm);
    border-left: 4px solid var(--scf-red);
}

.bookshelf-widget__header-arrow {
    font-size: 1.25rem;
    color: var(--scf-navy);
    transition: transform 0.2s ease;
}

.bookshelf-widget:hover .bookshelf-widget__header-arrow {
    transform: translateX(3px);
}

.bookshelf-widget__card {
    background: #8B2332;
    border-radius: 8px;
    overflow: hidden;
}

.bookshelf-widget__inner {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
}

.bookshelf-widget__cover {
    width: 90px;
    flex-shrink: 0;
}

.bookshelf-widget__cover img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bookshelf-widget__info {
    color: var(--scf-white);
}

.bookshelf-widget__title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.bookshelf-widget__author {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}

.bookshelf-widget__bottom-bar {
    height: 8px;
    background: var(--scf-navy);
}

/* ==========================================================================
   WISDOM FROM THE PAST (sidebar widget)
   ========================================================================== */
.watch-past-widget {
    border: 3px solid var(--scf-red);
    border-radius: 8px;
    padding: var(--spacing-lg);
    background: var(--scf-white);
}

.watch-past-widget__heading {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--scf-navy);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.watch-past-widget__heading em {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--scf-gray-400);
    font-weight: 400;
}

.watch-past-widget__heading strong {
    font-weight: 800;
    display: block;
}

.watch-past-widget__video {
    margin-bottom: var(--spacing-sm);
}

.watch-past-widget__video:last-child {
    margin-bottom: 0;
}

.watch-past-widget__video .video-card__thumbnail {
    width: 100%;
}

/* ==========================================================================
   WEEKLY RUNDOWN (sidebar widget)
   ========================================================================== */
.weekly-rundown-widget {
    border: 2px solid var(--scf-gray-200);
    border-radius: 8px;
    overflow: hidden;
}

/* Header */
.weekly-rundown-widget__header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--scf-navy);
    padding: 0.75rem 1rem;
}

.weekly-rundown-widget__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.8);
}

.weekly-rundown-widget__icon svg {
    width: 100%;
    height: 100%;
}

.weekly-rundown-widget__pre {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.75rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.1;
}

.weekly-rundown-widget__title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--scf-white);
    line-height: 1.1;
    letter-spacing: -0.3px;
}

/* Post list */
.weekly-rundown-widget__posts {
    display: flex;
    flex-direction: column;
}

/* Individual card — stacked layout */
.weekly-rundown-widget__card {
    display: block;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--scf-gray-100);
    transition: background 0.15s ease;
}

.weekly-rundown-widget__card:last-child {
    border-bottom: none;
}

.weekly-rundown-widget__card:hover {
    background: var(--scf-gray-50);
}

/* Thumbnail — full width */
.weekly-rundown-widget__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.weekly-rundown-widget__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.weekly-rundown-widget__card:hover .weekly-rundown-widget__thumb img {
    transform: scale(1.03);
}

/* Body */
.weekly-rundown-widget__body {
    display: flex;
    flex-direction: column;
}

.weekly-rundown-widget__cat {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--scf-red);
    line-height: 1;
    margin-bottom: 4px;
}

.weekly-rundown-widget__post-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--scf-navy);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.weekly-rundown-widget__card:hover .weekly-rundown-widget__post-title {
    color: var(--scf-red);
}

.weekly-rundown-widget__date {
    font-size: 0.725rem;
    color: var(--scf-gray-400);
    margin-top: 4px;
}

.weekly-rundown-widget__empty {
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.825rem;
    color: var(--scf-gray-400);
    margin: 0;
}

/* ==========================================================================
   SUPREME COURT CASES (main column widget)
   ========================================================================== */
.sc-cases-widget__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sc-cases-widget__card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 1rem 0;
    border-bottom: 1px solid var(--scf-gray-200);
    transition: background 0.15s ease;
}

.sc-cases-widget__card:first-child {
    padding-top: 0;
}

.sc-cases-widget__card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sc-cases-widget__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--scf-navy);
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

.sc-cases-widget__card:hover .sc-cases-widget__title {
    color: var(--scf-red);
}

.sc-cases-widget__desc {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--scf-red);
    font-style: italic;
    margin: 0 0 0.65rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sc-cases-widget__dates {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    background: var(--scf-gray-50);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--scf-gray-100);
}

.sc-cases-widget__date-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sc-cases-widget__date-label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--scf-gray-500);
}

.sc-cases-widget__date-value {
    font-size: 0.75rem;
    color: var(--scf-navy);
    font-weight: 500;
}

.sc-cases-widget__date-value em {
    color: var(--scf-gray-400);
    font-style: normal;
    font-weight: 400;
}

.sc-cases-widget__empty {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.825rem;
    color: var(--scf-gray-400);
    margin: 0;
}

/* ==========================================================================
   STATE ARCHIVE
   ========================================================================== */
.state-archive {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.state-archive__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

/* Homepage: state cards full-width single column */
.home-grid .state-archive__grid {
    grid-template-columns: 1fr;
}

.state-card {
    display: block;
    background: var(--scf-white);
    border-radius: 8px;
    overflow: hidden;
    border-bottom: 3px solid var(--scf-red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
}

.state-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: inherit;
}

.state-card__banner {
    aspect-ratio: 16 / 3;
    background: linear-gradient(135deg, var(--scf-navy) 0%, #0e2233 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: var(--spacing-md);
    position: relative;
}

.state-card__banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.state-card__banner--has-image::after {
    display: none;
}

.state-card__banner--has-image .state-card__name {
    display: none;
}

.state-card__name {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2vw + 0.5rem, 2.5rem);
    font-weight: 500;
    color: var(--scf-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
    margin: 0;
}

.state-card__body {
    padding: var(--spacing-md);
}

.state-card__row {
    display: flex;
    gap: var(--spacing-md);
}

.state-card__score-col {
    flex: 0 0 80px;
    text-align: center;
}

.state-card__news {
    flex: 1.2;
    min-width: 0;
    border-left: 1px solid var(--scf-gray-100);
    padding-left: var(--spacing-md);
}

.state-card__officials {
    flex: 0.8;
    min-width: 0;
    border-left: 1px solid var(--scf-gray-100);
    padding-left: var(--spacing-md);
}

.state-card__label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--scf-gray-500);
    margin-bottom: var(--spacing-sm);
}

.state-card__official {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.state-card__headshot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.state-card__headshot--placeholder {
    background: var(--scf-gray-200);
}

.state-card__official-name {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

.state-card__official-title {
    font-size: 0.7rem;
    color: var(--scf-gray-500);
}

.state-card__headline {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.state-card__score {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--scf-red);
    line-height: 1;
    margin-top: var(--spacing-xs);
}

.state-card__empty {
    font-size: 0.75rem;
    color: var(--scf-gray-400);
}

@media (max-width: 767px) {
    .state-archive__grid {
        grid-template-columns: 1fr;
    }

    .state-card__row {
        flex-direction: column;
    }

    .state-card__news,
    .state-card__officials {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--scf-gray-100);
        padding-top: var(--spacing-sm);
    }
}

/* ==========================================================================
   STATE PAGE LAYOUT
   ========================================================================== */
.state-page {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-md);
}

.state-page__grid {
    display: grid;
    grid-template-columns: 350px 1fr 400px;
    gap: 0;
    min-width: 0;
    overflow: hidden;
}

.state-page__col {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    min-width: 0;
    overflow: hidden;
}

/* Left column */
.state-page__col:first-child {
    padding-right: var(--spacing-lg);
    border-right: 1px solid var(--scf-gray-200);
}

/* Center column */
.state-page__col:nth-child(2) {
    padding: 0 var(--spacing-lg);
}

/* Right column */
.state-page__col:last-child {
    padding-left: var(--spacing-lg);
    border-left: 1px solid var(--scf-gray-200);
}


/* ==========================================================================
   CNBC BANNER (state page)
   ========================================================================== */
.cnbc-banner {
    background: linear-gradient(-45deg, #FF0000, #C72C30, #352CC7, #000000);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    border-radius: 12px;
    border-bottom: 5px solid var(--scf-red);
    overflow: visible;
    padding: 1.5rem;
    min-height: 280px;
    display: flex;
    align-items: stretch;
}

.cnbc-banner:hover {
    color: var(--scf-white);
}

.cnbc-banner__inner {
    border: 2px solid var(--scf-white);
    padding: var(--spacing-lg);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cnbc-banner__logo {
    width: 120px;
    padding: 0;
    margin-top: -2rem;
    margin-bottom: var(--spacing-sm);
    background: var(--scf-white);
}

.cnbc-banner__title {
    text-transform: uppercase;
    color: var(--scf-white);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    font-style: italic;
    line-height: 1.1;
    margin: 0;
}

.cnbc-banner__title strong {
    font-weight: 900;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 1024px) {
    .cnbc-banner {
        min-height: 220px;
        padding: 1.25rem;
    }
}

@media (max-width: 767px) {
    .cnbc-banner {
        min-height: 180px;
        padding: 1rem;
    }
}

/* ==========================================================================
   SUBSCRIBE POPUP
   ========================================================================== */
.subscribe-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.subscribe-popup.is-active {
    display: flex;
}

.subscribe-popup__content {
    background: var(--scf-white);
    padding: var(--spacing-2xl);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.subscribe-popup__close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--scf-gray-400);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .home-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .home-grid__sidebar-left,
    .home-grid__sidebar-right,
    .home-grid__main {
        display: contents;
    }

    /* Safari IntersectionObserver breaks inside display:contents parents —
       force all scroll-triggered animations visible on mobile */
    .home-grid .anim-folder,
    .home-grid .anim-rise,
    .home-grid .anim-reveal,
    .home-grid .anim-list,
    .state-page__grid .anim-folder,
    .state-page__grid .anim-rise,
    .state-page__grid .anim-reveal,
    .state-page__grid .anim-list {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        transition: none !important;
    }

    /* Constrain all widgets to viewport width on mobile */
    .home-grid [data-widget],
    .state-page__grid [data-widget] {
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    .state-page__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .state-page__col {
        display: contents;
    }

    .state-section__content {
        grid-template-columns: 1fr;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

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

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

    .btn {
        padding: 0.75rem 2rem;
    }
}

@media (max-width: 767px) {
    .header__inner {
        position: relative;
    }

    .header__nav {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        position: absolute;
        top: 100%;
        right: var(--spacing-md);
        width: auto;
        min-width: 200px;
        background: var(--scf-white);
        padding: var(--spacing-sm) 0;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        z-index: 999;
        clip-path: inset(0 0 100% 0);
        opacity: 0;
        pointer-events: none;
        transition: clip-path 0.3s ease, opacity 0.25s ease;
    }

    .header__nav.is-open {
        clip-path: inset(0 0 0 0);
        opacity: 1;
        pointer-events: auto;
    }

    .header__nav .header__nav-list {
        flex-direction: column;
        width: 100%;
    }

    .header__nav .header__nav-list li a {
        text-align: right;
        padding: 10px 20px;
    }

    /* Staggered fade-drop for menu items */
    .header__nav .header__nav-list li {
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .header__nav.is-open .header__nav-list li {
        opacity: 1;
        transform: translateY(0);
    }

    .header__nav.is-open .header__nav-list li:nth-child(1) { transition-delay: 0.05s; }
    .header__nav.is-open .header__nav-list li:nth-child(2) { transition-delay: 0.10s; }
    .header__nav.is-open .header__nav-list li:nth-child(3) { transition-delay: 0.15s; }
    .header__nav.is-open .header__nav-list li:nth-child(4) { transition-delay: 0.20s; }
    .header__nav.is-open .header__nav-list li:nth-child(5) { transition-delay: 0.25s; }
    .header__nav.is-open .header__nav-list li:nth-child(6) { transition-delay: 0.30s; }
    .header__nav.is-open .header__nav-list li:nth-child(7) { transition-delay: 0.35s; }
    .header__nav.is-open .header__nav-list li:nth-child(8) { transition-delay: 0.40s; }

    /* Subscribe button fades in last */
    .header__nav > .btn {
        opacity: 0;
        transform: translateY(-6px);
        transition: opacity 0.25s ease, transform 0.25s ease;
        margin: var(--spacing-sm) 20px var(--spacing-xs);
        align-self: stretch;
        text-align: center;
    }

    .header__nav.is-open > .btn {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.4s;
    }

    .header__toggle {
        display: flex;
    }

    .hero-banner--home {
        min-height: 180px;
    }

    .hero-banner {
        min-height: 150px;
    }

    .hero-banner--has-image,
    .hero-banner--home.hero-banner--has-image {
        min-height: 0;
    }

    .state-nav__list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .state-nav__list li a {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    .btn {
        padding: 0.75rem 1rem;
    }

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

    .smart-feed__grid {
        grid-template-columns: 1fr;
    }

    .video-card {
        flex-direction: column;
    }

    .video-card__button {
        flex-direction: column;
    }

    .video-card__thumbnail {
        width: 100%;
    }

    .video-card__info {
        padding: var(--spacing-sm);
    }

    .videos-page__filters {
        padding: 0 var(--spacing-sm);
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__links {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .mailing-bar__inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .mailing-bar__form,
    .mailing-bar .gform_wrapper,
    .mailing-bar .gform_wrapper form {
        width: 100% !important;
        flex-direction: column !important;
        gap: var(--spacing-sm) !important;
    }

    .mailing-bar__submit,
    .mailing-bar .gform_wrapper input[type="submit"],
    .mailing-bar .gform_wrapper button[type="submit"],
    .mailing-bar .gform_wrapper .gform-button {
        width: 100% !important;
    }

    .scorecard-header {
        align-items: center;
    }

    /* State page spacing */
    .state-page {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    /* Note: .state-page__col uses display:contents on mobile,
       so spacing is handled by grid gap on .state-page__grid */

    /* State section cards */
    .state-section {
        border-radius: 10px;
    }

    .state-section__content {
        padding: var(--spacing-md);
    }

    .state-section__header h2 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        letter-spacing: 1px;
        padding: 24px 16px;
    }

    /* State nav — snap carousel on mobile */
    .state-nav__inner {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    }

    .state-nav__inner::-webkit-scrollbar {
        display: none;
    }

    .state-nav__list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0;
        width: max-content;
    }

    .state-nav__list li {
        scroll-snap-align: center;
    }

    .state-nav__list li a {
        white-space: nowrap;
        padding: 0.5rem 0.75rem;
        font-size: 0.65rem;
    }

    /* Officials */
    .official-headshot {
        width: 55px !important;
        height: 55px !important;
    }

    .official-placeholder {
        width: 55px;
        height: 55px;
    }

    .official-name {
        font-size: 1rem;
    }

    .official-title {
        font-size: 0.8rem;
    }

    /* Polls */
    .poll-wrapper {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }

    .poll-title {
        font-size: 0.875rem;
        margin-bottom: var(--spacing-sm);
    }

    .poll-candidate-row {
        margin-bottom: 0.4rem;
    }

    .poll-candidate-row--leader .poll-bar-container {
        height: 26px;
    }

    .poll-bar-container {
        height: 22px;
        border-radius: 3px;
    }

    .poll-bar-label {
        font-size: 0.75rem;
        padding: 0 0.4rem;
    }

    .poll-percentage-text {
        font-size: 0.8125rem;
        margin-left: var(--spacing-xs);
    }

    .poll-card__title {
        font-size: 0.85rem;
    }

    /* Race accordion */
    .race-summary {
        padding: 0.75rem 1rem;
    }

    .race-title {
        font-size: 0.8125rem;
    }

    .race-content {
        padding: 0 1rem 1rem;
    }

    /* Candidate scores table */
    .candidate-scores-table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.8rem;
    }

    .candidate-scores-table th,
    .candidate-scores-table td {
        padding: 0.5rem 0.4rem;
        white-space: nowrap;
    }

    /* Scorecard table — constrain to viewport */
    [data-widget="candidate_scorecards"] {
        min-width: 0;
        overflow: hidden;
    }

    .scorecards-container {
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .scorecard-org-row {
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .scorecard-dropdown {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table.candidate-table {
        font-size: 0.75rem;
        width: 100%;
        min-width: 0;
    }

    .candidate-table th,
    .candidate-table td {
        padding: 6px 8px;
    }

    .candidate-table .col-cand {
        word-break: break-word;
    }

    .scorecard-org-row {
        padding: 12px 0;
    }

    /* Election races */
    .race-summary {
        padding: 0.625rem 0.75rem;
    }

    .race-title {
        font-size: 0.75rem;
    }

    .race-content {
        padding: 0 0.75rem 0.75rem;
        font-size: 0.85rem;
    }

    .race-icon {
        width: 14px;
        height: 14px;
    }

    table.candidate-table {
        font-size: 0.75rem;
    }

    .candidate-table th,
    .candidate-table td {
        padding: 6px 8px;
    }

    .cand-name {
        font-size: 0.75rem;
    }

    /* Business score */
    .business-score {
        padding: var(--spacing-md);
    }

    .business-score__number {
        font-size: 3rem;
    }

    /* CNBC banner */
    .cnbc-banner {
        min-height: 140px;
        padding: 0.75rem;
    }

    .cnbc-banner__rank {
        font-size: 2.5rem;
    }

    /* Political word */
    .political-word__title {
        font-size: 1.5rem;
    }

    .political-word__definition {
        font-size: 0.85rem;
    }

    /* Twitter feed — shrink slightly and center on mobile */
    .twitter-sidebar {
        max-width: 92%;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;
    }

    .twitter-sidebar .mobile-scroll-container {
        max-width: 100%;
        max-height: 400px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    /* Force Twitter embeds to respect container */
    .twitter-sidebar iframe,
    .twitter-sidebar blockquote,
    .twitter-sidebar .twitter-tweet {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* State page twitter — same treatment */
    [data-widget="political_updates"] {
        max-width: 92%;
        margin-left: auto;
        margin-right: auto;
    }

    [data-widget="political_updates"] iframe,
    [data-widget="political_updates"] blockquote,
    [data-widget="political_updates"] .twitter-tweet {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* News feed items */
    .news-feed__item {
        padding: var(--spacing-sm) 0;
    }

    /* Behind enemy headlines */
    .enemy-headlines__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }

    /* Section heading */
    .section-heading {
        font-size: 1.1rem;
    }

    /* Prevent horizontal overflow on mobile (use clip, not hidden, to preserve sticky) */
    html {
        overflow-x: clip;
        max-width: 100vw;
    }

    /* Force containers to respect viewport */
    .container,
    .home-content,
    .home-grid,
    .state-page,
    .state-page__grid,
    .state-page__col,
    .section,
    .mailing-bar__inner,
    img {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* ICS Calendar / POTUS schedule — prevent text overflow */
    .potus-schedule,
    .potus-schedule * {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .container {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }

    /* Prevent iOS auto-zoom on input focus (requires 16px minimum) */
    input[type="text"],
    input[type="email"],
    input[type="search"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Mailing bar input */
    .mailing-bar__input {
        width: 100% !important;
    }

    .mailing-bar .gform_wrapper .gform_body {
        min-width: 0;
        width: 100%;
    }

    .mailing-bar .gform_wrapper .gfield {
        min-width: 0;
    }

    /* Poll bars — keep fit-content so names stay readable, cap at 100% */
    .poll-bar-fill {
        min-width: fit-content;
        max-width: 100%;
    }

    /* SC Cases widget */
    .sc-cases-widget__dates {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Bookshelf widget */
    .bookshelf-widget .book-card__cover {
        width: 80px;
    }
}

/* ========================================
   SINGLE TEMPLATES
   ======================================== */

/* --- Single Book --- */
article.single-book {
    max-width: 900px;
    margin: 0 auto;
}

.single-book__layout {
    display: flex;
    gap: var(--spacing-2xl);
    align-items: flex-start;
}

.single-book__cover {
    flex-shrink: 0;
    width: 350px;
}

.single-book__cover img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.single-book__details {
    flex: 1;
}

.single-book__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--scf-navy);
    margin-bottom: var(--spacing-sm);
}

.single-book__author {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--scf-gray-600);
    margin-bottom: var(--spacing-lg);
}

.single-book__description p,
.single-book__excerpt p {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--scf-gray-700);
    margin-bottom: var(--spacing-md);
}

.single-book__back {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--scf-gray-200);
}

.single-book__back a {
    color: var(--scf-red);
    font-weight: 600;
    text-decoration: none;
}

.single-book__back a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .single-book__layout {
        flex-direction: column;
        align-items: center;
    }

    .single-book__cover {
        width: 200px;
    }
}

/* --- Single SC Case --- */
.single-case {
    max-width: 900px;
    margin: 0 auto;
}

.single-case__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--scf-navy);
    margin-bottom: var(--spacing-lg);
}

.single-case__dates {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    background: var(--scf-gray-50);
    border: 1px solid var(--scf-gray-200);
    border-radius: 8px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.single-case__date-item {
    text-align: center;
}

.single-case__date-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--scf-gray-500);
    margin-bottom: var(--spacing-xs);
}

.single-case__date-value {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--scf-navy);
}

.single-case__date-value--pending {
    color: var(--scf-gray-400);
    font-style: italic;
}

.single-case__description p {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--scf-gray-700);
    margin-bottom: var(--spacing-md);
}

.single-case__back {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--scf-gray-200);
}

.single-case__back a {
    color: var(--scf-red);
    font-weight: 600;
    text-decoration: none;
}

.single-case__back a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .single-case__dates {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Single Dictionary --- */
.single-dictionary {
    max-width: 700px;
    margin: 0 auto;
}

.single-dictionary__word {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.single-dictionary__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--scf-navy);
}

.single-dictionary__type {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--scf-gray-500);
}

.single-dictionary__definition p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--scf-gray-700);
    margin-bottom: var(--spacing-md);
}

.single-dictionary__back {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--scf-gray-200);
}

.single-dictionary__back a {
    color: var(--scf-red);
    font-weight: 600;
    text-decoration: none;
}

.single-dictionary__back a:hover {
    text-decoration: underline;
}

/* --- Single Source --- */
.single-source {
    max-width: 800px;
    margin: 0 auto;
}

.single-source__card {
    display: flex;
    gap: var(--spacing-2xl);
    align-items: flex-start;
}

.single-source__image {
    flex-shrink: 0;
    width: 200px;
}

.single-source__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.single-source__details {
    flex: 1;
}

.single-source__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--scf-navy);
    margin-bottom: var(--spacing-sm);
}

.single-source__meta {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--scf-gray-600);
    margin-bottom: var(--spacing-lg);
}

.single-source__excerpt p {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--scf-gray-700);
    margin-bottom: var(--spacing-lg);
}

.single-source__back {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--scf-gray-200);
}

.single-source__back a {
    color: var(--scf-red);
    font-weight: 600;
    text-decoration: none;
}

.single-source__back a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .single-source__card {
        flex-direction: column;
        align-items: center;
    }

    .single-source__image {
        width: 160px;
    }
}

/* --- Single Poll --- */
.single-poll {
    max-width: 800px;
    margin: 0 auto;
}

.single-poll__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--scf-navy);
    margin-bottom: var(--spacing-sm);
}

.single-poll__source {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--scf-gray-600);
    margin-bottom: var(--spacing-lg);
}

.single-poll__source a {
    color: var(--scf-red);
    text-decoration: underline;
}

.single-poll__leader {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md);
    background: var(--scf-gray-50);
    border-radius: 8px;
}

.single-poll__leader-label {
    font-weight: 600;
    color: var(--scf-gray-600);
}

.single-poll__leader-name {
    font-weight: 700;
}

.single-poll__spread {
    font-weight: 700;
    color: var(--scf-gray-600);
}

.party--rep {
    color: #c0392b;
}

.party--dem {
    color: #2980b9;
}

.party--other {
    color: var(--scf-gray-600);
}

.single-poll__candidates h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--scf-navy);
    margin-bottom: var(--spacing-md);
}

.single-poll__candidate {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.single-poll__candidate-info {
    flex-shrink: 0;
    width: 180px;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.single-poll__candidate-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.single-poll__candidate-party {
    font-size: 0.75rem;
    font-weight: 700;
}

.single-poll__bar-track {
    flex: 1;
    height: 24px;
    background: var(--scf-gray-100);
    border-radius: 4px;
    overflow: hidden;
}

.single-poll__bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.single-poll__bar-fill.party--rep {
    background: #c0392b;
}

.single-poll__bar-fill.party--dem {
    background: #2980b9;
}

.single-poll__bar-fill.party--other {
    background: var(--scf-gray-400);
}

.single-poll__candidate-pct {
    flex-shrink: 0;
    width: 50px;
    text-align: right;
    font-weight: 700;
    font-size: 0.95rem;
}

.single-poll__back {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--scf-gray-200);
}

.single-poll__back a {
    color: var(--scf-red);
    font-weight: 600;
    text-decoration: none;
}

.single-poll__back a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .single-poll__candidate {
        flex-wrap: wrap;
    }

    .single-poll__candidate-info {
        width: 100%;
    }
}

/* --- Single Video (campaign-video & video) --- */
article.single-video {
    max-width: 900px;
    margin: 0 auto;
}

.single-video__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--scf-navy);
    margin-bottom: var(--spacing-sm);
}

.single-video__meta {
    display: flex;
    gap: var(--spacing-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--scf-gray-500);
    margin-bottom: var(--spacing-xl);
}

.single-video__states {
    color: var(--scf-red);
    font-weight: 600;
}

.single-video__player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: var(--spacing-xl);
    border-radius: 8px;
    overflow: hidden;
    background: var(--scf-black);
}

.single-video__player iframe,
.single-video__player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.single-video__player .btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.single-video__excerpt p {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--scf-gray-700);
}

.single-video__back {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--scf-gray-200);
}

.single-video__back a {
    color: var(--scf-red);
    font-weight: 600;
    text-decoration: none;
}

.single-video__back a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   SCROLL-TRIGGERED ANIMATIONS
   ========================================================================== */

/* ------------------------------------------------------------------
   Reduced Motion: disable all scroll-triggered animations
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .anim-rise,
    .anim-reveal,
    .anim-folder,
    .anim-list,
    .anim-pulse {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        transition: none !important;
        animation: none !important;
    }
    .cnbc-banner {
        animation: none !important;
    }
}

/* ------------------------------------------------------------------
   1. Official Cards — Staggered Rise
   ------------------------------------------------------------------ */
.anim-rise {
    opacity: 0;
    transform: translateY(15px);
    transition:
        opacity 400ms cubic-bezier(0.16, 1, 0.3, 1) var(--anim-delay, 0ms),
        transform 400ms cubic-bezier(0.16, 1, 0.3, 1) var(--anim-delay, 0ms);
}

.anim-rise.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-rise .official-name,
.anim-rise .official-title {
    opacity: 0;
    transition: opacity 250ms ease calc(var(--anim-delay, 0ms) + 150ms);
}

.anim-rise.is-visible .official-name,
.anim-rise.is-visible .official-title {
    opacity: 1;
}

/* ------------------------------------------------------------------
   2. Video / BEL — Masked Reveal
   ------------------------------------------------------------------ */
.anim-reveal {
    clip-path: inset(8% 8% 8% 8%);
    opacity: 0;
    transition:
        clip-path 400ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 300ms ease;
}

.anim-reveal.is-visible {
    clip-path: inset(0% 0% 0% 0%);
    opacity: 1;
}

.enemy-headlines__grid.anim-reveal {
    clip-path: none;
    transform: translateY(15px);
    transition:
        opacity 400ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.enemy-headlines__grid.anim-reveal.is-visible {
    clip-path: none;
    transform: translateY(0);
}

/* ------------------------------------------------------------------
   3. Poll Bars — Grow from 0% (override existing 0.6s ease)
   ------------------------------------------------------------------ */
.poll-bar-fill[data-target-width] {
    transition: width 800ms cubic-bezier(0.65, 0, 0.35, 1);
}

/* ------------------------------------------------------------------
   4. State / Homepage — Folder Open Sequence
   ------------------------------------------------------------------ */
.anim-folder {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 350ms ease var(--anim-delay, 0ms),
        transform 350ms cubic-bezier(0.16, 1, 0.3, 1) var(--anim-delay, 0ms);
}

.anim-folder.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------------------------------------------------------
   5. News List — Hover Accent Bar
   ------------------------------------------------------------------ */
.news-feed li {
    position: relative;
    transition: padding-left 200ms ease;
}

.news-feed li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--scf-red-flag);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 200ms ease, width 200ms ease;
}

.news-feed li:hover {
    padding-left: 12px;
}

.news-feed li:hover::before {
    transform: scaleY(1);
    width: 3px;
}

/* ------------------------------------------------------------------
   6. Polling Pulse — Leader Percentage
   ------------------------------------------------------------------ */
@keyframes pollPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.anim-pulse {
    display: inline-block;
    animation: pollPulse 3s ease-in-out 1s infinite;
}

/* ------------------------------------------------------------------
   7. News List — Fade + Shift Stagger
   ------------------------------------------------------------------ */
.anim-list {
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 250ms cubic-bezier(0.25, 0.1, 0.25, 1) var(--anim-delay, 0ms),
        transform 250ms cubic-bezier(0.25, 0.1, 0.25, 1) var(--anim-delay, 0ms);
}

.anim-list.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */
.error-404 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    padding: var(--spacing-2xl) var(--spacing-lg);
    text-align: center;
}

.error-404__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--scf-red);
    margin: 0 0 var(--spacing-md);
}

.error-404__message {
    font-size: 1.1rem;
    color: var(--scf-gray-600);
    margin: 0 0 var(--spacing-xl);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.error-404__actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.error-404__btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    background: var(--scf-red);
    color: var(--scf-white);
}

.error-404__btn:hover {
    background: var(--scf-red-hover);
    color: var(--scf-white);
}

.error-404__btn--outline {
    background: transparent;
    color: var(--scf-navy);
    border: 2px solid var(--scf-navy);
}

.error-404__btn--outline:hover {
    background: var(--scf-navy);
    color: var(--scf-white);
}

/* ==========================================================================
   SEARCH RESULTS
   ========================================================================== */
.search-results {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.search-results__header {
    margin-bottom: var(--spacing-2xl);
}

.search-results__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--scf-gray-800);
    margin: 0 0 var(--spacing-md);
}

.search-results__query {
    color: var(--scf-red);
}

.search-results__form {
    max-width: 400px;
}

.search-results__list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.search-results__item {
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--scf-gray-200);
}

.search-results__item-type {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--scf-red);
    margin-bottom: var(--spacing-xs);
}

.search-results__item-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 var(--spacing-xs);
}

.search-results__item-title a {
    color: var(--scf-gray-800);
    text-decoration: none;
}

.search-results__item-title a:hover {
    color: var(--scf-red);
}

.search-results__item-excerpt {
    font-size: 0.9rem;
    color: var(--scf-gray-600);
    margin: 0;
    line-height: 1.6;
}

.search-results__none {
    text-align: center;
    padding: var(--spacing-2xl) 0;
    color: var(--scf-gray-500);
}

.search-results__none .search-results__form {
    margin: var(--spacing-lg) auto 0;
}

.search-results__pagination {
    margin-top: var(--spacing-2xl);
}

.search-results__pagination .nav-links {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.search-results__pagination a,
.search-results__pagination span {
    display: inline-block;
    padding: 8px 14px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
}

.search-results__pagination a {
    color: var(--scf-gray-700);
    background: var(--scf-gray-100);
}

.search-results__pagination a:hover {
    background: var(--scf-red);
    color: var(--scf-white);
}

.search-results__pagination .current {
    background: var(--scf-red);
    color: var(--scf-white);
}

/* ==========================================================================
   THE SOURCE — Carousel Widget
   All categories (TV, Radio, Podcast) stacked vertically.
   Each section: gradient header bar + horizontal card carousel with arrows.
   ========================================================================== */
.source-carousel {
    overflow: hidden;
}

/* ---- Section (one per category) ---- */
.source-section {
    margin-bottom: 18px;
}

.source-section:last-child {
    margin-bottom: 0;
}

/* ---- Section header — gradient bar ---- */
.source-section__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(to right, var(--scf-red), var(--scf-red-dark));
    border-radius: 6px 6px 0 0;
}

.source-section__icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.85);
}

.source-section__label {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--scf-white);
}

/* ---- Section body — track + side arrows ---- */
.source-section__body {
    position: relative;
    background: var(--scf-white);
    border: 1px solid var(--scf-gray-200);
    border-top: none;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

/* ---- Side arrows ---- */
.source-section__arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: background 0.15s;
    padding: 0;
}

.source-section__arrow--prev {
    left: 0;
    border-right: 1px solid var(--scf-gray-200);
    border-radius: 0 0 0 6px;
}

.source-section__arrow--next {
    right: 0;
    border-left: 1px solid var(--scf-gray-200);
    border-radius: 0 0 6px 0;
}

.source-section__arrow:hover:not(:disabled) {
    background: var(--scf-gray-100);
}

.source-section__arrow:disabled {
    opacity: 0.2;
    cursor: default;
}

.source-section__arrow svg {
    width: 14px;
    height: 14px;
    color: var(--scf-gray-600);
}

/* ---- Track — horizontal scroll with snap ---- */
.source-section__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 28px;
    padding: 14px 0;
    gap: 14px;
}

.source-section__track::-webkit-scrollbar {
    display: none;
}

/* ---- Cards — horizontal, 3 visible at a time ---- */
.source-card {
    flex: 0 0 calc(33.333% - 10px);
    min-width: 140px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    scroll-snap-align: start;
    padding: 0;
}

/* Rank number */
.source-card__rank {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--scf-red);
    line-height: 1;
    flex-shrink: 0;
}

/* Card body */
.source-card__body {
    flex: 1;
    min-width: 0;
}

.source-card__title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--scf-gray-800);
    text-decoration: none;
    display: block;
    line-height: 1.3;
}

a.source-card__title:hover {
    color: var(--scf-red);
}

.source-card__desc {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--scf-gray-500);
    margin: 3px 0 0;
    line-height: 1.35;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .source-section {
        margin-bottom: 14px;
    }

    .source-section__header {
        padding: 8px 12px;
        gap: 6px;
    }

    .source-section__label {
        font-size: 0.85rem;
    }

    .source-section__icon {
        font-size: 15px;
        width: 15px;
        height: 15px;
    }

    .source-section__track {
        gap: 10px;
        margin: 0 24px;
        padding: 10px 0;
    }

    .source-section__arrow {
        width: 24px;
    }

    .source-card {
        flex: 0 0 calc(50% - 5px);
        min-width: 120px;
    }

    .source-card__rank {
        font-size: 1.2rem;
    }

    .source-card__title {
        font-size: 0.8rem;
    }

    .source-card__desc {
        font-size: 0.7rem;
    }
}

@media (max-width: 400px) {
    .source-card {
        flex: 0 0 80%;
    }
}
