/* -------------------------------------------------------------------------- */
/* Digest page — editorial / newspaper-inspired long-form layout              */
/* -------------------------------------------------------------------------- */

article.digest-article-layout {
    --digest-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Local fonts only — avoids CDN MIME/blocked-network issues (Google Fonts returning text/html) */
    --digest-serif: Cambria, Georgia, "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
    --digest-accent: rgb(218, 178, 95);
    --digest-paper-fg: rgba(241, 245, 249, 0.96);
    --digest-paper-muted: rgba(203, 213, 225, 0.9);
    --digest-paper-soft: rgba(148, 163, 184, 0.75);
    --digest-rule: rgba(148, 163, 184, 0.22);
    --digest-rail-inset: clamp(24px, 6vw, 48px);
    /* ~A4 short edge + 2cm (1cm extra per side); still shrinks on narrow viewports */
    --digest-rail-cap: calc(210mm + 20mm);
    --digest-rail-width: min(var(--digest-rail-cap), calc(100% - var(--digest-rail-inset)));
    font-variant-numeric: oldstyle-nums;
    overflow-x: clip;
}

article.digest-article-layout.journal-digest-page {
    /* Block + margin auto on the unit — flex + width:100% children stay full-bleed and never “shrink to center” */
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    /* Breathing room inside .main-content / .container (card itself stays full width of that column) */
    padding: 0 clamp(0.5rem, 2vw, 1.25rem) 3rem;
    box-sizing: border-box;
}

/* Single surface: hero + sheet fill the main column; text column ~ A4 width via --digest-rail-* */
.digest-page-unit {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    margin-top: 0.25rem;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
}

.digest-ribbon {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    min-height: clamp(172px, 24vw, 300px);
    background:
        radial-gradient(ellipse 90% 80% at 50% 100%, rgba(22, 28, 45, 0.92), rgba(13, 17, 28, 0.98)),
        linear-gradient(to bottom, rgba(40, 48, 70, 0.9), rgba(13, 17, 28, 0.98));
    border: none;
    border-bottom: 3px solid var(--digest-accent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    box-sizing: border-box;
}

.digest-ribbon img.digest-ribbon-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.02) saturate(0.92);
}

.digest-ribbon .digest-ribbon-gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(10, 12, 20, 0.15) 0%,
        rgba(12, 16, 28, 0.55) 45%,
        rgba(13, 17, 28, 0.92) 100%
    );
}

.digest-ribbon .digest-ribbon-caption {
    position: absolute;
    left: 50%;
    bottom: clamp(18px, 3vw, 32px);
    transform: translateX(-50%);
    width: var(--digest-rail-width);
    z-index: 1;
    text-align: center;
}

.digest-ribbon-capline {
    font-family: var(--digest-sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(218, 178, 95, 0.95);
    margin: 0 auto 12px;
    padding: 0 0 10px;
    border-left: none;
    border-bottom: 2px solid var(--digest-accent);
    display: inline-block;
}

.digest-ribbon h1.digest-ribbon-title {
    margin: 0;
    font-family: var(--digest-serif);
    font-size: clamp(1.75rem, 5vw, 2.85rem);
    font-weight: 700;
    font-optical-sizing: auto;
    letter-spacing: -0.035em;
    line-height: 1.06;
    color: var(--digest-paper-fg);
    text-wrap: balance;
}

.digest-ribbon p.digest-ribbon-dek {
    margin: 12px auto 0;
    max-width: none;
    width: 100%;
    font-family: var(--digest-serif);
    font-size: clamp(0.96rem, 2.1vw, 1.12rem);
    font-weight: 400;
    line-height: 1.52;
    color: var(--digest-paper-muted);
    text-wrap: balance;
}

/* --- Main sheet ------------------------------------------------------------ */
.digest-sheet {
    margin: 0;
    max-width: none;
    width: 100%;
    padding: 1.65rem clamp(1.15rem, 3.5vw, 2rem) 1.85rem;
    box-sizing: border-box;
}

.digest-mast {
    padding: 0 0 1.35rem;
    border-bottom: double 4px var(--digest-rule);
    margin-bottom: 1.5rem;
    text-align: center;
}

.digest-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
    margin: 0 0 14px;
    font-family: var(--digest-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--digest-paper-soft);
}

