#methods .help-header {
  margin: 0 0 28px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
}

#methods .help-header h1 {
  font-size: clamp(28px, 3vw, 40px);
}

#methods .help-header p {
  margin-top: 8px;
}

#methods .help-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 205px;
  gap: clamp(24px, 4vw, 55px);
  align-items: start;
}

#methods .help-toc {
  display: block;
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 24px;
  min-width: 0;
  height: auto;
  max-height: calc(100vh - 48px);
  margin: 0;
  overflow: auto;
  white-space: normal;
  border-left: 1px solid var(--line);
  padding: 4px 0 4px 11px;
}

#methods .help-toc h2 {
  margin: 0 0 8px 10px;
  font-size: 13px;
}

#methods .help-toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 5px;
  color: var(--text);
  line-height: 1.4;
  text-decoration: none;
}

#methods .help-toc a:hover,
#methods .help-toc a[aria-current="location"] {
  color: #215d71;
  background: #e9f2f7;
}

#methods .help-body {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  color: var(--text);
}

#methods .help-chapter {
  padding-bottom: 28px;
}

#methods .help-chapter + .help-chapter {
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

#methods [data-help-topic] {
  margin: 0 0 12px;
  scroll-margin-top: 20px;
  font-size: clamp(21px, 2.3vw, 26px);
}

#methods .help-steps,
#methods .help-references {
  padding-left: 22px;
}

#methods .help-steps li + li,
#methods .help-references li + li {
  margin-top: 6px;
}

#methods .help-feature {
  margin-top: 19px;
}

#methods .help-feature + .help-feature {
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

#methods .help-body h3 {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

#methods .help-body dl {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 8px 14px;
  margin: 10px 0 0;
}

#methods .help-body dt {
  font-weight: 600;
  color: var(--ink);
}

#methods .help-body dd {
  margin: 0;
}

#methods .help-example {
  padding: 10px 13px;
  border-left: 3px solid #70a7b2;
  background: #eff6f8;
}

#methods .help-disclosure {
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

#methods .help-disclosure summary {
  cursor: pointer;
  font-weight: 600;
}

#methods .help-disclosure[open] summary {
  margin-bottom: 10px;
}

#help-data-status > .panel {
  padding: 10px 14px;
  margin: 15px 0 0;
}

@media (max-width: 1050px) {
  #methods .help-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  #methods .help-toc {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column: 1;
    gap: 2px 10px;
    position: static;
    max-height: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
  }

  #methods .help-toc h2 {
    grid-column: 1 / -1;
  }

  #methods .help-body {
    grid-row: 2;
  }
}

@media (max-width: 620px) {
  #methods {
    padding-top: 50px;
  }

  #methods [data-help-topic] {
    scroll-margin-top: 80px;
  }

  #methods .help-body dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  #methods .help-body dt:not(:first-child) {
    margin-top: 7px;
  }
}
