:root {
  --termo-blue: #004b87;
  --termo-blue-dark: #07315a;
  --termo-red: #b03a2e;
  --termo-text: #243649;
  --termo-muted: #5d6d7e;
  --termo-line: #dce5ef;
  --termo-soft: #f3f7fd;
  --termo-paper: #fff;
  --termo-bg: #fcfcfa;
  --termo-focus: #ffbf47;
  --termo-shadow: 0 12px 32px rgba(15, 45, 75, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--termo-bg);
  color: var(--termo-text);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.65;
}

a { color: var(--termo-blue); font-weight: 700; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible,
summary:focus-visible {
  border-radius: 5px;
  outline: 3px solid var(--termo-focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--termo-blue-dark);
  color: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.help-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.help-nav,
.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.help-nav { margin-bottom: 16px; }

.help-nav a,
.help-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid #bdd0e7;
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
}

.help-hero,
.help-card,
.help-faq,
.help-references {
  border: 1px solid var(--termo-line);
  border-radius: 14px;
  background: var(--termo-paper);
  box-shadow: var(--termo-shadow);
}

.help-hero { padding: clamp(24px, 5vw, 54px); }
.help-kicker,
.help-eyebrow {
  margin: 0 0 8px;
  color: var(--termo-red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2 { color: var(--termo-blue); line-height: 1.15; }
h1 { max-width: 820px; margin: 0; font-size: clamp(2rem, 6vw, 3.7rem); }
h2 { margin: 0 0 14px; font-size: clamp(1.4rem, 3vw, 2rem); }

.help-lead {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--termo-muted);
  font-family: "Lora", Georgia, serif;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.help-version {
  margin: 20px 0 0;
  color: var(--termo-muted);
  font-size: 0.88rem;
}

.help-toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--termo-line);
  border-radius: 12px;
  background: var(--termo-soft);
}

.help-toc a { padding: 5px; }
.help-grid { display: grid; gap: 16px; }
.help-card,
.help-faq,
.help-references { padding: clamp(20px, 4vw, 32px); }
.help-card p { max-width: 850px; margin: 0 0 12px; }
.help-card p:last-of-type { margin-bottom: 0; }

.help-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.help-items li {
  padding: 16px;
  border: 1px solid var(--termo-line);
  border-radius: 10px;
  background: var(--termo-soft);
}
.help-items strong { display: block; margin-bottom: 4px; color: var(--termo-blue-dark); }
.help-actions { margin-top: 18px; }

.help-faq,
.help-references { margin-top: 18px; }
.help-faq details { border-top: 1px solid var(--termo-line); }
.help-faq details:last-child { border-bottom: 1px solid var(--termo-line); }
.help-faq summary {
  cursor: pointer;
  padding: 16px 4px;
  color: var(--termo-blue-dark);
  font-weight: 800;
}
.help-faq details p { margin: 0; padding: 0 4px 18px; }

.help-references ol { padding-left: 22px; }
.help-references li { margin-bottom: 10px; }
.help-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--termo-red);
  background: #fff8f5;
}
.help-footer { margin-top: 24px; color: var(--termo-muted); font-size: 0.9rem; }

@media (max-width: 560px) {
  .help-page { width: min(100% - 20px, 1120px); padding-top: 12px; }
  .help-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .help-nav a { justify-content: center; text-align: center; }
  .help-hero { padding: 22px 18px; }
  .help-card,
  .help-faq,
  .help-references { padding: 20px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
