:root {
  color-scheme: light;
  --bg: #f2f4f3;
  --surface: #ffffff;
  --surface-alt: #fafbfa;
  --surface-sunk: #f7f8f7;
  --text: #1a241f;
  --text-strong: #071511;
  --muted: #5e6b66;
  --muted-2: #7a857f;
  --border: #dbe1dd;
  --border-strong: #b8c2bd;
  --rule: #e5eae7;
  --green: #176b5b;
  --green-dark: #0e4a3f;
  --blue: #2e5a77;
  --blue-dark: #1f4159;
  --slate: #4c5c69;
  --amber: #9b5a10;
  --amber-2: #7a4509;
  --red: #a63128;
  --red-dark: #7f2018;
  --green-soft: #e4efe9;
  --blue-soft: #e3eaf1;
  --amber-soft: #fbecd0;
  --red-soft: #f6e1de;
  --slate-soft: #e7ebee;
  --accent-rule: #c8d3cd;
  --shadow-xs: none;
  --radius: 6px;
  --radius-sm: 4px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 28px;
  --space-7: 40px;
  --space-8: 56px;
  --type-meta: 11px;
  --type-small: 13px;
  --type-body: 14.5px;
  --type-value: 18px;
  --type-title: clamp(1.5rem, 1.85vw, 1.78rem);
  --tracking-label: 0.045em;

  /* Backwards-compatible aliases used by chart/table code. */
  --paper: var(--surface);
  --ink: var(--text);
  --line: var(--border);
  --soft-line: var(--rule);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-5) var(--space-7);
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Inter var", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: var(--type-body);
  line-height: 1.5;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1, h2, h3, p, dl, dd { margin-top: 0; }

h1 {
  margin-bottom: 2px;
  color: var(--text-strong);
  font-family: "Source Serif Pro", "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: var(--type-title);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  margin-bottom: var(--space-2);
  color: var(--text-strong);
  font-size: var(--type-value);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

h3 {
  margin-bottom: var(--space-2);
  color: var(--text-strong);
  font-size: var(--type-small);
  font-weight: 650;
  line-height: 1.25;
}

/* Make all numeric-looking cells align like a terminal. */
dd, td, .bar-value, .summary-item dd, .fact dd, .strip-item dd {
  font-variant-numeric: tabular-nums;
}

/* ================================================================
   Masthead
   ================================================================ */

.site-header {
  display: grid;
  gap: 10px;
  padding: 0 0 var(--space-3);
  border-bottom: 0;
  margin-bottom: 0;
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: var(--type-small);
  letter-spacing: 0;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.top-links::before {
  content: "CARBON & REGO OPS · UK";
  color: var(--text-strong);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  font-size: var(--type-meta);
  text-transform: uppercase;
  margin-right: auto;
}

.top-links a {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: var(--slate);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--type-small);
}

.top-links a:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header-grid { display: block; }
.header-copy { min-width: 0; }

.eyebrow {
  margin-bottom: 4px;
  color: var(--green-dark);
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.lede {
  max-width: 760px;
  margin-bottom: var(--space-3);
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.45;
}

.header-meta {
  display: grid;
  gap: 5px;
  align-items: start;
  margin-top: var(--space-3);
  padding-top: 7px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

.data-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: var(--type-meta);
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.data-status::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
  flex: 0 0 auto;
}

.data-status--loaded { color: var(--green-dark); }
.data-status--loaded::before { background: var(--green); box-shadow: 0 0 0 2px rgba(23,107,91,0.14); }
.data-status--stale { color: var(--amber-2); }
.data-status--stale::before { background: var(--amber); box-shadow: 0 0 0 2px rgba(155,90,16,0.16); }
.data-status--file,
.data-status--missing,
.data-status--malformed { color: var(--red-dark); }
.data-status--file::before,
.data-status--missing::before,
.data-status--malformed::before { background: var(--red); box-shadow: 0 0 0 2px rgba(166,49,40,0.16); }

.data-basis {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
}

.data-basis h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#data-basis-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  margin: 0;
}

.basis-item {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.basis-item + .basis-item::before {
  content: "·";
  color: var(--border-strong);
  margin: 0 9px;
  align-self: center;
}

.basis-item dt {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-meta);
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.basis-item dt::after {
  content: ":";
}

.basis-item dd {
  margin-left: 0;
  color: var(--muted);
  font-size: var(--type-meta);
  font-weight: 450;
  line-height: 1.2;
}

/* ================================================================
   Executive briefing (hero band: attention + signal cards + strip)
   ================================================================ */

.executive-briefing {
  margin-top: 0;
  padding: var(--space-4) 0 0;
  border: 0;
  border-top: 2px solid var(--green-dark);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.executive-header {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: var(--space-5);
  align-items: end;
  margin-bottom: var(--space-3);
  padding: var(--space-3) 0 var(--space-3);
  border-bottom: 1px solid var(--rule);
}

.executive-header .eyebrow { margin-bottom: 4px; }

.executive-header h2 {
  margin: 0;
  font-size: var(--type-value);
  font-weight: 650;
}

.executive-header p:last-child {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: var(--type-small);
  line-height: 1.5;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(440px, 1.04fr) minmax(360px, 0.96fr);
  gap: var(--space-5);
  align-items: stretch;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule);
}

.attention-panel {
  min-width: 0;
  padding: 2px var(--space-5) 0 0;
  border: 0;
  border-right: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
}

.attention-panel h2 {
  margin-bottom: var(--space-3);
  font-size: var(--type-small);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-strong);
}

.attention-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: attention;
}