.digest-breadcrumb a {
    color: var(--digest-paper-soft);
    text-decoration: none;
}
.digest-breadcrumb a:hover {
    color: var(--digest-accent);
}
.digest-breadcrumb span.sep {
    opacity: 0.45;
    padding: 0 0.1rem;
    font-weight: 400;
}
.digest-breadcrumb span.current {
    color: var(--digest-paper-muted);
    font-weight: 500;
}

.digest-lead {
    font-family: var(--digest-serif);
    font-size: clamp(1rem, 2.35vw, 1.185rem);
    font-weight: 450;
    line-height: 1.62;
    color: var(--digest-paper-muted);
    letter-spacing: 0.01em;
}

.digest-lead strong {
    font-weight: 600;
    color: var(--digest-paper-fg);
}

.digest-mast--blog {
    margin-bottom: 0.25rem;
}

.digest-lead--blog {
    max-width: var(--digest-rail-width);
    margin-left: auto;
    margin-right: auto;
}

.digest-datelines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin-top: 14px;
    font-family: var(--digest-sans);
    font-size: 0.78rem;
    color: var(--digest-paper-soft);
    letter-spacing: 0.02em;
    line-height: 1.5;
    text-align: center;
}

.digest-datelines time {
    color: var(--digest-paper-muted);
    font-weight: 500;
}

/* --- Blog-style single narrative (/insights/<ticker>) --------------------- */
.digest-blog {
    margin-top: 0.5rem;
}

.digest-blog-header {
    text-align: center;
    max-width: var(--digest-rail-width);
    margin: 0 auto 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.digest-blog-eyebrow {
    font-family: var(--digest-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(218, 178, 95, 0.88);
    margin: 0 0 10px;
}

.digest-blog-topic {
    margin: 0 0 12px;
    font-family: var(--digest-serif);
    font-size: clamp(1.35rem, 3.2vw, 1.85rem);
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--digest-paper-fg);
}

.digest-byline {
    margin: 0;
    font-family: var(--digest-sans);
    font-size: 0.8rem;
    color: var(--digest-paper-soft);
    letter-spacing: 0.03em;
}

.digest-byline time {
    color: var(--digest-paper-muted);
}

.digest-byline-status {
    display: inline-block;
    margin-left: 10px;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: rgba(226, 232, 240, 0.85);
}

.digest-blog-body {
    max-width: var(--digest-rail-width);
    margin: 0 auto;
    padding: 0 0 2rem;
}

.digest-blog-body .digest-story {
    text-align: left;
}

.digest-story--article {
    font-family: var(--digest-serif);
    font-size: 1.05rem;
    line-height: 1.72;
    color: rgba(241, 245, 249, 0.94);
}

.digest-blog-h2 {
    margin: 2.25rem 0 1rem;
    font-family: var(--digest-sans);
    font-size: clamp(1.05rem, 2.4vw, 1.28rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: #f8fafc;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.digest-blog-h2:first-child {
    margin-top: 0.5rem;
}

.digest-blog-sec-num {
    display: inline-block;
    margin-right: 0.45rem;
    padding: 0.12rem 0.45rem;
    border-radius: 6px;
    font-size: 0.72em;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    vertical-align: 0.12em;
}

.digest-blog-h3 {
    margin: 1.6rem 0 0.65rem;
    font-family: var(--digest-sans);
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.88);
}

.digest-blog-h3--enum {
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 1.05rem;
}

.digest-blog-p,
.digest-blog-lede,
.digest-blog-endnote {
    margin: 0 0 1.1rem;
}

.digest-blog-lede {
    font-size: 1.12rem;
    font-weight: 500;
    color: rgba(248, 250, 252, 0.96);
}

.digest-blog-endnote {
    font-size: 0.92rem;
    color: var(--digest-paper-muted);
    font-style: italic;
}

.digest-blog-dl {
    margin: 0.75rem 0 1.35rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.14);
    display: grid;
    grid-template-columns: minmax(7rem, 32%) 1fr;
    gap: 0.35rem 1rem;
    align-items: baseline;
}

