:root {
  --ink: #242424;
  --grey: #9c9c9c;
  --paper: #fcf6f8;
  --white: #ffffff;
  --pink: #e52555;
  --pink-deep: #bf1741;
  --pink-mid: #ea5278;
  --pink-soft: #ee7795;
  --pink-pale: #fce8ed;
  --maroon: #921232;
  --maroon-deep: #640c22;
  --teal: #2abcba;
  --teal-deep: #1c7d7c;
  --teal-mid: #25a7a5;
  --teal-soft: #6ddedd;
  --teal-pale: #eefbfb;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: Inter, "Segoe UI", sans-serif;
  --max: 1120px;
  --header: 4.4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--maroon);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--pink);
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--white);
  color: var(--ink);
  padding: 0.7rem 1rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.skip:focus {
  top: 0.75rem;
}

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 30;
  background: transparent;
}

.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--pink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--header);
  padding: 0.7rem 1.25rem;
  background: #242424;
  color: var(--white);
}

.wordmark,
.footer-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex: 0 0 auto;
}

.wordmark {
  color: var(--white);
  text-decoration: none;
}

.site-footer .footer-lockup {
  margin: 0 0 1.15rem;
}

.logo {
  display: block;
  width: auto;
  height: auto;
}

.logo-serco {
  height: 26px;
}

.logo-bradshaw {
  height: 34.5px;
}

.wordmark-rule {
  width: 1px;
  height: 34px;
  background: #dfdede;
  flex: 0 0 auto;
}

.chapter-nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 0.15rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.chapter-nav::-webkit-scrollbar {
  display: none;
}

.chapter-nav a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  padding: 0.4rem 0.65rem;
}

.chapter-nav a[aria-current="true"] {
  color: var(--pink-soft);
  box-shadow: inset 0 -2px 0 var(--pink);
}

.chapter-nav a:hover {
  color: var(--pink-soft);
}

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

.wide {
  width: min(1200px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  background: #242424;
  color: var(--white);
  padding: 4.2rem 0 3.4rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 38rem;
  height: 38rem;
  border: 1px solid rgba(229, 37, 85, 0.7);
  right: -14rem;
  top: -18rem;
}

.hero::after {
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(47, 208, 206, 0.55);
  right: -4rem;
  bottom: -12rem;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.eyebrow,
.chapter-kicker,
.mini-kicker,
.channel span,
.pull span {
  margin: 0 0 0.7rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--maroon);
}

.hero .eyebrow {
  color: var(--pink-soft);
}

.hero h1,
.chapter h2,
.glance h2,
.method h2 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.88;
  text-transform: uppercase;
  margin: 0;
}

.hero h1 {
  max-width: 12ch;
  color: var(--white);
  font-size: clamp(3.6rem, 9vw, 7.4rem);
}

.chapter h2,
.glance h2,
.method h2 {
  max-width: 18ch;
  color: var(--pink);
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
}

.strap,
.lede,
.caption,
.note,
.byline,
.quote p,
.stat-card p,
.glance-card p,
.hero-stats p,
.division p,
.pull p,
.channel p,
.panel .note {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
}

.strap {
  max-width: 38rem;
  margin: 1.3rem 0 0;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.4;
  color: var(--white);
}

.byline {
  margin: 1rem 0 0;
  color: var(--pink-soft);
  font-size: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--pink);
}

.hero-stats article,
.stat-card,
.channel,
.division,
.glance-card,
.pull {
  background: var(--white);
  border-radius: 0.35rem;
  color: var(--ink);
}

.hero-stats article {
  padding: 1rem 1rem 1.15rem;
}

.num,
.stat-card strong,
.glance-card strong,
.division .num,
.panel dd,
.hero-stats .num {
  font-family: var(--display);
  font-weight: 900;
  font-style: normal;
  letter-spacing: -0.03em;
  line-height: 0.85;
  text-transform: uppercase;
  color: var(--pink);
}

.hero-stats .num,
.stat-card strong,
.glance-card strong,
.division .num {
  display: block;
  font-size: clamp(2.6rem, 5vw, 4.1rem);
}

