/* Soil Probe Trace — track (Appily-onehundredtwelve / V K Enterprises)
   Probe-wand lookup · vertical moisture column · LCD readout.
   Retires Drying Rack Trace / Node Path clip rail.
   Not: Abacus · Tide Clock · Pegboard · Marble · Windsock · Firefly · Survey Stake ·
   Docket · Thermocouple · Wind Vane · Toll Gate · Parcel Bell · Seed Tag · Trellis Climb ·
   Hose Coupling · Sounding Lead · horizontal stepper · telemetry console. */

body.a112-body.page-a112-soilprobe {
  background:
    radial-gradient(880px 400px at 8% -4%, rgba(82, 183, 136, 0.18), transparent 55%),
    radial-gradient(720px 360px at 100% 8%, rgba(92, 64, 51, 0.14), transparent 52%),
    linear-gradient(180deg, var(--a112-glass) 0%, var(--a112-plot) 42%, #E6D5BE 100%);
}

.sp-main { padding-bottom: 1rem; }

.sp-mast {
  padding: clamp(1.35rem, 3.5vw, 2.35rem) 0 1rem;
}

.sp-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--a112-bloom-deep);
}

.sp-mast h1 {
  margin: 0 0 0.4rem;
  font-family: var(--a112-font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--a112-leaf-deep);
  line-height: 1.08;
}

.sp-mast > p {
  margin: 0;
  max-width: 42rem;
  color: var(--a112-mute);
}

.sp-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.75fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding-bottom: 2rem;
}

.sp-lede {
  margin: 0 0 1rem;
  color: var(--a112-mute);
}

/* —— Probe wand lookup —— */
.sp-probe {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  padding: 1rem;
  background: var(--a112-surface);
  border: 1px solid var(--a112-border);
  border-radius: var(--a112-radius-lg);
  box-shadow: 0 14px 30px rgba(15, 31, 23, 0.08);
}

.sp-probe-wand {
  position: relative;
  width: 3.2rem;
  min-height: 14rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

.sp-probe-tip {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 22px solid #8B7355;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.15));
}

.sp-probe-shaft {
  width: 14px;
  flex: 1;
  min-height: 7rem;
  background:
    linear-gradient(90deg, #C0C8CC, #8A9498 40%, #D7DEE2 55%, #6A7478);
  border-radius: 3px;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.35);
}

.sp-probe-grip {
  width: 2.4rem;
  height: 3.4rem;
  border-radius: 8px 8px 6px 6px;
  background:
    repeating-linear-gradient(180deg, #1B4332 0 8px, #142E24 8px 14px);
  border: 2px solid var(--a112-moss);
  box-shadow: 0 6px 12px rgba(15, 31, 23, 0.18);
}

.sp-probe-panel h2 {
  margin: 0 0 0.35rem;
  font-family: var(--a112-font-display);
  font-size: 1.35rem;
  color: var(--a112-leaf-deep);
}

.sp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

/* —— Moisture column —— */
.sp-column {
  min-width: 0;
}

.sp-column-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.sp-column-head h3 {
  margin: 0;
  font-family: var(--a112-font-display);
  font-size: 1.1rem;
  color: var(--a112-leaf-deep);
}

.sp-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--a112-surface);
  border: 1px solid var(--a112-border);
  color: var(--a112-mute);
}

