/* ThreatFile
   Navy, charcoal, and off-white base.
   Strong blue is the primary accent; deep red is reserved for
   high severity. No scare or urgency styling. */

:root {
  --navy: #0e1a28;
  --navy-ink: #152536;
  --charcoal: #1c2329;
  --muted: #4e5963;
  --rule: #d6d2c8;
  --rule-strong: #c3beb4;
  --offwhite: #f4f1ea;
  --paper: #fbf9f4;
  --blue: #0e5aa7;
  --blue-hover: #0a457f;
  --blue-soft: #e4eef8;
  --arc: #4aa3ea;
  --ocean: #0a3d6b;
  --land: #ecd9a8;
  --land-stroke: #c4b07a;
  --alert: #9d2b2b;
  --alert-hover: #7c2222;
  --alert-soft: #f6eaea;
  --sage: #3d5c4a;
  --sage-soft: #e8efe9;
  --focus: #0e5aa7;
  --header-fg: #f4f1ea;
  --header-muted: #c5cdd4;
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 90rem;
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  min-height: 100vh;
}

img { max-width: 100%; }

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--blue-hover);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--paper);
  color: var(--charcoal);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  background: var(--navy);
  color: var(--header-fg);
  border-bottom: 3px solid var(--blue);
}

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0 1.45rem;
}

.draft-label {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.12rem 0.5rem;
  border: 1px solid #8aa6c4;
  border-radius: 3px;
  color: var(--header-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.brand-name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--header-fg);
}

.brand-working-title {
  font-weight: 500;
  color: var(--header-muted);
}

.brand-mark {
  letter-spacing: 0.06em;
}

.brand-sep {
  color: #8aa6c4;
  font-weight: 500;
}

.brand-full {
  font-weight: 500;
}

.brand-tag {
  margin: 0.4rem 0 0;
  color: var(--header-muted);
  font-size: 0.95rem;
  max-width: 38rem;
}

.header-checked {
  margin: 0;
  text-align: right;
  color: var(--header-muted);
  font-size: 0.82rem;
  line-height: 1.4;
  flex: 0 0 auto;
}

.header-checked time {
  display: inline-block;
  margin-top: 0.15rem;
  color: var(--header-fg);
  font-size: 0.92rem;
}

.lede {
  margin: 1.6rem 0 1.4rem;
  max-width: 46rem;
  color: var(--charcoal);
}

/* Headline ticker, directly under the black header */
.headline-ticker {
  background: var(--navy-ink);
  color: var(--header-fg);
  border-bottom: 1px solid #1f3348;
}

.headline-ticker-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 2.5rem;
  padding: 0.35rem 0;
}

.headline-ticker-label {
  margin: 0;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--header-muted);
}

.headline-ticker-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.headline-ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: tf-ticker-scroll var(--ticker-duration, 52s) linear infinite;
}

.headline-ticker-track a {
  color: var(--header-fg);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
}

.headline-ticker-track a:hover,
.headline-ticker-track a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.headline-ticker-sep {
  display: inline-block;
  margin: 0 0.85rem;
  color: var(--header-muted);
  user-select: none;
}

.headline-ticker:hover .headline-ticker-track,
.headline-ticker:focus-within .headline-ticker-track {
  animation-play-state: paused;
}

.headline-ticker:focus-within .headline-ticker-viewport {
  overflow-x: auto;
}

.headline-ticker:focus-within .headline-ticker-track {
  animation: none;
  transform: none;
}

.headline-ticker.is-static .headline-ticker-viewport {
  overflow-x: auto;
  overflow-y: hidden;
}

.headline-ticker.is-static .headline-ticker-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  max-width: none;
  animation: none;
  transform: none;
}

.headline-ticker.is-static .headline-ticker-track a {
  white-space: nowrap;
}

@keyframes tf-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .headline-ticker-track {
    animation: none !important;
    transform: none !important;
  }
}

/* New-incident notice; hidden until a check finds new ids */
.new-incidents-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--blue);
  text-align: center;
}