.attention-list li {
  position: relative;
  margin-bottom: 0;
  padding: 7px 0 7px 30px;
  border-top: 1px solid var(--rule);
  color: var(--text);
  font-size: var(--type-body);
  line-height: 1.45;
}

.attention-list li:first-child { border-top: 0; padding-top: 6px; }
.attention-list li:last-child  { padding-bottom: 0; }

.attention-list li::before {
  position: absolute;
  top: 8px;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-strong);
  content: counter(attention);
  counter-increment: attention;
  font-size: var(--type-meta);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Signal cards */
.summary-grid {
  display: block;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.summary-item {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(112px, 0.42fr) minmax(92px, 0.34fr) minmax(150px, 1fr);
  gap: var(--space-3);
  align-items: baseline;
  padding: 9px 0 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-left: 0;
  border-radius: 0;
  background: transparent;
}

.summary-item::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  width: 3px;
  height: 18px;
  border-radius: 1px;
  background: var(--slate);
}

/* Semantic color coding via compact rule, not card chrome. */
.summary-item:nth-child(1)::before { background: var(--green); }
.summary-item:nth-child(2)::before { background: var(--blue); }
.summary-item:nth-child(3)::before { background: var(--blue); }
.summary-item:nth-child(4)::before { background: var(--red); }
.summary-item:nth-child(5)::before { background: var(--red); }
.summary-item:nth-child(6)::before { background: var(--amber); }

.summary-item dt {
  margin: 0;
  align-self: baseline;
  letter-spacing: var(--tracking-label);
}

dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

dd {
  margin-left: 0;
  font-weight: 600;
}

.summary-item dd {
  margin-bottom: 0;
  color: var(--text-strong);
  font-size: var(--type-value);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.005em;
  overflow-wrap: anywhere;
}

.summary-item p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-small);
  line-height: 1.35;
}

/* Executive strip (REGO exposure summary) */
.executive-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  padding: var(--space-3) 0;
  border-top: 0;
  border-bottom: 1px solid var(--border);
}

.strip-item {
  min-width: 0;
  padding: 0 var(--space-4);
  border: 0;
  border-left: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
}

.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-item:last-child  { padding-right: 0; }

.strip-item dt {
  margin-bottom: 4px;
  font-size: var(--type-meta);
  letter-spacing: var(--tracking-label);
}

.strip-item dd {
  color: var(--text-strong);
  font-size: var(--type-small);
  font-weight: 650;
  line-height: 1.15;
}

