.script-help-content { min-width: 0; }
.script-help-nav { padding: 12px; scrollbar-width: thin; scrollbar-gutter: stable; overscroll-behavior: contain; }
.script-help-nav h2 { margin: 4px 8px 16px; }
.script-help-nav-group + .script-help-nav-group { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--theme-line); }
.script-help-nav-group h3 { margin: 0 10px 6px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--theme-muted); }
.script-help-nav a { padding: 7px 10px; border-left: 3px solid transparent; border-radius: 5px; color: var(--theme-text); font-size: 13px; line-height: 1.35; text-decoration: none; }
.script-help-nav a:hover { background: var(--theme-surface-2); }
.script-help-nav a[aria-current] { border-left-color: var(--theme-accent); background: color-mix(in srgb, var(--theme-accent) 14%, var(--theme-surface)); color: var(--theme-accent); font-weight: 600; }
.script-help-nav a:focus-visible { outline: 2px solid var(--theme-accent); outline-offset: -2px; }
.script-help-content > section:focus { outline: none; }
@media (max-width: 760px) {
  .script-help-page { padding: 12px; }
  .script-help-nav { position: sticky; top: 8px; z-index: 2; max-height: 30vh; box-shadow: 0 4px 12px #0002; }
  .script-help-content section { scroll-margin-top: calc(30vh + 24px); }
}
.script-help-content > section, .script-function-group { min-width: 0; }
.script-function-group { margin-top: 12px; border: 1px solid var(--theme-line); border-radius: 6px; }
.script-function-group summary { padding: 12px; color: var(--theme-text); cursor: pointer; font-weight: 600; }
.script-function-group summary:hover { background: var(--theme-surface-2); }
.script-help-table, .script-function-table {
  max-width: 100%; overflow-x: auto; margin: 16px 0 20px;
  border: 1px solid var(--theme-line); border-radius: 7px;
  overscroll-behavior-x: contain;
}
.script-function-table { margin: 0; border: 0; border-radius: 0; }
.script-help-table:focus-visible { outline: 2px solid var(--theme-accent); outline-offset: 2px; }
.script-help-content table {
  display: table; width: 100%; min-width: 36rem; margin: 0;
  table-layout: auto; border-collapse: collapse; font-size: 14px; line-height: 1.6;
}
.script-help-content th, .script-help-content td {
  min-width: 8rem; padding: 12px 14px; vertical-align: top;
  white-space: normal; word-break: normal; overflow-wrap: normal;
  border-bottom: 1px solid var(--theme-line);
}
.script-help-content th {
  font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: normal;
  color: var(--theme-text); background: var(--theme-surface-2); text-align: left;
}
.script-help-content tbody tr:last-child td { border-bottom: 0; }
.script-help-content th + th, .script-help-content td + td { border-left: 1px solid var(--theme-line); }
.script-help-content .script-function-table table { min-width: 44rem; }
.script-help-content td code { overflow-wrap: break-word; }
.script-help-figure { margin: 24px 0 8px; min-width: 0; }
.script-help-figure > a {
  display: block; overflow: hidden; border: 1px solid var(--theme-line);
  border-radius: 8px; cursor: zoom-in;
}
.script-help-figure > a:focus-visible { outline: 3px solid var(--theme-accent); outline-offset: 4px; }
.script-help-figure img { display: block; width: 100%; height: auto; max-width: 100%; }
.script-help-figure figcaption { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--theme-muted); }
.script-help-figure-hint { display: block; margin-top: 4px; font-size: 12px; }
@media print {
  .script-help-figure { break-inside: avoid; }
  .script-help-figure-hint { display: none; }
  .script-help-content table, .script-help-content .script-function-table table { min-width: 0; }
  .script-help-table, .script-function-table { overflow: visible; }
}
