/* Factsogy "The rundown" (/latest/): the link-in-bio page, laid out like a news show's running
 * order. Mobile first, no script. Requires base.css + chrome.css + stories.css. Red appears only
 * on the "Latest" strip, the lead's play button and the Subscribe button (see base.css). */

.rundown-page {
    padding: clamp(28px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
    border-bottom: 1px solid var(--line);
}

.rundown-wrap {
    max-width: 820px;
}

/* ---------- Head ---------- */

.rundown-head {
    margin-bottom: clamp(28px, 5vw, 44px);
}

.rundown-head h1 {
    font-size: clamp(52px, 13vw, 104px);
    line-height: 0.9;
    margin: 0 0 14px;
}

.rundown-intro {
    max-width: 44ch;
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 18px;
}

/* Large bold type, so the white label on the red fill reads easily at a glance. */
.rundown-subscribe {
    min-height: 56px;
    padding: 0 24px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.rundown-subscribe svg {
    --icon-cut: var(--accent-fill);
    width: 26px;
    height: 26px;
    flex: none;
}

/* ---------- The running order ---------- */

.rundown {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rundown-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(112px, 38%) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, transform 0.25s var(--ease-out);
}

.rundown-item:hover {
    border-color: var(--muted);
    transform: translateY(-2px);
}

/* The whole card is the link (the title's ::after covers it), so the focus ring goes on the card. */
.rundown-item:focus-within {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.rundown-item :focus-visible {
    outline: none;
}

.rundown-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    background: var(--surface-2);
}

.rundown-thumb img {
    width: 100%;
    /* auto: the img's height="360" attribute otherwise wins over the 16:9 ratio */
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.rundown-play {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(10, 11, 13, 0.72);
}

.rundown-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -6px 0 0 -3px;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #ffffff;
}

.rundown-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin: 0 0 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

/* The dot and the date wrap as one, never leaving "Business ·" alone on a line. */
.rundown-when {
    white-space: nowrap;
}

/* The segment number, boxed like a line in a broadcast rundown. */
.rundown-slot {
    padding: 1px 6px;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--text);
}

.rundown-title {
    margin: 0;
    font-size: clamp(21px, 5.2vw, 30px);
    line-height: 1.02;
}

.rundown-title a {
    text-decoration: none;
}

.rundown-title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

/* ---------- The lead ---------- */

.rundown-item--lead {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.rundown-item--lead .rundown-thumb {
    border-radius: 0;
}

.rundown-item--lead .rundown-text {
    padding: 16px 18px 22px;
}

.rundown-item--lead .rundown-title {
    font-size: clamp(32px, 8vw, 52px);
    line-height: 0.95;
}

.rundown-item--lead .rundown-play {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 68px;
    height: 68px;
    margin: -34px 0 0 -34px;
    background: var(--accent-fill);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.rundown-item--lead .rundown-play::after {
    margin: -11px 0 0 -6px;
    border-width: 11px 0 11px 19px;
}

/* The live signal: a lower-third strip on the newest story only. */
.rundown-latest {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 6px 14px;
    background: var(--accent-fill);
    color: var(--accent-ink);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rundown-dek {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 16px;
}

/* ---------- After the list ---------- */

.rundown-more {
    margin: 12px 0 0;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* A standalone link: a thumb-sized target, not just the height of its text. */
.rundown-more a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.rundown-empty {
    color: var(--muted);
}

.rundown-follow {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.rundown-follow p {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

@media (max-width: 560px) {
    .rundown-subscribe {
        width: 100%;
        justify-content: center;
    }

    .rundown-item:not(.rundown-item--lead) {
        gap: 12px;
        padding: 8px;
    }
}
