/* Gateview console on /gateview/. Loaded before site.css and written with the site's tokens (--bg, --fg,
   --accent, --shadow-1, --radius, --mono and the rest), so the console reads as one of the site's cards.
   Every class starts with "gv" so nothing here can change another page. Two colours: onyx draws the
   map and its marks on off-white; marigold fills what to notice (orange and red alerts, earthquakes of
   M6 and up, emergency squawks, the selected item). Overlays are placed through custom properties set
   from gateview.js, never inline styles. */

.gv-section {
  padding-top: clamp(24px, 4vw, 48px);
}

.gv {
  position: relative;
  padding: clamp(12px, 1.8vw, 20px);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-2);
  color: var(--fg);
}

.gv-noscript {
  margin: 0 0 12px;
}

/* ---------- Toolbar ---------- */

.gv__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.gv-seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--fg);
  border-radius: 999px;
}

.gv-seg button,
.gv-btn,
.gv-tabs button,
.gv-layer,
.gv-zoombar button,
.gv-close,
.gv-menu__list button,
.gv-inline {
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 120ms var(--ease-out);
}

.gv-seg button {
  min-height: 30px;
}

.gv-seg button[aria-pressed="true"],
.gv-tabs button[aria-selected="true"],
.gv-layer[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
}

.gv-btn {
  border-color: var(--fg);
  list-style: none;
}

.gv-btn::-webkit-details-marker {
  display: none;
}

.gv-seg button:active,
.gv-btn:active,
.gv-tabs button:active,
.gv-layer:active,
.gv-zoombar button:active,
.gv-close:active {
  transform: scale(0.97);
}

.gv-search {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 38px;
  padding: 7px 16px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
}

.gv-search::placeholder {
  color: var(--fg);
  font-family: var(--mono);
  font-size: 12.5px;
  opacity: 1;
}

.gv-search:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--fg);
}

/* Download menu */
.gv-menu {
  position: relative;
}

.gv-menu > summary {
  display: inline-flex;
  align-items: center;
}

.gv-menu__list {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 2px;
  width: max-content;
  max-width: min(320px, 80vw);
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow: var(--shadow-2);
}

.gv-menu__note {
  margin: 0 6px 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gv-menu__list button {
  border-radius: 10px;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

/* ---------- Settings ---------- */

.gv-settings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px 18px;
  margin: 0 0 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: var(--shadow-1);
}

.gv-settings[hidden] {
  display: none;
}

.gv-field {
  margin-bottom: 10px;
}

.gv-field label {
  font-size: 11px;
}

.field.gv-field select {
  min-height: 40px;
  padding: 8px 38px 8px 12px;
  border-radius: 12px;
  font-size: 15.5px;
  background-position: calc(100% - 20px) 17px, calc(100% - 15px) 17px;
}

.gv-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.gv-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--fg);
}

.gv-keys {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}

/* ---------- Map and side panel ---------- */

.gv__main {
  --gv-h: clamp(380px, 64vh, 660px);
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr);
  grid-template-areas: "map side" "layers layers";
  gap: 16px;
  align-items: start;
}

.gv-map {
  grid-area: map;
  position: relative;
  height: var(--gv-h);
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: var(--shadow-1);
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.gv.is-dragging .gv-map {
  cursor: grabbing;
}

.gv-map::after {
  content: "Loading the map";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out);
}

.gv.is-mapped .gv-map::after {
  opacity: 0;
}

.gv-map__svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

.gv-map__svg:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: -4px;
  border-radius: var(--radius-md);
}

.gv-coast {
  fill: none;
  stroke: var(--fg);
  stroke-width: 0.9;
  stroke-linejoin: round;
}

.gv-border {
  fill: none;
  stroke: var(--fg);
  stroke-width: 0.6;
  stroke-dasharray: 3 3;
}

.gv-state {
  fill: none;
  stroke: var(--fg);
  stroke-width: 0.7;
  stroke-dasharray: 1 3;
  stroke-linecap: round;
}

.gv-night {
  fill: none;
  stroke: var(--fg);
  stroke-width: 1;
  stroke-dasharray: 8 5;
}

.gv-sun {
  fill: var(--bg);
  stroke: var(--fg);
  stroke-width: 1.2;
}

.gv-zone {
  fill: none;
  stroke: var(--fg);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  stroke-linecap: round;
}

.gv-ref {
  stroke: var(--fg);
  stroke-width: 1.6;
}

