/**
 * Texas Bullpen — Main Stylesheet
 *
 * Design tokens extracted from Elementor site-settings.json.
 * All styles use CSS custom properties — no hardcoded colors.
 *
 * @package TexasBullpen
 */

/* ================================================================
   0. Custom Fonts
   ================================================================ */

@font-face {
    font-family: 'Rockwell';
    src: url('../fonts/Rockwell-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rockwell';
    src: url('../fonts/Rockwell-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Replay Pro';
    src: url('../fonts/ReplayPro-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ================================================================
   1. Design Tokens
   ================================================================ */

:root {
    /* Colors */
    --tx-red: #98080C;
    --tx-red-dark: #7a0609;
    --tx-black: #000000;
    --tx-accent: #436F88;
    --tx-accent-dark: #365a6f;
    --tx-white: #FFFFFF;
    --tx-alt-bg: #F1F4F8;
    --tx-gray: #6D757F;

    /* Market movement (up/down/flat) — used by the Kalshi ticker + dashboard */
    --tx-up: #1a7f37;
    --tx-down: #c0341d;
    --tx-flat: var(--tx-gray);
    --tx-gray-light: #D9D9D9;
    --tx-white-50: rgba(255, 255, 255, 0.5);
    --tx-white-30: rgba(255, 255, 255, 0.3);
    --tx-white-10: rgba(255, 255, 255, 0.1);

    /* Scoville Scale heat colors */
    --tx-mild-1: #45B545;
    --tx-mild-2: #7EA23E;
    --tx-medium: #D4A017;
    --tx-hot: #E86100;
    --tx-extra-hot: #C4302B;
    --tx-super-hot: #98080C;

    /* Typography */
    --tx-font-heading: 'Rockwell', Georgia, serif;
    --tx-font-body: 'Replay Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --tx-font-secondary: 'Lora', Georgia, serif;
    --tx-font-meta: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Heading scale (responsive clamp from Elementor) */
    --tx-h1: clamp(2.8rem, 2.341vw + 2.332rem, 4rem);
    --tx-h2: clamp(2.4rem, 1.561vw + 2.088rem, 3.2rem);
    --tx-h3: clamp(2rem, 1.561vw + 1.688rem, 2.8rem);
    --tx-h4: clamp(1.6rem, 1.561vw + 1.288rem, 2.4rem);
    --tx-h5: clamp(1.4rem, 1.171vw + 1.166rem, 2rem);
    --tx-h6: clamp(1.2rem, 0.78vw + 1.044rem, 1.6rem);

    /* Layout */
    --tx-container: 1400px;
    --tx-container-narrow: 800px;
    --tx-gap: 1.5rem;

    /* Shadows */
    --tx-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --tx-shadow-md: 0 6px 10px rgba(0, 0, 0, 0.2);
    --tx-shadow-inset: inset 0 10px 10px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --tx-transition: 0.2s ease;
}

/* ================================================================
   2. Reset & Base
   ================================================================ */

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

html {
    overscroll-behavior: none;
    -webkit-text-size-adjust: 100%;
}

html,
body {
    overflow-x: clip;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--tx-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--tx-black);
    background-color: var(--tx-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: var(--tx-accent);
    text-decoration: none;
    transition: color var(--tx-transition);
}

a:hover {
    color: var(--tx-accent-dark);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ---- WordPress core content classes ----
   The editor emits these on images and captions in every WYSIWYG field. The theme
   styled none of them, so `.aligncenter` was inert — and because `img` is
   `display: block` above, every editor-centred image (e.g. in-article ad creatives)
   rendered flush left instead of centred. */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
}

.alignnone {
    height: auto;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.wp-caption img {
    margin-bottom: 0.5rem;
}

.wp-caption-text,
figcaption {
    font-family: var(--tx-font-meta);
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--tx-gray);
    text-align: center;
    margin: 0.5rem 0 0;
}

/* WP core a11y helper — emitted by search forms and skip links. */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ================================================================
   3. Typography
   ================================================================ */

h1, h2, h3, h4 {
    font-family: var(--tx-font-heading);
    font-weight: 700 !important;
    line-height: 1.2;
    margin: 0 0 0.5em;
    color: var(--tx-black);
}

h5, h6 {
    font-family: var(--tx-font-secondary);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5em;
    color: var(--tx-black);
}

h1 { font-size: var(--tx-h1); }
h2 { font-size: var(--tx-h2); }
h3 { font-size: var(--tx-h3); }
h4 { font-size: var(--tx-h4); }
h5 { font-size: var(--tx-h5); }
h6 { font-size: var(--tx-h6); }

p {
    margin: 0 0 1em;
}

.meta {
    font-family: var(--tx-font-meta);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--tx-gray);
    letter-spacing: 0.02em;
}

.label {
    display: inline-block;
    font-family: var(--tx-font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2em 0.6em;
    background-color: var(--tx-red);
    color: var(--tx-white);
}

/* Fix #19: Text-only label variant (no background) */
.label--text {
    background: none;
    color: var(--tx-red);
    padding: 0;
    font-size: 0.7rem;
}

/* ================================================================
   4. Layout
   ================================================================ */

.container {
    max-width: var(--tx-container);
    margin: 0 auto;
    padding: 3rem 1rem;
}

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

.two-col {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Fix #31: 4-column grid modifier for homepage category sections */
.stories-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Top Articles 2-column layout (featured left + list right) */
.top-articles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.top-articles__featured {
    /* Featured card fills left column */
}

.top-articles__sidebar {
    display: flex;
    flex-direction: column;
}

.section-heading {
    font-family: var(--tx-font-heading);
    font-size: var(--tx-h5);
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
}

/* Top Articles header — full-width gray line with red accent */
.top-articles-header {
    position: relative;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.75rem;
    margin-bottom: 1.75rem;
}

.top-articles-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 48px;
    height: 3px;
    background-color: #CC0000;
}

.top-articles-header__title {
    font-family: var(--tx-font-heading);
    font-size: var(--tx-h4);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

/* Fix #32: Red section heading uses LEFT bar (not bottom border) to match production */
.section-heading--red {
    border-bottom: none;
    border-left: 4px solid #c8102e;
    padding-left: 10px;
    padding-bottom: 0;
    color: #000000;
}

/* Fix #38: Section divider between homepage category sections */
.section-divider {
    border: none;
    border-top: 1px solid var(--tx-gray-light);
    margin: 0;
}

/* Fix #39: Section header flex row with "View All" link */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header .section-heading {
    margin-bottom: 0;
}

.section-header__link {
    font-family: var(--tx-font-meta);
    font-size: 12px;
    font-weight: 700;
    color: #375b70;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.section-header__link:hover {
    color: var(--tx-accent-dark);
}

/* ================================================================
   5. Buttons
   ================================================================ */

.btn {
    display: inline-block;
    font-family: var(--tx-font-heading);
    font-size: 0.813rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.02em;
    padding: 0.875rem 1.5rem 0.625rem; /* optical vertical center — Rockwell rides high */
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color var(--tx-transition), color var(--tx-transition);
    text-decoration: none;
    text-align: center;
}

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

.btn--red:hover {
    background-color: var(--tx-red-dark);
    color: var(--tx-white);
}

.btn--accent {
    background-color: var(--tx-accent);
    color: #ffffff;
}

.btn--accent:hover {
    background-color: var(--tx-black);
    color: #ffffff;
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--tx-white);
    color: var(--tx-white);
}

.btn--outline:hover {
    background-color: var(--tx-white);
    color: var(--tx-black);
}

.btn--small {
    display: inline-block;
    margin: 0;
    font-size: 0.75rem;
    padding: 0.75rem 1.5rem;
}

/* ================================================================
   6. Forms
   ================================================================ */

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea,
select {
    font-family: var(--tx-font-body);
    font-size: 1rem;
    padding: 0.6rem 1rem;
    border: 1px solid var(--tx-gray-light);
    background-color: var(--tx-white);
    color: var(--tx-black);
    width: 100%;
    transition: border-color var(--tx-transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--tx-accent);
    outline-offset: 1px;
    border-color: var(--tx-accent);
}

/* ================================================================
   7. Callout Bar
   ================================================================ */

.callout-bar {
    background-color: var(--tx-red);
    color: var(--tx-white);
    font-family: var(--tx-font-heading);
    font-size: 0.813rem;
}

.callout-bar__inner {
    max-width: var(--tx-container);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.callout-bar a {
    color: var(--tx-white);
    text-decoration: none;
}

.callout-bar a:hover {
    text-decoration: underline;
    color: var(--tx-white);
}

.callout-bar a.callout-bar__btn {
    color: var(--tx-red);
}

.callout-bar a.callout-bar__btn:hover {
    color: var(--tx-red);
}

.callout-bar__left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.45rem 0;
}

.callout-bar__center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.45rem 0;
}

.callout-bar__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.callout-bar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-weight: 500;
    text-transform: none;
}

.callout-bar__link svg {
    flex-shrink: 0;
}

/* Login/Logout button — solid white on red bar */
.callout-bar__btn {
    font-family: var(--tx-font-heading);
    font-size: 0.813rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--tx-red);
    background: var(--tx-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    text-transform: none;
    display: flex;
    align-items: center;
    transition: background-color var(--tx-transition), color var(--tx-transition);
}

.callout-bar__btn:hover {
    background-color: var(--tx-alt-bg);
    color: var(--tx-red);
}

/* ================================================================
   8. Site Header / Navigation (Two-Row Stacked Layout)
   ================================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--tx-white);
    transition: box-shadow var(--tx-transition), transform 0.3s ease;
}

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

.site-header--hidden {
    transform: translateY(-100%);
}

/* Row 1: Search | Logo (centered) | Store + Account */
.site-header__top {
    max-width: var(--tx-container);
    margin: 0 auto;
    padding: 2rem 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Daily Bull singles: header artwork carried over from the pre-launch design.
   Both images sit on .site-header (not __top) so they span the FULL header — logo row
   plus nav row — matching the old Elementor header element, which contained both and
   scaled the longhorn to its whole 168px height. Putting them on __top clipped the bull
   mid-body at the row boundary. .site-header is already full-bleed, so no 100vw trick. */
.single-daily-bull .site-header {
    background-image: url('../img/db-overlay.webp'), url('../img/db-bull.webp');
    background-position: center left, center right;
    background-repeat: no-repeat, no-repeat;
    background-size: contain, contain;
}

/* Mobile: this theme's hamburger sits top-right, directly over the longhorn (the old
   Elementor header put it top-left, so it never collided). Drop the bull below 768px —
   a dark icon on dark artwork is unreadable. The left-hand texture has no conflict. */
@media (max-width: 767px) {
    .single-daily-bull .site-header {
        background-image: url('../img/db-overlay.webp');
        background-position: center left;
        background-size: contain;
    }
}

/* Scoville singles: heat bar as a 10px strip on the header's bottom edge, plus the
   left-hand texture. Same placement staging uses — both on .site-header, so they span
   logo row + nav row and ride the sticky header. Replaces the standalone
   .newsletter-heat-bar div that used to sit above the article. */
.single-scoville-scale .site-header {
    background-image: url('../img/scoville-texture.webp'), url('../img/nl-heat-bar.webp');
    background-position: center left, center bottom;
    background-repeat: no-repeat, no-repeat;
    background-size: contain, 100% 10px;
}

/* Fault Line singles: star overlays on both header edges. */
.single-fault-line .site-header {
    background-image: url('../img/fl-overlay-left.webp'), url('../img/fl-overlay-right.webp');
    background-position: center left, center right;
    background-repeat: no-repeat, no-repeat;
    background-size: contain, contain;
}

/* Fourth Reading singles: texture left, Capitol dome right. */
.single-fourth-reading .site-header {
    background-image: url('../img/fr-overlay-left.webp'), url('../img/fr-overlay-right.webp');
    background-position: center left, center right;
    background-repeat: no-repeat, no-repeat;
    background-size: contain, contain;
}

/* Always-visible search field (left side) */
.site-header__search {
    flex: 0 0 200px;
}

.header-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-form svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tx-gray);
    pointer-events: none;
}

.header-search-form input[type="search"] {
    border: 1px solid var(--tx-gray-light);
    border-radius: 20px;
    padding: 0.45rem 0.75rem 0.45rem 35px;
    font-size: 0.813rem;
    font-family: var(--tx-font-body);
    outline: none;
    width: 100%;
    background: transparent;
    color: var(--tx-gray);
}

.header-search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--tx-accent);
}