.read-guide {
  margin: var(--space-3) 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--green);
  background: color-mix(in srgb, var(--surface) 76%, var(--green-soft));
}

.read-guide .eyebrow {
  margin-bottom: 5px;
  color: var(--green-ink);
}

.read-guide p:last-child {
  max-width: 980px;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--type-small);
  line-height: 1.55;
}

/* ================================================================
   Sections (detail tier)
   ================================================================ */

.section {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.section--ops {
  border-top: 2px solid var(--green-dark);
  background:
    linear-gradient(180deg, rgba(228, 239, 233, 0.42), rgba(255, 255, 255, 0) 92px),
    var(--surface);
}

#rego {
  border-color: #cfdad3;
}

#rego .section-heading {
  margin-bottom: var(--space-3);
}

#rego .section-heading p {
  color: var(--text);
}

#rego .bars-panel {
  margin-bottom: var(--space-4);
  padding: var(--space-2) 0 var(--space-3);
  border-bottom: 1px solid var(--rule);
}

.section--register {
  border-top-color: var(--red);
  background:
    linear-gradient(180deg, rgba(246, 225, 222, 0.34), rgba(255, 255, 255, 0) 82px),
    var(--surface);
}

.section--context {
  padding: var(--space-5) 0 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.section--evidence {
  margin-top: var(--space-5);
  padding: var(--space-4) 0 0;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: var(--space-5);
  align-items: end;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule);
}

.section-heading h2 {
  margin: 0;
  font-size: var(--type-value);
  font-weight: 650;
}

.section-heading p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: var(--type-small);
  line-height: 1.5;
}

.section--ops .section-heading h2::before,
.section--context .section-heading h2::before,
.section--evidence .section-heading h2::before {
  display: block;
  margin-bottom: 5px;
  font-size: var(--type-meta);
  font-weight: 750;
  letter-spacing: var(--tracking-label);
  line-height: 1;
  text-transform: uppercase;
}

.section--ops .section-heading h2::before {
  content: "Controls of record";
  color: var(--green-dark);
}

.section--register .section-heading h2::before {
  content: "Exception control register";
  color: var(--red-dark);
}

.section--context .section-heading {
  margin-bottom: var(--space-3);
}

.section--context .section-heading h2::before {
  content: "Market context";
  color: var(--blue-dark);
}

.section--evidence .section-heading {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
}

.section--evidence .section-heading h2 {
  font-size: var(--type-small);
}

.section--evidence .section-heading h2::before {
  content: "Evidence and limitations";
  color: var(--muted-2);
}

.section--evidence .section-heading p,
.section--evidence,
.section--evidence table {
  font-size: var(--type-small);
}

/* Chart + split grids */
.visual-grid,
.split-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.bars-panel { margin-bottom: var(--space-3); }
.bars-panel:last-child { margin-bottom: 0; }

.visual-grid > div,
.split-panel > div {
  min-width: 0;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.section--context .fact,
.section--context .visual-grid > div {
  background: transparent;
  border-color: var(--rule);
  box-shadow: none;
}

.section--context .fact-row {
  gap: 0;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule);
}

.section--context .fact {
  padding: 0 var(--space-4);
  border: 0;
  border-left: 1px solid var(--rule);
  border-radius: 0;
}

.section--context .fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.section--context .visual-grid > div {
  padding: var(--space-2) 0 0;
  border-width: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
}

.section--context .visual-grid {
  gap: var(--space-7);
  align-items: start;
}

.carbon-concepts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-4) 0 var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.carbon-concept {
  min-width: 0;
  padding: 0 var(--space-4);
  border-left: 1px solid var(--rule);
}

.carbon-concept:first-child {
  padding-left: 0;
  border-left: 0;
}