.hero-stats p,
.stat-card p,
.glance-card p,
.division p,
.pull p,
.channel p {
  margin: 0.55rem 0 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.chapter,
.glance,
.method {
  padding: 4.4rem 0;
  scroll-margin-top: 5.4rem;
}

.chapter {
  background: var(--paper);
}

.lede {
  max-width: 38rem;
  margin-top: 1rem;
  font-size: 1.28rem;
  line-height: 1.4;
  color: var(--ink);
}

.prose {
  max-width: 38rem;
}

.prose p,
.lede {
  margin-top: 0;
}

.chapter p,
.method p {
  max-width: 42rem;
}

.dark,
.glance {
  background: #242424;
  color: var(--white);
}

.dark .lede,
.dark .prose,
.dark .prose p,
.dark .note,
.glance .lede,
.dark > .wide > p,
.dark > .wrap > p {
  color: var(--white);
}

.dark h2,
.glance h2 {
  color: var(--white);
}

.dark .chapter-kicker,
.glance .chapter-kicker {
  color: var(--pink-soft);
}

.split {
  display: grid;
  gap: 2rem;
}

.quote {
  margin: 1.4rem 0 0;
  padding: 0 0 0 1rem;
  border: 0;
  border-left: 2px solid var(--pink);
  max-width: 38rem;
}

.quote p {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  color: var(--ink);
}

.dark .quote p {
  color: var(--white);
}

.quote footer {
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 0.86rem;
  letter-spacing: -0.02em;
  color: var(--maroon);
}

.dark .quote footer {
  color: var(--pink-soft);
}

.grid-4,
.grid-3,
.grid-2,
.glance-grid,
.channel-grid,
.division-grid {
  display: grid;
  gap: 0.9rem;
}

.stat-card,
.channel,
.pull,
.glance-card,
.division {
  padding: 1.15rem 1.15rem 1.25rem;
  border: 1px solid rgba(36, 36, 36, 0.06);
}

.channel h3,
.division h3,
.pull h3,
.block h3,
.method h3 {
  margin: 0.15rem 0 0.45rem;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}

.division ul,
.block ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
}

.division li,
.note,
.caption {
  color: var(--ink);
}

.caption,
.note {
  font-size: 0.98rem;
}

.band {
  margin-top: 1.8rem;
}

.pair {
  display: grid;
  gap: 0.9rem;
}

.pair .stat-card strong {
  font-size: clamp(4.2rem, 9vw, 6.6rem);
}

.substats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.substats span {
  background: var(--pink-pale);
  color: var(--maroon-deep);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
}

.bars {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.62rem;
}

.bars li {
  display: grid;
  grid-template-columns: minmax(8.5rem, 16rem) 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.bars .name,
.bars b,
.region-list .name,
.region-list .count-label,
.toolbar button,
table,
caption,
thead th {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.bars .name {
  font-size: 0.92rem;
}

.track,
.region-list .meter {
  height: 0.72rem;
  background: var(--pink-pale);
  border-radius: 0;
  overflow: hidden;
}

.fill,
.region-list .meter span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--pink);
}