/* Logo (centered, large) */
.site-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex-shrink: 0;
}

.site-header__logo img {
    max-height: 50px;
    width: auto;
}

/* Right actions: Store + Subscribe/Account */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

/* Row 2: Centered Navigation */
.site-header__nav {
    display: flex;
    justify-content: center;
    max-width: var(--tx-container);
    margin: 0 auto;
    border-bottom: 1px solid var(--tx-alt-bg);
    padding: 0 1.5rem 0.75rem;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: space-between;
    width: 100%;
}

.nav-links li {
    position: relative;
}

/* Nav items: bold, wider spacing to match production */
.nav-links > li > a {
    display: block;
    font-family: var(--tx-font-heading);
    font-size: 0.938rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--tx-black);
    padding: 0.75rem 12px;
    text-decoration: none;
    transition: color var(--tx-transition);
    position: relative;
}

.nav-links .sub-menu a {
    font-family: var(--tx-font-heading);
    font-size: 0.813rem;
    font-weight: 400;
    color: var(--tx-black);
    display: block;
    padding: 0.4rem 1.25rem;
    text-decoration: none;
    transition: color var(--tx-transition);
}

/* Active / hover: red text + underline bar */
.nav-links > li > a:hover,
.nav-links > li.current-menu-item > a,
.nav-links > li.current_page_item > a {
    color: var(--tx-red);
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 3px;
    background: var(--tx-red);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-links > li > a:hover::after,
.nav-links > li.current-menu-item > a::after,
.nav-links > li.current_page_item > a::after {
    transform: scaleX(1);
}

/* Dropdown arrow on items with children — appended after link text */
.nav-links > li.menu-item-has-children > a {
    padding-right: 2rem;
}

.nav-links > li.menu-item-has-children > a::before {
    content: '';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}

/* Dropdown menus */
.nav-links .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--tx-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 999;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

/* Hide ghost menu items */
#menu-item-230 { display: none !important; }

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

.nav-links .sub-menu a:hover {
    color: var(--tx-red);
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--tx-black);
    transition: transform var(--tx-transition);
}

/* ================================================================
   9. Trending Bar — scrolling ticker, 1 item per visible column-slot
      3 cols desktop / 2 cols tablet / hidden mobile
      Item widths set by JS (sizeTrendingItems)
   ================================================================ */

.trending-bar {
    background-color: var(--tx-accent);
    color: var(--tx-white);
    padding: 1.1rem 0;
}

.trending-bar__inner {
    max-width: var(--tx-container);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow: hidden;
}

/* Bold italic label with right separator */
.trending-bar__label {
    font-family: var(--tx-font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    font-style: italic;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--tx-white);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding-right: 2rem;
    -webkit-font-smoothing: antialiased;
}

.trending-bar__track {
    overflow: hidden;
    display: flex;
    flex: 1;
    min-width: 0;
}

.trending-bar__runner {
    display: flex;
    gap: 2rem;
    flex-shrink: 0;
    padding-right: 2rem;
    animation: ticker 60s linear infinite;
    will-change: transform;
}

.trending-bar__track:hover .trending-bar__runner {
    animation-play-state: paused;
}

@keyframes ticker {
    to { transform: translateX(-100%); }
}

/* Width set by JS; white-space normal for 2-line wrapping */
.trending-bar__item {
    flex-shrink: 0;
    white-space: normal;
}

.trending-bar__item a {
    color: #ffffff;
    font-family: var(--tx-font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 0.4em;
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.trending-bar__item a:hover {
    text-decoration: underline;
    color: var(--tx-white);
}

/* Clamp each headline to exactly 2 lines */
.trending-bar__item a span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Flame icon aligned to first text line */
.trending-bar__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    opacity: 0.85;
}

/* --- Kalshi market ticker items (stock-ticker style, single line) --- */
.trending-bar--kalshi .trending-bar__item {
    white-space: nowrap;
}

/* "Markets" label links to the dashboard */
a.trending-bar__label--link,
a.trending-bar__label--link:visited {
    color: var(--tx-white);
    text-decoration: none;
}

a.trending-bar__label--link:hover {
    text-decoration: underline;
}

.trending-bar__item--market a {
    align-items: center;
    gap: 0.5em;
    white-space: nowrap;
    line-height: 1.2;
}

/* Undo the 2-line headline clamp (inherited from .trending-bar__item a span). */
.trending-bar__item--market a span {
    display: inline-block;
    -webkit-line-clamp: none;
    overflow: visible;
    vertical-align: middle;
}

.trending-bar__ticker {
    font-family: var(--tx-font-meta);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.8;
}

.trending-bar__mkt-label {
    max-width: 22ch;
    overflow: hidden !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.92;
}

.trending-bar__pct {
    font-weight: 800;
    font-size: 0.95rem;
}

.trending-bar__delta {
    font-family: var(--tx-font-meta);
    font-size: 0.78rem;
    font-weight: 700;
}

/* Lightened for contrast on the teal accent background. */
.trending-bar__delta--up   { color: #7CFFA0; }
.trending-bar__delta--down { color: #FFB4A8; }
.trending-bar__delta--flat { color: rgba(255, 255, 255, 0.6); }

/* ================================================================
   10. Mobile Menu
   ================================================================ */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    background: var(--tx-white);
    z-index: 200;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
}

.mobile-menu--open {
    right: 0;
}

.mobile-menu__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    display: none;
}

.mobile-menu--open ~ .mobile-menu__overlay,
.menu-open .mobile-menu__overlay {
    display: block;
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--tx-gray-light);
}

.mobile-menu__close {
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-menu__search {
    padding: 1rem 1rem 0;
}

.mobile-menu__search .header-search-form input[type="search"] {
    padding: 0.6rem 0.75rem 0.6rem 35px;
    font-size: 0.9375rem;
    color: var(--tx-black);
}

.mobile-menu__nav {
    padding: 1rem;
}

.mobile-menu__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu__nav li {
    border-bottom: 1px solid var(--tx-alt-bg);
}

.mobile-menu__nav a {
    display: block;
    padding: 0.75rem 0;
    font-family: var(--tx-font-heading);
    font-size: 1rem;
    color: var(--tx-black);
}

.mobile-menu__nav a:hover {
    color: var(--tx-red);
}

/* Submenu accordion — row holds the parent label + caret, sub-menu drops below */
.mobile-menu__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-menu__row > a {
    flex: 1 1 auto;
}

.mobile-menu__submenu-toggle {
    flex: 0 0 44px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    padding: 0;
    color: var(--tx-black);
    cursor: pointer;
}

.mobile-menu__submenu-toggle svg {
    transition: transform var(--tx-transition);
}

.mobile-menu__submenu-toggle[aria-expanded="true"] {
    color: var(--tx-red);
}

.mobile-menu__submenu-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* Collapsed only once JS has wired the toggles — no-JS keeps them open */
.mobile-menu__nav--accordion .sub-menu {
    display: none;
}

.mobile-menu__nav--accordion .menu-item-has-children.is-open > .sub-menu {
    display: block;
}

.mobile-menu__nav .sub-menu {
    padding-bottom: 0.25rem;
}

.mobile-menu__nav .sub-menu a {
    padding: 0.6rem 0 0.6rem 1rem;
    font-size: 0.9375rem;
    color: var(--tx-gray);
}

.mobile-menu__nav .sub-menu a:hover {
    color: var(--tx-red);
}

.mobile-menu__nav .sub-menu li:last-child {
    border-bottom: none;
}

/* #8: Mobile menu section labels for newsletter grouping */
.mobile-menu__section-label {
    font-family: var(--tx-font-meta);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tx-gray);
    padding: 0.75rem 0 0.25rem;
    border-bottom: none !important;
}

.mobile-menu__actions {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ================================================================
   11. Cards
   ================================================================ */

/* Story Card (grid) */
.card-story {
    display: flex;
    flex-direction: column;
    background: var(--tx-white);
}

/* Fix #40: Image zoom on hover */
.card-story__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-story__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease;
}

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

.card-story__label {
    position: absolute;
    bottom: 0;
    left: 0;
    white-space: nowrap;
}

.card-story__body {
    padding: 0.75rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-story__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    align-items: center;
    font-family: var(--tx-font-meta);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--tx-gray);
    margin-bottom: 0.4rem;
}

.card-story__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-story__meta-item svg {
    flex-shrink: 0;
    opacity: 0.6;
    width: 14px;
    height: 14px;
}

.card-story__avatar {
    width: 18px;
    height: 18px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
}

.card-story__title {
    font-family: var(--tx-font-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 0.4rem;
}

.card-story__title a {
    color: var(--tx-black);
    text-decoration: none;
}

.card-story__title a:hover {
    color: var(--tx-red);
}

.card-story__excerpt {
    font-family: var(--tx-font-body);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--tx-gray);
    margin: 0;
}

.card-story__external-icon {
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    margin-left: 0.3em;
    vertical-align: middle;
}

/* Correction badge */
.card-story__correction {
    display: inline-block;
    font-family: var(--tx-font-meta);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #c8102e;
    margin-left: 8px;
}

/* Newsletter List Card — horizontal row layout */
.card-story--list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    border-bottom: 1px solid var(--tx-gray-light);
    box-shadow: none;
}

.card-story--list:hover {
    box-shadow: none;
}

