/**
 * public/css/components/nursery-lights.css
 * Canopy v2 component - the Lights rows on the Nursery card (REQ-0005, #641 #642) and the
 * Settings plug hint. Built from docs/design/mockups/smart-plugs-home-637.html (frame A).
 * The switch is the real .toggle-switch from settings-drawer.css.
 * Consumes ONLY --v2-* tokens.
 */

/* The head and readings stay one button; the switches sit outside it. */
.pl-open { display: block; width: 100%; text-align: left; padding: 0; min-height: var(--v2-space-touch); font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.pl-open:focus-visible { outline: 2px solid var(--v2-accent-botanical); outline-offset: 2px; border-radius: var(--v2-radius-sm); }

.pl-lights { margin-top: var(--v2-space-md); padding-top: var(--v2-space-xs); border-top: 1px solid var(--v2-border-soft); }
.pl-label { display: block; padding-top: var(--v2-space-sm); font-size: var(--v2-font-size-caption2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--v2-text-support); }
.pl-why { display: block; padding-top: var(--v2-space-xs); font-size: 13px; line-height: 1.35; color: var(--v2-text-secondary); }
.pl-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: var(--v2-space-sm) 0; border-bottom: 1px solid var(--v2-border-soft); }
.pl-row:last-child { border-bottom: none; padding-bottom: 0; }
.pl-row.pl-row-top { align-items: flex-start; }
.pl-ic { width: 32px; height: 32px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--v2-pop-ochre-bg); color: var(--v2-pop-ochre); }
.pl-ic.heat { background: var(--v2-heat-warmth-bg); color: var(--v2-heat-warmth); }
.pl-ic.off { background: var(--v2-bg-secondary); color: var(--v2-text-secondary); }
.nur-card .pl-ic svg, .nur-card .pl-state svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pl-name { font-size: 15px; font-weight: 600; color: var(--v2-text-primary); overflow-wrap: anywhere; }
.pl-state { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.35; color: var(--v2-text-secondary); }
.pl-state.pl-ok { color: var(--v2-pop-sage); }
.pl-state.pl-info { color: var(--v2-pop-slate-text); }
.pl-state.pl-bad { color: var(--v2-pop-coral-text); font-weight: 600; }
.pl-state.pl-quiet { color: var(--v2-text-tertiary); }
.pl-sw-dim { opacity: 0.45; cursor: default; }
.pl-retry { min-height: var(--v2-space-touch); padding: 0 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--v2-accent-botanical); background: none; border: 1px solid var(--v2-accent-botanical); border-radius: var(--v2-radius-sm); flex: none; cursor: pointer; }

/* Settings: the choice hint sits under the segmented control. */
.ns-plug-hint { display: block; margin-top: var(--v2-space-sm); }

/* Settings: a plug's On / Off as matching tags, On tinted sage (#665, option 2B). */
.section-row .row-value.plug-chip { padding: 3px 8px; border-radius: var(--v2-radius-sm); background: var(--v2-bg-secondary); color: var(--v2-text-secondary); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.section-row .row-value.plug-chip.on { background: var(--v2-pop-sage-bg); color: var(--v2-pop-sage); }

/* Setup items on the Home card (#729). Built from docs/design/mockups/nursery-setup-in-place-729.html (frames A1-A3). */
.pl-ic.info { background: var(--v2-pop-slate-bg); color: var(--v2-pop-slate-text); }
.pl-go { width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.pl-go .chev, .pl-link .chev, .pl-hours svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pl-go .chev, .pl-link .chev { color: var(--v2-text-tertiary); }
.pl-go .pl-state.pl-info { font-weight: 600; }
.pl-row.pl-row-linked { border-bottom: none; padding-bottom: 0; align-items: flex-start; }
.pl-link, .pl-hours { display: flex; align-items: center; gap: 8px; width: 100%; min-height: var(--v2-space-touch); padding: 0; font: inherit; font-size: 13px; color: var(--v2-text-secondary); text-align: left; background: none; border: none; }
.pl-link { cursor: pointer; border-bottom: 1px solid var(--v2-border-soft); }
.pl-link .edit { color: var(--v2-accent-botanical); font-weight: 700; }
.pl-hours b { color: var(--v2-text-primary); font-weight: 600; }
.pl-link .grow, .pl-hours .grow { flex: 1; }
button.pl-hours { cursor: pointer; }
.pl-hours .edit { color: var(--v2-accent-botanical); font-weight: 700; }
div.pl-hours { min-height: var(--v2-space-touch); }
.pl-go:focus-visible, .pl-link:focus-visible, .pl-hours:focus-visible { outline: 2px solid var(--v2-accent-botanical); outline-offset: 2px; border-radius: var(--v2-radius-sm); }
