:root {
  --bg: #f5f7f3;
  --surface: #ffffff;
  --ink: #1e2528;
  --muted: #647071;
  --line: #dbe2dd;
  --navy: #0b2d57;
  --gold: #c89b2e;
  --teal: #167a75;
  --green: #5f8f3e;
  --amber: #c9892b;
  --red: #b65345;
  --violet: #7567a9;
  --blue: #3d6f9f;
  --shadow: 0 16px 36px rgba(34, 44, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 52px);
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 70%, #f7f2e7 100%);
  border-bottom: 4px solid var(--navy);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.ministry-logo {
  width: clamp(96px, 12vw, 138px);
  height: auto;
  flex: 0 0 auto;
  border-radius: 0 0 18px 0;
  box-shadow: 0 12px 28px rgba(11, 45, 87, 0.18);
}

.brand-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-toggle {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.lang-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-width: 42px;
  padding: 10px 11px;
}

.lang-button.active {
  background: var(--navy);
  color: #fff;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
}

h3 {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.2;
}

h4,
h5 {
  margin-bottom: 0;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: -4px 0 18px;
}

.coverage-grid article {
  padding: 12px 14px;
  border-left: 4px solid var(--green);
  background: #f9fbfa;
}

.coverage-grid article:nth-child(2) { border-left-color: var(--amber); }
.coverage-grid article:nth-child(3) { border-left-color: var(--red); }
.coverage-grid article:nth-child(4) { border-left-color: var(--violet); }

.coverage-grid strong,
.coverage-grid span { display: block; }

.coverage-grid strong {
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 13px;
}

.coverage-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.pillar-card {
  min-height: 282px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pillar-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pillar-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(11, 45, 87, 0.18);
  border-radius: 6px;
  background: #f2f6f9;
  color: var(--navy) !important;
}

.pillar-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}

.pillar-source {
  color: var(--muted) !important;
  font-size: 10px !important;
  font-weight: 800;
  text-transform: uppercase;
}

.pillar-card.signal-positive {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf7 100%);
}

