/* ── SPEAKING ─────────────────────────────────────────────────
   A map of the places, and the archive in order beneath it. The map is
   one SVG: the world as an image, pins drawn on top in map units. */
.spk {
  padding: clamp(96px, 11vw, 150px) var(--pad) clamp(60px, 8vw, 100px);
  max-width: 1300px;
  margin: 0 auto;
}
.spk-hd { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.spk-intro {
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.8vw, 19.5px);
  line-height: 1.6;
}
.spk-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  margin-top: 28px;
}
.spk-stats dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.spk-stats dd {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}

/* the map */
.spk-map { position: relative; margin: 0; }
.spk-viewport {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(217,164,65,.05), transparent 70%),
    #0e1013;
}
.spk-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 434;
  touch-action: none;
  cursor: grab;
}
.spk-live .spk-svg:active { cursor: grabbing; }
.spk-svg:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.spk-pin circle {
  fill: var(--accent);
  stroke: #0b0b0b;
  stroke-width: 1.2px;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(217,164,65,.55));
  transition: fill .15s;
}
.spk-pin text {
  fill: #0b0b0b;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 4px; /* until the script sizes it for the zoom */
  text-anchor: middle;
  pointer-events: none;
}
.spk-group circle { fill: #f2d39a; }
.spk-pin:hover circle, .spk-pin:focus-visible circle { fill: #fff; }
.spk-pin:focus { outline: none; }
.spk-pin:focus-visible circle { stroke: #fff; stroke-width: 3px; }
.spk-cap {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.spk-keys { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.spk-nomap .spk-viewport::after {
  content: "The map couldn’t load. Every appearance is listed below.";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--muted); font-size: 14px;
}

.spk-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
}
.spk-zoom button, .spk-play, .spk-era, .spk-close {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
  background: rgba(20,20,20,.88);
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  min-width: 36px;
  min-height: 36px;
  padding: 0 12px;
  cursor: pointer;
}
.spk-zoom button:hover, .spk-play:hover, .spk-era:hover { border-color: var(--accent); }
.spk-zoom button:focus-visible, .spk-play:focus-visible, .spk-era:focus-visible, .spk-close:focus-visible,
.spk-filter select:focus-visible, .spk-bar:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* a place, opened */
.spk-panel {
  position: absolute;
  top: 12px;
  left: 12px;
  width: min(360px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overflow: auto;
  padding: 18px 20px 16px;
  background: rgba(14,14,14,.96);
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.spk-panel h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 30px 10px 0;
}
.spk-panel h2:focus { outline: none; }
.spk-panel ol { list-style: none; display: grid; gap: 10px; }
.spk-panel li { display: grid; gap: 1px; font-size: 14px; line-height: 1.4; }
.spk-panel li a { color: #fff; text-decoration-color: rgba(217,164,65,.6); text-underline-offset: 3px; }
.spk-panel .spk-session { color: var(--muted); }
.spk-close { position: absolute; top: 10px; right: 10px; padding: 0; font-size: 18px; }

/* filters */
.spk-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px 24px;
  margin: 26px 0 8px;
}
.spk-eras { display: flex; flex-wrap: wrap; gap: 6px; }
.spk-era[aria-pressed="true"] { background: var(--accent); color: #0b0b0b; border-color: var(--accent); }
.spk-filters { display: flex; flex-wrap: wrap; gap: 12px; }
.spk-filter { display: grid; gap: 4px; }
.spk-filter span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.spk-filter select {
  min-height: 36px;
  padding: 0 30px 0 10px;
  color: #fff;
  background: #141414;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  font-size: 14px;
}
.spk-count { flex-basis: 100%; font-size: 13px; color: var(--muted); }

/* the years, as bars */
.spk-years {
  display: flex;
  align-items: end;
  gap: 14px;
  margin: 26px 0 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.spk-years ol {
  list-style: none;
  display: flex;
  align-items: end;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  padding: 2px;
}
.spk-years li { flex: 1 0 22px; max-width: 46px; }
.spk-bar {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: stretch;
  height: 76px;
  text-decoration: none;
  color: var(--muted);
}
.spk-bar-fill { display: block; background: #3b3426; border-radius: 3px 3px 0 0; min-height: 2px; }
.spk-bar:hover .spk-bar-fill, .spk-bar[aria-pressed="true"] .spk-bar-fill { background: var(--accent); }
.spk-bar.dim .spk-bar-fill { opacity: .3; }
.spk-bar[aria-disabled="true"] { pointer-events: none; }
.spk-bar-y { font-family: var(--font-mono); font-size: 10px; text-align: center; margin-top: 4px; }
.spk-bar-fill.h0 { height: 2px; }
.spk-bar-fill.h1 { height: 10%; } .spk-bar-fill.h2 { height: 18%; } .spk-bar-fill.h3 { height: 26%; }
.spk-bar-fill.h4 { height: 34%; } .spk-bar-fill.h5 { height: 42%; } .spk-bar-fill.h6 { height: 50%; }
.spk-bar-fill.h7 { height: 58%; } .spk-bar-fill.h8 { height: 66%; } .spk-bar-fill.h9 { height: 74%; }
.spk-bar-fill.h10 { height: 82%; }
.spk-play[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

/* the archive */
.spk-year { padding-top: 26px; scroll-margin-top: 80px; }
.spk-year-h {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  margin-bottom: 6px;
}
.spk-year-h small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-left: 10px;
}
.spk-list { list-style: none; }
.spk-ev {
  display: grid;
  grid-template-columns: minmax(96px, 130px) 1fr;
  gap: 4px 22px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.spk-ev:target { background: linear-gradient(90deg, rgba(217,164,65,.08), transparent); }
.spk-when { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
.spk-event { font-size: 17px; font-weight: 700; line-height: 1.3; }
.spk-session { font-family: var(--font-serif); font-size: 17px; color: #ddd; margin-top: 2px; }
.spk-where { font-size: 13px; color: var(--muted); margin-top: 4px; }
.spk-type {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 6px;
}
.spk-role { color: #f2d39a; }
.spk-links { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.spk-links a { color: #ddd; text-underline-offset: 3px; text-decoration-color: rgba(217,164,65,.6); }
.spk-links a:hover { color: #fff; }

.spk-places { margin-top: 40px; font-size: 14px; color: var(--muted); }
.spk-places summary { cursor: pointer; font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.spk-places ul { list-style: none; margin-top: 12px; display: grid; gap: 6px; }
.spk-places li { scroll-margin-top: 90px; }
.spk-places li:target { color: #fff; }
.spk-places a { color: inherit; }
.spk-note { margin-top: 30px; font-family: var(--font-serif); font-size: 17px; color: var(--muted); }

@media (max-width: 640px) {
  .spk-ev { grid-template-columns: 1fr; }
  .spk-panel { top: auto; bottom: 8px; left: 8px; width: calc(100% - 16px); max-height: 70%; }
  .spk-zoom { right: 8px; bottom: 8px; }
  .spk-zoom button { min-width: 40px; min-height: 40px; }
  .spk-svg { aspect-ratio: 4 / 3; }
  .spk-years { flex-wrap: wrap; }
  .spk-years ol { flex-basis: 100%; }
  .spk-years li { flex: 1 1 0; min-width: 0; }
}
.spk-controls[hidden] { display: none; }

/* A keynote given every year: its years, just under the film. */
.series-years {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 18px var(--pad) 0;
  max-width: 1300px;
}
