/* Driving Iron (20°) vs. 3-Hybrid (20°) vs. 7-Wood (21°) Flight & Descent Comparator */

.uhw-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 13px;
}

.uhw-seg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 6px 0 4px;
}

.uhw-preset-btn,
.uhw-seg-btn {
  appearance: none;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

.uhw-preset-btn small,
.uhw-seg-btn small {
  display: block;
  font-weight: 500;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 3px;
}

.uhw-preset-btn:hover:not([aria-pressed="true"]),
.uhw-seg-btn:hover:not([aria-pressed="true"]) {
  border-color: var(--turf);
  transform: translateY(-1px);
}

.uhw-preset-btn[aria-pressed="true"],
.uhw-seg-btn[aria-pressed="true"] {
  background: var(--pine);
  border-color: var(--pine);
  color: #f4f7f2;
}

.uhw-preset-btn[aria-pressed="true"] small,
.uhw-seg-btn[aria-pressed="true"] small {
  color: rgba(244, 247, 242, 0.82);
}

html[data-theme="radar"] .uhw-preset-btn,
html[data-theme="radar"] .uhw-seg-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(158, 192, 176, 0.3);
  color: #e6f2ec;
}

html[data-theme="radar"] .uhw-preset-btn[aria-pressed="true"],
html[data-theme="radar"] .uhw-seg-btn[aria-pressed="true"] {
  background: var(--optic-bright);
  border-color: var(--optic-bright);
  color: #081c14;
}

html[data-theme="radar"] .uhw-preset-btn[aria-pressed="true"] small,
html[data-theme="radar"] .uhw-seg-btn[aria-pressed="true"] small {
  color: rgba(8, 28, 20, 0.8);
}

.uhw-slider-card {
  padding: 11px 13px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  margin-bottom: 13px;
}

html[data-theme="radar"] .uhw-slider-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(158, 192, 176, 0.25);
}

.uhw-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.uhw-slider-val {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--turf);
  white-space: nowrap;
}

html[data-theme="radar"] .uhw-slider-val {
  color: var(--optic-bright);
}

.uhw-range {
  width: 100%;
  accent-color: var(--turf);
  cursor: pointer;
}

/* 3-Club Flight Trajectory & Descent Angle Viewport */
.uhw-radar-box {
  margin: 10px 0 14px;
  padding: 13px 15px 11px;
  border-radius: 10px;
  background: linear-gradient(180deg, #0b241b 0%, #071912 100%);
  border: 1px solid #1f4d3b;
  color: #e6f2ec;
  box-shadow: inset 0 1px 0 rgba(255, 255, 0.06), 0 8px 20px rgba(7, 25, 18, 0.14);
}

.uhw-radar-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9ec0b0;
}

.uhw-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  margin-bottom: 6px;
}

.uhw-leg-w7 {
  color: #6ee7b7;
  font-weight: 700;
}

.uhw-leg-hy {
  color: #fde68a;
  font-weight: 700;
}

.uhw-leg-di {
  color: #fca5a5;
  font-weight: 700;
}

.uhw-svg {
  display: block;
  width: 100%;
  height: auto;
}

.uhw-ground {
  stroke: rgba(158, 192, 176, 0.45);
  stroke-width: 1.5;
}

.uhw-arc-w7 {
  fill: none;
  stroke: #6ee7b7;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  animation: uhwTrace 540ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.uhw-arc-hy {
  fill: none;
  stroke: #fde68a;
  stroke-width: 2.3;
  stroke-linecap: round;
}

.uhw-arc-di {
  fill: none;
  stroke: #fca5a5;
  stroke-width: 2.1;
  stroke-dasharray: 5 4;
  stroke-linecap: round;
}

@keyframes uhwTrace {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

.uhw-svg-label {
  fill: #9ec0b0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px;
}

.uhw-call-w7 {
  fill: #6ee7b7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px;
  font-weight: 700;
}

.uhw-call-hy {
  fill: #fde68a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px;
  font-weight: 700;
}

.uhw-call-di {
  fill: #fca5a5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px;
  font-weight: 700;
}

.uhw-status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: var(--turf);
}

html[data-theme="radar"] .uhw-status-pill {
  color: #6ee7b7;
}

.uhw-readout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.uhw-metric-card {
  padding: 12px;
  border-radius: 9px;
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  min-width: 0;
}

.uhw-metric-card.is-winner {
  border-width: 1.5px;
  border-color: var(--turf);
}

html[data-theme="radar"] .uhw-metric-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(158, 192, 176, 0.25);
}

html[data-theme="radar"] .uhw-metric-card.is-winner {
  border-color: var(--optic-bright);
}

.uhw-metric-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.uhw-metric-val {
  display: block;
  font-family: var(--sans);
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}

.uhw-metric-sub {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}

.uhw-copy-btn {
  appearance: none;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

html[data-theme="radar"] .uhw-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(158, 192, 176, 0.4);
  color: #e6f2ec;
}

@media (prefers-reduced-motion: reduce) {
  .uhw-arc-w7 {
    animation: none !important;
  }

  .uhw-preset-btn,
  .uhw-seg-btn {
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .uhw-preset-grid,
  .uhw-seg-grid,
  .uhw-readout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
