/* LosEnergy site styles, shared by the home page and the data page.
   Fonts are served from this site, not a font CDN: no visitor data goes to a third party. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo.woff2") format("woff2-variations"), url("fonts/archivo.woff2") format("woff2");
}
@font-face {
  font-family: "Martian Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  src: url("fonts/martian-mono.woff2") format("woff2-variations"), url("fonts/martian-mono.woff2") format("woff2");
}

/* Colour is evidence on this site:
   jade = LosEnergy's estimate, sand = the company's reported figure,
   ash = what you would assume without us. */
:root {
  color-scheme: dark;
  --black: #000000;
  --panel: #0a0f0d;
  --rule: #1d2622;
  --rule-strong: #2d3934;
  --bone: #eeece4;
  --text: #c8ccc5;
  --ash: #8b938d;
  --ash-dim: #5d6661;
  --jade: #52cc9f;
  --jade-ink: #03140d;
  --sand: #dbb67a;
  /* the coverage map's four steps: 1, 2-3, 4-5, 6+ companies */
  --z1: #1d4636;
  --z2: #2a7457;
  --z3: #3ba279;
  --z4: #52cc9f;
  --land: #0e1512;

  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: 20px;
  --max: 1240px;
  --gap: 24px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-kerning: normal;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 720px) { body { font-size: 1.125rem; } }
::selection { background: var(--jade); color: var(--jade-ink); }
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; border-radius: 3px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--bone); color: var(--black); padding: 8px 14px; border-radius: 6px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-stretch: 87.5%; font-size: 0.8125rem; line-height: 1.55; letter-spacing: 0; }
.fine { color: var(--ash); font-size: 0.9375rem; line-height: 1.55; }
.text-link {
  color: var(--bone); font-weight: 500;
  text-decoration-line: underline; text-decoration-thickness: 1px;
  text-decoration-color: var(--rule-strong); text-underline-offset: 6px;
  transition: text-decoration-color 160ms ease;
}
.text-link:hover { text-decoration-color: var(--bone); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 0, 0, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--bone);
  font-size: 1.125rem; font-weight: 620; font-stretch: 116%; letter-spacing: -0.01em;
}
.brand svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--ash); text-decoration: none; font-size: 0.9375rem;
  text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.nav a:hover { color: var(--bone); text-decoration-line: underline; }
