/* Editorial Design System — Prototype B "The Editorial"
 * Newspaper/broadsheet aesthetic, mobile-forward
 * Loads alongside main.css (inherits base reset, fonts, night mode tokens)
 */

/* ============================================
   Editorial Variables
   ============================================ */
:root {
    --ed-max-width: 1120px;
    --ed-content-width: 720px;
    --ed-rule-color: #d4d4d4;
    --ed-rule-dark: #1a1a1a;
    --ed-rule-thick: 3px;
    --ed-rule-thin: 1px;
    --ed-accent: #1a1a1a;
    --ed-link: var(--fh-navy);
    --ed-muted: #737373;
    --ed-bg: #fffdf7;
    --ed-surface: #ffffff;
    --ed-text: #1a1a1a;
    --ed-text-secondary: #404040;
}

/* Night mode overrides for editorial tokens */
body.night-mode {
    --ed-rule-color: #4b5563;
    --ed-rule-dark: #e5e5e5;
    --ed-accent: #e5e5e5;
    --ed-link: #4a90c2;
    --ed-muted: #9ca3af;
    --ed-bg: #1a1f2e;
    --ed-surface: #1e2536;
    --ed-text: #f5f5f5;
    --ed-text-secondary: #d4d4d4;
}

/* ============================================
   Editorial Layout — Override main.css defaults
   ============================================ */
.ed-page {
    background: var(--ed-bg);
    min-height: 100vh;
}

.ed-page h1,
.ed-page h2,
.ed-page h3 {
    color: var(--ed-text);
}

.ed-page a {
    color: var(--ed-link);
}

.ed-page p {
    color: var(--ed-text-secondary);
}

.ed-page strong {
    color: var(--ed-text);
}

.ed-container {
    max-width: var(--ed-max-width);
    margin: 0 auto;
    padding: 0 var(--fh-space-lg);
}

.ed-content {
    max-width: var(--ed-content-width);
    margin: 0 auto;
}

/* ============================================
   Masthead
   ============================================ */
.ed-masthead {
    text-align: center;
    padding: var(--fh-space-2xl) 0 var(--fh-space-lg);
    border-bottom: var(--ed-rule-thick) solid var(--ed-accent);
}

.ed-masthead__title {
    font-family: var(--fh-font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ed-accent);
    margin: 0;
    line-height: 1.1;
}

.ed-masthead__title a {
    text-decoration: none;
    color: inherit;
}

.ed-masthead__tagline {
    font-family: var(--fh-font-display);
    font-size: 0.95rem;
    color: var(--ed-text-secondary);
    margin-top: var(--fh-space-xs);
    font-weight: 300;
    font-style: italic;
}

/* ============================================
   Editorial Nav
   ============================================ */
.ed-nav {
    display: flex;
    justify-content: center;
    gap: var(--fh-space-lg);
    padding: var(--fh-space-md) 0;
    border-bottom: var(--ed-rule-thin) solid var(--ed-rule-color);
    flex-wrap: wrap;
}

.ed-nav a {
    font-family: var(--fh-font-body);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: var(--ed-text-secondary);
    padding: 4px 0;
    transition: color 0.2s ease;
}

.ed-nav a:hover,
.ed-nav a.active {
    color: var(--ed-text);
}

.ed-nav a.active {
    font-weight: 600;
    border-bottom: 2px solid var(--ed-text);
}

/* ============================================
   Dateline
   ============================================ */
.ed-dateline {
    font-family: var(--fh-font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ed-muted);
    text-align: center;
    padding: var(--fh-space-md) 0;
    border-bottom: var(--ed-rule-thin) solid var(--ed-rule-color);
}

/* ============================================
   Section Headers
   ============================================ */
.ed-section-header {
    font-family: var(--fh-font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    color: var(--ed-accent);
    text-align: center;
    padding: var(--fh-space-2xl) 0 var(--fh-space-lg);
    margin-bottom: var(--fh-space-lg);
    border-bottom: var(--ed-rule-thin) double var(--ed-rule-color);
}

.ed-section-subhead {
    font-family: var(--fh-font-body);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ed-muted);
    margin-bottom: var(--fh-space-md);
}

