/* ═══════════════════════════════════════════════════════════
   ADVENNT — components.css
   Component classes lifted from the prior style.css.
   Authority: AD-DESIGN-LANGUAGE-V1 §3 A6, BRIEF-3 §4.
   Loaded AFTER base.css.
   Doctrine Rule 2 — zero hex/rgb literals. Every colour is var(--*)
   or color-mix(in srgb, var(--*) …%, transparent | var(--*)).
   ═══════════════════════════════════════════════════════════ */

/* ── Cards ── */
.card {
  background: linear-gradient(180deg, var(--surface), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-5), 2.5vw, var(--space-8));
  overflow: hidden;
  transition: border-color var(--motion-base) var(--motion-easing);
}

.card:hover {
  border-color: var(--accent);
}

.card--sm {
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  padding: 3px var(--space-3);
  border-radius: var(--radius-pill);
  text-transform: capitalize;
}

.badge--green {
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  background: color-mix(in srgb, var(--green) 8%, transparent);
}
.badge--amber {
  color: var(--amber);
  border: 1px solid color-mix(in srgb, var(--amber) 20%, transparent);
  background: color-mix(in srgb, var(--amber) 8%, transparent);
}
.badge--red {
  color: var(--red);
  border: 1px solid color-mix(in srgb, var(--red) 20%, transparent);
  background: color-mix(in srgb, var(--red) 8%, transparent);
}

/* ── TLA Dot ── */
.tla-dot {
  display: inline-block;
  width: var(--space-3);
  height: var(--space-3);
  border-radius: 50%;
}
.tla-dot--green { background: var(--green); }
.tla-dot--amber { background: var(--amber); }
.tla-dot--red   { background: var(--red); }

/* ── Score Bar ── */
.score-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 120px;
}

.score-bar__track {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  flex: 1;
  overflow: hidden;
}

.score-bar__fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.score-bar__label {
  font-family: var(--mono);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  min-width: 36px;
  text-align: right;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  padding: 11px var(--space-6);
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all var(--motion-base) var(--motion-easing);
}

.btn--primary {
  color: var(--bg);
  background: var(--accent);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--accent) 85%, var(--text) 15%);
  text-decoration: none;
}

.btn--secondary {
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--line);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--text);
  text-decoration: none;
}

/* ── Table ── */
.tracker-table {
  width: 100%;
  border-collapse: collapse;
}

.tracker-table th {
  font-family: var(--mono);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-weight: var(--font-weight-medium);
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
}

.tracker-table td {
  padding: 14px var(--space-4);
  vertical-align: middle;
  border-bottom: 1px solid var(--line-subtle);
}

.tracker-table tr:last-child td {
  border-bottom: none;
}

.tracker-table .jurisdiction-cell {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.tracker-table .jurisdiction-cell .flag {
  font-size: 22px;
  line-height: 1;
}

.tracker-table .jurisdiction-cell a {
  font-weight: var(--font-weight-semibold);
  color: var(--text);
}

.tracker-table .jurisdiction-cell a:hover {
  color: var(--accent);
}

/* ── KPI Cards ── */
.kpi-value {
  font-size: 32px;
  font-weight: var(--font-weight-bold);
  color: var(--text);
  line-height: 1.1;
}

.kpi-sub {
  font-size: var(--font-size-sm);
  color: var(--text-faint);
  margin-top: var(--space-1);
}

/* ── At-a-glance / KPI card grid (cures defect 6) ── */
.kpi-grid,
.at-a-glance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
}

.kpi-card,
.at-a-glance-card {
  min-height: 120px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

/* ── Pipeline Steps ── */
.step {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.step__num {
  font-family: var(--mono);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--accent);
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.step__title {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  color: var(--text);
}

.step__desc {
  font-size: var(--font-size-sm);
  color: var(--text-faint);
  margin-top: 2px;
}

/* ── List Items (audience, tiers) ── */
.list-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line-subtle);
}

.list-item:last-child { border-bottom: none; }

.list-item__title {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  color: var(--text);
}

.list-item__title--accent {
  color: var(--accent);
}

.list-item__desc {
  font-size: var(--font-size-sm);
  color: var(--text-faint);
  margin-top: 2px;
}

/* ── Header / Nav ── */
.site-header {
  padding: var(--space-6) 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-logo__text {
  line-height: 1;
}

.site-logo__name {
  font-weight: var(--font-weight-bold);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--text);
}