.gv-track {
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.2;
  stroke-dasharray: 1 3;
  stroke-linecap: round;
}

/* Marks */
.gv-m {
  fill: var(--bg);
  stroke: var(--fg);
  stroke-width: 1.2;
}

.gv-m--fires {
  fill: var(--fg);
  stroke: none;
}

.gv-m--air {
  fill: var(--fg);
  stroke: var(--bg);
  stroke-width: 0.8;
}

.gv-m--air.is-military {
  fill: var(--bg);
  stroke: var(--fg);
  stroke-width: 1.2;
}

.gv-m--satcore {
  fill: var(--fg);
  stroke: none;
}

.gv-m.is-notice {
  fill: var(--accent);
  stroke: var(--fg);
}

.gv-m.is-selected {
  fill: var(--accent);
  stroke: var(--fg);
  stroke-width: 2.4;
}

.gv-city {
  fill: var(--fg);
}

.gv-label {
  fill: var(--fg);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  paint-order: stroke;
  stroke: var(--bg);
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
}

.gv-label--sat {
  font-size: 10px;
}

/* Overlays on the map */
.gv-zoombar {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  gap: 6px;
}

.gv-zoombar button {
  min-width: 38px;
  min-height: 34px;
  padding: 4px 8px;
  border-color: var(--fg);
  background: var(--bg);
  font-size: 13px;
}

.gv-tip {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  max-width: 260px;
  margin: 0;
  padding: 4px 10px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  transform: translate(calc(var(--x, 0px) + 12px), calc(var(--y, 0px) - 34px));
}

.gv-readout {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: var(--shadow-1);
  font-family: var(--mono);
  font-size: 11px;
  white-space: pre;
  pointer-events: none;
}

.gv-readout:empty {
  display: none;
}

/* Layers: toggles, counts and the legend in one row */
.gv-layers {
  grid-area: layers;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -4px;
}

.gv-layer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-color: var(--fg);
  text-transform: none;
  letter-spacing: 0;
  font-size: 12.5px;
}

.gv-layer[aria-pressed="false"] {
  border-style: dashed;
}

.gv-layer__n {
  font-weight: 400;
}

.gv-swatch {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.gv-swatch--dot circle,
.gv-swatch--plane path,
.gv-swatch .core {
  fill: currentColor;
  stroke: none;
}

.gv-swatch--line path {
  stroke-width: 1.6;
}

/* Side panel */
.gv__side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: var(--gv-h);
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: var(--shadow-1);
}

.gv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 10px 10px 6px;
}

.gv-tabs button {
  padding: 6px 10px;
  font-size: 11.5px;
}

.gv-panel {
  flex: 1;
  min-height: 0;
  padding: 4px 18px 18px;
  overflow: auto;
  overscroll-behavior: contain;
}

.gv-panel:focus-visible {
  outline-offset: -3px;
}

.gv-panel__lead {
  margin: 8px 0 12px;
  font-size: 15.5px;
  line-height: 1.45;
}

.gv-h {
  margin: 18px 0 4px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.gv-src,
.gv-kicker,
.gv-row__meta {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.gv-panel__lead .gv-src {
  display: inline;
}

/* Brief */
.gv-brief {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gv-brief__btn,
.gv-row {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 200ms var(--ease-out), transform 120ms var(--ease-out);
}

.gv-brief__btn:active,
.gv-row:active {
  transform: scale(0.985);
}

.gv-brief__head {
  display: block;
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gv-brief__body {
  display: block;
  font-size: 16px;
  line-height: 1.45;
}

.gv-brief .gv-src {
  margin-top: 4px;
}

/* Lists of events, vulnerabilities, advisories and articles */
.gv-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gv-row__title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.gv-row__detail {
  display: block;
  font-size: 14.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.gv-row.is-notice .gv-row__meta::before,
.gv-row.is-selected .gv-row__meta::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 3px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--accent);
  vertical-align: middle;
}

.gv-row.is-selected {
  box-shadow: var(--shadow-1);
}

.gv-empty {
  margin: 14px 0;
  font-size: 15.5px;
}

.gv-inline {
  min-height: 0;
  padding: 2px 8px;
  border-color: var(--fg);
}

.gv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}

.gv-fine {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.45;
}

/* Detail card for the selected item */
.gv-detail {
  margin: 10px 10px 4px;
  padding: 12px 14px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow: var(--shadow-2);
  max-height: 46%;
  overflow: auto;
  flex: none;
}

.gv-detail[hidden] {
  display: none;
}

.gv-detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.gv-kicker {
  margin: 4px 0 0;
  text-transform: uppercase;
}

.gv-close {
  min-height: 28px;
  padding: 3px 10px;
  border-color: var(--fg);
  font-size: 11px;
}

.gv-detail__title {
  margin: 6px 0 8px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.gv-dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 12px;
  margin: 0 0 10px;
}

.gv-dl dt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.7;
  text-transform: uppercase;
}

.gv-dl dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* Sources table */
.gv-table-wrap {
  overflow-x: auto;
}

.gv-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.45;
}