.carbon-concept p {
  margin: 0 0 5px;
  color: var(--muted-2);
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.carbon-concept h3 {
  margin: 0 0 6px;
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-size: var(--type-body);
  font-weight: 700;
}

.carbon-concept strong,
.carbon-concept span {
  display: block;
  font-size: var(--type-small);
  line-height: 1.45;
}

.carbon-concept strong {
  margin-bottom: 4px;
  color: var(--green-dark);
  font-weight: 650;
}

.carbon-concept span {
  color: var(--muted);
}

.carbon-visual-grid .figure-wide {
  grid-column: 1 / -1;
}

.carbon-cost-context {
  margin: var(--space-4) 0;
  padding: var(--space-3) 0 var(--space-4);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.carbon-cost-header {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: end;
  margin-bottom: var(--space-2);
}

.carbon-cost-header p {
  margin: 0 0 4px;
  color: var(--blue-dark);
  font-size: var(--type-meta);
  font-weight: 750;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.carbon-cost-header h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--type-body);
}

.carbon-cost-header span,
.carbon-cost-note,
.carbon-cost-card span {
  color: var(--muted);
  font-size: var(--type-small);
  line-height: 1.45;
}

.carbon-cost-note {
  max-width: 920px;
  margin: 0 0 var(--space-3);
}

.carbon-cost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.carbon-cost-card {
  min-width: 0;
  padding-left: var(--space-3);
  border-left: 2px solid var(--blue);
}

.carbon-cost-card p {
  margin: 0 0 5px;
  color: var(--muted-2);
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.carbon-cost-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-strong);
  font-size: var(--type-value);
  font-variant-numeric: tabular-nums;
}

.carbon-cost-card span {
  display: block;
}

.section--evidence .fact {
  padding: 8px 0;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
}

.section--evidence .fact-row {
  gap: var(--space-4);
}

.section--evidence .table-wrap {
  border-color: var(--rule);
  border-radius: var(--radius-sm);
}

.section--evidence th {
  background: var(--surface-sunk);
}

.section--evidence .note {
  max-width: 920px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.visual-grid > div h3,
.split-panel > div h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
  color: var(--text-strong);
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.section--context .visual-grid > div h3 {
  margin-bottom: var(--space-2);
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--text);
  font-size: var(--type-small);
  letter-spacing: var(--tracking-label);
}

.section--context .visual-grid > div h3::before {
  content: "Figure";
  margin-right: var(--space-2);
  color: var(--muted-2);
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
}

.section--context .visual-grid > div h3 .muted {
  margin-left: auto;
  font-size: var(--type-meta);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.chart-caption {
  margin: var(--space-3) 0 0;
  padding-top: var(--space-2);
  border-top: 1px dashed var(--rule);
  color: var(--muted);
  font-size: var(--type-small);
  line-height: 1.45;
}

.section--context .chart-caption {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: var(--type-small);
  line-height: 1.42;
}

/* Coverage bars (REGO) */
.coverage-row {
  position: relative;
  margin-bottom: 8px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--type-small);
}
.coverage-row:last-child { margin-bottom: 0; }

.coverage-row--shortfall {
  border-left-color: var(--red);
  background: linear-gradient(90deg, rgba(246, 225, 222, 0.5), rgba(255, 255, 255, 0) 40%);
}

.coverage-row--surplus {
  border-left-color: var(--blue);
}

.coverage-row--review {
  border-left-color: var(--amber);
}

.coverage-row__head,
.coverage-row__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}

.coverage-row__head { margin-bottom: 7px; color: var(--text); }
.coverage-row__head span {
  color: var(--text-strong);
  font-weight: 650;
}

