/* ── "What governs this place?" (src/place-governance.js) ──────────────────
   One point, every unit that bears on it, grouped by unit family. The
   grouping carries the meaning: a reader should be able to see that the
   county their mail goes to decided nothing. Solid content surfaces per
   CONVENTIONS — the dialog chrome is glass, these cards are not. */

.pg-body { max-width: 100%; }

.pg-loading,
.pg-error { font-size: var(--guide-fs-sm); line-height: 1.55; margin: 0; }
.pg-error { color: var(--guide-color-status-crit, var(--guide-color-status-crit)); }

.pg-head { margin-bottom: 12px; }
.pg-title { font-size: var(--guide-fs-base); font-weight: 700; font-variant-numeric: tabular-nums; }
.pg-sub { font-size: var(--guide-fs-xs); color: var(--guide-color-text-secondary, #4A4A52); margin-top: 2px; }
.pg-sub--warn { color: var(--guide-color-status-warn, #B26A00); }

.pg-degraded {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: var(--guide-fs-xs); line-height: 1.45; padding: 9px 11px; margin-bottom: 12px;
  border-radius: 6px; color: var(--guide-color-status-warn, #B26A00);
  background: color-mix(in srgb, var(--guide-color-status-warn, #B26A00) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--guide-color-status-warn, #B26A00) 22%, transparent);
}

.pg-ico { width: 15px; height: 15px; flex: 0 0 auto; }

.pg-family { margin-bottom: 16px; }
.pg-family-head {
  display: flex; align-items: center; gap: 7px;
  font-size: var(--guide-fs-2xs); font-weight: 700; text-transform: var(--guide-label-case, uppercase); letter-spacing: 0.06em;
  color: var(--guide-color-text-secondary, #4A4A52); margin: 0 0 3px;
}
.pg-family-blurb { font-size: var(--guide-fs-xs); line-height: 1.45; color: var(--guide-color-text-secondary, #6B6B73); margin: 0 0 9px; }

.pg-units { display: grid; gap: 8px; }

.pg-unit {
  padding: 10px 12px; border-radius: 7px;
  background: var(--guide-color-surface, #FFFFFF);
  border: 1px solid var(--guide-color-border-default, rgba(0, 0, 0, 0.12));
}
.pg-unit--unresolved { background: transparent; border-style: dashed; }

.pg-unit-head { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.pg-unit-label { font-size: var(--guide-fs-2xs); font-weight: 700; text-transform: var(--guide-label-case, uppercase); letter-spacing: 0.04em; color: var(--guide-color-text-secondary, #4A4A52); }
.pg-unit-val { font-size: var(--guide-fs-md); font-weight: 600; line-height: 1.35; }
.pg-unit-meta,
.pg-unit-cite { font-size: var(--guide-fs-2xs); color: var(--guide-color-text-secondary, #6B6B73); margin-top: 3px; line-height: 1.4; }
.pg-unit-cite { font-style: italic; }
.pg-unit-warn { font-size: var(--guide-fs-2xs); color: var(--guide-color-status-warn, #B26A00); margin-top: 4px; line-height: 1.4; }
.pg-unit-none { font-size: var(--guide-fs-xs); color: var(--guide-color-text-secondary, #6B6B73); line-height: 1.45; }

/* Confidence is shown as a number, not a colour alone — colour is the
   secondary cue so the value survives a monochrome or colour-blind read. */
.pg-conf {
  margin-left: auto; font-size: var(--guide-fs-2xs); font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 1px 6px; border-radius: 99px; border: 1px solid currentcolor;
}
.pg-conf--high { color: var(--guide-color-status-ok, #157347); }
.pg-conf--mid { color: var(--guide-color-status-warn, #B26A00); }
.pg-conf--low { color: var(--guide-color-status-crit, var(--guide-color-status-crit)); }

.pg-foot {
  font-size: var(--guide-fs-2xs); line-height: 1.5; color: var(--guide-color-text-secondary, #6B6B73);
  border-top: 1px solid var(--guide-color-border-default, rgba(0, 0, 0, 0.10));
  padding-top: 10px; margin: 4px 0 0;
}

@media (prefers-reduced-motion: no-preference) {
  .pg-unit { transition: border-color 140ms ease; }
}
