/* GPS Distance Calculator: the two inputs with a swap button, and the bearing compass. */

.gps { display: flex; flex-direction: column; gap: 24px; }

.gps-points {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.gps-input { font-size: 18px; }

.gps-swap { margin-top: 30px; min-height: 52px; width: 52px; padding: 0; }
.gps-swap svg { transform: rotate(90deg); }

.gps-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 20px;
  background: var(--surface-2);
  border: var(--border);
  border-radius: 14px;
}

.gps-bearing { display: flex; align-items: center; gap: 16px; flex: 1 1 280px; }

.gps-compass { width: 96px; height: 96px; flex-shrink: 0; }
.gps-compass text { font: 700 11px var(--font-mono); fill: var(--ink); }

.gps-bearing-text { display: flex; flex-direction: column; gap: 4px; }
.gps-bearing-value { font: 700 28px var(--font-mono); }
.gps-fact-label { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.gps-fact-note { font-size: 13px; color: var(--ink-3); }

.gps-facts { display: flex; flex-direction: column; gap: 10px; flex: 1 1 280px; margin: 0; }
.gps-facts div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-bottom: 8px; border-bottom: 1.5px dashed var(--line-soft); }
.gps-facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.gps-facts dt { font-size: 14px; color: var(--ink-2); }
.gps-facts dd { margin: 0; font: 700 15px var(--font-mono); }

.gps-links { margin: 0; font-size: 14px; color: var(--ink-3); }

@media (max-width: 640px) {
  .gps-points { grid-template-columns: 1fr; }
  .gps-swap { margin-top: 0; justify-self: center; }
  .gps-swap svg { transform: none; }
}
