/**
 * public/css/components/nursery-soil.css
 * Canopy v2 component - the Nursery drawer's soil cards, air and humidity tiles and the collapsed
 * "Sensors and setup" disclosure (#707). Built from the approved mockup
 * docs/design/mockups/nursery-drawer-707.html. Consumes ONLY --v2-* tokens.
 * Pops: coral = the garden's own limits were crossed (they raise the phone warning); ochre =
 * advisory starter bands (never alert); sage = good; slate = a calibrate hint.
 */

/* ===== Soil card, one per counted probe ===== */
.nur-soil {
  background: var(--v2-bg-card);
  border: 1px solid var(--v2-border-soft);
  border-radius: var(--v2-radius-md);
  padding: var(--v2-space-md);
  margin-top: var(--v2-space-sm);
  color: var(--v2-text-primary);
}
.nur-soil.is-bad { background: var(--v2-pop-coral-bg); border-color: var(--v2-pop-coral); }
.nur-soil-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nur-soil-name { font-size: 15px; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.nur-soil-main { margin: 10px 0 18px; }
.nur-soil.is-quiet .nur-soil-main { margin-bottom: 4px; }
.nur-soil-pct { font-size: 44px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.nur-soil-pct small { font-size: 20px; font-weight: 600; color: var(--v2-text-secondary); margin-left: 2px; }
.nur-soil.is-quiet .nur-soil-pct { color: var(--v2-text-support); }

.nur-soil-state {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--v2-radius-pill);
  font-size: 14px;
  font-weight: 700;
  background: var(--v2-pop-sage-bg);
  color: var(--v2-pop-sage);
}
.nur-soil-state.dry, .nur-soil-state.wet { background: var(--v2-pop-coral-bg); color: var(--v2-pop-coral-text); border: 1px solid var(--v2-pop-coral); }
.nur-soil-state.is-quiet { background: var(--v2-bg-secondary); color: var(--v2-text-secondary); }
/* Starter bands: a dashed neutral chip, so it never reads as a warning. */
.nur-soil.is-starter .nur-soil-state { background: var(--v2-bg-secondary); color: var(--v2-text-primary); border: 1px dashed var(--v2-border-strong); }

.nur-soil-bar { position: relative; display: flex; height: 12px; border-radius: var(--v2-radius-full); }
.nur-soil-bar > span { height: 100%; }
.nur-soil-bar > span:first-child { border-radius: var(--v2-radius-full) 0 0 var(--v2-radius-full); }
.nur-soil-bar > span:nth-child(3) { border-radius: 0 var(--v2-radius-full) var(--v2-radius-full) 0; }
.nur-soil-seg--dry, .nur-soil-seg--wet { background: var(--v2-pop-coral-muted); }
.nur-soil-seg--moist { background: var(--v2-pop-sage-muted); }
.nur-soil.is-starter .nur-soil-seg--dry, .nur-soil.is-starter .nur-soil-seg--wet { background: var(--v2-pop-ochre-muted); }
.nur-soil-dot {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--v2-text-primary);
  border: 3px solid var(--v2-bg-card);
}
.nur-soil.is-bad .nur-soil-dot { border-color: var(--v2-pop-coral-bg); }

.nur-soil-ticks { position: relative; height: 32px; margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--v2-text-secondary); font-variant-numeric: tabular-nums; }
.nur-soil-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; text-align: center; line-height: 1.25; }
.nur-soil-ticks span:first-child { transform: none; text-align: left; }
.nur-soil-ticks span:last-child { transform: translateX(-100%); text-align: right; }
.nur-soil-ticks .edge { color: var(--v2-text-primary); }
.nur-soil-ticks b { display: block; font-weight: 600; }

.nur-soil-src { margin: 4px 0 0; font-size: 12px; line-height: 1.4; color: var(--v2-text-secondary); }
.nur-hint {
  margin: 8px 0 0;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.4;
  border-radius: var(--v2-radius-sm);
  background: var(--v2-pop-slate-bg);
  border: 1px solid var(--v2-pop-slate);
  color: var(--v2-text-primary);
}
.nur-soil-acts { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px -8px -8px; }
.nur-act {
  appearance: none;
  background: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--v2-accent-terracotta-dark);
  min-height: var(--v2-space-touch);
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.nur-act:focus-visible { outline: 2px solid var(--v2-accent-botanical); outline-offset: 2px; border-radius: var(--v2-radius-sm); }
.nur-cal { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--v2-border-soft); font-size: 12px; color: var(--v2-text-secondary); }
.nur-soil.is-bad .nur-cal { border-top-color: var(--v2-pop-coral); }
.nur-cal i { width: 8px; height: 8px; border-radius: 50%; background: var(--v2-pop-sage); }
.nur-cal.is-off i { background: var(--v2-border-strong); }

/* ===== Air temperature and humidity tiles ===== */
.nur-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: var(--v2-space-sm); }
.nur-tile { background: var(--v2-bg-card); border: 1px solid var(--v2-border-soft); border-radius: var(--v2-radius-md); padding: 12px 16px; min-width: 0; }
.nur-tile.is-bad { background: var(--v2-pop-coral-bg); border-color: var(--v2-pop-coral); }
.nur-tile-k { font-size: 12px; color: var(--v2-text-secondary); }
.nur-tile-v { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nur-tile-v small { font-size: 13px; font-weight: 500; color: var(--v2-text-secondary); }
.nur-tile-s { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--v2-pop-sage); }
.nur-tile.is-bad .nur-tile-s { color: var(--v2-pop-coral-text); }
.nur-tile.is-quiet .nur-tile-v, .nur-tile.is-quiet .nur-tile-s { color: var(--v2-text-support); }
.nur-tile-sub { margin-top: 2px; font-size: 11px; color: var(--v2-text-secondary); }

/* ===== Sensors and setup (collapsed) ===== */
.nur-disc { background: var(--v2-bg-card); border: 1px solid var(--v2-border-soft); border-radius: var(--v2-radius-md); overflow: hidden; margin-top: var(--v2-space-md); }
.nur-disc > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 52px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.nur-disc > summary::-webkit-details-marker { display: none; }
.nur-disc > summary:focus-visible { outline: 2px solid var(--v2-accent-botanical); outline-offset: -2px; }
.nur-disc-sub { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 400; color: var(--v2-text-secondary); }
.nur-disc-sub.is-bad { color: var(--v2-pop-coral-text); font-weight: 600; }
.nur-chev { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform 150ms ease; }
.nur-disc[open] > summary .nur-disc-sub .nur-chev { transform: rotate(90deg); }
.nur-disc-body { border-top: 1px solid var(--v2-border-soft); }
.nur-rd--btn { appearance: none; width: 100%; background: none; border-width: 0 0 1px; border-style: solid; border-color: var(--v2-border-soft); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.nur-rd--btn .nur-rd-main { display: block; }
.nur-rd--btn .nur-rd-label, .nur-rd--btn .nur-rd-limit { display: block; }
.nur-rd--btn:last-child { border-bottom: 0; }
.nur-rd--btn:focus-visible { outline: 2px solid var(--v2-accent-botanical); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .nur-chev { transition: none; } }
