/* Optical Ballistics telemetry console, live SVG trajectory, flex gauge & 6-iron gapping ladder */

.i7-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 10px 0 6px;
}

.i7-presets-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}

.i7-preset-btn {
  appearance: none;
  min-height: 44px;
  min-width: 56px;
  padding: 6px 11px;
  border-radius: 6px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.i7-preset-btn:hover {
  border-color: var(--turf);
}

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

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

/* Live Dual-Trajectory Optical Radar Viewport */
.i7-radar-box {
  margin: 14px 0 18px;
  padding: 14px 16px 12px;
  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, 255, 0.06), 0 8px 20px rgba(7, 25, 18, 0.14);
}

.i7-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;
}

.i7-radar-legend {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
}

.i7-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.i7-leg-dot {
  width: 9px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}

.i7-leg-dot.drv { background: #6ee7b7; }
.i7-leg-dot.i7 { background: #f6c967; }
.i7-leg-dot.boost { background: #f98e78; }

.i7-radar-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.i7-grid-line {
  stroke: rgba(158, 192, 176, 0.16);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.i7-ground-line {
  stroke: rgba(158, 192, 176, 0.42);
  stroke-width: 1.4;
}

.i7-axis-txt {
  fill: rgba(196, 220, 208, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.i7-arc-driver {
  fill: none;
  stroke: #6ee7b7;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.i7-arc-driver-glow {
  fill: rgba(110, 231, 183, 0.08);
  stroke: none;
}

.i7-arc-iron {
  fill: none;
  stroke: #f6c967;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.i7-arc-boost {
  fill: none;
  stroke: #f98e78;
  stroke-width: 2;
  stroke-dasharray: 5 4;
  stroke-linecap: round;
}

.i7-land-drv {
  fill: #6ee7b7;
}

.i7-land-iron {
  fill: #f6c967;
}

.i7-land-boost {
  fill: #f98e78;
}

.i7-call-drv {
  fill: #a7f3d0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
}

.i7-call-iron {
  fill: #fde68a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
}

.i7-call-boost {
  fill: #fecaca;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 600;
}

/* 3 Boxed Telemetry Cards */
.i7-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.i7-stat-card {
  padding: 14px 14px 12px;
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
}

.i7-stat-card.primary {
  border-color: var(--turf);
  box-shadow: inset 0 0 0 1px rgba(24, 98, 69, 0.15);
}

.i7-stat-card .eyebrow {
  margin: 0 0 6px;
  font-size: 10px;
}

.i7-stat-card h2 {
  margin: 0 0 4px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.i7-stat-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

/* 5-Zone Shaft Flex Vernier Gauge */
.i7-flex-gauge {
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
}

.i7-gauge-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

.i7-gauge-head strong {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.i7-gauge-status {
  font-weight: 700;
  color: var(--turf);
  font-size: 12px;
}

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

.i7-band-bg {
  fill: rgba(120, 138, 128, 0.14);
}

.i7-band-active {
  fill: rgba(25, 114, 78, 0.28);
}

html[data-theme="radar"] .i7-band-active {
  fill: rgba(110, 231, 183, 0.26);
}

.i7-band-txt {
  fill: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
}

.i7-band-sub {
  fill: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9.5px;
}

.i7-needle-line {
  stroke: var(--flag, #c2412d);
  stroke-width: 2.5;
}

.i7-needle-dot {
  fill: var(--pine, #0f3b2b);
  stroke: #6ee7b7;
  stroke-width: 2.5;
}

/* Live 6-Iron Gapping Ladder (5i -> PW) */
.i7-ladder-box {
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
}

.i7-ladder-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 10px;
}

.i7-ladder-head strong {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.i7-ladder-head span {
  font-size: 11.5px;
  color: var(--muted);
}

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

.i7-bar-track {
  fill: rgba(120, 138, 128, 0.12);
}

.i7-bar-fill {
  fill: #1b5e43;
}

html[data-theme="radar"] .i7-bar-fill {
  fill: #34996e;
}

.i7-bar-fill.is-anchor {
  fill: #d99b26;
}

.i7-club-lbl {
  fill: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  font-weight: 700;
}

.i7-club-lbl.is-anchor {
  fill: #b8780f;
}

html[data-theme="radar"] .i7-club-lbl.is-anchor {
  fill: #fcd34d;
}

.i7-club-val {
  fill: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  font-weight: 700;
}

.i7-club-gap {
  fill: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

#i7-reset {
  appearance: none;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

#i7-reset:hover {
  border-color: var(--turf);
}

.i7-table-load {
  appearance: none;
  min-height: 44px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.i7-table-load:hover {
  border-color: var(--turf);
  color: var(--turf);
}

@media (max-width: 820px) {
  .i7-stat-grid {
    grid-template-columns: 1fr;
  }
}
