/**
 * TEN live coordinates — homepage overlay + shared accuracy colors.
 * Loaded last on UID 1 (after hero-mobile.css). Do not copy this into main.css.
 *
 * Homepage: quiet WGS84 line on the white strip under the hero photo,
 * above the reference logos, right edge flush with the MOVAID mark
 * (same `right: 4%` as `.bannerslider__logos`). Not a HUD, not a bar.
 */
.ten-livegeo,
.ten-locmap {
  --ten-geo-precise: #2f9e5d;
  --ten-geo-good: #d4a017;
  --ten-geo-limited: #c45a12;
  --ten-geo-poor: #cc0607;
  --ten-geo-ease: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ten-livegeo {
  --ten-geo-ink: #404040;
  --ten-geo-muted: rgba(64, 64, 64, 0.7);
  position: absolute;
  z-index: 20;
  left: auto;
  right: 4%;
  top: 100%;
  bottom: auto;
  width: max-content;
  max-width: min(42vw, 28rem);
  margin: 10px 0 0;
  padding: 0;
  color: var(--ten-geo-ink);
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: right;
  text-shadow: none;
  overflow: visible;
  pointer-events: auto;
  -webkit-user-select: none;
  user-select: none;
}
.ten-livegeo:focus {
  outline: none;
}
.ten-livegeo:focus-visible {
  outline: 1px solid rgba(64, 64, 64, 0.35);
  outline-offset: 5px;
}

.ten-livegeo__coords {
  position: relative;
  z-index: 1;
  margin: 0;
  white-space: nowrap;
  cursor: default;
  font-weight: 400;
}

.ten-livegeo__lat,
.ten-livegeo__sep,
.ten-livegeo__lon {
  display: inline;
}

.ten-livegeo:hover::after,
.ten-livegeo.is-open::after,
.ten-livegeo:focus-within::after {
  content: "";
  position: absolute;
  left: auto;
  right: 0;
  top: 100%;
  width: 22rem;
  max-width: 90vw;
  height: 2.8em;
  z-index: 0;
}

.ten-livegeo__extras {
  position: absolute;
  z-index: 1;
  top: 100%;
  left: auto;
  right: 0;
  margin: 0;
  padding: 8px 0 4px;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 16px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateX(8px);
  transform: translateX(8px);
  pointer-events: none;
  -webkit-transition: opacity var(--ten-geo-ease), visibility 0s linear var(--ten-geo-ease), -webkit-transform var(--ten-geo-ease);
  transition: opacity var(--ten-geo-ease), visibility 0s linear var(--ten-geo-ease), transform var(--ten-geo-ease);
}

.ten-livegeo.is-open .ten-livegeo__extras,
.ten-livegeo:focus-within .ten-livegeo__extras,
.ten-livegeo__extras:hover {
  opacity: 1;
  visibility: visible;
  -webkit-transform: none;
  transform: none;
  pointer-events: auto;
  -webkit-transition: opacity var(--ten-geo-ease), visibility 0s linear 0s, -webkit-transform var(--ten-geo-ease);
  transition: opacity var(--ten-geo-ease), visibility 0s linear 0s, transform var(--ten-geo-ease);
}

@media (hover: hover) and (pointer: fine) {
  .ten-livegeo:hover .ten-livegeo__extras {
    opacity: 1;
    visibility: visible;
    -webkit-transform: none;
    transform: none;
    pointer-events: auto;
    -webkit-transition: opacity var(--ten-geo-ease), visibility 0s linear 0s, -webkit-transform var(--ten-geo-ease);
    transition: opacity var(--ten-geo-ease), visibility 0s linear 0s, transform var(--ten-geo-ease);
  }
}

.ten-livegeo__orient,
.ten-livegeo__locate {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #cc0607;
  font: inherit;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  opacity: 0.92;
  text-shadow: none;
}

.ten-locmap__btn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  opacity: 0.82;
  text-shadow: inherit;
}

.ten-livegeo__orient:hover,
.ten-livegeo__orient:focus,
.ten-livegeo__locate:hover,
.ten-livegeo__locate:focus {
  color: #cc0607;
  opacity: 1;
  outline: none;
}

.ten-locmap__btn:hover,
.ten-locmap__btn:focus {
  opacity: 1;
  outline: none;
}

.ten-livegeo__orient:focus-visible,
.ten-livegeo__locate:focus-visible,
.ten-locmap__btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.ten-livegeo__orient-ico {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  vertical-align: -2px;
  line-height: 0;
  color: #cc0607;
}

.ten-livegeo__orient-ico svg {
  display: block;
}

.ten-livegeo__locate {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ten-livegeo__locate-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cc0607;
  -webkit-box-shadow: none;
  box-shadow: none;
  flex-shrink: 0;
}

.ten-livegeo__locate[aria-pressed="true"],
.ten-livegeo.is-live .ten-livegeo__locate {
  color: #cc0607;
  opacity: 1;
}

.ten-livegeo__locate[aria-pressed="true"] .ten-livegeo__locate-dot,
.ten-livegeo.is-live .ten-livegeo__locate-dot {
  background: #2f9e5d;
  -webkit-box-shadow: 0 0 0 3px rgba(47, 158, 93, 0.22), 0 0 10px rgba(47, 158, 93, 0.75);
  box-shadow: 0 0 0 3px rgba(47, 158, 93, 0.22), 0 0 10px rgba(47, 158, 93, 0.75);
}