.site-logo__sub {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-top: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.site-nav a {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: var(--font-weight-medium);
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Footer ── */
.site-footer {
  padding: var(--space-10) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer__brand {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  letter-spacing: 0.03em;
  color: var(--text);
}

.site-footer__tagline {
  font-size: var(--font-size-sm);
  color: var(--text-faint);
  margin-top: var(--space-2);
}

.site-footer__powered {
  font-family: var(--mono);
  font-size: var(--font-size-xs);
  color: var(--text-faint);
  letter-spacing: 0.04em;
  margin-top: 6px;
}

/* ── Jurisdiction Page Specifics ── */
.jurisdiction-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.jurisdiction-flag {
  font-size: 48px;
  line-height: 1;
}

.jurisdiction-meta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.category-section {
  margin-bottom: var(--space-6);
}

.category-section h3 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
}

.indicator-card {
  background: var(--card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
}

.indicator-card__name {
  font-family: var(--mono);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.indicator-card__value {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  color: var(--text);
}

.indicator-card__rationale {
  font-size: var(--font-size-xs);
  color: var(--text-faint);
  margin-top: var(--space-1);
  line-height: var(--line-height-normal);
}

/* ── SUMMARY decoration suppression (cures defect 9) ── */
/* The prior style.css had no SUMMARY-specific border-left rule; the visible
   yellow vertical rule originates from inline styles emitted by
   pipeline/tools/build_jurisdiction_page.py (out of scope per BRIEF-3 §8).
   This rule strips any class-driven SUMMARY decoration so future
   class-based summaries default to no vertical rule. */
.brief-summary,
.summary-card,
.executive-overview {
  border-left: none;
}

/* ── Map Container ── */
#jurisdiction-map {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-6);
}

/* ── Responsive table scroll ── */
.table-scroll {
  overflow-x: auto;
}

/* ── Animated counter (JS progressive enhancement) ── */
[data-counter] {
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════
   FE-BD-2 — Jurisdiction tab UI
   ═══════════════════════════════════════════════════════════ */

/* ── Tab nav bar (cures defect 8) ── */
nav.jurisdiction-tab-nav,
.jurisdiction-tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-8);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-left: var(--px);
  padding-right: var(--px);
}

.jurisdiction-tab-nav::-webkit-scrollbar {
  display: none;
}

nav.jurisdiction-tab-nav [role="tab"],
.jurisdiction-tab-nav [role="tab"] {
  padding: var(--space-3) var(--space-4);
}

nav.jurisdiction-tab-nav [role="tab"][aria-selected="true"],
nav.jurisdiction-tab-nav [role="tab"].active,
.jurisdiction-tab-nav [role="tab"][aria-selected="true"],
.jurisdiction-tab-nav [role="tab"].active {
  border-bottom: 2px solid var(--accent);
  margin-bottom: -1px;
}

/* ── Tab buttons ── */
.tab-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: var(--space-3) var(--space-5);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
  -webkit-appearance: none;
}

.tab-btn:hover {
  color: var(--text);
  text-decoration: none;
}

.tab-btn[aria-selected="true"],
.tab-btn--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: var(--font-weight-semibold);
}

.tab-btn--link-out {
  color: var(--text-faint);
}

.tab-btn--link-out::after {
  content: "↗";
  font-size: var(--font-size-xs);
  opacity: 0.5;
  margin-left: 2px;
}

/* ── Tab panels — no-JS fallback ── */
.tab-panel[hidden] {
  display: block;
}

.js .tab-panel[hidden] {
  display: none;
}

/* ── Signals empty state ── */
.signals-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-6);
  text-align: center;
  color: var(--text-faint);
}

.signals-empty-state__icon {
  font-size: 40px;
  margin-bottom: var(--space-4);
  opacity: 0.4;
}

.signals-empty-state__title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.signals-empty-state__body {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  max-width: 380px;
}

/* ── Vertical filter strip (inside scorecard panel) ── */
.vertical-filter-strip {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-xs);
  font-family: var(--mono);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  -webkit-appearance: none;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.filter-btn[aria-pressed="true"],
.filter-btn--active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: var(--font-weight-semibold);
}

/* ── Scorecard panel layout ── */
.scorecard-panel-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}


/* ══════════════════════════════════════════════════════════════
   DL-V2 W1 PRIMITIVES — kpi-bloom + disclosure
   Source: asym-intel-internal:engine-assets/primitives/css/
   Authority: AD-2026-05-13-FE-DESIGN-LANGUAGE-V2 §4
   ══════════════════════════════════════════════════════════════ */

/* ─── kpi-bloom ─────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════
   kpi-bloom.css — KPI/stat tile with depth reveal
   AD-2026-05-13-FE-DESIGN-LANGUAGE-V2 §4 (density-tier Rule 10)
   Source of truth: asym-intel-internal:engine-assets/primitives/css/kpi-bloom.css
   ═══════════════════════════════════════════════════════════ */

.kpi-bloom {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--motion-base) var(--motion-easing),
              border-color var(--motion-base) var(--motion-easing);
}
.kpi-bloom:hover,
.kpi-bloom:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-2);
}
.kpi-bloom__eyebrow {
  font-family: var(--mono);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  display: block;
}
.kpi-bloom__value {
  font-family: var(--sans);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text);
  display: block;
}
.kpi-bloom__delta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-xs);
  font-family: var(--mono);
  font-weight: var(--font-weight-medium);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-top: var(--space-2);
}
.kpi-bloom__delta--up { background: rgba(4,120,87,0.12); color: var(--green); }
.kpi-bloom__delta--down { background: rgba(185,28,28,0.10); color: var(--red); }
.kpi-bloom__delta--flat { background: var(--accent-dim); color: var(--text-muted); }

