/* Paleta del manual de marca (AMP, v1; Sprint D-1c). Contraste WCAG medido:
   verde texto #3F6B3B sobre crema = 6.06, sobre --accent-soft = 5.70; texto
   secundario #5F665C sobre crema = 5.78. Oscuro: fondo #1B2A44 (el fondo de las
   versiones oscuras de AMP), enlaces en verde brote #CFE6A6 = 10.62. */
:root {
  color-scheme: light dark;
  --bg: #FDFCF8;
  --fg: #1F2A1E;
  --muted: #5F665C;
  --rule: #E2E6DA;
  --accent: #3F6B3B;
  --accent-soft: #F2F7E8;
  --accent-rule: #8AC06B;
  --table-head: #F1F3EC;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B2A44;
    --fg: #FBF8EF;
    --muted: #B6C2D3;
    --rule: #2E4166;
    --accent: #CFE6A6;
    --accent-soft: #24365A;
    --accent-rule: #9BD17C;
    --table-head: #22324F;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  /* Pila segura: sin fuentes remotas (Google Fonts revelaria la IP del lector).
     Nunito Sans / Quicksand solo si el sistema ya las tiene. */
  font: 16px/1.65 "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, header.site nav {
  font-family: "Quicksand", "Nunito Sans", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 46rem; margin: 0 auto; padding: 2rem 1.25rem 5rem; }
header.site {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
}
header.site a.brand { display: inline-block; line-height: 0; }
header.site a.brand img { display: block; width: 13.75rem; max-width: 100%; height: auto; }
header.site nav { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 1rem; }
header.site nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
header.site nav a:hover, header.site nav a[aria-current="page"] {
  color: var(--accent);
}
h1 {
  font-size: 1.65rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  color: var(--accent);
}
h2 {
  font-size: 1.15rem;
  margin: 2.75rem 0 0.75rem;
  padding-top: 0.25rem;
}
h3 { font-size: 1rem; margin: 1.75rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }
a { color: var(--accent); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1.1rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent-rule);
  border-radius: 0 6px 6px 0;
}
blockquote > :last-child { margin-bottom: 0; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--table-head);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
/* Wide tables scroll inside their own box; the page itself never scrolls
   sideways, which is what makes these readable on a phone. */
.table-scroll { overflow-x: auto; margin: 0 0 1.25rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td {
  border: 1px solid var(--rule);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
th { background: var(--table-head); font-weight: 600; }
footer.site {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
}
