:root {
  --help-bg: #f6f2ea;
  --help-surface: #efe9de;
  --help-border: rgba(53, 42, 28, 0.12);
  --help-text: #1e2430;
  --help-muted: rgba(30, 36, 48, 0.64);
  --help-accent: #2f5d7c;
  --help-accent-soft: rgba(47, 93, 124, 0.12);
  --help-shadow: 0 22px 48px rgba(47, 35, 18, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(180deg, #fbf8f2 0%, var(--help-bg) 100%);
  color: var(--help-text);
  font-family: "Segoe UI Variable", "Segoe UI", "Noto Sans", sans-serif;
  letter-spacing: -0.01em;
}

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

.help-shell {
  width: min(1280px, calc(100% - 72px));
  margin: 0 auto;
}

.help-header {
  border-bottom: 1px solid var(--help-border);
}

.help-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 256px;
  align-items: center;
  gap: 56px;
  padding: 12px 0 10px;
}

.help-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #111827;
}

.help-brand__logo {
  height: 1.6em;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.help-header__contact {
  justify-self: start;
  color: rgba(30, 36, 48, 0.84);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1;
  transition: color 180ms ease;
}

.help-header__contact:hover {
  color: #111827;
}

.help-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 256px;
  grid-template-areas: "article sidebar";
  gap: 56px;
  padding: 30px 0 64px;
  align-items: start;
}

.help-article {
  grid-area: article;
  min-width: 0;
  max-width: 760px;
}

.help-eyebrow {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-title {
  margin: 0;
  font-size: clamp(2.05rem, 4.2vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 720;
}

.help-updated {
  margin: 14px 0 0;
  color: var(--help-muted);
  font-size: 0.92rem;
}

.help-callout {
  margin: 24px 0 36px;
  padding: 18px 20px;
  border: 1px solid var(--help-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: var(--help-shadow);
}

.help-callout p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.58;
}

.help-callout__link {
  color: #2f5f8a;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 180ms ease;
}

.help-callout__link:hover {
  color: #234866;
}

.help-section {
  scroll-margin-top: 28px;
  padding: 0 0 26px;
}

.help-section+.help-section {
  border-top: 1px solid rgba(53, 42, 28, 0.08);
  padding-top: 26px;
}

.help-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.5vw, 1.82rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.help-section p,
.help-list {
  margin: 0;
  color: rgba(30, 36, 48, 0.86);
  font-size: 1rem;
  line-height: 1.68;
}

.help-section p+p {
  margin-top: 12px;
}

.help-section strong {
  color: #111827;
}

.help-list {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.help-section--contact {
  padding-bottom: 8px;
}

.help-contact {
  margin-top: 24px;
  max-width: 560px;
}

.help-contact__form {
  display: grid;
  gap: 18px;
  padding: 2px 0;
}

.help-contact__field {
  display: grid;
  gap: 8px;
}

.help-contact__label {
  color: rgba(30, 36, 48, 0.88);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.help-contact__input,
.help-contact__textarea {
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid rgba(30, 36, 48, 0.46);
  background: transparent;
  color: #111827;
  font: inherit;
  line-height: 1.45;
  padding: 0 0 12px;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.help-contact__textarea {
  min-height: 112px;
  resize: vertical;
}

.help-contact__input::placeholder,
.help-contact__textarea::placeholder {
  color: rgba(30, 36, 48, 0.42);
}

.help-contact__input:focus,
.help-contact__textarea:focus {
  outline: none;
  border-bottom-color: var(--help-accent);
  transform: translateY(-1px);
}

.help-contact__button {
  justify-self: start;
  min-width: 172px;
  margin-top: 6px;
  padding: 14px 24px;
  border: 1px solid #111827;
  border-radius: 999px;
  background: #111827;
  color: #faf6ef;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.12);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.help-contact__button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.16);
}

.help-contact__button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.help-contact__status {
  min-height: 22px;
  color: rgba(30, 36, 48, 0.72);
  font-size: 0.92rem;
  line-height: 1.5;
}

.help-contact__status[data-tone="success"] {
  color: #146c43;
}

.help-contact__status[data-tone="error"] {
  color: #b42318;
}

.help-sidebar {
  grid-area: sidebar;
  min-width: 0;
  max-width: 248px;
  position: sticky;
  top: 84px;
  align-self: start;
}

.help-sidebar__inner {
  overflow: hidden;
  padding: 34px 0 0;
}

.help-toc {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding-right: 14px;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: rgba(45, 45, 45, 0.28) transparent;
}

.help-toc::-webkit-scrollbar {
  width: 10px;
}

.help-toc::-webkit-scrollbar-track {
  background: transparent;
}

.help-toc::-webkit-scrollbar-thumb {
  background: rgba(45, 45, 45, 0.28);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.help-toc__link {
  display: block;
  padding: 0 0 0 12px;
  border-left: 2px solid transparent;
  color: rgba(30, 36, 48, 0.72);
  font-size: 0.93rem;
  line-height: 1.52;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.help-toc__link:hover {
  color: #111827;
}

.help-toc__link.is-active {
  color: #111827;
  font-weight: 700;
  border-left-color: rgba(30, 36, 48, 0.82);
}

@media (max-width: 1080px) {
  .help-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "sidebar"
      "article";
    gap: 28px;
  }

  .help-header__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .help-header__contact {
    justify-self: start;
  }

  .help-article {
    max-width: 100%;
  }

  .help-sidebar__inner {
    overflow: hidden;
    padding-top: 0;
  }

  .help-toc {
    max-height: none;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 10px;
    scrollbar-gutter: auto;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .help-sidebar {
    position: static;
    max-width: none;
  }

  .help-toc__link {
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid var(--help-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .help-toc__link.is-active {
    border-color: rgba(30, 36, 48, 0.7);
    background: rgba(255, 255, 255, 0.72);
  }
}

@media (max-width: 720px) {
  .help-shell {
    width: min(100% - 28px, 1280px);
  }

  .help-header__inner {
    padding: 18px 0 14px;
  }

  .help-layout {
    padding: 24px 0 44px;
  }

  .help-callout {
    margin-bottom: 30px;
    padding: 16px 16px 18px;
    border-radius: 16px;
  }

  .help-contact__button {
    width: 100%;
  }

}