.digest-blog-dl dt {
    margin: 0;
    font-family: var(--digest-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgba(148, 163, 184, 0.95);
}

.digest-blog-dl dd {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(241, 245, 249, 0.94);
}

.digest-blog-line {
    margin: 0.25rem 0;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(203, 213, 225, 0.92);
}

.digest-blog-line--bullet {
    padding-left: 0.6rem;
    border-left: 2px solid rgba(56, 189, 248, 0.35);
}

.digest-blog-line--indent {
    padding-left: 1rem;
    opacity: 0.9;
}

.digest-blog-chip {
    display: inline-block;
    margin: 0.35rem 0;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-family: var(--digest-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #7dd3fc;
}

.digest-blog-pre {
    margin: 0;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
    font-size: 0.82rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
}

.digest-marker-success {
    color: #4ade80;
    font-weight: 600;
}

.digest-marker-error {
    color: #f87171;
    font-weight: 600;
}

.digest-marker-info {
    color: #38bdf8;
    font-weight: 500;
}

.digest-marker-warn {
    color: #fbbf24;
    font-weight: 600;
}

.digest-earlier-hint {
    margin: 0 0 14px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--digest-paper-muted);
}

.digest-earlier--solo {
    margin-top: 0.5rem;
}

.digest-chip--on {
    margin-left: 8px;
    font-size: 0.62rem;
    padding: 0.1rem 0.4rem;
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.digest-inline-figure--blog {
    margin: 1.5rem auto;
    max-width: min(100%, var(--digest-rail-cap));
}

.digest-blog-placeholder {
    margin: 0;
    font-family: var(--digest-serif);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--digest-paper-muted);
}

.digest-blog-actions {
    max-width: var(--digest-rail-width);
    margin: 0 auto 2.5rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    text-align: center;
}

.digest-blog-actions a {
    font-family: var(--digest-sans);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--digest-accent);
    text-decoration: none;
}

.digest-blog-actions a:hover {
    text-decoration: underline;
}