/* Kicker — categorical label above a section header */
.ed-kicker {
    font-family: var(--fh-font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--fh-sage);
    text-align: center;
    margin-top: var(--fh-space-2xl);
}

/* ============================================
   Article Cards (Journal, Research, Investors)
   ============================================ */
.ed-article {
    padding: var(--fh-space-xl) 0;
    border-bottom: var(--ed-rule-thin) solid var(--ed-rule-color);
}

.ed-article:last-child {
    border-bottom: none;
}

.ed-article__kicker {
    font-family: var(--fh-font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fh-sage);
    margin-bottom: var(--fh-space-xs);
}

.ed-article__headline {
    font-family: var(--fh-font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    color: var(--ed-text);
    line-height: 1.25;
    margin-bottom: var(--fh-space-sm);
}

.ed-article__headline a {
    text-decoration: none;
    color: inherit;
}

.ed-article__headline a:hover {
    color: var(--ed-link);
}

.ed-article__meta {
    font-family: var(--fh-font-mono);
    font-size: 0.75rem;
    color: var(--ed-muted);
    margin-bottom: var(--fh-space-md);
}

.ed-article__lede {
    font-family: var(--fh-font-display);
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--ed-text-secondary);
}

/* Featured article (larger treatment) */
.ed-article--featured .ed-article__headline {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.15;
}

.ed-article--featured .ed-article__lede {
    font-size: 1.2rem;
}

/* ============================================
   Two-Column Grid (Secondary articles)
   ============================================ */
.ed-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--fh-space-xl);
    padding: var(--fh-space-xl) 0;
    border-bottom: var(--ed-rule-thin) solid var(--ed-rule-color);
}

.ed-two-col .ed-article {
    border-bottom: none;
    padding: 0;
}

.ed-two-col .ed-article + .ed-article {
    border-left: var(--ed-rule-thin) solid var(--ed-rule-color);
    padding-left: var(--fh-space-xl);
}

@media (max-width: 640px) {
    .ed-two-col {
        grid-template-columns: 1fr;
    }

    .ed-two-col .ed-article + .ed-article {
        border-left: none;
        padding-left: 0;
        padding-top: var(--fh-space-xl);
        border-top: var(--ed-rule-thin) solid var(--ed-rule-color);
    }
}

/* ============================================
   Pull Quote
   ============================================ */
.ed-pullquote {
    font-family: var(--fh-font-display);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-style: italic;
    color: var(--ed-text-secondary);
    text-align: center;
    padding: var(--fh-space-2xl) var(--fh-space-xl);
    border-top: var(--ed-rule-thin) solid var(--ed-rule-color);
    border-bottom: var(--ed-rule-thin) solid var(--ed-rule-color);
    margin: var(--fh-space-xl) 0;
    line-height: 1.5;
}

.ed-pullquote__attr {
    display: block;
    font-family: var(--fh-font-mono);
    font-size: 0.75rem;
    font-style: normal;
    letter-spacing: 0.05em;
    color: var(--ed-muted);
    margin-top: var(--fh-space-md);
}

/* ============================================
   Archive List
   ============================================ */
.ed-archive {
    padding: var(--fh-space-xl) 0;
}

.ed-archive__item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: var(--fh-space-sm) 0;
    border-bottom: var(--ed-rule-thin) dotted var(--ed-rule-color);
    gap: var(--fh-space-md);
}

.ed-archive__item a {
    font-family: var(--fh-font-display);
    font-size: 1.05rem;
    text-decoration: none;
    color: var(--ed-text);
    flex: 1;
}

.ed-archive__item a:hover {
    color: var(--ed-link);
}

.ed-archive__date {
    font-family: var(--fh-font-mono);
    font-size: 0.75rem;
    color: var(--ed-muted);
    white-space: nowrap;
}

/* ============================================
   Philosophy / Living Document
   ============================================ */
.ed-prose {
    max-width: var(--ed-content-width);
    margin: 0 auto;
    padding: var(--fh-space-xl) 0;
}