.nav a[aria-current="page"] { color: var(--bone); }
.nav .nav-cta { color: var(--bone); }
@media (max-width: 759px) { .nav { gap: 20px; } .nav a:not(.nav-keep) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
  padding-top: clamp(48px, 8vw, 112px);
  padding-bottom: clamp(72px, 9vw, 128px);
}
.hero h1 {
  grid-column: 1 / -1;
  margin: 0;
  max-width: 16.5em;
  color: var(--bone);
  font-size: clamp(2.375rem, 1.1rem + 4.3vw, 4.5rem);
  line-height: 1.02;
  font-weight: 560;
  font-stretch: 108%;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
.hero-copy { grid-column: 1 / span 6; }
.lead {
  margin: clamp(24px, 3vw, 36px) 0 0;
  max-width: 34em;
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  color: var(--text);
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center;
  min-height: 48px; padding: 0 22px;
  background: var(--jade); color: var(--jade-ink);
  border-radius: 6px; text-decoration: none;
  font-weight: 640; font-stretch: 108%; font-size: 1rem; letter-spacing: -0.005em;
  transition: background-color 160ms ease;
}
.btn:hover { background: #6edab1; }

/* The proof: one sealed estimate against the company's own figure */
.proof {
  grid-column: 8 / span 5;
  margin-top: clamp(24px, 3vw, 36px);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 26px 24px 22px;
}
.proof-title { margin: 0; color: var(--bone); font-size: 1.125rem; line-height: 1.3; font-weight: 600; font-stretch: 106%; }
.proof-sub { margin: 2px 0 0; color: var(--ash); font-size: 0.875rem; }
.proof-row { margin-top: 24px; }
.proof-row + .proof-row { margin-top: 20px; }
.proof-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.proof-label { color: var(--text); font-size: 0.9375rem; }
.proof-value {
  color: var(--bone);
  font-size: 1.75rem; line-height: 1; font-weight: 480; font-stretch: 118%; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums; white-space: nowrap;
}
.proof-value small { font-size: 0.875rem; color: var(--ash); font-weight: 450; font-stretch: 100%; letter-spacing: 0; margin-left: 2px; }
.bar { height: 10px; margin-top: 12px; background: #121a17; border-radius: 2px; overflow: hidden; }
.bar > span { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: 2px; }
.is-ours .bar > span { background: var(--jade); }
.is-theirs .bar > span { background: var(--sand); }
.proof-meta { margin-top: 8px; color: var(--ash); font-size: 0.8125rem; }
.proof-foot { display: flex; align-items: baseline; gap: 14px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
.proof-diff {
  color: var(--bone); font-size: 2.25rem; line-height: 1; font-weight: 460; font-stretch: 120%;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums;
}
.proof-foot p { margin: 0; color: var(--ash); font-size: 0.875rem; line-height: 1.45; }
@media (max-width: 1023px) {
  .hero-copy { grid-column: 1 / -1; }
  .proof { grid-column: 1 / span 9; margin-top: 56px; }
}
@media (max-width: 639px) { .proof { grid-column: 1 / -1; padding: 22px 18px 18px; } }

/* ---------- Home page sections: heading row, then the full width ---------- */
.block { padding-top: clamp(80px, 10vw, 136px); padding-bottom: clamp(80px, 10vw, 136px); border-top: 1px solid var(--rule); }
.block-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: end; margin-bottom: clamp(36px, 5vw, 56px);
}
.block-head h2, .rail h2, .page-head h1 {
  margin: 0; color: var(--bone);
  font-size: clamp(1.875rem, 1.25rem + 1.6vw, 2.75rem);
  line-height: 1.05; font-weight: 560; font-stretch: 110%; letter-spacing: -0.02em;
}
.block-head h2 { grid-column: 1 / span 6; text-wrap: balance; }
.block-head p { grid-column: 8 / span 5; margin: 0; max-width: 42ch; color: var(--text); }
@media (max-width: 959px) {
  .block-head h2, .block-head p { grid-column: 1 / -1; }
  .block-head p { margin-top: 16px; }
}
.block-foot { margin: 28px 0 0; color: var(--ash); font-size: 0.9375rem; }
.block-foot a { color: var(--bone); text-underline-offset: 5px; text-decoration-color: var(--rule-strong); }
.block-foot a:hover { text-decoration-color: var(--bone); }

/* Scoreboard */
.tally { margin: 0 0 28px; color: var(--text); max-width: 60ch; }
.tally b { color: var(--bone); font-weight: 600; }
.board { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.board th {
  text-align: left; vertical-align: bottom; font-weight: 500; font-size: 0.8125rem; color: var(--ash);
  padding: 0 16px 12px 0; border-bottom: 1px solid var(--rule-strong);
}
.board td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; color: var(--text); }
.board th:last-child, .board td:last-child { padding-right: 0; }
.board .r { text-align: right; }
.board .call b { display: block; color: var(--bone); font-weight: 560; font-size: 1rem; }
.board .call span { display: block; color: var(--ash); font-size: 0.8125rem; margin-top: 2px; }
.board .when { white-space: nowrap; font-variant-numeric: tabular-nums; }
.board .when span { display: block; color: var(--ash); font-size: 0.8125rem; }
.board .v { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; font-size: 1rem; }
.board .v.ours { color: var(--jade); font-weight: 560; }
.board .v span { display: block; color: var(--ash); font-size: 0.75rem; font-weight: 400; }
.board .waiting { color: var(--ash); }
.board .waiting b { color: var(--text); font-weight: 500; }
.board .chart-cell { width: 26%; min-width: 180px; }
.mini { position: relative; height: 30px; }
.mini::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--rule-strong); }
.mini .zero { position: absolute; top: 3px; bottom: 3px; left: 50%; width: 1px; background: var(--bone); }
.mini .seg { position: absolute; top: 9px; height: 12px; border-radius: 2px; background: var(--jade); }
.mini .tick { position: absolute; top: 7px; height: 16px; width: 2px; margin-left: -1px; background: var(--ash); border-radius: 1px; }
.mini.sealed::before { background: none; border-top: 1px dashed var(--rule-strong); height: 0; }
.board-key { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; color: var(--ash); font-size: 0.8125rem; }
.board-key span { display: inline-flex; align-items: center; gap: 8px; }
.board-key i { display: inline-block; }
.key-ours { width: 14px; height: 10px; border-radius: 2px; background: var(--jade); }
.key-tick { width: 2px; height: 14px; background: var(--ash); }
.key-zero { width: 1px; height: 14px; background: var(--bone); }
.next-up { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--text); font-size: 0.9375rem; }
.next-up b { color: var(--bone); font-weight: 560; }
@media (max-width: 899px) {
  .board thead { display: none; }
  .board, .board tbody, .board tr, .board td { display: block; width: 100%; }
  .board tr { padding: 20px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
  .board td { border: 0; padding: 0; }
  .board .call, .board .when, .board .chart-cell, .board .waiting { grid-column: 1 / -1; }
  .board .when { font-size: 0.875rem; white-space: normal; }
  .board .when::before { content: attr(data-label) " "; color: var(--ash); }
  .board .when span { display: inline; margin-left: 6px; }
  .board .chart-cell { width: auto; min-width: 0; margin: 6px 0 4px; }
  .board .v { text-align: left; font-size: 0.9375rem; }
  .board .v::before { content: attr(data-label); display: block; color: var(--ash); font-size: 0.75rem; font-weight: 400; margin-bottom: 2px; }
}

/* Coverage map */
.cov { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.cov-map { grid-column: 1 / span 8; min-width: 0; }
.cov-map svg { width: 100%; height: auto; overflow: visible; }
.cov-side { grid-column: 9 / span 4; position: sticky; top: 96px; }
@media (max-width: 959px) {
  .cov-map, .cov-side { grid-column: 1 / -1; }
  .cov-side { position: static; margin-top: 28px; }
}
.land { fill: var(--land); stroke: #000; stroke-width: 0.7; }
.z { stroke: #000; stroke-width: 0.8; cursor: pointer; transition: fill 220ms ease, fill-opacity 600ms ease; }
.z.c1 { fill: var(--z1); } .z.c2 { fill: var(--z2); } .z.c3 { fill: var(--z3); } .z.c4 { fill: var(--z4); }
.z:focus { outline: none; }
.has-company .z { fill: #15211c; }
.has-company .z.is-on { fill: var(--z4); }
.z-outline { fill: none; stroke: var(--bone); stroke-width: 1.8; pointer-events: none; stroke-linejoin: round; }
/* label sizes are in map units: 16 units is about 12px when the map is 750px wide */
.zl {
  font-family: var(--sans); font-size: 16px; font-weight: 640; font-stretch: 112%; letter-spacing: 0.02em;
  fill: var(--bone); text-anchor: middle; dominant-baseline: central; pointer-events: none;
  transition: fill-opacity 400ms ease, fill 220ms ease;
}
.zl.ink { fill: var(--jade-ink); }
.has-company .zl { fill: var(--ash-dim); }
.has-company .zl.is-on { fill: var(--jade-ink); }
@media (max-width: 639px) { .zl { display: none; } }
/* the one reveal on this page: zones light up, most companies first */
.cov-map.pre .z { fill-opacity: 0.08; }
.cov-map.pre .zl { fill-opacity: 0; }
.cov-map.reveal .z { fill-opacity: 1; transition-delay: 0ms, calc(var(--i) * 70ms); }
.cov-map.reveal .zl { fill-opacity: 1; transition-delay: calc(400ms + var(--i) * 70ms), 0ms; }

.cov-panel { min-height: 236px; border-top: 1px solid var(--rule-strong); padding-top: 18px; }
.cov-panel h3 { margin: 0; color: var(--bone); font-size: 1.375rem; line-height: 1.2; font-weight: 600; font-stretch: 106%; }
.cov-panel .cp-sub { margin: 6px 0 0; color: var(--ash); font-size: 0.875rem; }
.cov-panel .cp-big {
  margin: 0; color: var(--bone); font-size: 3rem; line-height: 1; font-weight: 440; font-stretch: 122%;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums;
}
.cov-panel p { margin: 10px 0 0; font-size: 0.9375rem; line-height: 1.5; }
.cov-panel ul { list-style: none; margin: 14px 0 0; padding: 0; columns: 2; column-gap: 16px; font-size: 0.9375rem; }
.cov-panel li { color: var(--bone); padding: 2px 0; break-inside: avoid; }
.cov-panel .cp-note { color: var(--ash); font-size: 0.875rem; }
.scale { display: flex; gap: 4px; margin-top: 16px; }
.scale span { flex: 1; font-size: 0.75rem; color: var(--ash); }
.scale span::before { content: ""; display: block; height: 8px; border-radius: 1px; margin-bottom: 6px; }
.scale .s1::before { background: var(--z1); } .scale .s2::before { background: var(--z2); }
.scale .s3::before { background: var(--z3); } .scale .s4::before { background: var(--z4); }
.co-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.co-list button {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%;
  padding: 9px 0; margin: 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  background: none; color: var(--text); font: inherit; font-size: 0.9375rem; text-align: left; cursor: pointer;
}
.co-list button:hover, .co-list button[aria-pressed="true"] { color: var(--bone); }
.co-list button[aria-pressed="true"] .co-name::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border-radius: 50%; background: var(--jade); vertical-align: middle; }
.co-list .co-n { color: var(--ash); font-size: 0.8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-list button:focus-visible { outline-offset: -2px; }
@media (max-width: 959px) {
  .co-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
}
@media (max-width: 419px) { .co-list { grid-template-columns: minmax(0, 1fr); } }

/* Three steps in a row */
.steps-row { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--gap); }
.steps-row li { counter-increment: step; border-top: 1px solid var(--rule-strong); padding-top: 18px; }
.steps-row li::before {
  content: counter(step); display: block; margin-bottom: 18px;
  color: var(--bone); font-size: 2rem; line-height: 1; font-weight: 300; font-stretch: 125%;
}
.steps-row h3 { margin: 0 0 8px; color: var(--bone); font-size: 1.25rem; font-weight: 600; font-stretch: 106%; }
.steps-row p { margin: 0; max-width: 34ch; }
@media (max-width: 799px) { .steps-row { grid-template-columns: minmax(0, 1fr); } }

/* What arrives each morning */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); margin: 0; border-top: 1px solid var(--rule); }
.facts > div { padding: 22px 0 26px; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--ash); font-size: 0.875rem; margin-bottom: 8px; }
.facts dd { margin: 0; color: var(--bone); font-size: 1.0625rem; line-height: 1.45; max-width: 32ch; }
@media (max-width: 899px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px var(--gap); }
.person { border-top: 1px solid var(--rule-strong); padding-top: 24px; }
.person h3 {
  margin: 0; color: var(--bone);
  font-size: clamp(2.25rem, 1.5rem + 2vw, 3.25rem); line-height: 1; font-weight: 520; font-stretch: 118%; letter-spacing: -0.025em;
}
.person .role { margin: 14px 0 0; color: var(--bone); font-weight: 500; }
.person p { margin: 10px 0 0; max-width: 40ch; }
@media (max-width: 719px) { .team { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Data page ---------- */
.page-head { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 80px); }
.page-head h1 { font-size: clamp(2.5rem, 1.3rem + 4vw, 4.5rem); line-height: 1.02; letter-spacing: -0.024em; font-stretch: 108%; }
.page-head .lead { max-width: 40em; }
.toc { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.toc a { color: var(--bone); font-size: 0.9375rem; text-underline-offset: 6px; text-decoration-color: var(--rule-strong); }
.toc a:hover { text-decoration-color: var(--bone); }

/* Sections with a heading rail on the left, the evidence on the right */
.sec {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px);
  border-top: 1px solid var(--rule);
}
.rail { grid-column: 1 / span 4; }
.rail-in { position: sticky; top: 112px; }
.rail p { margin: 16px 0 0; max-width: 30ch; color: var(--ash); font-size: 1rem; line-height: 1.55; }
.rail p.as-of { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--text); font-size: 0.875rem; }
.content { grid-column: 5 / span 8; min-width: 0; }
@media (max-width: 959px) {
  .rail, .content { grid-column: 1 / -1; }
  .rail-in { position: static; }
  .rail { margin-bottom: 40px; }
  .rail p { max-width: 46ch; }
}
.content h3 { margin: 0 0 12px; color: var(--bone); font-size: 1.3125rem; line-height: 1.25; font-weight: 600; font-stretch: 106%; letter-spacing: -0.008em; }
.content .part + .part { margin-top: 64px; }
.content p { margin: 0 0 16px; max-width: 62ch; }
.content p:last-child { margin-bottom: 0; }

/* Steps, as a vertical sequence */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; padding-bottom: 40px; }
.steps li::before { content: counter(step); color: var(--bone); font-size: 2rem; line-height: 1; font-weight: 300; font-stretch: 125%; font-variant-numeric: tabular-nums; }
.steps li::after { content: ""; position: absolute; left: 11px; top: 46px; bottom: 10px; width: 1px; background: var(--rule-strong); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin-top: 2px; }
.steps p { margin: 0; }