/* Depth reveal — hidden at rest, visible on hover/focus-within */
.kpi-bloom__depth {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--motion-base) var(--motion-easing),
              transform var(--motion-base) var(--motion-easing);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-subtle);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: var(--line-height-normal);
}
.kpi-bloom:hover .kpi-bloom__depth,
.kpi-bloom:focus-within .kpi-bloom__depth {
  opacity: 1;
  transform: translateY(0);
}
.kpi-bloom__calc {
  font-family: var(--mono);
  font-size: var(--font-size-xs);
  color: var(--text-faint);
  margin-top: var(--space-2);
  display: block;
}
.kpi-bloom__source {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-xs);
  color: var(--accent);
  text-decoration: none;
  margin-top: var(--space-2);
}
.kpi-bloom__source:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .kpi-bloom,
  .kpi-bloom__depth {
    transition: none;
  }
}

/* ─── disclosure ─────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════
   disclosure.css — progressive-disclosure primitive
   AD-2026-05-13-FE-DESIGN-LANGUAGE-V2 §4 (density-tier Rule 9)
   Source of truth: asym-intel-internal:engine-assets/primitives/css/disclosure.css
   ═══════════════════════════════════════════════════════════ */

.disclosure {
  position: relative;
}
.disclosure__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  padding: var(--space-1) 0;
  transition: color var(--motion-fast) var(--motion-easing);
}
.disclosure__trigger:hover {
  color: var(--accent);
}
.disclosure__trigger::after {
  content: '▸';
  display: inline-block;
  transition: transform var(--motion-base) var(--motion-easing);
  font-size: 10px;
}
.disclosure[data-disclosure-state="expanded"] .disclosure__trigger::after {
  transform: rotate(90deg);
}
.disclosure__body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--motion-base) var(--motion-easing),
              opacity var(--motion-fast) var(--motion-easing);
}
.disclosure[data-disclosure-state="expanded"] .disclosure__body {
  max-height: 600px;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .disclosure__trigger::after,
  .disclosure__body {
    transition: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   DL-V2 W1 REPORTS — Reports page component blocks
   Scoped to /reports/ surface. Authority: BRIEF-DL-V2-W1-REPORTS.
   ══════════════════════════════════════════════════════════════ */

/* ─── reports-cover (T0 eyebrow + T1 headline/lede) ───────── */
.reports-cover {
  padding: 120px 48px;
  background: linear-gradient(135deg, var(--bg), var(--surface));
  border-bottom: 1px solid var(--line);
}
.reports-cover h1 {
  font-family: var(--sans);
  font-size: clamp(36px, 5vw, 72px);
  line-height: var(--line-height-tight);
  margin: 0;
  font-weight: var(--font-weight-semibold);
}
.reports-cover h1 em {
  color: var(--accent2);
  font-style: normal;
}
.reports-cover p {
  color: var(--text-muted);
  font-size: 18px;
  margin: 24px 0 0;
  max-width: 560px;
}
.reports-cover .meta {
  color: var(--text-faint);
  margin-top: 40px;
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* ─── reports-sect (content section, T1) ──────────────────── */
.reports-sect {
  padding: 56px 48px;
  border-bottom: 1px solid var(--line);
}
.reports-sect h2 {
  font-family: var(--sans);
  font-weight: var(--font-weight-semibold);
  font-size: 32px;
  margin: 0 0 24px;
}

/* ─── kpi-bloom-grid layout ────────────────────────────────── */
.kpi-bloom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.kpi-bloom-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* ─── twocol utility (reports) ─────────────────────────────── */
.twocol {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

/* ─── pull-quote (T0) ──────────────────────────────────────── */
.pull-quote {
  border-left: 3px solid var(--accent2);
  padding: 0 0 0 16px;
  font-family: var(--sans);
  font-size: 20px;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── rank-card + rank-row (T1) ────────────────────────────── */
.rank-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.rank-row {
  display: grid;
  grid-template-columns: 30px 1fr auto auto;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 14px;
}
.rank-row b {
  color: var(--accent2);
  font-family: var(--sans);
  font-weight: var(--font-weight-bold);
}
.rank-row--header {
  background: var(--card);
}

/* ─── dotX status dots ─────────────────────────────────────── */
.dotX {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}
.g { background: var(--green); }
.a { background: var(--amber); }
.r { background: var(--red); }

/* ─── reports-gate (T0 CTA) ────────────────────────────────── */
.reports-gate {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.reports-gate h3 {
  font-family: var(--sans);
  font-weight: var(--font-weight-semibold);
  margin: 0;
  font-size: 28px;
  color: var(--text);
}

/* ─── btn-primary disabled state (reports-gate) ────────────── */
.btn-primary--disabled,
.btn-primary[aria-disabled="true"] {
  background: var(--line);
  color: var(--text-muted);
  border: 1px solid var(--line);
  cursor: default;
  opacity: .8;
  pointer-events: none;
}
/* ══════════════════════════════════════════════════════════════
   DL-V2 W2 SIGNALS — Signals page component blocks
   Hoisted from site/signals/index.html inline <style> Layer A.
   Authority: BRIEF-DL-V2-W2-SIGNALS §scope §8.
   Zero hex/rgb literals — all colours via var(--*).
   ══════════════════════════════════════════════════════════════ */

/* ── Signals page layout ──────────────────────────────────── */
.signals-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.signals-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  margin-top: 16px;
}

@media (max-width: 860px) {
  .signals-layout {
    grid-template-columns: 1fr;
  }
}

/* ── Filter panel ─────────────────────────────────────────── */
.filter h4 {
  font-family: var(--sans);
  font-weight: var(--font-weight-medium);
  margin: 14px 0 6px;
  font-size: 14px;
  color: var(--text);
}

.filter h4:first-child {
  margin-top: 0;
}

.filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
  transition: color var(--motion-fast, .12s);
}

.filter label:hover {
  color: var(--text);
}

.filter label input[type="radio"] {
  accent-color: var(--accent2);
}

/* ── Toolbar ──────────────────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* ── Signal impact arrows ─────────────────────────────────── */
.arrow {
  font-size: 13px;
  font-weight: 700;
}

.arrow.up   { color: var(--green); }
.arrow.down { color: var(--red); }
.arrow.flat { color: var(--amber); }

/* ── Delta chip ───────────────────────────────────────────── */
.delta {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .3px;
}

.delta.up   { background: color-mix(in srgb, var(--green)  15%, transparent); color: var(--green); }
.delta.down { background: color-mix(in srgb, var(--red)    15%, transparent); color: var(--red); }
.delta.flat { background: color-mix(in srgb, var(--amber)  12%, transparent); color: var(--amber); }

/* ── Tags ─────────────────────────────────────────────────── */
.tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.tag.country {
  cursor: pointer;
  transition: color var(--motion-fast, .12s);
}

.tag.country:hover {
  color: var(--accent2);
}

/* ── Empty state ──────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 60px 24px;
}

.empty-icon {
  font-size: 36px;
  margin-bottom: 16px;
  opacity: .4;
}

.empty-title {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: var(--font-weight-medium);
  margin: 0 0 8px;
  color: var(--text);
}

.empty-body {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto;
}

.empty-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  display: inline-block;
}
/* ══════════════════════════════════════════════════════════════
   DL-V2 W3 COMPARE — Compare page component blocks
   Hoisted from site/compare/index.html inline <style>.
   Authority: AD-2026-05-13-FE-DESIGN-LANGUAGE-V2 §4 (density-tier) + §5 (typography).
   Zero hex/rgb literals — all colours via var(--*).
   ══════════════════════════════════════════════════════════════ */

/* ── Compare page: nav ────────────────────────────────────── */
header.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

header.nav nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

header.nav nav a {
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  transition: color var(--motion-fast) var(--motion-easing);
  text-decoration: none;
}

header.nav nav a:hover,
header.nav nav a.active {
  color: var(--text);
}

header.nav nav a.signin {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text-muted);
}

/* ── Compare page: shell ──────────────────────────────────── */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 28px 80px;
}

h1 {
  font-family: var(--sans);
  font-size: 34px;
  margin: 0 0 6px;
  font-weight: var(--font-weight-semibold);
}

.lede {
  color: var(--text-muted);
  margin: 0 0 22px;
  font-size: var(--font-size-base);
}

/* ── Controls + chips ─────────────────────────────────────── */
.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: border-color var(--motion-fast) var(--motion-easing),
              color var(--motion-fast) var(--motion-easing),
              background var(--motion-fast) var(--motion-easing);
}

.chip.active {
  border-color: var(--accent2);
  color: var(--accent2);
  background: color-mix(in srgb, var(--accent2) 8%, transparent);
}

.chip:hover {
  border-color: var(--text-muted);
}

.chip.focus-active {
  border-color: var(--accent2);
  color: var(--accent2);
  background: color-mix(in srgb, var(--accent2) 15%, transparent);
  font-weight: var(--font-weight-semibold);
}

/* ── Add jurisdiction control ─────────────────────────────── */
.add {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.add select {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-family: var(--sans);
  outline: none;
}

.add select:focus {
  border-color: var(--accent2);
}

.add button {
  background: var(--accent2);
  color: var(--bg);
  border: 0;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  padding: 8px 14px;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-family: var(--sans);
}

/* ── Tools bar ────────────────────────────────────────────── */
.tools {
  display: flex;
  gap: 8px;
  margin-left: 10px;
}

.tools a,
.tools button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color var(--motion-fast) var(--motion-easing),
              color var(--motion-fast) var(--motion-easing);
}

.tools a:hover,
.tools button:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}

