.weather-entry {
  display: block;
  height: 0;
  scroll-margin-top: 0;
}
.village-weather {
  --shore-gutter: clamp(24px, 6.8vw, 124px);
  --deep: #182f37;
  background: var(--paper, #f6f3e9);
  color: #223f3c;
  font-family: var(--micro);
}
.sierra-index:has(.sierra-stops) {
  padding-bottom: 8px;
}
.waterline-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--paper, #f6f3e9);
}
.waterline-plate,
.waterline-light,
.waterline-atmosphere {
  width: 100%;
  height: 100%;
  inset: 0;
  position: absolute;
  pointer-events: none;
}
.waterline-plate,
.waterline-light {
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #0004 12%,
    #000b 28%,
    black 46%
  );
}
.waterline-plate {
  background: url(../assets/incline-sunset-dock.webp) center 51% / cover
    no-repeat;
  filter: saturate(0.5);
}
.waterline-light {
  opacity: 0;
  transition: opacity 0.45s;
}
.waterline-frame.ready .waterline-light {
  opacity: 1;
}
.waterline-frame.ready .waterline-plate {
  opacity: 0;
}
.waterline-atmosphere {
  background:
    linear-gradient(
      180deg,
      transparent 36%,
      #0a1e2205 52%,
      #09242bc4 79%,
      #102a32eb 99%
    ),
    linear-gradient(90deg, #f6f3e933 0%, transparent 45%, #f6f3e91a);
}
.waterline-page {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(300px, 24vw, 415px);
  margin-inline: var(--shore-gutter);
}
.waterline-readings {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-top: clamp(8px, 1.5vw, 28px);
}
.waterline-readings h2,
.waterline-readings h3,
.waterline-legend h3 {
  margin: 0;
  font: 650 11px/1.35 var(--micro);
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: inherit;
}
.waterline-station {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 4px;
}
.waterline-degree {
  white-space: nowrap;
  font: 400 clamp(50px, 4.5vw, 74px)/0.85 var(--display);
  letter-spacing: -0.06em;
}
.waterline-degree small {
  font: 400 0.39em/1 var(--display);
  vertical-align: top;
  display: inline-block;
  margin: 3px 0 0 3px;
  letter-spacing: -0.035em;
}
.waterline-observation {
  display: grid;
  gap: 2px;
  font: 550 12px/1.3 var(--micro);
}
.waterline-observation span:empty {
  display: none;
}
#reading-credit,
.waterline-snow small {
  display: block;
  margin: 0;
  font: 500 11px/1.4 var(--micro);
  color: #324b47;
}
.waterline-snow {
  text-align: right;
  max-width: 45%;
}
.waterline-snow p {
  margin: 5px 0 2px;
  font: 400 clamp(27px, 2.6vw, 43px)/1.06 var(--display);
  letter-spacing: -0.03em;
}
.waterline-week {
  color: #fff9e8;
  padding-bottom: 16px;
}
.waterline-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #f2ecdb;
  margin-bottom: 5px;
}
.waterline-legend h3 {
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0.01em;
}
.waterline-legend span {
  font: 500 11px/1.4 var(--micro);
}
#week-landscape {
  min-height: 58px;
}
.week-days {
  display: grid;
  grid-template-columns: repeat(var(--days, 7), minmax(0, 1fr));
}
.week-days button {
  padding: 5px 0 3px;
  position: relative;
  min-height: 55px;
  min-width: 0;
  appearance: none;
  cursor: pointer;
  touch-action: pan-y pinch-zoom;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  background: none;
  color: #f5f4e9;
  border: 0;
  border-radius: 0;
  font: 500 12px/1.15 var(--micro);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.015em;
}
.week-days .weekday {
  font: 400 clamp(18px, 1.8vw, 32px)/1 var(--display);
  letter-spacing: 0;
}
.week-days .day-range {
  white-space: nowrap;
}
.week-days .day-range i {
  font-style: normal;
  color: #d2dcda;
  padding: 0 0.17em;
}
.week-days button[aria-pressed="true"] {
  color: #ffdeb1;
}
.week-days button[aria-pressed="true"] .weekday {
  text-decoration: underline;
  text-decoration-color: #fac486;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.week-days button:hover {
  color: #ffdfb6;
}
.week-days button:focus-visible {
  outline: 2px solid #ffe2ac;
  outline-offset: -2px;
}
.waterline-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  padding: 17px var(--shore-gutter) 0;
}
.day-letter {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font: 500 13px/1.5 var(--micro);
  min-height: 3.3em;
}
.day-letter strong {
  flex-shrink: 0;
  font-weight: 650;
}
.day-letter p {
  margin: 0;
  max-width: 64ch;
}
.weather-colophon {
  display: grid;
  justify-items: end;
  gap: 2px;
  font: 500 10px/1.4 var(--micro);
  color: #4d6158;
}
.weather-colophon a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.weather-colophon a:focus-visible {
  outline: 2px solid #96592d;
  outline-offset: 3px;
}
.village-weather + #dispatch {
  padding-top: clamp(40px, 5vw, 82px);
}
@media (max-width: 740px) {
  .village-weather {
    --shore-gutter: clamp(17px, 5vw, 36px);
  }
  .waterline-page {
    min-height: 315px;
  }
  .waterline-readings {
    padding-top: 14px;
    gap: 12px;
  }
  .waterline-readings h2,
  .waterline-readings h3 {
    font-size: 9px;
    letter-spacing: 0.05em;
  }
  .waterline-station {
    display: block;
    margin: 7px 0 0;
  }
  .waterline-degree {
    font-size: 54px;
  }
  .waterline-observation {
    font-size: 11px;
    margin-top: 4px;
    gap: 0;
  }
  .waterline-observation #reading-label {
    font-size: 10px;
  }
  #reading-credit {
    font-size: 10px;
    max-width: 23ch;
    margin-top: 2px;
  }
  .waterline-snow p {
    font-size: 27px;
  }
  .waterline-snow small {
    font-size: 11px;
  }
  .waterline-legend {
    margin: 0 2px 4px;
  }
  .waterline-week {
    padding-bottom: 10px;
  }
  .week-days button {
    min-height: 51px;
    font-size: 10px;
  }
  .week-days .weekday {
    font-size: 20px;
  }
  .waterline-caption {
    display: block;
    padding-top: 12px;
  }
  .day-letter {
    display: block;
    font-size: 12px;
    min-height: 4.3em;
  }
  .day-letter strong {
    font-size: 11px;
  }
  .day-letter p {
    margin-top: 2px;
  }
  .weather-colophon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    font-size: 9.5px;
  }
  .weather-colophon a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
  }
  .village-weather + #dispatch {
    padding-top: 35px;
  }
}
@media (max-width: 360px) {
  .village-weather {
    --shore-gutter: 12px;
  }
  .week-days button {
    font-size: 9.5px;
  }
  .waterline-legend span {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .waterline-light {
    transition: none;
  }
}
.waterline-page {
  min-height: clamp(320px, 25vw, 410px);
}
.waterline-week {
  padding-bottom: 30px;
}
.waterline-frame:after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 23px;
  background: var(--paper, #f6f3e9);
  mask: url(media/water-edge.png) center/100% 100%;
  pointer-events: none;
}
.waterline-plate,
.waterline-light {
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #0005 13%,
    #000e 33%,
    black 45%
  );
}
.waterline-atmosphere {
  background:
    linear-gradient(
      180deg,
      transparent 37%,
      #09232a04 58%,
      #09232aa6 80%,
      #102830e8 100%
    ),
    radial-gradient(ellipse 43% 43% at 1% 5%, #f6f3e9e6, transparent 100%),
    radial-gradient(ellipse 36% 39% at 99% 4%, #f6f3e9d9, transparent 100%);
}
.waterline-caption {
  padding-top: 7px;
}
@media (max-width: 740px) {
  .waterline-page {
    min-height: 340px;
  }
  .waterline-week {
    padding-bottom: 25px;
  }
  .waterline-frame:after {
    height: 18px;
  }
  .waterline-atmosphere {
    background: linear-gradient(
      180deg,
      #f6f3e977 0%,
      #f6f3e966 24%,
      transparent 47%,
      #132e3408 55%,
      #102a32c9 78%,
      #102a32f2 100%
    );
  }
}
@media (min-width: 821px) {
  .waterline-plate {
    background-image: url(media/shore-exposure.webp);
  }
}
@media (max-width: 740px) {
  .week-days button {
    font-size: 12px;
  }
  .week-days .day-range i {
    padding: 0 0.04em;
  }
  .day-low {
    color: #d5e5e4;
  }
  .week-days button[aria-pressed="true"] .day-low {
    color: #ffe0b9;
  }
  .day-letter {
    font-size: 14px;
    line-height: 1.48;
    min-height: 4.25em;
  }
  .day-letter strong {
    font-size: 12px;
  }
  .weather-colophon {
    font-size: 11px;
    flex-wrap: wrap;
  }
  .day-range.long-range {
    display: grid;
    gap: 2px;
  }
  .day-range.long-range i {
    display: none;
  }
}
@media (max-width: 360px) {
  .week-days .day-range {
    display: grid;
    gap: 2px;
  }
  .week-days .day-range i {
    display: none;
  }
  .week-days button {
    min-height: 63px;
    gap: 4px;
  }
  .waterline-page {
    min-height: 354px;
  }
}

/* Weather marks follow the two inks of the shore print. */
.wx-symbol {
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.wx-day {
  width: 33px;
  height: 27px;
  stroke-width: 2.9;
  color: #fbf4df;
}
.wx-day .wx-cloud { fill: #243d42; }
.wx-day .wx-sun, .wx-day .wx-glint, .wx-day .wx-moon { stroke: #ffdb98; }
.wx-day .wx-moon, .wx-day .wx-sun circle, .wx-day .wx-bolt { fill: #ffdf9c; }
.wx-day .wx-rain, .wx-day .wx-flake, .wx-day .wx-ice { stroke: #e0f6ff; }
.week-days button { gap: 2px; }
#reading-symbol[hidden] { display: none; }
.wx-illustration {
  width: clamp(58px, 5.5vw, 85px);
  height: auto;
  color: #304c4d;
  stroke-width: 1.75;
}
.wx-illustration .wx-cloud { fill: #e1e5d8; }
.wx-illustration .wx-bank .wx-cloud { fill: #acbfbc; }
.wx-illustration .wx-etch { stroke: #637a71; stroke-width: 1.05; }
.wx-illustration .wx-sun, .wx-illustration .wx-glint { stroke: #99632b; }
.wx-illustration .wx-sun circle, .wx-illustration .wx-bolt { fill: #e4b777; }
.wx-illustration .wx-sun .wx-etch { stroke: #a26a39; }
.wx-illustration .wx-moon { fill: #e6c78e; stroke: #7d6747; }
.wx-illustration .wx-rain, .wx-illustration .wx-flake, .wx-illustration .wx-ice { stroke: #375f6d; }
.waterline-station { column-gap: 6px; }
.waterline-observation { margin-left: 4px; max-width: 25ch; }
.waterline-observation #reading-label { display: inline; }
@media (max-width: 740px) {
  .waterline-station { display: grid; grid-template-columns: max-content auto; align-items: center; justify-content: start; column-gap: 5px; }
  .waterline-observation { grid-column: 1/-1; margin: 4px 0 0; }
  .waterline-observation #reading-label { font-size: 11px; }
  .wx-illustration { width: 57px; }
  .wx-day { width: 31px; height: 25px; }
  .waterline-page { min-height: 367px; }
}
@media (max-width: 360px) {
  .wx-illustration { width: 47px; }
  .waterline-page { min-height: 389px; }
}
