/* Compact official-weather box for the homepage hero.
   Desktop: top-right of the hero, below the sticky header.
   Narrow screens (800px nav breakpoint): in-flow full-width strip at the
   top of the hero so it cannot cover or crowd the navigation.

   Selectors stay more specific than `.hero p` in the shared layout stylesheet. */

.concho-weather {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  width: min(18.25rem, calc(100% - 2rem));
  padding: 0.75rem 0.9rem 0.8rem;
  color: var(--warm);
  background: #1a3830f0;
  backdrop-filter: blur(10px);
  border: 1px solid #e9dcc438;
  border-radius: 0.85rem;
  box-shadow: 0 10px 28px #12201c47;
}

.concho-weather p {
  max-width: none;
}

.concho-weather .concho-weather-kicker {
  margin: 0;
  color: var(--sand);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.concho-weather .concho-weather-place {
  margin: 0.12rem 0 0;
  color: var(--sand-deep);
  font-size: 0.86rem;
}

.concho-weather .concho-weather-temp {
  margin: 0.4rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 2.05rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.concho-weather .concho-weather-unit {
  margin-left: 0.12em;
  font-size: 0.48em;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--sand);
}

.concho-weather .concho-weather-conditions,
.concho-weather .concho-weather-wind,
.concho-weather .concho-weather-gust,
.concho-weather .concho-weather-pressure,
.concho-weather .concho-weather-hilo,
.concho-weather .concho-weather-upcoming,
.concho-weather .concho-weather-observed,
.concho-weather .concho-weather-updated {
  margin: 0.12rem 0 0;
  font-size: 0.9rem;
  line-height: 1.35;
}

.concho-weather .concho-weather-hilo {
  margin-top: 0.4rem;
  font-weight: 700;
}

.concho-weather .concho-weather-upcoming,
.concho-weather .concho-weather-observed,
.concho-weather .concho-weather-updated {
  color: var(--sand-deep);
  font-size: 0.78rem;
}

.concho-weather .concho-weather-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin: 0.5rem 0 0;
  font-size: 0.84rem;
}

.concho-weather a {
  color: var(--sand);
}

.concho-weather a:hover,
.concho-weather a:focus-visible {
  color: var(--paper);
}

.concho-weather .concho-weather-gust:empty,
.concho-weather .concho-weather-wind:empty,
.concho-weather .concho-weather-pressure:empty,
.concho-weather .concho-weather-upcoming:empty,
.concho-weather .concho-weather-observed:empty,
.concho-weather .concho-weather-updated:empty {
  display: none;
}

.concho-weather[data-state="loading"] .concho-weather-temp,
.concho-weather[data-state="error"] .concho-weather-temp {
  opacity: 0.55;
}

@media (width <= 800px) {
  .hero {
    align-items: stretch;
    grid-template-rows: auto 1fr;
  }

  .hero > .hero-copy {
    grid-row: 2;
    align-self: end;
  }

  .concho-weather {
    position: static;
    top: auto;
    right: auto;
    grid-row: 1;
    width: auto;
    max-width: none;
    margin: 0.65rem 0.75rem 0;
    padding: 0.55rem 0.8rem;
    border-radius: 0.75rem;
  }

  .concho-weather-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 0.75rem;
    align-items: center;
  }

  .concho-weather .concho-weather-temp {
    margin: 0;
    font-size: 1.7rem;
  }

  .concho-weather .concho-weather-hilo {
    margin-top: 0.2rem;
  }

  .concho-weather .concho-weather-links {
    margin: 0;
    align-items: flex-end;
    text-align: right;
  }
}

@media (width <= 520px) {
  .concho-weather {
    margin: 0.55rem 0.65rem 0;
  }

  .concho-weather-inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .concho-weather .concho-weather-links {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.35rem 0.9rem;
    text-align: left;
    margin-top: 0.25rem;
  }
}
