* {
  box-sizing: border-box;
}

html {
  background: #f7f5ef;
  overflow-x: hidden;
}

.help-body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(247, 245, 239, 0.94) 42%, #f7f5ef 100%);
  color: #17211d;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.help-shell {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.help-shell a {
  color: #0f766e;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.help-top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 0 0 18px;
}

.help-top-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #475569;
  font-size: 0.94rem;
  text-decoration: none;
}

.help-top-link::before {
  content: "<";
  margin-right: 8px;
  color: #0f766e;
}

.help-top-link--secondary {
  color: #63736d;
}

.help-page-header {
  max-width: 760px;
  margin: 4px 0 28px;
}

.help-page-header--compact {
  margin-bottom: 20px;
}

.help-eyebrow {
  margin: 0 0 8px;
  color: #0f766e;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-page-header h1,
.help-article-header h1,
.help-card h1 {
  margin: 0;
  color: #101815;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.help-page-header p {
  max-width: 660px;
  margin: 14px 0 0;
  color: #52615c;
  font-size: 1.08rem;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  align-items: stretch;
}

.help-card {
  min-width: 0;
  border: 1px solid #ddd6c8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(23, 33, 29, 0.06);
}

.help-category-card,
.help-card--notice {
  padding: 22px;
}

.help-category-card h2,
.help-related h2 {
  margin: 0 0 12px;
  color: #17211d;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.help-category-card h2 a {
  color: inherit;
  text-decoration: none;
}

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

.help-list li + li {
  margin-top: 10px;
}

.help-card-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  width: 100%;
  color: #0f766e;
  overflow-wrap: anywhere;
}

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

.help-article-card {
  padding: 18px 20px;
}

.help-article {
  width: min(100%, 800px);
  margin: 0;
  padding: clamp(22px, 5vw, 40px);
  border: 1px solid #ddd6c8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 38px rgba(23, 33, 29, 0.07);
}

.help-article-header {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e7e0d3;
}

.help-meta {
  margin: 14px 0 0;
  color: #63736d;
  font-size: 0.95rem;
}

.help-article-body {
  color: #26342f;
  font-size: 1.04rem;
  overflow-wrap: anywhere;
}

.help-article-body h2,
.help-article-body h3 {
  margin: 34px 0 10px;
  color: #17211d;
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  line-height: 1.18;
  letter-spacing: 0;
}

.help-article-body h2 {
  font-size: 1.42rem;
}

.help-article-body h3 {
  font-size: 1.18rem;
}

.help-article-body p,
.help-article-body ul,
.help-article-body ol {
  margin: 0 0 16px;
}

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

.help-article-body li {
  margin: 8px 0;
  padding-left: 2px;
}

.help-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.help-article-body pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 16px;
  border-radius: 8px;
  background: #111c18;
  color: #f8fafc;
}

.help-article-body code {
  overflow-wrap: anywhere;
}

.help-related {
  width: min(100%, 800px);
  margin-top: 18px;
  padding: 22px;
}

.help-action-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 560px) {
  .help-shell {
    width: min(100% - 24px, 980px);
    padding: 20px 0 40px;
  }

  .help-page-header {
    margin-bottom: 22px;
  }

  .help-page-header h1,
  .help-article-header h1,
  .help-card h1 {
    font-size: 2rem;
  }

  .help-page-header p,
  .help-article-body {
    font-size: 1rem;
  }

  .help-category-card,
  .help-card--notice,
  .help-related {
    padding: 18px;
  }

  .help-article {
    padding: 20px 18px;
  }

  .help-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
}
