/* Harbor Now page graphics (weather, range meter, week strip).
   Loaded only on Harbor pages from /harbor-now/harbor-graphics.css so a
   harbor-now/ FTPS upload can take them live without a full site package. */

.hn-figure {
  margin: var(--space-5) 0 var(--space-2);
  padding: 0;
  border: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hn-figure picture,
.hn-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  background-color: #0a131c;
}

.hn-figure figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--color-text-muted);
  max-width: 48rem;
}

/* Keep a grid or flex parent from stretching the page to the image's intrinsic width. */
.hn-guide__list > li,
.hn-key__list > div {
  min-width: 0;
  max-width: 100%;
}

/* On a narrow phone the range meter and week strip stay readable
   by scrolling sideways inside the figure, not the page. */
@media (max-width: 40rem) {
  .hn-figure {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hn-figure img {
    width: 32rem;
    max-width: none;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hn-figure {
    scroll-behavior: auto;
  }
}

/* Today in the harbor — overnight, midday and 4:30 editions.
   Lives in this file so a harbor-now/ FTPS upload can take the panel live. */

.hn-in-harbor {
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
  max-width: 52rem;
}

.hn-in-harbor__slot + .hn-in-harbor__slot {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
}

.hn-in-harbor__slot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem var(--space-4);
  margin-bottom: var(--space-3);
}

.hn-in-harbor__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.hn-in-harbor__time {
  margin: 0;
}

.hn-in-harbor__body p,
.hn-in-harbor__heading {
  margin: var(--space-2) 0;
}

.hn-in-harbor__heading {
  font-size: var(--text-sm);
  font-weight: 600;
}

.hn-arch__slots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: 0 0 var(--space-3);
  padding-left: calc(7.5rem + var(--space-4));
  font-size: var(--text-sm);
}

.hn-arch__slot {
  color: var(--color-text-muted);
  text-decoration: none;
}

.hn-arch__slot:hover,
.hn-arch__slot:focus-visible {
  color: var(--color-text);
  text-decoration: underline;
}

@media (max-width: 30rem) {
  .hn-arch__slots {
    padding-left: 0;
  }
}

.hn-motto {
  margin-top: var(--space-2);
  margin-bottom: 0;
}

.hn-feature {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.hn-feature .hn-title {
  margin-bottom: var(--space-4);
}

.hn-feature__h {
  margin-top: var(--space-6);
}

.hn-feature .hn-figure {
  margin-top: var(--space-5);
  margin-bottom: var(--space-5);
}
