/*
 * Temperature Zero — Landing Modules
 *
 * Module styles for the seven landing-page partials. Inherits design
 * tokens from style.css :root (--tz-bg, --tz-accent, --tz-mono, etc.).
 *
 * Versioned filename: bypasses Cloudflare's ?ver= cache normalization.
 * Bump the filename (landing-modules.1.3.css) when shipping changes.
 *
 * 1.0 — initial Prompt 2 module styles
 * 1.1 — Prompt 3: .tz-freshness, lifted .tz-sf-*
 * 1.2 — Prompt 4: .tz-matrix (benchmark matrix; legacy .tz-leaderboard
 *        styles kept below the matrix block for safety until confirmed unused)
 * 1.3 — Prompt 5: .tz-spotlight (briefing-spotlight module; "Today in AI"
 *        slot repointed from counter tiles to latest-briefing themes).
 *        Counter subsystem retired same arc; .tz-counter styles removed.
 */

/* ── Layout primitives ──────────────────────────────────────── */
.tz-landing {
    background: var(--tz-bg);
    color: var(--tz-text);
}

.tz-landing .tz-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--tz-border);
}

.tz-landing .tz-section:last-child {
    border-bottom: none;
}

.tz-section__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 720px) {
    .tz-landing .tz-section {
        padding: 2rem 0;
    }
    .tz-section__inner {
        padding: 0 1rem;
    }
}

/* ── Module header (used by leaderboard, counter, briefing, index) ── */
.tz-module-header {
    text-align: center;
    max-width: 60ch;
    margin: 0 auto 2.5rem;
}

.tz-module-kicker {
    display: inline-block;
    font-family: var(--tz-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tz-muted);
    margin-bottom: 0.5rem;
}

.tz-module-title {
    color: var(--tz-heading);
    font-family: var(--tz-sans);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
}

.tz-module-source {
    font-family: var(--tz-mono);
    font-size: 12px;
    color: var(--tz-muted);
    margin: 0;
}

.tz-module-source a {
    color: var(--tz-muted);
    text-decoration: underline;
    text-decoration-color: var(--tz-border);
    transition: color 200ms ease, text-decoration-color 200ms ease;
}

.tz-module-source a:hover {
    color: var(--tz-accent);
    text-decoration-color: var(--tz-accent);
}

.tz-data-pending {
    color: var(--tz-accent-dim);
    font-style: italic;
}

/* ── 1. Ticker Band ─────────────────────────────────────────── */
.tz-section--ticker {
    padding: 0 !important;
    border-bottom: 1px solid var(--tz-border);
    background: #07070d;
}

.tz-ticker {
    overflow: hidden;
    height: 36px;
    position: relative;
}

.tz-ticker__track {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    animation: tz-ticker-scroll 90s linear infinite;
}

.tz-ticker:hover .tz-ticker__track {
    animation-play-state: paused;
}

.tz-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 2rem;
    font-family: var(--tz-mono);
    font-size: 13px;
    white-space: nowrap;
}

.tz-ticker__symbol {
    color: var(--tz-heading);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.tz-ticker__price {
    color: var(--tz-text);
}

.tz-ticker__change--up    { color: var(--tz-accent); }
.tz-ticker__change--down  { color: #f06464; }
.tz-ticker__change--flat  { color: var(--tz-muted); }

.tz-section--ticker-placeholder .tz-ticker__symbol,
.tz-section--ticker-placeholder .tz-ticker__price,
.tz-section--ticker-placeholder .tz-ticker__change {
    color: var(--tz-muted);
}

@keyframes tz-ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .tz-ticker {
        overflow-x: auto;
    }
    .tz-ticker__track {
        animation: none;
    }
}

/* ── 2. Featured Hero ───────────────────────────────────────── */
.tz-section--hero {
    padding: 0 !important;
    border-bottom: 1px solid var(--tz-border);
}

.tz-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 460px;
    overflow: hidden;
    background: var(--tz-surface);
}