.card-story--list .card-story__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 75%;
    padding: 0;
}

.card-story--list .card-story__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tx-black);
}

.card-story--list .card-story__title a {
    color: var(--tx-black);
    text-decoration: none;
}

.card-story--list .card-story__title a:hover {
    color: var(--tx-red);
}

.card-story--list .card-story__meta {
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.03em;
    color: var(--tx-gray);
    font-weight: 500;
    margin-bottom: 0;
}

/* Continue Reading button */
.btn-read-more {
    flex-shrink: 0;
    display: inline-block;
    background-color: var(--tx-red);
    color: var(--tx-white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    text-transform: none;
    font-size: 0.813rem;
    font-weight: 700;
    font-family: var(--tx-font-heading);
    white-space: nowrap;
    transition: background-color var(--tx-transition);
}

.btn-read-more:hover {
    background-color: var(--tx-accent);
    color: var(--tx-white);
}

/* Featured Card — image above, content below (no overlay) */
.card-featured {
    display: flex;
    flex-direction: column;
}

.card-featured__image {
    overflow: hidden;
    border-radius: 0.25rem;
}

.card-featured__image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.card-featured__body {
    padding: 0.75rem 0 0;
}

.card-featured__title {
    font-family: var(--tx-font-secondary);
    font-size: clamp(1.4rem, 1.171vw + 1.166rem, 2rem);
    font-weight: 500;
    line-height: 1.3;
    margin: 0.25rem 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-featured__title a {
    color: var(--tx-black);
}

.card-featured__title a:hover {
    color: var(--tx-red);
}

.card-featured__meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-family: var(--tx-font-meta);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--tx-gray);
    flex-wrap: wrap;
}

.card-featured__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-featured__meta-item svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.card-featured__avatar {
    width: 20px;
    height: 20px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
}

.card-featured__excerpt {
    font-family: var(--tx-font-body);
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--tx-black);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* card-featured scaled down inside archive/category grids */
.stories-grid .card-featured__title {
    font-size: 1.15rem;
}

.stories-grid .card-featured__excerpt {
    font-size: 0.9rem;
}

/* Horizontal Card — thumbnail + title + metadata */
.card-horizontal {
    display: grid;
    grid-template-columns: 33% 1fr;
    gap: 0 1rem;
    align-items: start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--tx-black);
}

.card-horizontal:first-child {
    padding-top: 0;
}

.card-horizontal:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.card-horizontal__image {
    overflow: hidden;
    border-radius: 0.25rem;
}

.card-horizontal__image img {
    width: 100%;
    height: 8rem;
    object-fit: cover;
    display: block;
}

.card-horizontal__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.card-horizontal__title {
    font-family: var(--tx-font-secondary);
    font-size: clamp(1.2rem, 0.78vw + 1.044rem, 1.6rem);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-horizontal__title a {
    color: var(--tx-black);
}

.card-horizontal__title a:hover {
    color: var(--tx-red);
}

.card-horizontal__meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-family: var(--tx-font-meta);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--tx-gray);
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.5rem;
}

.card-horizontal__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-horizontal__meta-item svg {
    flex-shrink: 0;
    min-width: 12px;
    opacity: 0.6;
}

.card-horizontal__avatar {
    width: 16px;
    height: 16px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
}

/* ================================================================
   12a. Newsletter 3-Column Band (Latest Edition | Daily Bull | Twitter)
   ================================================================ */

.newsletter-band {
    background: var(--tx-alt-bg);
    padding: 2rem 0 2.5rem;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.newsletter-grid__col {
    min-width: 0;
}

.newsletter-grid__heading {
    font-family: var(--tx-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tx-accent);
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: none;
    position: relative;
}

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

/* Newsletter slider (col 1) — single-card carousel */
.newsletter-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.newsletter-slider::-webkit-scrollbar {
    display: none;
}

.newsletter-slide {
    flex-shrink: 0;
    width: 100%;
    scroll-snap-align: start;
}

.newsletter-slide img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* Daily Bull branded card (col 2) */
.newsletter-daily-bull img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* Twitter/X column (col 3) */
.newsletter-grid__col--twitter {
    background: var(--tx-white);
    border: 1px solid var(--tx-gray-light);
    border-top: 3px solid var(--tx-accent);
    border-radius: 0 0 4px 4px;
    padding: 1.25rem;
}

.newsletter-grid__col--twitter .newsletter-grid__heading {
    margin-top: 0;
}

.twitter-placeholder {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--tx-gray);
}

.twitter-placeholder .btn {
    background-color: var(--tx-accent);
    color: var(--tx-white);
    border: none;
    border-radius: 4px;
    padding: 0.625rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--tx-font-meta);
    font-style: normal;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
}

.twitter-placeholder .btn:hover {
    background-color: var(--tx-black);
    color: var(--tx-white);
}

.twitter-placeholder .btn svg {
    fill: var(--tx-white);
}

/* Newsletter Card (used on archive pages) */
.card-newsletter {
    flex-shrink: 0;
    width: 280px;
    scroll-snap-align: start;
    border: 1px solid var(--tx-gray-light);
    border-radius: 2px;
    overflow: hidden;
}

.card-newsletter__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.card-newsletter__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-newsletter__body {
    padding: 0.5rem 0.6rem 0.6rem;
}

.card-newsletter__title {
    font-family: var(--tx-font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.25rem;
}

.card-newsletter__title a {
    color: var(--tx-black);
}

.card-newsletter__date {
    font-family: var(--tx-font-meta);
    font-size: 0.8rem;
    color: var(--tx-gray);
}

/* Podcast Card */
/* ----------------------------------------------------------------
   Podcast Archive
   ---------------------------------------------------------------- */

.podcast-archive {
    max-width: 860px;
    padding-top: 2rem;
}

.archive-header--podcast {
    text-align: center;
    margin-bottom: 2rem;
}

.archive-header--podcast .archive-header__title {
    display: block;
    text-align: center;
    border-bottom: none;
}

.archive-header--podcast .archive-header__title::after {
    display: none;
}

.podcast-platform-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.podcast-platform-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    font-family: var(--tx-font-meta);
    font-size: 1rem;
    font-weight: 500;
    color: var(--tx-gray);
    text-decoration: none;
    letter-spacing: 0.03em;
}

.podcast-platform-link svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.podcast-platform-link:hover {
    color: var(--tx-accent);
}

.podcast-platform-link--small {
    font-size: 1rem;
    gap: 6px;
}

/* Featured episode */
.podcast-featured {
    margin-bottom: 3rem;
}

.podcast-featured__image-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.podcast-featured__image-link img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.podcast-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    color: #375b70;
    pointer-events: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.podcast-featured__image-link:hover .podcast-play-btn,
.card-podcast__image-link:hover .podcast-play-btn {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(255, 255, 255, 1);
}

.podcast-play-btn--sm {
    width: 44px;
    height: 44px;
}

.podcast-featured__date {
    display: block;
    text-transform: uppercase;
    font-family: var(--tx-font-meta);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 8px;
}

.podcast-featured__title {
    font-family: var(--tx-font-secondary);
    font-size: 1.75rem;
    font-weight: 700;
    color: #375b70;
    line-height: 1.25;
    margin: 0 0 12px;
}

.podcast-featured__title a {
    color: inherit;
    text-decoration: none;
}

.podcast-featured__title a:hover {
    text-decoration: underline;
}

.podcast-featured__excerpt {
    font-family: var(--tx-font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--tx-gray);
    margin: 0;
}

/* Recent Episodes heading */
.podcast-recent-heading {
    font-family: var(--tx-font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: #375b70;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
    position: relative;
    margin-bottom: 0;
}

.podcast-recent-heading::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #c8102e;
}

/* Accordion list */
.podcast-list {
    display: flex;
    flex-direction: column;
}

.card-podcast {
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
}

.card-podcast__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 1.5rem;
    user-select: none;
}

.card-podcast__title {
    font-family: var(--tx-font-secondary);
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    line-height: 1.35;
}

.card-podcast.is-expanded .card-podcast__title {
    color: #c8102e;
}

.card-podcast__caret {
    flex-shrink: 0;
    color: #d1d5db;
    transition: transform 0.25s ease;
}

.card-podcast.is-expanded .card-podcast__caret {
    transform: rotate(180deg);
    color: #c8102e;
}

.card-podcast__content {
    display: none;
    padding-top: 16px;
}

.card-podcast.is-expanded .card-podcast__content {
    display: block;
}

.card-podcast__meta {
    display: flex;
    align-items: center;
    gap: 0.6rem 1rem;
    margin-bottom: 14px;
    flex-wrap: wrap;
    font-family: var(--tx-font-meta);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--tx-gray);
}

.card-podcast__meta time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-podcast__platforms {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.card-podcast__image-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 0.25rem;
    max-width: 420px;
}

.card-podcast__image-link img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* Featured episode: inline embed (replaces thumbnail on click) */
.podcast-featured__embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 0.25rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.podcast-featured__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Podcast video modal */
.podcast-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
}

.podcast-modal.is-open {
    display: flex;
}

.podcast-modal__inner {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.podcast-modal__video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 0.25rem;
    overflow: hidden;
}

.podcast-modal__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.podcast-modal__close {
    position: absolute;
    top: -44px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.podcast-modal__close:hover {
    opacity: 1;
}

body.modal-open {
    overflow: hidden;
}

/* ================================================================
   12. Newsletter Carousel
   ================================================================ */

.newsletter-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: var(--tx-gap);
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.newsletter-carousel::-webkit-scrollbar {
    display: none;
}

/* #25: Carousel wrapper + arrow navigation */
.carousel-wrapper {
    position: relative;
    overflow: visible;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 32px;
    height: 32px;
    border-radius: 0;
    background: none;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--tx-accent);
    opacity: 0.8;
    transition: opacity var(--tx-transition);
    padding: 0;
}

.carousel-arrow:hover {
    opacity: 1;
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

.carousel-arrow--prev {
    left: 10px;
}

.carousel-arrow--next {
    right: 10px;
}

/* ================================================================
   12b. Card Overlay (#32-36: Full-bleed image with gradient)
   ================================================================ */

.card-overlay {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 0;
}

.card-overlay__image {
    position: absolute;
    inset: 0;
}

.card-overlay__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* #39: Category card hover effect */
.card-overlay:hover .card-overlay__image img {
    transform: scale(1.05);
}

/* #36: Gradient overlay (transparent top, dark bottom) */
.card-overlay__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.9) 100%);
    transition: background 0.3s ease;
}

.card-overlay:hover .card-overlay__gradient {
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.95) 100%);
}

