/* PV Scoreboard — chalkboard draft */
:root {
  --board: #0a0a0a;
  --board-deep: #000000;
  --chalk: #f2efe4;
  --chalk-dim: rgba(242, 239, 228, 0.55);
  --chalk-faint: rgba(242, 239, 228, 0.18);
  --left-tint: #9ec9ff;
  --right-tint: #ffb4a8;
  --wood: #5c3a21;
  --wood-edge: #3d2614;
  --accent: #e8d48b;
  --danger: #ff6b6b;
  --panel: rgba(255, 255, 255, 0.06);
  --font-ui: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-chalk: "Comic Sans MS", "Segoe Print", "Bradley Hand", "Caveat", cursive;
  --mark-size: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--chalk);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.04), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 0, 0, 0.5), transparent 55%),
    linear-gradient(160deg, #141414 0%, var(--board) 40%, var(--board-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

a {
  color: var(--accent);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1rem 1.5rem;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
}

/* Hamburger */
.hamburger {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 0.15rem;
  border: 1px solid var(--chalk-faint);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--chalk);
  border-radius: 1px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

body.drawer-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.drawer-open .hamburger span:nth-child(2) {
  opacity: 0;
}
body.drawer-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Left drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 40;
  border: none;
  padding: 0;
  cursor: pointer;
}

.drawer-backdrop[hidden] {
  display: none;
}

.filter-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(22rem, 92vw);
  z-index: 50;
  background: #0c0c0c;
  border-right: 1px solid var(--chalk-faint);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.55);
  transform: translateX(-105%);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.drawer-open .filter-drawer {
  transform: translateX(0);
}

.filter-drawer[aria-hidden="false"] {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--chalk-faint);
  flex-shrink: 0;
}

.drawer-head h2 {
  margin: 0;
  font-family: var(--font-chalk);
  font-weight: 400;
  font-size: 1.5rem;
}

.drawer-close {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--chalk-faint);
  border-radius: 8px;
  background: transparent;
  color: var(--chalk);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.drawer-body {
  overflow-y: auto;
  padding: 1rem;
  flex: 1;
}

.drawer-body h3 {
  margin: 1rem 0 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--chalk-dim);
}

.drawer-body h3:first-child {
  margin-top: 0;
}

.drawer-body .toggle {
  width: 100%;
}

.drawer-body .controls-row {
  flex-direction: column;
  align-items: stretch;
}

.brand h1 {
  margin: 0;
  font-family: var(--font-chalk);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.brand-logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  border-radius: 6px;
}

.brand-logo-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.brand-logo {
  display: block;
  height: clamp(3.25rem, 9vw, 5.5rem);
  width: auto;
  max-width: min(28rem, 72vw);
  object-fit: contain;
  object-position: left center;
  /* true transparent PNG — no black plate */
  mix-blend-mode: normal;
  filter: none;
}

.brand-logo--sm {
  height: clamp(2.5rem, 7vw, 3.75rem);
  max-width: min(18rem, 60vw);
}

.brand .tagline {
  margin: 0.25rem 0 0;
  color: var(--chalk-dim);
  font-size: 0.95rem;
  max-width: 36rem;
}

.nav-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--chalk);
  border: 1px solid var(--chalk-faint);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: var(--panel);
}

.nav-links a:hover {
  border-color: var(--chalk-dim);
}

/* Search */
.search-bar {
  position: relative;
  margin: 0 0 1.25rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 2.4rem 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--chalk-faint);
  background: var(--panel);
  color: var(--chalk);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input::placeholder {
  color: var(--chalk-dim);
}

.search-input:focus {
  border-color: var(--chalk-dim);
  box-shadow: 0 0 0 3px rgba(242, 239, 228, 0.08);
}

.search-clear {
  position: absolute;
  right: 0.45rem;
  width: 1.8rem;
  height: 1.8rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--chalk-dim);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.search-clear:hover {
  color: var(--chalk);
  background: rgba(242, 239, 228, 0.08);
}

.search-results {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--chalk-faint);
  background: var(--panel);
  text-align: left;
}

.search-results-head {
  font-size: 0.78rem;
  color: var(--chalk-dim);
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
}

.search-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
  max-height: min(50vh, 22rem);
  overflow: auto;
}

.search-hit {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--chalk);
}