.new-incidents-load {
  display: inline-block;
  margin: 0;
  padding: 0.55rem 1rem;
  border: 0;
  background: transparent;
  color: var(--header-fg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.new-incidents-load:hover,
.new-incidents-load:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  border: 0;
  background: transparent;
  margin-bottom: 1.35rem;
}

.metric {
  padding: 1rem 1.15rem 1.05rem;
  border: 0;
  border-radius: var(--radius);
}

.metric-active {
  background: var(--alert);
  color: var(--offwhite);
}

.metric-window {
  background: var(--navy-ink);
  color: var(--offwhite);
}

.metric-checked {
  background: var(--blue-soft);
  color: var(--blue);
  border-left: 4px solid var(--blue);
}

.metric-value {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  color: inherit;
}

.metric-value-time {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.3;
}

.metric-label {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: inherit;
}

.metric-detail {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: inherit;
}

.metric-active .metric-value,
.metric-active .metric-label,
.metric-active .metric-detail,
.metric-window .metric-value,
.metric-window .metric-label,
.metric-window .metric-detail {
  color: var(--offwhite);
}

.metric-checked .metric-value,
.metric-checked .metric-label,
.metric-checked .metric-detail {
  color: var(--blue);
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 2rem;
}

.filter label,
.filter-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cat-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cat-toggle-btn {
  margin: 0;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--paper);
  color: var(--charcoal);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.2;
  cursor: pointer;
}

.cat-toggle-btn:hover {
  background: var(--blue-soft);
  color: var(--blue-hover);
  border-color: var(--blue);
}

.cat-toggle-btn.is-active {
  background: var(--blue);
  color: #fbf9f4;
  border-color: var(--blue);
}

.cat-toggle-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.filter-confirmation {
  max-width: 24rem;
}

.filter select {
  width: 100%;
  appearance: none;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 6l5 5 5-5' stroke='%231C2329' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.8rem center;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--charcoal);
  font: inherit;
  font-size: 1rem;
  padding: 0.55rem 2.2rem 0.55rem 0.75rem;
}

.filter select:hover {
  border-color: var(--blue);
}

.block {
  margin-bottom: 2.6rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 0.45rem;
  margin-bottom: 0.15rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--navy);
}

.caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card {
  padding: 1.2rem 0 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.card:last-child {
  border-bottom: 0;
}

.card-title {
  margin: 0 0 0.2rem;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

.card-meta {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.tag {
  display: inline-block;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--charcoal);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius);
  line-height: 1.3;
}

.tag-outlook-resolved,
.tag-outlook-likely-shorter {
  border-color: #9bb5a4;
  background: var(--sage-soft);
  color: var(--sage);
}

.tag-severity-high {
  border-color: #d7b3b3;
  background: var(--alert-soft);
  color: var(--alert);
}

.tag-severity-medium,
.tag-severity-low {
  border-color: var(--rule-strong);
  background: var(--paper);
  color: var(--charcoal);
}

.card-body {
  margin: 0 0 0.75rem;
  max-width: 62rem;
}

.sources {
  margin: 0;
  font-size: 0.95rem;
}

.sources-label {
  color: var(--muted);
  margin-right: 0.25rem;
}

.sources a {
  margin-right: 0.15rem;
}

.sources .sep {
  color: var(--rule-strong);
  margin: 0 0.35rem 0 0.15rem;
}

.empty,
.status-msg,
.noscript {
  padding: 1rem 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

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

@media (max-width: 800px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 1.5rem));
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.25rem 0 1.15rem;
  }

  .header-checked {
    text-align: left;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .metric-value-time {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .brand-name { font-size: 1.4rem; }
  .card-title { font-size: 1.15rem; }
}

/* Share */
.share {
  margin: 0 0 1.5rem;
}

.share-page {
  padding: 0.85rem 0 0.2rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.share-label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.share-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.share-btn {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--navy);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}

.share-btn:hover {
  background: var(--blue-soft);
  color: var(--blue-hover);
  border-color: var(--blue);
}

.share-card {
  margin: 0.9rem 0 0;
}

/* Map */
#incident-map {
  height: min(70vh, 38rem);
  width: 100%;
  background: var(--ocean);
  border: 1px solid var(--rule);
  z-index: 0;
}

.leaflet-container {
  font-family: var(--font-sans);
  background: var(--ocean);
  color: var(--charcoal);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--paper);
  color: var(--charcoal);
  border-radius: var(--radius);
  box-shadow: none;
  border: 1px solid var(--rule);
}

