@font-face {
  font-display: swap;
  font-family: Anybody;
  font-stretch: 50% 150%;
  font-weight: 100 900;
  src: url("/fonts/anybody-latin-variable.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Schibsted Grotesk";
  font-weight: 400 900;
  src: url("/fonts/schibsted-grotesk-latin-variable.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Martian Mono";
  font-stretch: 75% 112.5%;
  font-weight: 100 800;
  src: url("/fonts/martian-mono-latin-variable.woff2") format("woff2");
}

:root {
  --nav-segment: var(--rule);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --nav-segment: initial;
  }
}

:root[data-theme="dark"] {
  --nav-segment: initial;
}

.f-parliament {
  --field: var(--series-parliament);
  --on-field: var(--on-series-parliament);
}

.f-ons {
  --field: var(--series-ons);
  --on-field: var(--on-series-ons);
}

.f-flood {
  --field: var(--series-flood);
  --on-field: var(--on-series-flood);
}

.f-police {
  --field: var(--series-police);
  --on-field: var(--on-series-police);
}

.f-land_registry {
  --field: var(--series-land-registry);
  --on-field: var(--on-series-land-registry);
}

.f-food_hygiene {
  --field: var(--series-food-hygiene);
  --on-field: var(--on-series-food-hygiene);
}

.f-postcodes {
  --field: var(--series-postcodes);
  --on-field: var(--on-series-postcodes);
}

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

html {
  background: var(--surface-base);
  color: var(--text-primary);
  font-family: var(--p-font-family-text);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface-base);
  color: var(--text-primary);
  font-size: var(--p-font-size-base);
  hyphens: manual;
  line-height: var(--p-font-leading-text);
  overflow-wrap: normal;
  overflow-x: hidden;
  word-break: normal;
}

h1,
h2,
h3,
p,
ol,
ul,
figure,
pre,
dl,
dd {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  box-shadow: var(--p-shadow-halo);
  outline: 4px solid var(--focus-ring);
  outline-offset: 0;
}

.skip {
  position: absolute;
  top: var(--p-space-2);
  left: var(--p-space-2);
  z-index: 2;
  padding: var(--p-space-3) var(--p-space-4);
  background: var(--surface-inverse);
  color: var(--text-inverse);
  font-weight: var(--p-font-weight-bold);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.gutter {
  padding-inline: var(--p-layout-gutter);
}

.poster {
  font-family: var(--p-font-family-poster);
  font-weight: var(--p-font-weight-black);
  letter-spacing: var(--p-font-tracking-poster);
  line-height: var(--p-font-leading-tight);
}

.link {
  color: inherit;
  font-weight: var(--p-font-weight-bold);
  text-decoration-color: currentColor;
  text-decoration-line: underline;
  text-decoration-thickness: var(--link-underline-width);
  text-underline-offset: var(--link-underline-offset);
}

.link:hover {
  text-decoration-thickness: var(--link-underline-width-hover);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--button-height);
  padding: 0 var(--p-space-6);
  border: 0;
  border-radius: var(--button-radius);
  background: var(--button-background);
  color: var(--button-text);
  cursor: pointer;
  font-family: var(--button-font-family);
  font-size: var(--button-font-size);
  font-stretch: var(--button-font-width);
  font-weight: var(--button-font-weight);
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--button-background-hover);
}

/* Nav */

.nav {
  background: var(--nav-background);
  color: var(--nav-text);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--p-space-5);
  min-height: var(--nav-height);
}

.brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
}

.brand-name {
  font-family: var(--p-font-family-poster);
  font-size: var(--p-font-size-lg);
  font-stretch: var(--p-font-width-wide);
  font-weight: var(--p-font-weight-black);
  letter-spacing: var(--p-font-tracking-poster);
  line-height: 1;
}

.brand-line {
  font-size: var(--p-font-size-sm);
  line-height: var(--p-font-leading-snug);
}

.nav-links {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: var(--p-space-6);
}