.fill {
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fill.in,
.region-list .meter span {
  width: var(--w);
}

.bars li:nth-child(1) .fill { background: #640c22; }
.bars li:nth-child(2) .fill { background: #921232; }
.bars li:nth-child(3) .fill { background: #bf1741; }
.bars li:nth-child(4) .fill { background: #e52555; }
.bars li:nth-child(5) .fill { background: #ea5278; }
.bars li:nth-child(6) .fill { background: #ee7795; }
.bars li:nth-child(7) .fill { background: #f292aa; }
.bars li:nth-child(8) .fill { background: #124f4e; }
.bars li:nth-child(9) .fill { background: #1c7d7c; }
.bars li:nth-child(10) .fill { background: #25a7a5; }
.bars li:nth-child(11) .fill { background: #2abcba; }
.bars li:nth-child(12) .fill { background: #2fd0ce; }
.bars li:nth-child(13) .fill { background: #6ddedd; }

.bars b {
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  min-width: 4.2rem;
  text-align: right;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.toolbar button,
.region-list button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  border-radius: 0;
}

.toolbar button {
  padding: 0.5rem 0.85rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.toolbar button[aria-pressed="true"] {
  background: #242424;
  color: var(--white);
  border-color: #242424;
}

.explorer {
  display: grid;
  gap: 0.9rem;
}

.region-list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.region-list button {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.9fr) 1.4fr auto;
  gap: 0.7rem;
  align-items: center;
  text-align: left;
  padding: 0.6rem 0.7rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.region-list button[aria-pressed="true"] {
  border-color: var(--pink);
  background: var(--pink-pale);
}

.region-list .meter span {
  width: var(--w);
  background: var(--pink);
}

.explorer[data-mode="supply"] .region-list .meter {
  background: var(--teal-pale);
}

.explorer[data-mode="supply"] .region-list .meter span {
  background: var(--teal-deep);
}

.region-list .count-label {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: 0.92rem;
}

.panel {
  background: #242424;
  color: var(--white);
  border-radius: 0.35rem;
  padding: 1.35rem;
  min-height: 18rem;
}

.panel h3 {
  font-family: var(--display);
  font-weight: 900;
  font-style: normal;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 0.9;
  color: var(--white);
  margin: 0.15rem 0 1rem;
}

.panel .mini-kicker {
  color: var(--pink-soft);
}

.panel dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 0;
}

.panel dt {
  font-family: var(--sans);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--pink-soft);
}

.panel dd {
  margin: 0.15rem 0 0;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--pink-mid);
}

.panel .note {
  color: var(--white);
  margin-bottom: 0;
}

.map-stage {
  position: relative;
  background: #fcf6f8;
}

#uk-map,
#uk-map-slot svg {
  display: block;
  width: 100%;
  height: auto;
  background: #fcf6f8;
}

.region-shape {
  fill: #fce8ed;
  stroke: #ffffff;
  stroke-width: 1.15;
  stroke-linejoin: round;
  cursor: pointer;
  fill-rule: evenodd;
  transition: fill 0.45s ease;
}

.region-shape.is-selected,
.region-shape:focus-visible {
  stroke: #242424;
  stroke-width: 2.6;
}

.shetland-frame {
  pointer-events: none;
}

.shetland-label {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  fill: #242424;
  pointer-events: none;
}

.map-tooltip {
  position: absolute;
  z-index: 3;
  max-width: 14rem;
  padding: 0.4rem 0.6rem;
  background: #242424;
  color: #ffffff;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: -0.02em;
  pointer-events: none;
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  color: #242424;
}

.legend-bar {
  display: flex;
  flex: 1;
  height: 0.7rem;
  max-width: 16rem;
  border: 1px solid #ffffff;
}

.legend-bar i {
  flex: 1;
  display: block;
}

.legend-caption,
.panel-label,
.panel-other {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #242424;
}

.legend-caption {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
}

.panel-figure {
  margin: 0.15rem 0 0.2rem;
  font-family: var(--display);
  font-weight: 900;
  font-style: normal;
  font-size: clamp(3.4rem, 6vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 0.85;
  color: var(--pink);
}

.panel-label {
  margin: 0;
  color: #f6b2c3;
  font-size: 0.95rem;
}

.panel-other {
  margin: 0.35rem 0 0.8rem;
  color: #ffffff;
  font-size: 0.92rem;
}

.region-fallback {
  margin-top: 1.2rem;
}

.region-fallback summary {
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--maroon);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
  border: 1px solid var(--pink-pale);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
  font-variant-numeric: tabular-nums;
}

caption {
  text-align: left;
  padding: 1rem 1rem 0.4rem;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
}

th,
td {
  padding: 0.7rem 1rem;
  text-align: right;
  border-top: 1px solid var(--pink-pale);
}

th:first-child,
td:first-child,
tbody th {
  text-align: left;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.02em;
}

thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--maroon);
  border-top: 0;
}

.glance-card span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.method {
  background: var(--white);
}

footer.site-footer {
  background: #242424;
  color: var(--white);
  padding: 2.2rem 0 2.6rem;
}

.site-footer a {
  color: var(--pink-soft);
}

.site-footer p {
  margin: 0.35rem 0;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
}

.site-footer strong {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.fine {
  max-width: 42rem;
  color: #f6b2c3;
  font-size: 0.98rem;
}

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
}

@media (min-width: 720px) {
  .hero-stats,
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .glance-grid,
  .grid-3,
  .division-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-2,
  .pair,
  .split,
  .explorer {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .channel-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .explorer {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: start;
  }

  .panel {
    position: sticky;
    top: calc(var(--header) + 1rem);
  }
}

@media (max-width: 719px) {
  .bars li,
  .region-list button {
    grid-template-columns: 1fr auto;
  }

  .bars .track,
  .region-list .meter {
    grid-column: 1 / -1;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero h1 {
    max-width: 8ch;
  }

  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.6rem 0.85rem 0.4rem;
  }

  .chapter-nav {
    width: 100%;
  }

  .logo-serco {
    height: 22px;
  }

  .logo-bradshaw {
    height: 29px;
  }

  .wordmark-rule {
    height: 29px;
  }

  .wrap,
  .wide {
    width: min(var(--max), calc(100% - 1.5rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fill {
    width: var(--w);
    transition: none;
  }
}
