.fwr-weather {
  --fwr-weather-ink: #17353c;
  --fwr-weather-muted: #55676b;
  --fwr-weather-accent: #176f78;
  --fwr-weather-line: #c9dcdd;
  --fwr-weather-surface: #f2f8f7;
  box-sizing: border-box;
  width: 100%;
  max-width: 40rem;
  padding: 1rem;
  color: var(--fwr-weather-ink);
  background: var(--fwr-weather-surface);
  border: 1px solid var(--fwr-weather-line);
  border-radius: 0.5rem;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.35;
}

/* Pull the weather panel into the hero's existing top padding. */
#fishwithripp-weather {
  margin-top: -4.25rem;
}

.fwr-weather *,
.fwr-weather *::before,
.fwr-weather *::after {
  box-sizing: border-box;
}

.fwr-weather p,
.fwr-weather dl,
.fwr-weather dt,
.fwr-weather dd {
  margin: 0;
}

.fwr-weather__heading {
  margin: 0 0 0.6rem;
  color: var(--fwr-weather-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.fwr-weather__current {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.fwr-weather__temperature {
  flex: 0 0 auto;
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 700;
  line-height: 1;
}

.fwr-weather__unit {
  font-size: 0.38em;
  font-weight: 600;
}

.fwr-weather__conditions {
  font-size: 1rem;
  font-weight: 700;
}

.fwr-weather__details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.7rem;
  font-size: 0.83rem;
}

.fwr-weather__detail {
  display: flex;
  gap: 0.3rem;
}

.fwr-weather__detail dt {
  color: var(--fwr-weather-muted);
  font-weight: 700;
}

.fwr-weather__detail dd {
  font-weight: 600;
}

.fwr-weather__forecast {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--fwr-weather-line);
}

.fwr-weather__period {
  min-width: 0;
}

.fwr-weather__period-name {
  color: var(--fwr-weather-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fwr-weather__period-temp {
  margin-top: 0.12rem !important;
  font-size: 1.2rem;
  font-weight: 700;
}

.fwr-weather__period-conditions {
  margin-top: 0.12rem !important;
  font-size: 0.76rem;
  line-height: 1.25;
}

.fwr-weather__alerts {
  margin-top: 0.8rem;
  padding: 0.65rem 0.75rem;
  color: #5c2e00;
  background: #fff3d6;
  border-left: 0.25rem solid #c46600;
  font-size: 0.8rem;
}

.fwr-weather__alerts p + p {
  margin-top: 0.45rem;
}

.fwr-weather__meta,
.fwr-weather__unavailable {
  margin-top: 0.75rem !important;
  color: var(--fwr-weather-muted);
  font-size: 0.7rem;
}

.fwr-weather__meta a {
  color: inherit;
}

@media (max-width: 28rem) {
  /* The mobile hero has less top padding, so use a smaller offset. */
  #fishwithripp-weather {
    margin-top: -2.875rem;
  }

  .fwr-weather {
    padding: 0.85rem;
  }

  .fwr-weather__forecast {
    gap: 0.35rem;
  }

  .fwr-weather__period-conditions {
    font-size: 0.7rem;
  }
}