.nav-links a,
.nav-links button {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-block: var(--p-border-rule) solid transparent;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: var(--p-font-weight-bold);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links button:hover,
.nav-links [aria-current="page"] {
  border-bottom-color: var(--nav-underline);
}

.nav-links [data-theme-toggle]:hover {
  border-bottom-color: transparent;
}

[data-theme-toggle] {
  gap: var(--p-space-2);
}

[data-theme-toggle]::before {
  content: "";
  flex: none;
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
}

[data-theme-toggle][aria-pressed="true"]::before {
  background: currentColor;
}

.nav-rule {
  display: flex;
  height: var(--nav-rule-width);
}

.nav-rule span {
  flex: var(--n, 1) 1 0;
  background: var(--nav-segment, var(--field));
}

/* Strips */

.strips {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  row-gap: 6px;
  margin-top: var(--p-space-8);
  font-size: var(--p-font-size-section);
  font-stretch: var(--p-font-width-normal);
  line-height: 1;
}

.strips li {
  grid-column-end: -1;
  justify-self: start;
}

.strips li:nth-child(1) {
  grid-column-start: 1;
}

.strips li:nth-child(2) {
  grid-column-start: 3;
}

.strips li:nth-child(3) {
  grid-column-start: 2;
}

.strips li:nth-child(4) {
  grid-column-start: 4;
}

.strips li:nth-child(5) {
  grid-column-start: 2;
}

.strips li:nth-child(6) {
  grid-column-start: 5;
}

.strips a {
  display: inline-block;
  padding: 0.08em 0.18em 0.04em;
  background: var(--field);
  color: var(--on-field);
  text-decoration: none;
}

.strips a:hover {
  text-decoration: underline;
  text-decoration-thickness: var(--link-underline-width);
  text-underline-offset: var(--link-underline-offset);
}

/* Field bands */

.band {
  display: grid;
  grid-template-columns: repeat(var(--p-layout-columns), minmax(0, 1fr));
  column-gap: var(--p-layout-gap);
  row-gap: var(--p-space-7);
  padding-block: var(--p-space-8);
  background: var(--field);
  color: var(--on-field);
}

.band .row-text {
  grid-column: 1 / 6;
}

.band-head {
  display: grid;
  grid-column: 7 / -1;
  align-content: start;
  gap: var(--p-space-5);
}

.band .mark {
  grid-column: 1 / -1;
}

.band-figure {
  font-family: var(--data-tile-figure-family);
  font-size: var(--data-tile-figure-size);
  font-stretch: var(--data-tile-figure-width);
  font-weight: var(--data-tile-figure-weight);
  line-height: var(--data-tile-figure-leading);
  white-space: nowrap;
}

.figure-join {
  font-size: 0.42em;
  font-stretch: var(--p-font-width-wide);
}

.band-text {
  display: grid;
  gap: var(--p-space-3);
  max-width: 42ch;
}

.band-caption {
  font-size: var(--p-font-size-md);
  font-weight: var(--p-font-weight-bold);
  line-height: var(--p-font-leading-snug);
}

.band-source {
  font-size: var(--p-font-size-sm);
  line-height: var(--p-font-leading-snug);
}

/* Marks */

.mark {
  container: mark / inline-size;
  display: grid;
  gap: var(--p-space-4);
  color: var(--on-field, currentColor);
}

.mark-art {
  display: block;
  width: 100%;
}

svg.mark-art {
  overflow: visible;
}

.mark-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--p-space-2) var(--p-space-5);
  font-size: var(--p-font-size-sm);
  line-height: var(--p-font-leading-snug);
}

.mark-key span {
  display: inline-flex;
  align-items: center;
  gap: var(--p-space-2);
}

.mark-key .k {
  flex: none;
  width: 14px;
  height: 14px;
}

.mark-record {
  font-size: 0.875rem;
  font-weight: var(--p-font-weight-bold);
  line-height: var(--p-font-leading-snug);
}

.mark-parliament .mark-art {
  height: clamp(56px, 7vw, 104px);
}