.ten-livegeo__status {
  justify-content: flex-end;
}

.ten-livegeo__status,
.ten-locmap__status {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 8px;
  margin: 4px 0 0;
  vertical-align: baseline;
  color: var(--ten-geo-muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ten-livegeo__status[hidden],
.ten-livegeo__error[hidden],
.ten-locmap__status[hidden],
.ten-locmap__error[hidden],
.ten-locmap__copied[hidden] {
  display: none !important;
}

.ten-livegeo__dot,
.ten-locmap__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.ten-livegeo[data-band="precise"] .ten-livegeo__status,
.ten-livegeo[data-band="precise"] .ten-livegeo__dot,
.ten-locmap[data-band="precise"] .ten-locmap__status,
.ten-locmap[data-band="precise"] .ten-locmap__dot {
  color: var(--ten-geo-precise);
}

.ten-livegeo[data-band="good"] .ten-livegeo__status,
.ten-livegeo[data-band="good"] .ten-livegeo__dot,
.ten-locmap[data-band="good"] .ten-locmap__status,
.ten-locmap[data-band="good"] .ten-locmap__dot {
  color: var(--ten-geo-good);
}

.ten-livegeo[data-band="limited"] .ten-livegeo__status,
.ten-livegeo[data-band="limited"] .ten-livegeo__dot,
.ten-locmap[data-band="limited"] .ten-locmap__status,
.ten-locmap[data-band="limited"] .ten-locmap__dot {
  color: var(--ten-geo-limited);
}

.ten-livegeo[data-band="poor"] .ten-livegeo__status,
.ten-livegeo[data-band="poor"] .ten-livegeo__dot,
.ten-locmap[data-band="poor"] .ten-locmap__status,
.ten-locmap[data-band="poor"] .ten-locmap__dot {
  color: var(--ten-geo-poor);
}

.ten-livegeo__error,
.ten-locmap__error {
  display: block;
  margin: 4px 0 0;
  max-width: 28rem;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.ten-livegeo__error {
  color: #8a2a2a;
}

.ten-locmap__error {
  color: #cc0607;
}

.ten-livegeo__coords,
.ten-locmap__coords {
  color: var(--ten-geo-ink);
}

@media (prefers-reduced-motion: reduce) {
  .ten-livegeo__extras {
    -webkit-transition: opacity 160ms linear;
    transition: opacity 160ms linear;
    -webkit-transform: none;
    transform: none;
  }
}

@media screen and (max-width: 1400px) and (min-width: 1161px) {
  .ten-livegeo {
    font-size: 11px;
    max-width: min(38vw, 24rem);
  }
}

@media screen and (max-width: 1160px) {
  /* Leave room on the right of Next Up for the two-line coord block. */
  #uid1 .bannerslider__container .bannerslides .text .next_appointments,
  #uid1 .tx-courses .next_appointments {
    padding-right: min(48%, 11.5rem) !important;
    box-sizing: border-box;
  }

  .ten-livegeo {
    left: auto;
    right: 3%;
    /* Same band as Next Up (under the photo), right side. */
    top: var(--hero-photo-h);
    bottom: auto;
    z-index: 46;
    max-width: min(46vw, 11rem);
    margin-top: 14px;
    font-size: 11px;
    text-align: right;
  }

  .ten-livegeo__coords {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    white-space: normal;
    line-height: 1.25;
  }

  .ten-livegeo__sep {
    display: none;
  }

  .ten-livegeo__lat,
  .ten-livegeo__lon {
    display: block;
  }

  .ten-livegeo:hover::after,
  .ten-livegeo.is-open::after,
  .ten-livegeo:focus-within::after {
    display: none;
  }

  .ten-livegeo__extras {
    position: static;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 10px 0 4px;
    white-space: normal;
    -webkit-transform: none;
    transform: none;
  }

  .ten-livegeo.is-open .ten-livegeo__extras,
  .ten-livegeo:focus-within .ten-livegeo__extras {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .ten-livegeo__orient,
  .ten-livegeo__locate {
    min-height: 40px;
    padding: 8px 2px;
    font-size: 11px;
    letter-spacing: 0.06em;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

  .ten-livegeo__orient-ico {
    color: #cc0607;
  }

  .ten-livegeo__status {
    display: flex;
    justify-content: flex-end;
    margin: 8px 0 0;
  }
}

@media (hover: hover) and (pointer: fine) and (max-width: 1160px) {
  .ten-livegeo:hover .ten-livegeo__extras {
    display: flex;
  }
}

@media screen and (max-width: 480px) {
  #uid1 .bannerslider__container .bannerslides .text .next_appointments,
  #uid1 .tx-courses .next_appointments {
    padding-right: min(52%, 10.5rem) !important;
  }

  .ten-livegeo {
    right: 2.5%;
    max-width: min(50vw, 10.5rem);
    margin-top: 12px;
    font-size: 10px;
  }

  .ten-livegeo__extras {
    gap: 8px;
    padding-top: 8px;
  }

  .ten-livegeo__orient,
  .ten-livegeo__locate {
    min-height: 38px;
    font-size: 10px;
  }
}
