.stanage-wind-instrument,
.stanage-wind-instrument > div,
.windlab-viewer,
.windlab-stage {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.windlab-viewer {
  --wl-panel: rgba(5, 20, 29, .86);
  --wl-panel-solid: #081d27;
  --wl-line: rgba(191, 223, 226, .22);
  --wl-line-strong: rgba(191, 223, 226, .38);
  --wl-muted: #a6bbc0;
  --wl-text: #f4faf9;
  --wl-accent: #48dfa0;
  --wl-accent-soft: rgba(72, 223, 160, .16);
  isolation: isolate;
  color: var(--wl-text);
  font-family: "Manrope", Arial, sans-serif;
}

.windlab-stage {
  position: relative;
  overflow: hidden;
  background: #17313d;
}

.windlab-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
  cursor: grab;
}

.windlab-canvas:active { cursor: grabbing; }

.windlab-labels {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.windlab-brand,
.windlab-panel,
.windlab-input,
.windlab-heading,
.windlab-legend,
.windlab-boundary,
.windlab-inspector,
.windlab-compass,
.windlab-panel-toggle,
.windlab-status {
  position: absolute;
  z-index: 6;
}

.windlab-brand {
  top: 20px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .42));
}

.windlab-brand__back {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 50%;
  background: rgba(4, 17, 25, .42);
  backdrop-filter: blur(10px);
}

.windlab-brand svg,
.windlab-reset svg,
.windlab-input svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.windlab-brand__name {
  font-family: "Archivo", Arial, sans-serif;
  font-size: 16px;
  font-weight: 820;
  letter-spacing: -.025em;
}

.windlab-panel {
  top: 76px;
  left: 22px;
  width: 292px;
  max-height: calc(100% - 154px);
  overflow: auto;
  border: 1px solid var(--wl-line);
  border-radius: 3px;
  background: var(--wl-panel);
  box-shadow: 0 20px 54px rgba(0, 0, 0, .32);
  backdrop-filter: blur(18px) saturate(118%);
  scrollbar-width: thin;
}

.windlab-panel > header,
.windlab-control,
.windlab-layer-copy,
.windlab-switch,
.windlab-reset,
.windlab-help {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--wl-line);
}

.windlab-panel > header { padding: 17px 17px 14px; }
.windlab-panel > header strong,
.windlab-panel > header span { display: block; }
.windlab-panel > header strong {
  font-family: "Archivo", Arial, sans-serif;
  font-size: 22px;
  font-weight: 820;
  letter-spacing: -.04em;
}
.windlab-panel > header span {
  margin-top: 5px;
  color: var(--wl-muted);
  font-size: 9px;
  font-weight: 680;
  letter-spacing: .015em;
  line-height: 1.35;
}

.windlab-control {
  min-width: 0;
  padding: 14px 13px 15px;
}

.windlab-control legend {
  margin: 0 0 9px;
  padding: 0 3px;
  color: #83a4ab;
  font-size: 9px;
  font-weight: 820;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.windlab-segments {
  display: grid;
  gap: 5px;
}

.windlab-control--location .windlab-segments {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.windlab-control--location .windlab-segments button {
  padding: 8px 5px;
  text-align: center;
}

.windlab-control--location .windlab-segments button::after { display: none; }

.windlab-segments button {
  position: relative;
  width: 100%;
  min-height: 34px;
  padding: 8px 31px 8px 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #dce8e8;
  cursor: pointer;
  font: 700 11px/1.25 "Manrope", Arial, sans-serif;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.windlab-segments button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(202, 224, 225, .42);
  border-radius: 50%;
  transform: translateY(-50%);
}

.windlab-segments button small {
  display: block;
  margin-top: 2px;
  color: #86a5ab;
  font-size: 8px;
}

.windlab-segments button:hover {
  border-color: rgba(72, 223, 160, .34);
  background: rgba(255, 255, 255, .045);
  color: #fff;
}

.windlab-segments button.is-active {
  border-color: rgba(72, 223, 160, .46);
  background: var(--wl-accent-soft);
  color: #fff;
}

.windlab-segments button.is-active::after {
  border-color: var(--wl-accent);
  background: var(--wl-accent);
  box-shadow: 0 0 0 3px rgba(72, 223, 160, .12);
}

.windlab-layer-copy {
  padding: 11px 16px 13px;
  color: var(--wl-muted);
  font-size: 9px;
  line-height: 1.45;
}

.windlab-switch,
.windlab-reset {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  background: transparent;
  color: #edf7f5;
  cursor: pointer;
  font: 720 10px/1.2 "Manrope", Arial, sans-serif;
  text-align: left;
}

.windlab-switch i {
  position: relative;
  display: block;
  width: 29px;
  height: 16px;
  border: 1px solid rgba(220, 236, 236, .38);
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
}

.windlab-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #afc0c3;
  transition: transform .16s ease, background .16s ease;
}

.windlab-switch.is-active i {
  border-color: rgba(72, 223, 160, .66);
  background: rgba(72, 223, 160, .2);
}

.windlab-switch.is-active i::after {
  background: var(--wl-accent);
  transform: translateX(13px);
}

.windlab-reset { justify-content: flex-start; gap: 9px; }
.windlab-reset svg { width: 14px; }
.windlab-switch:hover,
.windlab-reset:hover { background: rgba(255, 255, 255, .05); }

.windlab-help {
  padding: 11px 15px 13px;
  border-bottom: 0;
  color: #879ea3;
  font-size: 8px;
  line-height: 1.35;
}
.windlab-help span { margin-right: 5px; color: var(--wl-accent); }

.windlab-input {
  top: 20px;
  right: 22px;
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--wl-line-strong);
  border-radius: 3px;
  background: rgba(5, 20, 29, .68);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .2);
  backdrop-filter: blur(14px);
}

