/* Timeline keeps its violet date accents on dark reading surfaces. */
body[data-mode="timeline"] {
  color-scheme: dark;
  --ink: #e8edf5;
  --muted: #b0b9cd;
  --line: #353c52;
  --paper: #171d2c;
  --bg: #101420;
  --blue: #c3a8ff;
}

body[data-mode="timeline"] .chronology { --blue: #c3a8ff; }
body[data-mode="timeline"] :is(.lab-header, .directions, .lab-footer) {
  background: #151a28;
}
body[data-mode="timeline"] .directions a:hover { background: #272239; }
body[data-mode="timeline"] .directions a[aria-current="page"] {
  background: #2d2542;
  border-color: #b499ef;
  color: #dac6ff;
}
body[data-mode="timeline"] .timeline-index a {
  color: #cdb5f5;
  border-color: #353c52;
}
body[data-mode="timeline"] .timeline-stream { border-color: #514264; }
body[data-mode="timeline"] .date-event::before {
  background: #c5a4ff;
  box-shadow: 0 0 0 6px #101420;
}
body[data-mode="timeline"] :is(.date-marker, .event-records .eyebrow) {
  color: #cdb5f5;
}
body[data-mode="timeline"] .date-copy { color: #c0c7d7; }
body[data-mode="timeline"] .event-records article {
  background: #1a2030;
  border-top-color: #9a79c9;
}
body[data-mode="timeline"] .pill.verified {
  background: #173f38;
  border-color: #397361;
  color: #b2ecd7;
}
body[data-mode="timeline"] .pill.held {
  background: #47351d;
  border-color: #a9874e;
  color: #f8d18e;
}

/* Source details stay in the same theme when opened from the chronology. */
body[data-mode="timeline"] dialog {
  background: #171d2c;
  color: #e8edf5;
}
body[data-mode="timeline"] dialog::backdrop { background: #090d18dd; }
body[data-mode="timeline"] .source-panel { background: #171d2c; }
body[data-mode="timeline"] .dialog-close {
  background: #252c3f;
  color: #e8edf5;
}
body[data-mode="timeline"] .finding-box { background: #252b46; }
body[data-mode="timeline"] .limit-box { color: #c0c7d7; }
body[data-mode="timeline"] .hold-box {
  background: #47351d;
  border-color: #a9874e;
  color: #f8d18e;
}
body[data-mode="timeline"] .image-pair img { background: #101420; }
body[data-mode="timeline"] .media .poster-link a {
  background: #252c3f;
  color: #e8edf5;
}
body[data-mode="timeline"] .poll-track { background: #353c52; }
body[data-mode="timeline"] .poll-track i { background: #b197fc; }
body[data-mode="timeline"] .poll-row:nth-child(2) i { background: #87bdb3; }
body[data-mode="timeline"] .poll-row:nth-child(3) i { background: #97a4bb; }
body[data-mode="timeline"] .skip {
  background: #252c3f;
  color: #e8edf5;
}

/* Selected Timeline presentation, including the complete source register. */
body[data-mode="timeline"] .timeline-index { top: 1.5rem; }
body[data-mode="timeline"] .date-event { scroll-margin-top: 1.5rem; }
body[data-mode="timeline"] .date-type { font-size: .875rem; letter-spacing: .06em; }
body[data-mode="timeline"] .source-filters { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
body[data-mode="timeline"] .source-filters label { display: block; font-size: .875rem; font-weight: 700; margin-bottom: .4rem; }
body[data-mode="timeline"] .source-filters input,
body[data-mode="timeline"] .source-filters select { width: 100%; min-width: 0; padding: .65rem; margin-bottom: 1rem; border: 1px solid #53617b; border-radius: 3px; color: var(--ink); background: #171d2c; font-size: 1rem; }
body[data-mode="timeline"] .source-filters input::placeholder { color: #b0b9cd; }
body[data-mode="timeline"] #clear-filters { display: block; margin-top: .65rem; }
body[data-mode="timeline"] [hidden] { display: none !important; }
body[data-mode="timeline"] .single-image { grid-template-columns: 1fr; }
body[data-mode="timeline"] .related-source { border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 1rem; }
body[data-mode="timeline"] .related-source .eyebrow { display: block; }
body[data-mode="timeline"] .related-source p { margin: .65rem 0 0; }
body[data-mode="timeline"] .event-records article { display: flex; flex-direction: column; }
body[data-mode="timeline"] .event-records article > .pill { align-self: flex-start; }
body[data-mode="timeline"] .event-records article > .source-row { margin-top: auto; padding-top: 1rem; }
@media (min-width: 751px) {
  body[data-mode="timeline"] .timeline-index { max-height: calc(100vh - 3rem); overflow-y: auto; padding-right: .6rem; }
}
@media (max-width: 750px) {
  body[data-mode="timeline"] .source-filters { width: 100%; margin-top: .3rem; }
}

/* Issue navigation and private, timestamped transcript review. */
.evidence-overview { margin: 0 0 2.5rem; padding: 1.2rem 1.5rem; border: 1px solid var(--line); background: var(--paper); }
.evidence-overview > p:first-child { margin-top: 0; }
.issue-filters { display: flex; flex-wrap: wrap; gap: .6rem; }
.issue-filters button { font: inherit; padding: .65rem .9rem; border: 1px solid #69738b; border-radius: 4px; color: var(--ink); background: transparent; cursor: pointer; }
.issue-filters button[aria-pressed="true"] { background: #3b2e55; border-color: #c3a8ff; color: #f4edff; }
.issue-filters button:focus-visible, .cue-time:focus-visible, .transcript-full summary:focus-visible { outline: 2px solid #d3bcff; outline-offset: 3px; }
.transcript-full { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.transcript-full summary { cursor: pointer; font-weight: 700; padding: .5rem 0; }
.transcript-cue { display: grid; grid-template-columns: 3.5rem minmax(0,1fr); gap: .75rem; align-items: baseline; border-top: 1px solid var(--line); padding: .65rem 0; }
.transcript-cue p { margin: 0; line-height: 1.65; }
.transcript-cue .cue-time { align-self: start; text-align: left; font-variant-numeric: tabular-nums; }
@media (max-width: 750px) { .evidence-overview { padding: 1rem; } .issue-filters button { flex: 1 1 45%; } }

/* Source-linked legal review preserves the selected Timeline. */
.legal-review { margin-bottom: 2.5rem; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-left: 3px solid #b197fc; background: var(--paper); }
.legal-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.legal-heading h2 { margin: .35rem 0; font-size: 1.65rem; }
.legal-review > details { border-top: 1px solid var(--line); padding: .85rem 0; scroll-margin-top: 1.5rem; }
.legal-review summary { cursor: pointer; font-weight: 700; line-height: 1.55; }
.legal-review summary:focus-visible, .legal-review a:focus-visible, .legal-review button:focus-visible, .legal-annotations a:focus-visible { outline: 2px solid #d3bcff; outline-offset: 4px; }
.legal-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; align-items: start; margin-top: 1rem; }
.legal-card { background: #1e2537; border: 1px solid #46516b; padding: 1rem; scroll-margin-top: 1.5rem; }
.legal-card summary > span { display: block; }
.legal-card summary .eyebrow { color: #ccb4f5; font-size: .73rem; margin-bottom: .45rem; }
.legal-card[open] { grid-column: 1 / -1; }
.legal-card[open] summary { padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.legal-card-body { max-width: 82ch; }
.legal-card-body h3 { font-size: 1rem; margin: 1.2rem 0 .3rem; }
.legal-card-body p { line-height: 1.7; margin: .25rem 0 .8rem; }
.legal-authorities, .legal-evidence { display: flex; flex-direction: column; gap: .65rem; border-top: 1px solid var(--line); padding-top: .9rem; margin-top: 1rem; }
.legal-authorities a, .legal-annotations a { color: #d0b8ff; text-decoration: underline; text-underline-offset: .2em; }
.legal-evidence button { text-align: left; align-self: flex-start; }
.legal-annotations { margin-top: 1.5rem; padding: 1rem; background: #24233b; border-left: 3px solid #b197fc; }
.legal-annotations h3 { margin-top: 0; }
.legal-annotations p { margin-top: .35rem; }
.legal-annotations > div + div { border-top: 1px solid #464259; padding-top: .85rem; }
.appearance-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.appearance-list article { padding: 1rem; background: #1e2537; border: 1px solid var(--line); }
.appearance-list h3 { font-size: 1.05rem; margin: 0 0 .6rem; }
.appearance-sources { display: flex; flex-wrap: wrap; gap: .7rem; }
.comparison-note { border-left: 3px solid #b197fc; padding-left: 1rem; }
.legal-gaps li { margin: .65rem 0; }
@media (max-width: 750px) {
  .legal-review { padding: 1rem; }
  .legal-heading { flex-direction: column; gap: .4rem; }
  .legal-grid, .appearance-list { grid-template-columns: 1fr; }
}

.media > label { display: block; margin-bottom: .4rem; font-weight: 600; }
#video-chapter { width: 100%; max-width: 100%; margin-bottom: .8rem; padding: .7rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); font: inherit; }
.cue-speaker { display: block; margin-bottom: .2rem; color: #d0b8ff; font-size: .9rem; }

.publisher-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; min-height: 220px; border: 0; background: #05070c; }
