:root {
  --bg: #08090b;
  --surface: #111318;
  --surface-2: #0c0e12;
  --surface-3: #151922;
  --border: rgba(255,255,255,0.11);
  --border-soft: rgba(255,255,255,0.08);
  --text: #f8fafc;
  --muted: #9ca3af;
  --muted-strong: #b7bdc7;
  --past: #fb923c;
  --future: #38bdf8;
  --hybrid: #a855f7;
  --focus: rgba(56,189,248,0.55);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: linear-gradient(180deg, #0b0d10 0%, #08090b 52%, #050506 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(12px);
}

.nav-inner,
.page,
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.nav-inner {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.66rem;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.18));
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.02;
}

.brand-name {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 760;
  white-space: nowrap;
}

.brand-tagline {
  margin-top: 0.18rem;
  color: #93c5fd;
  font-size: 0.64rem;
  font-weight: 620;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 0.45rem;
  font-size: 0.86rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.34rem 0.62rem;
  border-radius: 6px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
}

.nav-links a.active {
  color: var(--text);
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.36);
}

main {
  flex: 1;
  padding: 1rem;
}

.page {
  width: 100%;
}

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.9rem;
  margin-bottom: 0.65rem;
}

.hero-title {
  margin: 0 0 0.28rem;
  font-size: 1.72rem;
  line-height: 1.05;
  font-weight: 700;
}

.hero-subtitle {
  max-width: 660px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.86rem;
  line-height: 1.45;
}

.stats-chip,
.hero-chip,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(18, 20, 25, 0.94);
  color: var(--muted);
  font-size: 0.74rem;
}

.stats-chip {
  min-height: 32px;
  padding: 0.24rem 0.58rem;
}

.stats-chip strong,
.hero-chip strong {
  color: var(--text);
}

.hero-chip {
  width: max-content;
  padding: 0.3rem 0.62rem;
  margin-bottom: 0.7rem;
}

.hero-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--future);
  box-shadow: 0 0 12px rgba(56,189,248,0.75);
}

.layout {
  display: grid;
  gap: 0.75rem;
  margin-top: 0;
  align-items: start;
}

.map-card,
.side-card,
.card,
.modal-content {
  background: rgba(17, 19, 24, 0.96);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.34);
}

.map-card,
.side-card,
.card {
  padding: 0.78rem;
}

body.page-map .layout {
  grid-template-columns: minmax(0, 1fr);
}

body.page-birthday .layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
}

body.page-birthday .side-card {
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 96px);
  overflow: auto;
}

body.page-about .page {
  max-width: 1040px;
}

.map-toolbar,
.query-bar {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: var(--surface-2);
}

.map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.46rem;
  margin-bottom: 0.45rem;
}

.query-bar {
  display: grid;
  grid-template-columns: auto minmax(170px, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.46rem;
  margin-bottom: 0.45rem;
}

.toolbar-group,
.filter-bar,
.pill-toggle-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.34rem;
}

.toolbar-group.filters {
  justify-content: flex-end;
}

.toolbar-label,
.query-bar label {
  color: #8f98a6;
  font-size: 0.74rem;
  font-weight: 650;
}

.input-control {
  min-height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.14);
  background: var(--surface-3);
  color: var(--text);
  padding: 0.34rem 0.52rem;
}

.btn {
  min-height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.14);
  background: var(--surface-3);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 650;
  padding: 0.34rem 0.56rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.18s ease, border-color 0.18s ease;
  user-select: none;
}

.btn:hover {
  background: #1f2937;
  border-color: var(--focus);
}

.btn-primary {
  color: #f8fafc;
  background: rgba(56,189,248,0.18);
  border-color: rgba(56,189,248,0.55);
}

.btn-secondary {
  background: rgba(251,146,60,0.13);
  border-color: rgba(251,146,60,0.38);
}

.btn-small {
  min-height: 28px;
  padding: 0.28rem 0.5rem;
  font-size: 0.72rem;
}

.pill-toggle {
  min-height: 29px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #11151d;
  color: #aeb6c3;
  padding: 0.26rem 0.48rem;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  cursor: pointer;
  user-select: none;
}

.pill-toggle input,
.chk-main,
.chk-bday {
  accent-color: var(--future);
}

.pill-toggle:has(input:checked) {
  color: #f8fafc;
  background: rgba(56,189,248,0.12);
  border-color: rgba(56,189,248,0.48);
}