/* ── Focus mode hint bar (T0) ─────────────────────────────── */
.focus-bar {
  display: none;
  align-items: center;
  gap: 10px;
  background: color-mix(in srgb, var(--accent2) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent2) 25%, transparent);
  border-radius: var(--radius-lg);
  padding: 8px 14px;
  margin-bottom: 14px;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.focus-bar.visible {
  display: flex;
}

.focus-bar b {
  color: var(--accent2);
}

.focus-bar button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  cursor: pointer;
  font-family: var(--sans);
  margin-left: auto;
  transition: border-color var(--motion-fast) var(--motion-easing),
              color var(--motion-fast) var(--motion-easing);
}

.focus-bar button:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}

/* ── Matrix table container (T1) ──────────────────────────── */
.matrix {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: var(--font-size-sm);
  vertical-align: top;
}

thead th {
  background: var(--surface);
  position: sticky;
  top: 58px;
  font-size: var(--font-size-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

thead th.primary-col {
  color: var(--accent2);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.col-country {
  min-width: 200px;
}

.flag {
  font-size: 20px;
  margin-right: 8px;
}

.countryname {
  font-weight: var(--font-weight-semibold);
}

.reg {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  display: block;
  margin-top: 2px;
}

/* ── Score display (T1) ───────────────────────────────────── */
.score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.g { background: var(--green); }
.a { background: var(--amber); }
.r { background: var(--red); }
.u { background: var(--text-muted); }

/* ── Progress bars ────────────────────────────────────────── */
.bar {
  height: 5px;
  border-radius: var(--radius-sm);
  background: var(--card);
  position: relative;
  overflow: hidden;
  margin-top: 6px;
}

.bar > span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: var(--radius-sm);
}

.bar-lg {
  height: 8px;
  border-radius: var(--radius-sm);
  background: var(--card);
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.bar-lg > span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: var(--radius-sm);
}

/* ── Winner highlight ─────────────────────────────────────── */
.winner {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Remove column button ─────────────────────────────────── */
.remove {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--font-size-sm);
  margin-left: 6px;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  transition: color var(--motion-fast) var(--motion-easing);
}

.remove:hover {
  color: var(--red);
}

/* ── Empty state ──────────────────────────────────────────── */
.empty {
  padding: 48px;
  text-align: center;
  color: var(--text-muted);
}

/* ── Focus mode cell (T2) ─────────────────────────────────── */
td.focus-cell {
  padding: 14px 20px;
}

/* ── Status chips ─────────────────────────────────────────── */
.status-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: .03em;
}

.status-open {
  background: color-mix(in srgb, var(--green) 12%, transparent);
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
}

.status-restricted {
  background: color-mix(in srgb, var(--amber) 12%, transparent);
  color: var(--amber);
  border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent);
}