.mark-parliament .seats-strokes,
.mark-parliament .when-strokes {
  display: none;
}

.mark-key .key-note {
  flex-basis: 100%;
}

@container mark (min-width: 1300px) {
  .mark-parliament .seats-strokes {
    display: block;
    width: 1300px;
  }

  .mark-parliament .when-strokes {
    display: revert;
  }

  .mark-parliament .seats-blocks,
  .mark-parliament .when-blocks {
    display: none;
  }
}

.mark-police .mark-art {
  height: auto;
}

.mark-ons .mark-art {
  height: clamp(96px, 12vw, 168px);
}

.mark-flood .mark-art {
  height: clamp(132px, 15vw, 216px);
}

.scale {
  position: relative;
  padding-bottom: calc(var(--p-font-size-sm) * 1.6);
}

.scale svg {
  display: block;
  width: 100%;
  height: 64px;
  overflow: visible;
}

.scale-labels li {
  position: absolute;
  bottom: 0;
  left: calc(var(--at) * 100% / 3);
  font-size: var(--p-font-size-sm);
  font-weight: var(--p-font-weight-bold);
  line-height: 1;
  transform: translateX(-50%);
  white-space: nowrap;
}

.scale-labels li:first-child {
  transform: none;
}

.scale-labels li:last-child {
  transform: translateX(-100%);
}

.ratings {
  display: grid;
  gap: var(--p-space-3);
}

.ratings li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--p-space-5);
  padding-bottom: var(--p-space-3);
  border-bottom: var(--p-border-rule) solid currentColor;
}

.rating-name,
.rating-text {
  font-weight: var(--p-font-weight-bold);
  line-height: var(--p-font-leading-snug);
}

.slots {
  width: 116px;
  height: 20px;
}

.slot-on {
  fill: currentColor;
}

.slot-off {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.steps {
  display: grid;
  gap: var(--p-space-3);
}

.steps li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--p-space-3);
  padding-left: var(--p-space-4);
  border-left: var(--p-border-rule) solid currentColor;
}

.steps li:nth-child(2) {
  margin-left: calc(1 * var(--step, 2rem));
}

.steps li:nth-child(3) {
  margin-left: calc(2 * var(--step, 2rem));
}

.steps li:nth-child(4) {
  margin-left: calc(3 * var(--step, 2rem));
}

.steps b {
  font-family: var(--p-font-family-poster);
  font-size: var(--p-font-size-lg);
  font-stretch: var(--p-font-width-wide);
  font-weight: var(--p-font-weight-black);
  line-height: var(--p-font-leading-snug);
  text-wrap: balance;
}

.steps span {
  font-size: var(--p-font-size-sm);
}

/* Home: intro and rows */

.intro {
  display: grid;
  grid-template-columns: repeat(var(--p-layout-columns), minmax(0, 1fr));
  column-gap: var(--p-layout-gap);
  row-gap: var(--p-space-5);
  padding-block: var(--p-space-9);
}

.section-title {
  font-size: var(--p-font-size-section);
  font-stretch: var(--p-font-width-wide);
  line-height: var(--p-font-leading-tight);
  text-wrap: balance;
}

.intro .section-title {
  grid-column: 1 / 7;
}

.intro-lead {
  grid-column: 7 / -1;
  align-self: end;
  max-width: 44ch;
  font-size: var(--p-font-size-md);
  line-height: var(--p-font-leading-snug);
}

.row {
  display: grid;
  grid-template-columns: repeat(var(--p-layout-columns), minmax(0, 1fr));
  column-gap: var(--p-layout-gap);
  row-gap: var(--p-space-5);
  padding-block: var(--p-space-7);
  background: var(--field);
  color: var(--on-field);
}

.row-text {
  display: grid;
  grid-column: 1 / 6;
  align-content: start;
  gap: var(--p-space-3);
}

.row-name {
  font-size: var(--p-font-size-xl);
  font-stretch: var(--p-font-width-extended);
  line-height: var(--p-font-leading-tight);
}