.card-overlay__body {
    position: relative;
    z-index: 1;
    padding: 20px;
    color: var(--tx-white);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-overlay__body .label {
    background-color: #c8102e;
    color: #ffffff;
    padding: 4px 8px;
    display: inline-block;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: var(--tx-font-meta);
    margin-bottom: 8px;
    align-self: flex-start;
}

.card-overlay__title {
    font-family: var(--tx-font-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px;
}

.card-overlay__title a {
    color: var(--tx-white);
}

.card-overlay__title a:hover {
    color: var(--tx-white);
    text-decoration: underline;
}

.card-overlay__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--tx-font-meta);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

/* ================================================================
   13. Single Post
   ================================================================ */

.single-post-container {
    max-width: 940px; /* match prod's ~900px reading column (was 800px) */
    margin: 0 auto;
    padding: 2rem 1rem;
}

.single-post__title {
    font-family: var(--tx-font-secondary);
    font-size: var(--tx-h5);
    text-align: center;
    margin-bottom: 1rem;
}

.single-post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    font-family: var(--tx-font-meta);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--tx-gray);
    margin-bottom: 1.5rem;
}

.single-post__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.single-post__meta-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.6;
}

.single-post__author-avatar,
.newsletter-single__author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.single-post__featured {
    width: 100%;
    max-height: 544px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.single-post__content {
    font-family: var(--tx-font-body);
    font-size: 1.2rem; /* match prod (~19px body) */
    line-height: 1.5;
}

.single-post__content p:first-of-type::first-letter {
    font-family: var(--tx-font-heading);
    font-size: 3.5em;
    float: left;
    line-height: 0.8;
    margin: 0.05em 0.1em 0 0;
    color: var(--tx-red);
}

/* Correction notice */
.correction-notice {
    background: var(--tx-alt-bg);
    border-left: 4px solid var(--tx-red);
    padding: 1rem;
    margin: 1.5rem 0;
    font-family: var(--tx-font-meta);
    font-size: 0.9rem;
}

.correction-notice__title {
    font-weight: 700;
    color: var(--tx-red);
    margin-bottom: 0.25rem;
}

/* ================================================================
   14. Newsletter Singles (Shared)
   ================================================================ */

.newsletter-single {
    /* 900px reading column (was --tx-container-narrow / 800px). Scoped here rather than
       widening the token, which 4 other components also use. */
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

/* Newsletter post header */
.newsletter-single__header {
    padding: 2.5rem 0 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.newsletter-single__title {
    font-family: var(--tx-font-heading);
    font-size: var(--tx-h3);
    text-align: center;
    color: var(--tx-red);
    margin-bottom: 0.5rem;
}

.newsletter-single__subtitle {
    font-family: var(--tx-font-secondary);
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 700;
    text-align: center;
    color: var(--tx-black);
    margin-top: 1rem;
    margin-bottom: 0;
}

.newsletter-single__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    font-family: var(--tx-font-meta);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--tx-gray);
    margin-bottom: 0;
}

.newsletter-single__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.newsletter-single__meta-item svg {
    flex-shrink: 0;
    opacity: 0.6;
    width: 14px;
    height: 14px;
}

.newsletter-single__section-heading {
    font-family: var(--tx-font-heading);
    font-size: var(--tx-h5);
    color: var(--tx-accent);
    margin: 3.5rem 0 0.5rem;
}

.newsletter-single__divider {
    position: relative;
    width: 100%;
    height: 5px;
    background: none;
    border: none;
    border-top: 1px solid #DFDFDF;
    border-bottom: 1px solid #DFDFDF;
    margin: 0 0 2rem 0;
}

.newsletter-single__divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: -1px;
    width: 40px;
    height: 5px;
    background: var(--tx-red);
}

.newsletter-single__content {
    font-family: var(--tx-font-body);
    font-size: 1.125rem;
    line-height: 1.75;
}

.newsletter-single__content::after {
    content: '';
    display: table;
    clear: both;
}

.newsletter-single__content p {
    margin-bottom: 1.5rem;
}

.newsletter-single__content h4,
.newsletter-single__content h5 {
    font-family: var(--tx-font-heading);
    font-size: 1.35rem;
    color: var(--tx-black);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.newsletter-single__content a {
    color: var(--tx-red);
    text-decoration: none;
}

.newsletter-single__content a:hover {
    color: var(--tx-red);
    text-decoration: underline;
}

.newsletter-single__content ol {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.newsletter-single__content ul {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.newsletter-single__content li {
    margin-bottom: 0.75rem;
}

.newsletter-single__content li::marker {
    color: var(--tx-red);
    font-weight: 700;
}

/* Ad unit. Global `img { display: block }` means text-align:center can't centre the
   image, so centre the unit itself. Also used twice on front-page.php. */
.ad-unit {
    display: flex;
    justify-content: center;
}

/* Ad placeholder between sections */
.newsletter-single__ad {
    text-align: center;
    padding: 2rem 0;
    margin: 0;
}

/* Newsletter brand logo (above post title in header) */
.newsletter-single__brand-logo {
    margin-bottom: 1.25rem;
}

.newsletter-single__brand-logo img {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Scoville Scale — uppercase title */
.newsletter-single--scoville-scale .newsletter-single__title {
    text-transform: uppercase;
}

/* ================================================================
   15. Scoville Scale — Heat Levels
   ================================================================ */

.scoville-level {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem 0;
}

.scoville-level__image {
    flex-shrink: 0;
    width: 180px;
}

@media (max-width: 1024px) {
    .scoville-level__image {
        width: 144px;
    }
}

.scoville-level__image img {
    width: 100%;
    height: auto;
}

.scoville-level__body {
    flex: 1;
}

.scoville-level__title {
    font-family: var(--tx-font-heading);
    font-size: var(--tx-h6);
    font-weight: 700;
    color: var(--tx-black);
    margin-bottom: 0;
}

/* Elementor uses one 8px green dot on a grey rule between every pair — the dot colour
   does NOT vary by heat level. */
.scoville-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 8px;
    margin: 1.5rem 0;
}

.scoville-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--tx-gray-light);
}

.scoville-divider::after {
    content: '';
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tx-mild-1);
}

/* ================================================================
   Newsletter end CTA — closes the Scoville single (Elementor 387).
   Daily Bull does not use this band.
   ================================================================ */

.newsletter-cta {
    background: var(--tx-alt-bg);
    padding: 3.5rem 1rem;
    text-align: center;
}

.newsletter-cta__inner {
    max-width: var(--tx-container-narrow);
    margin: 0 auto;
}

.newsletter-cta__title {
    font-family: var(--tx-font-secondary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--tx-red);
    margin: 0 0 0.5rem;
}

.newsletter-cta__text {
    font-family: var(--tx-font-body);
    font-size: 1.2rem;
    color: var(--tx-gray);
    margin: 0 0 1.5rem;
}

/* ================================================================
   16. Premium Wall (MemberPress Gate)
   ================================================================ */

.newsletter-single__content--teaser {
    max-height: 300px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 50%, transparent 100%);
}

/* Single framed masthead card. Quiet white LOGIN (secondary)
   vs. full-bleed brand-red SUBSCRIBE hero (dominant). */

.premium-wall {
    background:
        url('../img/premium-backdrop.webp') no-repeat center top / 100% auto,
        linear-gradient(to bottom, var(--tx-white) 0%, var(--tx-alt-bg) 300px);
    padding: 3rem 1rem;
}

/* Full-bleed inside the newsletter article: span the viewport and meet the footer.
   (html/body have overflow-x: clip, so the negative side margins can't cause h-scroll.) */
.newsletter-single .premium-wall {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: -2rem; /* cancels .newsletter-single's padding-bottom so the gray meets the footer */
}

/* The framed masthead card — matches the header/footer content width */
.premium-wall__inner {
    max-width: var(--tx-container);
    margin: 0 auto;
    background: var(--tx-white);
    border: 1px solid var(--tx-gray-light);
    border-top: 4px solid var(--tx-red);
    box-shadow: var(--tx-shadow-md);
    text-align: left;
    overflow: hidden;
}

/* ---- Masthead header (shared framing) ---- */
.premium-wall__masthead {
    padding: 1.75rem 2rem 1.5rem;
}

.premium-wall__eyebrow-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.premium-wall__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--tx-font-meta);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tx-red);
}

.premium-wall__lock {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.premium-wall__dateline {
    font-family: var(--tx-font-meta);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tx-gray);
}

.premium-wall__title {
    font-family: var(--tx-font-heading);
    font-weight: 700;
    font-size: var(--tx-h4);
    line-height: 1.08;
    color: var(--tx-black);
    margin: 0 0 0.75rem;
}

.premium-wall__dek {
    font-family: var(--tx-font-secondary);
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--tx-gray);
    margin: 0;
    max-width: 46ch;
}

/* ---- Two-path body ---- */
/* Asymmetric tracks (login narrow, subscribe wide) + minmax(0) so long
   unbreakable strings can't blow out the narrow column.
   align-items:stretch makes both columns equal height, so the red hero
   background fills the full height of the (taller) login column; the hero's
   CTA is pinned to the bottom via margin-top:auto, so it sits flush. */
.premium-wall__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
    align-items: stretch;
    border-top: 1px solid var(--tx-gray-light);
}

/* Shared kicker (per-column eyebrow) */
.premium-wall__kicker {
    font-family: var(--tx-font-meta);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tx-gray);
    margin: 0 0 0.35rem;
}
.premium-wall__kicker--light {
    color: var(--tx-white-50);
}

/* ================= SECONDARY: Log in (quiet, shorter) ================= */
.premium-wall__login {
    padding: 1.75rem 2rem;
    background: var(--tx-white);
}

.premium-wall__login-title {
    font-family: var(--tx-font-heading);
    font-weight: 700;
    font-size: var(--tx-h6);
    color: var(--tx-black);
    margin: 0 0 0.4rem;
}

.premium-wall__login-note {
    font-family: var(--tx-font-body);
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--tx-gray);
    margin: 0 0 1.25rem;
}

/* Generic login-form styling — scoped to descendants so it styles either
   MemberPress [mepr-login-form] (.mp-form-row <div>s) or wp_login_form (<p>s). */
.premium-wall__login form {
    margin: 0;
}

.premium-wall__login label {
    display: block;
    font-family: var(--tx-font-meta);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tx-gray);
    margin: 0 0 0.3rem;
}

/* Margin sits on the INPUT itself so rows space correctly whether the
   wrapper is a MemberPress <div> or a WP <p> (form-agnostic). */
.premium-wall__login input[type="text"],
.premium-wall__login input[type="email"],
.premium-wall__login input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.75rem;
    margin-bottom: 1rem;
    font-family: var(--tx-font-body);
    font-size: 0.95rem;
    color: var(--tx-black);
    background: var(--tx-white);
    border: 1px solid var(--tx-gray-light);
    border-radius: 0;
    transition: border-color var(--tx-transition);
}

/* Reuse the theme's exact focus convention (accent border + 2px accent
   outline) — no hardcoded color. */
.premium-wall__login input[type="text"]:focus,
.premium-wall__login input[type="email"]:focus,
.premium-wall__login input[type="password"]:focus {
    outline: 2px solid var(--tx-accent);
    outline-offset: 0;
    border-color: var(--tx-accent);
}