.status-closed,
.status-prohibited {
  background: color-mix(in srgb, var(--red) 10%, transparent);
  color: var(--red);
  border: 1px solid color-mix(in srgb, var(--red) 25%, transparent);
}

.status-mixed {
  background: color-mix(in srgb, var(--amber) 8%, transparent);
  color: var(--amber);
  border: 1px solid color-mix(in srgb, var(--amber) 20%, transparent);
}

.status-unknown {
  background: color-mix(in srgb, var(--text-muted) 8%, transparent);
  color: var(--text-muted);
  border: 1px solid var(--line);
}

/* ── Leader badges (T0) ───────────────────────────────────── */
.leader {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 0;
}

/* NOTE: .badge class is shared — the leader .badge variant uses
   the base .badge display but overrides padding/font-size for
   the leader strip context. */
.leader .badge {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: var(--font-size-sm);
  /* Reset shared badge pill shape for leader strip */
  display: block;
  text-transform: none;
  font-weight: var(--font-weight-regular);
}

.leader .badge b {
  color: var(--accent2);
}

/* ── Delta panel — .disclosure primitive wired (T1→T2) ───── */
.delta-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin-top: 18px;
  /* collapsed by default via .disclosure — no display:none needed;
     disclosure primitive drives max-height/opacity transition */
}