.windlab-input svg { width: 17px; color: var(--wl-accent); }
.windlab-input strong { font-size: 10px; letter-spacing: .025em; }

.windlab-heading {
  top: 25px;
  left: 50%;
  color: rgba(238, 248, 248, .78);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: translateX(-50%);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .52);
}

.windlab-peak-label {
  position: absolute;
  min-width: 86px;
  transform: translate(-50%, -112%);
  color: #fff;
  filter: drop-shadow(0 2px 7px rgba(0, 0, 0, .82));
  text-align: center;
}
.windlab-peak-label::after {
  content: "";
  display: block;
  width: 1px;
  height: 18px;
  margin: 5px auto 0;
  background: rgba(255, 255, 255, .78);
}
.windlab-peak-label strong,
.windlab-peak-label small { display: block; }
.windlab-peak-label strong { font-size: 11px; font-weight: 820; }
.windlab-peak-label small { margin-top: 2px; color: #d8e6e6; font-size: 8px; }

.windlab-legend {
  bottom: 24px;
  left: 50%;
  width: min(330px, 30vw);
  padding: 11px 13px 10px;
  border: 1px solid var(--wl-line);
  border-radius: 3px;
  background: rgba(5, 20, 29, .76);
  box-shadow: 0 13px 38px rgba(0, 0, 0, .26);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}
.windlab-legend strong {
  display: block;
  margin-bottom: 7px;
  color: #eef7f6;
  font-size: 9px;
  font-weight: 800;
}
.windlab-legend i {
  display: block;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
}
.windlab-legend span {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: #c0d0d2;
  font-size: 8px;
  font-style: normal;
}
.windlab-legend b { font-weight: 680; }

.windlab-boundary {
  bottom: 22px;
  left: 22px;
  max-width: 285px;
  padding: 9px 11px 10px;
  border-left: 2px solid var(--wl-accent);
  background: rgba(5, 20, 29, .58);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  backdrop-filter: blur(12px);
}
.windlab-boundary strong,
.windlab-boundary span { display: block; }
.windlab-boundary strong { color: #edf7f5; font-size: 8px; font-weight: 820; }
.windlab-boundary span { margin-top: 3px; color: #9fb3b7; font-size: 7px; line-height: 1.35; }

.windlab-compass {
  right: 27px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(5, 20, 29, .46);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  backdrop-filter: blur(10px);
}
.windlab-compass b {
  position: absolute;
  top: 3px;
  left: 50%;
  color: var(--wl-accent);
  font-size: 7px;
  transform: translateX(-50%);
}
.windlab-compass span {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
}
.windlab-compass span::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 50%;
  border-right: 3px solid transparent;
  border-bottom: 15px solid #f3f8f8;
  border-left: 3px solid transparent;
  transform: translateX(-50%);
}
.windlab-compass small {
  position: absolute;
  right: 0;
  bottom: -15px;
  left: 0;
  color: #d5e2e3;
  font-size: 7px;
  font-weight: 760;
  text-align: center;
}

.windlab-inspector {
  top: 76px;
  right: 22px;
  width: 205px;
  padding: 13px 31px 13px 14px;
  border: 1px solid var(--wl-line);
  border-radius: 3px;
  background: var(--wl-panel);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .27);
  backdrop-filter: blur(16px);
}
.windlab-inspector[hidden] { display: none; }
.windlab-inspector button {
  position: absolute;
  top: 5px;
  right: 7px;
  border: 0;
  background: none;
  color: #b5c6c8;
  cursor: pointer;
  font-size: 18px;
}
.windlab-inspector strong,
.windlab-inspector span { display: block; }
.windlab-inspector strong { font-family: "Archivo", Arial, sans-serif; font-size: 20px; }
.windlab-inspector span { margin-top: 4px; color: var(--wl-muted); font-size: 9px; line-height: 1.4; }

.windlab-status {
  top: 50%;
  left: 50%;
  padding: 11px 14px;
  border: 1px solid var(--wl-line);
  border-radius: 3px;
  background: rgba(5, 20, 29, .82);
  color: #edf7f5;
  font-size: 10px;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
}
.windlab-status[hidden] { display: none; }

.windlab-panel-toggle { display: none; }
.windlab-page-error { display: grid; height: 100%; margin: 0; place-items: center; color: #fff; }

.stanage-wind-page {
  background: #f6f4ee;
  color: #0a1d35;
}

.stanage-wind-hero {
  padding: clamp(42px, 6vw, 86px) 0 34px;
  background:
    radial-gradient(circle at 84% 20%, rgba(0, 166, 101, .14), transparent 28%),
    linear-gradient(135deg, #06182d 0%, #0b2940 64%, #12394a 100%);
  color: #fff;
}

.stanage-wind-hero .breadcrumbs { margin-bottom: 28px; color: #bbcad3; }
.stanage-wind-hero .breadcrumbs a { color: #dce7ec; }

.stanage-wind-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: clamp(30px, 7vw, 96px);
  align-items: end;
}

.stanage-wind-kicker,
.stanage-wind-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #35c986;
  font: 700 13px/1.2 var(--font-body, Arial, sans-serif);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.stanage-wind-hero h1,
.stanage-wind-copy h2,
.stanage-wind-copy h3 {
  margin: 0;
  font-family: var(--font-display, Impact, sans-serif);
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.stanage-wind-hero h1 { max-width: 800px; font-size: clamp(48px, 7vw, 96px); line-height: .94; }
.stanage-wind-hero p { max-width: 720px; margin: 24px 0 0; color: #d4e0e5; font-size: clamp(17px, 2vw, 21px); line-height: 1.5; }

.stanage-wind-hero__note {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(4, 19, 31, .42);
}
.stanage-wind-hero__note strong { display: block; margin-bottom: 8px; color: #fff; font-size: 18px; }
.stanage-wind-hero__note p { margin: 0; color: #c0d0d6; font-size: 14px; }

.stanage-wind-map-wrap { padding: 28px 0 0; background: #07151d; }
.stanage-wind-map-shell { width: min(1540px, calc(100% - 32px)); margin: 0 auto; }
.stanage-wind-instrument { height: min(78vh, 820px); min-height: 620px; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.stanage-wind-map-caption { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0 24px; color: #98adb7; font-size: 12px; }
.stanage-wind-map-caption a { color: #5ce4a6; }

.stanage-wind-copy { padding: 72px 0 88px; }
.stanage-wind-copy__intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 8vw, 120px); align-items: start; }
.stanage-wind-copy h2 { font-size: clamp(40px, 5vw, 68px); line-height: .98; }
.stanage-wind-copy h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.stanage-wind-copy p { color: #42505e; font-size: 17px; line-height: 1.65; }
.stanage-wind-copy__lead { margin-top: 0; font-size: 21px !important; color: #142941 !important; }

.stanage-wind-method {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 56px;
  background: #ced6d3;
  border: 1px solid #ced6d3;
}
.stanage-wind-method article { padding: 32px; background: #fff; }
.stanage-wind-method svg { width: 76px; height: 76px; margin-bottom: 24px; color: #07975e; }
.stanage-wind-method p { margin-bottom: 0; font-size: 15px; }

.stanage-wind-limitations { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); gap: 56px; margin-top: 64px; padding: 42px; background: #0a1d35; color: #fff; }
.stanage-wind-limitations p { color: #c2d0d7; }
.stanage-wind-limitations ul { margin: 0; padding-left: 20px; color: #dbe5e9; line-height: 1.75; }
.stanage-wind-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (max-width: 900px) {
  .stanage-wind-hero__grid,
  .stanage-wind-copy__intro,
  .stanage-wind-limitations { grid-template-columns: 1fr; }
  .stanage-wind-method { grid-template-columns: 1fr; }
}

.windlab-viewer button:focus-visible,
.windlab-viewer a:focus-visible,
.windlab-canvas:focus-visible {
  outline: 2px solid var(--wl-accent);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .stanage-wind-hero { padding-top: 96px; }
  .stanage-wind-hero .breadcrumbs { margin-bottom: 22px; }
  .stanage-wind-hero__note { padding: 22px; }
  .stanage-wind-map-shell { width: calc(100% - 28px); }
  .stanage-wind-instrument { height: 630px; min-height: 0; }
  .stanage-wind-map-caption { display: grid; gap: 8px; font-size: 11px; line-height: 1.5; }
  .stanage-wind-copy { padding: 54px 0 64px; }
  .stanage-wind-limitations { padding: 28px 22px; gap: 28px; }
  .windlab-brand { top: 14px; left: 14px; }
  .windlab-brand__name { font-size: 14px; }
  .windlab-brand__back { width: 31px; height: 31px; }
  .windlab-heading,
  .windlab-compass { display: none; }
  .windlab-input {
    top: 58px;
    right: 14px;
    min-height: 34px;
    padding-inline: 10px;
  }
  .windlab-input strong { font-size: 8px; }
  .windlab-panel-toggle {
    top: 14px;
    right: 14px;
    display: flex;
    min-height: 34px;
    align-items: center;
    gap: 9px;
    padding: 0 11px;
    border: 1px solid var(--wl-line-strong);
    border-radius: 3px;
    background: rgba(5, 20, 29, .75);
    color: #f1f8f7;
    font: 740 9px/1 "Manrope", Arial, sans-serif;
    backdrop-filter: blur(14px);
  }
  .windlab-panel-toggle i,
  .windlab-panel-toggle i::before,
  .windlab-panel-toggle i::after {
    display: block;
    width: 14px;
    height: 1px;
    background: currentColor;
  }
  .windlab-panel-toggle i { position: relative; }
  .windlab-panel-toggle i::before,
  .windlab-panel-toggle i::after { content: ""; position: absolute; left: 0; }
  .windlab-panel-toggle i::before { top: -4px; }
  .windlab-panel-toggle i::after { top: 4px; }
  .windlab-panel {
    top: 58px;
    right: 14px;
    left: auto;
    width: min(250px, calc(100vw - 28px));
    max-height: calc(100% - 84px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .16s ease, transform .16s ease;
  }
  .windlab-viewer.is-panel-open .windlab-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .windlab-viewer.is-panel-open .windlab-input { opacity: 0; pointer-events: none; }
  .windlab-legend {
    bottom: 18px;
    width: min(330px, calc(100vw - 32px));
  }
  .windlab-boundary {
    bottom: 78px;
    left: 50%;
    width: min(280px, calc(100vw - 36px));
    max-width: none;
    transform: translateX(-50%);
  }
  .windlab-boundary span { display: none; }
  .windlab-inspector {
    top: 100px;
    right: 14px;
    width: min(205px, calc(100vw - 28px));
  }
  .windlab-peak-label:nth-child(n+3) { display: none; }
}

@media (max-height: 760px) and (min-width: 761px) {
  .windlab-help { display: none; }
  .windlab-panel { overflow: hidden; }
}

@media (max-width: 360px) {
  .windlab-brand__name { max-width: 98px; line-height: 1.08; }
  .windlab-panel-toggle span { display: none; }
  .windlab-input { right: 10px; left: 10px; justify-content: center; }
  .windlab-legend { bottom: 12px; width: calc(100vw - 20px); }
  .windlab-boundary { bottom: 69px; width: calc(100vw - 22px); text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .windlab-segments button,
  .windlab-switch i::after,
  .windlab-panel { transition: none; }
}