.search-hit:hover,
.search-hit:focus-visible {
  background: rgba(242, 239, 228, 0.08);
  outline: none;
}

.search-hit-swatch {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 1.35rem;
  border-radius: 2px;
  background: var(--mark-color, var(--chalk));
  box-shadow: 0 0 0 1px rgba(242, 239, 228, 0.25);
}

.search-hit-body {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.search-hit-title {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-hit-meta {
  font-size: 0.75rem;
  color: var(--chalk-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-hit .badge {
  flex: 0 0 auto;
}

.search-empty {
  margin: 0;
  color: var(--chalk-dim);
  font-size: 0.9rem;
}

.pilot-banner {
  margin: 0 0 1rem;
  padding: 0.65rem 0.9rem;
  border: 1px dashed var(--chalk-dim);
  border-radius: 8px;
  background: rgba(232, 212, 139, 0.08);
  color: var(--chalk-dim);
  font-size: 0.88rem;
}

/* Controls (live inside drawer) */
.controls {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: center;
}

.controls h2 {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--chalk-dim);
  width: 100%;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
}

.toggle input {
  appearance: none;
  width: 2.4rem;
  height: 1.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--chalk-faint);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.toggle input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--chalk);
  transition: transform 0.15s ease;
}

.toggle input:checked {
  background: rgba(158, 201, 255, 0.35);
  border-color: rgba(158, 201, 255, 0.55);
}

.toggle input:checked::after {
  transform: translateX(1.05rem);
}

.sev-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sev-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--chalk-faint);
  background: transparent;
  color: var(--chalk);
  cursor: pointer;
}

.sev-chip .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--sev, var(--chalk));
}

.sev-chip[aria-pressed="false"] {
  opacity: 0.4;
}

.sev-chip[aria-pressed="true"] {
  border-color: var(--chalk-dim);
  background: rgba(255, 255, 255, 0.06);
}

.meta-line {
  font-size: 0.82rem;
  color: var(--chalk-dim);
}

/* Board surface — no wood frame */
.board-surface {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.board-frame {
  /* legacy alias if any markup remains */
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0.5rem 0 1rem;
}

.board-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  justify-items: center;
}

@media (max-width: 720px) {
  .board-columns {
    grid-template-columns: 1fr;
  }
}

.column {
  padding: 0.75rem 0.5rem 1rem;
  min-height: 280px;
  width: 100%;
  max-width: 26rem;
  text-align: center;
}

.column.left {
  border-right: none;
}

@media (max-width: 720px) {
  .column.left {
    border-right: none;
    border-bottom: none;
  }
}

.column-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: none;
}

.column-head h2 {
  margin: 0;
  font-family: var(--font-chalk);
  font-weight: 400;
  font-size: 1.65rem;
}

.column.left .column-head h2 {
  color: var(--left-tint);
}

.column.right .column-head h2 {
  color: var(--right-tint);
}

.count-big {
  font-family: var(--font-chalk);
  font-size: 2rem;
  line-height: 1;
  color: var(--chalk);
}

/* Tally groups */
.tally-area {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-content: flex-start;
  justify-content: center;
}

.tally-group {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.28rem;
  position: relative;
  height: calc(var(--mark-size) + 8px);
}

/* Individual chalk stroke as link */
.tally-mark {
  position: relative;
  display: inline-block;
  width: 7px;
  height: var(--mark-size);
  text-decoration: none;
  cursor: pointer;
  outline: none;
}

.tally-mark .stroke {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--mark-color, var(--chalk));
  box-shadow:
    0 0 0 0.5px rgba(242, 239, 228, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 1px 1px rgba(0, 0, 0, 0.25);
  opacity: 0.95;
  transform: rotate(var(--tilt, -2deg));
  transition: transform 0.12s ease, filter 0.12s ease, opacity 0.12s ease;
}