/* Remember-Me — teal accent, and de-uppercased on EVERY renderer:
   input+label sibling (MemberPress) AND label wrapping input (wp_login_form). */
.premium-wall__login input[type="checkbox"] {
    width: auto;
    margin-right: 0.4rem;
    accent-color: var(--tx-accent);
    vertical-align: middle;
}
.premium-wall__login input[type="checkbox"] + label,
.premium-wall__login label:has(input[type="checkbox"]) {
    display: inline;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--tx-font-body);
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--tx-gray);
}

/* Submit = quiet TEAL ghost button. Never red — keeps "red = convert,
   teal = return" clean. Covers input[type=submit] AND button[type=submit];
   out-specifies MemberPress's .button / .mepr-submit. */
.premium-wall__login input[type="submit"],
.premium-wall__login button[type="submit"] {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.7rem 1.5rem;
    font-family: var(--tx-font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--tx-accent-dark);
    background: transparent;
    border: 2px solid var(--tx-accent);
    border-radius: 0;
    cursor: pointer;
    transition: background-color var(--tx-transition), color var(--tx-transition);
}
.premium-wall__login input[type="submit"]:hover,
.premium-wall__login input[type="submit"]:focus-visible,
.premium-wall__login button[type="submit"]:hover,
.premium-wall__login button[type="submit"]:focus-visible {
    background: var(--tx-accent);
    color: var(--tx-white);
}

/* Helper links (Forgot Password, etc.) */
.premium-wall__login a {
    display: inline-block;
    margin-top: 0.85rem;
    font-family: var(--tx-font-meta);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--tx-accent);
    text-decoration: none;
    transition: color var(--tx-transition);
}
.premium-wall__login a:hover {
    color: var(--tx-accent-dark);
    text-decoration: underline;
}

/* ================= PRIMARY: Subscribe hero (dominant) ================= */
/* Full-bleed red panel; flex column with CTA pinned to the bottom. */
.premium-wall__subscribe {
    padding: 1.75rem 2rem 2rem;
    background: var(--tx-red);
    color: var(--tx-white);
    display: flex;
    flex-direction: column;
}

.premium-wall__subscribe-title {
    font-family: var(--tx-font-heading);
    font-weight: 700;
    font-size: var(--tx-h5);
    line-height: 1.1;
    color: var(--tx-white);
    margin: 0 0 1.1rem;
}

.premium-wall__benefits {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}
.premium-wall__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.7rem 0;
    font-family: var(--tx-font-body);
    font-size: 1rem;
    line-height: 1.35;
    color: var(--tx-white);
    border-top: 1px solid var(--tx-white-10);
}
.premium-wall__benefits li:first-child {
    border-top: 0;
    padding-top: 0;
}

.premium-wall__check {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--tx-white);
}

/* Hero CTA — solid white on red, inverts to outline on hover
   (mirrors the theme's .btn--outline logic). */
.premium-wall__cta {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 0.9rem 1.5rem;
    font-family: var(--tx-font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    color: var(--tx-red);
    background: var(--tx-white);
    border: 2px solid var(--tx-white);
    border-radius: 0;
    transition: background-color var(--tx-transition), color var(--tx-transition);
}
.premium-wall__cta:hover,
.premium-wall__cta:focus-visible {
    background: transparent;
    color: var(--tx-white);
}

.premium-wall__fine {
    margin: 0.85rem 0 0;
    font-family: var(--tx-font-meta);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tx-white-50);
    text-align: center;
}

/* ---- Responsive: single column, hero FIRST on mobile ---- */
@media (max-width: 782px) {
    .premium-wall {
        padding: 2.5rem 0.75rem;
    }
    .premium-wall__grid {
        grid-template-columns: 1fr;
    }
    /* Subscribe hero jumps above login after the masthead. */
    .premium-wall__subscribe {
        order: -1;
    }
    .premium-wall__login {
        border-top: 1px solid var(--tx-gray-light);
    }
    .premium-wall__masthead {
        padding: 1.5rem 1.5rem 1.25rem;
    }
    .premium-wall__login,
    .premium-wall__subscribe {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .premium-wall__eyebrow-row {
        margin-bottom: 0.75rem;
    }
}

/* ================================================================
   17. Podcast Single
   ================================================================ */

.podcast-single {
    max-width: var(--tx-container-narrow);
    margin: 0 auto;
    padding: 2rem 1rem;
}

.podcast-single__video {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--tx-black);
}

.podcast-single__video .podcast-single__thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.podcast-single__video:hover .podcast-single__thumb {
    opacity: 0.85;
}

.podcast-single__video .podcast-play-btn--large {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid rgba(255, 255, 255, 0.9);
    color: var(--tx-white);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.podcast-single__video:hover .podcast-play-btn--large {
    transform: scale(1.08);
    background: var(--tx-red);
    border-color: var(--tx-white);
}

/* After click: swap to 16:9 iframe */
.podcast-single__video--active {
    padding-bottom: 56.25%;
    height: 0;
}

.podcast-single__video--active iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.podcast-single__audio {
    margin-bottom: 1.5rem;
}

/* ================================================================
   18. Footer
   ================================================================ */

/* #43: Signup CTA */
.footer-signup {
    background-color: var(--tx-red);
    color: var(--tx-white);
    padding: 2rem 1rem;
    text-align: center;
}

.footer-signup__inner {
    max-width: 600px;
    margin: 0 auto;
}

/* #43: Larger footer signup heading */
.footer-signup__title {
    font-family: var(--tx-font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--tx-white);
}

.footer-signup__form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.footer-signup__form input[type="email"] {
    flex: 1;
    background-color: var(--tx-white-30);
    border: 1px solid var(--tx-white-30);
    color: var(--tx-white);
}

/* #42: Better placeholder contrast */
.footer-signup__form input::placeholder {
    color: var(--tx-white-50);
}

/* Fix #44: Sign Up button is white text on transparent, not teal */
.footer-signup__form button {
    font-family: var(--tx-font-heading);
    font-size: 0.813rem;
    font-weight: 700;
    background: var(--tx-white);
    color: var(--tx-red);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0;
    cursor: pointer;
    white-space: nowrap;
}

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

.hidden-temp {
    display: none !important;
}

.site-footer {
    background-color: #4b7188;
    color: var(--tx-white);
}

.site-footer__inner {
    max-width: var(--tx-container);
    margin: 0 auto;
    padding: 60px 1rem;
}

/* Top row: logo left, nav right */
.site-footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer__logo {
    max-height: 60px;
    display: block;
}

.site-footer__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.site-footer__nav a {
    color: var(--tx-white);
    font-family: var(--tx-font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-footer__nav a:hover {
    text-decoration: underline;
}

/* Divider */
.site-footer hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    width: 100%;
    margin: 40px 0;
}

/* Bottom row: legal left, social right */
.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer__legal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
    font-family: var(--tx-font-meta);
    font-size: 14px;
    color: var(--tx-white);
    flex-wrap: wrap;
}

.site-footer__legal li {
    color: var(--tx-white);
}

.site-footer__legal li:not(:last-child)::after {
    content: '|';
    color: rgba(255, 255, 255, 0.3);
    margin: 0 12px;
}

.site-footer__legal a {
    color: var(--tx-white);
    text-decoration: none;
}

.site-footer__legal a:hover {
    text-decoration: underline;
}

/* Social icons */
.site-footer__social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.site-footer__social a {
    display: flex;
    align-items: center;
    color: var(--tx-white);
    line-height: 1;
}

.site-footer__social svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

.site-footer__social a:hover {
    opacity: 0.75;
}

/* ================================================================
   19. Archive / Search / 404
   ================================================================ */

/* Graphic banner header (replaces text header for special archives) */
.archive-banner {
    text-align: center;
    padding-bottom: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--tx-gray-light);
}

.archive-banner img {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
    object-fit: contain;
    padding-top: 2rem;
}

/* Newsletter list — single-column vertical */
.newsletter-list {
    display: flex;
    flex-direction: column;
    max-width: var(--tx-container-narrow);
    margin: 0 auto;
}

.archive-header {
    text-align: left;
    margin-bottom: 40px;
}

.archive-header__title {
    font-family: var(--tx-font-heading);
    font-size: 2.5rem;
    font-weight: 700 !important;
    color: #375b70;
    margin-bottom: 0;
    padding-bottom: 16px;
    position: relative;
    border-bottom: 2px solid #e5e7eb;
    display: inline-block;
}

.archive-header__title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #c8102e;
}

.archive-header__description {
    font-family: var(--tx-font-meta);
    font-size: 1rem;
    color: var(--tx-gray);
}

.no-results {
    text-align: center;
    padding: 4rem 1rem;
}

.no-results h2 {
    margin-bottom: 1rem;
}

/* Hide native WP pagination — Load More button used instead */
.navigation.pagination {
    display: none !important;
}

/* Pagination */
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-family: var(--tx-font-meta);
    flex-wrap: wrap;
}

.pagination .nav-links a,
.pagination .nav-links span {
    display: inline-block;
    padding: 0.5em 0.75em;
    border: 1px solid var(--tx-gray-light);
    color: var(--tx-black);
    font-size: 0.9rem;
}

.pagination .nav-links .current {
    background-color: var(--tx-accent);
    color: var(--tx-white);
    border-color: var(--tx-accent);
}

/* Load more button */
[data-load-more] {
    display: block;
    margin: 2rem auto 0;
}

[data-load-more].loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Auto-load sentinel (hidden trigger element) */
.load-more-sentinel {
    height: 1px;
    visibility: hidden;
}

/* Spinner shown while auto-loading */
.load-more-spinner {
    display: none;
    justify-content: center;
    padding: 40px 0;
}

.load-more-spinner.active {
    display: flex;
}

@keyframes tx-spin {
    to { transform: rotate(360deg); }
}

.load-more-spinner__icon {
    width: 32px;
    height: 32px;
    border: 3px solid var(--tx-gray-light);
    border-top-color: var(--tx-red);
    border-radius: 50%;
    animation: tx-spin 0.7s linear infinite;
}

/* ================================================================
   20. Team Members
   ================================================================ */

/* --- About Page: Hero Section --- */

.about-hero {
    background-color: #4b7188;
    padding: 80px 0;
    width: 100%;
}

