html {
  color-scheme: light;
}

body {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 18px 48px;
  color: #1f2933;
  background: #f7f9fb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
}

#content {
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 24px;
}

.help-toc-panel #table-of-contents {
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 12px 14px;
  overflow-x: hidden;
}

.help-toc-panel h2 {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.help-toc-panel ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.help-toc-panel li {
  margin: 4px 0;
  line-height: 1.35;
}

.help-toc-panel li li {
  margin: 3px 0;
  padding-left: 10px;
}

.help-toc-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 7px 9px;
  color: #334e68;
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: keep-all;
}

.help-toc-panel a:hover,
.help-toc-panel a:focus {
  color: #155bb5;
  background: #eef4fb;
  text-decoration: none;
}

.help-toc-panel a.is-active {
  color: #0f3a68;
  background: #dbeafe;
  box-shadow: inset 3px 0 0 #155bb5;
  font-weight: 700;
}

.help-content #content {
  max-width: none;
}

h1,
h2,
h3 {
  color: #102a43;
  line-height: 1.25;
}

a {
  color: #155bb5;
}

.help-table-scroll {
  max-width: 100%;
  margin: 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  display: table;
  width: max-content;
  min-width: 100%;
  max-width: none;
  overflow-x: visible;
  border-collapse: collapse;
  margin: 16px 0;
  background: #fff;
  table-layout: auto;
}

.help-table-scroll table {
  margin: 0;
}

th,
td {
  border: 1px solid #d9e2ec;
  padding: 8px 10px;
  vertical-align: top;
  word-break: normal;
  overflow-wrap: break-word;
}

th {
  background: #eef4fb;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

code {
  border-radius: 4px;
  padding: 1px 4px;
}

code.org-code {
  background: #e8f4ff;
  border: 1px solid #bfdbfe;
  color: #0f3a68;
  font-weight: 500;
}

code.org-verbatim {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #374151;
  font-family: inherit;
  font-weight: 600;
}

pre {
  overflow-x: auto;
  background: #15202b;
  color: #edf2f7;
  border-radius: 8px;
  padding: 14px;
}

@media screen {
  th,
  td,
  th code,
  td code {
    white-space: nowrap;
  }
}


.help-code-block {
  position: relative;
  margin: 16px 0;
}

.help-code-block pre {
  margin: 0;
  padding-right: 70px;
}

.help-code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  min-width: 52px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 6px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.62);
  font: 700 12px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  opacity: 0;
  transition: opacity 140ms ease, background 140ms ease, border-color 140ms ease;
}

.help-code-block:hover .help-code-copy,
.help-code-block:focus-within .help-code-copy,
.help-code-copy:focus {
  opacity: 0.92;
}

.help-code-copy:hover,
.help-code-copy:focus {
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(226, 232, 240, 0.82);
}

.help-code-copy.is-copied {
  color: #dcfce7;
  border-color: rgba(134, 239, 172, 0.8);
}

.help-code-copy.is-failed {
  color: #fee2e2;
  border-color: rgba(252, 165, 165, 0.85);
}

@media (hover: none) {
  .help-code-copy {
    opacity: 0.58;
  }
}

@media print {
  html,
  body {
    background: #fff;
  }

  body {
    max-width: none;
    padding: 0;
    color: #111;
    font-size: 10.5pt;
    line-height: 1.55;
  }

  #content {
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  table {
    display: table;
    width: auto;
    min-width: 100%;
    max-width: 100%;
    overflow: visible;
    table-layout: auto;
    page-break-inside: auto;
    break-inside: auto;
    font-size: 8.5pt;
  }

  thead {
    display: table-header-group;
  }

  tr {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  th,
  td {
    padding: 3pt 4pt;
    word-break: normal;
    overflow-wrap: break-word;
  }

  td code,
  th code {
    overflow-wrap: anywhere;
  }

  pre {
    white-space: pre-wrap;
    overflow: visible;
  }

  .help-code-copy {
    display: none;
  }

  .wide-table,
  .pdf-landscape-table {
    font-size: 8pt;
  }
}

@page {
  size: A4 portrait;
  margin: 15mm;
}

@page haidox-wide-table {
  size: A4 landscape;
  margin: 12mm;
}

@media print {
  .pdf-landscape-table {
    page: haidox-wide-table;
  }
}

@media (max-width: 640px) {
  body {
    padding: 16px 10px 32px;
  }

  #content {
    padding: 16px;
  }

  .help-toc-panel #table-of-contents {
    padding: 10px 12px;
  }

  .help-toc-panel a {
    font-size: 0.9rem;
  }
}
