:root {
  --help-shell-max-width: 1380px;
  --help-sidebar-width: 18rem;
  --help-toc-width: 15rem;
  --help-surface: color-mix(in srgb, var(--rask-white) 88%, var(--neutral-100));
  --help-surface-strong: color-mix(in srgb, var(--rask-white) 94%, var(--neutral-50));
  --help-border: color-mix(in srgb, var(--neutral-300) 55%, transparent);
  --help-shadow: 0 22px 54px color-mix(in srgb, var(--rask-primary) 8%, transparent);
  --help-shadow-soft: 0 14px 34px color-mix(in srgb, var(--rask-primary) 6%, transparent);
}

html {
  scroll-behavior: smooth;
}

body.help-page {
  margin: 0;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--info-50) 72%, transparent), transparent 38%),
    linear-gradient(180deg, color-mix(in srgb, var(--neutral-100) 56%, var(--rask-bg)) 0%, var(--rask-bg) 100%);
  color: var(--rask-text);
}

.help-main {
  padding-top: calc(var(--rask-global-header-height, 5.75rem) + 1.75rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.help-shell {
  --rask-public-container-width: var(--help-shell-max-width);
  display: grid;
  grid-template-columns: minmax(0, var(--help-sidebar-width)) minmax(0, 1fr) minmax(0, var(--help-toc-width));
  gap: 1.5rem;
  align-items: start;
}

.help-shell__sidebar,
.help-shell__toc {
  position: sticky;
  top: calc(var(--rask-global-header-height, 5.75rem) + 1.25rem);
}

.help-shell__content {
  min-width: 0;
}

.help-shell__pagination {
  grid-column: 2 / 4;
}

.help-sidebar__card,
.help-toc__card,
.help-article,
.help-card,
.help-pagination__link {
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: 1.4rem;
  box-shadow: var(--help-shadow-soft);
}

.help-sidebar__card,
.help-toc__card {
  padding: 1.1rem;
}

.help-sidebar__eyebrow,
.help-toc__eyebrow,
.help-kicker,
.help-footer__eyebrow,
.help-home-hero__eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--info-700);
}

.help-sidebar__group + .help-sidebar__group {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, var(--neutral-300) 50%, transparent);
}

.help-sidebar__heading {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--rask-heading);
}

.help-sidebar__list,
.help-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-sidebar__link,
.help-toc__link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.95rem;
  text-decoration: none;
  color: var(--rask-muted);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.help-sidebar__link:hover,
.help-toc__link:hover,
.help-sidebar__link:focus-visible,
.help-toc__link:focus-visible {
  background: color-mix(in srgb, var(--info-50) 82%, var(--rask-white));
  color: var(--rask-primary);
  transform: translateX(2px);
}

.help-sidebar__link.is-active {
  background: color-mix(in srgb, var(--rask-blue) 12%, var(--rask-white));
  color: var(--rask-primary);
  font-weight: 700;
}

.help-toc__link.is-subheading {
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.help-article {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.help-article > :first-child {
  margin-top: 0;
}

.help-article > :last-child {
  margin-bottom: 0;
}

.help-article h1,
.help-article h2,
.help-article h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--rask-heading);
}

.help-article h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 0.96;
}

.help-article h2 {
  margin: 2.4rem 0 0.9rem;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  line-height: 1.04;
}

.help-article h3 {
  margin: 1.75rem 0 0.65rem;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.1;
}

.help-article p,
.help-article li,
.help-article blockquote,
.help-article td,
.help-article th {
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--rask-text);
}

.help-article p,
.help-article ul,
.help-article ol,
.help-article table,
.help-article blockquote {
  margin: 0 0 1.1rem;
}

.help-article ul,
.help-article ol {
  padding-left: 1.3rem;
}

.help-article li + li {
  margin-top: 0.45rem;
}

.help-article a {
  color: var(--rask-primary);
  font-weight: 600;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.help-article a:hover,
.help-article a:focus-visible {
  color: var(--rask-blue);
}

.help-article strong {
  color: var(--rask-heading);
}

.help-article hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--neutral-300) 56%, transparent);
}