.about-hero__inner {
    max-width: var(--tx-container);
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.about-hero__heading {
    color: #ffffff;
    font-family: var(--tx-font-heading);
    font-weight: 700 !important;
    text-align: center;
    margin-bottom: 40px;
}

.about-hero__image {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.about-hero__image img {
    display: block;
    max-width: 600px;
    width: 100%;
    height: auto;
}

.about-hero__intro {
    max-width: 800px;
    margin: 0 auto;
    color: #ffffff;
    text-align: center;
    font-size: 1rem;
    line-height: 1.7;
}

.about-hero__intro p {
    color: #ffffff;
}

/* --- About Page: Meet the Team Section --- */

.about-team {
    background-color: #f0f4f8;
    padding: 60px 0;
    width: 100%;
}

.about-team__inner {
    max-width: var(--tx-container);
    margin: 0 auto;
    padding: 0 1rem;
}

.about-team__heading {
    text-align: center;
    color: #4b7188;
    font-family: var(--tx-font-heading);
    font-weight: 700 !important;
    margin-bottom: 40px;
}

/* --- Team Grid & Cards --- */

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

.team-member {
    text-align: left;
}

.team-member__image-wrap {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.team-member__image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
}

.team-member__photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.team-member__overlay {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.team-member__name {
    font-family: var(--tx-font-heading);
    font-size: 1.2rem;
    font-weight: 700 !important;
    color: #ffffff;
    margin-bottom: 2px;
}

.team-member__position {
    font-family: var(--tx-font-meta);
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.team-member__email {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    font-family: var(--tx-font-meta);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--tx-gray);
}

.team-member__email svg {
    flex-shrink: 0;
}

.team-member__email:hover {
    color: var(--tx-accent);
}

.team-member__bio {
    font-family: var(--tx-font-body);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--tx-gray);
    text-align: left;
}

/* ================================================================
   21. Utility Classes
   ================================================================ */

.text-center { text-align: center; }
.text-red { color: var(--tx-red); }
.text-accent { color: var(--tx-accent); }
.text-gray { color: var(--tx-gray); }
.bg-alt { background-color: var(--tx-alt-bg); }
.bg-accent { background-color: var(--tx-accent); }

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

/* ================================================================
   MOTION SYSTEM — "Texas Snap"
   Directional reveals, asymmetric staggers, masked text.
   ================================================================ */

/* --- Easing Tokens --- */
:root {
    --tx-ease-snap:     cubic-bezier(0.2, 0.8, 0.2, 1.1);   /* "Texas Snap" — overshoot settle   */
    --tx-ease-grid:     cubic-bezier(0.4, 0, 0.2, 1);        /* Asymmetric grid entry              */
    --tx-ease-press:    cubic-bezier(0.33, 1, 0.68, 1);      /* Soft hover "press"                 */
    --tx-ease-out:      cubic-bezier(0.0, 0, 0.2, 1);        /* General ease-out                   */
}

/* --- Base: fade-in (default for any element) --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s var(--tx-ease-grid),
                transform 0.5s var(--tx-ease-snap);
}

.fade-in--visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Directional Variants (applied via JS data-reveal or class) --- */

/* Slide from right (sidebar articles) */
.fade-in--right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.5s var(--tx-ease-grid),
                transform 0.5s var(--tx-ease-snap);
}

.fade-in--right.fade-in--visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from left */
.fade-in--left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.5s var(--tx-ease-grid),
                transform 0.5s var(--tx-ease-snap);
}

.fade-in--left.fade-in--visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up (cards in grid) */
.fade-in--scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.5s var(--tx-ease-grid),
                transform 0.5s var(--tx-ease-snap);
}

.fade-in--scale.fade-in--visible {
    opacity: 1;
    transform: scale(1);
}

/* --- 1. Asymmetric Grid Entry (Homepage) --- */

/* Featured card: instant hero entrance */
.top-articles__featured .card-featured {
    transition-duration: 0.4s;
    transition-delay: 0s;
}

/* Sidebar cards: staggered slide-in from right */
.top-articles__sidebar .card-horizontal {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.45s var(--tx-ease-grid),
                transform 0.45s var(--tx-ease-snap);
}

.top-articles__sidebar .card-horizontal:nth-child(1) { transition-delay: 0.15s; }
.top-articles__sidebar .card-horizontal:nth-child(2) { transition-delay: 0.25s; }
.top-articles__sidebar .card-horizontal:nth-child(3) { transition-delay: 0.35s; }
.top-articles__sidebar .card-horizontal:nth-child(4) { transition-delay: 0.45s; }

.top-articles--visible .card-horizontal {
    opacity: 1;
    transform: translateX(0);
}

/* Category overlay grid: asymmetric stagger */
.stories-grid .card-overlay {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    transition: opacity 0.5s var(--tx-ease-grid),
                transform 0.5s var(--tx-ease-snap);
}

.stories-grid .card-overlay:nth-child(1) { transition-delay: 0s; }
.stories-grid .card-overlay:nth-child(2) { transition-delay: 0.1s; }
.stories-grid .card-overlay:nth-child(3) { transition-delay: 0.2s; }
.stories-grid .card-overlay:nth-child(4) { transition-delay: 0.3s; }

.stories-grid--visible .card-overlay {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- 2. "Bullpen" Masked Reveal (Headlines) --- */

.tx-reveal {
    overflow: hidden;
}

.tx-reveal__inner {
    display: block;
    transform: translateY(105%);
    transition: transform 0.35s var(--tx-ease-snap);
}

.tx-reveal--visible .tx-reveal__inner {
    transform: translateY(0);
}

/* Metadata fades softer and slower */
.tx-reveal__meta {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s var(--tx-ease-out) 0.2s,
                transform 0.6s var(--tx-ease-out) 0.2s;
}

.tx-reveal--visible .tx-reveal__meta {
    opacity: 1;
    transform: translateY(0);
}

/* --- 3. Subscription Card "Focus Shift" --- */

.subs-plans__grid {
    transition: all 0.2s var(--tx-ease-press);
}

.subs-card {
    transition: transform 0.2s var(--tx-ease-press),
                filter 0.3s var(--tx-ease-press),
                box-shadow 0.2s var(--tx-ease-press);
}

/* When featured card is hovered, dim the sibling */
.subs-plans__grid:has(.subs-card--featured:hover) .subs-card:not(.subs-card--featured) {
    transform: scale(0.98);
    filter: saturate(0.5) brightness(0.97);
}

/* Featured card lifts on hover */
.subs-card--featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(152, 8, 12, 0.15);
}

/* Any card press effect */
.subs-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Premium cards: same hover lift */
.subs-card--premium {
    transition: transform 0.2s var(--tx-ease-press),
                box-shadow 0.2s var(--tx-ease-press);
}

.subs-card--premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* --- 4. Newsletter Signup Expand --- */

.footer-signup__form {
    overflow: hidden;
}

.footer-signup__form input[type="email"],
.footer-signup__form button {
    opacity: 0;
    transform: scaleX(0.6);
    transform-origin: center;
    transition: opacity 0.4s var(--tx-ease-grid),
                transform 0.4s var(--tx-ease-snap);
}

.footer-signup--visible input[type="email"],
.footer-signup--visible button {
    opacity: 1;
    transform: scaleX(1);
}

.footer-signup--visible button {
    transition-delay: 0.1s;
}

/* --- 5. Scoville Scroll Color Interpolation --- */

.scoville-card {
    transition: background-color 0.6s var(--tx-ease-out),
                border-color 0.3s var(--tx-ease-out);
}

/* Heat levels driven by JS via inline --scoville-heat custom property */
.scoville-card[data-heat="1"] { --scoville-accent: var(--tx-mild-1); }
.scoville-card[data-heat="2"] { --scoville-accent: var(--tx-mild-2); }
.scoville-card[data-heat="3"] { --scoville-accent: #d4a017; }
.scoville-card[data-heat="4"] { --scoville-accent: #c44b1b; }
.scoville-card[data-heat="5"] { --scoville-accent: var(--tx-red); }

.scoville-heat-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--scoville-accent, var(--tx-gray-light));
    transition: background 0.4s var(--tx-ease-out);
}

/* --- 6. General Card Hover Micro-interactions --- */

.card-overlay {
    transition: transform 0.2s var(--tx-ease-press);
}

.card-overlay:hover {
    transform: scale(1.015);
}

/* Card images: subtle zoom on hover */
.card-story__image img,
.card-featured__image img,
.card-overlay__image img {
    transition: transform 0.4s var(--tx-ease-grid);
}

.card-story:hover .card-story__image img,
.card-featured:hover .card-featured__image img,
.card-overlay:hover .card-overlay__image img {
    transform: scale(1.04);
}

/* --- No-JS fallback --- */
.no-js .fade-in,
.no-js .fade-in--right,
.no-js .fade-in--left,
.no-js .fade-in--scale,
.no-js .top-articles__sidebar .card-horizontal,
.no-js .stories-grid .card-overlay,
.no-js .tx-reveal__inner,
.no-js .tx-reveal__meta,
.no-js .footer-signup__form input[type="email"],
.no-js .footer-signup__form button {
    opacity: 1;
    transform: none;
}

/* --- Reduced motion: respect user preference --- */
/* --- 7. Header Entrance Cascade --- */

.callout-bar {
    animation: tx-slideDown 0.4s var(--tx-ease-snap) both;
}

.site-header__logo {
    animation: tx-fadeScale 0.5s var(--tx-ease-snap) 0.1s both;
}

.site-header__nav {
    animation: tx-slideDown 0.4s var(--tx-ease-grid) 0.15s both;
}

.site-header__actions {
    animation: tx-fadeIn 0.4s var(--tx-ease-grid) 0.25s both;
}

.trending-bar {
    animation: tx-slideUp 0.45s var(--tx-ease-snap) 0.3s both;
}

@keyframes tx-slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes tx-slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes tx-fadeScale {
    from { opacity: 0; transform: translateX(-50%) scale(0.9); }
    to   { opacity: 1; transform: translateX(-50%) scale(1); }
}

@keyframes tx-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* --- 8. tx-stagger: Grid Children Cascade --- */
/* JS adds tx-stagger--visible and sets --tx-stagger-i on each child */

.tx-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.45s var(--tx-ease-grid),
                transform 0.45s var(--tx-ease-snap);
    transition-delay: calc(var(--tx-stagger-i, 0) * 100ms);
}

.tx-stagger--visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Newsletter list rows: slide from left instead */
.newsletter-list.tx-stagger > * {
    transform: translateX(-30px);
}

.newsletter-list.tx-stagger--visible > * {
    transform: translateX(0);
}

/* Podcast accordion: slight scale */
.podcast-list.tx-stagger > * {
    transform: translateY(20px) scale(0.97);
}

.podcast-list.tx-stagger--visible > * {
    transform: translateY(0) scale(1);
}

/* --- No-JS & Reduced Motion --- */