.row-name a {
  text-decoration: none;
}

.row-name a:hover {
  text-decoration: underline;
  text-decoration-thickness: var(--link-underline-width);
  text-underline-offset: var(--link-underline-offset);
}

.row-what {
  max-width: 36ch;
  font-size: var(--p-font-size-sm);
  line-height: var(--p-font-leading-snug);
}

.row-tools {
  font-size: var(--p-font-size-sm);
  font-weight: var(--p-font-weight-bold);
}

.row-body {
  display: grid;
  grid-column: 7 / -1;
  align-content: start;
  gap: var(--p-space-5);
}

.row-figure {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--p-space-2) var(--p-space-4);
}

.row-num {
  font-size: var(--p-font-size-xl);
  font-stretch: var(--p-font-width-condensed);
  line-height: 1;
  white-space: nowrap;
}

.row-caption {
  max-width: 44ch;
  font-size: var(--p-font-size-sm);
  font-weight: var(--p-font-weight-medium);
  line-height: var(--p-font-leading-snug);
}

.proof {
  padding-block: var(--p-space-6);
  border-bottom: var(--p-border-rule) solid var(--rule);
  font-size: var(--p-font-size-sm);
}

/* Connect */

.connect {
  padding-block: var(--p-space-9);
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(var(--p-layout-columns), minmax(0, 1fr));
  column-gap: var(--p-layout-gap);
  row-gap: var(--p-space-7);
}

.connect-intro {
  display: grid;
  grid-column: 1 / 6;
  align-content: start;
  gap: var(--p-space-5);
}

.connect-lead {
  max-width: 40ch;
  font-size: var(--p-font-size-md);
  line-height: var(--p-font-leading-snug);
}

.pick {
  display: grid;
  gap: var(--p-space-2);
  margin-top: var(--p-space-3);
  font-weight: var(--p-font-weight-bold);
}

.pick select {
  min-height: 56px;
  padding: 0 var(--p-space-4);
  border: var(--p-border-rule) solid var(--rule);
  border-radius: 0;
  background: var(--surface-base);
  color: var(--text-primary);
  font: inherit;
  font-weight: var(--p-font-weight-medium);
}

.snippets {
  display: grid;
  grid-column: 7 / -1;
  align-content: start;
  gap: var(--p-space-4);
  min-width: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--p-space-5);
}

.tabs button {
  min-height: 48px;
  padding: 0;
  border: 0;
  border-block: var(--p-border-rule) solid transparent;
  background: none;
  color: inherit;
  cursor: pointer;
  font-family: var(--p-font-family-poster);
  font-size: var(--p-font-size-base);
  font-weight: var(--p-font-weight-bold);
  text-align: left;
  white-space: nowrap;
}

.tabs button[aria-selected="true"] {
  border-bottom-color: var(--nav-underline);
  font-weight: var(--p-font-weight-black);
}

.snippet {
  display: grid;
  gap: var(--p-space-3);
}

.snippet-where {
  font-size: var(--p-font-size-sm);
  font-weight: var(--p-font-weight-bold);
}

.snippet-grid .snippet-where {
  display: grid;
  gap: var(--p-space-1);
  font-weight: var(--p-font-weight-regular);
}

.snippet-grid .snippet-where b {
  font-family: var(--p-font-family-poster);
  font-size: var(--p-font-size-md);
  font-weight: var(--p-font-weight-black);
}

.code-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--p-space-4);
  padding: var(--code-block-padding);
  background: var(--code-block-background);
  color: var(--code-block-text);
}

.code-block pre {
  min-width: 0;
  overflow-x: auto;
  font-family: var(--code-block-font-family);
  font-size: var(--code-block-font-size);
  letter-spacing: var(--p-font-tracking-code);
  line-height: 1.65;
  overflow-wrap: normal;
  white-space: pre-wrap;
  word-break: keep-all;
}