.ed-prose h2 {
    font-family: var(--fh-font-display);
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    font-weight: 400;
    color: var(--ed-accent);
    margin: var(--fh-space-2xl) 0 var(--fh-space-md);
    padding-top: var(--fh-space-lg);
    border-top: var(--ed-rule-thin) solid var(--ed-rule-color);
}

.ed-prose h2:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.ed-prose h3 {
    font-family: var(--fh-font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ed-text);
    margin: var(--fh-space-xl) 0 var(--fh-space-sm);
}

.ed-prose p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ed-text-secondary);
    margin-bottom: var(--fh-space-md);
}

.ed-prose ul,
.ed-prose ol {
    margin: var(--fh-space-md) 0 var(--fh-space-md) var(--fh-space-xl);
    color: var(--ed-text-secondary);
    line-height: 1.8;
}

.ed-prose li {
    margin-bottom: var(--fh-space-sm);
}

.ed-prose blockquote {
    font-family: var(--fh-font-display);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--ed-text-secondary);
    border-left: 3px solid var(--fh-sage);
    padding: var(--fh-space-md) var(--fh-space-xl);
    margin: var(--fh-space-xl) 0;
}

/* ============================================
   Watchlist Table
   ============================================ */
.ed-watchlist {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: var(--fh-space-xl) 0;
}

.ed-watchlist th {
    font-family: var(--fh-font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ed-muted);
    text-align: left;
    padding: var(--fh-space-sm) var(--fh-space-md);
    border-bottom: var(--ed-rule-thick) solid var(--ed-accent);
}

.ed-watchlist td {
    padding: var(--fh-space-sm) var(--fh-space-md);
    border-bottom: var(--ed-rule-thin) solid var(--ed-rule-color);
    vertical-align: top;
}

.ed-watchlist tr:hover {
    background: var(--ed-surface);
}

.ed-watchlist .ticker {
    font-family: var(--fh-font-mono);
    font-weight: 600;
    color: var(--ed-text);
    white-space: nowrap;
}

.ed-watchlist .conviction {
    font-family: var(--fh-font-mono);
    font-size: 0.8rem;
}

.ed-watchlist .conviction--high {
    color: var(--fh-sage);
}

.ed-watchlist .conviction--medium {
    color: var(--fh-gold);
}

.ed-watchlist .conviction--low {
    color: var(--ed-muted);
}

.ed-watchlist .status-active {
    color: var(--fh-sage);
}

.ed-watchlist .status-watching {
    color: var(--fh-gold);
}

.ed-watchlist .status-closed {
    color: var(--ed-muted);
}

/* ============================================
   Investor Profile Cards
   ============================================ */
.ed-profile {
    padding: var(--fh-space-xl) 0;
    border-bottom: var(--ed-rule-thin) solid var(--ed-rule-color);
}

.ed-profile:last-child {
    border-bottom: none;
}

.ed-profile__name {
    font-family: var(--fh-font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ed-text);
    margin-bottom: var(--fh-space-xs);
}

.ed-profile__name a {
    text-decoration: none;
    color: inherit;
}

.ed-profile__name a:hover {
    color: var(--ed-link);
}

.ed-profile__role {
    font-family: var(--fh-font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ed-muted);
    margin-bottom: var(--fh-space-md);
}

.ed-profile__bio {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ed-text-secondary);
}

.ed-profile__takeaway {
    font-family: var(--fh-font-display);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--ed-text-secondary);
    margin-top: var(--fh-space-md);
    padding-left: var(--fh-space-lg);
    border-left: 2px solid var(--fh-sage);
}

/* ============================================
   Changelog (Philosophy page)
   ============================================ */
.ed-changelog {
    margin: var(--fh-space-xl) 0;
}

.ed-changelog__entry {
    display: flex;
    gap: var(--fh-space-lg);
    padding: var(--fh-space-sm) 0;
    font-size: 0.9rem;
}

.ed-changelog__date {
    font-family: var(--fh-font-mono);
    font-size: 0.75rem;
    color: var(--ed-muted);
    white-space: nowrap;
    min-width: 80px;
}