/* 5th mark = diagonal slash across prior four */
.tally-mark.is-five {
  position: absolute;
  left: -2px;
  right: -2px;
  width: auto;
  height: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.tally-mark.is-five .stroke {
  inset: 0;
  height: 5px;
  top: 50%;
  transform: translateY(-50%) rotate(-28deg);
  border-radius: 3px;
  width: 100%;
}

.tally-mark:hover .stroke,
.tally-mark:focus-visible .stroke {
  filter: brightness(1.25) drop-shadow(0 0 4px rgba(255, 255, 255, 0.35));
  transform: rotate(var(--tilt, -2deg)) scale(1.08);
  opacity: 1;
}

.tally-mark.is-five:hover .stroke,
.tally-mark.is-five:focus-visible .stroke {
  transform: translateY(-50%) rotate(-28deg) scale(1.05);
}

/* Unconfirmed: hollow / dashed chalk */
.tally-mark.unconfirmed .stroke {
  background: transparent;
  border: 1.5px dashed var(--mark-color, var(--chalk));
  opacity: 0.75;
}

body.bw .tally-mark .stroke {
  background: var(--chalk) !important;
}

body.bw .tally-mark.unconfirmed .stroke {
  background: transparent !important;
  border-color: var(--chalk) !important;
}

body.bw .column.left .column-head h2,
body.bw .column.right .column-head h2 {
  color: var(--chalk);
}

.empty-col {
  color: var(--chalk-dim);
  font-family: var(--font-chalk);
  font-size: 1.1rem;
  padding: 1rem 0;
  text-align: center;
  width: 100%;
}

/* Tooltip */
.tooltip {
  position: fixed;
  z-index: 50;
  max-width: min(320px, 90vw);
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #0a0a0a;
  border: 1px solid var(--chalk-dim);
  color: var(--chalk);
  font-size: 0.82rem;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.1s ease;
}

.tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.tooltip strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.tooltip .meta {
  color: var(--chalk-dim);
  font-size: 0.78rem;
}

.tooltip .badge {
  display: inline-block;
  margin-top: 0.35rem;
  margin-right: 0.25rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--chalk-faint);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tooltip .badge.warn {
  border-color: var(--accent);
  color: var(--accent);
}

/* Legend */
.legend {
  margin-top: 1rem;
  padding: 0.75rem 0;
  border-top: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  color: var(--chalk-dim);
  justify-content: center;
  width: 100%;
  max-width: 56rem;
}

.legend[hidden] {
  display: none !important;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-swatch {
  width: 10px;
  height: 14px;
  border-radius: 2px;
  background: var(--sev, var(--chalk));
}

.legend-swatch.hollow {
  background: transparent;
  border: 1.5px dashed var(--chalk);
}

/* Incident page */
.incident-page .card {
  background: var(--panel);
  border: 1px solid var(--chalk-faint);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
}

.incident-page h1 {
  font-family: var(--font-chalk);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin: 0 0 0.5rem;
}

.kv {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.92rem;
  margin: 1rem 0;
}

.kv dt {
  color: var(--chalk-dim);
}

.kv dd {
  margin: 0;
}

.sources {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.sources li {
  margin: 0.4rem 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--chalk-faint);
}

.pill.unconfirmed {
  border-color: var(--accent);
  color: var(--accent);
}

.pill.left {
  border-color: var(--left-tint);
  color: var(--left-tint);
}

.pill.right {
  border-color: var(--right-tint);
  color: var(--right-tint);
}

footer.site-footer {
  margin-top: auto;
  padding: 1.25rem 0 0.25rem;
  border-top: none;
  color: var(--chalk-dim);
  font-size: 0.8rem;
  text-align: center;
  width: 100%;
}

footer.site-footer p {
  margin: 0 auto;
  max-width: 40rem;
}

.err {
  color: var(--danger);
  padding: 1rem;
}

/* Speech supporting violence archive */
.speech-page .speech-h1 {
  font-family: var(--font-chalk);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0 0 0.65rem;
  text-align: center;
}

.speech-page .speech-h2 {
  font-family: var(--font-chalk);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.speech-intro,
.speech-excluded-wrap {
  max-width: 48rem;
  margin: 0 auto 1.25rem;
}

.prose-lite {
  background: var(--panel);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  line-height: 1.55;
}

.speech-blurb,
.speech-rule {
  margin: 0.55rem 0 0;
  color: var(--chalk-dim);
  font-size: 0.95rem;
}

.speech-rule strong {
  color: var(--chalk);
}

.speech-search {
  margin-bottom: 0.75rem;
}

.speech-search .meta-line {
  text-align: center;
  margin-top: 0.5rem;
}

.speech-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto 1.5rem;
  width: 100%;
}

.speech-card {
  background: var(--panel);
  border-radius: 12px;
  padding: 1rem 1.15rem 0.9rem;
  border: 1px solid transparent;
}

.speech-card:target {
  border-color: var(--accent);
}

.speech-card-head {
  margin-bottom: 0.55rem;
}

.speech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.speech-pill {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--chalk-faint);
  color: var(--chalk-dim);
}

.speech-pill.hold {
  border-color: rgba(232, 212, 139, 0.45);
  color: var(--accent);
}

.speech-pill.lean.left {
  border-color: var(--left-tint);
  color: var(--left-tint);
}

.speech-pill.lean.right {
  border-color: var(--right-tint);
  color: var(--right-tint);
}

.speech-title {
  font-family: var(--font-chalk);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0;
  line-height: 1.25;
}

.speech-sub {
  margin: 0.25rem 0 0;
  color: var(--chalk-dim);
  font-size: 0.85rem;
}

.speech-summary {
  margin: 0.35rem 0;
  line-height: 1.5;
}

.speech-why {
  margin: 0.4rem 0;
  font-size: 0.92rem;
  color: var(--chalk-dim);
}

.speech-meta {
  margin: 0.3rem 0;
  font-size: 0.88rem;
  color: var(--chalk-dim);
}

.speech-sources {
  margin: 0.55rem 0 0.25rem;
  padding-left: 1.15rem;
  font-size: 0.88rem;
}

.speech-sources li {
  margin: 0.2rem 0;
}

.speech-src-type {
  color: var(--chalk-dim);
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.speech-id {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  color: var(--chalk-dim);
}

.speech-id code {
  font-size: 0.78rem;
}

.speech-excluded {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  color: var(--chalk-dim);
  font-size: 0.9rem;
}

.speech-ex {
  font-size: 0.82rem;
  opacity: 0.9;
}

.nav-links a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
}

/* —— Timeline: vertical milestone spine —— */
.wrap--timeline {
  max-width: 960px;
}

.timeline-h1 {
  font-family: var(--font-chalk);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.35rem;
}

.timeline-blurb {
  color: var(--chalk-dim);
  max-width: 42rem;
  line-height: 1.5;
  margin: 0 0 0.85rem;
}

.timeline-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.timeline-search-field { position: relative; }

.timeline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
}