.coord-line,
.summary-text,
#summaryBlock {
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  background: rgba(5,6,8,0.36);
  color: #aeb6c3;
}

.coord-line {
  margin: 0 0 0.45rem;
  padding: 0.42rem 0.55rem;
  font-size: 0.76rem;
}

.summary-text,
#summaryBlock {
  padding: 0.5rem 0.6rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.map-container {
  position: relative;
  height: min(66vh, 720px);
  min-height: 500px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  resize: vertical;
}

.map-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,0.2) 50%);
  pointer-events: none;
  z-index: 1000;
}

#map,
#mapBday {
  width: 100%;
  height: 100%;
}

.map-date-legend {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 650;
  pointer-events: auto;
  width: min(260px, calc(100% - 1.5rem));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.86);
  color: #f8fafc;
  box-shadow: 0 8px 22px rgba(0,0,0,0.36);
  padding: 0.56rem 0.62rem;
  backdrop-filter: blur(8px);
  font-size: 0.74rem;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.map-date-legend.is-empty {
  display: none;
}

.map-date-legend.is-suppressed {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.map-date-legend-title {
  margin-bottom: 0.36rem;
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
}

.map-date-legend-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.4rem;
  align-items: start;
}

.map-date-legend-row + .map-date-legend-row {
  margin-top: 0.32rem;
}

.map-date-legend-row.is-none {
  color: #d8dee9;
}

.map-date-legend-label {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 3.6rem;
  color: #e5e7eb;
  font-weight: 700;
}

.map-date-legend-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--future);
}

.map-date-legend-dot.past {
  background: var(--past);
  opacity: 0.64;
}

.map-date-legend-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem;
  min-width: 0;
}

.map-date-legend-pill {
  appearance: none;
  border: 0;
  border-radius: 5px;
  background: rgba(255,255,255,0.08);
  color: #f8fafc;
  font-weight: 700;
  line-height: 1;
  padding: 0.24rem 0.34rem;
  font: inherit;
}

.map-date-legend-pill:not(.is-none) {
  cursor: pointer;
}

.map-date-legend-pill:not(.is-none):hover,
.map-date-legend-pill:not(.is-none):focus-visible {
  background: rgba(255,255,255,0.15);
}

.map-date-legend-pill.is-none {
  background: rgba(56,189,248,0.11);
  border: 1px solid rgba(56,189,248,0.22);
  color: #cbd5e1;
  font-weight: 650;
  line-height: 1.15;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 0.76rem;
}

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

.legend-swatch {
  width: 14px;
  height: 6px;
  border-radius: 999px;
}

.legend-swatch.past {
  background: var(--past);
  opacity: 0.64;
}

.legend-swatch.future {
  background: var(--future);
}

.legend-swatch.hybrid {
  background: var(--hybrid);
}

.summary-panel {
  display: grid;
  gap: 0.7rem;
}

.panel-heading,
.side-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.panel-heading h2,
.side-header h2,
.side-card h2 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.2;
}

.lists-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0;
}

.result-section {
  margin-top: 0.72rem;
}

.section-label {
  margin: 0 0 0.42rem;
  color: #8f98a6;
  font-size: 0.7rem;
  font-weight: 750;
}

.timeline {
  margin: 0;
  padding: 0;
  border: 0;
}

.eclipse-row {
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: #10141b;
  padding: 0.44rem 0.54rem;
  margin-bottom: 0.38rem;
  border-left: 3px solid rgba(148,163,184,0.35);
  cursor: pointer;
}

.eclipse-row.type-T,
.eclipse-row.period-future {
  border-left-color: var(--future);
}

.eclipse-row.type-HT,
.eclipse-row.type-HA {
  border-left-color: var(--hybrid);
}

.eclipse-row.type-A,
.eclipse-row.period-past {
  border-left-color: var(--past);
  background: rgba(31, 35, 42, 0.88);
  color: rgba(248, 250, 252, 0.78);
}

.eclipse-row:has(input:checked) {
  background: rgba(56,189,248,0.1);
  border-color: rgba(56,189,248,0.5);
}

.eclipse-row.period-past:has(input:checked) {
  background: rgba(251,146,60,0.08);
  border-color: rgba(251,146,60,0.34);
}

.eclipse-main-line {
  display: flex;
  gap: 0.48rem;
  align-items: center;
  font-size: 0.86rem;
}

.eclipse-label-group {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 0.42rem;
  line-height: 1.2;
}

.eclipse-label-group .date {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 650;
  white-space: nowrap;
}

