/* news-brief.css — top-of-page "News Brief" feature panel.
 * Audio-first, accent-forward treatment so the brief reads as a premier
 * feature instead of blending into the feed. Inherits the site's editorial
 * palette + typography tokens (--accent, --ink-*, --paper-*, --serif, --mono);
 * no new color tokens. Mirrors the mobile brief's play-button language. */

.news-brief {
    display: block;
    margin: 0.5rem 0 1.5rem 0;
}

.news-brief[hidden] { display: none; }

/* ── The panel ─────────────────────────────────────────────────────────── */
.news-brief-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    overflow: hidden;
    /* Accent-tinted border + soft accent wash so it lifts off the feed. */
    border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--rule, rgba(255,255,255,0.12)));
    background:
        radial-gradient(120% 140% at 0% 0%, var(--accent-wash, rgba(212,89,63,0.14)), transparent 58%),
        var(--paper-2, var(--panel, rgba(255,255,255,0.03)));
    box-shadow: 0 10px 34px color-mix(in srgb, var(--accent) 10%, transparent);
    transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.news-brief-card:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--rule, rgba(255,255,255,0.12)));
    box-shadow: 0 14px 40px color-mix(in srgb, var(--accent) 16%, transparent);
}

.news-brief-card.is-playing {
    border-color: color-mix(in srgb, var(--accent) 62%, var(--rule, rgba(255,255,255,0.12)));
}

.news-brief-card.is-stale {
    opacity: 0.66;
    box-shadow: none;
}

/* ── Play button (primary CTA) ─────────────────────────────────────────── */
.news-brief-play {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
    cursor: pointer;
    position: relative;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}

/* Hairline outer ring — presence without weight (mirrors mobile brief). */
.news-brief-play::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    pointer-events: none;
}

.news-brief-play:hover,
.news-brief-play:focus-visible {
    background: var(--accent);
    color: var(--accent-ink, #0d0e10);
    border-color: var(--accent);
    outline: none;
}

.news-brief-play:active { transform: scale(0.96); }

.news-brief-play[data-playing="1"] {
    background: var(--accent);
    color: var(--accent-ink, #0d0e10);
    border-color: var(--accent);
}

.news-brief-play svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    margin-left: 2px; /* optical centering of the play triangle */
}
.news-brief-play[data-playing="1"] svg { margin-left: 0; }

/* ── Body ──────────────────────────────────────────────────────────────── */
.news-brief-body {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
}

.news-brief-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono, ui-monospace, Menlo, monospace);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    line-height: 1;
}

.news-brief-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
    animation: news-brief-pulse 2.4s ease-out infinite;
}

.news-brief-card.is-playing .news-brief-dot { animation-duration: 1.1s; }

@keyframes news-brief-pulse {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
    70%  { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent); }
    100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
}

.news-brief-tag {
    font-family: var(--mono, ui-monospace, Menlo, monospace);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    padding: 0.16rem 0.42rem;
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-wash, rgba(212,89,63,0.14));
}

.news-brief-hook {
    font-family: var(--serif, "Source Serif 4", Georgia, serif);
    font-size: clamp(1.2rem, 1.9vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.12;
    color: var(--ink, var(--text, inherit));
}

.news-brief-meta {
    font-family: var(--mono, ui-monospace, Menlo, monospace);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--ink-3, var(--text-dim, #8a8276));
}

.news-brief-strip {
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--ink-2, #c8c0b0);
    margin-top: 0.18rem;
}

.news-brief-strip-label {
    display: inline-block;
    font-family: var(--mono, ui-monospace, Menlo, monospace);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3, var(--text-dim, #8a8276));
    margin-right: 0.6rem;
}
.news-brief-strip-label::after {
    content: "›";
    margin-left: 0.45rem;
    opacity: 0.6;
}

.news-brief-stale {
    font-size: 0.78rem;
    color: var(--ink-3, var(--text-dim, #8a8276));
    font-style: italic;
}

/* ── Subscribe (secondary action) ──────────────────────────────────────── */
.news-brief-subscribe {
    flex: 0 0 auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--rule, rgba(255,255,255,0.14));
    background: transparent;
    color: var(--ink-2, #c8c0b0);
    font-family: var(--mono, ui-monospace, Menlo, monospace);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.news-brief-subscribe:hover,
.news-brief-subscribe:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
    color: var(--accent);
    outline: none;
}
.news-brief-subscribe-icon { font-size: 0.85em; }

/* ── Progress bar (full-bleed bottom edge while playing) ───────────────── */
.news-brief-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.news-brief-progress[hidden] { display: none; }

.news-brief-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width .25s linear;
}

/* ── Narrow desktop: let the panel breathe vertically ──────────────────── */
@media (max-width: 720px) {
    .news-brief-card { gap: 0.85rem; padding: 1rem; }
    .news-brief-play { width: 52px; height: 52px; }
    .news-brief-subscribe span:not(.news-brief-subscribe-icon) { display: none; }
    .news-brief-subscribe { padding: 0.45rem; }
}

@media (prefers-reduced-motion: reduce) {
    .news-brief-dot { animation: none; }
    .news-brief-progress-fill { transition: none; }
    .news-brief-card { transition: none; }
}