.vt-wrap {
  margin: 0 0 1.5rem;
}

.vt-root {
  position: relative;
}

.vt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* continuous center spine */
.vt-list::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 6px;
  margin-left: -3px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    #f5d76e 0%,
    #e85d3a 25%,
    #8b3db8 50%,
    #3a6ea5 75%,
    #245b4a 100%
  );
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
  z-index: 0;
}

.vt-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 4.5rem 1fr;
  gap: 0.5rem;
  align-items: start;
  margin: 0 0 1.35rem;
  z-index: 1;
  --node: #888;
}

.vt-axis {
  grid-column: 2;
  display: flex;
  justify-content: center;
  padding-top: 0.35rem;
  position: relative;
  z-index: 2;
}

.vt-line { display: none; }

.vt-bubble {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  border: 4px solid var(--node);
  background: #f4f6fa;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  font: inherit;
  padding: 0;
  transition: transform 0.12s ease;
}
.vt-bubble:hover,
.vt-item.is-active .vt-bubble {
  transform: scale(1.07);
}
.vt-item.is-active .vt-bubble {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--node) 70%, #fff), 0 6px 20px rgba(0, 0, 0, 0.4);
}

.vt-year {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--node);
  line-height: 1.05;
}
.vt-count {
  font-size: 0.68rem;
  font-weight: 700;
  color: #555;
}

