.help-catalog {
  width: min(1160px, calc(100% - 56px));
  margin-inline: auto;
  min-height: 56vh;
  padding-block: 48px 72px;
}

.help-catalog h1 {
  margin: 0 0 20px;
  font-size: clamp(31px, 5vw, 46px);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -.035em;
}

.help-catalog h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.help-catalog section { margin-top: 34px; }

.help-search {
  display: flex;
  max-width: 720px;
  gap: 8px;
  margin-block: 24px;
}

.help-search input {
  min-width: 0;
  flex: 1;
  min-height: 48px;
  border: 1px solid #d9d0c5;
  border-radius: 11px;
  padding-inline: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.help-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: linear-gradient(135deg, #ffa23a, #ff6a1a 45%, #f2570a);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.help-search button:hover { filter: brightness(1.05); }
.help-search :is(input, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.help-topic-list, .help-article-list { margin: 0; padding: 0; list-style: none; }
.help-topic-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.help-topic a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  height: 100%;
  min-height: 106px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}

.help-topic strong { font-size: 18px; font-weight: 600; }
.help-topic span:not(.help-arrow) { grid-column: 1; color: var(--muted); font-size: 14px; line-height: 1.5; }
.help-arrow { grid-column: 2; grid-row: 1; color: var(--brand-orange); }
.help-topic a:hover { border-color: var(--brand-orange); background: #fffaf6; }

.help-article-list { border-top: 1px solid var(--line); }
.help-article-link {
  display: grid;
  gap: 5px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.help-article-link strong { font-weight: 600; }
.help-article-link:hover strong { color: var(--accent); }
.help-article-link span, .help-search-status, .help-search-empty, .help-category-summary { color: var(--muted); line-height: 1.55; }
.help-article-link span, .help-search-status { font-size: 14px; }
.help-search-status:empty { display: none; }

.help-breadcrumbs { display: flex; gap: 9px; flex-wrap: wrap; font-size: 14px; margin-bottom: 26px; color: var(--muted); }
.help-breadcrumbs a { color: inherit; }
.help-category-layout { display: grid; grid-template-columns: minmax(170px, 224px) minmax(0, 1fr); gap: 36px; }
.help-category-layout h1 { margin-bottom: 8px; }
.help-category-summary { margin: 0; }
.help-category-nav { display: grid; gap: 4px; align-content: start; }
.help-category-nav a { padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.help-category-nav a:hover { background: #faf8f5; }
.help-category-nav a[aria-current="page"] { background: var(--accent-tint); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-border); font-weight: 600; }
.help-catalog [hidden] { display: none; }

@media (max-width: 810px) {
  .help-catalog { width: calc(100% - 36px); padding-block: 32px 48px; }
  .help-topic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-category-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .help-category-nav { display: flex; flex-wrap: wrap; }
  .help-category-nav a { padding: 7px 9px; font-size: 14px; }
}

@media (max-width: 470px) {
  .help-topic-list { grid-template-columns: minmax(0, 1fr); }
  .help-topic a { min-height: 0; }
}
