/* Red River Dispatch v2: article extras + homepage modules. Uses the site tokens from styles.css. */

/* ---------- Article ---------- */
.article-view .page { max-width: none; padding: 0; }
.rundown { background: var(--surface); border: 1px solid var(--surface-border); border-top: 4px solid var(--red); border-radius: 10px; padding: 16px 20px 10px; margin: 0 0 26px; }
.rundown h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin: 0 0 8px; font-family: system-ui, sans-serif; }
.rundown ul { margin: 0; padding-left: 18px; }
.rundown li { margin: 0 0 8px; font-size: 1.02rem; line-height: 1.45; }
.republish-note, .republish-foot { background: var(--surface-alt); border-left: 3px solid #1d4ed8; padding: 12px 16px; font-size: .92rem; color: var(--ink-mid); border-radius: 0 8px 8px 0; margin: 0 0 22px; }
.republish-note a, .republish-foot a { text-decoration: underline; text-underline-offset: 3px; }
.digest-list { list-style: none; padding: 0; margin: 0 0 22px; }
.digest-list li { padding: 14px 0; border-bottom: 1px solid var(--surface-border); line-height: 1.55; }
.digest-list li strong { display: block; font-family: Georgia, 'Times New Roman', serif; font-size: 1.15rem; margin-bottom: 4px; }
.digest-list li a { display: inline-block; margin-top: 4px; font-size: .88rem; font-weight: 700; color: var(--red-dark); }
.digest-list li a::after { content: " \2197"; }
.related { margin: 34px 0 0; border-top: 2px solid var(--ink); padding-top: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.related-card { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--surface-border); border-radius: 10px; background: var(--surface); }
.related-card:hover { border-color: var(--red); }
.related-card strong { font-family: Georgia, 'Times New Roman', serif; line-height: 1.25; }
.article-page .newsletter-band { margin-top: 30px; }
.article-view .article-shell { padding-top: 20px; }

/* ---------- Homepage modules ---------- */
.rr-module { margin: 26px 0; }
.rr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 14px; }
.rr-title { font-family: Georgia, 'Times New Roman', serif; font-size: 1.45rem; margin: 0; }
.rr-title small { display: block; font-family: system-ui, sans-serif; font-size: .8rem; font-weight: 500; color: var(--ink-soft); margin-top: 2px; }
.rr-digest { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 22px; }
.rr-digest-item { padding: 12px 0; border-bottom: 1px solid var(--surface-border); display: grid; gap: 4px; }
.rr-digest-item .rr-outlet { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.rr-digest-item a { font-weight: 700; line-height: 1.3; }
.rr-digest-item a::after { content: " \2197"; color: var(--ink-soft); font-weight: 400; }
.rr-state { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.rr-state-card { background: var(--surface); border: 1px solid var(--surface-border); border-top: 3px solid #1d4ed8; border-radius: 10px; padding: 14px 16px; display: grid; gap: 6px; }
.rr-state-card h3 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.08rem; line-height: 1.3; }
.rr-credit { font-size: .78rem; color: var(--ink-soft); }
.ed-time.ago { font-variant-numeric: tabular-nums; }
.rr-topics { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; margin: 0; scrollbar-width: none; }
.rr-topics::-webkit-scrollbar { display: none; }
.rr-topics span { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); align-self: center; white-space: nowrap; }
.rr-topics a { white-space: nowrap; border: 1px solid var(--surface-border); background: var(--surface); padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.rr-topics a:hover { border-color: var(--red); color: var(--red); }

/* Category front: lead + list */
.cat-lead { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; margin: 6px 0 22px; }
.cat-lead:not(:has(.lead-media)) { display:block; max-width:76ch; }
.cat-lead .lead-media { min-height: 240px; border-radius: 10px; overflow: hidden; }
.cat-list { display: grid; gap: 0; }
.cat-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--surface-border); }
.cat-row h3 { margin: 0 0 4px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.12rem; line-height: 1.3; }
.cat-row p { margin: 0; color: var(--ink-mid); font-size: .95rem; }
@media (max-width: 760px) { .cat-lead { grid-template-columns: 1fr; } }