.vt-card {
  background: #eef2f7;
  color: #1a1a1a;
  border-radius: 12px;
  padding: 0.75rem 0.85rem 0.65rem;
  border-top: 4px solid var(--node);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  max-width: 22rem;
}
.vt-item.is-active .vt-card {
  outline: 2px solid color-mix(in srgb, var(--node) 55%, #fff);
}

.vt-item--left .vt-card {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  margin-right: 0.15rem;
}
.vt-item--right .vt-card {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  margin-left: 0.15rem;
}
.vt-item--left .vt-axis,
.vt-item--right .vt-axis {
  grid-row: 1;
}

.vt-card-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #222;
}
.vt-card-sub {
  margin: 0.25rem 0 0.45rem;
  font-size: 0.82rem;
  color: #444;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}
.vt-l { color: #2f6fad; font-weight: 700; }
.vt-r { color: #c45c4e; font-weight: 700; }
.vt-h { color: #777; font-weight: 600; }

.vt-vol {
  height: 8px;
  border-radius: 4px;
  background: #d5dbe6;
  overflow: hidden;
  margin-bottom: 0.35rem;
}
.vt-vol-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  min-width: 4px;
}

.vt-lr {
  display: flex;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  background: #dfe4ec;
}
.vt-lr-l { background: #5b9bd5; }
.vt-lr-r { background: #e07a6a; }
.vt-lr-h {
  background: repeating-linear-gradient(
    -45deg,
    #b0b6c0,
    #b0b6c0 2px,
    #dfe4ec 2px,
    #dfe4ec 4px
  );
}

.vt-headlines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.vt-headlines li {
  display: grid;
  grid-template-columns: 0.5rem 1fr;
  gap: 0.4rem;
  align-items: start;
  font-size: 0.78rem;
  line-height: 1.3;
  color: #333;
}
.vt-headlines a {
  color: #111;
  text-decoration: none;
}
.vt-headlines a:hover {
  color: #0b57d0;
  text-decoration: underline;
}
.vt-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--c, #888);
  margin-top: 0.25rem;
}

.vt-open {
  margin-top: 0.55rem;
  border: none;
  background: transparent;
  color: var(--node);
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.vt-open:hover { text-decoration: underline; }

/* Mobile: stack cards under bubble */
@media (max-width: 720px) {
  .vt-list::before {
    left: 1.6rem;
    margin-left: 0;
  }
  .vt-item {
    grid-template-columns: 3.5rem 1fr;
    gap: 0.65rem;
  }
  .vt-axis {
    grid-column: 1;
    grid-row: 1;
  }
  .vt-item--left .vt-card,
  .vt-item--right .vt-card {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    max-width: none;
    margin: 0;
  }
  .vt-bubble {
    width: 3.4rem;
    height: 3.4rem;
  }
  .vt-year { font-size: 0.8rem; }
}

/* Detail roster */
.tl-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.tl-roster-block { margin: 0.5rem 0 1.25rem; }
.tl-roster-h {
  font-family: var(--font-chalk);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
  color: var(--chalk);
}
.timeline-root { max-width: 52rem; padding-bottom: 1.25rem; }

.ms-roster-list {
  position: relative;
  margin: 0;
  padding: 0.1rem 0;
}
.ms-roster-list::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: var(--chalk-faint);
  border-radius: 1px;
}

.tl-item {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.55rem 0.75rem;
  text-decoration: none;
  color: inherit;
  padding: 0.5rem 0.35rem 0.5rem 0;
  border-radius: 8px;
}
.tl-item:hover { background: rgba(255, 255, 255, 0.04); }
.tl-item.hollow { opacity: 0.72; }
.tl-item.hollow .tl-title { font-style: italic; }
.tl-rail {
  display: flex;
  justify-content: center;
  padding-top: 0.35rem;
}
.tl-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--mark-color, var(--accent));
  box-shadow: 0 0 0 2px #0a0a0a, 0 0 10px color-mix(in srgb, var(--mark-color) 45%, transparent);
  z-index: 1;
}
.tl-item.hollow .tl-dot {
  background: transparent;
  border: 2px dashed var(--mark-color, var(--chalk-dim));
  box-shadow: 0 0 0 2px #0a0a0a;
}
.tl-body { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.tl-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.8rem;
  color: var(--chalk-dim);
  align-items: center;
}
.tl-date { font-variant-numeric: tabular-nums; color: var(--chalk); font-weight: 600; }
.tl-pill {
  border: 1px solid var(--chalk-faint);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  font-size: 0.72rem;
  text-transform: lowercase;
}
.tl-pill.side-left { border-color: var(--left-tint); color: var(--left-tint); }
.tl-pill.side-right { border-color: var(--right-tint); color: var(--right-tint); }
.tl-sev { color: var(--mark-color, var(--chalk-dim)); font-size: 0.75rem; }
.tl-title {
  font-family: var(--font-chalk);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--chalk);
}
.tl-place { font-size: 0.85rem; color: var(--chalk-dim); }
