@charset "utf-8";



.doc {
  --measure: 48ch;
  --column:  44rem;
  --read-size: clamp(1rem, .96rem + .22vw, 1.0625rem);

  padding-block: var(--s2) clamp(var(--s9), 8vw, var(--s11));

  background:
    radial-gradient(72% 46% at 78% -10%,
      color-mix(in srgb, var(--gold) 8%, transparent) 0%,
      transparent 64%),
    var(--bg);
}

.doc:focus:not(:focus-visible),
.prose:focus:not(:focus-visible) { outline: none; }

.doc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(var(--s7), 4vw, var(--s8));
  margin-top: clamp(var(--s7), 5vw, var(--s9));
}
.doc__grid > * { min-width: 0; }

@media (min-width: 1024px) {
  .doc__grid { grid-template-columns: 15rem minmax(0, var(--column)); align-items: start; }
}
@media (min-width: 1280px) {
  .doc__grid { grid-template-columns: 16.5rem minmax(0, var(--column)); gap: var(--s10); }
}



.doc__hd {
  margin-top: var(--s5);
  padding-bottom: clamp(var(--s6), 3vw, var(--s7));
  border-bottom: 1px solid var(--line);
}

.doc__hd h1 {
  max-width: 18ch;
  color: var(--ink);
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
  line-height: 1.04;
}

.doc__lead {
  max-width: 42ch;
  margin-top: var(--s4);
  color: var(--read-soft);
  font-size: clamp(1rem, .95rem + .35vw, 1.125rem);
  line-height: 1.7;
}
.doc__hd .kicker + h1 { margin-top: var(--s3); }

.doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s6);
  margin-top: var(--s5);
  color: var(--muted);
  font-size: var(--t-spec);
  line-height: 1.5;
}



.doc ul,
.doc ol { padding: 0; list-style: none; }

.toc {
  padding: var(--s4) var(--s4) var(--s5);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

@media (min-width: 1024px) {
  .toc {
    position: sticky;
    top: calc(var(--hdr-h) + var(--s4));
    max-height: calc(100dvh - var(--hdr-h) - var(--s7));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line-2) transparent;
  }
}

.toc h2 {
  margin-bottom: var(--s3);
  color: var(--gold);
  font-family: var(--sans);
  font-size: var(--t-mic);
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.toc ol { counter-reset: toc; }
.toc li { counter-increment: toc; }

.toc a {
  position: relative;
  display: block;
  padding: var(--s2);
  border-radius: var(--r-s);
  color: var(--read-soft);
  font-size: .875rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.toc ol a {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  align-items: baseline;
}
.toc ol a::before {
  content: counter(toc) ".";
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.toc ol a::after {
  content: "";
  position: absolute;
  inset-block: var(--s1);
  inset-inline-start: 0;
  width: 2px;
  border-radius: var(--round-full);
  background: var(--grad-gold);
  opacity: 0;
  transform: scaleY(.4);
  transform-origin: center;
  transition: opacity var(--t16) var(--e-out), transform var(--t24) var(--e-out);
}

.toc a:hover { color: var(--ink); background: var(--card-2); }
.toc ol a[aria-current="true"] { color: var(--gold-hi); background: var(--card-2); }
.toc ol a[aria-current="true"]::after { opacity: 1; transform: scaleY(1); }

@media (min-width: 560px) and (max-width: 1023.98px) {
  .toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s1) var(--s3); }
}

.toc__docs {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
}
.toc__docs a[aria-current="page"] { color: var(--gold-hi); font-weight: 600; }

@media (pointer: coarse) {
  .toc a { min-height: 44px; display: flex; align-items: center; }
  .toc ol a { display: grid; align-items: center; }
}



.prose {
  max-width: var(--column);
  min-width: 0;
  counter-reset: sec;
  color: var(--read);
  font-size: var(--read-size);
  line-height: 1.75;
  overflow-wrap: break-word;
}

.prose > section + section,
.prose > .related { margin-top: clamp(var(--s8), 6vw, var(--s10)); }

.prose > section > p,
.prose > section > small,
.prose > section > .list,
.prose > section > .ord,
.prose .qa__b > p,
.prose .qa__b > .list,
.prose .note,
.lf > h2,
.prose h3 { max-width: var(--measure); }

.prose > section > * + *,
.prose .qa__b > * + *,
.prose .note > * + *,
.prose .formx > * + * { margin-top: var(--s5); }

.lf { counter-increment: sec; scroll-margin-top: calc(var(--hdr-h) + var(--s5)); }

.lf > h2 {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  align-items: baseline;
  color: var(--ink);
  font-size: clamp(1.3125rem, 1.1rem + .8vw, 1.75rem);
  line-height: 1.18;
}
.lf > h2::before {
  content: counter(sec) ".";
  color: var(--gold);
  font-family: var(--sans);
  font-size: var(--t-spec);
  font-weight: 600;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) {
  .lf > h2 { grid-template-columns: 2.8rem minmax(0, 1fr); }
}

.prose h3 {
  margin-top: var(--s7);
  color: var(--gold-hi);
  font-family: var(--sans);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .01em;
}
.prose h3 + * { margin-top: var(--s3); }

.prose strong { font-weight: 600; color: var(--ink); }
.prose em { font-style: normal; color: var(--gold-hi); }

.prose small { color: var(--muted); font-size: var(--t-spec); line-height: 1.5; }
.prose > section > small { display: block; margin-top: var(--s5); }

.prose code {
  padding: .1em var(--s1);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--bg-2);
  color: var(--gold-hi);
  font-family: var(--mono);
  font-size: .875em;
  white-space: nowrap;
}