/* Override disclosure__body default for delta-output */
.delta-panel .disclosure__body {
  font-size: var(--font-size-sm);
  line-height: 1.7;
  color: var(--text-muted);
  min-height: 48px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.delta-panel .disclosure__body b {
  color: var(--text);
}

.delta-panel h3 {
  font-family: var(--sans);
  font-weight: var(--font-weight-medium);
  margin: 0 0 10px;
  font-size: var(--font-size-h3);
}

.delta-panel .delta-selects {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.delta-panel select,
.delta-panel button {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-family: var(--sans);
  outline: none;
}

.delta-panel select:focus {
  border-color: var(--accent2);
}

.delta-panel button.explain-btn {
  background: var(--accent2);
  color: var(--bg);
  border: 0;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
}

/* ── Footnote ─────────────────────────────────────────────── */
.footnote {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  margin-top: 16px;
}

/* ── Toast (T0) ───────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--accent2);
  color: var(--accent2);
  padding: 10px 18px;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  opacity: 0;
  transition: opacity var(--motion-base) var(--motion-easing);
  z-index: 100;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}

/* ── Compare: responsive overrides ───────────────────────── */
@media (max-width: 768px) {
  main {
    padding: 16px 16px 60px;
  }
  .controls {
    gap: 6px;
  }
  .tools {
    margin-left: 0;
  }
}

/* ══════════════════════════════════════════════════════════════
   DL-V2 W3 HOME — Home page component blocks
   Hoisted from site/index.html inline <style>.
   Authority: BRIEF-DL-V2-W3-HOME §scope §1.
   Zero hex/rgb literals — all colours via var(--*) or
   color-mix(in srgb, var(--*) …%, transparent).
   ══════════════════════════════════════════════════════════════ */

/* ── Shared container (site-wide utility) ─────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Hero section ─────────────────────────────────────────── */
.home-hero {
  padding: 80px 24px 64px;
  text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, transparent) 0%, transparent 100%), var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}
.home-hero h1 {
  font-weight: var(--font-weight-bold);
  font-size: clamp(var(--font-size-h2), 4.5vw, var(--font-size-h1));
  line-height: var(--line-height-tight);
  margin: 0 0 20px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text);
}
.hero-lead {
  color: var(--text-muted);
  font-size: var(--font-size-md);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: var(--line-height-relaxed);
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── CTA buttons (home-specific; .btn--primary/secondary in global) ── */
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: var(--font-weight-semibold);
  padding: 13px 28px;
  border-radius: 9px;
  font-size: var(--font-size-sm);
  display: inline-block;
  letter-spacing: 0.01em;
  transition: background var(--motion-fast) var(--motion-easing);
  text-decoration: none;
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 85%, var(--text) 15%);
  text-decoration: none;
  color: var(--bg);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--line);
  padding: 12px 22px;
  border-radius: 9px;
  font-size: var(--font-size-sm);
  display: inline-block;
  transition: border-color var(--motion-fast) var(--motion-easing),
              color var(--motion-fast) var(--motion-easing);
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ── Hero KPI bloom grid ──────────────────────────────────── */
.home-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 32px auto 0;
}

