/* Episode pages and episode index. Builds on styles.css. */
.ep-section {
    padding: 32px 0 72px;
    background: var(--bg-dark);
}

.ep-container {
    max-width: 760px;
    padding: 0 24px;
}

.ep-breadcrumb {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.ep-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.ep-breadcrumb a:hover {
    color: var(--accent);
}

.ep-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 500;
}

.ep-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--text-light);
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.ep-guestline {
    font-size: 1.02rem;
    color: var(--text-cream);
    margin-bottom: 12px;
}

.ep-guest {
    color: var(--text-light);
    font-weight: 500;
}

.ep-container h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: left;
    margin: 40px 0 14px;
}

.ep-container p {
    margin-bottom: 14px;
}

.ep-container a {
    color: var(--accent);
}

.ep-small,
.ep-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.ep-listen {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 8px;
}

.ep-listen .platform-link {
    color: var(--text-cream);
}

.ep-chapters,
.ep-topics {
    margin: 0 0 12px 0;
    padding-left: 0;
    list-style: none;
}

.ep-chapters li,
.ep-topics li {
    padding: 7px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.95rem;
}

.ep-topics li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.ep-chapters a {
    text-decoration: none;
}

.ep-chapters a:not(.ep-time) {
    color: var(--text-cream);
}

.ep-chapters a:not(.ep-time):hover {
    color: var(--accent);
}

.ep-time,
.ep-ts {
    display: inline-block;
    min-width: 3.6em;
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.ep-ts {
    min-width: 0;
    margin-right: 6px;
}

.ep-time:hover,
.ep-ts:hover {
    text-decoration: underline;
}

.ep-cite {
    margin: 40px 0 8px;
    padding: 20px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
}

.ep-cite h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.ep-cite-text {
    color: var(--text-light);
    overflow-wrap: anywhere;
}

.ep-cite .ep-small {
    overflow-wrap: anywhere;
    margin-bottom: 0;
}

.ep-transcript h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    margin: 32px 0 12px;
}

.ep-transcript h3 .ep-time {
    font-family: var(--font-body);
    min-width: 0;
    margin-right: 6px;
}

.ep-transcript p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-cream);
    margin-bottom: 16px;
    scroll-margin-top: 16px;
}

.ep-transcript p:target,
.ep-transcript h3:target {
    background: var(--accent-dim);
    border-radius: 4px;
}

.ep-disclaimer {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.ep-more {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 16px;
}

.ep-container .ep-more .btn-secondary {
    color: var(--accent);
}

.ep-prevnext {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
}

.ep-list {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
}

.ep-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.ep-item .ep-eyebrow {
    margin-bottom: 6px;
}

.ep-container h2.ep-item-title {
    font-size: 1.15rem;
    line-height: 1.4;
    margin: 0 0 6px;
}

.ep-item-title a {
    color: var(--text-light);
    text-decoration: none;
}

.ep-item-title a:hover {
    color: var(--accent);
}

.ep-container p.ep-item-guest {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .ep-container {
        padding: 0 16px;
    }

    .ep-title {
        font-size: 1.55rem;
    }

    .ep-listen .platform-link {
        flex: 1 1 100%;
        justify-content: center;
    }

    .ep-cite {
        padding: 16px;
    }
}