.prose p.spec { letter-spacing: normal; line-height: 1.6; }



.prose a:not(.chip) {
  color: var(--gold-hi);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-2);
  transition: color var(--t16) var(--e-out), text-decoration-color var(--t16) var(--e-out);
}
.prose a:not(.chip):hover { color: var(--gold); text-decoration-color: var(--gold); }

@media (pointer: coarse) {
  .prose a,
  .doc .crumb a { padding-block: 5px; }
}



.list { display: grid; gap: var(--s2); }
.list li { position: relative; padding-left: 1.3em; }
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: .7em;
  height: 1px;
  background: var(--gold-lo);
}
.list li strong { color: var(--ink); }

.ord { counter-reset: o; display: grid; gap: var(--s2); }
.ord li { counter-increment: o; position: relative; padding-left: 2.2em; }
.ord li::before {
  content: counter(o) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-size: var(--t-spec);
  font-weight: 600;
  line-height: 2.2;
  font-variant-numeric: tabular-nums;
}



.prose .note {
  margin-top: var(--s6);
  padding: var(--s4) var(--s5);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--r-s) var(--r-s) 0;
  background: var(--card);
  color: var(--read);
  font-size: .9375rem;
  line-height: 1.65;
}
.note b { color: var(--ink); font-weight: 600; }

.prose .note--state { border-left-color: var(--sale); }
.prose .note--state b { color: var(--sale-ink); }
.prose .note--ok { border-left-color: var(--ok); }



.gist {
  padding-top: var(--s5);
  border-top: 1px solid var(--line-2);
}
.gist ul { display: grid; gap: var(--s4); }
@media (min-width: 700px) {
  .gist ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s7); }
}

.gist li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: var(--s1) var(--s3);
  align-items: start;
  line-height: 1.55;
}
.gist li i {
  grid-row: span 2;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .18em;
  color: var(--gold);
  font-style: normal;
}
.gist li i svg { width: 100%; height: 100%; }

.gist li i:empty {
  position: relative;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: .34em;
  border: 1px solid var(--gold-lo);
  border-radius: var(--round-full);
}
.gist li i:empty::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: var(--round-full);
  background: var(--gold);
  opacity: .55;
}

.gist li b { color: var(--ink); font-size: .9375rem; font-weight: 600; }
.gist li span { color: var(--read-soft); font-size: .875rem; }



