/* One readable document; system appearance also works without JavaScript. */
:root { --help-light: block; --help-dark: none; }
@media (prefers-color-scheme: dark) { :root { --help-light: none; --help-dark: block; } }
html[data-theme="light"] { --help-light: block; --help-dark: none; }
html[data-theme="dark"] { --help-light: none; --help-dark: block; }
.help-art-light { display: var(--help-light); }
.help-art-dark { display: var(--help-dark); }
.help-page [hidden] { display: none !important; }
.help-page a:not(.brand) { text-decoration: underline; text-underline-offset: .18em; }
.help-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.help-header .wrap, .help-header nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.help-header .wrap { justify-content: space-between; padding-block: 18px; }
.help-header nav { font-size: 14px; }
.help-header .brand img { width: 36px; height: 36px; }
.help-main { max-width: 940px; padding-block: 54px 0; }
.help-intro h1 { font-size: clamp(36px, 7vw, 62px); line-height: 1.12; letter-spacing: -.04em; margin: 12px 0 22px; }
.help-intro > p:not(.eyebrow) { color: var(--muted); max-width: 680px; }
.help-edition { font-size: 13px; }
.help-search { margin: 32px 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.help-search label { display: block; font-weight: 650; margin-bottom: 8px; }
.help-search-controls { display: flex; gap: 10px; }
.help-search input { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px; color: var(--text); background: var(--bg); }
.help-search .subtle { font-size: 12px; margin-bottom: 0; }
#help-results { padding-left: 22px; }
#help-results:empty { display: none; }
#help-results li { margin-block: 18px; }
#help-results a { color: var(--blue); font-weight: 600; }
#help-results p { font-size: 14px; margin: 6px 0; color: var(--muted); overflow-wrap: anywhere; }
.help-shortcuts { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 22px 0; font-size: 14px; color: var(--blue); }
.help-contents { border-block: 1px solid var(--line); padding: 20px 0; margin: 24px 0; }
.help-contents summary { cursor: pointer; font-weight: 650; }
.help-contents-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; }
.help-contents h2 { font-size: 17px; }
.help-contents li { margin-block: 7px; font-size: 14px; }
.help-contents ul, .help-contents ol { padding-left: 22px; }
.help-page .note, .help-page .highlight { border-left: 3px solid var(--purple); background: var(--surface2); padding: 16px 20px; border-radius: 0 10px 10px 0; margin-block: 22px; }
.help-offline { font-size: 14px; }
.help-chapter { padding-block: 38px; border-bottom: 1px solid var(--line); }
.help-chapter h2, .help-reference > section > h2 { font-size: clamp(25px, 4vw, 34px); line-height: 1.25; letter-spacing: -.025em; }
.help-chapter h3 { font-size: 21px; line-height: 1.4; margin-top: 34px; }
.help-body { overflow-wrap: anywhere; }
.help-body .lead { font-size: 19px; }
.help-body pre { overflow: auto; white-space: pre; max-width: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); line-height: 1.6; }
.help-body code, .help-body pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.help-body pre code { font-size: inherit; }
.help-body pre:focus-visible, .help-table:focus-visible, .help-equation:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.help-table { overflow-x: auto; max-width: 100%; margin-block: 22px; }
.help-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.help-body th, .help-body td { text-align: left; vertical-align: top; padding: 12px; border: 1px solid var(--line); min-width: 120px; }
.help-body th { background: var(--surface2); }
.help-body figure, .help-body .art { margin: 28px 0; }
.help-body img { width: 100%; height: auto; border-radius: 12px; }
.help-body .small, .back-to-help { font-size: 14px; color: var(--muted); }
.help-body .source { font-size: 13px; }
.help-equation { overflow-x: auto; max-width: 100%; padding: 20px 4px; }
.help-equation math { font-family: "STIX Two Math", "Cambria Math", math; font-size: 1.3em; min-width: max-content; margin: 0; }
.help-reference { margin-top: 55px; }
.help-footer { max-width: 940px; margin-top: 40px; }
.skip-link { position: absolute; top: -100px; left: 12px; padding: 12px; background: var(--surface); z-index: 40; }
.skip-link:focus { top: 10px; }
:target { scroll-margin-top: 22px; }
@media (max-width: 620px) {
  .help-contents-grid { grid-template-columns: 1fr; gap: 8px; }
  .help-main { padding-top: 30px; }
  .help-search { padding: 15px; }
  .help-header .wrap { gap: 12px; }
  .help-header nav { gap: 15px; }
}
@media print {
  .help-header, .help-search, .help-shortcuts, .back-to-help, .help-footer, .skip-link { display: none; }
  .help-main { max-width: none; width: 100%; }
  .help-page { background: white; color: black; }
  .help-chapter { break-inside: auto; }
  .help-body pre { white-space: pre-wrap; overflow: visible; }
  .help-body figure { break-inside: avoid; }
}
