@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap");

:root {
  --help-bg: #f6f7f9;
  --help-surface: #ffffff;
  --help-soft: #fff5f5;
  --help-text: #07162d;
  --help-muted: #5d6b82;
  --help-line: #dfe5ee;
  --help-red: #e21d2b;
  --help-shadow: 0 18px 45px rgba(15, 23, 42, .07);
  --help-radius: 18px;
  --help-font: "Inter", "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  --help-display: "Sora", "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.help-page {
  margin: 0;
  min-height: 100vh;
  background: var(--help-bg);
  color: var(--help-text);
  font-family: var(--help-font);
}

.help-page [hidden] {
  display: none !important;
}

.help-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.help-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--help-line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.help-nav,
.help-nav nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.help-nav {
  min-height: 72px;
}

.help-brand img {
  display: block;
  width: 190px;
  height: auto;
}

.help-nav a,
.help-footer a {
  color: var(--help-text);
  font-weight: 700;
  text-decoration: none;
}

.help-nav-button,
.help-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--help-red);
  color: #fff !important;
  padding: 12px 16px;
  box-shadow: 0 12px 28px rgba(226, 29, 43, .18);
}

.help-hero {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--help-line);
  background: radial-gradient(circle at 20% 0%, rgba(226, 29, 43, .08), transparent 28%), #fff;
}

.help-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .8fr);
  align-items: end;
  gap: 36px;
}

.help-eyebrow {
  margin: 0 0 8px;
  color: var(--help-red);
  font: 800 .78rem/1 var(--help-display);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.help-hero h1,
.help-section-head h2,
.help-article-panel h1 {
  margin: 0;
  color: var(--help-text);
  font-family: var(--help-display);
  letter-spacing: 0;
}

.help-hero h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: .96;
}

.help-hero p,
.help-featured-card p,
.help-article-card p,
.help-sidebar-card p {
  color: var(--help-muted);
  line-height: 1.55;
}

.help-hero p {
  max-width: 630px;
  font-size: 1.08rem;
  line-height: 1.7;
}

.help-search,
.help-sidebar-card,
.help-content,
.help-article-panel {
  border: 1px solid var(--help-line);
  border-radius: var(--help-radius);
  background: var(--help-surface);
  box-shadow: var(--help-shadow);
}

.help-search {
  padding: 18px;
}

.help-search label,
.help-sidebar-card h2,
.help-featured-card strong,
.help-article-card strong {
  font-weight: 800;
}

.help-search label {
  display: block;
  margin-bottom: 8px;
}

.help-search div {
  display: flex;
  gap: 10px;
}

.help-search input,
.help-search button,
.help-back-button {
  min-height: 46px;
  border: 1px solid var(--help-line);
  border-radius: 12px;
  font: inherit;
}

.help-search input {
  width: 100%;
  padding: 0 14px;
}

.help-search button,
.help-back-button {
  background: #fff;
  color: var(--help-text);
  padding: 0 14px;
  font-family: var(--help-font);
  font-size: .95rem;
  font-weight: 650;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  cursor: pointer;
}

.help-main-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0 42px;
}

.help-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.help-sidebar-card {
  padding: 18px;
}

.help-sidebar-card.subtle {
  background: #fffafa;
}

.help-sidebar-card h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.help-sidebar-card p {
  margin: 0 0 14px;
}

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

.help-category-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--help-text);
  padding: 11px 12px;
  text-align: left;
  font: 700 .94rem/1.2 var(--help-font);
  cursor: pointer;
}

.help-category-list button:hover,
.help-category-list button.is-active {
  border-color: var(--help-line);
  border-left-color: var(--help-red);
  background: #fff;
}

.help-category-list span {
  color: var(--help-muted);
  font-size: .78rem;
}

.help-content {
  padding: 22px;
}

.help-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.help-section-head h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

#helpResultsCount {
  color: var(--help-muted);
  font-weight: 700;
}

.help-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.help-featured-card,
.help-article-card,
.help-empty {
  border: 1px solid var(--help-line);
  border-radius: 16px;
  background: #fff;
}

.help-featured-card {
  padding: 16px;
  border-left: 4px solid var(--help-red);
  text-align: left;
  cursor: pointer;
}

.help-featured-card p,
.help-article-card p {
  margin: 8px 0 0;
}

.help-article-list {
  display: grid;
  gap: 10px;
}

.help-article-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.help-article-card:hover {
  border-color: rgba(226, 29, 43, .35);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .06);
}

.help-article-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--help-soft);
  color: var(--help-red);
  font-weight: 900;
}

.help-article-category,
.help-article-panel .article-meta span,
.help-tip {
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--help-muted);
  padding: 7px 11px;
  font-weight: 800;
  font-size: .82rem;
}

.help-empty {
  padding: 24px;
  text-align: center;
}

.help-article-panel {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.help-back-button {
  margin-bottom: 18px;
}

.help-article-panel h1 {
  max-width: 820px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.help-article-panel .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 22px;
}

.help-article-panel p,
.help-article-panel ol {
  max-width: 880px;
  color: var(--help-muted);
  line-height: 1.65;
}

.help-article-panel ol {
  display: grid;
  gap: 12px;
  padding-left: 24px;
  color: var(--help-text);
}

.help-article-panel li::marker {
  color: var(--help-red);
  font-weight: 900;
}

.help-tip {
  display: block;
  max-width: 880px;
  margin: 18px 0;
  border-radius: 14px;
  background: #fff7ed;
  color: #7c2d12;
}

.help-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.help-related button {
  border: 1px solid var(--help-line);
  border-radius: 999px;
  background: #fff;
  padding: 9px 12px;
  font-weight: 800;
  cursor: pointer;
}

.help-footer {
  border-top: 1px solid var(--help-line);
  background: #fff;
}

.help-footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}

.help-footer img {
  width: 170px;
  height: auto;
}

.help-footer p {
  margin: 4px 0 0;
  color: var(--help-muted);
}

.help-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 900px) {
  .help-hero-grid,
  .help-main-grid,
  .help-featured-grid {
    grid-template-columns: 1fr;
  }

  .help-sidebar {
    order: 2;
  }

  .help-content {
    order: 1;
  }
}

@media (max-width: 640px) {
  .help-container {
    width: min(100% - 20px, 1180px);
  }

  .help-nav,
  .help-footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .help-nav nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .help-brand img {
    width: 170px;
  }

  .help-hero {
    padding-top: 34px;
  }

  .help-search div,
  .help-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .help-article-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .help-article-category {
    grid-column: 2;
    width: fit-content;
  }
}