.digest-earlier {
    max-width: var(--digest-rail-width);
    margin: 0 auto 2rem;
    padding: 1rem 1.15rem 1.1rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

.digest-earlier-title {
    margin: 0 0 12px;
    font-family: var(--digest-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--digest-paper-soft);
}

.digest-earlier-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.digest-earlier-list li {
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.digest-earlier-list li:first-child {
    border-top: none;
}

.digest-earlier-list a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 10px 4px;
    text-decoration: none;
    color: var(--digest-paper-muted);
    font-family: var(--digest-sans);
    font-size: 0.82rem;
}

.digest-earlier-list a:hover {
    color: var(--digest-accent);
}

.digest-earlier-date {
    font-variant-numeric: tabular-nums;
    color: var(--digest-paper-soft);
}

.digest-earlier-kind {
    font-size: 0.78rem;
    opacity: 0.92;
}

.digest-footer-note {
    max-width: var(--digest-rail-width);
    margin: 1.5rem auto 0;
    font-family: var(--digest-sans);
    font-size: 0.72rem;
    line-height: 1.55;
    color: rgba(148, 163, 184, 0.65);
    text-align: center;
}

/* --- Legacy publishers' note (optional / other templates) ------------------ */
.digest-editors-note {
    margin: 26px 0 8px;
    padding: 16px 18px;
    border: 1px solid var(--digest-rule);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    font-family: var(--digest-sans);
    font-size: 0.78rem;
    line-height: 1.62;
    color: var(--digest-paper-soft);
}

.digest-editors-note h3 {
    font-family: var(--digest-serif);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(218, 178, 95, 0.88);
    margin: 0 0 8px;
}

.digest-editors-note code {
    font-size: 0.72rem;
    background: rgba(0, 0, 0, 0.28);
    padding: 2px 6px;
    border-radius: 2px;
    color: rgba(226, 232, 240, 0.88);
}

.digest-editors-note p {
    margin: 0 0 0.85rem;
}

.digest-editors-note p:last-child {
    margin-bottom: 0;
}

/* --- Story sections -------------------------------------------------------- */
.digest-run {
    padding: 28px 0 30px;
    border-bottom: 1px solid var(--digest-rule);
    position: relative;
}

.digest-run-inner {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
}

.digest-run:last-of-type {
    border-bottom: none;
    padding-bottom: 8px;
}

.digest-section-label {
    font-family: var(--digest-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(218, 178, 95, 0.88);
    margin: 0 0 14px;
    text-align: center;
}

.digest-run-heading {
    margin: 0 0 14px;
    font-family: var(--digest-serif);
    font-size: clamp(1.2rem, 2.85vw, 1.62rem);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: var(--digest-paper-fg);
    text-wrap: balance;
    text-align: center;
}

.digest-run-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0;
    font-family: var(--digest-sans);
    font-size: 0.78rem;
    color: var(--digest-paper-soft);
    letter-spacing: 0.025em;
    line-height: 1.65;
    justify-content: center;
    text-align: center;
}

.digest-run-meta .digest-meta-item {
    display: inline;
}

.digest-run-meta .digest-meta-dot {
    display: inline;
    opacity: 0.45;
    padding: 0 0.5rem;
    user-select: none;
}

.digest-status {
    display: inline-block;
    padding: 0.12rem 0.5rem 0.1rem;
    border-radius: 2px;
    font-family: var(--digest-sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 6px;
    border: 1px solid transparent;
}

.digest-status.completed {
    color: rgb(174, 230, 198);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.32);
}

.digest-status.failed,
.digest-status.error {
    color: rgb(252, 214, 211);
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.digest-status.unknown {
    color: rgba(226, 232, 240, 0.85);
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.28);
}

/* --- Prose (newspaper body) ----------------------------------------------- */
.digest-prose-shell {
    margin-top: 20px;
    padding-top: 4px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.digest-story {
    font-family: var(--digest-serif);
    font-size: clamp(1.05rem, 2.05vw, 1.155rem);
    font-weight: 400;
    line-height: 1.76;
    color: rgba(237, 242, 246, 0.94);
    letter-spacing: 0.01em;
    font-optical-sizing: auto;
}

.digest-story > .digest-p:first-of-type {
    font-size: 1.05em;
    line-height: 1.74;
    text-indent: 0 !important;
}

.digest-story > .digest-p:first-of-type::first-letter {
    font-family: var(--digest-serif);
    font-weight: 600;
    font-size: 3.05em;
    float: left;
    line-height: 0.78;
    margin: 0.06em 0.12em 0 0;
    letter-spacing: -0.03em;
    color: rgb(237, 234, 220);
}

/* Drop cap only when prose begins with body copy, not an inline chart */
.digest-story:has(> figure.digest-inline-figure:first-child) > .digest-p:first-of-type::first-letter {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    float: none;
    margin: 0;
    letter-spacing: inherit;
    color: inherit;
    line-height: inherit;
}

.digest-story > .digest-p:not(:first-of-type) {
    margin-top: 1.06em;
    text-indent: 1em;
}

.digest-story > figure + .digest-p {
    margin-top: 1.12em !important;
    text-indent: 0 !important;
}

.digest-story > .digest-p {
    margin: 0;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

/* Per-ticker digest: captured CLI/script output — not editorial prose */
article.journal-digest-page .digest-story > .digest-p:first-of-type {
    font-size: 1em;
    line-height: 1.76;
}

article.journal-digest-page .digest-story > .digest-p:first-of-type::first-letter {
    float: none;
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
}

article.journal-digest-page .digest-story > .digest-p:not(:first-of-type) {
    text-indent: 0;
}

article.journal-digest-page .digest-details summary {
    display: block;
    text-align: center;
}

article.journal-digest-page .digest-run-links {
    text-align: center;
}

article.journal-digest-page .digest-run-links a {
    margin-right: 0;
}

.digest-story:has(> figure.digest-inline-figure:first-child) > .digest-p:first-of-type {
    font-size: 1em;
}

.digest-story .digest-inline-figure {
    margin: 1.5rem 0 1.6rem;
    max-width: 100%;
    clear: both;
}

.digest-story .digest-inline-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    filter: grayscale(12%) brightness(1.03);
}

.digest-empty-prose {
    font-family: var(--digest-serif);
    font-style: italic;
    color: var(--digest-paper-soft);
}

.digest-details {
    margin-top: 1.05rem;
    font-family: var(--digest-sans);
    font-size: 0.76rem;
    color: var(--digest-paper-soft);
}

.digest-details summary {
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.69rem;
    color: rgba(226, 232, 240, 0.8);
}

.digest-details summary:hover {
    color: var(--digest-accent);
}

.digest-details pre {
    margin-top: 0.7rem;
    padding: 1rem 1.1rem;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--digest-rule);
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
    font-family: "Consolas", "Cascadia Code", ui-monospace, monospace;
    font-size: 0.72rem;
    line-height: 1.5;
    color: rgba(203, 213, 225, 0.9);
}

.digest-run-links {
    margin-top: 1.35rem;
    font-family: var(--digest-sans);
}

.digest-run-links a {
    display: inline-block;
    margin-right: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(218, 178, 95, 0.95);
    text-decoration: none;
    border-bottom: 1px solid rgba(218, 178, 95, 0.35);
    padding-bottom: 2px;
}

.digest-run-links a:hover {
    color: rgb(239, 224, 180);
    border-bottom-color: currentColor;
}

/* --- Footer toolbar ------------------------------------------------------- */
.digest-page-footer {
    margin-top: clamp(20px, 4vw, 32px);
    padding-top: 1.35rem;
    border-top: double 4px var(--digest-rule);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    font-family: var(--digest-sans);
}

.digest-page-footer a.btn-secondary {
    text-decoration: none;
    border-radius: 8px !important;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.digest-empty-banner {
    width: 100%;
    max-width: var(--digest-rail-width);
    margin: 1.5rem auto 0;
    padding: 2rem 1.35rem;
    text-align: center;
    border: 1px solid var(--digest-rule);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    font-family: var(--digest-serif);
    box-sizing: border-box;
}

.digest-empty-banner p {
    margin: 0 0 1rem;
    color: var(--digest-paper-muted);
    line-height: 1.6;
}

/* --- Hero ticker + meta chips --- */
.digest-ribbon-ticker {
    margin: 0.4rem 0 0;
    font-family: var(--digest-sans);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(218, 178, 95, 0.92);
}

.digest-ribbon-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin: 0.95rem 0 0;
    padding: 0;
    list-style: none;
}

.digest-chip {
    font-family: var(--digest-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.28);
    color: rgba(226, 232, 240, 0.88);
}

/* --- Rich summary HTML (when present in archive) --- */
.digest-blog-body .digest-story a {
    color: var(--digest-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.digest-blog-body .digest-story a:hover {
    color: rgb(239, 224, 180);
}

.digest-blog-body .digest-story ul,
.digest-blog-body .digest-story ol {
    margin: 0.85em 0;
    padding-left: 1.35rem;
}

.digest-blog-body .digest-story li {
    margin: 0.3em 0;
}

.digest-blog-body .digest-story strong {
    font-weight: 650;
    color: var(--digest-paper-fg);
}

.digest-blog-body .digest-story blockquote {
    margin: 1.05rem 0;
    padding: 0.5rem 0 0.5rem 1rem;
    border-left: 3px solid var(--digest-accent);
    color: var(--digest-paper-muted);
    font-style: italic;
}

.digest-blog-body .digest-story code {
    font-family: "Consolas", "Cascadia Code", ui-monospace, monospace;
    font-size: 0.88em;
    background: rgba(0, 0, 0, 0.35);
    padding: 0.1em 0.35em;
    border-radius: 3px;
    color: rgba(226, 232, 240, 0.92);
}

.digest-blog-body .digest-story h2,
.digest-blog-body .digest-story h3 {
    font-family: var(--digest-serif);
    color: var(--digest-paper-fg);
    line-height: 1.25;
    font-weight: 700;
}

.digest-blog-body .digest-story h2 {
    font-size: 1.22rem;
    margin: 1.4rem 0 0.55rem;
}

.digest-blog-body .digest-story h3 {
    font-size: 1.05rem;
    margin: 1.15rem 0 0.45rem;
}

/* --- Top navigation tabs (below hero, above mast) --- */
.digest-top-tabs {
    width: 100%;
    margin: -1.65rem calc(-1 * clamp(1.15rem, 3.5vw, 2rem)) 1.1rem;
    padding: 0;
    border-bottom: 1px solid var(--digest-rule);
    box-sizing: border-box;
}

.digest-top-tabs-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    min-height: 2.85rem;
}

.digest-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    flex: 0 0 auto;
    padding: 0.72rem clamp(0.65rem, 2vw, 1rem);
    font-family: var(--digest-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--digest-paper-muted);
    text-decoration: none;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    cursor: pointer;
    margin-bottom: -1px;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.digest-tab i {
    font-size: 0.85rem;
    opacity: 0.9;
}

.digest-tab:hover {
    color: var(--digest-paper-fg);
    background: rgba(255, 255, 255, 0.04);
    border-bottom-color: rgba(218, 178, 95, 0.35);
}

.digest-tab:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.85);
    outline-offset: -2px;
}

