/* Atkinson Hyperlegible and Big Shoulders Display, SIL OFL. See fonts/OFL.txt. */

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/big-shoulders-display-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --desk: #C9B44E;
  --pad: #F3E27A;
  --ink: #1A1408;
  --rule: #1E3F78;
  --margin: #C23B22;
  --link: #0E2A4A;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --desk: #141208;
  }
}

@media (forced-colors: active) {
  :root {
    --desk: Canvas;
    --pad: Canvas;
    --ink: CanvasText;
    --rule: CanvasText;
    --margin: CanvasText;
    --link: LinkText;
  }
}

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

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  font-size-adjust: from-font;
  line-height: 1.5;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip:focus {
  position: fixed;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  z-index: 5;
  background: #F3E27A;
  color: #1A1408;
  padding: 0.65rem 0.9rem;
  outline: 3px solid #1A1408;
}

.pad {
  color-scheme: light;
  max-inline-size: 44rem;
  margin-inline: auto;
  min-block-size: 100dvh;
  padding: 1.4rem 1.2rem 2.5rem 1.6rem;
  background: var(--pad);
  color: var(--ink);
  border-inline-start: 0.45rem solid var(--margin);
}

.pad:focus {
  outline: none;
}

.pad:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -3px;
}

.brand {
  margin: 0;
}

h1 {
  margin: 0.25rem 0 0.6rem;
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-size: clamp(2.3rem, 1.3rem + 3.4vw, 4rem);
  font-weight: 700;
  font-size-adjust: cap-height from-font;
  line-height: 0.9;
  max-inline-size: 18ch;
  text-wrap: balance;
}

.lede {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  max-inline-size: 80ch;
  text-wrap: pretty;
}

ol {
  margin: 0.4rem 0 0.2rem;
  padding-inline-start: 1.35rem;
}

li {
  padding-block: 0.85rem 1rem;
  border-block-end: 1px solid var(--rule);
}

h2 {
  margin: 0 0 0.3rem;
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.35rem);
  font-weight: 700;
  font-size-adjust: cap-height from-font;
  line-height: 0.95;
  text-wrap: balance;
}

li p,
.notes-title,
ul,
footer p {
  max-inline-size: 80ch;
  text-wrap: pretty;
}

li p {
  margin: 0;
}

.notes-title {
  margin: 1.3rem 0 0.4rem;
}

ul {
  margin: 0;
  padding-inline-start: 1.2rem;
}

ul li {
  border: 0;
  padding-block: 0.2rem;
}

footer {
  margin-block-start: 1.6rem;
  padding-block-start: 0.8rem;
  border-block-start: 1px solid var(--rule);
}

footer p {
  margin: 0;
  font-size: 1rem;
}

a:any-link {
  color: var(--link);
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.08em;
}

a:any-link:hover {
  text-decoration-thickness: 0.15em;
}

main a {
  padding-block: 0.15rem;
}

:where(a):focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

@media (min-width: 52em) {
  body {
    padding: 1.5rem 1rem 2rem;
  }

  .pad {
    min-block-size: auto;
    border-block: 1px solid var(--ink);
    border-inline-end: 1px solid var(--ink);
  }
}

@media (forced-colors: active) {
  .pad,
  footer,
  li {
    background: Canvas;
    color: CanvasText;
    border-color: CanvasText;
  }

  a:any-link {
    color: LinkText;
  }
}

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

/* Added for the multi-page guide (November 2026). */

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0.2rem 0 1rem;
  font-size: 1rem;
}

.site-nav a {
  padding-block: 0.35rem;
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration-thickness: 0.15em;
}

.notice {
  margin: 1rem 0;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--ink);
  background: color-mix(in srgb, var(--pad) 70%, white);
  max-inline-size: 80ch;
}

.notice p {
  margin: 0;
}

.prose p,
.prose ul,
.prose ol {
  max-inline-size: 80ch;
  text-wrap: pretty;
}

.prose h2 {
  margin-block-start: 1.6rem;
}

.prose ol > li,
.prose ul > li {
  border: 0;
  padding-block: 0.25rem;
}

.reviewed {
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}

.states {
  columns: 2 16rem;
  column-gap: 2rem;
  padding-inline-start: 0;
  list-style: none;
}

.prose .states li {
  break-inside: avoid;
  border: 0;
  padding-block: 0.3rem;
}

.states small {
  display: block;
  font-size: 0.9rem;
}

.sources {
  font-size: 0.95rem;
}

.sources li {
  border: 0;
  padding-block: 0.15rem;
  overflow-wrap: anywhere;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin-block-start: 0.6rem;
}

.linkish {
  font: inherit;
  color: var(--link);
  background: none;
  border: 0;
  padding: 0.15rem 0;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  cursor: pointer;
}

.consent:focus-visible {
  outline: 3px solid #1A1408;
  outline-offset: 2px;
}

.consent {
  position: fixed;
  inset-inline: 0.5rem;
  inset-block-end: 0.5rem;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  max-inline-size: 44rem;
  margin-inline: auto;
  padding: 0.8rem 0.9rem;
  background: #fffdf2;
  color: #1A1408;
  border: 2px solid #1A1408;
  box-shadow: 0 6px 24px rgb(0 0 0 / 0.35);
}

.consent p {
  flex: 1 1 18rem;
  margin: 0;
  font-size: 0.95rem;
}

.consent-btns {
  display: flex;
  gap: 0.5rem;
  flex: 1 1 12rem;
  max-inline-size: 16rem;
}

.consent-btns button {
  flex: 1;
  padding: 0.6rem;
  font: inherit;
  font-weight: 700;
  color: #1A1408;
  background: #F3E27A;
  border: 2px solid #1A1408;
  cursor: pointer;
}