.no-js .fade-in,
.no-js .fade-in--right,
.no-js .fade-in--left,
.no-js .fade-in--scale,
.no-js .top-articles__sidebar .card-horizontal,
.no-js .stories-grid .card-overlay,
.no-js .tx-reveal__inner,
.no-js .tx-reveal__meta,
.no-js .footer-signup__form input[type="email"],
.no-js .footer-signup__form button,
.no-js .tx-stagger > * {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .fade-in--right,
    .fade-in--left,
    .fade-in--scale,
    .top-articles__sidebar .card-horizontal,
    .stories-grid .card-overlay,
    .tx-reveal__inner,
    .tx-reveal__meta,
    .footer-signup__form input[type="email"],
    .footer-signup__form button,
    .card-story,
    .card-featured,
    .card-overlay,
    .card-horizontal,
    .subs-card,
    .subs-card--premium,
    .tx-stagger > * {
        transition-duration: 0.01ms !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .callout-bar,
    .site-header__logo,
    .site-header__nav,
    .site-header__actions,
    .trending-bar {
        animation: none !important;
    }
}

/* ================================================================
   23. MemberPress Overrides
   ================================================================ */

.mepr-login-form input[type="text"],
.mepr-login-form input[type="password"] {
    font-family: var(--tx-font-body);
    font-size: 1rem;
    padding: 0.6rem 1rem;
    border: 1px solid var(--tx-gray-light);
}

.mepr-login-form input[type="submit"] {
    font-family: var(--tx-font-heading);
    font-size: 0.813rem;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--tx-red);
    color: var(--tx-white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0;
    cursor: pointer;
}

.mepr-login-form input[type="submit"]:hover {
    background-color: var(--tx-red-dark);
}

/* ================================================================
   23a. Login Page
   ================================================================ */

.login-page {
    padding: 4rem 1.5rem 6rem;
    background-color: var(--tx-alt-bg);
    min-height: 60vh;
}

.login-page__inner {
    max-width: 480px;
    margin: 0 auto;
}

.login-page__card {
    background: var(--tx-white);
    border: 1px solid var(--tx-gray-light);
    border-radius: 4px;
    padding: 2.5rem 2rem;
}

.login-page__brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-page__brand img {
    max-height: 48px;
    width: auto;
    margin: 0 auto;
}

.login-page__title {
    font-family: var(--tx-font-heading);
    font-size: 1.75rem;
    color: var(--tx-black);
    margin: 0 0 0.4rem;
    text-align: center;
}

.login-page__subtitle {
    font-family: var(--tx-font-body);
    font-size: 0.938rem;
    color: var(--tx-gray);
    text-align: center;
    margin: 0 0 1.75rem;
}

.login-page__form .mepr-login-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-page__form .mepr-login-form label {
    font-family: var(--tx-font-meta);
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tx-black);
    display: block;
    margin-bottom: 0.25rem;
}

.login-page__form .mepr-login-form input[type="text"],
.login-page__form .mepr-login-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    border-radius: 2px;
}

.login-page__form .mepr-login-form input[type="submit"] {
    width: 100%;
    border-radius: 0;
    letter-spacing: 0.02em;
    text-transform: none;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
}

.login-page__footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--tx-gray-light);
    text-align: center;
    font-family: var(--tx-font-body);
    font-size: 0.9rem;
    color: var(--tx-gray);
}

.login-page__footer a {
    color: var(--tx-red);
    font-weight: 600;
    text-decoration: none;
}

.login-page__footer a:hover {
    text-decoration: underline;
}

/* ================================================================
   23b. Corrections Page
   ================================================================ */

.corrections-page {
    max-width: var(--tx-container-narrow);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.corrections-page__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.corrections-page__title {
    font-family: var(--tx-font-secondary);
    font-size: var(--tx-h2);
    font-weight: 700 !important;
    color: var(--tx-accent);
}

.corrections-section-heading {
    margin-bottom: 2rem;
}

.corrections-section-heading__title {
    font-family: var(--tx-font-heading);
    font-size: var(--tx-h5);
    font-weight: 700;
}

/* Card: text left, image right */
.correction-card {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 1.5rem;
    align-items: start;
    padding: 1.5rem 0;
    border-top: 1px solid var(--tx-gray-light);
}

.correction-card:last-child {
    border-bottom: 1px solid var(--tx-gray-light);
}

.correction-card__date-label {
    display: block;
    font-family: var(--tx-font-meta);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tx-gray);
    margin-bottom: 0.5rem;
}

.correction-card__title {
    font-family: var(--tx-font-secondary);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.correction-card__title a {
    color: var(--tx-black);
    text-decoration: none;
}

.correction-card__title a:hover {
    color: var(--tx-red);
}

.correction-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    align-items: center;
    font-family: var(--tx-font-meta);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--tx-gray);
}

.correction-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.correction-card__meta-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.6;
}

.correction-card__image {
    border-radius: 4px;
    overflow: hidden;
}

.correction-card__image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.corrections-page__empty {
    font-family: var(--tx-font-body);
    color: var(--tx-gray);
    text-align: center;
    padding: 3rem 0;
}

/* ================================================================
   23c. Legal Pages (Privacy, Terms, Accessibility)
   ================================================================ */

.legal-page {
    padding: 3.5rem 1.5rem 5rem;
}

.legal-page__inner {
    max-width: 720px;
    margin: 0 auto;
}

.legal-page__header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--tx-gray-light);
}

.legal-page__title {
    font-family: var(--tx-font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.15;
    color: var(--tx-black);
    margin: 0 0 0.5rem;
}

.legal-page__updated {
    font-family: var(--tx-font-meta);
    font-size: 0.813rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--tx-gray);
    margin: 0;
}

.legal-page__content {
    font-family: var(--tx-font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--tx-black);
}

/* Editor copy tags section headings inconsistently — Terms uses h6 for its
   top level, Privacy uses h5 with h6 beneath. Every level gets the section
   rank by default; :has() demotes h6 only in documents that also use h5, so
   each page's outline reads correctly whichever tag it happens to use. */
.legal-page__content h2,
.legal-page__content h3,
.legal-page__content h4,
.legal-page__content h5,
.legal-page__content h6 {
    font-family: var(--tx-font-heading);
    font-size: 1.375rem;
    line-height: 1.3;
    color: var(--tx-black);
    margin: 2.5rem 0 0.75rem;
}

.legal-page__content:has(h5) h6 {
    font-size: 1.0625rem;
    line-height: 1.35;
    color: var(--tx-black);
    margin: 1.75rem 0 0.5rem;
}

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

/* Legal copy is reference material, not an article — no drop cap, no indent. */
.legal-page__content p:first-of-type::first-letter {
    font-family: inherit;
    font-size: inherit;
    float: none;
    line-height: inherit;
    margin: 0;
    color: inherit;
}

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

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

.legal-page__content li {
    margin-bottom: 0.4rem;
}

.legal-page__content li > ul,
.legal-page__content li > ol {
    margin: 0.4rem 0 0;
}

.legal-page__content a {
    color: var(--tx-accent);
    text-decoration: underline;
}

.legal-page__content a:hover {
    color: var(--tx-red);
}

.legal-page__content strong,
.legal-page__content b {
    font-weight: 700;
}

.legal-page__content hr {
    border: 0;
    border-top: 1px solid var(--tx-gray-light);
    margin: 2.5rem 0;
}

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

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

/* ================================================================
   23c. Subscriptions Page
   ================================================================ */

/* --- Subscriptions hero --- */

.subs-hero {
    background-color: var(--tx-accent);
    color: var(--tx-white);
    text-align: center;
    padding: 4rem 1.5rem 3.5rem;
}

.subs-hero__inner {
    max-width: 700px;
    margin: 0 auto;
}

.subs-hero__title {
    font-family: var(--tx-font-heading);
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-style: italic;
    color: var(--tx-white); /* override global h1 black on the teal hero */
    margin: 0 0 1rem;
}

.subs-hero__text {
    font-family: var(--tx-font-body);
    font-size: 1.063rem;
    line-height: 1.7;
    margin: 0;
    opacity: 0.9;
}

/* --- Standard plans --- */

.subs-plans {
    background-color: var(--tx-alt-bg);
    padding: 3.5rem 1.5rem 4rem;
}

.subs-plans__inner {
    max-width: 720px;
    margin: 0 auto;
}

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

.subs-plans__tax-note {
    font-family: var(--tx-font-meta);
    font-size: 0.875rem;
    color: var(--tx-gray);
    text-align: center;
    margin: 1.5rem 0 0;
}

.subs-plans__tax-note a {
    color: var(--tx-accent);
    text-decoration: underline;
}

.subs-plans__tax-note a:hover {
    color: var(--tx-accent-dark);
}

/* --- Card (shared) --- */

.subs-card {
    background: var(--tx-white);
    border: 1px solid var(--tx-gray-light);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.subs-card__header {
    background-color: #555555; /* prod: gray standard-plan header (Monthly) */
    padding: 0.85rem 1rem 0.65rem; /* optical vertical center for the all-caps name */
    text-align: center;
}

.subs-card__name {
    font-family: var(--tx-font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tx-white);
    margin: 0;
}

.subs-card__body {
    padding: 2rem 1.5rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Price display */

.subs-card__price {
    margin-bottom: 1.5rem;
    line-height: 1;
}

.subs-card__currency {
    font-family: var(--tx-font-heading);
    font-size: 1.5rem;
    vertical-align: super;
    color: var(--tx-black);
}

.subs-card__amount {
    font-family: var(--tx-font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--tx-black);
}

.subs-card__period {
    font-family: var(--tx-font-meta);
    font-size: 0.875rem;
    color: var(--tx-gray);
    display: block;
    margin-top: 0.35rem;
}

/* Features list */

.subs-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    font-family: var(--tx-font-body);
    font-size: 0.938rem;
    line-height: 1.6;
    color: var(--tx-gray);
    text-align: left;
    flex: 1;
}

.subs-card__features li {
    padding: 0.4rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.subs-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--tx-accent);
    font-weight: 700;
}

/* CTA button */