.ed-changelog__text {
    color: var(--ed-text-secondary);
}

/* ============================================
   Editorial Footer
   ============================================ */
.ed-footer {
    text-align: center;
    padding: var(--fh-space-2xl) 0;
    border-top: var(--ed-rule-thick) solid var(--ed-accent);
    margin-top: var(--fh-space-2xl);
}

.ed-footer__text {
    font-size: 0.8rem;
    color: var(--ed-muted);
    margin-bottom: var(--fh-space-xs);
}

.ed-footer__disclaimer {
    font-size: 0.7rem;
    color: var(--ed-muted);
    font-style: italic;
}

/* ============================================
   Training Hub — Program Cards
   ============================================ */
.ed-programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--fh-space-xl);
    margin: var(--fh-space-xl) 0;
}

.ed-program {
    background: var(--ed-surface);
    border: var(--ed-rule-thin) solid var(--ed-rule-color);
    padding: var(--fh-space-xl);
    text-decoration: none;
    display: block;
    transition: box-shadow 0.2s ease;
}

.ed-program:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ed-program--sage { border-left: 4px solid var(--fh-sage); }
.ed-program--gold { border-left: 4px solid var(--fh-gold); }
.ed-program--burgundy { border-left: 4px solid var(--fh-burgundy); }

.ed-program__badge {
    font-family: var(--fh-font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--fh-space-sm);
    display: inline-block;
}

.ed-program__badge--sage { color: var(--fh-sage); }
.ed-program__badge--gold { color: var(--fh-gold); }
.ed-program__badge--burgundy { color: var(--fh-burgundy); }

.ed-program__title {
    font-family: var(--fh-font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ed-text);
    margin-bottom: var(--fh-space-xs);
}

.ed-program__subtitle {
    font-size: 0.9rem;
    color: var(--ed-text-secondary);
    margin-bottom: var(--fh-space-lg);
}

.ed-program__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--fh-space-sm);
    padding: var(--fh-space-md) 0;
    border-top: var(--ed-rule-thin) solid var(--ed-rule-color);
    border-bottom: var(--ed-rule-thin) solid var(--ed-rule-color);
    margin-bottom: var(--fh-space-md);
    text-align: center;
}

.ed-program__stat-num {
    font-family: var(--fh-font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ed-text);
}

.ed-program__stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ed-muted);
}

.ed-program__desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--ed-text-secondary);
    margin-bottom: var(--fh-space-md);
}

.ed-program__cta {
    font-family: var(--fh-font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ed-link);
}

/* ============================================
   Exam Hub — Chapter Grid
   ============================================ */
.ed-chapters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--fh-space-lg);
    margin: var(--fh-space-xl) 0;
}

.ed-chapter {
    background: var(--ed-surface);
    border: var(--ed-rule-thin) solid var(--ed-rule-color);
    padding: var(--fh-space-lg);
    text-decoration: none;
    display: block;
    transition: box-shadow 0.2s ease;
}

.ed-chapter:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ed-chapter--coming {
    opacity: 0.5;
}

.ed-chapter__number {
    font-family: var(--fh-font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fh-sage);
}

.ed-chapter__title {
    font-family: var(--fh-font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--ed-text);
    margin: var(--fh-space-xs) 0 var(--fh-space-sm);
}

.ed-chapter__topics {
    font-size: 0.85rem;
    color: var(--ed-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--fh-space-sm);
}

.ed-chapter__status {
    font-family: var(--fh-font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ed-chapter__status--available { color: var(--fh-sage); }
.ed-chapter__status--coming { color: var(--ed-muted); }
.ed-chapter__status--highlight { color: var(--fh-gold); }

/* ============================================
   Exam Hub — Stats Bar
   ============================================ */
.ed-exam-stats {
    display: flex;
    justify-content: center;
    gap: var(--fh-space-2xl);
    flex-wrap: wrap;
    padding: var(--fh-space-xl) 0;
    border-bottom: var(--ed-rule-thin) solid var(--ed-rule-color);
    margin-bottom: var(--fh-space-lg);
}

.ed-exam-stat {
    text-align: center;
}

.ed-exam-stat__num {
    font-family: var(--fh-font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ed-text);
    line-height: 1.1;
}

.ed-exam-stat__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ed-muted);
    margin-top: 2px;
}

