/* "Solar and storage" (src/energy-panel.js): on staff's plot page (admin.html #plot-energy) and the presentation's
   chapter (present.html #present-energy). A verdict pill, the figures, then a row per factor with its state's dot:
   green good, pink to check, red hard, grey not known. Colours from tokens.css only. */
.energy__part { margin-top: var(--space-4); }
.energy__part:first-of-type { margin-top: var(--space-2); }
.energy__title { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); margin: 0; font-family: var(--font-display); font-size: var(--text-lg); }
.energy__verdict { padding: 0.15rem 0.6rem; border-radius: var(--radius-pill); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; background: var(--line); color: var(--ink); }
.energy__verdict[data-state="good"] { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.energy__verdict[data-state="check"] { background: color-mix(in srgb, var(--flag) 14%, transparent); color: var(--flag-text); }
.energy__verdict[data-state="hard"] { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.energy__lead { margin: var(--space-2) 0 0; color: var(--ink-muted); font-size: var(--text-sm); }
/* "On the satellite picture" (staff): its button under the rows. */
.energy__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: var(--space-3) 0 0; }
/* A park right next to the land: the likeliest use, said once, in the ink colour with the "good" green edge. */
.energy__advice { margin: var(--space-3) 0 0; padding: var(--space-3); border-radius: var(--radius-card); font-size: var(--text-sm);
  background: color-mix(in srgb, var(--ok) 8%, transparent); box-shadow: inset 3px 0 0 var(--ok); }
.energy__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: var(--space-2); margin: var(--space-3) 0 0; }
.energy__stats > div { padding: var(--space-3); border-radius: var(--radius-card); background: color-mix(in srgb, var(--sheet-raised, var(--paper)) 92%, transparent); }
.energy__stats dt { color: var(--ink-muted); font-size: var(--text-xs); }
.energy__stats dd { margin: var(--space-1) 0 0; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); font-variant-numeric: tabular-nums; }
.energy__rows { display: grid; gap: var(--space-2); list-style: none; margin: var(--space-3) 0 0; padding: 0; }
.energy-row {
  display: grid; grid-template-columns: 1fr auto; gap: 0.15rem var(--space-2); position: relative;
  padding: var(--space-3) var(--space-3) var(--space-3) calc(var(--space-3) + 0.85rem);
  border-radius: var(--radius-card); background: color-mix(in srgb, var(--sheet-raised, var(--paper)) 92%, transparent);
}
.energy-row::before { content: ""; position: absolute; left: var(--space-3); top: calc(var(--space-3) + 0.4rem); width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ink-muted); }
.energy-row[data-state="good"]::before { background: var(--ok); }
.energy-row[data-state="check"]::before { background: var(--flag); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flag) 20%, transparent); }
.energy-row[data-state="hard"]::before { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 20%, transparent); }
.energy-row__label { font-weight: 600; font-size: var(--text-sm); }
.energy-row__state { color: var(--ink-muted); font-size: var(--text-xs); align-self: center; }
.energy-row[data-state="check"] .energy-row__state { color: var(--flag-text); }
.energy-row[data-state="hard"] .energy-row__state { color: var(--warn); }
.energy-row__text { grid-column: 1 / -1; color: var(--ink-muted); font-size: var(--text-sm); }
.energy-row[data-state="hard"] .energy-row__text, .energy-row[data-state="check"] .energy-row__text { color: var(--ink); }
.energy__whole { margin: var(--space-3) 0 0; font-size: var(--text-sm); font-weight: 600; }

/* "Solar and storage across the lots": a row per lot, its two verdicts as pills, its figures under them. On the
   presentation a row is a button that opens that lot below (pressed: the lot shown); on /admin a link to the plot. */
.energy-compare { margin-top: var(--space-2); }
.energy-compare__list { display: grid; gap: var(--space-2); list-style: none; margin: var(--space-3) 0 var(--space-4); padding: 0; }
.energy-compare__row {
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-1) var(--space-2); width: 100%; padding: var(--space-3);
  border: 1px solid var(--line); border-radius: var(--radius-card); background: color-mix(in srgb, var(--sheet-raised, var(--paper)) 92%, transparent);
  color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.energy-compare__row[aria-pressed="true"] { border-color: var(--flag); }
.energy-compare__row:focus-visible { outline: 2px solid var(--flag); outline-offset: 2px; }
.energy-compare__name { font-weight: 600; }
.energy-compare__area { color: var(--ink-muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; align-self: center; }
.energy-compare__verdicts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
.energy-compare__kind { color: var(--ink-muted); font-size: var(--text-xs); }
.energy-compare__kind + .energy__verdict { margin-right: var(--space-2); }
.energy-compare__figures { grid-column: 1 / -1; color: var(--ink-muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
