/* ==================================================
   WATERCoyote — LAKE POWELL INTERACTIVE FEATURE
================================================== */

.lake-powell-feature {
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(0,0,0,.22);
  background:
    radial-gradient(circle at 78% 12%, rgba(115,201,255,.09), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.012), rgba(0,0,0,.03)),
    #1a3549;
}

.lake-powell-feature .section {
  padding-top: 88px;
  padding-bottom: 88px;
}

.lake-powell-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.lake-powell-intro h2 {
  max-width: 900px;
  margin-bottom: 18px;
}

.lake-powell-intro .lead {
  margin: 0;
}

.lake-powell-source-badge {
  align-self: start;
  padding: 10px 14px;
  border: 1px solid rgba(115,201,255,.30);
  border-radius: 999px;
  color: #bfe8ff;
  background: rgba(115,201,255,.08);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.lake-powell-widget {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  box-shadow: 0 24px 65px rgba(0,0,0,.20);
}

.lake-powell-status {
  margin-bottom: 22px;
  padding: 10px 13px;
  border-radius: 9px;
  background: rgba(4,17,28,.32);
  color: #9eb4c2;
  font-size: 12px;
  line-height: 1.45;
}

.lake-powell-status.is-ready {
  color: #bfe8ff;
}

.lake-powell-status.is-error {
  color: #ffd3c8;
  background: rgba(116,43,25,.24);
}

.lake-context {
  margin: -4px 0 24px;
  padding: 18px 20px;
  border: 1px solid rgba(115,201,255,.20);
  border-radius: 12px;
  background: rgba(6,23,38,.42);
}

.lake-context[hidden] {
  display: none;
}

.lake-context-kicker {
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lake-context-text {
  margin: 0;
  color: #dceaf2;
  font-size: 15px;
  line-height: 1.58;
}

.lake-context-method {
  margin-top: 8px;
  color: #829cab;
  font-size: 11px;
  line-height: 1.45;
}

.lake-powell-photo {
  margin: 30px 0 0;
}

.lake-powell-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0,0,0,.20);
}

.lake-powell-photo figcaption {
  margin-top: 8px;
  color: #8099a9;
  font-size: 11px;
  line-height: 1.45;
}

.lake-powell-photo figcaption a {
  color: #9edcff;
  text-decoration: none;
}

.lake-powell-photo figcaption a:hover {
  text-decoration: underline;
}

.lake-powell-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.lake-powell-info-right {
  text-align: right;
}

.lake-powell-label {
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lake-powell-date,
.lake-powell-elevation {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--white);
  line-height: 1.05;
}

.lake-powell-date {
  font-size: clamp(26px, 3.6vw, 42px);
}

.lake-powell-elevation {
  font-size: clamp(34px, 4.6vw, 58px);
}

.lake-powell-unit {
  margin-left: 3px;
  color: #a8bfcd;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .42em;
  font-weight: normal;
}

/* ==================================================
   LAKE / CANYON SCENE
================================================== */

.lake-scene {
  position: relative;
  height: 390px;
  overflow: hidden;
  margin: 8px 0 26px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background:
    linear-gradient(180deg, #173a51 0%, #557589 34%, #aa7d62 35%, #7b4f38 100%);
}

.lake-sky {
  position: absolute;
  inset: 0 0 46% 0;
  z-index: 0;
  background:
    radial-gradient(circle at 68% 22%, rgba(255,236,198,.26), transparent 18%),
    linear-gradient(180deg, #17384f 0%, #5f8195 100%);
}

.lake-mesa {
  position: absolute;
  left: -4%;
  right: -4%;
  z-index: 1;
  opacity: .90;
}

.lake-mesa-back {
  bottom: 42%;
  height: 33%;
  background: #805a48;
  clip-path: polygon(0 55%, 9% 42%, 16% 51%, 25% 28%, 34% 38%, 43% 19%, 56% 37%, 67% 17%, 78% 32%, 88% 20%, 100% 39%, 100% 100%, 0 100%);
}

.lake-mesa-mid {
  bottom: 32%;
  height: 34%;
  background: #654433;
  clip-path: polygon(0 42%, 12% 36%, 22% 51%, 34% 31%, 46% 48%, 59% 27%, 70% 44%, 83% 26%, 100% 46%, 100% 100%, 0 100%);
}

.canyon-wall {
  position: absolute;
  bottom: 0;
  width: 28%;
  height: 78%;
  z-index: 4;
  background:
    linear-gradient(110deg, rgba(255,194,133,.12), transparent 28%),
    linear-gradient(180deg, #9b6448 0%, #754831 42%, #4d3024 100%);
}

.canyon-left {
  left: 0;
  clip-path: polygon(0 0, 80% 8%, 100% 34%, 82% 100%, 0 100%);
}

.canyon-right {
  right: 0;
  clip-path: polygon(20% 8%, 100% 0, 100% 100%, 18% 100%, 0 34%);
}

.lake-water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 34%;
  background:
    linear-gradient(180deg, rgba(103,204,244,.97) 0%, rgba(41,136,184,.98) 46%, rgba(12,69,104,.99) 100%);
  transition: height .42s cubic-bezier(.25,.8,.25,1);
}

.lake-water.no-transition,
.lake-elevation-marker.no-transition {
  transition: none !important;
}

.lake-water-shimmer {
  position: absolute;
  inset: 0;
  opacity: .40;
  background:
    repeating-linear-gradient(
      176deg,
      rgba(255,255,255,.11) 0,
      rgba(255,255,255,.11) 2px,
      transparent 2px,
      transparent 15px
    );
}

.lake-water-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: rgba(210,246,255,.85);
  box-shadow: 0 0 12px rgba(115,201,255,.46);
}

.lake-elevation-marker {
  position: absolute;
  right: 18px;
  z-index: 6;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(4,17,28,.88);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  transition: bottom .42s cubic-bezier(.25,.8,.25,1);
}

.lake-threshold {
  position: absolute;
  left: 29%;
  right: 29%;
  z-index: 5;
  border-top: 1px dashed rgba(255,255,255,.32);
  color: rgba(255,255,255,.70);
  font-size: 10px;
  letter-spacing: .4px;
  pointer-events: none;
}

.lake-threshold span {
  position: absolute;
  right: 0;
  top: -19px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(4,17,28,.42);
}

.lake-threshold-full {
  bottom: 88%;
}

.lake-threshold-power {
  bottom: 22.5%;
}

/* ==================================================
   CONTROLS
================================================== */

.lake-controls {
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr);
  align-items: center;
  gap: 12px;
}

