/* Education catalog page, shared by the English (/education/) and Spanish
   (/es/educacion/) editions so the two never drift. Same palette as the rest
   of the site; links use --accent-text, which holds 4.5:1 on --bg. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #1e1e27;
  --surface: #12121a;
  --border: #2a2a38;
  --text: #e4e4ef;
  --muted-strong: #b4b4cc;
  --accent: #3b82f6;
  --accent-text: #6ea6fa;
  --focus: #93c5fd;
}
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--text); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--surface); color: var(--text); padding: 0.5rem 0.75rem; }

main { max-width: 960px; margin: 0 auto; padding: 7.5rem 1rem 3rem; }
.lang-switch { font-size: 0.9375rem; margin-bottom: 1.25rem; }
h1 { font-size: 2.125rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 0.875rem; }
.lede { font-size: 1.0625rem; color: var(--muted-strong); max-width: 68ch; }
.lede + .lede { margin-top: 0.75rem; }

.facts { margin-top: 1.75rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1rem 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.375rem 1.25rem; font-size: 0.9375rem; }
.facts dt { color: var(--muted-strong); }
.facts dd { color: var(--text); }

/* The table of contents is a nav landmark; undo the fixed site header styling nav.css gives every nav. */
nav.toc { position: static; z-index: auto; backdrop-filter: none; -webkit-backdrop-filter: none; background: none; border: 0; margin-top: 1.75rem; }
.toc h2 { font-size: 1rem; font-weight: 600; margin-bottom: 0.375rem; }
.toc ol { padding-left: 1.25rem; columns: 2; column-gap: 2rem; font-size: 0.9375rem; }
.toc li { margin-bottom: 0.25rem; break-inside: avoid; }

section { margin-top: 3rem; scroll-margin-top: 6rem; }
section h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
section h3 { font-size: 1.0625rem; font-weight: 600; margin: 1.5rem 0 0.375rem; }
section p, section li { color: var(--muted-strong); max-width: 72ch; }
section p + p { margin-top: 0.75rem; }
section ul { padding-left: 1.25rem; margin-top: 0.5rem; }
section li { margin-bottom: 0.375rem; }
section li strong, section p strong { color: var(--text); font-weight: 600; }

table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.9375rem; }
caption { text-align: left; font-weight: 600; color: var(--text); padding-bottom: 0.5rem; }
th, td { text-align: left; vertical-align: top; padding: 0.625rem 0.75rem; border: 1px solid var(--border); }
thead th { background: var(--surface); color: var(--text); font-weight: 600; }
tbody th { color: var(--text); font-weight: 600; }
td { color: var(--muted-strong); }

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 2rem; }
.steps li::before { content: counter(step) "."; position: absolute; left: 0; color: var(--text); font-weight: 600; }

footer { border-top: 1px solid var(--border); margin-top: 3rem; }
.footer-inner { max-width: 960px; margin: 0 auto; padding: 1.5rem 1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 1rem; font-size: 0.875rem; color: var(--muted-strong); }
.footer-inner a { color: var(--muted-strong); }

@media (max-width: 640px) {
  main { padding-top: 9.5rem; }
  h1 { font-size: 1.625rem; }
  .facts { grid-template-columns: 1fr; gap: 0.125rem; }
  .facts dd { margin-bottom: 0.5rem; }
  .toc ol { columns: 1; }
  /* The certifications table stacks into one card per row on a phone, so the
     page never scrolls sideways and no panel scrolls inside the page. */
  table, thead, tbody, tr, th, td, caption { display: block; }
  thead { position: absolute; left: -9999px; }
  tbody tr { border: 1px solid var(--border); margin-bottom: 0.75rem; }
  tbody th, td { border: 0; padding: 0.375rem 0.75rem; }
  td::before { content: attr(data-label); display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Site header links keep the header look used on every other page. */
nav .nav-links a, nav a.logo { text-decoration: none; }
