/*
 * My location: the coordinates up top, then every format with a copy button,
 * map links and the converter. Shared controls are in /css/tool-ui.css.
 */

.mylocation-hero {
  text-align: center;
}

.mylocation-hero[hidden],
.mylocation-maps[hidden] {
  display: none;
}

.mylocation-coords {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 6vw, 28px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.mylocation-hero .tool-actions {
  margin-top: 8px;
}

/* Long values (DMS, MGRS) get their own line under the label. */
.mylocation-formats .tool-fact {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.mylocation-formats dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: start;
}

.mylocation-formats bdi {
  font-size: 15px;
}

.mylocation-maps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 14px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.mylocation-maps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #2b6cb0;
}

.mylocation-maps a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