/* Tables of record */
.ledger { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 0.9375rem; }
.ledger th, .ledger td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger th:last-child, .ledger td:last-child { padding-right: 0; }
.ledger th { color: var(--ash); font-weight: 500; font-size: 0.8125rem; vertical-align: bottom; }
.ledger td { color: var(--text); }
.ledger td.lead-cell { color: var(--bone); }
.ledger td .sub { display: block; color: var(--ash); font-size: 0.8125rem; }
.ledger .r { text-align: right; }
.ledger .ours { color: var(--jade); }
.ledger .theirs { color: var(--sand); }
.ledger .muted { color: var(--ash); }
.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > table { min-width: 640px; }

/* The receipt */
.receipt { margin: 32px 0 0; background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 24px; }
.receipt figcaption { color: var(--bone); font-weight: 600; font-stretch: 106%; font-size: 1rem; }
.receipt dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 18px 0 0; }
.receipt dl > div { min-width: 0; }
.receipt .wide { grid-column: 1 / -1; }
.receipt dt { color: var(--ash); font-size: 0.8125rem; margin-bottom: 4px; }
.receipt dd { margin: 0; color: var(--bone); font-size: 0.9375rem; }
.receipt dd.mono { font-size: 0.8125rem; }
.hash { word-break: break-all; overflow-wrap: anywhere; }
.hash .unset { color: var(--ash-dim); }
@media (max-width: 479px) { .receipt { padding: 20px 16px; } .receipt dl { grid-template-columns: minmax(0, 1fr); } }
.code-line { display: block; margin: 12px 0 0; padding: 14px 16px; background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; color: var(--bone); overflow-x: auto; white-space: pre; }