.leaflet-popup-content {
  margin: 0.75rem 0.85rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.leaflet-popup-content strong {
  font-family: var(--font-serif);
  font-weight: 600;
}

.leaflet-control-attribution {
  background: rgba(244, 241, 234, 0.92);
  color: var(--muted);
  font-size: 0.7rem;
}

.leaflet-control-attribution a {
  color: var(--blue);
}

.map-frame {
  position: relative;
}

.map-key {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  z-index: 500;
  max-width: min(24rem, calc(100% - 8rem));
  margin: 0;
  padding: 0.4rem 0.55rem 0.45rem;
  background: rgba(251, 249, 244, 0.95);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--charcoal);
  font-size: 0.78rem;
  line-height: 1.35;
}

.map-key-row {
  margin: 0;
}

.map-key-row + .map-key-row {
  margin-top: 0.3rem;
  padding-top: 0.3rem;
  border-top: 1px solid var(--rule);
}

.key-size {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.45rem;
  white-space: nowrap;
}

.key-dot {
  display: inline-block;
  border-radius: 50%;
  background: var(--navy);
  border: 1.5px solid var(--navy);
}

.key-dot-1 { width: 10px; height: 10px; }
.key-dot-2 { width: 14px; height: 14px; }
.key-dot-3 { width: 18px; height: 18px; background: var(--alert); border-color: var(--alert); }

.map-key-line {
  display: inline-block;
  width: 1.2rem;
  height: 0;
  margin-right: 0.4rem;
  border-top: 3px solid var(--arc);
  vertical-align: 0.12rem;
}

.map-attributions {
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

.map-attributions h3 {
  margin: 0.6rem 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--font-sans);
}

.map-attributions ul {
  margin: 0;
  padding-left: 1.15rem;
}

.map-attributions li {
  margin: 0 0 0.4rem;
}

.map-note {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}


/* Map + timeline rail */
.monitor {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(22rem, 0.95fr);
  gap: 1.5rem 1.75rem;
  align-items: start;
  margin-bottom: 2.6rem;
}

.monitor .map-block,
.monitor .timeline-rail .block {
  margin-bottom: 0;
}

.timeline-rail {
  position: sticky;
  top: 0.75rem;
  max-height: calc(100vh - 1.25rem);
  overflow: auto;
  padding: 0 0.2rem 0.4rem 1.15rem;
  border-left: 1px solid var(--rule);
}

.timeline-rail .block + .block {
  margin-top: 1.75rem;
}

.timeline-rail .card {
  padding: 0.85rem 0 0.9rem;
}

.timeline-rail .card-title {
  font-size: 1.08rem;
}

.timeline-rail .card-body {
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
}

.timeline-rail .share-card {
  margin-top: 0.65rem;
}

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

  .timeline-rail {
    position: static;
    max-height: none;
    overflow: visible;
    border-left: 0;
    padding: 0;
  }

  #incident-map {
    height: 22rem;
  }
}

/* Incident permalinks */
.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* Incident pages */
.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-link:hover {
  color: #d5e6f6;
}

.back-link {
  margin: 1.4rem 0 0.8rem;
}

.back-link a {
  color: var(--blue);
}

.origin-note {
  margin: 0 0 0.75rem;
  padding: 0.7rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  max-width: 62rem;
}

.origin-note p {
  margin: 0;
}

@media (max-width: 800px) {
  #incident-map {
    height: 20rem;
  }
}

.leaflet-bar {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  box-shadow: none;
  overflow: hidden;
}

.leaflet-bar a,
.leaflet-bar a:hover {
  background: var(--paper);
  color: var(--navy);
  border-bottom: 1px solid var(--rule);
  width: 28px;
  height: 28px;
  line-height: 28px;
}

.leaflet-bar a:hover {
  background: var(--blue-soft);
  color: var(--blue-hover);
}

.leaflet-bar a.leaflet-disabled {
  color: #9aa3ab;
  background: var(--paper);
}


/* ---- Version 2 ---- */
[hidden] {
  display: none !important;
}

/* Filter bar: category pills and the time window share one row. */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.9rem 1.5rem;
}

.filter-bar .filter-cats {
  flex: 1 1 32rem;
}