.coverage-row__head strong {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 1px 6px;
  border-radius: 2px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.coverage-row--shortfall .coverage-row__head strong {
  color: var(--red-dark);
  background: var(--red-soft);
}

.coverage-row--surplus .coverage-row__head strong {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.coverage-row--review .coverage-row__head strong {
  color: var(--amber-2);
  background: var(--amber-soft);
}

.coverage-track {
  position: relative;
  height: 9px;
  border-radius: 2px;
  background: #eef1ef;
  border: 1px solid var(--rule);
  overflow: hidden;
}

.coverage-fill,
.coverage-gap {
  position: absolute;
  top: 0;
  bottom: 0;
  display: block;
}
.coverage-fill { left: 0; background: var(--green); }
.coverage-gap  { background: var(--red); }

.coverage-surplus-marker {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: var(--blue);
}

.coverage-row__meta {
  margin-top: 7px;
  color: var(--muted);
  font-size: var(--type-small);
  font-variant-numeric: tabular-nums;
}

.coverage-row--shortfall .coverage-row__meta span:last-child {
  color: var(--red-dark);
  font-weight: 650;
}

.coverage-row--surplus .coverage-row__meta span:last-child {
  color: var(--blue-dark);
  font-weight: 650;
}

/* Generic bar rows (generation mix, severity bars, top controls) */
.bar-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.32fr) minmax(140px, 1fr) minmax(70px, max-content);
  gap: var(--space-3);
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--type-small);
}
.bar-row:last-child { border-bottom: 0; }

.section--context .bar-row {
  padding: 6px 0;
  border-bottom-color: #e8ece9;
}

.section--context .bar-label {
  color: var(--text);
}

.section--context .bar-track {
  background: transparent;
  border-color: var(--rule);
}

.bar-label { color: var(--text); }
.bar-track {
  height: 6px;
  border-radius: 2px;
  background: #edeeed;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.bar-track span {
  display: block;
  height: 100%;
  border-radius: 0;
}
.bar-value {
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  font-size: var(--type-small);
}

th, td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

tbody tr:nth-child(even) td { background: var(--surface-sunk); }
tbody tr:last-child td { border-bottom: 0; }

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

#rego-summary table {
  font-variant-numeric: tabular-nums;
}

#rego-summary th:nth-child(3),
#rego-summary th:nth-child(4),
#rego-summary th:nth-child(5),
#rego-summary th:nth-child(6),
#rego-summary td:nth-child(3),
#rego-summary td:nth-child(4),
#rego-summary td:nth-child(5),
#rego-summary td:nth-child(6) {
  text-align: right;
}

#rego-summary td:nth-child(5),
#rego-summary td:nth-child(6) {
  color: var(--text-strong);
  font-weight: 600;
}

#rego-summary td:first-child {
  width: 88px;
}

#rego-summary td:nth-child(2) {
  min-width: 160px;
}

#rego-summary td:last-child {
  text-align: center;
  white-space: nowrap;
}

#claim-coverage-table table {
  min-width: 1080px;
  font-variant-numeric: tabular-nums;
  font-size: calc(var(--type-small) - 0.5px);
}

#claim-coverage-table th,
#claim-coverage-table td {
  padding-inline: 8px;
}

#claim-coverage-table th:nth-child(3),
#claim-coverage-table th:nth-child(4),
#claim-coverage-table th:nth-child(5),
#claim-coverage-table th:nth-child(6),
#claim-coverage-table th:nth-child(7),
#claim-coverage-table th:nth-child(9),
#claim-coverage-table td:nth-child(3),
#claim-coverage-table td:nth-child(4),
#claim-coverage-table td:nth-child(5),
#claim-coverage-table td:nth-child(6),
#claim-coverage-table td:nth-child(7),
#claim-coverage-table td:nth-child(9) {
  text-align: right;
  white-space: nowrap;
}

#claim-coverage-table td:nth-child(8) {
  text-align: center;
  white-space: nowrap;
}

#claim-coverage-table td:nth-child(10) {
  min-width: 150px;
  font-variant-numeric: tabular-nums;
}

.claim-context-note {
  margin: 0 0 var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  color: var(--text);
  font-size: var(--type-small);
  line-height: 1.45;
}

.section--scope2 {
  border-top-color: color-mix(in srgb, var(--blue) 42%, var(--border));
}

.section--fmd {
  border-top-color: color-mix(in srgb, var(--amber) 46%, var(--border));
}

.section--carbon-cost {
  border-top-color: color-mix(in srgb, var(--slate) 42%, var(--border));
}

.section--evidence-register {
  border-top-color: color-mix(in srgb, var(--green) 52%, var(--border));
}

