/* Compact travel-footprint row within the Talks overview. */
.speaking-counts { margin-bottom: 12px; }
.travel-footprint {
  margin: 0 0 16px;
  padding: 0 0 11px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
}
.travel-footprint-head {
  margin: 0 0 5px;
  color: var(--faint);
  font-size: 10.25px;
  font-weight: 520;
  letter-spacing: .055em;
  line-height: 1.3;
  text-transform: uppercase;
}
.travel-footprint-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 6px;
  color: var(--muted);
  font-size: 11.25px;
  line-height: 1.4;
}
.travel-footprint-summary strong {
  color: var(--text);
  font-weight: 650;
}
.travel-footprint-separator { color: var(--faint); }
.travel-footprint-tree-inline {
  color: var(--faint);
  white-space: nowrap;
}
.travel-footprint-tree-inline strong {
  color: var(--muted);
  font-weight: 650;
}
.travel-footprint-sources,
.travel-footprint-disclaimer,
.travel-footprint-note {
  font-size: 9.25px;
  line-height: 1.35;
}
.travel-footprint-sources {
  margin: 7px 0 0;
  color: var(--faint);
}
.travel-footprint-sources a {
  color: inherit;
  text-decoration-color: var(--rule-strong);
}
.travel-footprint-disclaimer {
  margin: 2px 0 0;
  color: var(--faint);
  font-style: italic;
}
.travel-footprint-note { margin: 0; color: var(--muted); }

/* Upcoming-first map controls: visitors can expand to the full speaking footprint. */
.speaking-map-controls {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.speaking-map-view {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.speaking-map-view button {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.2;
  padding: 0;
}
.speaking-map-view button + button {
  margin-left: 7px;
  padding-left: 7px;
  border-left: 1px solid var(--rule);
}
.speaking-map-view button:hover,
.speaking-map-view button:focus-visible,
.speaking-map-view button.is-active,
.speaking-map-view button[aria-pressed="true"] {
  color: var(--accent-strong);
}
.speaking-map-view button.is-active,
.speaking-map-view button[aria-pressed="true"] { font-weight: 650; }
.speaking-map-view button:focus-visible {
  outline: 1px solid var(--accent-strong);
  outline-offset: 3px;
}

/* Location pills with coordinates can focus the corresponding upcoming map marker. */
button.event-location-tag.event-location-focus {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
}
button.event-location-tag.event-location-focus:hover,
button.event-location-tag.event-location-focus:focus-visible {
  border-color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
button.event-location-tag.event-location-focus:focus-visible {
  outline: 1px solid var(--accent-strong);
  outline-offset: 2px;
}

/* On desktop, JS matches the Upcoming column to the actual left-column stack. */
@media (min-width: 1051px) {
  .speaking-layout { align-items: start; }
  .speaking-upcoming {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  .speaking-upcoming .event-list--scroll {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    border-bottom: 1px solid var(--rule);
  }
}

/* Make upcoming markers immediately legible at the default, tighter map extent. */
.speaking-dot--upcoming {
  width: 16px;
  height: 16px;
  box-shadow: 0 0 0 3px rgba(105,223,255,.24), 0 0 14px rgba(105,223,255,.38);
}
.speaking-dot--upcoming.speaking-dot--has-count {
  width: 24px;
  height: 24px;
}
html[data-theme="light"] .speaking-dot--upcoming {
  box-shadow: 0 0 0 3px rgba(0,127,168,.16), 0 0 12px rgba(0,127,168,.18);
}

@media (max-width: 1050px) {
  .speaking-overview,
  .speaking-upcoming { display: block; }
  .speaking-upcoming .event-list--scroll {
    height: 430px;
    min-height: 0;
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .travel-footprint { margin-bottom: 15px; }
  .travel-footprint-summary { font-size: 10.75px; }
  .travel-footprint-sources,
  .travel-footprint-disclaimer { font-size: 9px; }
  .speaking-map-controls { gap: 5px; }
  .map-interaction { display: none; }
}
