/* V3 Safety Signal — Daily Safety Incident Digest (/digest/, /zh/digest/)
   Shared header / ticker / stripes / footer come from v3.css. This file only styles the digest page.
   Rules: light only, no opacity entrance animations, yellow only behind dark text. */

[hidden] { display: none !important; }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* ---------- Hero ---------- */
.dg-hero { padding: 40px 0 44px; }
@media (min-width: 980px) { .dg-hero { padding: 64px 0 64px; } }
.dg-hero h1 { font-size: clamp(42px, 7vw, 88px); font-weight: 900; text-transform: uppercase; line-height: .96; margin-bottom: 22px; max-width: 14em; overflow-wrap: anywhere; }
.dg-hero h1 small { display: block; font: 700 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-top: 14px; }
.dg-hero .lede { margin-bottom: 32px; position: relative; }
.dg-hero .stats { margin-bottom: 24px; position: relative; }
.dg-hero .stats b.rng { font-size: clamp(24px, 3.6vw, 40px); line-height: 1.05; }
.dg-hero .note { background: var(--paper); border: 2px dashed var(--ink); padding: 14px 16px; margin: 0; position: relative; }

/* ---------- List ---------- */
.dg-list { padding-top: 48px; }
@media (min-width: 980px) { .dg-list { padding-top: 72px; } }

/* ---------- Filters ---------- */
.filters { background: var(--paper); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); margin: 0 0 32px; display: grid; }
.frow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 2px solid var(--ink); }
.flabel { flex: 0 0 100%; font: 800 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 4px; }
@media (min-width: 720px) { .flabel { flex: 0 0 7.5em; margin-bottom: 0; } }
.frow button { font: 600 13.5px/1.3 var(--body); border: 2px solid var(--ink); background: var(--concrete); color: var(--ink); border-radius: 0; padding: 6px 10px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.frow button small { font: 700 11.5px/1 var(--mono); margin-left: 6px; color: var(--ink-2); }
.frow button:hover { background: var(--yellow); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.frow button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.frow button[aria-pressed="true"] small { color: var(--paper); }
.fcount { font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; margin: 0; padding: 12px 14px; background: var(--yellow); color: var(--ink); }
.fempty { text-align: center; font: 700 15px/1.5 var(--mono); border: 2px dashed var(--ink); background: var(--paper); padding: 28px 16px; }

/* ---------- Incident cards ---------- */
#incidents { display: grid; gap: 28px; }
.inc { background: var(--paper); border: 2px solid var(--ink); overflow-wrap: anywhere; transition: box-shadow .25s, transform .25s; }
.inc:hover { box-shadow: 8px 8px 0 var(--ink); transform: translate(-3px, -3px); }
.inc-bar { display: flex; justify-content: space-between; align-items: stretch; gap: 12px; background: var(--ink); border-bottom: 2px solid var(--ink); }
.sev { display: inline-flex; align-items: center; font: 800 12.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 9px 12px; color: var(--ink); background: var(--paper); }
.sev::before { content: ""; flex: none; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid currentColor; margin-right: 8px; }
.sev--fatal { background: var(--yellow); }
.sev--serious { background: var(--paper); box-shadow: inset 0 -5px 0 var(--yellow); }
.sev--minor, .sev--na { background: var(--concrete-2); }
.inc-reg { display: inline-flex; align-items: center; font: 700 12.5px/1 var(--mono); color: var(--paper); letter-spacing: .06em; padding: 0 14px; }
.inc-grid { display: grid; gap: 20px; padding: 18px 16px 20px; }
@media (min-width: 720px) { .inc-grid { padding: 24px 24px 26px; } }
@media (min-width: 980px) { .inc--posters .inc-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; } }
.inc-text { min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { font: 600 12.5px/1.3 var(--body); border: 2px solid var(--ink); padding: 3px 8px; background: var(--concrete); }
.chip--mono { font: 600 12px/1.3 var(--mono); background: var(--paper); }
.inc h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; line-height: 1.08; margin-bottom: 12px; }
.inc .meta { display: flex; flex-wrap: wrap; gap: 2px 0; margin-bottom: 14px; }
.inc .meta span:not(:last-child)::after { content: "·"; margin: 0 8px; }
.inc-body p { color: var(--ink-2); margin-bottom: .8em; }
.inc-body p.en { font-style: italic; font-size: 15px; border: 2px dashed var(--line); padding: 8px 12px; background: var(--concrete); }
.pending { font: 600 12.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.inc .pair.one { grid-template-columns: minmax(0, 360px); }
.inc details { border: 2px solid var(--ink); margin-top: -2px; background: var(--paper); }
.inc details:first-of-type { margin-top: 6px; }
.inc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font: 700 14px/1.35 var(--body); padding: 10px 12px; }
.inc summary::-webkit-details-marker { display: none; }
.inc summary::before { content: "+"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; font: 800 15px/1 var(--mono); background: var(--ink); color: var(--paper); }
.inc details[open] summary { background: var(--yellow); border-bottom: 2px solid var(--ink); }
.inc details[open] summary::before { content: "−"; }
.inc summary:hover { background: var(--yellow); }
.inc details ul { list-style: none; padding: 12px 14px 4px; font-size: 15px; }
.inc details li { position: relative; padding-left: 18px; margin-bottom: 10px; color: var(--ink-2); }
.inc details li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--ink); }
.srcs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.srcs a { font: 700 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; border: 2px solid var(--ink); padding: 7px 10px; background: var(--paper); }
.srcs a::after { content: " ↗"; }
.srcs a:hover { background: var(--yellow); }

/* ---------- Chinese page ---------- */
html:lang(zh-Hant) body { line-height: 1.75; font-feature-settings: normal; }
html:lang(zh-Hant) h1, html:lang(zh-Hant) h2 { font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; font-stretch: normal; letter-spacing: 0; }
html:lang(zh-Hant) .dg-hero h1 { font-weight: 900; line-height: 1.2; font-size: clamp(40px, 7vw, 80px); }
html:lang(zh-Hant) .sec-head h2 { font-weight: 900; line-height: 1.25; }
html:lang(zh-Hant) .inc h2 { font-weight: 800; line-height: 1.45; font-size: clamp(21px, 2.6vw, 27px); }
html:lang(zh-Hant) .lede, html:lang(zh-Hant) .note, html:lang(zh-Hant) .inc-body p,
html:lang(zh-Hant) .inc details li, html:lang(zh-Hant) .stats span { line-height: 1.75; }
html:lang(zh-Hant) .inc-body p.en { line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .inc:hover, .frow button:hover { transform: none; }
}