.gv-table th,
.gv-table td {
  padding: 2px 8px 2px 0;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.gv-table thead th {
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gv-table tbody th {
  font-weight: 500;
}

.gv-table a {
  color: var(--fg);
}

/* Status and attribution under the console */
.gv-status,
.gv-attrib {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.55;
}

.gv-attrib {
  margin-top: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .gv-seg button:hover:not([aria-pressed="true"]),
  .gv-btn:hover,
  .gv-tabs button:hover:not([aria-selected="true"]),
  .gv-layer:hover:not([aria-pressed="true"]),
  .gv-zoombar button:hover,
  .gv-close:hover,
  .gv-menu__list button:hover,
  .gv-inline:hover {
    background: var(--fg);
    color: var(--bg);
  }

  .gv-brief__btn:hover,
  .gv-row:hover {
    box-shadow: var(--shadow-1);
  }
}

@media (max-width: 960px) {
  .gv__main {
    --gv-h: clamp(320px, 88vw, 540px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "map" "layers" "side";
  }

  .gv__side {
    height: auto;
    max-height: 78vh;
  }

  .gv-detail {
    max-height: none;
  }
}

@media (max-width: 560px) {
  .gv__main {
    --gv-h: clamp(340px, 108vw, 520px);
  }

  .gv {
    padding: 10px;
    border-radius: var(--radius-md);
  }

  .gv-seg {
    flex: 1 1 100%;
  }

  .gv-seg button {
    flex: 1;
    padding: 6px 6px;
    font-size: 11px;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .gv-btn {
    flex: 1 1 auto;
  }

  .gv-menu {
    flex: 1 1 auto;
  }

  .gv-menu > summary {
    justify-content: center;
    width: 100%;
  }

  .gv-panel {
    padding: 4px 12px 14px;
  }

  .gv-tabs {
    flex-wrap: nowrap;
    gap: 0;
    padding: 8px 6px 4px;
  }

  .gv-tabs button {
    flex: 1 1 auto;
    padding: 6px 5px;
    font-size: 10.5px;
    letter-spacing: 0.03em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gv-seg button:active,
  .gv-btn:active,
  .gv-tabs button:active,
  .gv-layer:active,
  .gv-zoombar button:active,
  .gv-close:active,
  .gv-brief__btn:active,
  .gv-row:active {
    transform: none;
  }
}

.gv-label--left {
  text-anchor: end;
}

/* ---------- Playback, measuring, alerts and the newer marks ---------- */

/* The time bar sits on the map's lower edge, like a player's controls. */
.gv-timebar {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow: var(--shadow-1);
}

.gv-timebar .gv-btn {
  min-height: 30px;
  padding: 4px 11px;
  font-size: 11.5px;
}

.gv-timebar .gv-btn[disabled] {
  border-style: dashed;
  cursor: default;
}

.gv-clock {
  min-width: 7.5em;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

/* The scrubber: an onyx track and a marigold playhead (the design system's playhead fill). */
.gv-scrub {
  flex: 1 1 160px;
  min-width: 120px;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.gv-scrub:focus {
  outline: none;
}

.gv-scrub::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: var(--fg);
}

.gv-scrub::-moz-range-track {
  height: 2px;
  border-radius: 2px;
  background: var(--fg);
}

.gv-scrub::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -7px;
  border: 1.5px solid var(--fg);
  border-radius: 50%;
  background: var(--accent);
  appearance: none;
  -webkit-appearance: none;
}

.gv-scrub::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--fg);
  border-radius: 50%;
  background: var(--accent);
}

.gv-scrub:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--fg);
}

.gv-scrub:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--fg);
}