.copy {
  min-height: 48px;
  padding: 0 var(--p-space-4);
  border: 3px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: var(--p-font-family-poster);
  font-size: var(--p-font-size-sm);
  font-stretch: var(--p-font-width-wide);
  font-weight: var(--p-font-weight-black);
}

.copy:hover {
  background: var(--code-block-text);
  color: var(--code-block-background);
}

.endpoint {
  font-size: var(--p-font-size-sm);
}

.endpoint code,
.inline-code {
  font-family: var(--p-font-family-code);
  font-size: 0.92em;
  font-weight: var(--p-font-weight-bold);
  letter-spacing: var(--p-font-tracking-code);
}

/* Signup and Lex */

.signup {
  display: grid;
  grid-template-columns: repeat(var(--p-layout-columns), minmax(0, 1fr));
  column-gap: var(--p-layout-gap);
  row-gap: var(--p-space-5);
  padding-block: var(--p-space-8);
  border-top: var(--p-border-rule) solid var(--rule);
}

.signup-title {
  grid-column: 1 / 6;
  font-size: var(--p-font-size-xl);
  font-stretch: var(--p-font-width-wide);
  text-wrap: balance;
}

.signup-form {
  display: grid;
  grid-column: 7 / -1;
  gap: var(--p-space-3);
}

.signup-label {
  font-weight: var(--p-font-weight-bold);
}

.signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.signup-row input {
  min-width: 0;
  min-height: var(--button-height);
  padding: 0 var(--p-space-4);
  border: var(--p-border-rule) solid var(--rule);
  border-right: 0;
  border-radius: 0;
  background: var(--surface-base);
  color: var(--text-primary);
  font: inherit;
}

.signup-note {
  font-size: var(--p-font-size-sm);
}

.lex {
  padding-block: var(--p-space-6);
  border-top: var(--p-border-rule) solid var(--rule);
  font-size: var(--p-font-size-sm);
}

/* Footer */

.footer-band {
  padding-block: var(--p-space-6);
  background: var(--footer-band-background);
  color: var(--footer-band-text);
  font-size: var(--p-font-size-lg);
  font-stretch: var(--p-font-width-wide);
  line-height: var(--p-font-leading-band);
  text-wrap: balance;
}

.footer-licence {
  display: grid;
  grid-template-columns: repeat(var(--p-layout-columns), minmax(0, 1fr));
  column-gap: var(--p-layout-gap);
  row-gap: var(--p-space-7);
  padding-block: var(--p-space-8);
  background: var(--footer-licence-background);
  color: var(--footer-licence-text);
  font-size: var(--p-font-size-xs);
  line-height: var(--p-font-leading-text);
}

.footer-legal {
  display: grid;
  grid-column: 1 / 7;
  gap: var(--p-space-3);
  max-width: 72ch;
}

.footer-meta {
  display: grid;
  grid-column: 7 / -1;
  align-content: start;
  gap: var(--p-space-3);
}

.footer-name {
  font-size: var(--p-font-size-lg);
  font-stretch: var(--p-font-width-wide);
}

/* Catalogue */

