:root {
  --brand: #22333b;
  --accent: #2a9d8f;
  --ink: #1b1f24;
  --bg: #ffffff;
  --band: #f3f6f7;
  --line: #d5dde1;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--bg);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 5;
}

.skip:focus {
  left: 0.5rem;
}

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  background: var(--brand);
  color: #fff;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.9rem 0;
}

.brand {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand:hover,
.brand:focus {
  color: #fff;
  text-decoration: underline;
}

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

.site-header nav a {
  color: #fff;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus,
.site-header nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

main {
  padding: 1.5rem 0 3rem;
}

h1,
h2,
h3 {
  color: var(--brand);
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
  margin: 0 0 0.8rem;
  max-width: 22ch;
}

h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.5rem;
}

h3 {
  font-size: 1.15rem;
  margin: 1.25rem 0 0.35rem;
}

p,
li,
dd {
  max-width: 68ch;
}

p {
  margin: 0.65rem 0;
}

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

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  max-width: none;
}

.crumbs li {
  max-width: none;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--brand);
}

.facts {
  background: var(--band);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.1rem;
  margin: 1rem 0 1.25rem;
}

.facts h2 {
  margin-top: 0;
}

.facts dl {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  gap: 0.4rem 1rem;
  margin: 0;
}

.facts dt {
  font-weight: 700;
}

.facts dd {
  margin: 0;
  max-width: none;
}

.note {
  border: 2px solid var(--brand);
  padding: 0.8rem 1rem;
  margin: 1rem 0;
}

.note p:first-child {
  margin-top: 0;
}

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

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  max-width: 100%;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 36rem;
}

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

th {
  background: var(--brand);
  color: #fff;
  font-weight: 650;
}

tbody tr:nth-child(even) {
  background: var(--band);
}

caption {
  text-align: left;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.4rem;
  caption-side: top;
}

.source {
  margin-top: 0.35rem;
}

.todo {
  font-weight: 700;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 1rem 0 0.5rem;
}

.card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  padding: 0.9rem 1rem 1rem;
}

.card h3 {
  margin-top: 0;
}

.card p {
  max-width: none;
}

.site-footer {
  background: var(--brand);
  color: #fff;
  padding: 1.2rem 0 1.4rem;
}

.site-footer p {
  margin: 0.3rem 0;
  max-width: none;
}

.site-footer a {
  color: #fff;
}

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

@media (max-width: 40rem) {
  h1 {
    font-size: 1.65rem;
  }

  .facts dl {
    grid-template-columns: 1fr;
  }
}

tbody th {
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}