.help-article blockquote {
  padding: 1rem 1.1rem;
  border-left: 4px solid color-mix(in srgb, var(--rask-blue) 32%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--info-50) 54%, var(--rask-white));
}

.help-article code {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.92em;
  padding: 0.15rem 0.4rem;
  border-radius: 0.45rem;
  background: color-mix(in srgb, var(--neutral-200) 65%, var(--rask-white));
}

.help-article pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--neutral-900) 96%, var(--rask-primary));
  color: var(--rask-white);
}

.help-article pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.help-article table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--help-border);
}

.help-article th,
.help-article td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--neutral-300) 44%, transparent);
}

.help-article th {
  background: color-mix(in srgb, var(--neutral-100) 75%, var(--rask-white));
  color: var(--rask-heading);
}

.help-article img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
}

.help-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 2rem;
  background: linear-gradient(140deg, color-mix(in srgb, var(--rask-white) 92%, var(--neutral-100)) 0%, color-mix(in srgb, var(--info-50) 42%, var(--rask-white)) 100%);
  border: 1px solid color-mix(in srgb, var(--info-200) 42%, transparent);
  border-radius: 1.75rem;
  box-shadow: var(--help-shadow);
}

.help-home-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: var(--rask-heading);
}

.help-home-hero__copy {
  margin: 1rem 0 0;
  font-size: clamp(1.08rem, 2vw, 1.26rem);
  line-height: 1.68;
  color: var(--rask-muted);
}

.help-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.help-home-hero__visual {
  display: flex;
  justify-content: center;
}

.help-home-hero__visual img {
  width: min(100%, 26rem);
  height: auto;
}

.help-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.help-card-grid.is-staggered .help-card:nth-child(3n + 2) {
  transform: translateY(0.35rem);
}

.help-card {
  padding: 1.2rem;
  height: 100%;
}

.help-card__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.06;
  color: var(--rask-heading);
}

.help-card__copy > :first-child {
  margin-top: 0;
}

.help-card__copy > :last-child {
  margin-bottom: 0;
}

.help-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.help-pagination__link,
.help-pagination__spacer {
  min-height: 7.5rem;
}

.help-pagination__link {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  padding: 1rem 1.15rem;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.help-pagination__link:hover,
.help-pagination__link:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--rask-blue) 18%, transparent);
  box-shadow: var(--help-shadow);
}

.help-pagination__link--next {
  text-align: right;
}

.help-pagination__eyebrow {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--rask-muted);
}

.help-pagination__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.08;
  color: var(--rask-primary);
}

.help-footer {
  margin-top: 0;
}

.help-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 1.5rem;
  align-items: center;
}

.help-footer__title {
  margin: 0;
}

.help-footer__copy {
  max-width: 42rem;
  margin-top: 0.9rem;
}

.help-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-end;
}

@media (max-width: 80rem) {
  .help-shell {
    grid-template-columns: minmax(0, 16.5rem) minmax(0, 1fr);
  }

  .help-shell__toc {
    display: none;
  }

  .help-shell__pagination {
    grid-column: 2 / 3;
  }
}

@media (max-width: 62rem) {
  .help-shell {
    grid-template-columns: 1fr;
  }

  .help-shell__content {
    order: 1;
  }

  .help-shell__sidebar,
  .help-shell__toc {
    position: static;
  }

  .help-shell__pagination {
    grid-column: auto;
    order: 2;
  }

  .help-shell__toc {
    order: 4;
  }

  .help-shell__sidebar {
    order: 3;
  }

  .help-home-hero,
  .help-footer__inner {
    grid-template-columns: 1fr;
  }

  .help-footer__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 42rem) {
  .help-main {
    padding-top: calc(var(--rask-global-header-height, 5.75rem) + 1rem);
  }

  .help-article {
    padding: 1.15rem;
    border-radius: 1.1rem;
  }

  .help-home-hero {
    padding: 1.15rem;
    border-radius: 1.25rem;
  }

  .help-card-grid.is-staggered .help-card:nth-child(3n + 2) {
    transform: none;
  }

  .help-pagination {
    grid-template-columns: 1fr;
  }

  .help-pagination__spacer {
    display: none;
  }
}
