/* One stylesheet per site. Colors were measured by tools/check_sites.mjs: text 4.5:1 or above, focus ring 3:1 or above. */
:root {
  --text: #1b1b1b;
  --muted: #454545;
  --bg: #ffffff;
  --soft: #f3f3f0;
  --line: #767676;
  --accent: #0b4a8f;
  --accent-visited: #5b2b86;
  color-scheme: light;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.wrap-wide {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Tables use the full width. Running text keeps a readable line length. */
.wrap-wide > p,
.wrap-wide > ul,
.wrap-wide > ol,
.wrap-wide > dl,
.wrap-wide > .plain-box,
.wrap-wide > .statement {
  max-width: 46rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: 2rem;
  margin: 2rem 0 1rem;
}

h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.125rem;
  margin: 1.75rem 0 0.5rem;
}

p,
ul,
ol,
dl,
table,
pre {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:visited {
  color: var(--accent-visited);
}

a:hover {
  text-decoration-thickness: 2px;
}

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

main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  left: -100vw;
  top: 0;
  background: var(--bg);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border: 2px solid var(--accent);
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  z-index: 10;
}

.site-header {
  border-bottom: 2px solid var(--text);
  padding: 0.75rem 0;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
}

.site-name {
  display: inline-block;
  padding: 0.25rem 0;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-name:visited {
  color: var(--text);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.25rem 0;
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
  color: var(--text);
  text-decoration-thickness: 2px;
}

.site-footer {
  margin-top: 3.5rem;
  border-top: 2px solid var(--text);
  padding: 1.25rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer p {
  margin: 0 0 0.6rem;
}

.lead {
  font-size: 1.1875rem;
}

.price-box {
  border: 2px solid var(--text);
  padding: 1.25rem;
  margin: 1.75rem 0;
}

.price-box h2 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
}

.price {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.price-box ul {
  margin-bottom: 0.75rem;
}

.price-box p:last-child {
  margin-bottom: 0;
}

.plain-box {
  background: var(--soft);
  border-left: 0.375rem solid var(--text);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.plain-box > :last-child {
  margin-bottom: 0;
}

.sample-note {
  border: 2px solid var(--text);
  background: var(--soft);
  padding: 0.6rem 1rem;
  margin: 0 0 1.25rem;
  font-weight: 700;
}

.small {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Tables: real tables on a wide screen, stacked rows at 40rem and below. Roles are set in the HTML so
   the table stays a table for assistive technology when the display changes. */
table {
  border-collapse: collapse;
  width: 100%;
}

caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 0.5rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}

thead th {
  background: var(--soft);
}

tbody th {
  font-weight: 600;
}

.cell-label {
  display: none;
}

.col-20 {
  width: 20%;
}

.col-30 {
  width: 30%;
}

.col-16 {
  width: 16%;
}

@media (max-width: 40rem) {
  .stack,
  .stack tbody,
  .stack tr,
  .stack th,
  .stack td {
    display: block;
    width: auto;
  }

  .stack caption {
    display: block;
  }

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

  .stack tr {
    border: 1px solid var(--line);
    margin-bottom: 0.75rem;
    padding: 0.35rem 0;
  }

  .stack th,
  .stack td {
    border: 0;
    padding: 0.25rem 0.75rem;
  }

  .cell-label {
    display: inline;
    font-weight: 700;
  }

  h1 {
    font-size: 1.75rem;
  }
}

/* Issue records as definition lists */
dl.record {
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
}

dl.record dt {
  font-weight: 700;
  margin-top: 0.6rem;
}

dl.record dt:first-child {
  margin-top: 0;
}

dl.record dd {
  margin: 0;
}

pre,
code {
  font-family: ui-monospace, Consolas, "Cascadia Mono", Menlo, monospace;
  font-size: 0.875rem;
}

pre {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 0.75rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

code {
  overflow-wrap: anywhere;
}

details {
  margin: 0 0 1rem;
}

summary {
  cursor: pointer;
  padding: 0.25rem 0;
  color: var(--accent);
  text-decoration: underline;
}

.statement {
  border: 1px solid var(--line);
  padding: 1rem 1.25rem;
}

.statement > :last-child {
  margin-bottom: 0;
}

.status-open {
  font-weight: 700;
}

@media (forced-colors: active) {
  .site-nav a[aria-current="page"],
  .site-name {
    color: LinkText;
  }
}

@media print {
  .skip-link,
  .site-nav {
    display: none;
  }

  a {
    color: inherit;
  }

  .sample-note {
    break-inside: avoid;
  }

  tr {
    break-inside: avoid;
  }
}