.digest-tab--ghost {
    color: var(--digest-paper-soft);
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding-left: clamp(0.75rem, 2.2vw, 1.1rem);
    padding-right: clamp(0.75rem, 2.2vw, 1.1rem);
}

.digest-tab--ghost:hover {
    border-color: rgba(218, 178, 95, 0.45);
    color: var(--digest-accent);
}

.digest-tab--emphasis {
    color: var(--digest-accent);
}

.digest-tab--emphasis:hover {
    color: var(--digest-paper-fg);
}

/* --- Earlier coverage (timeline) --- */
.digest-earlier--timeline {
    padding-left: 0.15rem;
}

.digest-earlier--timeline .digest-earlier-list li {
    position: relative;
    margin: 0;
    padding: 0 0 0 1.15rem;
    border-top: none;
    border-left: 2px solid rgba(148, 163, 184, 0.22);
}

.digest-earlier--timeline .digest-earlier-list li:last-child {
    border-left-color: transparent;
}

.digest-earlier--timeline .digest-earlier-list li::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 0.95rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--digest-accent);
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9);
}

.digest-earlier--timeline .digest-earlier-list a {
    padding: 0.65rem 0.25rem 0.65rem 0.35rem;
    border-radius: 6px;
    margin-left: 0.15rem;
}

.digest-earlier--timeline .digest-earlier-list a:hover {
    background: rgba(59, 130, 246, 0.06);
}

/* --- Empty state polish --- */
.digest-empty-banner h2.digest-empty-title {
    font-family: var(--digest-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--digest-paper-fg);
    margin: 0 0 0.65rem;
    border: none;
    padding: 0;
}

.digest-empty-banner .digest-empty-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: var(--digest-accent);
    font-size: 1.2rem;
}

.digest-empty-banner .digest-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 0.25rem;
}

.digest-empty-banner .digest-empty-actions a {
    text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
    .digest-ribbon-img,
    .digest-story .digest-inline-figure img {
        filter: none !important;
    }
}
