/* ══════════════════════════════════════════════════════════════
   Enforcement Command Center — enforce-hub.css
   Accent overrides + enforcement-specific components
   ══════════════════════════════════════════════════════════════ */

/* ── Root Variables ── */
.ef-root {
  --hub-accent: var(--guide-color-action);
  --ef-bg-dark: #1a1625;
  --ef-border: rgba(153,27,27,0.25);
  --ef-text-muted: #9ca3af;
}

/* Text on --ef-bg-dark surfaces, scoped to .ef-root ON PURPOSE: several ef
   components mount outside .ef-root, where --ef-bg-dark fails to resolve and
   the card renders light — an unscoped white here turns those panels
   white-on-light (Basin Enforcement Card, 2026-08-15). The color must apply
   only where the dark ground does. */
.ef-root .ef-violation-card,
.ef-root .ef-enforcement-card,
.ef-root .ef-dashboard,
.ef-root .ef-basin-card,
.ef-root .ef-calendar-month,
.ef-root .ef-penalty-chart,
.ef-root .ef-permit-col,
.ef-root .ef-kpi-card__value { color: var(--guide-color-on-dark, rgba(255, 255, 255, 0.95)); }

/* ── Alert refinements ── */
.ef-alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; font-size: var(--text-md); display: flex; align-items: center; gap: 8px; line-height: 1.45; }
.ef-alert--critical { background: color-mix(in srgb, var(--guide-color-status-crit) 12%, transparent); border: 1px solid var(--guide-color-line); color: #fca5a5; box-shadow: var(--guide-shadow-raised); }
.ef-alert--warn { background: color-mix(in srgb, var(--guide-color-ochre) 10%, transparent); border: 1px solid var(--guide-color-line); color: #fcd34d; }
.ef-alert--info { background: rgba(37,99,235,0.1); border: 1px solid var(--guide-color-line); color: #93c5fd; }
.ef-alert svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Violation Cards ── */
.ef-violation-card { background: var(--ef-bg-dark); border: 1px solid var(--ef-border); border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.ef-violation-card__header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ef-agency-badge { font-size: var(--text-xs); font-weight: 700; text-transform: var(--guide-label-case, uppercase); letter-spacing: 0.5px; padding: 2px 8px; border-radius: 4px; }
.ef-agency-badge--dnrc { background: rgba(37,99,235,0.2); color: #93c5fd; }
.ef-agency-badge--deq { background: color-mix(in srgb, var(--guide-color-moss) 20%, transparent); color: #6ee7b7; }
.ef-agency-badge--fwp { background: rgba(120,53,15,0.2); color: var(--guide-color-ink-soft); }
.ef-agency-badge--epa { background: color-mix(in srgb, var(--guide-color-plum) 20%, transparent); color: #c4b5fd; }
.ef-severity-indicator { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ef-severity-indicator--critical { background: var(--guide-color-status-crit); box-shadow: none; }
.ef-severity-indicator--warn { background: var(--guide-color-ochre); }
.ef-severity-indicator--info { background: var(--guide-color-lake); }
.ef-status-pill { font-size: var(--text-xs); padding: 2px 8px; border-radius: 12px; font-weight: 600; }
.ef-status-pill--active { background: color-mix(in srgb, var(--guide-color-action) 15%, transparent); color: #fca5a5; }
.ef-status-pill--pending { background: color-mix(in srgb, var(--guide-color-ochre) 15%, transparent); color: #fcd34d; }
.ef-status-pill--closed { background: color-mix(in srgb, var(--guide-color-moss) 15%, transparent); color: #6ee7b7; }

/* ── Enforcement Cards Grid ── */
.ef-enforcement-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.ef-enforcement-card { background: var(--ef-bg-dark); border: 1px solid var(--ef-border); border-radius: 10px; padding: 14px; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.ef-enforcement-card:hover {box-shadow: var(--guide-shadow-raised); }

/* ── Panel Transitions ── */
.ef-panel-transition { animation: efPanelIn 0.25s ease-out; }

/* ══════════════════════════════════════════════════════════════
   Data Status Badge — provenance chip on every panel.
   Component lives in src/data-status-badge.js; CSS lives here so all
   hubs inherit the editorial styling automatically (the chip is hub-
   agnostic and uses --guide-ds-* CSS vars set inline by the renderer).
   ══════════════════════════════════════════════════════════════ */
.guide-data-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  font-size: var(--guide-fs-2xs);
  font-weight: 600;
  letter-spacing: 0.4px;
  background: var(--guide-ds-bg, rgba(59,90,122,0.08));
  /* --guide-ds-fg is written inline per state by src/data-status-badge.js and
     is a DARK colour chosen against a 10-14% wash on a light page. On the
     dark palette that wash composites to near-black and the label goes with
     it — 1.34:1, measured inside the hardrock wizard, on the element whose
     whole job is to say where a number came from.
     --guide-ds-fg-dark is declared ONLY in the dark block of
     theme-tokens.css, so in light it is undefined and the per-state inline
     colour comes through untouched. Written this way round because an
     inline custom property would beat any rule that tried to redefine it,
     and because a per-sheet [data-theme="dark"] block is the pattern that
     produced the 968 patch blocks already in the tree. */
  color: var(--guide-ds-fg-dark, var(--guide-ds-fg, #243A4D));
  line-height: 1.4;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: help;
  user-select: none;
  vertical-align: middle;
}
.guide-data-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--guide-ds-dot, #3B5A7A);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}
.guide-data-status__label {
  text-transform: var(--guide-label-case, uppercase);
  letter-spacing: 0.6px;
}
.guide-data-status__cite {
  font-weight: 500;
  opacity: 0.9;
  text-transform: none;
  letter-spacing: 0.2px;
}
.guide-data-status__cite::before { content: '· '; opacity: 0.5; padding-right: 2px; }
.guide-data-status__when {
  font-weight: 500;
  opacity: 0.75;
  text-transform: none;
}
.guide-data-status__when::before { content: '· '; opacity: 0.5; padding-right: 2px; }
.guide-data-status--live    { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--guide-color-moss) 20%, transparent); }
.guide-data-status--sample  { box-shadow: inset 0 0 0 1px rgba(180,83,9,0.20); }
.guide-data-status--sidecar { box-shadow: inset 0 0 0 1px rgba(15,118,110,0.20); }
.guide-data-status--ai      { box-shadow: inset 0 0 0 1px rgba(132,166,90,0.25); }
.guide-data-status--mixed   { box-shadow: inset 0 0 0 1px rgba(59,90,122,0.20); }

/* Wrapper for status row (multiple chips at once) */
.guide-data-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--guide-color-border-subtle, rgba(0,0,0,0.06));
}

/* ── Dashboard (A-F Grade) ── */
.ef-dashboard { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 16px; background: var(--ef-bg-dark); border: 1px solid var(--ef-border); border-radius: 12px; }
.ef-dashboard__grade-area { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ef-grade-circle { width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 800; border: 4px solid; }
.ef-grade-circle--a { border-color: var(--guide-color-moss); color: #6ee7b7; background: color-mix(in srgb, var(--guide-color-moss) 10%, transparent); }
.ef-grade-circle--b { border-color: var(--guide-color-moss); color: #86efac; background: color-mix(in srgb, var(--guide-color-moss) 10%, transparent); }
.ef-grade-circle--c { border-color: #eab308; color: #fde047; background: rgba(234,179,8,0.1); }
.ef-grade-circle--d { border-color: var(--guide-color-ochre); color: #fcd34d; background: color-mix(in srgb, var(--guide-color-ochre) 10%, transparent); }
.ef-grade-circle--f { border-color: var(--guide-color-status-crit); color: #fca5a5; background: color-mix(in srgb, var(--guide-color-status-crit) 10%, transparent); }
.ef-dashboard__indicators { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ef-indicator-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: rgba(255,255,255,0.03); border-radius: 8px; }
.ef-indicator-row__label { font-size: var(--text-xxs); color: var(--ef-text-muted); flex: 1; }
.ef-indicator-row__value { font-size: var(--text-md); font-weight: 700; min-width: 36px; text-align: right; }
.ef-indicator-row__bar { width: 60px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.ef-indicator-row__bar-fill { height: 100%; border-radius: 3px; transition: width 0.4s ease; }

/* ── Scorecard ── */
.ef-scorecard { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.ef-scorecard th { padding: 8px 10px; text-align: left; font-size: var(--text-xs); text-transform: var(--guide-label-case, uppercase); letter-spacing: 0.6px; color: var(--ef-text-muted); border-bottom: 1px solid var(--ef-border); }
.ef-scorecard td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.ef-scorecard-domain { font-weight: 600; }
.ef-scorecard-weight { color: var(--ef-text-muted); font-size: var(--text-xxs); }

/* ── Grade Badge ── */
.ef-grade-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; font-weight: 800; font-size: var(--text-md); }
.ef-grade-badge--a { background: color-mix(in srgb, var(--guide-color-moss) 20%, transparent); color: #6ee7b7; }
.ef-grade-badge--b { background: color-mix(in srgb, var(--guide-color-moss) 20%, transparent); color: #86efac; }
.ef-grade-badge--c { background: rgba(234,179,8,0.2); color: #fde047; }
.ef-grade-badge--d { background: color-mix(in srgb, var(--guide-color-ochre) 20%, transparent); color: #fcd34d; }
.ef-grade-badge--f { background: color-mix(in srgb, var(--guide-color-status-crit) 20%, transparent); color: #fca5a5; }

/* ── Composite Ring (SVG) ── */
.ef-composite-ring { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.ef-composite-ring__label { position: absolute; font-size: var(--text-sm); font-weight: 700; }

/* ── Basin Cards ── */
.ef-basin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ef-basin-card { background: var(--ef-bg-dark); border: 1px solid var(--ef-border); border-radius: 10px; padding: 12px; }
.ef-basin-card__name { font-weight: 700; font-size: var(--text-md); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.ef-basin-card__stat { font-size: var(--text-xxs); color: var(--ef-text-muted); display: flex; justify-content: space-between; padding: 2px 0; }
.ef-basin-card__stat-val { font-weight: 600; color: var(--guide-color-on-dark, rgba(255, 255, 255, 0.95)); }

/* ── Timeline ── */
.ef-timeline { position: relative; padding-left: 24px; margin: 14px 0; }
.ef-timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--ef-border); }
.ef-timeline-node { position: relative; padding: 10px 0 10px 16px; }
.ef-timeline-node::before { content: ''; position: absolute; left: -20px; top: 14px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid; background: var(--ef-bg-dark); }
.ef-timeline-node--complete::before { border-color: var(--guide-color-moss); background: color-mix(in srgb, var(--guide-color-moss) 30%, transparent); }
.ef-timeline-node--active::before { border-color: var(--guide-color-lake); background: rgba(37,99,235,0.3); box-shadow: none; }
.ef-timeline-node--pending::before { border-color: #6b7280; }
.ef-timeline-node--overdue::before { border-color: var(--guide-color-status-crit); background: color-mix(in srgb, var(--guide-color-status-crit) 30%, transparent); }
.ef-timeline-node__title { font-weight: 600; font-size: var(--text-md); }
.ef-timeline-node__detail { font-size: var(--text-xxs); color: var(--ef-text-muted); margin-top: 3px; }
.ef-timeline-node__days { font-size: var(--text-xs); color: var(--ef-text-muted); font-style: italic; }

/* ── Calendar ── */
.ef-calendar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.ef-calendar-month { background: var(--ef-bg-dark); border: 1px solid var(--ef-border); border-radius: 8px; padding: 10px; min-height: 80px; }
.ef-calendar-month__label { font-size: var(--text-xxs); font-weight: 700; text-transform: var(--guide-label-case, uppercase); letter-spacing: 0.5px; margin-bottom: 6px; }
.ef-calendar-month--spring .ef-calendar-month__label { color: #6ee7b7; }
.ef-calendar-month--summer .ef-calendar-month__label { color: #fcd34d; }
.ef-calendar-month--fall .ef-calendar-month__label { color: #fdba74; }
.ef-calendar-month--winter .ef-calendar-month__label { color: #93c5fd; }
.ef-calendar-event { font-size: var(--text-xs); padding: 2px 6px; border-radius: 4px; margin-bottom: 3px; display: block; }
.ef-calendar-event--dnrc { background: rgba(37,99,235,0.15); color: #93c5fd; }
.ef-calendar-event--deq { background: color-mix(in srgb, var(--guide-color-moss) 15%, transparent); color: #6ee7b7; }
.ef-calendar-event--fwp { background: rgba(120,53,15,0.15); color: var(--guide-color-ink-soft); }
.ef-calendar-event--court { background: color-mix(in srgb, var(--guide-color-plum) 15%, transparent); color: #c4b5fd; }

/* ── Inspection Table ── */
.ef-inspection-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.ef-inspection-table th { padding: 8px 10px; text-align: left; font-size: var(--text-xs); text-transform: var(--guide-label-case, uppercase); letter-spacing: 0.6px; color: var(--ef-text-muted); border-bottom: 1px solid var(--ef-border); cursor: pointer; }
.ef-inspection-table th:hover { color: var(--guide-color-on-dark, rgba(255, 255, 255, 0.95)); }
.ef-inspection-table td { padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.ef-inspection-table tr:hover td { background: rgba(153,27,27,0.06); }
.ef-inspection-table .ef-overdue { color: #fca5a5; font-weight: 600; }

/* ── Hex Legend ── */
.ef-hex-legend { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: rgba(255,255,255,0.03); border-radius: 8px; margin-bottom: 10px; font-size: var(--text-xxs); }
.ef-hex-legend__swatch { width: 14px; height: 14px; border-radius: 3px; }

/* ── Penalty Chart ── */
.ef-penalty-chart { padding: 12px; background: var(--ef-bg-dark); border: 1px solid var(--ef-border); border-radius: 10px; }
.ef-penalty-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: var(--text-sm); }
.ef-penalty-bar__label { width: 100px; text-align: right; color: var(--ef-text-muted); font-size: var(--text-xxs); }
.ef-penalty-bar__track { flex: 1; height: 16px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.ef-penalty-bar__fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.ef-penalty-bar__value { min-width: 60px; font-weight: 600; font-size: var(--text-xxs); }

/* ── Regulatory Matrix ── */
.ef-reg-matrix { width: 100%; border-collapse: collapse; font-size: var(--text-xxs); }
.ef-reg-matrix th { padding: 6px 8px; font-size: var(--text-xs); text-transform: var(--guide-label-case, uppercase); letter-spacing: 0.4px; color: var(--ef-text-muted); border-bottom: 1px solid var(--ef-border); white-space: nowrap; }
.ef-reg-matrix td { padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,0.03); text-align: center; }
.ef-reg-matrix__primary { color: #6ee7b7; font-weight: 700; }
.ef-reg-matrix__secondary { color: #93c5fd; font-size: var(--text-xs); }
.ef-reg-matrix__none { color: rgba(255,255,255,0.15); }
.ef-reg-matrix__violation { text-align: left; font-weight: 500; white-space: nowrap; }

/* ── Compact Table ── */
.ef-compact-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.ef-compact-table th { padding: 8px 10px; font-size: var(--text-xs); text-transform: var(--guide-label-case, uppercase); letter-spacing: 0.5px; color: var(--ef-text-muted); border-bottom: 1px solid var(--ef-border); text-align: left; }
.ef-compact-table td { padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.ef-compact-surplus { color: #6ee7b7; font-weight: 600; }
.ef-compact-deficit { color: #fca5a5; font-weight: 600; }

/* ── Adjudication Progress Bars ── */
.ef-adjudication-progress { margin: 10px 0; }
.ef-adjudication-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ef-adjudication-bar__label { width: 120px; font-size: var(--text-xxs); color: var(--ef-text-muted); text-align: right; }
.ef-adjudication-bar__track { flex: 1; height: 14px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; position: relative; }
.ef-adjudication-bar__fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #991B1B, var(--guide-color-mt-red-bright, #DC2626)); transition: width 0.4s ease; }
.ef-adjudication-bar__pct { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: var(--text-xs); font-weight: 600; }

/* ── Permit Pipeline (Kanban) ── */
.ef-permit-pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.ef-permit-col { background: var(--ef-bg-dark); border: 1px solid var(--ef-border); border-radius: 8px; padding: 10px; min-height: 100px; }
.ef-permit-col__title { font-size: var(--text-xs); font-weight: 700; text-transform: var(--guide-label-case, uppercase); letter-spacing: 0.5px; color: var(--ef-text-muted); margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--ef-border); }
.ef-permit-item { font-size: var(--text-xxs); padding: 6px 8px; background: rgba(255,255,255,0.03); border-radius: 6px; margin-bottom: 4px; }
.ef-permit-item__id { font-weight: 600; color: var(--guide-color-on-dark, rgba(255, 255, 255, 0.95)); }
.ef-permit-item__basin { font-size: var(--text-xs); color: var(--ef-text-muted); }

/* ── Form Inputs ── */
.ef-form-group { margin-bottom: 12px; }
.ef-form-label { display: block; font-size: var(--text-xxs); font-weight: 600; color: var(--ef-text-muted); margin-bottom: 4px; text-transform: var(--guide-label-case, uppercase); letter-spacing: 0.4px; }
.ef-form-select, .ef-form-input { width: 100%; padding: 8px 10px; background: rgba(255,255,255,0.06); border: 1px solid var(--ef-border); border-radius: 6px; color: var(--guide-color-on-dark, rgba(255, 255, 255, 0.95)); font-size: var(--text-md); }
.ef-form-select:focus, .ef-form-input:focus { outline: none; border-color: var(--guide-color-action); box-shadow: 0 0 0 2px rgba(153,27,27,0.2); }

/* ── Search Bar ── */
.ef-search-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.ef-search-bar input { flex: 1; padding: 8px 12px; background: rgba(255,255,255,0.06); border: 1px solid var(--ef-border); border-radius: 8px; color: var(--guide-color-on-dark, rgba(255, 255, 255, 0.95)); font-size: var(--text-md); }
.ef-search-bar select { padding: 8px 10px; background: rgba(255,255,255,0.06); border: 1px solid var(--ef-border); border-radius: 8px; color: var(--guide-color-on-dark, rgba(255, 255, 255, 0.95)); font-size: var(--text-sm); }

/* ── Sortable Table ── */
.ef-sortable-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.ef-sortable-table th { padding: 8px 10px; text-align: left; font-size: var(--text-xs); text-transform: var(--guide-label-case, uppercase); letter-spacing: 0.5px; color: var(--ef-text-muted); border-bottom: 1px solid var(--ef-border); cursor: pointer; user-select: none; }
.ef-sortable-table th:hover { color: var(--guide-color-on-dark, rgba(255, 255, 255, 0.95)); }
.ef-sortable-table th.ef-sorted::after { content: ' \25B2'; font-size: var(--guide-fs-2xs); }
.ef-sortable-table th.ef-sorted-desc::after { content: ' \25BC'; font-size: var(--guide-fs-2xs); }
.ef-sortable-table td { padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.ef-sortable-table tr:hover td { background: rgba(153,27,27,0.06); }

/* ── KPI Cards ── */
.ef-kpi-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 14px; }
.ef-kpi-card { background: var(--ef-bg-dark); border: 1px solid var(--ef-border); border-radius: 8px; padding: 10px; text-align: center; }
.ef-kpi-card__value { font-size: var(--guide-fs-2xl); font-weight: 800; }
.ef-kpi-card__label { font-size: var(--text-xs); color: var(--ef-text-muted); text-transform: var(--guide-label-case, uppercase); letter-spacing: 0.4px; margin-top: 2px; }

/* ── Insufficient evidence ──
   Shown instead of a queue when the upstream did not answer, returned
   nothing, or has not answered yet. The dashed border is the tell: a solid
   card reads as a finding, and "no rows" must never look like "nothing is
   pending". Kept here rather than inline so the three states share one
   treatment. */
.ef-insufficient { padding: 14px 16px; border-radius: 8px; border: 1px dashed var(--ef-border); margin-bottom: 14px; }
.ef-insufficient__title { font-weight: 700; font-size: var(--text-sm); margin-bottom: 4px; }
.ef-insufficient__body { font-size: var(--text-sm); line-height: 1.55; }

/* ── Skeleton / Shimmer ── */
.ef-shimmer { background: linear-gradient(90deg, rgba(153,27,27,0.08) 25%, rgba(153,27,27,0.15) 50%, rgba(153,27,27,0.08) 75%); background-size: 200% 100%; animation: efShimmer 1.5s infinite; border-radius: 8px; }

/* ── Trend Arrow ── */
.ef-trend { font-size: var(--text-xxs); font-weight: 600; }
.ef-trend--up { color: #6ee7b7; }
.ef-trend--down { color: #fca5a5; }
.ef-trend--flat { color: var(--ef-text-muted); }

/* ── Methodology Notes ── */
.ef-methodology { font-size: var(--text-xxs); color: var(--ef-text-muted); padding: 10px 12px; background: rgba(255,255,255,0.02); border-radius: 8px; margin-top: 12px; line-height: 1.5; }
.ef-methodology strong { color: var(--guide-color-on-dark, rgba(255, 255, 255, 0.95)); }

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .ef-enforcement-cards { grid-template-columns: 1fr; }
  .ef-dashboard { grid-template-columns: 1fr; }
  .ef-dashboard__indicators { grid-template-columns: 1fr; }
  .ef-basin-cards { grid-template-columns: 1fr; }
  .ef-calendar { grid-template-columns: repeat(2, 1fr); }
  .ef-permit-pipeline { grid-template-columns: repeat(2, 1fr); }
  .ef-reg-matrix { font-size: var(--text-xs); }
  .ef-reg-matrix th, .ef-reg-matrix td { padding: 4px 5px; }
}
@media (max-width: 480px) {
  .ef-calendar { grid-template-columns: 1fr; }
  .ef-permit-pipeline { grid-template-columns: 1fr; }
  .ef-kpi-cards { grid-template-columns: repeat(2, 1fr); }
  .ef-grade-circle { width: 90px; height: 90px; font-size: var(--guide-fs-3xl); }
}

/* ─── Dark theme overrides ─────────────────────────────────────────── */
[data-theme="dark"] .ef-alert--warn { border-left-color: var(--guide-color-status-watch); }
[data-theme="dark"] .ef-severity-indicator--warn { background: var(--guide-color-status-watch); }