.type-chip {
  border-radius: 5px;
  padding: 0.12rem 0.36rem;
  background: rgba(148,163,184,0.12);
  color: #dbe3ee;
  font-size: 0.68rem;
  font-weight: 750;
  white-space: nowrap;
}

.row-meta {
  color: #7f8896;
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-pills {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.status-pill,
.age-pill {
  display: inline-flex;
  width: max-content;
  border-radius: 6px;
  padding: 0.16rem 0.4rem;
  font-size: 0.66rem;
  font-weight: 750;
}

.status-pill.past,
.age-pill {
  background: rgba(251,146,60,0.14);
  color: #fed7aa;
}

.status-pill.future {
  background: rgba(56,189,248,0.14);
  color: #bae6fd;
}

.eclipse-controls {
  margin-top: 0.36rem;
  padding-top: 0.36rem;
  border-top: 1px solid rgba(148,163,184,0.1);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--muted);
}

.eclipse-controls label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  user-select: none;
  background: rgba(255,255,255,0.05);
  padding: 2px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.eclipse-controls label:hover {
  background: rgba(255,255,255,0.1);
}

.empty-state {
  padding: 0.55rem 0.6rem;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #8f98a6;
  background: rgba(5,6,8,0.3);
  font-size: 0.8rem;
}

.small-muted,
.summary-meta {
  color: #8f98a6;
  font-size: 0.74rem;
}

.summary-meta {
  margin-top: 0.25rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-content {
  width: min(1200px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  position: relative;
  padding: 20px;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.close-modal:hover {
  color: var(--text);
}

.path-details-sheet {
  position: fixed;
  left: 50%;
  bottom: 0.75rem;
  z-index: 1300;
  width: min(430px, calc(100vw - 1.5rem));
  max-height: min(76vh, 620px);
  transform: translate(-50%, calc(100% + 1.5rem));
  border: 1px solid rgba(148,163,184,0.28);
  border-radius: 14px;
  background: rgba(9, 12, 18, 0.97);
  box-shadow: 0 18px 48px rgba(0,0,0,0.56);
  color: #f8fafc;
  padding: 0.78rem;
  overflow: auto;
  transition: transform 0.18s ease;
}

.path-details-sheet[hidden] {
  display: none;
}

.path-details-sheet.is-open {
  transform: translate(-50%, 0);
}

.path-details-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(203,213,225,0.32);
  margin: 0 auto 0.7rem;
}

.path-details-header {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
}

.path-details-eyebrow,
.path-detail-section-title {
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.path-details-header h2 {
  margin: 0.12rem 0 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.path-details-close {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(148,163,184,0.22);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #f8fafc;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.path-details-body {
  margin-top: 0.85rem;
}

.path-detail-section {
  border-top: 1px solid rgba(148,163,184,0.16);
  padding-top: 0.72rem;
}

.path-detail-section + .path-detail-section {
  margin-top: 0.82rem;
}

.path-detail-countdown {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 0.55rem;
  align-items: baseline;
  margin-top: 0.42rem;
  padding: 0.56rem 0.62rem;
  border-radius: 8px;
  background: rgba(56,189,248,0.1);
}

.path-detail-countdown span {
  color: #dbeafe;
  font-size: 0.78rem;
}

.path-detail-countdown strong {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.path-detail-countdown em {
  grid-column: 2;
  color: #8f98a6;
  font-size: 0.64rem;
  font-style: normal;
}

.path-detail-list {
  display: grid;
  gap: 0.46rem;
  margin: 0.55rem 0 0;
}

.path-detail-list div {
  display: grid;
  grid-template-columns: minmax(6.4rem, auto) minmax(0, 1fr);
  gap: 0.75rem;
}

.path-detail-list dt {
  color: #94a3b8;
  font-size: 0.78rem;
}

.path-detail-list dd {
  margin: 0;
  color: #f8fafc;
  font-size: 0.86rem;
  text-align: right;
}

.path-details-note {
  border: 1px solid rgba(148,163,184,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: #cbd5e1;
  padding: 0.62rem;
  font-size: 0.84rem;
}

.path-details-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

#previewContainer,
#birthdayPreviewContainer {
  margin: 15px 0;
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 8px;
  background: #000;
  overflow: auto;
  display: flex;
  justify-content: center;
}

#previewContainer img,
#birthdayPreviewContainer img {
  max-width: 100%;
  height: auto;
  display: block;
}

.eclipse-tooltip {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #f9fafb;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  font-family: system-ui, sans-serif;
  z-index: 1000;
  box-sizing: border-box;
  width: max-content;
  min-width: 190px;
  max-width: min(340px, calc(100vw - 40px));
  white-space: normal;
  overflow-wrap: break-word;
}

.leaflet-tooltip-pane {
  z-index: 1200 !important;
}

.location-tooltip {
  width: min(310px, calc(100vw - 40px));
  min-width: min(250px, calc(100vw - 40px));
  max-width: min(310px, calc(100vw - 40px));
}

.eclipse-tooltip .tooltip-title,
.eclipse-tooltip .tooltip-compact-title {
  font-weight: 700;
}

.eclipse-tooltip .tooltip-title {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.eclipse-tooltip .tooltip-compact-title {
  padding: 2px;
}

.eclipse-tooltip .tooltip-body {
  font-size: 0.85rem;
  line-height: 1.5;
}

.eclipse-tooltip .tooltip-details {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.eclipse-tooltip .tooltip-local-totality {
  margin-top: 0.55rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(56,189,248,0.28);
  border-left: 3px solid var(--future);
  border-radius: 7px;
  background: rgba(56,189,248,0.1);
}

.eclipse-tooltip .tooltip-section-title {
  color: #bae6fd;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eclipse-tooltip .tooltip-countdown {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.18rem 0.5rem;
  align-items: baseline;
  margin-top: 0.28rem;
}

.eclipse-tooltip .tooltip-countdown span {
  color: #dbeafe;
  font-size: 0.75rem;
}

.eclipse-tooltip .tooltip-countdown strong {
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}

.eclipse-tooltip .tooltip-countdown em {
  grid-column: 2;
  color: #8f98a6;
  font-size: 0.64rem;
  font-style: normal;
}

.eclipse-tooltip .tooltip-muted,
.eclipse-tooltip .tooltip-footnote {
  opacity: 0.6;
}

.eclipse-tooltip .tooltip-footnote {
  margin-top: 4px;
  font-size: 0.75rem;
}

.leaflet-tooltip-left::before {
  border-left-color: rgba(15, 23, 42, 0.95);
}

.leaflet-tooltip-right::before {
  border-right-color: rgba(15, 23, 42, 0.95);
}

#luckyBadge {
  margin: 0.55rem 0 0;
  padding: 0.62rem 0.7rem;
  border: 1px solid rgba(251,146,60,0.36);
  border-radius: 8px;
  background: rgba(251,146,60,0.12);
  color: #fed7aa;
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: left;
}

#luckyBadge strong {
  color: #fff;
  display: inline;
  font-size: inherit;
  margin: 0;
}

#luckyBadge .badge-title {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 750;
  margin-bottom: 0.35rem;
}

.balloons {
  display: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 0.75rem;
  margin-top: 1rem;
  align-items: start;
}

.card h2,
.card h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
}

.card p,
.card li {
  color: #b7bdc7;
  line-height: 1.62;
}

.card ul {
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
}

.callout {
  border-left: 3px solid var(--future);
  background: rgba(56,189,248,0.08);
  border-radius: 6px;
  padding: 0.72rem 0.82rem;
  color: #dbeafe;
}

.source-heading {
  margin-top: 1.2rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.7rem;
}

.badge {
  padding: 0.25rem 0.5rem;
}

footer {
  border-top: 1px solid var(--border-soft);
  background: #07080a;
  padding: 0.75rem 1rem 1.1rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.last-updated {
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .hero-row {
    display: block;
  }

  .hero-title {
    font-size: 1.55rem;
  }

  body.page-birthday .layout,
  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-birthday .side-card {
    position: static;
    max-height: none;
  }

  .map-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .toolbar-group.filters {
    justify-content: flex-start;
  }

  .lists-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-container {
    min-height: 440px;
  }
}

@media (max-width: 640px) {
  main {
    padding: 0.75rem;
  }

  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .brand-tagline {
    display: none;
  }

  .query-bar {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 440px;
    min-height: 360px;
  }

  .map-date-legend {
    right: 0.5rem;
    top: 0.5rem;
    width: min(230px, calc(100% - 1rem));
    font-size: 0.68rem;
  }

  .path-details-sheet {
    bottom: 0;
    width: 100%;
    max-height: 78vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
  }

  .path-detail-list div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.12rem;
  }

  .path-detail-list dd {
    text-align: left;
  }
}