.tz-hero__image {
    position: relative;
    overflow: hidden;
    display: block;
    background: var(--tz-bg);
}

.tz-hero__image img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tz-hero:hover .tz-hero__image img {
    transform: scale(1.025);
}

.tz-hero__content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.tz-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--tz-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tz-muted);
}

.tz-hero__kicker {
    color: var(--tz-accent);
}

.tz-hero__meta-sep {
    opacity: 0.6;
}

.tz-hero__title {
    font-family: var(--tz-sans);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--tz-heading);
    margin: 0;
}

.tz-hero__title a {
    color: inherit;
    text-decoration: none;
    transition: color 200ms ease;
}

.tz-hero__title a:hover {
    color: var(--tz-accent);
}

.tz-hero__blurb {
    color: var(--tz-text);
    line-height: 1.65;
    max-width: 60ch;
    margin: 0;
}

.tz-hero__cta {
    align-self: flex-start;
    margin-top: 0.5rem;
    font-family: var(--tz-mono);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tz-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 200ms ease;
}

.tz-hero__cta:hover {
    border-bottom-color: var(--tz-accent);
}

@media (max-width: 880px) {
    .tz-hero {
        grid-template-columns: 1fr;
    }
    .tz-hero__content {
        padding: 2rem 1.25rem;
    }
}

/* ── 3. Model Leaderboard ───────────────────────────────────── */
.tz-leaderboard {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 880px;
    margin: 0 auto;
}

.tz-leaderboard__row {
    display: grid;
    grid-template-columns: 44px minmax(160px, 1.4fr) minmax(120px, 2fr) 64px;
    gap: 1.25rem;
    align-items: center;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--tz-border);
    transition: background 200ms ease;
}

.tz-leaderboard__row:hover {
    background: var(--tz-surface);
}

.tz-leaderboard__row:last-child {
    border-bottom: none;
}

.tz-leaderboard__rank {
    font-family: var(--tz-mono);
    font-size: 1.25rem;
    color: var(--tz-muted);
    font-variant-numeric: tabular-nums;
}

.tz-leaderboard__row--top .tz-leaderboard__rank {
    color: var(--tz-accent);
}