/* ============================================
   Exam Hub — Study Tools Grid
   ============================================ */
.ed-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--fh-space-md);
    margin: var(--fh-space-lg) 0;
}

.ed-tool {
    background: var(--ed-surface);
    border: var(--ed-rule-thin) solid var(--ed-rule-color);
    padding: var(--fh-space-md);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--fh-space-md);
    transition: border-color 0.2s ease;
}

.ed-tool:hover {
    border-color: var(--ed-text);
}

.ed-tool__icon {
    width: 36px;
    height: 36px;
    background: var(--ed-text);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ed-bg);
    flex-shrink: 0;
}

.ed-tool__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ed-text);
}

.ed-tool__desc {
    font-size: 0.8rem;
    color: var(--ed-text-secondary);
    margin: 0;
}

/* ============================================
   Callout Box (prereq notes, audio cross-link)
   ============================================ */
.ed-callout {
    border-left: 3px solid var(--fh-sage);
    background: var(--ed-surface);
    padding: var(--fh-space-lg);
    margin: var(--fh-space-xl) 0;
    font-size: 0.9rem;
    color: var(--ed-text-secondary);
}

.ed-callout strong {
    color: var(--ed-text);
}

.ed-callout--gold {
    border-left-color: var(--fh-gold);
}

.ed-callout--accent {
    border-left-color: var(--ed-text);
}

.ed-callout--highlight {
    background: var(--ed-text);
    border-left: none;
    color: var(--ed-bg);
    padding: var(--fh-space-xl);
}

.ed-callout--highlight strong,
.ed-callout--highlight a {
    color: var(--ed-bg);
}

/* ============================================
   Audio Player — Editorial Pages
   ============================================ */
.ed-audio {
    background: var(--ed-surface);
    border: var(--ed-rule-thin) solid var(--ed-rule-color);
    padding: var(--fh-space-xl);
    margin: var(--fh-space-lg) 0 var(--fh-space-xl);
}

body.night-mode .ed-audio {
    background: #0f1219;
    border-color: #1e2536;
}

.ed-audio__header {
    margin-bottom: var(--fh-space-md);
}