.sp-chip--pending { background: #FFF4E8; border-color: var(--a112-sun); color: var(--a112-sun-ink); }
.sp-chip--progress { background: #E7F3FF; border-color: #0A7EA4; color: #065A75; }
.sp-chip--live { background: var(--a112-glass); border-color: var(--a112-lime); color: var(--a112-leaf-deep); }
.sp-chip--miss { background: #FDECEE; border-color: var(--a112-bloom); color: var(--a112-bloom-deep); }

.sp-cylinder {
  position: relative;
  isolation: isolate;
  border-radius: 999px;
  padding: 0.85rem 0.65rem;
  background:
    linear-gradient(180deg, #C4A882 0%, #8B6B4A 35%, #5C4033 70%, #3D2A1C 100%);
  border: 3px solid #2A1C12;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 16px 32px rgba(15, 31, 23, 0.18);
  overflow: hidden;
  min-height: 28rem;
}

.sp-fill {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 8%;
  height: var(--sp-fill, 0%);
  max-height: 84%;
  border-radius: 999px 999px 40px 40px;
  background:
    linear-gradient(180deg, rgba(82, 183, 136, 0.55), rgba(10, 126, 164, 0.72));
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.15);
  z-index: 0;
  transition: height 520ms ease;
}

.page-a112-soilprobe.is-idle .sp-fill { height: 8%; opacity: 0.35; }
.page-a112-soilprobe.is-miss .sp-fill {
  height: 18%;
  background: linear-gradient(180deg, rgba(230, 57, 70, 0.35), rgba(178, 34, 52, 0.55));
}

.sp-bands {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  justify-content: space-between;
}

.sp-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.65rem 0.55rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #F7F1E8;
  backdrop-filter: blur(2px);
  transition: transform 180ms ease, background 180ms ease;
}

.sp-band.is-done {
  background: rgba(216, 243, 220, 0.88);
  color: var(--a112-leaf-deep);
  border-color: rgba(45, 106, 79, 0.35);
}

.sp-band.is-current {
  background: rgba(255, 255, 255, 0.95);
  color: var(--a112-ink);
  border-color: var(--a112-sun);
  transform: scale(1.03);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.sp-band-depth {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
  writing-mode: horizontal-tb;
  max-width: 3.6rem;
  line-height: 1.2;
}

.sp-band-copy strong {
  display: block;
  font-family: var(--a112-font-display);
  font-size: 0.95rem;
  line-height: 1.15;
}

.sp-band-copy small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  opacity: 0.8;
}

.sp-band-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(15, 31, 23, 0.35);
  color: #fff;
}

.sp-band.is-done .sp-band-mark,
.sp-band.is-current .sp-band-mark {
  background: var(--a112-leaf);
}

/* —— LCD readout —— */
.sp-lcd-bezel {
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--a112-night);
  color: #D7F5E0;
  border-radius: var(--a112-radius-lg);
  border: 3px solid #1B4332;
  box-shadow:
    inset 0 0 0 1px rgba(82, 183, 136, 0.25),
    0 16px 34px rgba(15, 31, 23, 0.22);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sp-lcd-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--a112-sun);
  font-family: var(--a112-font-body);
}

.sp-lcd-bezel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--a112-font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  color: #F1FAF4;
  line-height: 1.2;
}

.sp-lcd-bezel .sp-lede {
  color: rgba(215, 245, 224, 0.78);
  font-family: var(--a112-font-body);
}

.sp-facts {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.sp-facts li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(82, 183, 136, 0.35);
  font-size: 0.9rem;
}

.sp-facts span { color: rgba(215, 245, 224, 0.65); }
.sp-facts strong { color: #F1FAF4; font-weight: 800; }

.sp-lcd .a112-btn--ghost {
  background: rgba(244, 251, 246, 0.08);
  color: #F4FBF6;
  border-color: rgba(244, 251, 246, 0.35);
  box-shadow: none;
}

.sp-lcd .a112-btn--leaf { box-shadow: none; }

.page-a112-soilprobe.is-found .sp-lcd-bezel {
  animation: sp-blink 180ms ease 2;
}

@keyframes sp-blink {
  50% { filter: brightness(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .sp-fill { transition: none; }
  .page-a112-soilprobe.is-found .sp-lcd-bezel { animation: none; }
}

@media (max-width: 1100px) {
  .sp-stage {
    grid-template-columns: 1fr 1fr;
  }
  .sp-lcd { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .sp-stage { grid-template-columns: 1fr; }
  .sp-probe { grid-template-columns: 1fr; }
  .sp-probe-wand {
    flex-direction: row;
    width: 100%;
    min-height: 0;
    height: 3.2rem;
    justify-content: flex-start;
  }
  .sp-probe-tip {
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 18px solid #8B7355;
    border-left: 0;
    order: 0;
  }
  .sp-probe-shaft {
    width: auto;
    flex: 1;
    height: 12px;
    min-height: 0;
  }
  .sp-probe-grip {
    width: 3.2rem;
    height: 2.2rem;
  }
  .sp-cylinder { min-height: 24rem; border-radius: 28px; }
}