.nowrap,
.ver {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page-head {
  display: grid;
  grid-template-columns: repeat(var(--p-layout-columns), minmax(0, 1fr));
  column-gap: var(--p-layout-gap);
  row-gap: var(--p-space-6);
  padding-block: var(--p-space-8);
}

.page-title {
  grid-column: 1 / 7;
  font-size: var(--p-font-size-section);
  font-stretch: var(--p-font-width-wide);
  line-height: 1.1;
  text-wrap: balance;
}

.page-side {
  display: grid;
  grid-column: 7 / -1;
  align-content: start;
  gap: var(--p-space-6);
}

.page-lead {
  max-width: 44ch;
  font-size: var(--p-font-size-md);
  line-height: var(--p-font-leading-snug);
}

.all {
  display: grid;
  justify-items: start;
  gap: var(--p-space-3);
}

.all-title {
  font-weight: var(--p-font-weight-bold);
}

.all .code-block {
  justify-self: stretch;
}

.row-title {
  font-size: var(--p-font-size-md);
  font-weight: var(--p-font-weight-bold);
  line-height: var(--p-font-leading-snug);
}

.row-facts {
  display: grid;
  gap: var(--p-space-1);
  font-size: var(--p-font-size-sm);
  line-height: var(--p-font-leading-snug);
}

.row-facts div {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: var(--p-space-3);
}

.row-facts dt,
.facts dt {
  font-weight: var(--p-font-weight-bold);
}

.row-facts code,
.facts code,
.section-lead code {
  font-family: var(--p-font-family-code);
  font-size: 0.86em;
  letter-spacing: var(--p-font-tracking-code);
}

.row-open {
  justify-self: start;
  margin-top: var(--p-space-2);
}

.server-hero {
  display: grid;
  gap: var(--p-space-7);
  padding-block: var(--p-space-6) var(--p-space-8);
  background: var(--field);
  color: var(--on-field);
}

.crumbs {
  font-size: var(--p-font-size-sm);
}

.server-top {
  display: grid;
  grid-template-columns: repeat(var(--p-layout-columns), minmax(0, 1fr));
  column-gap: var(--p-layout-gap);
  row-gap: var(--p-space-6);
}

.server-copy {
  display: grid;
  grid-column: 1 / 8;
  align-content: start;
  gap: var(--p-space-4);
}

.server-name {
  grid-column: 1 / -1;
  font-size: var(--p-font-size-hero);
  font-stretch: var(--p-font-width-wide);
  line-height: var(--p-font-leading-tight);
}

.server-title {
  font-family: var(--p-font-family-poster);
  font-size: var(--p-font-size-lg);
  font-weight: var(--p-font-weight-bold);
  line-height: var(--p-font-leading-snug);
}

.server-lead {
  max-width: 52ch;
  font-size: var(--p-font-size-md);
  line-height: var(--p-font-leading-snug);
}

.facts {
  display: grid;
  grid-column: 9 / -1;
  align-content: start;
  gap: var(--p-space-3);
  font-size: var(--p-font-size-sm);
  line-height: var(--p-font-leading-snug);
}

.facts div {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: var(--p-space-3);
  padding-bottom: var(--p-space-3);
  border-bottom: var(--p-border-rule) solid currentColor;
}

.facts-tools {
  display: grid;
  gap: var(--p-space-1);
}

.facts code,
.facts-tools a {
  white-space: nowrap;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .server-copy {
    grid-column: 1 / 7;
  }

  .facts {
    grid-column: 8 / -1;
  }
}

.facts-tools a {
  font-family: var(--p-font-family-code);
  font-size: 0.92em;
  font-weight: var(--p-font-weight-bold);
  letter-spacing: var(--p-font-tracking-code);
}

.server-connect,
.server-tools {
  display: grid;
  gap: var(--p-space-7);
  padding-block: var(--p-space-9);
}

.server-tools {
  border-top: var(--p-border-rule) solid var(--rule);
}

.section-head {
  display: grid;
  gap: var(--p-space-4);
  max-width: 60rem;
}

.section-lead {
  max-width: 56ch;
  font-size: var(--p-font-size-md);
  line-height: var(--p-font-leading-snug);
}

.snippet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--p-space-6) var(--p-layout-gap);
}

.tool {
  display: grid;
  grid-template-columns: repeat(var(--p-layout-columns), minmax(0, 1fr));
  column-gap: var(--p-layout-gap);
  row-gap: var(--p-space-6);
  padding-top: var(--p-space-7);
  border-top: var(--p-border-rule) solid var(--rule);
}

.tool-spec {
  display: grid;
  grid-column: 1 / 7;
  align-content: start;
  gap: var(--p-space-4);
  min-width: 0;
}

.tool-name {
  font-family: var(--p-font-family-code);
  font-size: var(--p-font-size-lg);
  font-weight: var(--p-font-weight-bold);
  letter-spacing: var(--p-font-tracking-code);
  line-height: var(--p-font-leading-snug);
}

