.sierra {
  --gutter: clamp(26px, 6.8vw, 124px);
  color: #203b38;
  background: var(--paper);
  scroll-margin-top: 0;
}
#notes:has(+ .sierra) {
  padding-bottom: clamp(34px, 5vw, 82px);
}
.sierra-land {
  height: clamp(610px, 78svh, 920px);
  min-height: 45vw;
  max-height: 940px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #ced6c9;
}
.sierra-land canvas,
.sierra-sky,
.sierra-mist,
.sierra-engraving,
.sierra-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.sierra-sky {
  background: linear-gradient(
    #eae9db 0%,
    #d5ded3 33%,
    #adbfbe 60%,
    #869e9b 100%
  );
}
.sierra-land canvas {
  opacity: 0;
  z-index: 1;
}
.sierra-land.is-rendered canvas {
  opacity: 1;
}
.sierra-poster {
  background-position: center;
  background-size: cover;
  z-index: 0;
}
.sierra-engraving {
  z-index: 2;
  inset: 0 0 auto auto;
  width: 77%;
  height: 44%;
  opacity: 0.34;
  background: url(media/engraving.webp) center 47% / cover;
  mask-image: radial-gradient(
    ellipse at 82% 6%,
    #000 0%,
    #0008 40%,
    transparent 72%
  );
  -webkit-mask-image: radial-gradient(
    ellipse at 82% 6%,
    #000 0%,
    #0008 40%,
    transparent 72%
  );
}
.sierra-mist {
  z-index: 2;
  background: linear-gradient(
    180deg,
    #eae9db 0%,
    #eae9dbe8 4%,
    #e6e7d878 19%,
    transparent 38%,
    transparent 52%,
    #122d3294 78%,
    #152d32 100%
  );
}
.sierra-head,
.sierra-lower {
  left: var(--gutter);
  right: var(--gutter);
  position: absolute;
  z-index: 3;
}
.sierra-head {
  top: clamp(24px, 3.8vw, 63px);
}
.sierra-dateline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #344f4c;
  font: 600 11px/1.4 var(--micro);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.sierra-dateline span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sierra-dateline svg {
  color: #835633;
}
.sierra-head h2 {
  font: 400 clamp(78px, 8.8vw, 164px)/0.91 var(--display);
  letter-spacing: -0.053em;
  color: #203c39;
  margin: clamp(18px, 2.5vw, 50px) 0 11px;
}
.sierra-head p {
  font: 500 clamp(14px, 1.15vw, 21px)/1.4 var(--micro);
  color: #2f4946;
  margin: 0;
  max-width: 34ch;
}
.sierra-lower {
  bottom: clamp(48px, 5.3vw, 82px);
  color: #fbf6e7;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  text-shadow: 0 1px 14px #092c32a3;
}
.sierra-report {
  max-width: 550px;
}
#station-kicker {
  margin: 0 0 2px;
  color: #f1d19c;
  font: 600 11px/1.5 var(--micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sierra-amount {
  display: flex;
  align-items: baseline;
  gap: 0.3em;
  line-height: 1;
}
.sierra-amount strong {
  font: 400 clamp(74px, 7.8vw, 142px)/0.96 var(--display);
  letter-spacing: -0.045em;
}
.sierra-amount .sierra-unit {
  font: 400 clamp(30px, 3.2vw, 54px)/1 var(--display);
  letter-spacing: -0.025em;
}
#station-prefix {
  font: 500 clamp(12px, 1.1vw, 18px)/1 var(--micro);
}
#station-prefix:empty {
  display: none;
}
#station-detail {
  font: 500 clamp(14px, 1.1vw, 18px)/1.4 var(--micro);
  max-width: 40ch;
  margin: 7px 0 0;
}
.sierra-clock {
  display: flex;
  align-items: end;
  flex-direction: column;
  gap: 0;
  flex: none;
}
.sierra-clock button,
.sierra-stops button {
  appearance: none;
  font-family: var(--micro);
  color: inherit;
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.sierra-clock button {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.sierra-clock button:hover span:last-child {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.sierra-play {
  font:
    normal 19px/1 Arial,
    sans-serif;
  color: #edcd99;
}
#snow-phase {
  font: 500 12px/1.45 var(--micro);
  color: #e9e8d8;
  font-variant-numeric: tabular-nums;
}
.sierra-locator {
  position: absolute;
  z-index: 2;
  max-width: 40%;
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 11px/1.2 var(--micro);
  letter-spacing: 0.03em;
  color: #fcfaec;
  text-shadow:
    0 1px 3px #102723,
    0 0 6px #182e2e;
  background: linear-gradient(
    90deg,
    transparent,
    #19343480 32%,
    #1934344d 90%,
    transparent
  );
  padding: 3px 8px 3px 0;
  pointer-events: none;
  white-space: nowrap;
}
.sierra-locator i {
  width: 20px;
  height: 10px;
  transform: skewY(-25deg);
  border-left: 1px solid #f4d09c;
  border-top: 1px solid #f4d09c;
  filter: drop-shadow(0 1px 1px #395449);
}
.sierra-edge {
  position: absolute;
  z-index: 4;
  bottom: -1px;
  width: 100%;
  height: clamp(28px, 4.5vw, 75px);
  pointer-events: none;
}
.sierra-index {
  padding: 10px var(--gutter) 24px;
  display: grid;
  grid-template-columns: minmax(175px, 1fr) minmax(390px, 1.7fr);
  align-items: center;
  gap: 12px 8vw;
}
.sierra-index-title h3 {
  margin: 0;
  color: #24413e;
  font: 400 clamp(23px, 2.25vw, 41px)/1.06 var(--display);
  letter-spacing: -0.035em;
}
.sierra-index-title > span {
  font: 500 12px var(--micro);
  color: #53665c;
}
.sierra-stops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #b5baaa;
}
.sierra-stops button {
  position: relative;
  padding: 12px 4px 13px;
  min-height: 46px;
  font-size: clamp(13px, 1.1vw, 17px);
  font-weight: 500;
  white-space: nowrap;
  color: #52615a;
}
.sierra-stops button:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: #94592d;
  transform: scaleX(0);
  transition: transform 0.32s;
}
.sierra-stops button[aria-pressed="true"] {
  color: #24413e;
  font-weight: 700;
}
.sierra-stops button[aria-pressed="true"]:after {
  transform: scaleX(1);
}
.sierra-stops button:hover {
  color: #874c28;
}
.sierra button:focus-visible,
.sierra summary:focus-visible,
.sierra a:focus-visible {
  outline: 2px solid #be7640;
  outline-offset: 3px;
}
.sierra-notes {
  grid-column: 1/-1;
  color: #455b53;
  font: 400 14px/1.5 var(--micro);
  max-width: 790px;
}
.sierra-notes summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  color: #4b6056;
  text-underline-offset: 4px;
  font: 500 12px var(--micro);
}
.sierra-notes summary:hover {
  text-decoration: underline;
}
.sierra-notes summary::-webkit-details-marker {
  display: none;
}
.sierra-notes summary:after {
  content: "+";
  font-size: 17px;
  font-weight: 400;
}
.sierra-notes[open] summary:after {
  content: "−";
}
.sierra-notes p {
  margin: 2px 0 10px;
}
.sierra-notes a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sierra + #dispatch {
  padding-top: clamp(38px, 6vw, 96px);
}
@media (max-width: 740px) {
  .sierra {
    --gutter: clamp(19px, 5.5vw, 38px);
  }
  .sierra-land {
    height: clamp(508px, 72svh, 710px);
    min-height: 0;
  }
  .sierra-head {
    top: 21px;
  }
  .sierra-dateline {
    font-size: 9px;
    letter-spacing: 0.055em;
    gap: 6px;
  }
  .sierra-dateline span {
    gap: 6px;
  }
  .sierra-dateline svg {
    width: 20px;
    height: 20px;
  }
  .sierra-head h2 {
    font-size: clamp(62px, 15.3vw, 97px);
    margin: 16px 0 9px;
  }
  .sierra-head p {
    font-size: 14px;
    max-width: 27ch;
  }
  .sierra-engraving {
    width: 88%;
    height: 34%;
    opacity: 0.26;
  }
  .sierra-lower {
    bottom: 30px;
    display: grid;
    gap: 9px;
  }
  .sierra-report {
    max-width: 34ch;
  }
  #station-kicker {
    font-size: 10px;
  }
  .sierra-amount strong {
    font-size: clamp(66px, 15vw, 90px);
  }
  .sierra-amount .sierra-unit {
    font-size: 29px;
  }
  #station-detail {
    font-size: 14px;
    max-width: 32ch;
    margin-top: 2px;
  }
  .sierra-clock {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .sierra-clock button {
    font-size: 12px;
    gap: 5px;
  }
  #snow-phase {
    font-size: 10.5px;
  }
  .sierra-index {
    display: block;
    padding: 8px var(--gutter) 3px;
  }
  .sierra-index-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
  }
  .sierra-index-title h3 {
    font-size: 25px;
  }
  .sierra-index-title > span {
    font-size: 10.5px;
  }
  .sierra-stops {
    margin: 7px 0 1px;
  }
  .sierra-stops button {
    font-size: 13px;
  }
  .sierra-locator {
    font-size: 10px;
  }
  .sierra + #dispatch {
    padding-top: 35px;
  }
}
@media (max-width: 370px) {
  .sierra-index-title h3 {
    font-size: 22px;
  }
  .sierra-stops button {
    font-size: 12px;
  }
  .sierra-clock {
    gap: 7px;
  }
  .sierra-dateline {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sierra-land canvas,
  .sierra-stops button:after {
    transition: none;
  }
}
.sierra-poster {
  background-image: var(--poster-wide, url(media/wide-0-0.webp));
}
.sierra-land:not(.is-rendered) .sierra-locator {
  display: none;
}
.sierra-land.travelling .sierra-locator {
  opacity: 0;
}
.sierra-locator {
  transition: opacity 0.24s;
}
@media (max-width: 740px) {
  .sierra-poster {
    background-image: var(--poster-tall, url(media/tall-0-0.webp));
  }
}
.sierra-sky {
  background: linear-gradient(#eae9db, #d5ded3 32%, #b5c2bd 62%, #92a5a0);
}
.sierra-head:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -60px auto -33% calc(-1 * var(--gutter));
  width: min(800px, 81vw);
  background: radial-gradient(
    ellipse at 21% 43%,
    #e4e6d7e8 0%,
    #e2e4d699 38%,
    transparent 73%
  );
  pointer-events: none;
}
.sierra-engraving {
  opacity: calc(0.32 + var(--approach, 0) * 0.18);
  transform: translateY(calc(var(--approach, 0) * -12px));
}
.sierra-lake-name {
  position: absolute;
  z-index: 2;
  color: #d0e0ce;
  text-shadow: 0 1px 3px #254749;
  transform: translate(-40%, -50%) rotate(-11deg);
  white-space: nowrap;
  font: 500 12px/1 var(--micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.sierra-land[data-station="0"].is-rendered:not(.travelling) .sierra-lake-name {
  opacity: 0.78;
}
.sierra-index {
  isolation: isolate;
  position: relative;
}
.sierra-index:before {
  content: "";
  z-index: -1;
  pointer-events: none;
  position: absolute;
  top: -4px;
  bottom: -40px;
  right: 0;
  width: 42%;
  background: url(media/engraving.webp) 72% 70%/150% auto;
  opacity: calc(0.14 + var(--handoff, 0) * 0.12);
  mask-image:
    linear-gradient(270deg, #000, transparent 95%),
    linear-gradient(180deg, #000, transparent 92%);
  mask-composite: intersect;
}
.sierra-locator {
  background: none;
  text-shadow:
    0 1px 3px #122b2d,
    0 0 8px #173c3c;
}
@media (max-width: 740px) {
  .sierra-head:before {
    inset: -50px -2px -27% calc(-1 * var(--gutter));
    width: 91vw;
  }
  .sierra-lake-name {
    font-size: 9px;
  }
  .sierra-index:before {
    width: 65%;
  }
}
@media (max-width: 740px) {
  .sierra-clock {
    gap: 10px;
  }
  .sierra-clock button {
    white-space: nowrap;
  }
  #snow-phase {
    max-width: 28ch;
  }
  .sierra-index-title > span {
    display: none;
  }
}
.sierra-land.is-rendered .sierra-poster {
  visibility: hidden;
  background-image: none;
}
.sierra-engraving,
.sierra-index:before {
  mix-blend-mode: multiply;
}
/* The survey tick sits at the projected point. Type has its own ground on snow and timber. */
.sierra-locator,
.sierra-land:not(.is-rendered) .sierra-locator {
  display: block;
  width: 0;
  height: 0;
  padding: 0;
  max-width: none;
  background: none;
  color: #153d3e;
  text-shadow: none;
}
.sierra-locator i {
  position: absolute;
  z-index: 1;
  inset: -3px auto auto -3px;
  width: 6px;
  height: 6px;
  background: #ffe3ad;
  border: 1px solid #2b4948;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 2px #fff8);
}
.sierra-locator:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 20px;
  height: 2px;
  background: #fbebbf;
  box-shadow: 0 1px 1px #263d3b;
  transform: rotate(-40deg);
  transform-origin: left center;
}
.sierra-locator div {
  position: absolute;
  left: 15px;
  bottom: 12px;
  display: grid;
  gap: 2px;
  border-left: 2px solid #a76d3f;
  padding: 5px 9px 5px 7px;
  background: #f4f0e1f2;
  box-shadow: 0 1px 5px #1938382e;
}
.sierra-locator span {
  font: 600 12px/1.1 var(--micro);
  letter-spacing: 0.005em;
}
.sierra-locator small {
  font: 500 10px/1.05 var(--micro);
  font-variant-numeric: tabular-nums;
  color: #405952;
}
.sierra-locator.pin-left div {
  left: auto;
  right: 15px;
  border-left: 0;
  border-right: 2px solid #a76d3f;
}
.sierra-locator.pin-left:after {
  left: auto;
  right: 0;
  transform: rotate(40deg);
  transform-origin: right center;
}
.sierra-land:not(.is-rendered) .sierra-locator {
  display: none;
}
.station-place {
  font: 600 12px/1.35 var(--micro);
  margin: 4px 0;
  color: #f2d8af;
}
.is-rendered .station-place {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Coordinates of Incline Creek on the two fixed-camera poster captures.
   Scale from the centre, matching background-size: cover on the terrain image. */
.sierra-land {container-type:size}
.sierra-poster, .sierra-locator {
  --shore-east:max(20.184cqw, 41.344cqh);
  --shore-north:max(5.401cqw, 11.063cqh);
}
.sierra-land[data-station="0"]:not(.is-rendered) .sierra-locator {
  display:block;
  left:min(calc(50% + var(--shore-east)), calc(100% - 16px));
  top:calc(50% - var(--shore-north));
}
@media (max-width:740px) {
  .sierra-poster, .sierra-locator {
    --shore-east:max(28.356cqw, 27.005cqh);
    --shore-north:max(15.291cqw, 14.563cqh);
  }
}
.sierra-land[data-station="0"] .sierra-poster {
  background-position-x:calc(50% - max(0px, var(--shore-east) - 50cqw + 16px));
}
@media (max-width:1000px) {
  .sierra-land[data-station="0"] .sierra-locator.pin-left div,
  .sierra-land[data-station="0"]:not(.is-rendered) .sierra-locator div {
    inset:12px 15px auto auto;border-left:0;border-right:2px solid #a76d3f;
  }
  .sierra-land[data-station="0"] .sierra-locator.pin-left:after,
  .sierra-land[data-station="0"]:not(.is-rendered) .sierra-locator:after {
    left:auto;right:0;transform-origin:right center;transform:rotate(-40deg);
  }
}

/* A small field annotation stays with the title while the camera travels. */
.sierra-head .sierra-flight {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 13px 0 11px;
  margin-top: clamp(10px,1.3vw,19px);
  border: 1px solid #73877c;
  border-left: 3px solid #aa6b39;
  color: #173d35;
  background: #f6f2df;
  box-shadow: 1px 3px 0 #30444024;
  font: 650 13px/1.15 var(--micro);
  cursor: pointer;
}
.sierra-head .sierra-flight[hidden] { display: none; }
.sierra-flight svg { flex: none; }
.sierra-flight .flight-track { stroke: #9b522d; stroke-dasharray: 25; }
.sierra-flight:hover { background: #fffbee; }
@media (prefers-reduced-motion:no-preference) {
  .sierra-flight.flight-visible { animation: flight-arrival .55s ease-out both; }
  .flight-visible .flight-track { animation: draw-flight 1.4s ease-out .25s 2 both; }
  @keyframes flight-arrival { from { transform:translateY(5px);opacity:.3; } to {transform:translateY(0);opacity:1;} }
  @keyframes draw-flight { from {stroke-dashoffset:25;} to {stroke-dashoffset:0;} }
}

#snow-forecast {
  scroll-margin-top: min(49vh, 340px);
  gap: 8px clamp(20px, 5vw, 88px);
  padding-top: clamp(12px, 2vw, 28px);
}
#snow-forecast h3 { font-size: clamp(31px, 3.5vw, 54px); }
#snow-forecast .sierra-index-title p {
  margin: 6px 0 0;
  max-width: 43ch;
  color: #44574e;
  font: 450 14px/1.4 var(--micro);
}
#snow-forecast .sierra-stops {
  margin: 6px 0 0;
  gap: 3px;
  border: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#snow-forecast .sierra-stops button {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 64px;
  gap: 4px;
  padding: 9px clamp(7px, 1.2vw, 19px);
  white-space: normal;
  text-align: left;
  background: #e1e2d2;
  color: #29443d;
  border: 0;
  border-bottom: 2px solid #839384;
  border-radius: 0;
  cursor: pointer;
  font: 600 clamp(13px, 1.2vw, 18px)/1.15 var(--micro);
}
#snow-forecast .sierra-stops button::after { display: none; }
#snow-forecast .sierra-stops button small { font: 500 12px/1.1 var(--micro); font-variant-numeric: tabular-nums; }
#snow-forecast .sierra-stops button[aria-pressed="true"] {
  background: #29483f;
  color: #fcf6e7;
  border-color: #be8b58;
}
@media(hover:hover) {
  #snow-forecast .sierra-stops button[aria-pressed="false"]:hover { background: #d4d9c6; }
}
@media(max-width:740px) {
  #snow-forecast { row-gap: 5px; }
  #snow-forecast .sierra-index-title { display: block; }
  #snow-forecast .sierra-stops button { min-height: 57px; }
  #snow-forecast .sierra-index-title p { font-size: 13px; }
}
