/* Watchlist topic pages */
.scenarios { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.scenario {
  --tone: var(--teal);
  display: grid; grid-template-columns: 64px 1fr; gap: 18px;
  background: var(--card); border: 3px solid var(--tone); border-radius: 16px;
  padding: 18px 20px; box-shadow: 6px 6px 0 rgba(29, 75, 90, .16);
}
.scenario.s2 { --tone: #6e550e; }
.scenario.s3 { --tone: #94461a; }
.scenario.s4 { --tone: var(--red-text); box-shadow: 6px 6px 0 rgba(217, 67, 42, .22); }
.scenario h3 { margin-bottom: .15em; }
.scenario .kicker { color: var(--tone); margin-bottom: .6em; }
.scenario p { margin: .5em 0 0; }
.level { margin: 0; }
.level .lvl {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--tone); color: var(--paper); font-family: var(--font-display); font-size: 1.7rem;
}
.kid { background: rgba(29, 75, 90, .07); border-left: 5px solid var(--tone); border-radius: 0 10px 10px 0; padding: 10px 14px; }
.kid p { margin: 0; }
.kid .kid-label {
  font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  font-size: .8rem; color: var(--tone); margin-bottom: .25em;
}
@media (max-width: 720px) {
  .scenario { grid-template-columns: 1fr; gap: 6px; }
  .level .lvl { width: 44px; height: 44px; font-size: 1.3rem; }
}

/* ---------- claims timeline ---------- */
:root {
  --st-debunked: #5f6b6e; --st-ghost: #6c5f8d; --st-claimed: #2f6a8a;
  --st-reviewing: #8a6400; --st-confirmed: #b04a12; --st-codered: #a01d0f;
}
.dot {
  --c: var(--teal);
  display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%;
  background: var(--c); color: #fff; font: 700 .85rem/1 system-ui, sans-serif; vertical-align: middle;
  border: 0; padding: 0;
}
.dot.debunked { --c: var(--st-debunked); } .dot.ghost { --c: var(--st-ghost); }
.dot.claimed { --c: var(--st-claimed); } .dot.reviewing { --c: var(--st-reviewing); }
.dot.confirmed { --c: var(--st-confirmed); } .dot.codered { --c: var(--st-codered); }
.dot.ghost, .dot.debunked { background: transparent; color: var(--c); box-shadow: inset 0 0 0 2px var(--c); }

.tl-legend { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; font-size: .9rem; }
.tl-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--card); border: 3px solid var(--teal); border-radius: 16px; padding: 12px 6px 10px;
}
/* One column per year. Dots stack downward under the year; past 10 they wrap into another column. */
.tl-years { list-style: none; margin: 0 auto; padding: 0; display: flex; align-items: flex-start; width: max-content; }
.tl-col {
  display: grid; justify-items: center; align-content: start; gap: 6px; min-width: 23px;
  min-height: calc(1.2em + 6px + 10 * 22px + 9 * 3px); border-left: 1px solid transparent;
}
.tl-col.decade { border-left-color: rgba(29, 75, 90, .25); }
.tl-yr { font: 600 .68rem/1.2 var(--font-cond); color: var(--teal); white-space: nowrap; }
.tl-col.empty .tl-yr { color: rgba(29, 75, 90, .4); }
.tl-col.empty::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgba(29, 75, 90, .2); margin-top: 8px; }
.tl-dots { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-template-rows: repeat(10, 22px); grid-auto-columns: 22px; gap: 3px; }
.dot.big { width: 22px; height: 22px; font-size: .72rem; cursor: pointer; background-color: var(--c); }
.dot.big.ghost, .dot.big.debunked { background: var(--paper); }
.dot.big:hover { transform: scale(1.2); }
.dot.big[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--c); }
.dot.big.ghost[aria-expanded="true"], .dot.big.debunked[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--c), 0 0 0 2px var(--paper), 0 0 0 4px var(--c); }