.filters--evidence {
  justify-content: flex-start;
}

.filters--evidence label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filters--evidence input {
  accent-color: var(--green);
}

#claim-evidence-table table {
  min-width: 1180px;
}

#claim-evidence-table th:nth-child(1),
#claim-evidence-table td:nth-child(1),
#claim-evidence-table th:nth-child(2),
#claim-evidence-table td:nth-child(2),
#claim-evidence-table th:nth-child(3),
#claim-evidence-table td:nth-child(3),
#claim-evidence-table th:nth-child(4),
#claim-evidence-table td:nth-child(4),
#claim-evidence-table th:nth-child(7),
#claim-evidence-table td:nth-child(7) {
  white-space: nowrap;
}

#claim-evidence-table td:nth-child(8) {
  min-width: 260px;
  color: var(--text);
  line-height: 1.45;
}

#fmd-context-table table {
  min-width: 1040px;
}

#fmd-context-table th:nth-child(1),
#fmd-context-table td:nth-child(1),
#fmd-context-table th:nth-child(2),
#fmd-context-table td:nth-child(2),
#fmd-context-table th:nth-child(3),
#fmd-context-table td:nth-child(3),
#fmd-context-table th:nth-child(4),
#fmd-context-table td:nth-child(4),
#fmd-context-table th:nth-child(5),
#fmd-context-table td:nth-child(5),
#fmd-context-table th:nth-child(6),
#fmd-context-table td:nth-child(6),
#fmd-context-table th:nth-child(7),
#fmd-context-table td:nth-child(7) {
  white-space: nowrap;
}

#scope2-readiness-table table {
  min-width: 980px;
}

#scope2-readiness-table th:nth-child(2),
#scope2-readiness-table td:nth-child(2),
#scope2-readiness-table th:nth-child(4),
#scope2-readiness-table td:nth-child(4),
#scope2-readiness-table th:nth-child(5),
#scope2-readiness-table td:nth-child(5),
#scope2-readiness-table th:nth-child(6),
#scope2-readiness-table td:nth-child(6),
#scope2-readiness-table th:nth-child(7),
#scope2-readiness-table td:nth-child(7) {
  white-space: nowrap;
}

#scope2-readiness-table td:nth-child(8) {
  color: var(--text-muted);
  font-size: var(--type-small);
  line-height: 1.45;
}

#exception-table.table-wrap {
  max-height: 620px;
  border-color: var(--border-strong);
}

#exception-table table {
  min-width: 1120px;
}

#exception-table th,
#exception-table td {
  padding: 6px 9px;
}

#exception-table th {
  background: #f4f6f4;
  box-shadow: 0 1px 0 var(--border);
}

#exception-table th:nth-child(1),
#exception-table td:nth-child(1),
#exception-table th:nth-child(3),
#exception-table td:nth-child(3),
#exception-table th:nth-child(4),
#exception-table td:nth-child(4),
#exception-table th:nth-child(5),
#exception-table td:nth-child(5) {
  white-space: nowrap;
}

#exception-table th:nth-child(1) { width: 96px; }
#exception-table th:nth-child(2) { width: 88px; }
#exception-table th:nth-child(3) { width: 170px; }
#exception-table th:nth-child(4) { width: 130px; }
#exception-table th:nth-child(5) { width: 92px; }
#exception-table th:nth-child(6) { width: 340px; }
#exception-table th:nth-child(7) { width: 300px; }

#exception-table td:nth-child(2) {
  text-align: center;
}

#exception-table td:nth-child(6),
#exception-table td:nth-child(7) {
  color: var(--text);
  line-height: 1.42;
}

.id-text {
  white-space: nowrap;
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: var(--type-small);
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}

/* Exception register: counts ribbon */
.register-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}

.register-summary > div {
  padding: 0 var(--space-4);
  border-left: 1px solid var(--rule);
}
.register-summary > div:first-child { border-left: 0; padding-left: 0; }

