.help-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 4%, #e8e9ff 0, transparent 27rem),
    var(--canvas);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 9px 13px;
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.help-topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: #f8f9fcf2;
  padding: 12px max(22px, calc((100vw - 1440px) / 2));
  backdrop-filter: blur(14px);
}
.help-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.help-brand-divider { width: 1px; height: 26px; margin-inline: 4px; background: var(--line-strong); }
.help-brand-label { color: #5d6579; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.help-topbar-actions { display: flex; align-items: center; gap: 9px; }
.help-back-link { min-height: 40px; white-space: nowrap; }
.help-menu-button { display: none; }

.help-layout {
  width: min(1440px, 100%);
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  margin-inline: auto;
}
.help-sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
  height: calc(100vh - 76px);
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #f8f9fcba;
  padding: 24px 20px 48px;
  scrollbar-width: thin;
}
.help-search-wrap { display: grid; gap: 8px; margin-bottom: 26px; }
.help-search-wrap > label { color: #3e465a; font-size: .72rem; font-weight: 800; letter-spacing: .025em; }
.help-search-control { position: relative; display: flex; align-items: center; }
.help-search-control > span { position: absolute; left: 12px; color: #737b8f; font-size: 1.05rem; pointer-events: none; }
.help-search-control input { min-height: 42px; padding: 9px 42px 9px 35px; font-size: .82rem; }
.help-search-control kbd { position: absolute; right: 10px; min-width: 22px; border: 1px solid #d3d7e2; border-bottom-width: 2px; border-radius: 5px; background: #fafbfe; color: #7a8295; padding: 2px 5px; font-family: inherit; font-size: .65rem; font-weight: 750; text-align: center; }
.help-search-status { min-height: 15px; margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.35; }
.help-nav { display: grid; gap: 24px; }
.help-nav-group { display: grid; gap: 3px; }
.help-nav-group > p { margin: 0 0 5px; padding-inline: 10px; color: #9299aa; font-size: .64rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.help-nav a { border-radius: 8px; color: #596176; padding: 8px 10px; font-size: .8rem; font-weight: 620; text-decoration: none; transition: 140ms ease; }
.help-nav a:hover { background: #eff1f7; color: var(--ink); }
.help-nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 760; }
.help-sidebar-scrim { display: none; }

.help-content {
  min-width: 0;
  width: min(980px, calc(100% - 64px));
  margin: 0 auto;
  padding: 52px 0 72px;
}
.help-article {
  scroll-margin-top: 98px;
  display: grid;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding: 56px 18px 72px;
}
.help-article:first-child { padding-top: 0; }
.help-article[hidden] { display: none; }
.help-article-header { display: grid; gap: 10px; max-width: 780px; }
.help-article-header .eyebrow { margin: 0; }
.help-article h2 { margin: 0; color: #131a2d; font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.1; letter-spacing: -.045em; }
.help-article h3 { margin: 16px 0 -8px; color: #252d41; font-size: 1.12rem; letter-spacing: -.018em; }
.help-article p { margin: 0; color: #5f687d; font-size: .94rem; line-height: 1.72; }
.help-article-header > p:last-child { max-width: 760px; font-size: 1rem; }
.help-article ul,
.help-article ol:not(.help-steps) { display: grid; gap: 9px; margin: -2px 0 0; padding-left: 23px; color: #4e576c; font-size: .9rem; line-height: 1.62; }
.help-article li::marker { color: var(--accent); font-weight: 850; }
.help-article b,
.help-article strong { color: #30384c; }

.help-home { gap: 36px; }
.help-searching .help-home { padding-bottom: 32px; }
.help-searching .help-home .help-quick-grid,
.help-searching .help-home > .help-note { display: none; }
.help-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  border: 1px solid #d8dbf9;
  border-radius: 22px;
  background: linear-gradient(135deg, #f5f5ff 0%, #fff 58%, #eeeefe 100%);
  padding: clamp(30px, 7vw, 68px);
  box-shadow: 0 24px 70px #30375a0d;
}
.help-hero::after {
  content: "?";
  position: absolute;
  right: -5px;
  bottom: -77px;
  color: #4f46e50a;
  font-size: 18rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.help-hero .eyebrow { margin: 0; }
.help-hero h1 { position: relative; z-index: 1; max-width: 720px; margin: 0; color: #11182c; font-size: clamp(2.35rem, 6vw, 4.35rem); line-height: 1.02; letter-spacing: -.058em; }
.help-hero > p:not(.eyebrow) { position: relative; z-index: 1; max-width: 690px; font-size: 1.05rem; line-height: 1.7; }
.help-hero-search { position: relative; z-index: 1; max-width: 610px; display: flex; align-items: center; margin-top: 8px; }
.help-hero-search > span:not(.visually-hidden) { position: absolute; left: 17px; color: var(--accent); font-size: 1.35rem; pointer-events: none; }
.help-hero-search input { min-height: 54px; border-color: #cfd3e7; border-radius: 12px; padding: 13px 18px 13px 48px; box-shadow: 0 10px 28px #252b4d0d; font-size: .94rem; }
.help-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.help-quick-grid a { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 3px 13px; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); padding: 19px; text-decoration: none; transition: 160ms ease; }
.help-quick-grid a:hover { transform: translateY(-2px); border-color: #cfd1f8; box-shadow: 0 12px 26px #1820340d; }
.help-card-icon { grid-row: 1 / span 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 850; }
.help-quick-grid strong { font-size: .9rem; }
.help-quick-grid a > span:last-child { color: var(--muted); font-size: .76rem; line-height: 1.4; }

.help-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.help-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 17px 18px; }
.help-steps li > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--accent); color: #fff; font-size: .82rem; font-weight: 850; box-shadow: 0 6px 16px #4f46e528; }
.help-steps li > div { display: grid; gap: 4px; }
.help-steps li strong { font-size: .9rem; }
.help-steps li p { font-size: .84rem; line-height: 1.55; }
.help-steps-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.help-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 3px; }
.help-actions .button-link { min-height: 42px; }
.help-note,
.help-tip,
.help-warning { border-radius: 11px; padding: 15px 17px; color: #515a70; font-size: .84rem; line-height: 1.55; }
.help-note { border: 1px solid #d8daf8; background: #f3f3ff; }
.help-tip { border-left: 3px solid var(--accent); background: var(--accent-soft); }
.help-warning { border: 1px solid #f1d398; background: #fff9eb; }

.help-shot { margin: 6px 0 8px; }
.help-shot img { width: 100%; height: auto; display: block; border: 1px solid #d8dce7; border-radius: 15px; background: #f7f8fc; box-shadow: 0 18px 44px #18203417; }
.help-shot figcaption { margin-top: 11px; color: #7a8295; font-size: .76rem; line-height: 1.45; text-align: center; }

.help-reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.help-reference-grid > section { display: grid; align-content: start; gap: 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 17px; }
.help-reference-grid > section h3 { margin: 0; font-size: .95rem; }
.help-reference-grid > section p { font-size: .82rem; line-height: 1.55; }
.help-reference-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.help-reference-grid dl { margin: 0; }
.help-reference-grid dt { color: #3d4559; font-size: .78rem; font-weight: 800; }
.help-reference-grid dd { margin: 2px 0 9px; color: var(--muted); font-size: .76rem; line-height: 1.45; }

.help-definition-list { display: grid; grid-template-columns: minmax(130px, .32fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 12px; background: #fff; margin: 0; overflow: hidden; }
.help-definition-list dt,
.help-definition-list dd { border-bottom: 1px solid var(--line); padding: 13px 15px; }
.help-definition-list dt { color: #363e52; font-size: .82rem; font-weight: 800; }
.help-definition-list dd { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.help-definition-list > :nth-last-child(-n + 2) { border-bottom: 0; }

.help-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.help-plan-grid section { border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 19px; }
.help-plan-grid section:nth-child(2) { border-color: #cacdf7; box-shadow: inset 0 3px 0 var(--accent); }
.help-plan-grid span { display: inline-flex; border-radius: 999px; background: var(--accent-soft); color: var(--accent); padding: 5px 8px; font-size: .65rem; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.help-plan-grid h3 { margin: 13px 0 7px; font-size: .95rem; }
.help-plan-grid p { font-size: .8rem; line-height: 1.52; }

.help-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.help-table-wrap table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.help-table-wrap th,
.help-table-wrap td { border-bottom: 1px solid var(--line); padding: 13px 15px; text-align: left; }
.help-table-wrap thead th { background: #f5f6fb; color: #535b70; font-size: .72rem; letter-spacing: .025em; }
.help-table-wrap tbody th { color: #3b4357; font-weight: 700; }
.help-table-wrap td { color: #646d81; }
.help-table-wrap tr:last-child > * { border-bottom: 0; }

.help-faq { display: grid; gap: 9px; }
.help-faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.help-faq summary { position: relative; cursor: pointer; padding: 16px 48px 16px 17px; color: #30384c; font-size: .88rem; font-weight: 750; list-style: none; }
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary::after { content: "+"; position: absolute; top: 50%; right: 17px; transform: translateY(-50%); color: var(--accent); font-size: 1.2rem; font-weight: 500; }
.help-faq details[open] summary::after { content: "−"; }
.help-faq details[open] summary { background: #fafaff; }
.help-faq details > div { border-top: 1px solid var(--line); padding: 14px 17px 17px; }
.help-faq details p { font-size: .84rem; line-height: 1.62; }

.help-empty { min-height: 480px; display: grid; place-items: center; align-content: center; gap: 9px; text-align: center; }
.help-empty[hidden] { display: none; }
.help-empty > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--accent-soft); color: var(--accent); font-size: 1.7rem; }
.help-empty h2 { margin: 7px 0 0; font-size: 1.45rem; }
.help-empty p { max-width: 440px; margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.help-empty button { margin-top: 9px; }

.help-footer { display: flex; justify-content: space-between; gap: 18px; padding: 32px 18px 0; color: #7b8396; font-size: .76rem; }
.help-footer a { color: var(--accent); font-weight: 700; }

@media (max-width: 1050px) {
  .help-reference-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .help-topbar { min-height: 68px; padding-inline: 16px; }
  .help-menu-button { display: inline-flex; align-items: center; }
  .help-layout { display: block; min-height: calc(100vh - 68px); }
  .help-sidebar {
    position: fixed;
    z-index: 50;
    top: 68px;
    bottom: auto;
    left: 0;
    width: min(88vw, 310px);
    height: calc(100vh - 68px);
    min-height: 0;
    transform: translateX(-105%);
    border-right-color: var(--line-strong);
    background: #fafbfe;
    box-shadow: 14px 0 36px #18203424;
    transition: transform 180ms ease;
  }
  .help-nav-open .help-sidebar { transform: translateX(0); }
  .help-sidebar-scrim { position: fixed; z-index: 45; inset: 68px 0 0; width: 100%; height: auto; border: 0; border-radius: 0; background: #141a2b70; opacity: 0; pointer-events: none; }
  .help-nav-open .help-sidebar-scrim { display: block; opacity: 1; pointer-events: auto; }
  .help-content { width: min(100% - 32px, 820px); padding-top: 34px; }
  .help-article { scroll-margin-top: 82px; padding-inline: 6px; }
}

@media (max-width: 620px) {
  .help-brand-divider,
  .help-brand-label { display: none; }
  .help-back-link { padding-inline: 10px; font-size: .76rem; }
  .help-menu-button { min-height: 40px; padding-inline: 11px; font-size: .76rem; }
  .help-content { width: min(100% - 24px, 820px); padding-top: 24px; }
  .help-article { gap: 19px; padding: 42px 2px 54px; }
  .help-home { gap: 24px; }
  .help-hero { border-radius: 17px; padding: 27px 20px; }
  .help-hero h1 { font-size: clamp(2.15rem, 12vw, 3.25rem); }
  .help-hero > p:not(.eyebrow) { font-size: .94rem; }
  .help-hero-search input { min-height: 50px; font-size: .86rem; }
  .help-quick-grid,
  .help-reference-grid,
  .help-reference-grid-three,
  .help-plan-grid,
  .help-steps-compact { grid-template-columns: 1fr; }
  .help-definition-list { grid-template-columns: 1fr; }
  .help-definition-list dt { border-bottom: 0; padding-bottom: 3px; }
  .help-definition-list dd { padding-top: 4px; }
  .help-definition-list > :nth-last-child(2) { border-bottom: 0; }
  .help-actions,
  .help-actions .button-link { width: 100%; }
  .help-table-wrap th,
  .help-table-wrap td { padding: 11px 12px; white-space: nowrap; }
  .help-footer { padding-inline: 2px; }
}

@media print {
  .help-topbar,
  .help-sidebar,
  .help-sidebar-scrim,
  .help-actions,
  .help-hero-search,
  .help-footer { display: none !important; }
  .help-layout { display: block; }
  .help-content { width: 100%; padding: 0; }
  .help-article { break-inside: avoid; padding: 24px 0; }
  .help-shot img { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .help-sidebar,
  .help-quick-grid a { transition: none; }
}