.filter-window {
  flex: 0 0 auto;
  padding-left: 1.5rem;
  border-left: 1px solid var(--rule-strong);
}

.window-toggle,
.conf-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--navy);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}

.window-toggle-btn,
.conf-toggle-btn {
  margin: 0;
  padding: 0.4rem 0.85rem;
  border: 0;
  border-right: 1px solid var(--navy);
  background: transparent;
  color: var(--charcoal);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.2;
  cursor: pointer;
}

.window-toggle-btn:last-child,
.conf-toggle-btn:last-child {
  border-right: 0;
}

.window-toggle-btn:hover,
.conf-toggle-btn:hover {
  background: var(--blue-soft);
  color: var(--blue-hover);
}

.window-toggle-btn.is-active,
.conf-toggle-btn.is-active {
  background: var(--blue);
  color: #fbf9f4;
}

.window-toggle-btn:focus-visible,
.conf-toggle-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -3px;
}

.filter-confirmation {
  max-width: none;
}

@media (max-width: 800px) {
  .filter-window {
    padding-left: 0;
    border-left: 0;
  }
}

/* Relative times sit next to the exact CT time. */
.rel-time {
  color: var(--muted);
  white-space: nowrap;
}

.header-checked .rel-time {
  display: block;
  color: var(--header-muted);
  font-size: 0.8rem;
}

/* Short side-rail cards */
.timeline-rail .card-short,
.card-short {
  padding: 0.65rem 0.55rem 0.7rem;
  margin: 0 -0.55rem;
  border-radius: var(--radius);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.card-short .card-title {
  font-size: 1.02rem;
  margin-bottom: 0.15rem;
}

.card-short .card-meta {
  margin: 0 0 0.4rem;
  font-size: 0.86rem;
}

.card-short .card-meta .sep {
  margin: 0 0.35rem;
  color: var(--rule-strong);
}

.card-place {
  color: var(--charcoal);
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.card-short .tags {
  margin: 0;
}

.card-short.has-map {
  cursor: pointer;
}

.card-short.has-map:hover {
  background: var(--paper);
}

.card-short.is-linked,
.card-short.is-linked:hover {
  background: var(--blue-soft);
  box-shadow: inset 3px 0 0 var(--blue);
}

.card-map-btn {
  margin: 0;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--blue);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.3;
  cursor: pointer;
}

.card-map-btn:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-hover);
}

.tag-in-process {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-hover);
  font-weight: 600;
}

/* Incident page: update timeline and other incidents */
.incident-section {
  margin: 1.6rem 0 0;
  max-width: 62rem;
}

.incident-section h2 {
  margin: 0 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--navy);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
}

.timeline-dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0;
  margin: 0 0 1rem;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.timeline-dates div {
  padding: 0.6rem 0.85rem;
  border-right: 1px solid var(--rule);
}

.timeline-dates div:last-child {
  border-right: 0;
}

.timeline-dates dt {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline-dates dd {
  margin: 0.15rem 0 0;
  font-size: 0.98rem;
}

.timeline-dates .rel-time {
  display: block;
  font-size: 0.86rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.1rem;
  border-left: 2px solid var(--rule-strong);
}

.timeline-item {
  position: relative;
  padding: 0 0 1.05rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.1rem - 6px);
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--blue);
}

.timeline-item:first-child::before {
  background: var(--blue);
}

.timeline-time {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.timeline-title {
  margin: 0.15rem 0 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
}

.timeline-title .tag {
  margin-right: 0.4rem;
  font-family: var(--font-sans);
  font-weight: 400;
  vertical-align: 0.1rem;
}

.timeline-body {
  margin: 0 0 0.35rem;
}

.timeline-note {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.other-incidents {
  list-style: none;
  margin: 0;
  padding: 0;
}

.other-incidents li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.other-incidents li:last-child {
  border-bottom: 0;
}

.other-incidents a {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.04rem;
}

.other-incidents .card-meta {
  margin: 0.1rem 0 0.3rem;
  font-size: 0.86rem;
}

.other-incidents .tags {
  margin: 0;
}

@media (max-width: 600px) {
  .map-key {
    max-width: calc(100% - 1rem);
    font-size: 0.7rem;
    padding: 0.3rem 0.45rem;
  }

  .key-size {
    margin-left: 0.3rem;
  }
}