/* ── Map section ──────────────────────────────────────────── */
.home-map-section {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}
.section-title {
  font-weight: var(--font-weight-bold);
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--text);
  margin: 0 0 6px;
}
.section-sub {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin: 0 0 24px;
  max-width: 560px;
}
.home-map-frame-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  background: var(--card);
}
.home-map-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  pointer-events: none;
  user-select: none;
}
.home-map-frame-wrap noscript img { display: block; width: 100%; height: auto; }
.map-open-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  pointer-events: auto;
}
.map-overlay-stats {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.map-stat {
  color: var(--text-muted);
  font-size: 12px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  backdrop-filter: blur(4px);
}
.map-stat strong {
  color: var(--text);
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  display: block;
  line-height: 1;
}

/* ── Top by traffic section ───────────────────────────────── */
.traffic-section {
  padding: 56px 0 64px;
  background: var(--bg);
}
.traffic-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.traffic-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-subtle);
  text-decoration: none;
  color: inherit;
  transition: background var(--motion-fast) var(--motion-easing);
}
.traffic-row:last-child { border-bottom: none; }
.traffic-row:hover { background: var(--card-hover); text-decoration: none; }
.traffic-rank {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  min-width: 20px;
  text-align: right;
}
.traffic-flag { font-size: 24px; line-height: 1; flex-shrink: 0; }
.traffic-name {
  flex: 1;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  color: var(--text);
}
.traffic-summary {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
  line-height: 1.4;
}
.tla-pill {
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}
.tla-pill.green {
  background: color-mix(in srgb, var(--green) 10%, transparent);
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
}
.tla-pill.amber {
  background: color-mix(in srgb, var(--amber) 10%, transparent);
  color: var(--amber);
  border: 1px solid color-mix(in srgb, var(--amber) 20%, transparent);
}
.tla-pill.red {
  background: color-mix(in srgb, var(--red) 10%, transparent);
  color: var(--red);
  border: 1px solid color-mix(in srgb, var(--red) 20%, transparent);
}
.tla-pill.unknown {
  background: color-mix(in srgb, var(--text-faint) 10%, transparent);
  color: var(--text-faint);
  border: 1px solid color-mix(in srgb, var(--text-faint) 20%, transparent);
}
.traffic-arrow { color: var(--accent); font-size: 13px; flex-shrink: 0; }
.traffic-fallback-note {
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--mono);
  margin-top: 12px;
  text-align: right;
}
/* FE-VR-2: per-row source attribution badge (INV-FE-8, INV-FE-13) */
.traffic-source-badge {
  font-size: 10px;
  color: var(--text-faint);
  font-family: var(--mono);
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 4px;
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

/* ── Delta-state block (FE-CL4-W2-REC8) ──────────────────── */
.homepage-delta {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.homepage-delta .container { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; }
.homepage-delta__lead {
  flex: 1 1 300px;
  font-size: var(--font-size-base);
  color: var(--text);
  font-weight: var(--font-weight-semibold);
  min-height: 1.4em;
}
.homepage-delta__anchor {
  flex: 1 1 200px;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  min-height: 1.2em;
}
.delta-state__headline { margin: 0; line-height: 1.4; }
.delta-state__movements {
  margin: 4px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.delta-state__movement { font-size: 12px; color: var(--text-muted); }
.delta-state__jid { font-family: var(--mono); font-weight: var(--font-weight-semibold); color: var(--text); }
.delta-state__rating {
  padding: 1px 5px; border-radius: 4px;
  font-size: 11px; font-weight: var(--font-weight-semibold); text-transform: uppercase;
}
.delta-state__rating--green { background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green); }
.delta-state__rating--amber { background: color-mix(in srgb, var(--amber) 10%, transparent); color: var(--amber); }
.delta-state__rating--red   { background: color-mix(in srgb, var(--red)   10%, transparent); color: var(--red); }
.delta-state__arrow { color: var(--text-faint); }
.delta-state__anchor-count { margin: 0; font-weight: var(--font-weight-semibold); color: var(--text); }
.delta-state__anchor-breakdown { margin: 2px 0 0; color: var(--text-muted); }
.delta-state__unavailable { margin: 0; font-size: 12px; color: var(--text-faint); }
.homepage-delta__noscript { margin: 0; font-size: var(--font-size-sm); color: var(--text-muted); }

/* ── Responsive (FE-MT-1 deferral — desktop-only) ────────── */
@media (max-width: 640px) {
  .home-hero { padding: 56px 20px 48px; }
  .home-kpi-grid { grid-template-columns: 1fr; }
  .home-map-frame-wrap iframe { height: 280px; }
  .map-overlay-stats { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   DL-V2 W3 MAP — Map page component blocks
   Hoisted from site/map/index.html inline <style> Class B rules.
   Authority: BRIEF-DL-V2-W3-MAP §scope §1 (coupling audit).
   Zero undefined tokens — all colours via var(--*).
   Class A (JS-applied) and positioning-context rules remain inline.
   ══════════════════════════════════════════════════════════════ */

/* ── Status chips ─────────────────────────────────────────── */
.schip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.schip-open {
  background: rgba(93,187,99,.15);
  color: #5dbb63;
  border: 1px solid rgba(93,187,99,.3);
}

.schip-restricted {
  background: rgba(230,168,23,.12);
  color: #e6a817;
  border: 1px solid rgba(230,168,23,.25);
}

.schip-closed,
.schip-prohibited {
  background: rgba(227,106,134,.12);
  color: #e36a86;
  border: 1px solid rgba(227,106,134,.25);
}

.schip-mixed {
  background: rgba(100,120,200,.1);
  color: #8899cc;
  border: 1px dashed rgba(100,120,200,.3);
}

.schip-unknown {
  background: rgba(255,255,255,.05);
  color: var(--text-muted);
  border: 1px solid var(--line);
}

/* ── Partial-coverage badge ───────────────────────────────── */
.partial-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(230,168,23,.08);
  color: var(--accent2);
  border: 1px dashed rgba(230,168,23,.4);
  margin-top: 6px;
}

/* ── Country flag glyph ───────────────────────────────────── */
.flag {
  font-size: 26px;
  margin-right: 8px;
}

/* ── Vertical filter tag row (map panel) ──────────────────── */
.verticals {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* ── Jurisdiction detail section ──────────────────────────── */
.section {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.section h4 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Bullet list (jurisdiction detail) ───────────────────── */
.bullets {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

/* ── Signal rows ──────────────────────────────────────────── */
.sig-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.sig-row:last-child {
  border: 0;
}

.sig-time {
  color: var(--text-muted);
  font-size: 11px;
}

/* ── Panel CTA row ────────────────────────────────────────── */
.ctas {
  padding: 14px 18px;
  display: flex;
  gap: 10px;
}

/* ══════════════════════════════════════════════════════════════
   FU-V1 W1 COMPARE FUNNEL — Compare-funnel-specific layout rules
   Extends DL-V2 W3 COMPARE block (above). Do NOT redefine
   .chip, .delta-panel, .kpi-bloom, .disclosure, .badge — those
   are authoritative in this file from PR#254.
   Authority: BRIEF-FU-V1-4 §1 — AMEND only.
   Zero hex/rgb literals — all colours via var(--*).
   ══════════════════════════════════════════════════════════════ */

/* ── Compare headline strip (T0) ──────────────────────────── */
.compare-headline {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
}

.compare-headline__title {
  font-family: var(--sans);
  font-size: clamp(var(--font-size-h2), 4vw, 34px);
  font-weight: var(--font-weight-semibold);
  margin: 0 0 6px;
  color: var(--text);
}

.compare-headline__meta {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin: 0 0 14px;
}

/* Headline chip-row signal strip — uses chip-row primitive; additive layout only */
.compare-headline__signals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: 6px;
}

/* ── Controls bar wrapper ─────────────────────────────────── */
.compare-controls-bar {
  padding: 16px 0 0;
}

.compare-controls-bar__label {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── T1 compare-row list ──────────────────────────────────── */
.compare-rows {
  padding: 20px 0;
}

.compare-row-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ── Individual jurisdiction row (T1) ────────────────────── */
.compare-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--motion-fast) var(--motion-easing);
}

.compare-row:hover {
  border-color: color-mix(in srgb, var(--accent2) 35%, var(--line));
}

.compare-row__summary {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  flex-wrap: wrap;
}

/* Identity block: flag + name + regulator */
.compare-row__id {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 180px;
  flex: 1 1 180px;
}

.compare-row__flag {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.compare-row__name {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  color: var(--text);
}

.compare-row__reg {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  display: none; /* shown only on wider viewports */
}

.compare-row__remove {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--font-size-sm);
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  margin-left: var(--space-1);
  transition: color var(--motion-fast) var(--motion-easing);
  flex-shrink: 0;
}

.compare-row__remove:hover {
  color: var(--red);
}

/* Composite kpi-bloom — inherits .kpi-bloom base; layout constraint only */
.compare-row__composite {
  flex-shrink: 0;
}

.compare-row__composite .kpi-bloom {
  min-width: 80px;
}

/* Sparkline triplet */
.compare-row__sparklines {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-shrink: 0;
}

/* sparkline-wrap — layout container for sparkline primitive */
.sparkline-wrap {
  display: inline-block;
  width: 52px;
  height: 32px;
  vertical-align: middle;
}

/* Primary vertical score block */
.compare-row__vscore {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  min-width: 110px;
}

.compare-row__vscore-num {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  color: var(--text);
}

.compare-row__vscore-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-transform: capitalize;
}

/* Delta arrow — inherits .delta-arrow base; no re-declaration */
.compare-row__delta {
  flex-shrink: 0;
}

/* Disclosure trigger — row expand/collapse (OQ-FU-3) */
.compare-row__expand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 6px 12px;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--sans);
  margin-left: auto;
  transition: border-color var(--motion-fast) var(--motion-easing),
              color var(--motion-fast) var(--motion-easing);
  white-space: nowrap;
  flex-shrink: 0;
}

.compare-row__expand:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}

