:root {
  --brand: #3b4a2f;
  --accent: #b5552b;
  --ink: #1b1f24;
  --bg: #ffffff;
  --surface: color-mix(in srgb, var(--brand) 8%, var(--bg));
  --line: color-mix(in srgb, var(--brand) 26%, var(--bg));
  --muted: color-mix(in srgb, var(--ink) 78%, var(--bg));
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --measure: 40rem;
  --wide: 68rem;
}

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

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
}

img, svg { max-width: 100%; }

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

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

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--bg);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  z-index: 5;
}

.skip:focus { transform: none; }

.site-header {
  background: var(--brand);
  color: var(--bg);
  border-bottom: 4px solid var(--accent);
}

.site-header a { color: var(--bg); text-decoration: none; }

.site-header a:hover { text-decoration: underline; color: var(--bg); }

.header-inner,
.site-footer,
main {
  width: min(var(--wide), calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
  min-height: 44px;
}

.brand svg { display: block; flex: 0 0 auto; }

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.15rem;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.65rem;
}

.site-header nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--bg);
  font-weight: 700;
}

main { padding-bottom: 3rem; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  padding-top: 1rem;
  font-size: 1rem;
  color: var(--muted);
}

.crumbs a { color: var(--brand); }

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

h1 {
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.15rem);
  max-width: 22ch;
  margin: 0.6rem 0 1rem;
}

h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.6rem;
  max-width: 28ch;
}

h3 { font-size: 1.125rem; margin: 1.25rem 0 0.4rem; }

p, li { max-width: var(--measure); }

p { margin: 0.75rem 0; }

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

li + li { margin-top: 0.35rem; }

.lede { font-size: 1.15rem; }

.split {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1rem;
  align-items: start;
  margin: 1.25rem 0 0.5rem;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  min-width: 22rem;
}

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

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

thead th {
  background: var(--surface);
  border-top: 0;
}

tbody th[scope="row"] { font-weight: 650; }

.compare { min-width: 54rem; }

.panel {
  background: var(--surface);
  border-left: 4px solid var(--accent);
}

.source {
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding: 0.15rem 0 0.15rem 0.75rem;
  margin: 0.55rem 0 1rem;
  max-width: var(--wide);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 2rem;
}

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

.site-footer a { margin-right: 1rem; }

.links { list-style: none; padding: 0; }

.links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .header-inner, .site-footer, main { width: min(var(--wide), calc(100% - 1.5rem)); }
  h1 { max-width: none; }
}