.gv-measure-out {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 50%;
  max-width: calc(100% - 140px);
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.4;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.gv-measure-out[hidden],
.gv-toast[hidden] {
  display: none;
}

.gv.is-measuring .gv-map {
  cursor: crosshair;
}

.gv.is-measuring .gv-readout {
  display: none;
}

.gv-toast {
  position: absolute;
  z-index: 4;
  right: 10px;
  bottom: 64px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 auto;
  max-width: 560px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow: var(--shadow-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  animation: gv-rise 360ms var(--ease-out) both;
}

.gv-toast::before {
  content: "";
  flex: none;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.gv-toast__text {
  flex: 1 1 200px;
}

@keyframes gv-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.gv-measure-line {
  fill: none;
  stroke: var(--fg);
  stroke-width: 2;
  stroke-linecap: round;
}

.gv-measure-end {
  fill: var(--accent);
  stroke: var(--fg);
  stroke-width: 1.5;
}

.gv-measure-label {
  font-size: 11.5px;
}

.gv-footprint {
  fill: none;
  stroke: var(--fg);
  stroke-width: 1;
  stroke-dasharray: 5 4;
}

.gv-pin {
  fill: none;
  stroke: var(--fg);
  stroke-width: 2;
}

/* New since the previous update: a dashed ring that settles in once. */
.gv-fresh {
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.2;
  stroke-dasharray: 3 3;
  transform-box: fill-box;
  transform-origin: center;
  animation: gv-settle 700ms var(--ease-out) both;
}

@keyframes gv-settle {
  from {
    opacity: 0;
    transform: scale(1.6);
  }
}

/* While replaying, the map is the past: the aircraft layer waits for the live view. */
.gv.is-replay .gv-clock {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.gv-row.is-fresh .gv-row__meta {
  font-weight: 500;
}

/* Planetary K-index, three days in three-hour bars. */
.gv-kpchart {
  display: block;
  width: 100%;
  max-width: 220px;
  height: 30px;
  margin-top: 8px;
}

.gv-kp {
  fill: var(--fg);
}

.gv-kp--storm {
  fill: var(--fg);
  stroke: var(--fg);
}

.gv-kp--now {
  fill: var(--accent);
  stroke: var(--fg);
  stroke-width: 0.8;
}

/* Nearest items to a searched position */
.gv-near {
  display: grid;
  gap: 2px;
  margin: 4px 0 10px;
  padding: 0;
  list-style: none;
}

.gv-near__btn {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 5px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.gv-near__btn span {
  flex: none;
  font-family: var(--mono);
  font-size: 11.5px;
}

@media (hover: hover) and (pointer: fine) {
  .gv-near__btn:hover {
    box-shadow: var(--shadow-1);
  }
}

@media (max-width: 560px) {
  .gv-timebar {
    right: 6px;
    bottom: 6px;
    left: 6px;
    gap: 6px;
    padding: 5px 6px;
  }

  .gv-scrub {
    order: 5;
    flex-basis: 100%;
  }

  .gv-toast {
    bottom: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gv-toast {
    animation: gv-fade 200ms linear both;
  }

  .gv-fresh {
    animation: gv-fade 200ms linear both;
  }

  @keyframes gv-fade {
    from {
      opacity: 0;
    }
  }
}

/* ---------- Sea lanes, areas, answers and commands ---------- */

/* Chokepoints are hollow hourglasses and ports small crosses: reference marks, drawn under the live data. */
.gv-m--lanes {
  fill: var(--bg);
  stroke: var(--fg);
  stroke-width: 1.2;
}

.gv-m--port {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.gv-swatch--hourglass path {
  stroke-linejoin: round;
}

.gv-area {
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.6;
  stroke-dasharray: 6 4;
  stroke-linejoin: round;
}

.gv-area--drawing {
  stroke-dasharray: 2 4;
  stroke-linecap: round;
}

.gv-area-first {
  stroke-width: 2;
}

.gv.is-drawing .gv-map {
  cursor: crosshair;
}

.gv.is-drawing .gv-readout {
  display: none;
}

/* The answer to a command or a drawn area sits above the selection, in the same card. */
.gv-answer {
  margin-bottom: 8px;
}

.gv-answer + .gv-detail:not([hidden]) {
  margin-top: 0;
}

.gv-help {
  display: grid;
  gap: 8px;
  margin: 6px 0 4px;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  line-height: 1.4;
}

.gv-help code {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.gv-near__btn[href] {
  text-decoration: none;
}
