:root {
  color-scheme: dark;
  --canvas: #101314;
  --sheet: #151919;
  --ink: #eff1ed;
  --signal: #c5f2d8;
  --muted: #abb8b3;
  --rule: #414c49;
  --night: #101718;
  font: 16px/1.5 "Helvetica Neue", system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--signal); text-underline-offset: .19em; }
a:focus-visible, button:focus-visible, select:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}
button, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
.shell { inline-size: min(100% - 2 * clamp(18px, 4.5vw, 68px), 1130px); margin-inline: auto; }
.skip { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 6; padding: .7rem; background: var(--sheet); transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header { position: sticky; inset-block-start: 0; z-index: 5; border-block-end: 1px solid var(--rule); background: var(--canvas); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1.5rem; min-block-size: 68px; padding-block: .6rem; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-size: 1.13rem; font-weight: 650; white-space: nowrap; }
.wordmark img { border-radius: 3px; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: .16rem clamp(.26rem,1.25vw,1rem); }
.site-header a:not(.wordmark), .menu-button { display: block; padding: .55rem .55rem; font-size: .95rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.site-header a[aria-current="page"] { box-shadow: inset 0 -2px var(--signal); color: var(--signal); }
.site-header a:not(.wordmark):hover { background: #202927; }
.menu-button { border: 1px solid var(--rule); background: var(--sheet); border-radius: 5px; }
.site-header[data-compact] ul[popover] {
  display: none;
  position: fixed; inset: min(4.1rem, 100%) clamp(18px, 4.5vw, 68px) auto auto;
  inline-size: min(16rem, calc(100vw - 36px));
  max-block-size: min(80dvh, 25rem);
  margin: 0; padding: .65rem; overflow: auto;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--sheet);
}
.site-header[data-compact] ul[popover]:popover-open { display: grid; }
main { padding-block: clamp(1.25rem, 3.4vw, 3.1rem) 1rem; }
.hero-art, .method-art { position: relative; margin: 0; overflow: hidden; background: var(--night); border-radius: 0; }
.hero-art img, .method-art img { display: block; inline-size: 100%; block-size: auto; object-fit: cover; }
.hero-art img { aspect-ratio: 1128 / 270; min-block-size: 146px; }
.hero-art::after {
  position: absolute; inset: 0; content: ""; pointer-events: none;
  background: linear-gradient(90deg, transparent 25%, #b1fbd3 50%, transparent 75%);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: focus-in 1.2s ease-out both; }
  .hero-art::after { animation: sweep 7.2s 1.2s ease-in-out infinite; }
}
@keyframes focus-in {
  from { opacity: .84; transform: scale(1.027); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes sweep {
  0%, 68% { opacity: 0; transform: translateX(-80%); }
  77% { opacity: .1; }
  100% { opacity: 0; transform: translateX(80%); }
}
.page-title { padding: clamp(1.6rem, 4.4vw, 3.8rem) 0 clamp(2rem, 5vw, 4rem); border-block-end: 1px solid var(--rule); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.35rem, 5vw, 4.6rem); line-height: .99; letter-spacing: -.057em; font-weight: 490; text-wrap: balance; }
h2 { font-size: clamp(1.48rem, 3vw, 2.35rem); letter-spacing: -.05em; line-height: 1.13; }
h3 { font-size: 1.2rem; }
p { max-inline-size: 64ch; }
.page-title p { margin-block-start: 1.05rem; color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.32rem); }
.actions, .form-row { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.1rem; margin-block-start: 1.3rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-block-size: 44px; border: 1px solid var(--signal); border-radius: 5px; background: var(--signal); color: #13221b; padding: .66rem .88rem; font-weight: 680; text-decoration: none; }
.button:hover { background: #a7e4c3; }
.button:disabled { color: #a5b5ae; background: #202725; border-color: #566561; }
.text-action { display: inline-flex; align-items: center; min-block-size: 44px; font-weight: 650; }
.section { padding-block: clamp(1.6rem, 4vw, 3.35rem); scroll-margin-block-start: 6.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem; margin-block-end: 1rem; }
.section-head p { margin-block-start: .4rem; color: var(--muted); }
.table-wrap { max-inline-size: 100%; overflow: auto; max-block-size: min(520px, 67vh); border: 1px solid var(--rule); border-radius: 2px; background: var(--sheet); }
table { inline-size: 100%; min-inline-size: 530px; border-collapse: separate; border-spacing: 0; text-align: start; }
caption { text-align: start; padding: .65rem .76rem; color: var(--muted); }
thead { position: sticky; inset-block-start: 0; z-index: 2; background: #202a27; }
td, th { text-align: start; padding: .68rem .76rem; border-block-end: 1px solid var(--rule); }
tbody th { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--sheet); }
tbody tr:last-child > * { border-block-end: 0; }
.notice { margin-block-start: 1rem; color: var(--muted); }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.75rem clamp(1rem, 3vw, 2rem); }
.method-grid article { min-inline-size: 0; padding: clamp(1.1rem, 2.6vw, 2rem); border: 1px solid var(--rule); }
.method-grid h2 { font-size: 1.45rem; margin-block: .82rem .46rem; }
.method-grid .method-art { border-radius: 2px; }
.prose :is(h2,p,form,dl,ul) + :is(h2,p,form,dl,ul) { margin-block-start: .75rem; }
.prose :is(p,div) + h2 { margin-block-start: 2rem; }
code { font: .93em/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.command { display: flex; align-items: flex-start; gap: .6rem; border-radius: 2px; background: var(--night); color: #e9f2ed; padding: .65rem; margin-block: .9rem; }
.command pre { overflow: auto; min-inline-size: 0; margin: 0; padding: .58rem; flex: 1; }
.command button { color: var(--ink); border-radius: 4px; border: 0; min-block-size: 44px; padding: .55rem; font-size: .89rem; flex: none; background: #25332d; }
.command button:focus-visible { outline-color: white; }
.form-row { margin-block-start: .4rem; }
select { min-block-size: 44px; max-inline-size: 100%; min-inline-size: min(100%, 15rem); padding: .55rem; border: 1px solid #75837c; border-radius: 5px; background: var(--sheet); color: var(--ink); }
.facts { margin-block: 1rem; display: grid; grid-template-columns: minmax(min-content, 9rem) minmax(0, 1fr); gap: .3rem .9rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.records { margin: 1rem 0; padding-inline-start: 1.24rem; }
.records:empty, .facts:empty { display: none; }
.records li { padding-block: .25rem; overflow-wrap: anywhere; }
.detail-list > article { margin-block: 1rem; padding: .9rem 0; border-block-start: 1px solid var(--rule); }
.detail-list article p { margin-block-start: .48rem; }
.site-footer { border-block-start: 1px solid var(--rule); min-block-size: 5.2rem; padding-block: 1rem; display: flex; justify-content: space-between; gap: 1rem; }
@media (width <= 520px) {
  .command { flex-wrap: wrap; }
  .command pre { flex-basis: 100%; }
  .section { scroll-margin-block-start: 8rem; }
}
@media (forced-colors: active) {
  .site-header a[aria-current="page"] { box-shadow: none; text-decoration: underline; }
}

body[data-page="/"] .page-title { text-align: center; }
body[data-page="/"] .page-title p { margin-inline: auto; }
body[data-page="/"] .page-title .actions { justify-content: center; }
.page-title .command { max-inline-size: 31rem; margin: .9rem auto 0; text-align: left; border: 1px solid var(--rule); }
.button.secondary { border-color: var(--rule); background: transparent; color: var(--ink); }
.button.secondary:hover { background: var(--sheet); }
.hero-art { border: 1px solid #293532; }
@media (width <= 520px) {
  body[data-page="/"] .page-title .actions > a { flex: 1 1 9rem; min-block-size: 51px; }
  .page-title .command pre { flex-basis: 0; }
  .page-title .command button { font-size: .81rem; }
}

.notice:empty { display: none; }