.prose .table-scroll {
  margin-top: var(--s6);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: var(--r);
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.prose .tbl { min-width: 26rem; font-size: .9375rem; }

.prose .tbl th,
.prose .tbl td {
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.prose .tbl tr:last-child th,
.prose .tbl tr:last-child td { border-bottom: 0; }

.prose .tbl thead th {
  background: var(--bg-2);
  color: var(--gold);
  font-size: var(--t-mic);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.prose .tbl tbody th {
  width: 34%;
  border-right: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
}
.prose .tbl--3 tbody th,
.prose .tbl--3 td { width: auto; }

.prose .tbl td { color: var(--read); }

.prose .tbl td.num {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.prose .tbl td.num small { display: block; color: var(--muted); font-weight: 400; }

.prose .tbl th small,
.fill dt small {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}



.faq__list { display: grid; gap: var(--s3); }

.qa {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}
.qa[open] { border-color: var(--line-2); }

.qa > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.25rem;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4);
  border-radius: var(--r);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}
.qa > summary::-webkit-details-marker { display: none; }

.qa > summary::after {
  content: "";
  justify-self: center;
  width: .55rem;
  height: .55rem;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: translateY(-.14rem) rotate(45deg);
  transition: transform var(--t24) var(--e-out);
}
.qa[open] > summary::after { transform: translateY(.1rem) rotate(-135deg); }

.qa > summary:hover { color: var(--gold-hi); }

.qa__b {
  padding: var(--s4);
  border-top: 1px solid var(--line);
  color: var(--read);
}



.formx {
  padding: clamp(var(--s4), 3vw, var(--s6));
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--card);
  break-inside: avoid;
}
.formx h3 {
  margin-top: 0;
  color: var(--muted);
  font-size: var(--t-spec);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.formx .lit {
  display: block;
  margin-top: var(--s2);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
}
.formx p { font-size: .9375rem; }
.formx .rule { margin-block: var(--s5); }
.formx .star { color: var(--muted); font-size: var(--t-spec); line-height: 1.55; }

.fill { display: grid; }
@media (min-width: 560px) {
  .fill { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); column-gap: var(--s5); }
}
.fill dt {
  padding-top: var(--s3);
  color: var(--muted);
  font-size: var(--t-spec);
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.fill dd {
  min-height: var(--s7);
  margin: 0;
  padding: var(--s2) 0;
  border-bottom: 1px dotted var(--line-2);
}

.prose p.ph {
  padding: var(--s3) var(--s4);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-s);
  color: var(--warn);
  font-size: var(--t-spec);
  line-height: 1.6;
}
.prose p.ph a { color: var(--warn); }
.fill .ph { color: var(--muted); }



.ctc {
  padding: clamp(var(--s4), 3vw, var(--s6));
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
}

.ctc :is(input, select, textarea) { background: var(--bg-2); }

.ctc select[aria-invalid="true"] { border-color: var(--sale); }

.ctc .err { color: var(--sale-ink); font-size: var(--t-spec); line-height: 1.5; }



.related {
  padding-top: var(--s6);
  border-top: 1px solid var(--line);
}
.related h2 {
  margin-bottom: var(--s4);
  color: var(--gold);
  font-family: var(--sans);
  font-size: var(--t-mic);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.related ul { display: flex; flex-wrap: wrap; gap: var(--s2); }




.totop {
  position: fixed;
  right: var(--pad);
  bottom: var(--pad);
  z-index: 60;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--round-full);
  background: var(--card);
  color: var(--gold);
  box-shadow: var(--sh-2);
  opacity: 0;
  transform: translateY(var(--s2));
  pointer-events: none;
  transition: opacity var(--t24) var(--e-out), transform var(--t24) var(--e-out);
}
.totop svg { width: 1.25rem; height: 1.25rem; }
.totop.is-engaged { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { color: var(--gold-hi); }
.totop:active { transform: scale(.97); }



html:not([data-moving]) .doc *,
html:not([data-moving]) .totop { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .doc *,
  .totop { transition: none; }
  .totop:active { transform: none; }
}



@media print {
  :root {
    --paper:      #fff;
    --paper-ink:  #111;
    --paper-soft: #444;
    --paper-line: #999;
    --paper-tint: #eee;
  }

  @page { margin: 16mm; }

  .util, .hdr, .ftr, .drw, .srch, .skip, .totop,
  .toc, .related, .crumb { display: none !important; }

  html, body { background: var(--paper) !important; color: var(--paper-ink) !important; }

  .doc { padding-block: 0; background: var(--paper) !important; }
  .doc__grid { display: block; }
  .doc__hd { border-bottom-color: var(--paper-line); }

  .prose {
    max-width: none;
    color: var(--paper-ink);
    font-size: 11pt;
    line-height: 1.5;
  }
  .doc__hd h1, .lf > h2, .prose h3, .prose a,
  .prose strong, .prose em, .note b, .gist li b, .formx .lit {
    color: var(--paper-ink) !important;
  }
  .lf > h2::before, .ord li::before, .toc ol a::before { color: var(--paper-soft) !important; }
  .doc__lead, .doc__meta, .prose small, .prose .spec,
  .gist li span, .fill dt, .formx .star { color: var(--paper-soft) !important; }
  .prose p.ph { color: var(--paper-soft) !important; border-color: var(--paper-line); }

  .prose a { text-decoration: none; }

  .note, .gist, .formx, .ctc, .qa, .prose .tbl tbody th, .prose code {
    background: var(--paper) !important;
    border-color: var(--paper-line) !important;
  }
  .prose .tbl thead th {
    background: var(--paper-tint) !important;
    color: var(--paper-ink) !important;
  }
  .prose .tbl th, .prose .tbl td,
  .prose .table-scroll { border-color: var(--paper-line) !important; }
  .prose .tbl { min-width: 0; }
  .prose .table-scroll { overflow: visible; }
  .fill dd { border-bottom-color: var(--paper-soft); }

  .qa::details-content { content-visibility: visible !important; block-size: auto !important; }
  .qa__b { display: block !important; border-top-color: var(--paper-line); }
  .qa > summary::after { display: none; }

  .lf, .note, .gist, .formx, .qa, .table-scroll { break-inside: avoid; }
}