.ed-audio__label {
    font-family: var(--fh-font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ed-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: var(--fh-space-xs);
}

.ed-audio__title {
    font-family: var(--fh-font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--ed-text);
    margin: 0;
    line-height: 1.3;
}

/* Day mode: override .cp controls from white to dark */
.ed-audio .cp__btn {
    color: var(--ed-text);
}

.ed-audio .cp__play {
    background: rgba(0, 0, 0, 0.08);
}

.ed-audio .cp__progress-bar {
    background: rgba(0, 0, 0, 0.1);
}

.ed-audio .cp__buffered {
    background: rgba(0, 0, 0, 0.15);
}

.ed-audio .cp__handle {
    background: var(--ed-text);
}

.ed-audio .cp__time {
    color: var(--ed-muted);
}

.ed-audio .cp__speed {
    background: rgba(0, 0, 0, 0.08);
    color: var(--ed-text);
}

.ed-audio .cp--playing .cp__play {
    background: rgba(0, 0, 0, 0.12);
}

/* Night mode: revert .cp controls back to white-on-dark */
body.night-mode .ed-audio .cp__btn {
    color: #fff;
}

body.night-mode .ed-audio .cp__play {
    background: rgba(255, 255, 255, 0.18);
}

body.night-mode .ed-audio .cp__progress-bar {
    background: rgba(255, 255, 255, 0.15);
}

body.night-mode .ed-audio .cp__buffered {
    background: rgba(255, 255, 255, 0.2);
}

body.night-mode .ed-audio .cp__handle {
    background: #fff;
}

body.night-mode .ed-audio .cp__time {
    color: rgba(255, 255, 255, 0.7);
}

body.night-mode .ed-audio .cp__speed {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

body.night-mode .ed-audio .cp--playing .cp__play {
    background: rgba(255, 255, 255, 0.25);
}

body.night-mode .ed-audio .ed-audio__label {
    color: rgba(255, 255, 255, 0.6);
}

body.night-mode .ed-audio .ed-audio__title {
    color: rgba(255, 255, 255, 0.92);
}

.ed-audio__controls {
    width: 100%;
}

.ed-audio__controls audio[controls] {
    width: 100%;
    height: 44px;
}

.ed-audio__controls audio:not([controls]) {
    height: 0;
    display: none;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .ed-nav {
        gap: var(--fh-space-md);
    }

    .ed-nav a {
        font-size: 0.7rem;
    }

    .ed-article--featured .ed-article__headline {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ed-nav {
        gap: var(--fh-space-sm);
    }

    .ed-archive__item {
        flex-direction: column;
        gap: 2px;
    }
}

/* ============================================
   Audio Series — Hero + Numbered Contents List
   Sequential, narrated series (e.g. Bitcoin: A Money Story).
   Distinct from the exam audio libraries, which are
   standalone-episode grids. Listen in order.
   ============================================ */
.ed-series-dek {
    max-width: var(--ed-content-width);
    margin: 0 auto var(--fh-space-lg);
    font-family: var(--fh-font-display);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--ed-text-secondary);
    text-align: center;
}

.ed-series-meta {
    font-family: var(--fh-font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ed-muted);
    text-align: center;
    margin-bottom: var(--fh-space-2xl);
}

.ed-series-meta span + span::before {
    content: "·";
    margin: 0 0.6rem;
    color: var(--ed-rule-color);
}

.ed-toc {
    max-width: var(--ed-content-width);
    margin: 0 auto;
}

.ed-toc__row {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    column-gap: var(--fh-space-lg);
    align-items: baseline;
    padding: var(--fh-space-lg) 0;
    border-bottom: var(--ed-rule-thin) dotted var(--ed-rule-color);
}

.ed-toc__row:first-child {
    border-top: var(--ed-rule-thick) solid var(--ed-accent);
}

.ed-toc__num {
    font-family: var(--fh-font-display);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--fh-sage);
    text-align: right;
    line-height: 1;
}

.ed-toc__title {
    font-family: var(--fh-font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--ed-text);
    line-height: 1.2;
}

.ed-toc__dek {
    font-family: var(--fh-font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--ed-text-secondary);
    margin-top: 3px;
    line-height: 1.4;
}

.ed-toc__desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ed-text-secondary);
    margin-top: var(--fh-space-sm);
}

/* When an episode's audio is live, its .ed-audio player sits here. */
.ed-toc__row .ed-audio {
    margin: var(--fh-space-md) 0 0;
}

.ed-toc__aside {
    text-align: right;
    white-space: nowrap;
}

.ed-toc__runtime {
    font-family: var(--fh-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ed-muted);
}

.ed-toc__status {
    display: inline-block;
    margin-top: var(--fh-space-sm);
    font-family: var(--fh-font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ed-muted);
    border: var(--ed-rule-thin) solid var(--ed-rule-color);
    padding: 4px 8px;
}

@media (max-width: 560px) {
    .ed-toc__row {
        grid-template-columns: 34px 1fr;
    }

    .ed-toc__num {
        font-size: 1.15rem;
    }

    .ed-toc__aside {
        grid-column: 2;
        text-align: left;
        margin-top: var(--fh-space-xs);
    }

    .ed-toc__status {
        margin-top: var(--fh-space-xs);
    }
}

/* ============================================
   Audio Series — Live Calls (master player + playlist)
   One branded transport (.audio-player / .cp) plays a
   playlist of standalone, order-independent episodes
   grouped by theme. Rows are <button> tracks that load
   into the single player — no stacked per-episode players.
   Controller: assets/js/live-calls-player.js.
   ============================================ */