.tz-leaderboard__model {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.tz-leaderboard__name {
    font-family: var(--tz-sans);
    font-weight: 600;
    color: var(--tz-heading);
    font-size: 0.95rem;
}

.tz-leaderboard__vendor {
    font-family: var(--tz-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tz-muted);
}

.tz-leaderboard__bar {
    height: 4px;
    background: var(--tz-border);
    border-radius: 2px;
    overflow: hidden;
}

.tz-leaderboard__bar-fill {
    height: 100%;
    background: var(--tz-accent);
    border-radius: 2px;
    transition: width 400ms ease;
}

.tz-section--leaderboard-placeholder .tz-leaderboard__bar-fill {
    width: 0% !important;
    background: var(--tz-accent-dim);
}

.tz-leaderboard__score {
    font-family: var(--tz-mono);
    color: var(--tz-text);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .tz-leaderboard__row {
        grid-template-columns: 36px minmax(0, 1fr) 64px;
        gap: 0.75rem;
    }
    .tz-leaderboard__bar {
        grid-column: 1 / -1;
        margin-top: 0.25rem;
    }
}

/* ── 3b. Benchmark Matrix (Prompt 4 — replaces the single-bar leaderboard) ─
 *
 * Native-scale per-benchmark cells, fixed per-column denominator for the
 * mini-bar, composite as a visually distinct context column (no bar). The
 * matrix is server-rendered with both raw + rank views in markup; the view
 * toggle is sibling-:checked CSS — JS-off defaults to raw and remains usable.
 */
.tz-section--matrix {
    /* hairline accent line above the section to set the dashboard tone */
    border-top: 1px solid var(--tz-border);
}

.tz-module-header--matrix {
    max-width: 78ch;
}

.tz-matrix__note {
    font-family: var(--tz-mono);
    font-size: 11px;
    line-height: 1.55;
    color: var(--tz-muted);
    margin: 0.75rem auto 0;
    max-width: 60ch;
}

.tz-matrix__drift-notice {
    display: inline-block;
    margin: 1rem auto 0;
    padding: 0.4rem 0.75rem;
    border-radius: var(--tz-radius-sm);
    background: rgba(255, 180, 100, 0.08);
    border: 1px solid rgba(255, 180, 100, 0.25);
    font-size: 12px;
}

/* View toggle — visually a pair of pill buttons, behaviorally a radio group. */
.tz-matrix__view-input {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
}

.tz-matrix__view-toggle {
    display: inline-flex;
    margin-top: 1rem;
    border: 1px solid var(--tz-border);
    border-radius: 999px;
    background: var(--tz-surface);
    overflow: hidden;
}

.tz-matrix__view-label {
    font-family: var(--tz-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.45rem 1.1rem;
    color: var(--tz-muted);
    cursor: pointer;
    user-select: none;
    transition: color var(--tz-duration-md) var(--tz-ease),
                background var(--tz-duration-md) var(--tz-ease);
}

.tz-matrix__view-label:hover {
    color: var(--tz-text);
}

/* :checked + label-target — sibling selectors. Inputs sit before the section
 * body; labels reference the inputs by id, so the visual state of each label
 * comes from its corresponding input's :checked state via :has fallback.
 */
#tz-matrix-view-raw:checked  ~ .tz-module-header--matrix .tz-matrix__view-toggle label[for="tz-matrix-view-raw"],
#tz-matrix-view-rank:checked ~ .tz-module-header--matrix .tz-matrix__view-toggle label[for="tz-matrix-view-rank"] {
    background: var(--tz-accent);
    color: #051010;
}

#tz-matrix-view-raw:checked:focus-visible  ~ .tz-module-header--matrix .tz-matrix__view-toggle label[for="tz-matrix-view-raw"],
#tz-matrix-view-rank:checked:focus-visible ~ .tz-module-header--matrix .tz-matrix__view-toggle label[for="tz-matrix-view-rank"] {
    box-shadow: var(--tz-glow-focus);
}

/* Horizontal scroll wrapper for narrow viewports. */
.tz-matrix__scroll {
    margin-top: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
}

.tz-matrix {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--tz-mono);
    font-size: 12.5px;
    min-width: 720px;
}

.tz-matrix__th {
    text-align: left;
    font-weight: 500;
    color: var(--tz-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 11px;
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--tz-border);
    vertical-align: bottom;
}

.tz-matrix__th--rank  { width: 44px; text-align: center; }
.tz-matrix__th--model { width: 22%; min-width: 180px; }
.tz-matrix__th--bench { white-space: nowrap; }
.tz-matrix__th--composite {
    color: var(--tz-accent);
    border-left: 1px solid var(--tz-border);
    padding-left: 1rem;
    background: linear-gradient(to bottom, rgba(74,240,200,0.02), transparent);
}

.tz-matrix__th-label  { display: block; color: var(--tz-text); font-size: 12px; }
.tz-matrix__th--composite .tz-matrix__th-label { color: var(--tz-accent); }
.tz-matrix__th-scale  { display: block; opacity: 0.7; font-size: 10px; letter-spacing: 0.12em; margin-top: 0.15rem; }

.tz-matrix__row {
    transition: background var(--tz-duration-md) var(--tz-ease);
}

.tz-matrix__row:hover {
    background: var(--tz-surface);
}

.tz-matrix__row + .tz-matrix__row .tz-matrix__rank,
.tz-matrix__row + .tz-matrix__row .tz-matrix__model,
.tz-matrix__row + .tz-matrix__row .tz-matrix__cell {
    border-top: 1px solid var(--tz-border);
}

.tz-matrix__rank {
    font-family: var(--tz-mono);
    color: var(--tz-muted);
    text-align: center;
    padding: 0.85rem 0.4rem;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    width: 44px;
}