.lake-play-button,
.lake-latest-button {
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 999px;
  border: 1px solid rgba(115,201,255,.38);
  font: inherit;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

.lake-play-button {
  color: #062033;
  background: var(--blue);
}

.lake-play-button:hover:not(:disabled) {
  background: #9ad9ff;
}

.lake-latest-button {
  color: #dbeaf2;
  background: rgba(255,255,255,.045);
}

.lake-latest-button:hover:not(:disabled) {
  background: rgba(115,201,255,.10);
}

.lake-play-button:disabled,
.lake-latest-button:disabled {
  opacity: .45;
  cursor: wait;
}

.lake-slider-wrap {
  min-width: 0;
}

.lake-slider-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lake-slider {
  width: 100%;
  min-height: 44px;
  accent-color: var(--blue);
  cursor: pointer;
}

.lake-slider:disabled {
  opacity: .45;
  cursor: wait;
}

.lake-timeline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: -3px;
  color: #8ea5b4;
  font-size: 11px;
}

/* ==================================================
   MINI HISTORY CHART
================================================== */

.lake-chart-panel {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.09);
}

.lake-chart-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
  color: #b5c9d6;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .5px;
}

.lake-chart-range {
  color: #7f9bad;
  font-weight: normal;
}

.lake-mini-chart {
  display: block;
  width: 100%;
  height: 210px;
  overflow: visible;
}

.lake-chart-area {
  fill: rgba(65,161,207,.14);
}

.lake-chart-line {
  fill: none;
  stroke: #73c9ff;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.lake-chart-cursor {
  stroke: rgba(255,255,255,.30);
  stroke-width: 1;
  stroke-dasharray: 5 5;
  vector-effect: non-scaling-stroke;
}

.lake-chart-marker {
  fill: #f4f8fb;
  stroke: #73c9ff;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.lake-source-note {
  margin-top: 18px;
  color: #8fa5b3;
  font-size: 12px;
  line-height: 1.55;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 850px) {

  .lake-powell-feature .section {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .lake-powell-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .lake-powell-source-badge {
    justify-self: start;
  }

  .lake-powell-widget {
    padding: 20px;
  }

  .lake-powell-info-right {
    text-align: left;
  }

  .lake-scene {
    height: 300px;
  }

  .lake-threshold {
    left: 12%;
    right: 12%;
  }

  .lake-controls {
    grid-template-columns: 1fr 1fr;
  }

  .lake-slider-wrap {
    grid-column: 1 / -1;
  }

  .lake-mini-chart {
    height: 170px;
  }
}

@media (max-width: 520px) {

  .lake-powell-widget {
    padding: 16px;
  }

  .lake-scene {
    height: 250px;
  }

  .lake-powell-date {
    font-size: 27px;
  }

  .lake-powell-elevation {
    font-size: 40px;
  }

  .lake-play-button,
  .lake-latest-button {
    width: 100%;
  }

  .lake-controls {
    grid-template-columns: 1fr;
  }

  .lake-slider-wrap {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lake-water,
  .lake-elevation-marker {
    transition: none;
  }
}
