:root {
  --help-primary: #0f766e;
  --help-primary-dark: #0b5f59;
  --help-accent: #d97706;
  --help-ink: #13202f;
  --help-muted: #637487;
  --help-bg: #f4f8f9;
  --help-soft: #eef6f5;
  --help-line: #d9e6ec;
  --help-white: #fff;
  --help-dark: #07161b;
  --help-radius: 8px;
  --help-shadow: 0 18px 45px rgba(19, 32, 47, .10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--help-bg);
  color: var(--help-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  margin: 0;
}

a {
  color: inherit;
}

.help-shell {
  min-height: 100vh;
}

.help-topbar {
  align-items: center;
  background: rgba(7, 22, 27, .96);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 44px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.help-logo img {
  height: 38px;
  object-fit: contain;
  width: 158px;
}

.help-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.help-nav a,
.help-button {
  border-radius: var(--help-radius);
  color: #fff;
  font-size: .9rem;
  font-weight: 800;
  padding: 9px 12px;
  text-decoration: none;
}

.help-nav a {
  color: rgba(255, 255, 255, .82);
}

.help-button {
  background: var(--help-primary);
  border: 0;
  display: inline-flex;
}

.help-button.secondary {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
}

.help-container {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 20px;
}

.help-hero {
  background:
    linear-gradient(135deg, rgba(7, 22, 27, .92), rgba(15, 118, 110, .82)),
    url("/public/images/og-atomo-flux.png") center / cover no-repeat;
  color: #fff;
  padding: clamp(52px, 9vw, 92px) 0;
}

.help-hero-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
}

.help-kicker {
  color: #fbbf24;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.help-hero h1 {
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: .98;
  margin: 0;
}

.help-hero p {
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  margin: 18px 0 0;
  max-width: 720px;
}

.help-search-panel {
  background: rgba(255, 255, 255, .96);
  border-radius: var(--help-radius);
  box-shadow: var(--help-shadow);
  color: var(--help-ink);
  padding: 18px;
}

.help-search-box {
  display: grid;
  gap: 10px;
}

.help-search-box label {
  color: var(--help-ink);
  font-weight: 800;
}

.help-search-input {
  border: 1px solid var(--help-line);
  border-radius: var(--help-radius);
  color: var(--help-ink);
  font: inherit;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

.help-search-input:focus {
  border-color: var(--help-primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .14);
  outline: 0;
}

.help-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.help-result {
  border: 1px solid var(--help-line);
  border-radius: var(--help-radius);
  display: block;
  padding: 11px 12px;
  text-decoration: none;
}

.help-result strong {
  color: var(--help-primary-dark);
  display: block;
}

.help-result span {
  color: var(--help-muted);
  font-size: .9rem;
}

.help-section {
  padding: clamp(34px, 6vw, 64px) 0;
}

.help-section.alt {
  background: var(--help-white);
}

.help-section h2,
.article-main h1 {
  color: var(--help-ink);
  font-size: clamp(1.6rem, 4vw, 2.45rem);
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 10px;
}

.help-lead {
  color: var(--help-muted);
  font-size: 1.04rem;
  margin: 0 0 24px;
  max-width: 760px;
}

.category-grid,
.popular-grid,
.steps-grid,
.related-grid {
  display: grid;
  gap: 16px;
}

.category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.popular-grid,
.steps-grid,
.related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-card,
.topic-card,
.step-card,
.related-card {
  background: var(--help-white);
  border: 1px solid var(--help-line);
  border-radius: var(--help-radius);
  box-shadow: 0 8px 24px rgba(19, 32, 47, .06);
  padding: 18px;
  text-decoration: none;
}

.support-card {
  display: grid;
  gap: 10px;
  min-height: 180px;
}

.support-card i,
.article-icon {
  align-items: center;
  background: var(--help-soft);
  border-radius: var(--help-radius);
  color: var(--help-primary);
  display: inline-flex;
  font-size: 1.45rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.support-card h3,
.topic-card h3,
.step-card h3,
.related-card h3 {
  color: var(--help-ink);
  font-size: 1.05rem;
  margin: 0;
}

.support-card p,
.topic-card p,
.step-card p,
.related-card p {
  color: var(--help-muted);
  margin: 0;
}

.support-card:hover,
.topic-card:hover,
.related-card:hover {
  border-color: rgba(15, 118, 110, .42);
  transform: translateY(-1px);
}

.article-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 270px minmax(0, 1fr);
}

.article-side {
  position: sticky;
  top: 86px;
}

.article-card,
.article-main section,
.support-note {
  background: var(--help-white);
  border: 1px solid var(--help-line);
  border-radius: var(--help-radius);
  box-shadow: 0 8px 24px rgba(19, 32, 47, .05);
  padding: 18px;
}

.breadcrumb {
  color: var(--help-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .92rem;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--help-primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.article-toc {
  display: grid;
  gap: 8px;
}

.article-toc a {
  border-radius: var(--help-radius);
  color: var(--help-muted);
  font-weight: 800;
  padding: 8px 10px;
  text-decoration: none;
}

.article-toc a:hover {
  background: var(--help-soft);
  color: var(--help-primary-dark);
}

.article-main {
  display: grid;
  gap: 16px;
}

.article-main section {
  scroll-margin-top: 92px;
}

.article-main h2 {
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.article-main h3 {
  font-size: 1.05rem;
  margin: 14px 0 8px;
}

.article-main ul,
.article-main ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.2rem;
}

.article-main p {
  margin: 0 0 10px;
}

.article-filter-hidden {
  display: none;
}

.support-note {
  background: var(--help-soft);
  color: var(--help-ink);
}

.footer-cta {
  background: var(--help-dark);
  color: #fff;
  padding: 34px 0;
}

.footer-cta .help-container {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.footer-cta p,
.footer-cta h2 {
  margin: 0;
}

.footer-cta p {
  color: rgba(255, 255, 255, .72);
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .help-hero-grid,
  .article-layout,
  .category-grid,
  .popular-grid,
  .steps-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-side {
    position: static;
  }

  .article-toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .help-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .help-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .help-nav a,
  .help-button {
    font-size: .84rem;
    padding: 8px 10px;
  }

  .help-container {
    padding: 0 14px;
  }

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

  .support-card,
  .topic-card,
  .step-card,
  .related-card,
  .article-card,
  .article-main section {
    padding: 15px;
  }

  .article-toc {
    grid-template-columns: 1fr;
  }

  .footer-cta .help-container {
    align-items: flex-start;
    flex-direction: column;
  }
}