/* Diverging bars and range bars share one axis vocabulary */
.chart { margin: 32px 0 0; }
.chart.ranges { --val: 128px; --val-sm: 112px; }
.chart figcaption { color: var(--bone); font-size: 0.9375rem; font-weight: 560; margin-bottom: 20px; }
.chart-rows { position: relative; }
.chart-row { display: grid; grid-template-columns: minmax(118px, 30%) minmax(0, 1fr) var(--val, 92px); align-items: center; column-gap: 16px; min-height: 44px; }
.chart-label { color: var(--text); font-size: 0.9375rem; line-height: 1.3; }
.chart-value { text-align: right; color: var(--bone); font-size: 0.9375rem; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.track { position: relative; height: 44px; }
.track .grid-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.track .zero { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--bone); z-index: 2; }
.track .seg { position: absolute; top: 13px; height: 18px; border-radius: 2px; z-index: 1; }
.seg.ours { background: var(--jade); }
.seg.base { background: var(--ash-dim); }
.axis { display: grid; grid-template-columns: minmax(118px, 30%) minmax(0, 1fr) var(--val, 92px); column-gap: 16px; margin-top: 6px; color: var(--ash); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.axis .ticks { position: relative; height: 18px; }
.axis .ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.axis .ticks span.first { transform: none; }
.zero-label { position: absolute; top: -22px; transform: translateX(-50%); color: var(--bone); font-size: 0.75rem; white-space: nowrap; }
.chart-rows.has-zero-label { margin-top: 28px; }
.chart-note { margin-top: 20px; }
.chart-note dt { display: inline; color: var(--text); }
.chart-note dd { display: inline; margin: 0; }
.chart-note div + div { margin-top: 6px; }
@media (max-width: 559px) {
  .chart-row, .axis { grid-template-columns: minmax(0, 1fr) var(--val-sm, 76px); }
  .chart-label { grid-column: 1 / -1; padding-top: 10px; }
  .track { grid-column: 1; height: 34px; }
  .track .seg { top: 9px; height: 16px; }
  .chart-value { grid-column: 2; }
  .axis .spacer { display: none; }
}

/* Calendar of deadlines */
.cal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; margin-top: 28px; }
.month h4 { margin: 0; color: var(--bone); font-size: 0.9375rem; font-weight: 560; }
.month-bar { position: relative; height: 14px; margin: 12px 0 14px; }
.month-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--rule-strong); }
.month-bar i { position: absolute; top: 3px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--bone); }
.month ul { list-style: none; margin: 0; padding: 0; }
.month li { display: grid; grid-template-columns: 1.8em minmax(0, 1fr); gap: 8px; padding: 3px 0; font-size: 0.875rem; line-height: 1.5; color: var(--text); }
.month time { color: var(--ash); font-variant-numeric: tabular-nums; }
.month .tag { display: block; color: var(--ash); font-size: 0.8125rem; }
@media (max-width: 899px) { .cal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 419px) { .cal { grid-template-columns: minmax(0, 1fr); } }