.tool-name a {
  text-decoration: none;
}

.tool-name a:hover {
  text-decoration: underline;
  text-decoration-thickness: var(--link-underline-width);
}

.tool-title {
  font-weight: var(--p-font-weight-bold);
}

.tool-desc,
.tool-note {
  max-width: 62ch;
}

.tool-desc code,
.params code {
  font-family: var(--p-font-family-code);
  font-size: 0.84em;
  letter-spacing: var(--p-font-tracking-code);
}

.params {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--p-font-size-sm);
  line-height: var(--p-font-leading-snug);
  table-layout: fixed;
}

.col-name {
  width: 27%;
}

.col-type {
  width: 16%;
}

.col-req {
  width: 17%;
}

.col-desc {
  width: 40%;
}

.params th,
.params td {
  padding: var(--p-space-3) var(--p-space-3) var(--p-space-3) 0;
  border-bottom: 2px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.params thead th {
  border-bottom-width: var(--p-border-rule);
  font-weight: var(--p-font-weight-bold);
}

.params tbody th {
  font-weight: var(--p-font-weight-bold);
}

.tool-example {
  display: grid;
  grid-column: 7 / -1;
  align-content: start;
  gap: var(--p-space-3);
  min-width: 0;
}

.example-label {
  font-weight: var(--p-font-weight-bold);
}

.example-label + .code-block {
  margin-bottom: var(--p-space-4);
}

.example-summary {
  font-size: var(--p-font-size-sm);
  line-height: var(--p-font-leading-snug);
}

.tool-example .code-block {
  grid-template-columns: minmax(0, 1fr);
}

.tool-example pre {
  white-space: pre;
}

.tool-example .example-data {
  max-height: 15lh;
  overflow: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.example-data .json-line {
  --indent-unit: calc(1ch + var(--p-font-tracking-code));

  display: block;
  padding-left: calc((var(--depth) + 2) * var(--indent-unit));
  text-indent: calc(-2 * var(--indent-unit));
}

.tool-example .example-data.open {
  max-height: none;
}

.answer-more {
  justify-self: start;
  min-height: 48px;
  padding: 0 var(--p-space-4);
  border: 3px solid var(--rule);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--p-font-family-poster);
  font-size: var(--p-font-size-sm);
  font-weight: var(--p-font-weight-black);
}

.server-attr {
  display: grid;
  gap: var(--p-space-4);
  padding-block: var(--p-space-8);
  background: var(--surface-raised);
}

.attr-title {
  font-size: var(--p-font-size-xl);
  font-stretch: var(--p-font-width-wide);
}

.server-attr blockquote {
  max-width: 64ch;
  margin: 0;
  padding-left: var(--p-space-5);
  border-left: var(--p-border-rule) solid var(--rule);
  font-size: var(--p-font-size-md);
  font-weight: var(--p-font-weight-medium);
  line-height: var(--p-font-leading-snug);
}

.missing .strips {
  margin-top: 0;
}

.missing .page-lead {
  grid-column: 7 / -1;
  align-self: end;
}

.strips li:nth-child(7) {
  grid-column-start: 3;
}

/* Narrow */

@media (max-width: 900px) {
  .intro .section-title,
  .intro-lead,
  .row-text,
  .band .row-text,
  .band-head,
  .row-body,
  .connect-intro,
  .snippets,
  .signup-title,
  .signup-form,
  .footer-legal,
  .footer-meta,
  .page-title,
  .page-side,
  .missing .page-lead,
  .server-copy,
  .facts,
  .tool-spec,
  .tool-example {
    grid-column: 1 / -1;
  }

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

  .band-head {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .nav-bar {
    flex-wrap: wrap;
    padding-block: var(--p-space-4);
  }

  .nav-links {
    gap: var(--p-space-5);
  }

  .brand-line {
    font-size: var(--p-font-size-xs);
  }

  .button {
    font-stretch: var(--p-font-width-normal);
  }

  .strips {
    font-stretch: var(--p-font-width-condensed);
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--p-space-4);
  }

  .code-block {
    grid-template-columns: minmax(0, 1fr);
  }

  .code-block pre {
    font-stretch: 87.5%;
  }

  .copy {
    justify-self: start;
  }

  .signup-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--p-space-3);
  }

  .signup-row input {
    border-right: var(--p-border-rule) solid var(--rule);
  }

  .steps {
    --step: 1rem;
  }

  .tool-name {
    font-size: var(--p-font-size-md);
  }

  .server-name {
    font-stretch: var(--p-font-width-normal);
  }

  .params {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--p-space-4);
  }

  .params tbody th {
    grid-column: 1 / -1;
  }

  .params colgroup {
    display: none;
  }

  .params thead,
  .params tbody,
  .params tr {
    display: contents;
  }

  .params th,
  .params td {
    padding: var(--p-space-3) 0 0;
    border-bottom: 0;
  }

  .params tr > :last-child {
    grid-column: 1 / -1;
    padding: var(--p-space-1) 0 var(--p-space-3);
    border-bottom: 2px solid var(--rule);
  }

  .params thead {
    display: none;
  }

  .params td::before {
    content: attr(data-label) ": ";
    font-weight: var(--p-font-weight-bold);
  }

  .steps li:nth-child(4) b {
    font-size: calc(var(--p-font-size-lg) * 0.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Imagery */

.art {
  display: grid;
  align-content: start;
  gap: var(--p-space-2);
}

.art picture,
.art img {
  display: block;
  width: 100%;
}

.art img {
  height: auto;
  mix-blend-mode: multiply;
}

.art-credit {
  max-width: 60ch;
  font-size: var(--p-font-size-2xs);
  line-height: var(--p-font-leading-snug);
}

.f-flood .art img {
  filter: invert(1);
  mix-blend-mode: screen;
}

.row-art {
  max-width: 520px;
  margin-top: var(--p-space-4);
}

/* Home: hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(
    600px,
    calc(100svh - var(--nav-height) - var(--nav-rule-width)),
    880px
  );
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: var(--p-space-7);
  padding-inline: var(--p-layout-gutter) var(--p-space-7);
}

.hero-title {
  max-width: 11ch;
  font-size: var(--p-font-size-section);
  font-stretch: var(--p-font-width-wide);
  text-wrap: balance;
}

.hero-lead {
  max-width: 44ch;
  margin-top: var(--p-space-5);
  font-size: var(--p-font-size-md);
  line-height: var(--p-font-leading-snug);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--p-space-4) var(--p-space-6);
  margin-top: var(--p-space-6);
}

.hero .strips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--p-space-5);
  font-size: var(--p-font-size-lg);
}

.hero-art {
  --field: var(--series-postcodes);
  position: relative;
  display: block;
  min-height: 100%;
  background: var(--field);
}

.hero-art picture {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero-art img {
  height: 100%;
  object-fit: cover;
  object-position: 4% 50%;
}

.hero-art .art-credit {
  position: absolute;
  bottom: 0;
  left: 0;
  max-width: none;
  padding: var(--p-space-2) var(--p-space-3);
  background: var(--surface-base);
  color: var(--text-primary);
  text-wrap: balance;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-art {
    border-top: var(--nav-rule-width) solid var(--surface-base);
  }
}

:root[data-theme="dark"] .hero-art {
  border-top: var(--nav-rule-width) solid var(--surface-base);
}

@media (max-width: 1279px) {
  .hero-copy {
    padding-block: var(--p-space-6);
  }

  .hero-lead {
    font-size: var(--p-font-size-base);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-art {
    order: -1;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .hero-art img {
    object-position: 50% 50%;
  }

  .hero-copy {
    padding: var(--p-space-6) var(--p-layout-gutter) var(--p-space-7);
  }

  .hero-lead {
    font-size: var(--p-font-size-base);
  }
}

@media (max-width: 600px) {
  .credit-extra {
    display: none;
  }
}