.tz-matrix__row--top .tz-matrix__rank {
    color: var(--tz-accent);
}

.tz-matrix__model {
    padding: 0.85rem 0.75rem;
    line-height: 1.3;
}

.tz-matrix__model-name {
    display: block;
    font-family: var(--tz-sans);
    font-weight: 600;
    color: var(--tz-heading);
    font-size: 13.5px;
}

.tz-matrix__model-vendor {
    display: block;
    font-family: var(--tz-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tz-muted);
    margin-top: 0.1rem;
}

.tz-matrix__cell {
    padding: 0.85rem 0.75rem;
    color: var(--tz-text);
    position: relative;
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
    min-width: 80px;
}

.tz-matrix__cell--composite {
    border-left: 1px solid var(--tz-border);
    padding-left: 1rem;
    background: linear-gradient(to bottom, rgba(74,240,200,0.02), transparent);
}

.tz-matrix__cell--null {
    color: var(--tz-muted);
    opacity: 0.45;
}

.tz-matrix__cell-empty {
    font-family: var(--tz-mono);
    color: var(--tz-muted);
}

.tz-matrix__cell-raw {
    display: block;
    font-size: 13px;
    color: var(--tz-text);
}

.tz-matrix__row--top .tz-matrix__cell-raw {
    color: var(--tz-heading);
}

.tz-matrix__cell--composite .tz-matrix__cell-raw {
    color: var(--tz-accent);
    font-weight: 600;
    font-size: 14px;
}

.tz-matrix__cell-rank {
    display: none;
    font-size: 13px;
    color: var(--tz-muted);
}

.tz-matrix__cell-est {
    color: var(--tz-muted);
    margin-left: 0.15rem;
    font-size: 10px;
    vertical-align: super;
}

/* Mini-bar — fixed per-column denominator via inline --w. The width is set
 * server-side; the bar is purely decorative reinforcement of the raw value.
 */
.tz-matrix__cell-bar {
    display: block;
    margin-top: 0.4rem;
    height: 2px;
    width: var(--w, 0%);
    background: var(--tz-accent);
    border-radius: 1px;
    transition: width var(--tz-duration-lg) var(--tz-ease);
}

.tz-matrix__row--top .tz-matrix__cell-bar {
    box-shadow: 0 0 6px rgba(74, 240, 200, 0.25);
}

/* Rank view: hide raw + bar, show rank-in-col. CSS toggle via sibling :checked.
 * Inputs are siblings of the entire matrix container; targeting goes through
 * the section scroll wrapper.
 */
#tz-matrix-view-rank:checked ~ .tz-matrix__scroll .tz-matrix__cell-raw,
#tz-matrix-view-rank:checked ~ .tz-matrix__scroll .tz-matrix__cell-bar,
#tz-matrix-view-rank:checked ~ .tz-matrix__scroll .tz-matrix__cell-est {
    display: none;
}

#tz-matrix-view-rank:checked ~ .tz-matrix__scroll .tz-matrix__cell-rank {
    display: block;
    color: var(--tz-text);
    font-weight: 500;
}

#tz-matrix-view-rank:checked ~ .tz-matrix__scroll .tz-matrix__cell--composite .tz-matrix__cell-rank {
    color: var(--tz-accent);
    font-weight: 600;
}

.tz-matrix__footnote {
    font-family: var(--tz-mono);
    font-size: 11px;
    line-height: 1.6;
    color: var(--tz-muted);
    margin: 1.25rem auto 0;
    max-width: 78ch;
    text-align: left;
    padding: 0.75rem 0;
    border-top: 1px solid var(--tz-border);
}

/* Placeholder state — visibly distinct, no spurious bars. */
.tz-section--matrix-placeholder .tz-matrix__cell-bar {
    background: var(--tz-accent-dim);
    opacity: 0.4;
}

.tz-section--matrix-placeholder .tz-matrix__cell-raw,
.tz-section--matrix-placeholder .tz-matrix__cell-rank {
    opacity: 0.6;
}

