/* Look B base: light page, dark green header band, white panels. Values come from tokens.css. */
@font-face {
  font-family: "Nunito Sans";
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/nunito-sans-variable.woff2") format("woff2");
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--colour-page);
  color: var(--colour-ink);
  font-family: var(--font-body);
  font-weight: 350;
  line-height: 1.5;
}

h1, h2, h3, h4, strong, th, summary strong { font-weight: var(--weight-strong); }

header { background: var(--colour-band); }
header nav { display: flex; gap: var(--space-6); max-width: var(--size-content); margin: 0 auto; padding: var(--space-4); }
header a { color: var(--colour-white); font-weight: 700; }

main { max-width: var(--size-content); margin: 0 auto; padding: var(--space-4); }
/* The wordmark is band green, so it sits on a page-coloured strip above the band. */
header .logo { display: block; background: var(--colour-page); padding: var(--space-2) var(--space-4); }
header .logo img { display: block; margin-left: max(0rem, 50% - var(--size-content-half)); }

/* gray (#808080) on #E3EAE6 is about 3.1:1, under the WCAG 2.2 AA minimum of 4.5:1; #666 is about 4.7:1. */
footer { background: var(--colour-footer-bg); color: var(--colour-footer-text); padding: var(--space-footer); }
footer > * { max-width: var(--size-content); margin-left: auto; margin-right: auto; padding-left: var(--space-4); padding-right: var(--space-4); }
footer nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); padding-top: var(--space-2); padding-bottom: var(--space-2); }
footer .made-with { text-align: center; }

/* Small elements get room: buttons and form controls 0.5em by 0.9em, flags 0.15em by 0.5em, table cells 0.5em. */
button, select, input[type="text"] { padding: var(--space-em-half) var(--space-em-wide); }
/* The native look is off because the native menulist renders two ways on one host, which flipped the screenshot gate. Nothing is drawn in its place, so every browser agrees. */
select {
  appearance: none;
  -webkit-appearance: none;
}
.flag { padding: var(--space-em-tight) var(--space-em-half); }
td, th { padding: var(--space-em-half); }

a:focus-visible { outline: var(--size-focus-ring) solid var(--colour-focus); outline-offset: var(--size-focus-offset); }

/* The ⓘ and its definition: no script runs, so hover, tap (focus) and keyboard focus open it. */
/* An open note floats over the page and moves no other content: a note in the flow pushed the lines below down, the mark left the pointer, and the note closed and reopened (a flicker). */
.info { position: static; }
/* The hidden note is positioned against the line that holds the mark, so it cannot widen the page. */
.tip-host { position: relative; }
.info-button {
  margin-left: var(--space-info-start);
  display: inline-grid;
  place-items: center;
  width: var(--size-info);
  height: var(--size-info);
  border-radius: 50%;
  background: transparent;
  color: var(--colour-info);
  font: 600 var(--text-info)/1 var(--font-system);
  cursor: help;
  vertical-align: middle;
  padding: 0;
  border: var(--size-hairline) solid var(--colour-info);
}
.info-button:focus-visible { outline: var(--size-focus-ring) solid var(--colour-focus); outline-offset: var(--size-focus-offset); }
.tip {
  position: absolute;
  width: var(--size-hairline);
  height: var(--size-hairline);
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.info:hover .tip, .info:focus-within .tip {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  display: block;
  margin-top: var(--space-1);
  width: auto;
  max-width: none;
  height: auto;
  overflow: visible;
  clip: auto;
  padding: var(--space-tip-y) var(--space-tip-x);
  font: 400 var(--text-tip)/1.4 var(--font-system);
  text-align: left;
  white-space: normal;
  background: var(--colour-band);
  color: var(--colour-white);
  border-radius: var(--radius-tip);
}

.skip-link { position: absolute; left: var(--size-offscreen); background: var(--colour-panel); padding: var(--space-2) var(--space-4); }
.skip-link:focus { left: 0; z-index: 1; }

.visually-hidden {
  position: absolute;
  width: var(--size-hairline);
  height: var(--size-hairline);
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