.compare-row__expand[aria-expanded="true"] {
  border-color: var(--accent2);
  color: var(--accent2);
  background: color-mix(in srgb, var(--accent2) 6%, transparent);
}

.disclosure-trigger__icon {
  font-size: 10px;
  line-height: 1;
  transition: transform var(--motion-fast) var(--motion-easing);
}

.compare-row__expand[aria-expanded="true"] .disclosure-trigger__icon {
  transform: rotate(180deg);
}

/* ── T2 detail panel — row-internal accordion ─────────────── */
/* disclosure-panel: inherits hidden attr; no display:none needed */
.compare-row__detail {
  border-top: 1px solid var(--line);
  padding: var(--space-4) var(--space-5);
  background: var(--card);
}

/* Detail table — category breakdown */
.compare-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-4);
}

.compare-detail-table th {
  text-align: left;
  font-size: var(--font-size-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.compare-detail-table td {
  padding: 8px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  vertical-align: middle;
}

.compare-detail-table tr:last-child td {
  border-bottom: 0;
}

/* CTA link at bottom of T2 panel */
.compare-row__cta {
  display: inline-block;
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  color: var(--accent2);
  text-decoration: none;
  transition: border-color var(--motion-fast) var(--motion-easing),
              background var(--motion-fast) var(--motion-easing);
}

.compare-row__cta:hover {
  border-color: var(--accent2);
  background: color-mix(in srgb, var(--accent2) 6%, transparent);
  text-decoration: none;
  color: var(--accent2);
}

/* ── delta-arrow primitive token display ──────────────────── */
/* Additive: .delta-arrow color/dir styling from primitives CSS.
   These rules add display shaping only — no color overrides. */
.delta-arrow {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.delta-arrow[data-dir="up"]   { color: var(--green); }
.delta-arrow[data-dir="down"] { color: var(--red); }
.delta-arrow[data-dir="flat"] { color: var(--text-muted); }

/* ── Responsive overrides ─────────────────────────────────── */
@media (min-width: 768px) {
  .compare-row__reg {
    display: inline;
  }
}

@media (max-width: 600px) {
  .compare-row__summary {
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
  }
  .compare-row__sparklines {
    display: none; /* hide sparkline triplet on narrow viewports */
  }
  .compare-row__vscore-label {
    display: none;
  }
}