.register-summary dt {
  margin-bottom: 4px;
  font-size: var(--type-meta);
}
.register-summary dd {
  margin: 0;
  font-size: var(--type-value);
  font-weight: 650;
  color: var(--text-strong);
}
.register-summary .register-high   { color: var(--red-dark); }
.register-summary .register-medium { color: var(--amber-2); }
.register-summary .register-low    { color: var(--slate); }

.section--register .split-panel {
  gap: var(--space-5);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
}

.section--register .split-panel > div {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.section--register .split-panel > div h3 {
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--rule);
  color: var(--text);
}

.register-panel .bars-panel {
  margin-bottom: 0;
}

.section--register .bar-row {
  grid-template-columns: minmax(150px, 0.34fr) minmax(160px, 1fr) minmax(44px, max-content);
  padding: 6px 0;
}

.section--register .bar-label {
  color: var(--text-strong);
  font-weight: 550;
}

.section--register .bar-track {
  height: 5px;
  background: transparent;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--space-3);
  margin: var(--space-3) 0;
  padding: var(--space-2) 0 0;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
}

.section--register .filters {
  gap: var(--space-2) var(--space-4);
  align-items: center;
  margin: var(--space-4) 0 var(--space-2);
  padding: var(--space-2) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section--register .filters::before {
  content: "Filter register";
  color: var(--muted);
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  margin-right: var(--space-2);
}

.section--register .filters label {
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0;
  text-transform: none;
}

.section--register .filters select {
  min-width: 124px;
  padding: 4px 7px;
}

label {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

select {
  min-width: 132px;
  max-width: 230px;
  padding: 5px 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: var(--type-small);
  font-family: inherit;
}

select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

/* Fact row (metrics strips) */
.fact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
}

.fact {
  position: relative;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.fact dd {
  color: var(--text-strong);
  font-size: var(--type-value);
  font-weight: 650;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

/* Charts */
.svg-chart {
  min-height: 205px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.svg-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.grid-line   { stroke: #e8ece9; stroke-width: 1; }
.axis-line   { stroke: var(--accent-rule); stroke-width: 1; }
.axis-label,
.svg-chart text {
  fill: var(--muted);
  font-size: var(--type-meta);
  font-variant-numeric: tabular-nums;
}

.chart-annot {
  fill: var(--text-strong);
  font-size: var(--type-meta);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.chart-annot-box {
  fill: rgba(255, 255, 255, 0.92);
  stroke: var(--accent-rule);
  stroke-width: 1;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  padding: 4px 0 0;
  font-size: var(--type-meta);
  color: var(--muted);
}

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

.legend-item i {
  display: inline-block;
  width: 16px;
  height: 2px;
  border-radius: 0;
}

/* Severity pills */
.severity-high,
.severity-medium,
.severity-low {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  min-width: 54px;
  padding: 1px 7px;
  border-radius: 2px;
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.severity-high   { background: var(--red-soft);   color: var(--red-dark); }
.severity-medium { background: var(--amber-soft); color: var(--amber-2); }
.severity-low    { background: var(--slate-soft); color: var(--slate); }

#exception-table .severity-high,
#exception-table .severity-medium,
#exception-table .severity-low {
  width: 62px;
}

.status-pill {
  display: inline-flex;
  min-width: 74px;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  border-radius: 2px;
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.status-covered   { background: var(--green-soft); color: var(--green-dark); }
.status-surplus   { background: var(--blue-soft);  color: var(--blue-dark); }
.status-shortfall { background: var(--red-soft);   color: var(--red-dark); }
.status-review    { background: var(--amber-soft); color: var(--amber-2); }
.status-not-supportable {
  min-width: 108px;
  background: var(--red-soft);
  color: var(--red-dark);
}

.muted {
  color: var(--muted);
  font-size: var(--type-small);
}

.empty-state {
  margin: 0;
  padding: var(--space-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: var(--type-small);
}

/* Carbon methodology caption (sample period, FX, feed notes) */
.section-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 0;
  align-items: center;
  margin: calc(-1 * var(--space-1)) 0 var(--space-3);
  padding: 0 0 var(--space-2);
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
}

.section-meta::before {
  content: "Methodology";
  margin-right: var(--space-2);
  color: var(--blue-dark);
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.sample-period,
.method-note {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: var(--type-small);
  line-height: 1.4;
}

.sample-period::before,
.method-note::before {
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted-2);
}

.sample-period::before { content: "Sample window:"; }
#carbon-fx-note::before { content: "FX:"; }
#carbon-feed-note::before { content: "Feed:"; color: var(--muted-2); }

.section-meta p + p {
  margin-left: var(--space-3);
  padding-left: var(--space-3);
  border-left: 1px solid var(--rule);
}

#carbon-feed-note {
  color: var(--muted);
}

/* Analyst note */
.note {
  max-width: 900px;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green-dark);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: var(--type-body);
  line-height: 1.6;
}

.note h3 {
  margin: var(--space-4) 0 var(--space-2);
  font-size: var(--type-small);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
}

.note p { margin: 0 0 var(--space-3); }
.note p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  margin-top: var(--space-6);
  padding: var(--space-4) 0 0;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: var(--type-small);
  line-height: 1.5;
}

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 1100px) {
  .header-grid,
  .hero-grid,
  .executive-header,
  .section-heading { grid-template-columns: 1fr; }

  .attention-panel {
    padding-right: 0;
    border-right: 0;
  }

  .summary-item {
    grid-template-columns: minmax(120px, 0.32fr) minmax(110px, 0.28fr) minmax(180px, 1fr);
  }

  .executive-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .executive-strip .strip-item:nth-child(4) { border-left: 0; padding-left: 0; }

  .register-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-3); }
  .register-summary > div:nth-child(3) { border-left: 0; padding-left: 0; }

  .carbon-concepts { grid-template-columns: 1fr; }
  .carbon-concept {
    padding: var(--space-3) 0 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .carbon-concept:first-child {
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 760px) {
  body {
    width: 100vw;
    max-width: 100vw;
    padding: var(--space-4) var(--space-3) var(--space-6);
  }

  main,
  .site-header,
  .header-grid,
  .data-basis,
  .executive-briefing,
  .hero-grid,
  .attention-panel,
  .executive-header,
  .summary-grid,
  .summary-item,
  .executive-strip,
  .strip-item {
    min-width: 0;
    max-width: 100%;
  }

  h1 { font-size: clamp(1.28rem, 5.2vw, 1.55rem); line-height: 1.18; }
  .lede { max-width: calc(100vw - 60px); font-size: var(--type-small); }

  .top-links::before { width: 100%; margin-bottom: 4px; }

  .executive-briefing,
  .attention-panel,
  .section { padding: var(--space-4); }

  .executive-briefing {
    padding-left: 0;
    padding-right: 0;
  }

  .section--context,
  .section--evidence {
    padding-left: 0;
    padding-right: 0;
  }

  .header-grid,
  .hero-grid,
  .executive-header,
  .executive-strip,
  .section-heading,
  .visual-grid,
  .split-panel { grid-template-columns: 1fr; }

  .summary-item {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 9px 0 10px 12px;
  }

  .executive-strip .strip-item,
  .register-summary > div {
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .executive-strip .strip-item { padding-top: 6px; border-top: 1px solid var(--rule); }
  .executive-strip .strip-item:first-child { border-top: 0; padding-top: 0; }

  .register-summary { grid-template-columns: 1fr; row-gap: var(--space-2); }

  .section--context .fact-row {
    gap: 0;
  }

  .section--context .fact {
    padding: 7px 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .section--context .fact:first-child {
    border-top: 0;
  }

  .basis-item { flex-basis: auto; }
  .basis-item + .basis-item::before { margin: 0 7px; }

  .attention-list li,
  .summary-item p,
  .chart-caption { overflow-wrap: anywhere; word-break: break-word; }

  .bar-row { grid-template-columns: 1fr; gap: var(--space-1); }
  .coverage-row__head,
  .coverage-row__meta { display: grid; gap: var(--space-1); }
  .bar-value { text-align: left; }
}