@media (max-width: 720px) {
    .tz-matrix { font-size: 11.5px; }
    .tz-matrix__th { padding: 0.65rem 0.5rem; }
    .tz-matrix__cell { padding: 0.7rem 0.5rem; min-width: 64px; }
    .tz-matrix__th--model { min-width: 140px; }
    .tz-matrix__model-name { font-size: 12.5px; }
    .tz-matrix__model-vendor { font-size: 9px; }
}

/* ── 4. Briefing Spotlight (repointed "Today in AI" slot) ───
   Replaces the three counter tiles. Themes-led, no image —
   structurally distinct from the image-led .tz-briefing-* strip
   directly below it on the page.                                 */
.tz-spotlight {
    max-width: 880px;
    margin: 0 auto;
    padding: 0;
}

.tz-spotlight__themes {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
    counter-reset: tz-spotlight-counter;
    display: grid;
    gap: 0;
}

.tz-spotlight__theme {
    display: grid;
    grid-template-columns: 3.25rem 1fr;
    gap: 1rem;
    align-items: baseline;
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--tz-border);
    transition: background 220ms ease;
}

.tz-spotlight__theme:first-child {
    border-top: 1px solid var(--tz-border);
}

.tz-spotlight__theme:hover {
    background: linear-gradient(90deg, rgba(74,240,200,0.04) 0%, rgba(74,240,200,0) 70%);
}

.tz-spotlight__theme-num {
    font-family: var(--tz-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--tz-accent);
    font-variant-numeric: tabular-nums;
    padding-top: 0.1rem;
}

.tz-spotlight__theme-text {
    font-family: var(--tz-sans);
    color: var(--tz-text);
    font-size: 1.05rem;
    line-height: 1.55;
}

.tz-spotlight__attribution {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid transparent;
    background-image: var(--tz-grad-rule);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% 1px;
    text-align: center;
}

.tz-spotlight__attribution-label {
    display: block;
    font-family: var(--tz-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tz-muted);
    margin-bottom: 0.5rem;
}

.tz-spotlight__attribution-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    text-decoration: none;
    color: var(--tz-heading);
    transition: color 200ms ease;
}

.tz-spotlight__attribution-link:hover {
    color: var(--tz-accent);
}

