:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #20252a;
  --muted: #4e5a64;
  --rule: #cbd2d8;
  --panel: #f5f7f8;
  --link: #174f91;
  --focus: #185aa0;
}
* { box-sizing: border-box; }
body {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem clamp(.75rem, 3vw, 2rem) 2.25rem;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.5 system-ui, sans-serif;
}
h1 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.25rem); line-height: 1.16; }
header p { max-width: 65ch; margin: .4rem 0 1rem; }
a { color: var(--link); text-underline-offset: .16em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .6rem 1rem;
  margin: 0;
  padding: .75rem;
  border: 1px solid var(--rule);
  background: var(--panel);
}
.field { display: grid; gap: .16rem; font-size: .875rem; font-weight: 600; }
.number { display: flex; align-items: center; gap: .38rem; }
.number span { color: var(--muted); font-weight: 400; }
input, select, button { font: inherit; }
input[type=number], select, button {
  min-height: 2.25rem;
  padding: .28rem .46rem;
  border: 1px solid #838f9a;
  border-radius: .2rem;
  color: var(--ink);
  background-color: var(--paper);
}
select {
  appearance: none;
  padding-right: 1.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - .67rem) 50%, calc(100% - .38rem) 50%;
  background-size: .3rem .3rem;
  background-repeat: no-repeat;
}
input[type=number] { width: 6.2rem; }
button { cursor: pointer; font-size: .875rem; }
button:hover { background: #eaf0f7; }
.check { display: flex; align-items: center; gap: .35rem; min-height: 2.25rem; font-size: .875rem; }
.check input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--link); }
.status { margin: .7rem 0 .45rem; color: var(--muted); font-size: .875rem; }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .65rem; font-size: .875rem; }
.presets span { margin-right: .25rem; color: var(--muted); }
.presets [aria-pressed=true] { border-color: var(--link); background: #eaf0f7; font-weight: 600; }
.guide { max-width: 70ch; }
.guide h2 { margin: 1.35rem 0 .35rem; font-size: 1.25rem; }
.guide p, .guide ol { margin: .45rem 0 .85rem; }
.guide li + li { margin-top: .4rem; }
.scroll-hint { display: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
th, td { padding: .49rem .7rem; text-align: left; vertical-align: top; font-size: .875rem; }
thead th { background: #eaf0f4; }
tbody th { font-weight: 600; }
tbody tr { border-top: 1px solid var(--rule); }
tbody tr:nth-child(even) { background: #f8fafb; }
.num { white-space: nowrap; }
.sub { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; }
a.sub, .sub a { color: var(--link); }
.note, footer { color: var(--muted); font-size: .875rem; }
.note { margin: .62rem 0; }
details { margin-top: .85rem; }
summary { cursor: pointer; font-weight: 600; }
details p { max-width: 76ch; margin: .45rem 0; }
footer { margin-top: 1.1rem; padding-top: .65rem; border-top: 1px solid var(--rule); }
@media (max-width: 40rem) {
  .filters { column-gap: .7rem; }
  .scroll-hint { display: block; margin: 0 0 .35rem; color: var(--muted); font-size: .875rem; }
  table { min-width: 43rem; }
  .example-table { min-width: 0; }
  th, td { padding: .48rem .55rem; }
}