.pillar-card span,
.pillar-card p {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.pillar-card .pillar-name {
  min-height: 32px;
  color: var(--text);
  font-weight: 700;
}

.pillar-card strong {
  display: block;
  margin: 16px 0 8px;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
}

.pillar-status {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  margin-top: 13px;
  padding: 7px 9px;
  border-left: 3px solid #9aa5a3;
  background: #f3f5f4;
}

.pillar-status svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.pillar-status span {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.pillar-status.status-positive {
  border-left-color: var(--green);
  background: #f0f7ec;
  color: #3f6f27;
}

.pillar-status.status-context {
  border-left-color: var(--blue);
  background: #edf4fa;
  color: #285981;
}

.pillar-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.pillar-secondary span {
  color: var(--muted);
  font-size: 11px;
}

.pillar-secondary b {
  color: var(--navy);
  font-size: 13px;
  text-align: right;
}

.pillar-secondary.status-negative b {
  color: #9b4338;
}

.pillar-card p {
  margin-bottom: 0;
}

.pillar-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.pillar-context span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.pillar-context b {
  color: var(--text);
  font-size: 12px;
  text-align: right;
}

.pillar-card.signal-positive .pillar-context span,
.pillar-card.signal-positive strong {
  color: #2f7045;
}

.overview-signal {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 82px;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 10px 12px 10px 15px;
  border-left: 4px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-direction {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #edf1ef;
  color: var(--muted);
}

.signal-direction svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.overview-signal:last-child {
  border-bottom: 0;
}

.overview-signal div,
.overview-signal span {
  display: block;
}

.overview-signal small {
  display: inline-block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.overview-signal strong {
  font-size: 14px;
}

.overview-signal span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.overview-signal b {
  min-width: 76px;
  color: var(--navy);
  font-size: 20px;
  text-align: right;
}

.overview-signal.signal-positive {
  border-left-color: #4e8b5e;
  background: #f3f9f4;
}

.overview-signal.signal-positive b {
  color: #2f7045;
}

.overview-signal.signal-positive .signal-direction {
  background: #dceedd;
  color: #2f7045;
}

.overview-signal.signal-context {
  border-left-color: var(--blue);
  background: #f2f7fb;
}

.overview-signal.signal-context .signal-direction {
  background: #dfeaf3;
  color: #285981;
}

.overview-signal.signal-negative {
  border-left-color: var(--red);
  background: #fff2ef;
}

.overview-signal.signal-negative b {
  color: #9b4338;
}

.perception-overview {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(61, 111, 159, 0.3);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.perception-overview-head,
.source-ribbon,
.professional-findings header,
.professional-comparison {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid rgba(61, 111, 159, 0.24);
  border-radius: 4px;
  background: #edf4fa;
  color: #285981;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-align: right;
}

.source-csdg {
  border-color: rgba(117, 103, 169, 0.28);
  background: #f1eff8;
  color: #594c8b;
}

.perception-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  background: var(--line);
}

.perception-overview-signal {
  min-width: 0;
  padding: 14px;
  background: #fff;
}

.perception-overview-signal > span,
.perception-overview-signal > small,
.perception-overview-signal strong {
  display: block;
}

.perception-overview-signal > span {
  min-height: 38px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.perception-overview-signal strong {
  margin: 8px 0 5px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
}

.perception-overview-signal > small {
  color: var(--muted);
}

.perception-signal-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  margin-bottom: 9px;
  color: var(--muted);
}

.perception-signal-head svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.perception-signal-head span {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.perception-overview-signal.signal-negative .perception-signal-head {
  color: #9b4338;
}

.perception-overview-signal.signal-negative strong {
  color: #9b4338;
}

.evidence-boundary {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.source-ribbon {
  align-items: stretch;
  margin-bottom: 18px;
}

.source-ribbon > div {
  display: grid;
  grid-template-columns: auto minmax(160px, 0.7fr) minmax(260px, 1.3fr);
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.source-ribbon strong {
  color: var(--navy);
  font-size: 13px;
}

.source-ribbon small {
  color: var(--muted);
  font-size: 11px;
}

.perception-summary .metric {
  border-top: 4px solid var(--blue);
}

.perception-summary .metric.signal-positive,
.perception-summary .metric.signal-negative {
  border-top-width: 4px;
}

.perception-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.perception-trends,
.experience-gaps {
  margin-top: 18px;
}

.trend-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(180px, 1.3fr) 126px;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

.trend-row:last-child,
.experience-row:last-child {
  border-bottom: 0;
}

.trend-label strong,
.trend-label span,
.experience-row > div:first-child strong,
.experience-row > div:first-child span {
  display: block;
}

.trend-label strong,
.experience-row > div:first-child strong {
  font-size: 12px;
}

.trend-label span,
.experience-row > div:first-child span {
  color: var(--muted);
  font-size: 11px;
}

.experience-row > div:first-child small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.trend-scale,
.experience-scale {
  position: relative;
  height: 20px;
  background: linear-gradient(to right, transparent 49.5%, #e4e9e6 49.5%, #e4e9e6 50.5%, transparent 50.5%);
}

.trend-connector,
.experience-connector {
  position: absolute;
  top: 9px;
  height: 2px;
  background: #8c9997;
}

.trend-dot,
.experience-marker {
  position: absolute;
  top: 5px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #8c9997;
  transform: translateX(-50%);
}

.trend-from {
  background: #9aa5a3;
}

.trend-to {
  background: var(--blue);
}

.trend-positive .trend-to {
  background: var(--green);
}

.trend-negative .trend-to {
  background: var(--red);
}

.trend-values {
  display: grid;
  grid-template-columns: 36px 36px 50px;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.trend-values strong {
  color: var(--ink);
}

.trend-values b {
  color: var(--green);
}

.trend-values em {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 2px;
  color: var(--green);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.trend-values em svg {
  width: 11px;
  height: 11px;
}

.trend-negative .trend-values b {
  color: var(--red);
}

.trend-negative .trend-values em {
  color: var(--red);
}

.experience-legend {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}

.experience-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.experience-legend i {
  position: static;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: none;
}

.experience-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(210px, 1.2fr);
  align-items: center;
  gap: 16px;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
}

.general-dot {
  background: var(--blue);
}

.experience-dot {
  background: var(--amber);
}

.experience-marker b {
  position: absolute;
  top: 12px;
  left: 50%;
  color: var(--ink);
  font-size: 10px;
  transform: translateX(-50%);
}

.perception-matrix-box {
  margin-bottom: 16px;
}

.perception-matrix-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.perception-matrix-legend {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 9px;
}

.perception-matrix-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.perception-matrix-legend i {
  width: 10px;
  height: 10px;
  opacity: 0.38;
}

.perception-matrix-legend i.perception-low { background: var(--red); }
.perception-matrix-legend i.perception-mid { background: var(--amber); }
.perception-matrix-legend i.perception-high { background: var(--green); }

.perception-matrix-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.perception-matrix {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
}

.perception-matrix th,
.perception-matrix td {
  height: 46px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-align: left;
}

.perception-matrix thead th {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.perception-matrix th:first-child {
  width: 31%;
}

.perception-cell {
  position: relative;
  overflow: hidden;
  background: #f1f4f2;
}

.perception-cell span {
  position: absolute;
  inset: 0 auto 0 0;
  opacity: 0.18;
  background: var(--blue);
}

.perception-cell strong {
  position: relative;
  z-index: 1;
  color: var(--navy);
}

.perception-low span { background: var(--red); }
.perception-mid span { background: var(--amber); }
.perception-high span { background: var(--green); }

.perception-na {
  color: #9aa5a3;
  text-align: center !important;
}

.awareness-stack {
  display: flex;
  width: 100%;
  height: 28px;
  margin: 22px 0 18px;
  overflow: hidden;
}

.awareness-stack span + span {
  border-left: 2px solid #fff;
}

.awareness-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.awareness-legend div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}

.awareness-legend i {
  width: 10px;
  height: 10px;
}

.awareness-legend strong {
  text-align: right;
}

.professional-findings article {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.professional-findings article:last-child {
  border-bottom: 0;
}

.professional-findings header span {
  color: var(--muted);
  font-size: 10px;
}

.professional-comparison {
  align-items: stretch;
  margin-top: 10px;
}

.professional-comparison > div {
  flex: 1;
  padding: 10px;
  background: #f4f6f5;
}

.professional-comparison span,
.professional-comparison strong {
  display: block;
}

.professional-comparison span {
  min-height: 32px;
  color: var(--muted);
  font-size: 10px;
}

.professional-comparison strong {
  color: var(--navy);
  font-size: 20px;
}

.professional-comparison > b {
  align-self: center;
  min-width: 45px;
  color: var(--red);
  font-size: 18px;
  text-align: right;
}

.csdg-snapshot {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(117, 103, 169, 0.28);
  border-top: 3px solid var(--violet);
  border-radius: 8px;
  background: #fff;
}

.csdg-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  background: var(--line);
}

.csdg-item {
  min-height: 105px;
  padding: 14px;
  background: #fff;
}

.csdg-item strong,
.csdg-item span {
  display: block;
}

.csdg-item strong {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 24px;
}

.csdg-item span {
  color: var(--muted);
  font-size: 11px;
}

.csdg-item.signal-positive strong { color: #3f6f27; }
.csdg-item.signal-negative strong { color: #9b4338; }

.outcome-distribution {
  padding-top: 18px;
}

.outcome-stack,
.profile-stack {
  display: flex;
  width: 100%;
  overflow: hidden;
  background: #edf1ee;
}

.outcome-stack {
  height: 24px;
}

.outcome-stack span,
.profile-stack span {
  box-sizing: border-box;
  min-width: 2px;
}

.outcome-stack span + span,
.profile-stack span + span {
  border-left: 2px solid #fff;
}

.outcome-list {
  margin-top: 18px;
}

.outcome-list div {
  display: grid;
  grid-template-columns: 10px minmax(100px, 1fr) 64px 70px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.outcome-list i,
.profile-legend i {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(17, 35, 51, 0.18);
}

.outcome-list strong,
.outcome-list small {
  text-align: right;
}

.outcome-list small,
.distribution-note,
.profile-dimension header span {
  color: var(--muted);
}

.distribution-note {
  margin: 12px 0 0;
  font-size: 12px;
}

.outcome-subsection {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.outcome-subsection-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}

.outcome-subsection-title span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.outcome-list.compact {
  margin-top: 8px;
}

.outcome-list.compact div {
  padding: 7px 0;
}

.outcome-axis-label {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.outcome-axis-label.secondary {
  margin-top: 15px;
}

.rights-profile-section {
  margin-top: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.juvenile-justice-section {
  margin-top: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.juvenile-section-title {
  margin-bottom: 14px;
}

.juvenile-justice-grid {
  align-items: stretch;
}

.juvenile-rate-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.juvenile-rate-head,
.qpkmr-activity-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.juvenile-rate-head span,
.qpkmr-activity-title span {
  font-weight: 700;
}

.juvenile-rate-head strong {
  color: var(--navy);
  font-size: 22px;
}

.juvenile-rate-track {
  height: 10px;
  margin: 7px 0 5px;
  overflow: hidden;
  background: #e8eeeb;
}

.juvenile-rate-track span {
  display: block;
  height: 100%;
}

.juvenile-rate-row small,
.qpkmr-primary small,
.juvenile-method-note {
  color: var(--muted);
}

.juvenile-method-note {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.qpkmr-activity {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(240px, 1.25fr);
  gap: 24px;
  margin-top: 18px;
}

.qpkmr-primary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 22px;
  border-right: 1px solid var(--line);
}

.qpkmr-primary span {
  font-weight: 700;
}

.qpkmr-primary strong {
  margin: 8px 0 5px;
  color: var(--navy);
  font-size: 42px;
}

.qpkmr-stack {
  display: flex;
  height: 18px;
  margin: 14px 0 12px;
  overflow: hidden;
  background: #e8eeeb;
}

.qpkmr-stack span + span {
  border-left: 2px solid #fff;
}

.qpkmr-legend {
  display: grid;
  gap: 8px;
}

.qpkmr-legend div {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}

.qpkmr-legend i {
  width: 10px;
  height: 10px;
}

.juvenile-quality-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid #c9892b;
  background: #fff8e8;
}

.juvenile-quality-note summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.juvenile-quality-note p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.probation-section {
  margin-top: 18px;
  padding: 18px 0;
  border-top: 2px solid rgba(117, 103, 169, 0.35);
  border-bottom: 1px solid var(--line);
}

.probation-section-title {
  align-items: flex-start;
  margin-bottom: 14px;
}

.probation-summary {
  margin-bottom: 14px;
}

.probation-breakdown {
  display: grid;
  gap: 18px;
}

.probation-composition > strong,
.probation-offices > strong {
  display: block;
  margin-bottom: 9px;
  color: var(--navy);
  font-size: 13px;
}

.probation-stack {
  display: flex;
  height: 18px;
  overflow: hidden;
  background: #e8eeeb;
}

.probation-stack span + span {
  border-left: 2px solid #fff;
}

.probation-legend {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.probation-legend div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.probation-legend i {
  width: 10px;
  height: 10px;
}

.probation-legend small {
  min-width: 42px;
  color: var(--muted);
  text-align: right;
}

.probation-offices {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.probation-offices > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 12px;
}

.probation-offices em {
  height: 8px;
  overflow: hidden;
  background: #e8eeeb;
}

.probation-offices em i {
  display: block;
  height: 100%;
  background: var(--violet);
}

.probation-offices b {
  text-align: right;
}

.probation-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.probation-context div {
  padding: 10px 12px;
  border-left: 3px solid var(--violet);
  background: #f7f5fb;
}

.probation-context span,
.probation-context strong {
  display: block;
  font-size: 12px;
}

.probation-context span {
  margin-bottom: 4px;
  color: var(--muted);
}

.probation-method-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.legal-evidence-section {
  margin-top: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.legal-section-title {
  align-items: flex-start;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.legal-links a {
  padding: 6px 8px;
  border: 1px solid #b8c7d2;
  border-radius: 4px;
  color: #185a86;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.legal-links a:hover {
  background: #eef6fb;
}

.legal-quality-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.legal-quality-item {
  min-height: 62px;
  padding: 10px 12px;
  border-left: 4px solid #80909b;
  background: #f4f6f7;
}

.legal-quality-item span {
  display: block;
  margin-bottom: 4px;
  color: #485761;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-quality-item p {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}

.legal-quality-item.quality-high {
  border-left-color: #b64f45;
  background: #fff1ef;
}

.legal-quality-item.quality-high span {
  color: #923c34;
}

.legal-quality-item.quality-medium {
  border-left-color: #c8871f;
  background: #fff7e5;
}

.legal-quality-item.quality-medium span {
  color: #765715;
}

.legal-quality-item.quality-methodology {
  border-left-color: #3574a3;
  background: #eef6fb;
}

.legal-quality-item.quality-methodology span {
  color: #285d84;
}

.legal-distribution-grid {
  align-items: start;
}

.legal-insights {
  margin-top: 12px;
}

.legal-insight-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.legal-insight-cards > div {
  min-width: 0;
  padding: 12px 10px;
}

.legal-insight-cards > div + div {
  border-left: 1px solid var(--line);
}

.legal-insight-cards span,
.legal-insight-cards small {
  display: block;
}

.legal-insight-cards span {
  min-height: 30px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.legal-insight-cards strong {
  display: block;
  margin: 5px 0;
  color: var(--navy);
  font-size: 25px;
  line-height: 1;
}

.legal-insight-cards small {
  color: var(--muted);
  font-size: 10px;
}

.legal-insight-cards .signal-warning strong {
  color: #9b4338;
}

.legal-composition-stack {
  display: flex;
  height: 15px;
  margin-top: 15px;
  overflow: hidden;
  background: #edf1ee;
}

.legal-composition-stack span {
  box-sizing: border-box;
  min-width: 2px;
}

.legal-composition-stack span + span {
  border-left: 2px solid #fff;
}

.legal-composition-legend {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.legal-composition-legend div {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}

.legal-composition-legend i {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(17, 35, 51, 0.18);
}

.legal-composition-legend strong {
  color: var(--navy);
}

.legal-insight-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.legal-source-detail {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.legal-source-detail summary {
  padding: 11px 2px 2px;
  color: #285d84;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.legal-distribution {
  display: grid;
  gap: 8px;
  max-height: 480px;
  margin-top: 12px;
  padding-right: 5px;
  overflow-y: auto;
}

.legal-bar-row {
  display: grid;
  grid-template-columns: minmax(185px, 1.25fr) minmax(90px, 1fr) 46px;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 4px 5px;
  border-left: 3px solid transparent;
}

.legal-bar-row.is-flagged {
  border-left-color: #b64f45;
  background: #fff6f4;
}

.legal-bar-row.is-repealed {
  background-image: repeating-linear-gradient(135deg, rgba(120, 70, 70, 0.06) 0, rgba(120, 70, 70, 0.06) 5px, transparent 5px, transparent 10px);
}

.legal-bar-label {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.legal-bar-label code {
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
}

.legal-bar-label span {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legal-bar-label i {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: #b64f45;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.legal-bar-track {
  height: 10px;
  overflow: hidden;
  background: #e9eeeb;
}

.legal-bar-track span {
  display: block;
  height: 100%;
}

.legal-bar-row > strong {
  color: var(--navy);
  font-size: 12px;
  text-align: right;
}

.legal-audit {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.legal-audit summary {
  padding: 12px 14px;
  color: var(--navy);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.legal-audit[open] summary {
  border-bottom: 1px solid var(--line);
}

.legal-audit-table-wrap {
  max-height: 470px;
  overflow: auto;
}

.legal-audit-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  font-size: 11px;
}

.legal-audit-table th,
.legal-audit-table td {
  padding: 8px 9px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.legal-audit-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f6f5;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.legal-audit-table th:nth-child(3),
.legal-audit-table td:nth-child(3),
.legal-audit-table th:last-child,
.legal-audit-table td:last-child {
  text-align: left;
}

.legal-audit-table tr.is-flagged td {
  background: #fff5f3;
}

.legal-audit-table tr.is-repealed td {
  background-image: repeating-linear-gradient(135deg, rgba(120, 70, 70, 0.05) 0, rgba(120, 70, 70, 0.05) 5px, transparent 5px, transparent 10px);
}

.legal-audit-table .difference-cell {
  color: #9b4338;
  font-weight: 800;
}

.audit-status.has-issue {
  color: #8c3d31;
  font-weight: 700;
}

.audit-status.pending {
  color: var(--muted);
}

.budget-story {
  overflow: hidden;
  border: 1px solid #cdd7df;
  border-top: 4px solid var(--navy);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.budget-story-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  background: var(--navy);
  color: #fff;
}

.budget-story-head h3 {
  margin-top: 3px;
  color: #fff;
  font-size: 22px;
}

.budget-story-head p {
  margin: 6px 0 0;
  color: #dce6ef;
  font-size: 12px;
}

.budget-story-head > strong {
  color: var(--gold);
  font-size: 18px;
  white-space: nowrap;
}

.budget-kicker {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.budget-story canvas,
.capacity-analysis-grid canvas {
  display: block;
  width: 100%;
}

.budget-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 22px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.budget-stat-strip > div {
  padding: 14px 16px;
}

.budget-stat-strip > div + div {
  border-left: 1px solid var(--line);
}

.budget-stat-strip span,
.budget-stat-strip small {
  display: block;
  color: var(--muted);
}

.budget-stat-strip span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.budget-stat-strip strong {
  display: block;
  margin: 5px 0;
  color: var(--navy);
  font-size: 25px;
}

.budget-stat-strip > div:nth-child(2) > strong {
  color: #a56d0b;
}

.budget-stat-strip small {
  font-size: 10px;
}

.capacity-quality-note {
  margin: 0;
  padding: 10px 22px;
  border-top: 1px solid #efd9a5;
  background: #fff8e8;
  color: #765715;
  font-size: 11px;
}

.capacity-analysis-grid {
  margin-top: 18px;
}

.resource-growth-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 0.55fr)) minmax(280px, 1.8fr);
  gap: 1px;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.resource-growth-context > div,
.resource-growth-context > p {
  margin: 0;
  padding: 15px 16px;
  background: var(--surface);
}

.resource-growth-context span,
.resource-growth-context small {
  display: block;
  color: var(--muted);
}

.resource-growth-context span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.resource-growth-context strong {
  display: block;
  margin: 4px 0;
  color: var(--navy);
  font-size: 23px;
}

.resource-growth-context small {
  font-size: 11px;
}

.resource-growth-context p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.chart-callout {
  color: #1e6594;
  font-size: 20px;
}

.chart-footnote {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.resource-composition {
  display: grid;
  gap: 20px;
  margin-top: 14px;
}

.resource-composition-block + .resource-composition-block {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.resource-composition-block header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.resource-composition-block header span {
  color: var(--muted);
  font-size: 10px;
}

.resource-stack {
  display: flex;
  height: 18px;
  margin: 10px 0 12px;
  overflow: hidden;
  background: #edf1ee;
}

.resource-stack span {
  box-sizing: border-box;
  min-width: 2px;
}

.resource-stack span + span {
  border-left: 2px solid #fff;
}

.resource-composition-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 16px;
}

.resource-composition-legend div {
  display: grid;
  grid-template-columns: 10px minmax(54px, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}

.resource-composition-legend i,
.institution-resource-table td:first-child i {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(17, 35, 51, 0.18);
}

.resource-composition-legend strong {
  color: var(--navy);
}

.resource-composition-legend small {
  color: var(--muted);
  text-align: right;
}

.institution-resource-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.institution-resource-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 12px;
}

.institution-resource-table th,
.institution-resource-table td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.institution-resource-table th {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.institution-resource-table th:first-child,
.institution-resource-table td:first-child {
  text-align: left;
}

.institution-resource-table td:first-child {
  display: grid;
  grid-template-columns: 10px 76px minmax(180px, 1fr);
  align-items: center;
  gap: 8px;
}

.institution-resource-table td:first-child span {
  color: var(--muted);
}

.resource-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 62px;
  padding: 4px 6px;
  border-radius: 4px;
  font-weight: 800;
  text-align: center;
}

.resource-change svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}

.resource-change.change-up {
  background: #edf5fa;
  color: #245f87;
}

.resource-change.change-down {
  background: #fff1e5;
  color: #9a4c13;
}

.resource-change.change-flat {
  background: #f1f3f2;
  color: var(--muted);
}

.resource-method-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.resource-method-notes p {
  margin: 0;
  padding: 9px 11px;
  border-left: 3px solid #7e9db5;
  background: #f3f7fa;
  color: var(--muted);
  font-size: 11px;
}

.rights-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.profile-dimension {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.profile-dimension header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.profile-dimension header span {
  font-size: 12px;
}

.profile-stack {
  height: 12px;
  margin: 12px 0;
}

.profile-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 16px;
}

.profile-legend div {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 12px;
}

.profile-legend span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-legend strong {
  color: var(--navy);
}

.access-card {
  border-top: 4px solid var(--teal);
}

.efficiency-card {
  border-top: 4px solid var(--green);
}

.rights-card {
  border-top: 4px solid var(--red);
}

.capacity-card {
  border-top: 4px solid var(--violet);
}

.period-badge {
  min-width: 220px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
}

.period-badge span,
.period-badge strong {
  display: block;
}

.period-badge span {
  color: var(--muted);
  font-size: 12px;
}

.period-badge strong {
  margin-top: 2px;
  font-size: 15px;
}

main {
  padding: 24px clamp(18px, 4vw, 52px) 36px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.institution-summary {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 2.1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.efficiency-capacity-section {
  margin: 20px 0;
  padding: 20px 0;
  border-top: 2px solid rgba(61, 111, 159, 0.24);
  border-bottom: 1px solid var(--line);
}

.efficiency-subsection-title {
  margin-bottom: 16px;
}

.efficiency-subsection-title p {
  max-width: 900px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.efficiency-capacity-summary {
  margin-bottom: 16px;
}

.efficiency-capacity-grid {
  margin-bottom: 16px;
}

.ild-accountability-section {
  margin: 20px 0;
  padding: 20px 0;
  border-top: 2px solid rgba(117, 103, 169, 0.3);
  border-bottom: 1px solid var(--line);
}

.ild-section-title {
  margin-bottom: 16px;
}

.ild-section-title p {
  max-width: 900px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.ild-grid {
  align-items: stretch;
}

.ild-complaint-flow {
  margin-top: 18px;
}

.ild-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.ild-total span {
  color: var(--muted);
  font-size: 12px;
}

.ild-total strong {
  color: var(--navy);
  font-size: 30px;
}

.ild-flow-stack {
  display: flex;
  height: 24px;
  margin: 12px 0 14px;
  overflow: hidden;
  background: #e8eeeb;
}

.ild-flow-stack span + span {
  border-left: 2px solid #fff;
}

.ild-flow-legend {
  display: grid;
  gap: 8px;
}

.ild-flow-legend div {
  display: grid;
  grid-template-columns: 11px minmax(130px, 1fr) 58px 70px;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.ild-flow-legend i {
  width: 11px;
  height: 11px;
}

.ild-flow-legend strong,
.ild-flow-legend small {
  text-align: right;
}

.ild-flow-legend small,
.ild-verification-callout small,
.ild-oversight-activity small,
.ild-method-note {
  color: var(--muted);
}

.ild-verification-callout {
  margin-top: 15px;
  padding: 12px;
  border-left: 3px solid #7567a9;
  background: #f5f3fa;
}

.ild-verification-callout div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}

.ild-verification-callout span {
  font-weight: 700;
}

.ild-verification-callout strong {
  color: #5d508e;
  font-size: 22px;
}

.ild-oversight-activity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
  border: 1px solid var(--line);
}

.ild-oversight-activity article {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.ild-oversight-activity article + article {
  border-left: 1px solid var(--line);
}

.ild-oversight-activity span {
  font-weight: 700;
}

.ild-oversight-activity strong {
  margin: 10px 0 6px;
  color: var(--navy);
  font-size: 38px;
}

.ild-method-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.vacancy-tables {
  display: grid;
  gap: 18px;
}

.vacancy-table-group h4 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 14px;
}

.compact-data-table {
  min-width: 620px;
}

.compact-data-table th,
.compact-data-table td {
  padding: 8px 9px;
  font-size: 12px;
}

.compact-data-table th:not(:first-child),
.compact-data-table td:not(:first-child) {
  text-align: right;
}

.vacancy-meter,
.workload-meter {
  position: relative;
  min-width: 110px;
  height: 24px;
  overflow: hidden;
  border-radius: 4px;
  background: #edf1ef;
}

.vacancy-meter span,
.workload-meter span {
  position: absolute;
  inset: 0 auto 0 0;
}

.vacancy-meter span {
  background: rgba(182, 83, 69, 0.34);
}

.vacancy-meter b,
.workload-meter b {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  color: var(--text);
  font-size: 11px;
}

.vacancy-note,
.evaluation-note,
.workload-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.evaluation-age {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  align-items: baseline;
}

.evaluation-age b {
  color: #9a670d;
}

.evaluation-age span {
  color: var(--muted);
  font-size: 10px;
}

.workload-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.workload-summary-strip > div {
  padding: 13px 14px;
  background: var(--surface);
}

.workload-summary-strip span,
.workload-summary-strip small {
  display: block;
  color: var(--muted);
}

.workload-summary-strip span {
  min-height: 30px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.workload-summary-strip strong {
  display: block;
  margin: 4px 0;
  color: var(--navy);
  font-size: 23px;
}

.workload-summary-strip small {
  font-size: 10px;
  line-height: 1.35;
}

.workload-summary-strip .metric-status span {
  min-height: 0;
  font-size: 9px;
}

.workload-scatter-layout {
  display: grid;
  grid-template-columns: 30px minmax(720px, 1fr);
  grid-template-rows: 420px 28px;
  overflow-x: auto;
  padding: 4px 8px 0 0;
}

.workload-y-title,
.workload-x-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.workload-y-title {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.workload-x-title {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
}

.workload-scatter {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-width: 720px;
  margin: 16px 30px 26px 46px;
  border-left: 1px solid #9ba8a4;
  border-bottom: 1px solid #9ba8a4;
  background-color: #fff;
}

.workload-quadrant {
  position: absolute;
  z-index: 0;
}

.workload-quadrant span {
  position: absolute;
  max-width: 150px;
  color: rgba(30, 37, 40, 0.48);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.quadrant-high-high { background: rgba(182, 83, 69, 0.08); }
.quadrant-high-carried,
.quadrant-high-followed { background: rgba(201, 137, 43, 0.08); }
.quadrant-low-low { background: rgba(95, 143, 62, 0.08); }
.quadrant-high-high span { top: 10px; right: 12px; text-align: right; }
.quadrant-high-carried span { top: 10px; left: 12px; }
.quadrant-high-followed span { right: 12px; bottom: 10px; text-align: right; }
.quadrant-low-low span { left: 12px; bottom: 10px; }

.workload-average-line {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.workload-average-line.vertical {
  top: 0;
  bottom: 0;
  border-left: 2px dashed var(--navy);
}

.workload-average-line.horizontal {
  right: 0;
  left: 0;
  border-top: 2px dashed var(--navy);
}

.workload-average-line span {
  position: absolute;
  padding: 3px 6px;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.workload-average-line.vertical span {
  top: -16px;
  left: 6px;
}

.workload-average-line.horizontal span {
  top: 5px;
  right: 6px;
}

.scatter-x-tick,
.scatter-y-tick {
  position: absolute;
  z-index: 1;
  background: rgba(219, 226, 221, 0.7);
}

.scatter-x-tick {
  top: 0;
  bottom: 0;
  width: 1px;
}

.scatter-y-tick {
  right: 0;
  left: 0;
  height: 1px;
}

.scatter-x-tick span,
.scatter-y-tick span {
  position: absolute;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.scatter-x-tick span {
  bottom: -18px;
  transform: translateX(-50%);
}

.scatter-y-tick span {
  left: -30px;
  transform: translateY(-50%);
}

.workload-point {
  position: absolute;
  z-index: 4;
  width: 14px;
  height: 14px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(18, 52, 91, 0.25);
  cursor: pointer;
}

.workload-point.pressure-low,
.workload-scatter-legend i.pressure-low { background: var(--green); }
.workload-point.pressure-mixed,
.workload-scatter-legend i.pressure-mixed { background: var(--amber); }
.workload-point.pressure-high,
.workload-scatter-legend i.pressure-high { background: var(--red); }

.workload-point > span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + var(--label-x)), calc(-50% + var(--label-y)));
  padding: 2px 4px;
  border: 1px solid rgba(219, 226, 221, 0.9);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(18, 52, 91, 0.08);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.workload-point > b {
  display: none;
  position: absolute;
  z-index: 6;
  left: 12px;
  top: 12px;
  min-width: 82px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow);
  font-size: 11px;
  white-space: nowrap;
}

.workload-point:hover > b,
.workload-point:focus-visible > b {
  display: block;
}

.workload-point:focus-visible {
  outline: 3px solid rgba(61, 111, 159, 0.35);
  outline-offset: 3px;
}

.workload-scatter-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 6px 0 0 38px;
  color: var(--muted);
  font-size: 11px;
}

.workload-scatter-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.workload-scatter-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.workload-table {
  min-width: 700px;
}

.workload-meter.followed span {
  background: rgba(0, 114, 178, 0.38);
}

.workload-meter.carried span {
  background: rgba(230, 159, 0, 0.46);
}

.institution-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.courts-group {
  border-top: 4px solid var(--navy);
}

.enforcement-group {
  border-top: 4px solid var(--gold);
}

.institution-label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.institution-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.court-headline-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric {
  min-height: 142px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-primary {
  border-color: rgba(200, 155, 46, 0.42);
  background: #fffaf0;
}

.metric.signal-positive {
  border-color: rgba(95, 143, 62, 0.42);
  border-top: 4px solid var(--green);
  background: #f3faef;
}

.metric.signal-negative {
  border-color: rgba(182, 83, 69, 0.42);
  border-top: 4px solid var(--red);
  background: #fff2ef;
}

.metric-owner {
  display: inline-block;
  width: fit-content;
  margin-bottom: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #edf1ef;
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-label,
.metric-note {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin: 16px 0 6px;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.metric.signal-positive strong {
  color: #3f6f27;
}

.metric.signal-negative strong {
  color: #9b4338;
}

.metric-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.metric-status svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.metric-status span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.metric-status.status-positive {
  color: #3f6f27;
}

.metric-status.status-negative {
  color: #9b4338;
}

.metric-status.status-context {
  color: #285981;
}

.metric-status.status-baseline,
.metric-status.status-descriptive,
.metric-status.status-volume {
  color: #596768;
}

.indicator-tag {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f3f5f4;
  color: #596768 !important;
  font-size: 9px !important;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: normal !important;
}

.indicator-tag svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

.indicator-tag.tag-positive {
  border-color: rgba(95, 143, 62, 0.32);
  background: #f0f7ec;
  color: #3f6f27 !important;
}

.indicator-tag.tag-negative {
  border-color: rgba(182, 83, 69, 0.3);
  background: #fff2ef;
  color: #9b4338 !important;
}

.indicator-tag.tag-context {
  border-color: rgba(61, 111, 159, 0.28);
  background: #edf4fa;
  color: #285981 !important;
}

.indicator-block .metric-status {
  margin-top: 9px;
}

.access-concentration-strip .metric-status {
  grid-column: 1 / -1;
}

.ild-total {
  flex-wrap: wrap;
}

.ild-total .metric-status {
  flex: 0 0 100%;
  margin-top: 4px;
}

.qpkmr-activity-breakdown .metric-status {
  margin-top: 14px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 14px;
  min-height: 40px;
  padding: 8px 13px;
}

.tab.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin: 18px 0 16px;
}

.section-note {
  max-width: 420px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 2px;
}

.layout-two {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 16px;
}

.chart-box {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid rgba(200, 155, 46, 0.65);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.chart-box.full {
  margin-top: 16px;
}

.lower {
  margin-top: 16px;
}

.chart-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.chart-title span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

canvas {
  display: block;
  width: 100%;
  max-width: 100%;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
}

.teal {
  background: #0072b2;
}

.amber {
  background: #e69f00;
}

.violet {
  background: #cc79a7;
}

.readiness-list {
  display: grid;
  gap: 10px;
}

.readiness-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
}

.readiness-list span {
  color: var(--muted);
  font-size: 13px;
}

.insight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.insight-strip div {
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #fff;
}

.insight-strip span,
.operation-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.insight-strip strong,
.operation-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.bar-list {
  display: grid;
  gap: 13px;
}

.access-gender-bars {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.chart-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 14px;
}

.chart-subhead h4 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

.chart-subhead span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.territorial-access {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 2px solid rgba(22, 122, 117, 0.28);
}

.territorial-title p {
  max-width: 820px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.access-concentration-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.access-concentration-strip > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--surface);
}

.access-concentration-strip strong {
  color: var(--navy);
  font-size: 24px;
}

.access-concentration-strip span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.territorial-grid {
  margin-top: 0;
}

.access-rank-list .rank-row {
  grid-template-columns: minmax(115px, 1fr) minmax(120px, 44%);
}

.territorial-note {
  margin-top: 12px;
}

.training-table th:not(:first-child),
.training-table td:not(:first-child) {
  text-align: right;
}

.training-table tbody td:first-child {
  font-weight: 700;
}

.training-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr 56px;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

.overview-row {
  grid-template-columns: minmax(170px, 230px) 1fr minmax(96px, 160px);
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: #edf1ef;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, 34%);
  gap: 14px;
  align-items: center;
}

.rank-row strong {
  display: block;
  min-width: 0;
  font-size: 14px;
}

.rank-bar {
  position: relative;
  height: 30px;
  border-radius: 6px;
  background: #edf1ef;
  overflow: hidden;
}

.rank-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 36px;
  border-radius: inherit;
  background: var(--amber);
}

.rank-bar em {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.rank-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  margin-top: -6px;
}

.compact .rank-row {
  grid-template-columns: minmax(0, 1fr) 110px;
}

.explain-row {
  display: grid;
  grid-template-columns: minmax(160px, 260px) 1fr;
  gap: 14px;
  align-items: center;
}

.explain-row strong,
.explain-row span {
  display: block;
}

.explain-row span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.reading-list {
  display: grid;
  gap: 10px;
}

.reading-list div {
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #f9fbfa;
}

.reading-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}

.reading-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.efficiency-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 16px;
}

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
}

.segment {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-height: 32px;
  padding: 7px 10px;
}

.segment.active {
  background: var(--teal);
  color: #fff;
}

.court-table-wrap {
  overflow-x: auto;
}

.court-map-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.judicial-map-panel {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
}

.judicial-map-panel object,
.judicial-map-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 118.559 / 259.085;
  max-height: 560px;
  object-fit: contain;
}

.judicial-map-panel figcaption {
  color: var(--muted);
  font-size: 12px;
}

.map-score-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

.map-score-legend span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.map-score-legend i {
  display: block;
  height: 10px;
  border-radius: 2px;
}

.score-1 {
  background: #c95343;
}

.score-2 {
  background: #df9262;
}

.score-3 {
  background: #f2d681;
}

.score-4 {
  background: #9fcf8c;
}

.score-5 {
  background: #4f9348;
}

.matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.matrix-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.court-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}

.court-matrix {
  min-width: 940px;
}

.court-table th,
.court-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.court-matrix td:not(:first-child) {
  border-left: 3px solid #fff;
  font-weight: 700;
}

.court-matrix tr {
  cursor: pointer;
}

.court-matrix tr.row-selected td {
  outline: 2px solid var(--navy);
  outline-offset: -2px;
}

.court-matrix th:first-child,
.court-matrix td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
}

.court-table th:first-child,
.court-table td:first-child {
  text-align: left;
}

.court-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.cell-good {
  background: #e6f3ed;
  color: #235f45;
}

.cell-mid {
  background: #fff6df;
  color: #765715;
}

.cell-watch {
  background: #f8e6e2;
  color: #8c3d31;
}

.court-level-grid {
  display: block;
}

.other-court-matrix {
  min-width: 1720px;
}

.other-court-matrix td:nth-child(3),
.other-court-matrix td:nth-child(4),
.other-court-matrix td:nth-child(5),
.other-court-matrix td:nth-child(6),
.other-court-matrix td:nth-child(7),
.other-court-matrix td:nth-child(8),
.other-court-matrix td:nth-child(9),
.other-court-matrix td:nth-child(10),
.other-court-matrix td:nth-child(11),
.other-court-matrix td:nth-child(12),
.other-court-matrix td:nth-child(13),
.other-court-matrix td:nth-child(14),
.other-court-matrix td:nth-child(15),
.other-court-matrix td:nth-child(16) {
  border-left: 3px solid #fff;
  font-weight: 700;
}

.empty-cell {
  background: #f4f6f5;
  color: var(--muted);
  text-align: center;
}

.court-level-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
}

.court-level-card h4 {
  font-size: 15px;
}

.court-level-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.court-level-row h5 {
  font-size: 14px;
  line-height: 1.25;
}

.court-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.court-metric-set {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 8px;
  background: #edf1ef;
  font-size: 12px;
}

.court-metric-set strong {
  font-size: 12px;
}

.court-metric-set span,
.quality-note {
  color: var(--muted);
}

.quality-note {
  margin: 10px 0 0;
  font-size: 12px;
}

.operation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.operation-grid div {
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
}

.quality-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.method-architecture {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.dimension-register,
.source-register {
  margin-top: 14px;
}

.dimension-register > div {
  padding: 12px 13px;
  border-left: 4px solid var(--teal);
  border-bottom: 1px solid var(--line);
  background: #fafcfb;
}

.dimension-register > div:last-child,
.source-register > div:last-child {
  border-bottom: 0;
}

.dimension-register .dimension-efficiency { border-left-color: var(--green); }
.dimension-register .dimension-rights { border-left-color: var(--red); }
.dimension-register .dimension-capacity { border-left-color: var(--violet); }
.dimension-register .dimension-perception { border-left-color: var(--blue); }

.dimension-register strong,
.dimension-register span {
  display: block;
}

.dimension-register strong {
  color: var(--navy);
  font-size: 12px;
}

.dimension-register span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.source-register > div {
  display: grid;
  grid-template-columns: 72px minmax(180px, 0.9fr) minmax(200px, 1.1fr);
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.source-register b {
  color: var(--blue);
  font-size: 11px;
}

.source-register strong {
  color: var(--ink);
  font-size: 11px;
}

.source-register span {
  color: var(--muted);
  font-size: 10px;
}

.quality-list article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quality-list strong {
  display: block;
  margin-bottom: 8px;
}

.quality-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.note-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
}

.note-grid p {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 52px);
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .pillar-grid,
  .coverage-grid,
  .summary-grid,
  .institution-summary,
  .layout-two,
  .insight-strip,
  .quality-list,
  .note-grid,
  .court-level-grid {
    grid-template-columns: 1fr 1fr;
  }

  .method-architecture {
    grid-template-columns: 1fr;
  }

  .layout-two {
    grid-template-columns: 1fr;
  }

  .court-map-layout {
    grid-template-columns: 1fr;
  }

  .judicial-map-panel {
    justify-items: center;
  }

  .judicial-map-panel object,
  .judicial-map-panel img {
    max-width: 260px;
  }

  .institution-metric-grid {
    grid-template-columns: 1fr;
  }

  .legal-quality-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-growth-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workload-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .perception-overview-grid,
  .csdg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-ribbon {
    flex-direction: column;
  }

  .perception-layout {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 680px) {
  .topbar,
  .section-head,
  .header-actions,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .period-badge {
    min-width: 0;
  }

  .pillar-grid,
  .coverage-grid,
  .summary-grid,
  .institution-summary,
  .insight-strip,
  .quality-list,
  .operation-grid,
  .note-grid,
  .court-level-grid,
  .court-metric-grid {
    grid-template-columns: 1fr;
  }

  .source-register > div {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .source-register span {
    grid-column: 2;
  }

  .rights-profile-grid,
  .profile-legend {
    grid-template-columns: 1fr;
  }

  .access-concentration-strip {
    grid-template-columns: 1fr;
  }

  .resource-growth-context {
    grid-template-columns: 1fr;
  }

  .probation-context {
    grid-template-columns: 1fr;
  }

  .workload-summary-strip {
    grid-template-columns: 1fr;
  }

  .perception-overview-head,
  .professional-findings header,
  .professional-comparison {
    align-items: flex-start;
    flex-direction: column;
  }

  .perception-overview-grid,
  .csdg-grid,
  .awareness-legend {
    grid-template-columns: 1fr;
  }

  .source-ribbon > div {
    grid-template-columns: 1fr;
  }

  .source-badge {
    text-align: left;
  }

  .trend-row,
  .experience-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 10px 0;
  }

  .trend-values {
    justify-content: end;
  }

  .trend-scale,
  .experience-scale {
    margin: 0 10px;
  }

  .professional-comparison > div,
  .professional-comparison > b {
    width: 100%;
    text-align: left;
  }

  .chart-subhead {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .chart-subhead span {
    text-align: left;
  }

  .outcome-list div {
    grid-template-columns: 10px minmax(80px, 1fr) 58px 64px;
    gap: 7px;
  }

  .legal-quality-summary {
    grid-template-columns: 1fr;
  }

  .qpkmr-activity {
    grid-template-columns: 1fr;
  }

  .qpkmr-primary {
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ild-oversight-activity {
    grid-template-columns: 1fr;
  }

  .ild-oversight-activity article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .ild-flow-legend div {
    grid-template-columns: 11px minmax(100px, 1fr) 52px 58px;
    gap: 7px;
  }

  .legal-section-title,
  .legal-links {
    justify-content: flex-start;
  }

  .legal-bar-row {
    grid-template-columns: minmax(150px, 1.2fr) minmax(70px, 1fr) 42px;
  }

  .legal-insight-cards {
    grid-template-columns: 1fr;
  }

  .legal-insight-cards > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .legal-insight-cards span {
    min-height: 0;
  }

  .budget-story-head {
    flex-direction: column;
  }

  .budget-stat-strip,
  .resource-method-notes {
    grid-template-columns: 1fr;
  }

.budget-stat-strip > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .resource-composition-legend {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 120px;
  }

  .bar-row,
  .overview-row,
  .explain-row,
  .rank-row,
  .compact .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-bar {
    width: 100%;
  }

  .chart-title {
    flex-direction: column;
    gap: 4px;
  }

  .chart-title span {
    white-space: normal;
  }
}
