
/* NWZpro Instrument V4 — self-contained component */
.nwz-console {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(215px, .8fr);
  gap: 24px;
  align-items: center;
}

.nwz-dial {
  --angle: 0deg;
  position: relative;
  width: 100%;
  max-width: 370px;
  aspect-ratio: 1;
  margin: auto;
  border: 1px solid rgba(242,201,76,.35);
  border-radius: 50%;
  background:
    radial-gradient(circle, #182a35 0 12%, transparent 13%),
    repeating-conic-gradient(
      from 0deg,
      rgba(242,201,76,.4) 0deg .7deg,
      transparent .7deg 10deg
    );
  isolation: isolate;
}

.nwz-dial::before {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(132,159,64,.65);
  border-radius: 50%;
  pointer-events: none;
}

.nwz-dial::after {
  content: "";
  position: absolute;
  inset: 21%;
  border: 1px dashed rgba(242,201,76,.28);
  border-radius: 50%;
  pointer-events: none;
}

.nwz-rotor {
  position: absolute;
  inset: 0;
  transform: rotate(var(--angle));
  transition: transform .75s cubic-bezier(.22,.8,.2,1);
  pointer-events: none;
  z-index: 2;
}

.nwz-needle {
  position: absolute;
  left: 50%;
  top: 15%;
  width: 22px;
  height: 35%;
  transform: translateX(-50%);
  background: linear-gradient(90deg,#a87510,#ffe27b,#c38c1c);
  clip-path: polygon(50% 0,100% 100%,50% 83%,0 100%);
  filter: drop-shadow(0 0 5px rgba(242,201,76,.5));
}

.nwz-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #f2c94c;
  color: #111c27;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 0 0 9px rgba(242,201,76,.10);
}

.nwz-direction {
  position: absolute;
  z-index: 5;
  border: 1px solid #849f40;
  background: #111c27;
  color: #f4f1e8;
  padding: 11px 10px;
  font-size: 10px;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}

.nwz-direction:hover,
.nwz-direction:focus-visible,
.nwz-direction[aria-pressed="true"] {
  background: #f2c94c;
  border-color: #f2c94c;
  color: #111c27;
  box-shadow: 0 0 17px rgba(242,201,76,.2);
}

.nwz-north { top: 0; left: 50%; transform: translate(-50%,-50%); }
.nwz-east  { right: 0; top: 50%; transform: translate(50%,-50%); }
.nwz-south { bottom: 0; left: 50%; transform: translate(-50%,50%); }
.nwz-west  { left: 0; top: 50%; transform: translate(-50%,-50%); }

.nwz-readout {
  background: #192a38;
  border: 1px solid #34505d;
  border-left: 4px solid #f2c94c;
  padding: 25px;
  min-height: 250px;
}

.nwz-readout small {
  display: block;
  color: #849f40;
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.nwz-readout h3 {
  color: #f2c94c;
  font-size: 24px;
  margin: 0 0 15px;
}

.nwz-readout p {
  color: #a6b8c2;
  font-size: 13px;
  line-height: 1.8;
}

.nwz-readout a {
  color: #f4f1e8;
  text-decoration: none;
  border-bottom: 1px solid #f2c94c;
  font-size: 11px;
  padding-bottom: 7px;
}

@media (min-width: 1050px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 5%;
  }
  .hero h1 {
    font-size: clamp(48px, 5vw, 76px);
  }
}

@media (max-width: 1049px) {
  .nwz-console {
    grid-template-columns: 1fr;
    gap: 55px;
    max-width: 520px;
    margin: auto;
  }
  .nwz-dial { width: 75%; }
}

@media (max-width: 480px) {
  .nwz-dial { width: 70%; }
  .nwz-direction { font-size: 8px; padding: 8px 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .nwz-rotor, .nwz-direction { transition: none; }
}
