/* Help center. Reads like documentation: one column, hairline structure, tokens from site.css. */
html { scrollbar-color: var(--line) transparent; }
::selection { background: var(--ink); color: var(--bg); }
.help-link { font-size: .875rem; color: var(--ink-muted); padding: .5rem .25rem; transition: color .2s var(--ease); }
.help-link:hover, .help-link[aria-current] { color: var(--ink); }
.nav .cta { display: none; }
@media (min-width: 640px) { .nav .cta { display: inline-flex; } .nav .right { gap: 1rem; } }

.help { max-width: 44rem; margin: 0 auto; padding: 7.5rem var(--gutter) 5rem; }
.help h1 { font-size: 2rem; line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 1rem; }
@media (min-width: 768px) { .help h1 { font-size: 2.5rem; } }
.help .lead { font-size: 1.125rem; line-height: 1.6; color: var(--ink); max-width: 38rem; margin: 0 0 2.5rem; }
.help h2 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.02em; margin: 3rem 0 .875rem; }
.help h3 { font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; margin: 1.75rem 0 .375rem; color: var(--ink); }
.help p, .help li, .help dd { color: var(--ink-muted); font-size: 1rem; line-height: 1.7; max-width: 38rem; }
.help p + p { margin-top: .875rem; }
.help ul, .help ol { padding-left: 1.25rem; margin: .5rem 0; }
.help li { margin: .4rem 0; }
.help li::marker { color: var(--ink-faint); }
.help a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in oklch, var(--ink) 35%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .2s var(--ease); }
.help a:hover { text-decoration-color: var(--ink); }
.help strong { color: var(--ink); font-weight: 500; }
.help .num { font-variant-numeric: tabular-nums; }

.crumbs { display: flex; gap: .5rem; align-items: center; font-size: .875rem; color: var(--ink-muted); margin: 0 0 1.5rem; }
.crumbs a { text-decoration: none; color: var(--ink-muted); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-current] { color: var(--ink); }

/* Definition rows for short lists of named things */
.defs { margin: .5rem 0 0; border-top: 1px solid var(--line); }
.defs > div { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .25rem; }
.defs dt { color: var(--ink); font-weight: 500; }
.defs dd { margin: 0; }
@media (min-width: 640px) { .defs > div { grid-template-columns: 11rem 1fr; gap: 1.5rem; } }

/* Tables: hairlines, stacked rows on phones */
.tbl { width: 100%; border-collapse: collapse; margin: .75rem 0 0; font-size: .9375rem; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: .75rem 1rem .75rem 0; border-bottom: 1px solid var(--line); line-height: 1.55; }
.tbl thead th { color: var(--ink-muted); font-weight: 400; font-size: .8125rem; border-bottom-color: var(--ink-faint); padding-top: .25rem; }
.tbl tbody th { color: var(--ink); font-weight: 500; }
.tbl td { color: var(--ink-muted); }
.tbl td:last-child, .tbl th:last-child { padding-right: 0; }
@media (max-width: 639px) {
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .tbl tr { padding: .875rem 0; border-bottom: 1px solid var(--line); }
  .tbl th, .tbl td { border: 0; padding: .125rem 0; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; color: var(--ink-muted); margin-top: .375rem; }
}

/* Index lists */
.help .rows { list-style: none; padding: 0; margin: .5rem 0 0; border-top: 1px solid var(--line); }
.help .rows li { margin: 0; max-width: none; border-bottom: 1px solid var(--line); }
.rows a { display: grid; gap: .125rem; padding: 1rem .25rem 1rem 0; text-decoration: none; transition: padding-left .25s var(--ease); }
.rows a:hover { padding-left: .5rem; }
.rows a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.rows .t { color: var(--ink); font-weight: 500; }
.rows .d { color: var(--ink-muted); font-size: .9375rem; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .rows a { transition: none; } .rows a:hover { padding-left: 0; } }

.more { margin-top: 3.5rem; }
.help .more ul { list-style: none; padding: 0; }
.more li { margin: .5rem 0; }
.ask { margin-top: 2rem; font-size: .9375rem; }
.note { margin: 1.25rem 0 0; padding: 1rem 1.125rem; background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; }
.note p { color: var(--ink); font-size: .9375rem; max-width: none; }
.note strong { display: block; margin-bottom: .25rem; }

.help .more { padding: 0; border: 0; }
.tbl + p { margin-top: 1.25rem; }
.nb { white-space: nowrap; }
.tbl.compact { max-width: 28rem; }
.tbl.compact td:last-child, .tbl.compact th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 639px) { .tbl.compact tr { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; } .tbl.compact td[data-label]::before { display: none; } }
