/* Central de ajuda (/ajuda/): cores, fontes e base de todos os guias. Cada guia guarda só os estilos dos seus componentes. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --fg: #1f2937;
  --muted: #4b5563;
  --line: #e2e6ec;
  --accent: #2563eb;
  --accent-soft: #e8effd;
  --paid: #047857;
  --paid-soft: #e1f4ec;
  --open: #8a5a00;
  --open-soft: #fdf1d8;
  --late: #b42318;
  --late-soft: #fde8e6;
  --tip-line: #e8c46a;
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1420; --surface: #172030; --fg: #e5e9f0; --muted: #9aa5b8; --line: #283246;
    --accent: #7aa2ff; --accent-soft: #1c2a4a;
    --paid: #6fd39f; --paid-soft: #173326; --open: #f2c46b; --open-soft: #3a2d12;
    --late: #f08a82; --late-soft: #3b1c1a; --tip-line: #8a7230;
    color-scheme: dark;
  }
}
/* Nomes que alguns guias usam para as mesmas cores */
:root {
  --pending: var(--open); --pending-soft: var(--open-soft);
  --warn-fg: var(--open); --warn-bg: var(--open-soft); --tip-bg: var(--open-soft);
  --font-text: var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap {
  max-width: 780px; margin: 0 auto;
  padding: 32px max(16px, env(safe-area-inset-right, 0px)) 72px max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 48px;
}
header, section { display: flex; flex-direction: column; gap: 16px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(30px, 6vw, 42px); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 26px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; max-width: 66ch; }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.lead, .lede { font-size: 19px; color: var(--muted); }
footer { color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); padding-top: 20px; }

.help-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; max-width: 780px; margin: 0 auto; padding: 14px 16px 0; font-size: 15px; }
.help-bar a { color: var(--muted); text-decoration: none; font-weight: 600; }
.help-bar a:hover { color: var(--accent); }
.help-bar .hb-logo { display: flex; align-items: center; gap: 8px; color: var(--fg); font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.help-bar .hb-login { margin-left: auto; color: var(--accent); }