/* Coverage matrix */
.matrix-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.matrix { width: 100%; min-width: 660px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 0.875rem; }
.matrix col.c-co { width: 160px; }
.matrix col.c-mw { width: 84px; }
.matrix col.c-zw { width: 46px; }
.matrix th, .matrix td { padding: 11px 0; border-bottom: 1px solid var(--rule); text-align: center; }
.matrix thead th { color: var(--ash); font-weight: 500; font-size: 0.75rem; padding-top: 0; vertical-align: bottom; }
.matrix abbr { text-decoration: none; cursor: help; }
.matrix th.co { text-align: left; padding-right: 16px; position: sticky; left: 0; z-index: 1; background: var(--black); }
.matrix tbody th.co { font-weight: 500; color: var(--bone); }
.matrix .tk { display: block; color: var(--ash); font-size: 0.75rem; font-weight: 400; }
.matrix .mw { text-align: right; padding-right: 22px; color: var(--bone); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.matrix thead .mw { color: var(--ash); }
.matrix tbody tr:hover th, .matrix tbody tr:hover td { background: #070b09; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--jade); vertical-align: middle; }
.dot.metered { width: 14px; height: 14px; background: radial-gradient(circle, var(--jade) 0 3px, transparent 3.5px); box-shadow: inset 0 0 0 2px var(--jade); }
.none { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--rule-strong); vertical-align: middle; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 20px 0 0; color: var(--ash); font-size: 0.875rem; }
.legend span { display: inline-flex; align-items: center; gap: 10px; }
.cov-list { display: none; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.cov-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.cov-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cov-name { color: var(--bone); font-weight: 500; font-size: 1rem; }
.cov-name .tk { margin-left: 8px; color: var(--ash); font-size: 0.75rem; font-weight: 400; }
.cov-mw { color: var(--bone); font-size: 0.9375rem; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.cov-mw small { color: var(--ash); font-size: 0.75rem; margin-left: 3px; }
.cov-zones { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--text); font-size: 0.875rem; }
.cov-zones span { display: inline-flex; align-items: center; gap: 6px; }
.cov-zones abbr { text-decoration: none; }
.cov-zones .dot.metered { width: 12px; height: 12px; }
@media (max-width: 639px) {
  .matrix-scroll { display: none; }
  .cov-list { display: block; }
  .legend .only-matrix { display: none; }
}

/* Delivery fields */
.big { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.5; color: var(--bone); }
.content p.big { max-width: 36em; }
.fields { margin: 36px 0 32px; border-top: 1px solid var(--rule); }
.fields > div { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.fields dt { color: var(--bone); padding-top: 2px; }
.fields dd { margin: 0; color: var(--text); font-size: 1rem; line-height: 1.5; }
@media (max-width: 559px) { .fields > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Sources */
.sources { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.sources li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.sources b { grid-row: 1 / span 2; color: var(--bone); font-weight: 560; }
.sources span { grid-column: 2; color: var(--text); font-size: 1rem; }
.sources em { grid-column: 2; font-style: normal; color: var(--ash); font-size: 0.875rem; }
.sources a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 639px) {
  .sources li { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .sources b, .sources span, .sources em { grid-column: 1; grid-row: auto; }
}

/* ---------- Contact ---------- */
.contact { padding-top: clamp(88px, 11vw, 160px); padding-bottom: clamp(88px, 11vw, 160px); border-top: 1px solid var(--rule); }
.contact h2 {
  margin: 0; color: var(--bone);
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem); line-height: 1.02;
  font-weight: 560; font-stretch: 110%; letter-spacing: -0.024em;
}
.contact p { margin: 20px 0 0; max-width: 40em; font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem); }
.email {
  display: inline-block; margin-top: 40px;
  color: var(--jade); text-decoration: none;
  font-size: clamp(1.5rem, 0.9rem + 3vw, 3.25rem); line-height: 1.1;
  font-weight: 460; font-stretch: 118%; letter-spacing: -0.02em;
  border-bottom: 2px solid transparent; transition: border-color 160ms ease;
  overflow-wrap: anywhere;
}
.email:hover { border-bottom-color: var(--jade); }

/* ---------- Footer ---------- */
.site-foot { padding-top: 40px; padding-bottom: max(48px, env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); color: var(--ash); font-size: 0.875rem; line-height: 1.55; }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 20px; }
.foot-brand { grid-column: 1 / span 4; color: var(--bone); }
.foot-brand .brand { font-size: 1rem; }
.foot-brand p { margin: 14px 0 0; }
.foot-brand p a { color: var(--ash); text-underline-offset: 3px; text-decoration-color: var(--rule-strong); }
.foot-brand p a:hover { color: var(--bone); }
.foot-notes { grid-column: 6 / span 7; }
.foot-notes p { margin: 0 0 10px; max-width: 64ch; }
.foot-notes a { text-underline-offset: 3px; text-decoration-color: var(--rule-strong); }
.foot-notes a:hover { color: var(--bone); text-decoration-color: var(--bone); }
@media (max-width: 959px) { .foot-brand, .foot-notes { grid-column: 1 / -1; } }

/* On a phone the registration table stacks, one registration per block */
@media (max-width: 639px) {
  .table-scroll > table.stack { min-width: 0; }
  .ledger.stack thead { display: none; }
  .ledger.stack, .ledger.stack tbody, .ledger.stack tr, .ledger.stack td { display: block; width: 100%; }
  .ledger.stack tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .ledger.stack td { border: 0; padding: 0; text-align: left; white-space: normal; }
  .ledger.stack td:nth-child(1) { grid-column: 1 / -1; color: var(--ash); }
  .ledger.stack td:nth-child(1) .sub { display: inline; margin-left: 6px; }
  .ledger.stack td:nth-child(2) { grid-column: 1 / span 2; }
  .ledger.stack td:nth-child(3) { grid-column: 3; color: var(--ash); }
  .ledger.stack td[data-label]::before { content: attr(data-label); display: block; color: var(--ash); font-size: 0.75rem; margin-bottom: 2px; }
}