.ed-fine-print {
    max-width: var(--ed-content-width);
    margin: 0 auto var(--fh-space-md);
    font-family: var(--fh-font-body);
    font-size: 0.8rem;
    font-style: italic;
    line-height: 1.55;
    color: var(--ed-muted);
    text-align: center;
}

.ed-fine-print a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Tighten the meta line above the fine print on this page type. */
.lc-page .ed-series-meta {
    margin-bottom: var(--fh-space-lg);
}

.lc-group {
    max-width: var(--ed-content-width);
    margin: var(--fh-space-xl) auto 0;
}

.lc-group__label {
    text-align: left;
    margin-bottom: var(--fh-space-xs);
}

/* Master player (wraps the .audio-player navy card + .cp transport) */
.lc-player {
    max-width: var(--ed-content-width);
    margin: var(--fh-space-xl) auto 0;
}

.lc-player__eyebrow {
    display: block;
    font-family: var(--fh-font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.lc-player__desc {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: var(--fh-space-sm) 0 var(--fh-space-md);
}

/* Track rows (buttons that load into the master player) */
.lc-track {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    grid-template-areas:
        "num title state"
        "num dek   state";
    column-gap: var(--fh-space-md);
    row-gap: 2px;
    align-items: center;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    border-bottom: var(--ed-rule-thin) dotted var(--ed-rule-color);
    padding: var(--fh-space-md) var(--fh-space-sm);
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
}

.lc-track:first-of-type {
    border-top: var(--ed-rule-thick) solid var(--ed-accent);
}

.lc-track:hover { background: rgba(124, 152, 133, 0.08); }

.lc-track:focus-visible {
    outline: 2px solid var(--ed-accent);
    outline-offset: -2px;
}

.lc-track__num {
    grid-area: num;
    font-family: var(--fh-font-display);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--fh-sage);
    text-align: right;
    line-height: 1;
}

.lc-track__title {
    grid-area: title;
    font-family: var(--fh-font-display);
    font-size: 1.1rem;
    color: var(--ed-text);
    line-height: 1.25;
}

.lc-track__dek {
    grid-area: dek;
    font-family: var(--fh-font-display);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--ed-text-secondary);
    line-height: 1.35;
}

.lc-track__state {
    grid-area: state;
    display: inline-flex;
    align-items: center;
    gap: var(--fh-space-sm);
    white-space: nowrap;
}

.lc-track__runtime {
    font-family: var(--fh-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ed-muted);
}

.lc-track__icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ed-muted);
    flex: none;
}

.lc-track__icon svg { width: 22px; height: 22px; }
.lc-track .lc-ico-pause { display: none; }

.lc-track.is-active { background: rgba(124, 152, 133, 0.12); }
.lc-track.is-active .lc-track__title { color: var(--ed-accent); font-weight: 500; }
.lc-track.is-active .lc-track__num,
.lc-track.is-active .lc-track__icon { color: var(--ed-accent); }
.lc-track.is-playing .lc-ico-play { display: none; }
.lc-track.is-playing .lc-ico-pause { display: inline-flex; }

/* Loading: the file is being fetched (a ~5MB call, cold on first play). Show a
   spinner in place of the icon so a tap never looks like nothing happened. */
.lc-track.is-loading .lc-ico-play,
.lc-track.is-loading .lc-ico-pause { display: none; }
.lc-track.is-loading .lc-track__runtime { color: var(--ed-accent); }
.lc-track.is-loading .lc-track__icon::after {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(124, 152, 133, 0.3);
    border-top-color: var(--ed-accent);
    animation: lc-spin 0.7s linear infinite;
}

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

/* Error: the file failed to load. Say so, and that the row is tappable to retry. */
.lc-track.is-error .lc-track__runtime { color: #b4432f; }
.lc-track.is-error .lc-track__runtime::after { content: " · retry"; }

@media (prefers-reduced-motion: reduce) {
    .lc-track.is-loading .lc-track__icon::after { animation-duration: 2.4s; }
}

@media (max-width: 560px) {
    .lc-track {
        grid-template-columns: 32px 1fr auto;
        column-gap: var(--fh-space-sm);
    }

    .lc-track__num { font-size: 1.1rem; }
}
