.help-page {
  --paper: #f6f2e9;
  --surface: #fffdf7;
  --ink: #203d40;
  --muted: #526962;
  --accent: #235f53;
  --on-accent: #fff;
  --line: #c9d6cb;
  --selected: #e6efe4;
  --focus: #a34f1c;
  --error: #a23b31;
  --code: #13292b;
  --code-ink: #edf5e9;
  color-scheme: light;
  color: var(--ink);
  background: var(--paper);
  margin: 0;
  font: 16px/1.6 system-ui, sans-serif;
}
.help-page[data-theme="dark"] {
  --paper: #132323;
  --surface: #1a2d2d;
  --ink: #e6f1e8;
  --muted: #b8ccc2;
  --accent: #a5dbbf;
  --on-accent: #122522;
  --line: #435c55;
  --selected: #263f39;
  --focus: #edac71;
  --error: #ffb7ad;
  --code: #0f1d20;
  color-scheme: dark;
}
.help-page *, .help-page *::before, .help-page *::after { box-sizing: border-box; }
.help-page [hidden] { display: none !important; }
.help-page a { color: var(--accent); text-underline-offset: .19em; }
.help-page :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.help-page button, .help-page input, .help-page select {
  min-height: 44px;
  padding: .55rem .8rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: inherit;
  font: inherit;
}
.help-page button { font-size: .88rem; cursor: pointer; }
.help-page button:hover, .help-page button[aria-current="page"] { border-color: var(--accent); background: var(--selected); }
.help-page button:disabled { opacity: .55; cursor: default; }
.help-skip {
  position: absolute;
  inset: 8px auto auto 8px;
  z-index: 2;
  padding: .65rem;
  background: var(--surface);
  transform: translateY(-150%);
}
.help-skip:focus { transform: none; }
.help-header, .help-page #documentation-pane {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}
.help-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 1.25rem;
  flex-wrap: wrap;
  padding-block: .9rem;
  border-bottom: 1px solid var(--line);
}
.help-page .help-brand {
  display: flex;
  gap: .45rem .7rem;
  flex-wrap: wrap;
  align-items: baseline;
  color: var(--ink);
  text-decoration: none;
}
.help-brand strong { font-size: 1.35rem; letter-spacing: -.045em; }
.help-brand span { font-size: .87rem; }
#help-version { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.help-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-size: .88rem; }
.help-header nav a { display: inline-flex; min-height: 44px; align-items: center; }
.help-page .documentation-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding-block: .9rem;
  border-bottom: 1px solid var(--line);
}
.help-page #documentation-back { margin-inline-start: auto; }
.help-page #documentation-content {
  display: grid;
  grid-template-columns: minmax(200px, 255px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  margin-block: clamp(18px, 4vw, 44px) 48px;
}
.help-sidebar {
  position: sticky;
  top: 16px;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.help-sidebar summary { font-weight: 750; cursor: pointer; }
.help-sidebar label { display: block; margin-block: .75rem .25rem; font-size: .82rem; font-weight: 700; }
.help-sidebar input, .help-sidebar select { width: 100%; min-width: 0; font-size: .9rem; }
.help-sidebar #documentation-count, .help-sidebar #documentation-matches {
  margin: .55rem 0 0;
  color: var(--muted);
  font-size: .8rem;
}
.help-sidebar #documentation-results {
  max-height: min(50dvh, 30rem);
  overflow: auto;
  padding: 3px;
  margin: .35rem -3px 0;
  scrollbar-gutter: stable;
}
#documentation-results:empty, #documentation-matches:empty, #documentation-error:empty { display: none; }
#documentation-results button {
  display: block;
  width: 100%;
  margin-bottom: .35rem;
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
}
#documentation-results button small {
  display: block;
  margin-top: .15rem;
  font-size: .76rem;
  line-height: 1.35;
  opacity: .85;
}
#documentation-results [aria-current="true"] {
  border-color: var(--accent, #80cbb3);
  background: var(--selected, var(--paper, #203a35));
}
.help-reading { min-width: 0; }
.help-reading #documentation-error { color: var(--error); margin: 0 0 .65rem; }
.help-reading #documentation-location {
  margin: 0 0 .55rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.help-reading #documentation-article { scroll-margin-top: 1rem; }
.help-reading #documentation-article h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.05rem, 4.8vw, 4.2rem);
  letter-spacing: -.055em;
  line-height: 1.04;
  overflow-wrap: anywhere;
}
.help-reading #documentation-article h2 {
  margin: 1.9rem 0 .65rem;
  font-size: clamp(1.28rem, 2.4vw, 1.7rem);
  letter-spacing: -.035em;
  line-height: 1.2;
}
.help-reading #documentation-article h3 { line-height: 1.25; }
.help-reading #documentation-article p, .help-reading #documentation-article li { max-width: 72ch; }
.help-reading #documentation-article .help-lede {
  max-width: 56ch;
  margin: 0 0 1.45rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
}
.help-reading #documentation-article ul, .help-reading #documentation-article ol { padding-inline-start: 1.35rem; }
.help-reading #documentation-article li { margin-bottom: .4rem; }
.help-reading #documentation-article pre {
  max-width: 100%;
  padding: clamp(.85rem, 2vw, 1.35rem);
  border-radius: 12px;
  background: var(--code);
  color: var(--code-ink);
  font: .88rem/1.65 ui-monospace, monospace;
}
.help-reading #documentation-article table { display: block; max-width: 100%; overflow: auto; border-collapse: collapse; }
.help-reading #documentation-article th, .help-reading #documentation-article td {
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}
.help-reading #documentation-article thead th { background: var(--selected); }
.help-reading footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
#documentation-pane .documentation-toolbar, .help-example-actions { flex-wrap: wrap; }
#documentation-pane .documentation-toolbar a { align-self: center; }
#documentation-pane #documentation-article pre { white-space: pre-wrap; overflow-wrap: anywhere; }
#documentation-pane #documentation-article img { max-width: 100%; height: auto; }
#documentation-pane #documentation-article code { overflow-wrap: anywhere; }
#documentation-pane .help-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  gap: .75rem;
  margin-block: 1.1rem 1.65rem;
}
#documentation-pane #documentation-article .help-cards > div {
  min-width: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line, currentColor);
  border-radius: 12px;
  background: var(--surface, transparent);
}
#documentation-pane #documentation-article .help-cards :is(h2, h3) {
  margin: 0 0 .4rem;
  font-size: 1.06rem;
}
#documentation-pane #documentation-article .help-cards p { margin: 0; font-size: .91rem; }
#documentation-pane .help-link-list { columns: 2 235px; }
#documentation-pane .help-command-list { overflow-wrap: anywhere; }
#documentation-pane #documentation-article .help-workshop {
  padding: .8rem 1rem;
  border: 1px solid var(--line, currentColor);
  border-radius: 12px;
  background: var(--surface, transparent);
}
#documentation-pane #documentation-article .help-workshop p { margin: 0 0 .65rem; }
#documentation-pane #documentation-article .help-workshop p:last-child { margin-bottom: 0; }
#documentation-pane #documentation-article .help-workshop a { font-weight: 700; }
#documentation-pane #documentation-article .help-command-reference {
  margin-block: .75rem 1.5rem;
  padding-block: .5rem;
  border-bottom: 1px solid var(--line, currentColor);
}
#documentation-pane #documentation-article .help-command-reference summary {
  cursor: pointer;
  font-weight: 650;
}
.help-example-actions { display: flex; gap: .5rem; margin-block: .8rem; }

@media (min-width: 761px) {
  .help-page #documentation-pane .help-start-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .help-page #documentation-content { display: block; }
  .help-sidebar { position: static; margin-bottom: 1.25rem; }
  .help-sidebar #documentation-results { max-height: 30dvh; }
}
@media (max-width: 360px) {
  .help-page #documentation-back { margin-inline-start: 0; }
}
@media print {
  .help-header nav, .documentation-toolbar, .help-sidebar, .help-example-actions,
  .help-skip, .help-reading footer { display: none !important; }
  .help-page, .help-page[data-theme="dark"] { --accent: #235f53; background: white; color: black; }
  .help-page #documentation-content { display: block; }
  .help-reading #documentation-article pre { background: #f2f2f2; color: black; break-inside: avoid; }
}