.tl-panels { display: grid; gap: 16px; margin-top: 16px; }
.tl-panel { background: var(--card); border: 3px solid var(--c, var(--teal)); border-radius: 16px; padding: 16px 20px; }
.tl-panel.debunked { --c: var(--st-debunked); } .tl-panel.ghost { --c: var(--st-ghost); border-style: dashed; }
.tl-panel.claimed { --c: var(--st-claimed); } .tl-panel.reviewing { --c: var(--st-reviewing); }
.tl-panel.confirmed { --c: var(--st-confirmed); } .tl-panel.codered { --c: var(--st-codered); }
.tl-panel h3 { margin: .3em 0 .1em; }
.tl-panel p { margin: .45em 0 0; }
.tl-meta { font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; margin: 0 !important; }
.tl-who { color: var(--muted); font-size: .95rem; }
.tl-cred { font-size: .92rem; }
.cred { color: var(--teal); letter-spacing: .1em; margin-right: .3em; }
.tl-src { margin: .5em 0 0; padding-left: 1.1em; font-size: .9rem; }
.tl-src li::marker { color: var(--red); }
.tl-updated { font-size: .9rem; }
@media (max-width: 720px) { .tl-legend { grid-template-columns: 1fr; } }

/* ---------- watchlist gallery: risk sparklines ---------- */
.watch-summary { margin: 1.25rem 0 0; max-width: 26rem; }
.watch-summary figcaption { font-weight: 700; }
.watch-summary .spark { display: block; width: 100%; height: auto; margin-top: .25rem; }
.watch-summary-years { display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; }
.risk { display: flex; align-items: center; gap: 14px; margin-top: .8em; }
.spark { flex: none; overflow: visible; }
.spark .base { stroke: rgba(29, 75, 90, .2); stroke-width: 1; }
.spark path { fill: none; stroke: #5d7f88; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--red-text); stroke: var(--paper); stroke-width: 2; }
.spark rect { fill: transparent; }
.risk-num { margin: 0 !important; line-height: 1.2; }
.risk-num strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.risk-num .muted { font-size: .78rem; }
.risk-none { font-size: .9rem; }
.risk-table summary { cursor: pointer; font-weight: 600; color: var(--teal); }
.table-scroll { overflow-x: auto; margin-top: 10px; }
.risk-table table { border-collapse: collapse; font-size: .82rem; font-variant-numeric: tabular-nums; }
.risk-table th, .risk-table td { padding: 4px 8px; text-align: right; border-bottom: 1px solid rgba(29, 75, 90, .15); white-space: nowrap; }
.risk-table th[scope="row"] { text-align: left; }

/* Poster art and the danger scale */
.card-art, .topic-art, .scenario-art {
  display: block; width: 100%; height: auto; aspect-ratio: 800 / 447; object-fit: cover;
  border: 3px solid var(--ink); border-radius: 10px; background: var(--paper);
}
.card-art { margin: 0 0 12px; }
.topic-art { margin: 18px 0 0; max-width: 640px; }
.scenario-art { margin: 0 0 12px; border-color: var(--tone); }
@media (min-width: 721px) {
  .scenario-art { float: right; width: 42%; margin: 4px 0 10px 20px; }
  .scenario > div:last-child { display: flow-root; }
}
.scenario .level { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scenario .danger { width: 56px; height: 56px; }
.danger-num { font-family: var(--font-cond); font-weight: 700; font-size: .95rem; color: var(--tone); line-height: 1; }
.danger-scale { margin: 0 0 22px; }
.danger-scale ol {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px;
  max-width: 640px;
}
.danger-scale li { display: grid; justify-items: center; gap: 2px; font-family: var(--font-cond); font-weight: 700; font-size: .85rem; }
.danger-scale svg { width: 100%; max-width: 48px; aspect-ratio: 1; }
.danger-scale figcaption { margin-top: 8px; font-size: .95rem; color: var(--muted); max-width: 640px; }
@media (max-width: 720px) {
  .scenario .level { flex-direction: row; }
  .scenario .danger { width: 44px; height: 44px; }
}