.tz-spotlight__attribution-headline {
    font-family: var(--tz-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.tz-spotlight__attribution-date {
    font-family: var(--tz-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tz-muted);
}

.tz-spotlight__attribution-arrow {
    font-family: var(--tz-mono);
    color: var(--tz-accent);
    transition: transform 200ms ease;
}

.tz-spotlight__attribution-link:hover .tz-spotlight__attribution-arrow {
    transform: translateX(3px);
}

.tz-spotlight__pending,
.tz-spotlight__nofallback {
    font-family: var(--tz-sans);
    color: var(--tz-muted);
    text-align: center;
    font-size: 0.95rem;
    padding: 2rem 0;
}

@media (max-width: 720px) {
    .tz-spotlight__theme {
        grid-template-columns: 2.5rem 1fr;
        gap: 0.75rem;
        padding: 0.9rem 0;
    }
    .tz-spotlight__theme-text {
        font-size: 0.98rem;
    }
    .tz-spotlight__attribution-link {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ── 5. Daily Briefing Strip ────────────────────────────────── */
.tz-briefing-featured {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 2rem;
    align-items: stretch;
    background: var(--tz-surface);
    border: 1px solid var(--tz-border);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: border-color 200ms ease;
}

.tz-briefing-featured:hover {
    border-color: var(--tz-accent);
}

.tz-briefing-featured__image {
    display: block;
    background: var(--tz-bg);
    min-height: 240px;
}

.tz-briefing-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tz-briefing-featured__content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
}

.tz-briefing-featured__date {
    font-family: var(--tz-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tz-muted);
}

.tz-briefing-featured__title {
    font-family: var(--tz-sans);
    font-size: 1.625rem;
    line-height: 1.2;
    margin: 0;
    color: var(--tz-heading);
}

.tz-briefing-featured__title a {
    color: inherit;
    text-decoration: none;
    transition: color 200ms ease;
}

.tz-briefing-featured__title a:hover {
    color: var(--tz-accent);
}

.tz-briefing-featured__excerpt {
    color: var(--tz-text);
    line-height: 1.65;
    margin: 0;
}

.tz-briefing-featured__cta {
    align-self: flex-start;
    font-family: var(--tz-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tz-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 200ms ease;
    margin-top: 0.5rem;
}

.tz-briefing-featured__cta:hover {
    border-bottom-color: var(--tz-accent);
}

.tz-briefing-secondary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tz-briefing-card {
    background: var(--tz-surface);
    border: 1px solid var(--tz-border);
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color 200ms ease, transform 200ms ease;
}

.tz-briefing-card:hover {
    border-color: var(--tz-accent);
    transform: translateY(-2px);
}

.tz-briefing-card time {
    font-family: var(--tz-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tz-muted);
}

.tz-briefing-card h4 {
    font-family: var(--tz-sans);
    font-size: 1rem;
    line-height: 1.35;
    margin: 0;
    color: var(--tz-heading);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tz-briefing-card h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 200ms ease;
}

.tz-briefing-card h4 a:hover {
    color: var(--tz-accent);
}

@media (max-width: 880px) {
    .tz-briefing-featured {
        grid-template-columns: 1fr;
    }
    .tz-briefing-featured__content {
        padding: 1.5rem 1.25rem;
    }
    .tz-briefing-secondary {
        grid-template-columns: 1fr;
    }
}

/* ── 6. Newsletter Capture (inline + bottom) ────────────────── */
.tz-newsletter {
    background: var(--tz-surface);
    border: 1px solid var(--tz-border);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: center;
}

.tz-newsletter--bottom {
    grid-template-columns: 1fr;
    max-width: 56ch;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 2rem;
}

.tz-newsletter__kicker {
    display: inline-block;
    font-family: var(--tz-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tz-accent);
    margin-bottom: 0.5rem;
}

.tz-newsletter__title {
    font-family: var(--tz-sans);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.2;
    color: var(--tz-heading);
    margin: 0 0 0.5rem;
}

.tz-newsletter__blurb {
    color: var(--tz-text);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.tz-newsletter__form {
    display: flex;
    gap: 0.5rem;
}

.tz-newsletter--bottom .tz-newsletter__form {
    margin-top: 1.5rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.tz-newsletter__form input[type="email"] {
    flex: 1;
    background: var(--tz-bg);
    border: 1px solid var(--tz-border);
    padding: 0.75rem 1rem;
    color: var(--tz-text);
    font-family: var(--tz-sans);
    font-size: 0.95rem;
    transition: border-color 200ms ease;
    border-radius: 0;
    min-width: 0;
}

.tz-newsletter__form input[type="email"]:focus {
    outline: none;
    border-color: var(--tz-accent);
}

.tz-newsletter__submit {
    background: var(--tz-accent);
    color: var(--tz-bg);
    border: none;
    padding: 0.75rem 1.25rem;
    font-family: var(--tz-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 200ms ease, transform 200ms ease;
    border-radius: 0;
}

.tz-newsletter__submit:hover {
    box-shadow: 0 0 22px rgba(74, 240, 200, 0.35);
    transform: translateY(-1px);
}

@media (max-width: 720px) {
    .tz-newsletter {
        grid-template-columns: 1fr;
        padding: 1.5rem 1.25rem;
    }
    .tz-newsletter__form {
        flex-direction: column;
    }
}

/* ── 7. The Index ───────────────────────────────────────────── */
.tz-index {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tz-index__card {
    background: var(--tz-surface);
    border: 1px solid var(--tz-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: border-color 200ms ease, transform 200ms ease;
}

.tz-index__card:hover {
    border-color: var(--tz-accent);
    transform: translateY(-2px);
}

.tz-index__card--missing {
    opacity: 0.5;
    pointer-events: none;
}

.tz-index__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--tz-bg);
}

.tz-index__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tz-index__card:hover .tz-index__image img {
    transform: scale(1.04);
}

.tz-index__card--no-image .tz-index__image {
    background:
        linear-gradient(135deg, rgba(74, 240, 200, 0.05), transparent 60%),
        var(--tz-surface);
}

.tz-index__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tz-index__kicker {
    font-family: var(--tz-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tz-muted);
}

.tz-index__title {
    font-family: var(--tz-sans);
    font-size: 1.45rem;
    line-height: 1.2;
    color: var(--tz-heading);
    margin: 0;
    transition: color 200ms ease;
}

.tz-index__card:hover .tz-index__title {
    color: var(--tz-accent);
}

.tz-index__blurb {
    color: var(--tz-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.tz-index__meta {
    margin-top: 0.5rem;
    font-family: var(--tz-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tz-accent);
    transition: color 200ms ease;
}

.tz-index__card:hover .tz-index__meta {
    color: var(--tz-heading);
}

@media (max-width: 720px) {
    .tz-index {
        grid-template-columns: 1fr;
    }
}

/* ════════════════════════════════════════════════════════════
   Prompt 3 additions: freshness indicator + lifted subscribe-form
   ════════════════════════════════════════════════════════════ */

/* ── Freshness indicator (shared) ───────────────────────────── */
.tz-freshness {
    font-family: var(--tz-mono);
    font-size: 0.72rem;
    color: var(--tz-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tz-freshness--stale {
    color: #c08a3e;
}

/* Ticker uses a small right-aligned freshness badge below the marquee */
.tz-ticker__freshness {
    text-align: right;
    padding: 0.25rem 1rem 0;
    line-height: 1;
}


/* Leaderboard source line: same inline treatment as counter tiles. */
.tz-module-source .tz-freshness {
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

/* ── Subscribe form (lifted from /newsletter/ page verbatim) ─────────
   The lifted declarations below reference un-prefixed CSS variables
   (--bg, --accent, --text, --muted, --border, --sans, --mono) because
   they were authored inside the .tz-nl-wrap scope on /newsletter/.
   To keep the lifted rules byte-identical, we alias the TZ tokens at
   the .tz-newsletter wrapper level — divergence handled via wrapper,
   not by editing the lifted declarations. If /newsletter/'s form
   changes, update /opt/tz-dispatch/shared/subscribe-form-reference.html
   AND this block in lockstep. */

.tz-newsletter {
    --bg:       var(--tz-bg);
    --surface:  var(--tz-surface);
    --border:   var(--tz-border);
    --accent:   var(--tz-accent);
    --text:     var(--tz-text);
    --muted:    var(--tz-muted);
    --sans:     var(--tz-sans);
    --mono:     var(--tz-mono);
}

.tz-newsletter__form-wrap {
    max-width: 420px;
    width: 100%;
}

.tz-newsletter--bottom .tz-newsletter__form-wrap {
    margin: 0 auto;
}

/* Lifted verbatim from /newsletter/ (page ID 3327). Do not edit here. */
.tz-subscribe-form { text-align: left; }

.tz-sf-email {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.tz-sf-email:focus { border-color: var(--accent); }

.tz-sf-email::placeholder { color: var(--muted); }

.tz-sf-lists {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
}

.tz-sf-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.tz-sf-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.tz-sf-check input[type="checkbox"]:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.tz-sf-check input[type="checkbox"]:checked::after {
  content: '\2713';
  position: absolute;
  top: -1px;
  left: 2px;
  font-size: 11px;
  color: var(--bg);
}

.tz-sf-btn {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}

.tz-sf-btn:hover { opacity: 0.88; }

.tz-sf-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.tz-sf-status {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
  min-height: 1.2em;
  text-align: center;
}

.tz-sf-success { color: var(--accent); }

.tz-sf-error { color: #f06464; }
