.help-page {
  --help-surface: #111a2e;
  --help-surface-soft: #16223a;
  --help-border: #2a3b59;
  --help-text: #e8eef8;
  --help-muted: #a8b5c9;
  --help-accent: #5eead4;
  --help-accent-dark: #0f766e;
  box-sizing: border-box;
  max-width: 1080px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  color: var(--help-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.help-page *,
.help-page *::before,
.help-page *::after {
  box-sizing: border-box;
}

.help-page a {
  color: var(--help-accent);
}

.help-page a:focus-visible,
.help-page button:focus-visible,
.help-page input:focus-visible,
.help-page summary:focus-visible,
.help-wayfinder-card:focus-visible {
  outline: 3px solid var(--help-accent);
  outline-offset: 3px;
}

.help-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0 2rem;
}

.help-eyebrow {
  margin: 0 0 .35rem;
  color: var(--help-accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.help-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.08;
}

.help-lead {
  max-width: 680px;
  margin: .75rem 0 0;
  color: var(--help-muted);
  font-size: 1.05rem;
}

.help-language {
  display: inline-flex;
  flex: 0 0 auto;
  gap: .25rem;
  padding: .25rem;
  border: 1px solid var(--help-border);
  border-radius: 999px;
  background: var(--help-surface);
}

.help-language a {
  min-width: 2.75rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  color: var(--help-muted);
  font-size: .85rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.help-language a[aria-current="page"] {
  background: var(--help-accent);
  color: #062a27;
}

.help-section,
.help-controls,
.help-footer-grid > article {
  margin-top: 1.25rem;
  padding: clamp(1.1rem, 4vw, 1.75rem);
  border: 1px solid var(--help-border);
  border-radius: 18px;
  background: var(--help-surface);
}

.help-section h2,
.help-footer-grid h2 {
  margin: 0 0 .75rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.help-section-intro {
  margin: -.35rem 0 1.2rem;
  color: var(--help-muted);
}

.help-entry-grid,
.help-wayfinder-grid,
.help-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.help-entry-card {
  display: flex;
  min-height: 145px;
  flex-direction: column;
  justify-content: space-between;
  gap: .65rem;
  padding: 1rem;
  border: 1px solid var(--help-border);
  border-radius: 14px;
  background: var(--help-surface-soft);
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease;
}

.help-entry-card:hover {
  border-color: var(--help-accent);
  transform: translateY(-2px);
}

.help-entry-card strong {
  color: var(--help-text);
  font-size: 1.05rem;
}

.help-entry-card span {
  color: var(--help-muted);
  font-size: .92rem;
}

.help-controls > label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 700;
}

.help-controls input[type="search"] {
  width: 100%;
  min-height: 48px;
  padding: .75rem .9rem;
  border: 1px solid var(--help-border);
  border-radius: 12px;
  background: #0b1426;
  color: var(--help-text);
  font: inherit;
}

.help-controls input::placeholder {
  color: #8291a8;
}

.help-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.help-filter-grid fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.help-filter-grid legend {
  margin-bottom: .4rem;
  color: var(--help-muted);
  font-size: .85rem;
  font-weight: 700;
}

.help-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.help-filter-buttons button {
  min-height: 38px;
  padding: .45rem .75rem;
  border: 1px solid var(--help-border);
  border-radius: 999px;
  background: transparent;
  color: var(--help-text);
  cursor: pointer;
  font: inherit;
  font-size: .86rem;
}

.help-filter-buttons button[aria-pressed="true"] {
  border-color: var(--help-accent);
  background: #123a3a;
  color: #bffcf2;
}

.help-process > p {
  color: var(--help-muted);
}

.help-process-stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .55rem;
  margin: 1.25rem 0;
  padding: 0;
  counter-reset: process;
  list-style: none;
}

.help-process-stages li {
  position: relative;
  padding: .85rem;
  border: 1px solid var(--help-border);
  border-radius: 12px;
  background: var(--help-surface-soft);
  font-size: .86rem;
}

.help-process-stages li::before {
  display: block;
  margin-bottom: .35rem;
  color: var(--help-accent);
  content: counter(process);
  counter-increment: process;
  font-weight: 800;
}

.help-notes {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--help-muted);
}

.help-article-list {
  display: grid;
  gap: .7rem;
}

.help-article,
.help-glossary {
  border: 1px solid var(--help-border);
  border-radius: 14px;
  background: #0c1628;
  scroll-margin-top: 1rem;
}

.help-article[open],
.help-glossary[open],
.help-article.help-targeted,
.help-wayfinder-card.help-targeted {
  border-color: var(--help-accent);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, .18);
}

.help-article summary,
.help-glossary summary {
  padding: 1rem 1.1rem;
  cursor: pointer;
}

.help-article-heading,
.help-article-summary {
  display: block;
}

.help-article-heading {
  padding-right: 1.5rem;
  color: var(--help-text);
  font-size: 1.03rem;
  font-weight: 750;
}

.help-article-summary {
  margin-top: .25rem;
  color: var(--help-muted);
  font-size: .91rem;
}

.help-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .65rem;
}

.help-badges > span {
  padding: .18rem .5rem;
  border: 1px solid var(--help-border);
  border-radius: 999px;
  color: #c7d4e6;
  font-size: .72rem;
}

.help-article-body {
  padding: .2rem 1.15rem 1.25rem;
  border-top: 1px solid var(--help-border);
}

.help-article-body section {
  margin-top: 1.1rem;
}

.help-article-body h3 {
  margin: 0 0 .35rem;
  color: var(--help-accent);
  font-size: .92rem;
}

.help-article-body p,
.help-article-body ul,
.help-article-body ol {
  margin-top: .35rem;
  margin-bottom: 0;
}

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

.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.help-actions a,
.help-primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .45rem .75rem;
  border-radius: 9px;
  background: var(--help-accent-dark);
  color: #ecfffc;
  font-weight: 700;
  text-decoration: none;
}

.help-no-results {
  padding: 1rem;
  border: 1px dashed var(--help-border);
  border-radius: 12px;
  color: var(--help-muted);
}

.help-wayfinder-card {
  padding: 1rem;
  border: 1px solid var(--help-border);
  border-radius: 12px;
  background: var(--help-surface-soft);
  scroll-margin-top: 1rem;
}

.help-wayfinder-card h3,
.help-wayfinder-card p {
  margin-top: 0;
}

.help-wayfinder-card p {
  color: var(--help-muted);
}

.help-glossary dl {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
}

.help-glossary dl > div {
  padding: .75rem 0;
  border-top: 1px solid var(--help-border);
}

.help-glossary dt {
  color: var(--help-accent);
  font-weight: 750;
}

.help-glossary dd {
  margin: .2rem 0 0;
  color: var(--help-muted);
}

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

.help-footer-grid > article {
  margin-top: 1.25rem;
}

.help-footer-grid p {
  color: var(--help-muted);
}

.help-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--help-border);
  font-size: .88rem;
}

@media (max-width: 820px) {
  .help-process-stages {
    grid-template-columns: 1fr;
  }

  .help-entry-grid,
  .help-wayfinder-grid {
    grid-template-columns: 1fr;
  }

  .help-entry-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .help-page {
    padding: 1rem .75rem 3rem;
  }

  .help-hero {
    flex-direction: column-reverse;
  }

  .help-filter-grid,
  .help-footer-grid {
    grid-template-columns: 1fr;
  }

  .help-section,
  .help-controls,
  .help-footer-grid > article {
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .help-entry-card {
    transition: none;
  }
}