.subs-card__btn {
    display: inline-block;
    font-family: var(--tx-font-heading);
    font-size: 0.813rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.02em;
    padding: 0.875rem 1.5rem 0.625rem; /* optical vertical center */
    border: none;
    border-radius: 0;
    background-color: var(--tx-accent);
    color: var(--tx-white);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.subs-card__btn:hover {
    background-color: var(--tx-black);
    color: var(--tx-white);
}

.subs-card__note {
    font-family: var(--tx-font-meta);
    font-size: 0.75rem;
    color: var(--tx-gray);
    margin: 0.75rem 0 0;
}

/* Featured card (Annual) */

.subs-card--featured {
    border-color: var(--tx-red);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.subs-card--featured .subs-card__header {
    background-color: #555555; /* prod: Annual header is gray — the red ribbon is the accent */
}

/* Diagonal corner ribbon (matches prod's "Popular" banner) — clipped by .subs-card overflow:hidden */
.subs-card__badge {
    position: absolute;
    top: 16px;
    right: -34px;
    width: 132px;
    transform: rotate(45deg);
    background-color: var(--tx-red);
    color: var(--tx-white);
    text-align: center;
    font-family: var(--tx-font-meta);
    font-size: 0.688rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3em 0;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* --- Premium section --- */

.subs-premium {
    padding: 4rem 1.5rem 5rem;
}

.subs-premium__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.subs-premium__heading {
    font-family: var(--tx-font-heading);
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-style: italic;
    color: var(--tx-accent);
    text-align: center;
    margin: 0 0 2.5rem;
}

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

.subs-card--premium .subs-card__amount {
    font-size: 2.75rem;
}

.subs-card--premium .subs-card__header {
    background-color: var(--tx-accent); /* Supporter — teal (prod) */
}

.subs-premium__grid .subs-card--premium:nth-child(2) .subs-card__header {
    background-color: var(--tx-red); /* Booster — red (prod) */
}

.subs-premium__grid .subs-card--premium:nth-child(3) .subs-card__header {
    background-color: #000000; /* Founder — black (prod) */
}

/* --- Tax Exempt application page --- */

.tax-exempt {
    padding: 3.5rem 1.5rem 4rem;
    background-color: var(--tx-alt-bg);
}

.tax-exempt__inner {
    max-width: 640px;
    margin: 0 auto;
    background: var(--tx-white);
    border: 1px solid var(--tx-gray-light);
    box-shadow: var(--tx-shadow-md);
    padding: 2.5rem 2rem;
}

/* Gravity Forms (no-framework theme) — normalize to the theme's form style */
.tax-exempt .gform_wrapper .gfield {
    margin-bottom: 1.5rem;
}

.tax-exempt .gfield_label {
    display: block;
    font-family: var(--tx-font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--tx-black);
    margin: 0 0 0.5rem;
}

.tax-exempt .gfield_required {
    color: var(--tx-red);
    font-family: var(--tx-font-meta);
    font-weight: 500;
    font-style: normal;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

/* All text-like inputs: one consistent box (matches premium-wall login inputs) */
.tax-exempt input[type="text"],
.tax-exempt input[type="email"],
.tax-exempt input[type="tel"],
.tax-exempt input[type="url"],
.tax-exempt input[type="number"],
.tax-exempt textarea,
.tax-exempt select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.85rem;
    font-family: var(--tx-font-body);
    font-size: 1rem;
    color: var(--tx-black);
    background: var(--tx-white);
    border: 1px solid var(--tx-gray-light);
    border-radius: 0;
    transition: border-color var(--tx-transition);
}

.tax-exempt input[type="text"]:focus,
.tax-exempt input[type="email"]:focus,
.tax-exempt input[type="tel"]:focus,
.tax-exempt input[type="url"]:focus,
.tax-exempt input[type="number"]:focus,
.tax-exempt textarea:focus,
.tax-exempt select:focus {
    outline: 2px solid var(--tx-accent);
    outline-offset: 0;
    border-color: var(--tx-accent);
}

/* Radio choices — brand accent, comfortable spacing */
.tax-exempt .gfield_radio .gchoice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
}

.tax-exempt .gfield_radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--tx-red);
    margin: 0;
    flex-shrink: 0;
}

.tax-exempt .gfield_radio label {
    font-family: var(--tx-font-body);
    font-size: 1rem;
    color: var(--tx-black);
    margin: 0;
}

/* File upload + its helper text */
.tax-exempt .gform_fileupload_rules,
.tax-exempt .gfield_description {
    font-family: var(--tx-font-meta);
    font-size: 0.8rem;
    color: var(--tx-gray);
    margin-top: 0.4rem;
}

/* Validation messages on-brand */
.tax-exempt .gfield_validation_message,
.tax-exempt .validation_message {
    font-family: var(--tx-font-body);
    font-size: 0.85rem;
    color: var(--tx-red);
    margin-top: 0.35rem;
}

/* Footer: no stray top border, comfortable spacing */
.tax-exempt .gform_footer {
    padding: 0.5rem 0 0;
    margin: 0;
}

/* GF submit button → match the theme's brand-red CTA */
.tax-exempt .gform_button,
.tax-exempt input[type="submit"] {
    font-family: var(--tx-font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0;
    background-color: var(--tx-red);
    color: var(--tx-white);
    cursor: pointer;
    transition: background-color var(--tx-transition);
}

.tax-exempt .gform_button:hover,
.tax-exempt input[type="submit"]:hover {
    background-color: var(--tx-red-dark);
}

.tax-exempt__disclaimer {
    text-align: center;
    color: var(--tx-gray);
    font-family: var(--tx-font-meta);
    font-size: 0.85rem;
    margin: 1.5rem 0 0;
}

/* ================================================================
   24. Responsive — Tablet (max 1024px)
   ================================================================ */

@media (max-width: 1024px) {
    .subs-premium__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .container {
        padding: 2rem 1rem;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

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

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

    .top-articles {
        grid-template-columns: 1fr;
    }

    .card-overlay {
        min-height: 320px;
    }

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

    .newsletter-grid__col--twitter {
        grid-column: 1 / -1;
    }

    .nav-links > li > a {
        font-size: 0.813rem;
        padding: 0.5rem 0.75rem;
    }

    .site-header__search {
        flex: 0 0 160px;
    }

    .site-header__logo img {
        max-height: 44px;
    }
}

/* ================================================================
   25. Responsive — Mobile (max 767px)
   ================================================================ */

@media (max-width: 767px) {
    .subs-plans__grid,
    .subs-premium__grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 2rem 1rem;
    }

    .stories-grid,
    .stories-grid--4 {
        grid-template-columns: 1fr;
    }

    .top-articles {
        grid-template-columns: 1fr;
    }

    .card-overlay {
        min-height: 280px;
    }

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

    .site-header__nav,
    .site-header__actions,
    .site-header__search {
        display: none;
    }

    .site-header__top {
        padding: 0.75rem 1rem;
    }

    .site-header__logo {
        position: static;
        transform: none;
        /* The entrance-cascade animation's final keyframe (translateX(-50%))
           is written for the desktop absolute-centered logo. Animation effects
           outrank plain author rules, so it would otherwise override
           transform:none above and shove the static/flex logo off-screen. */
        animation: none;
    }

    .site-header__logo img {
        max-height: 40px;
        max-width: calc(100vw - 5rem);
        object-fit: contain;
    }

    .mobile-toggle {
        display: flex;
    }

    .callout-bar {
        display: none;
    }

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

    .about-hero {
        padding: 50px 0;
    }

    .about-team {
        padding: 40px 0;
    }

    .trending-bar {
        display: none;
    }

    /* Thumb keeps the artwork's landscape ratio instead of a fixed
       height that squares off at narrow widths. */
    /* Legal pages: tighter gutters, smaller reference-copy type */
    .legal-page {
        padding: 2rem 1.25rem 3rem;
    }

    .legal-page__header {
        margin-bottom: 1.75rem;
        padding-bottom: 1rem;
    }

    .legal-page__content {
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    .legal-page__content h2,
    .legal-page__content h3,
    .legal-page__content h4,
    .legal-page__content h5,
    .legal-page__content h6 {
        font-size: 1.1875rem;
        margin: 1.75rem 0 0.5rem;
    }

    .legal-page__content:has(h5) h6 {
        font-size: 1.0313rem;
        margin: 1.375rem 0 0.4rem;
    }

    .legal-page__content p {
        margin-bottom: 1rem;
    }

    .card-horizontal {
        grid-template-columns: 40% 1fr;
        gap: 0 0.875rem;
        align-items: start;
    }

    .card-horizontal__image {
        width: 100%;
    }

    .card-horizontal__image img {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    /* Meta wraps to two lines in the narrow column — close up the
       row gap so it reads as one block under the title. */
    .card-horizontal__body {
        min-height: 0;
    }

    .card-horizontal__meta {
        gap: 0.2rem 0.75rem;
        font-size: 0.8rem;
        line-height: 1.25;
        margin-top: 0;
        padding-top: 0.25rem;
    }

    /* Newsletter list rows: stack so the title isn't pinched by the
       nowrap Continue Reading button. */
    .card-story--list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 24px 0;
    }

    .card-story--list .card-story__body {
        max-width: 100%;
        width: 100%;
    }

    .card-story--list .card-story__title {
        font-size: 1.375rem;
    }

    .card-story--list .card-story__meta {
        font-size: 0.875rem;
    }

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

    .footer-signup__form {
        flex-direction: column;
    }

    .site-footer__top {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .site-footer__nav ul {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .site-footer__bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .site-footer__legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    .site-footer__legal li:not(:last-child)::after {
        display: none;
    }

    .site-footer__social {
        justify-content: center;
    }

    .scoville-level {
        flex-direction: column;
        align-items: flex-start;
        text-align: start;
    }

    .scoville-level__image {
        width: 120px;
    }

    .correction-card {
        grid-template-columns: 1fr;
    }

    .correction-card__image {
        order: -1;
    }
}

/* ================================================================
   MemberPress checkout (single-memberpressproduct.php)
   Clean conversion page — no editorial chrome.
   ================================================================ */

.checkout-page {
    padding: 3rem 1.5rem 4rem;
    background-color: var(--tx-alt-bg);
}

.checkout-page__inner {
    max-width: 640px;
    margin: 0 auto;
    background: var(--tx-white);
    border: 1px solid var(--tx-gray-light);
    box-shadow: var(--tx-shadow-md);
    padding: 2.5rem 2rem;
}

.checkout-page__title {
    font-family: var(--tx-font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    text-align: center;
    margin: 0 0 1.75rem;
}

.checkout-page__form {
    font-family: var(--tx-font-body);
}

.checkout-page__secure,
.checkout-page__help {
    font-family: var(--tx-font-meta);
    font-size: 0.875rem;
    color: var(--tx-gray);
    text-align: center;
    margin: 1.25rem 0 0;
}

.checkout-page__secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.checkout-page__secure svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.checkout-page__help a {
    color: var(--tx-accent);
    text-decoration: underline;
}

.checkout-page__help a:hover {
    color: var(--tx-accent-dark);
}

@media (max-width: 600px) {
    .checkout-page {
        padding: 2rem 1rem 3rem;
    }

    .checkout-page__inner {
        padding: 1.75rem 1.25rem;
    }
}

/* ================================================================
   Newsletter signup — inline status + honeypot
   ================================================================ */

/* Honeypot: off-screen for bots, never shown or announced to humans. */
.tx-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.footer-signup__status,
.newsletter-signup__status {
    font-family: var(--tx-font-meta);
    font-size: 0.9rem;
    margin: 0.75rem 0 0;
    min-height: 1.2em; /* reserve space so the layout doesn't jump */
    text-align: center;
}

.footer-signup__status {
    color: var(--tx-white);
    opacity: 0.9;
}

.newsletter-signup__status {
    color: var(--tx-gray);
}

.footer-signup__status.is-success,
.newsletter-signup__status.is-success {
    font-weight: 600;
}

.newsletter-signup__status.is-success {
    color: var(--tx-accent);
}

.footer-signup__status.is-error,
.newsletter-signup__status.is-error {
    color: var(--tx-red);
}

.footer-signup__status.is-error {
    color: #ffd9d9;
}