/* ---------- Louisiana scoreboard (ESPN) ---------- */
.sb-wrap { margin: 22px 0; }
.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sb-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.sb-card.sb-in { border-color: var(--red); box-shadow: 0 0 0 3px rgba(185,28,28,.12); }
.sb-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.sb-live { background: var(--red); color: #fff; padding: 1px 6px; border-radius: 4px; }
.sb-team { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; color: var(--ink-mid); }
.sb-team img { width: 28px; height: 28px; object-fit: contain; }
.sb-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-alt); }
.sb-name small { color: var(--ink-soft); font-weight: 700; }
.sb-score { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.sb-team.win { color: var(--ink); font-weight: 700; }
.sb-foot { font-size: .78rem; color: var(--ink-soft); min-height: 1em; }
.home-scores .sb-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 480px) { .home-scores .sb-grid { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; } .home-scores .sb-card { scroll-snap-align: start; } }

/* ---------- City Health ---------- */
.hc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.hc-card { display: grid; gap: 2px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--surface-border); border-top: 5px solid #94a3b8; }
.hc-card:hover { box-shadow: var(--shadow); }
.hc-good { border-top-color: #16a34a; } .hc-ok { border-top-color: #eab308; } .hc-warn { border-top-color: #ea580c; } .hc-bad { border-top-color: #b91c1c; }
.hc-label { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.hc-value { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.hc-sub { font-size: .85rem; color: var(--ink-mid); }
.hc-aqi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.hc-aqi { display: grid; gap: 2px; justify-items: center; padding: 12px 6px; border-radius: 12px; background: var(--surface-alt); border-bottom: 5px solid #94a3b8; text-align: center; font-size: .82rem; }
.hc-aqi b { font-size: 1.5rem; }
.hc-aqi-good { border-bottom-color: #16a34a; } .hc-aqi-moderate { border-bottom-color: #eab308; } .hc-aqi-usg { border-bottom-color: #ea580c; }
.hc-aqi-unhealthy { border-bottom-color: #dc2626; } .hc-aqi-very { border-bottom-color: #7e22ce; } .hc-aqi-hazardous { border-bottom-color: #7f1d1d; }
.hc-viols { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hc-viol { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 10px; background: var(--surface-alt); border-left: 4px solid #94a3b8; }
.hc-viol.open { border-left-color: #ea580c; }
.hc-viol small { color: var(--ink-soft); }
.hc-tag { font-size: .75rem; font-weight: 700; color: var(--ink-mid); white-space: nowrap; }
.hc-viol.open .hc-tag { color: #c2410c; }
.hc-bar { position: relative; height: 8px; border-radius: 4px; background: var(--surface-border); margin: 8px 0 4px; max-width: 360px; }
.hc-bar span { display: block; height: 100%; border-radius: 4px; background: #ea580c; }
.hc-bar i { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--ink); }
.hc-h3 { margin: 6px 0; font-size: 1rem; }
.hc-chart { width: 100%; height: auto; }
.hc-obs { fill: none; stroke: #1d4ed8; stroke-width: 3; vector-effect: non-scaling-stroke; }
.hc-fc { fill: none; stroke: #1d4ed8; stroke-width: 3; stroke-dasharray: 6 5; opacity: .7; vector-effect: non-scaling-stroke; }
.hc-action { stroke: #eab308; stroke-dasharray: 4 4; } .hc-flood { stroke: #dc2626; stroke-dasharray: 4 4; }
.hc-now { stroke: var(--ink-soft); stroke-dasharray: 2 4; }
.hc-tick { font-size: 11px; fill: var(--ink-soft); }
.hc-news { list-style: none; padding: 0; margin: 0 0 10px; }
.hc-news li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--surface-border); }
.hc-news a { font-weight: 700; line-height: 1.3; }
.hc-muted { color: var(--ink-soft); }
@media (max-width: 560px) { .hc-viol { grid-template-columns: 1fr; } .hc-value { font-size: 1.6rem; } }
a.sb-card { color: inherit; } a.sb-card:hover { border-color: var(--red); }
.sb-more { color: var(--red-dark); font-weight: 700; white-space: nowrap; }
