/* Serro site: one stylesheet, no web fonts, no scripts. Mobile first. */
:root {
  color-scheme: light;
  --bg: #EEF2FB;
  --card: #FFFFFF;
  --navy: #1F37A6;
  --navy-deep: #16297F;
  --gold: #F5A812;
  --gold-soft: #FFF6E0;
  --ink: #0B1638;
  --ink-soft: #4A5578;
  --line: #DCE3F3;
  --tint: #F5F7FD;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 22, 56, .05), 0 12px 32px -12px rgba(31, 55, 166, .18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1200px 420px at 50% -160px, #DCE5FB 0%, rgba(238, 242, 251, 0) 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 16px/1.65 var(--font);
  overflow-wrap: anywhere;
}

a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 10;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 10px;
}
.skip:focus { left: 16px; }

/* ---------- header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 19px; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--gold); font-weight: 800; font-size: 18px;
  box-shadow: inset 0 -2px 0 rgba(245, 168, 18, .55);
}
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--tint); }
.lang a, .lang span {
  display: inline-block; min-width: 42px; padding: 4px 10px; border-radius: 999px;
  text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-decoration: none;
}
.lang a { color: var(--ink-soft); }
.lang a:hover { color: var(--navy); background: #fff; }
.lang [aria-current] { background: var(--navy); color: #fff; }

/* ---------- main */
main { padding-top: 20px; padding-bottom: 32px; }

.doc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px 28px;
}

.eyebrow {
  margin: 0 0 6px; color: var(--navy); font-size: 12px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
h1 { margin: 0 0 14px; font-size: 28px; font-weight: 800; }
h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; border-radius: 4px; background: var(--gold); }
h2 {
  margin: 34px 0 10px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 21px; font-weight: 750; scroll-margin-top: 76px;
}
h3 { margin: 24px 0 8px; font-size: 17px; font-weight: 700; scroll-margin-top: 76px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin: 4px 0; }
li::marker { color: var(--navy); }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
code {
  padding: 1px 6px; border-radius: 6px; background: var(--tint); border: 1px solid var(--line);
  font: .88em/1.4 ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
blockquote { margin: 0 0 14px; padding: 10px 14px; border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: 0 12px 12px 0; }

.intro { color: var(--ink-soft); }
.intro p:first-of-type { margin-top: 4px; }

/* contents */
.toc {
  margin: 20px 0 6px; padding: 14px 16px; border-radius: 14px;
  background: var(--tint); border: 1px solid var(--line); border-left: 4px solid var(--gold);
}
.toc-h { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.toc ol { margin: 0; padding-left: 0; list-style: none; }   /* the h2 titles carry their own numbers */
.toc li { margin: 3px 0; font-size: 15px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* tables: cards on phones, a real table from 680 px */
.table { margin: 8px 0 18px; }
.table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table thead { display: none; }
.table tr {
  display: block; margin: 0 0 10px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.table td { display: block; padding: 4px 0; border: 0; }
.table td::before {
  content: attr(data-label); display: block; margin-bottom: 1px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--navy);
}
.table td:first-child { font-weight: 600; }

/* placeholders in the preview build */
mark.todo {
  padding: 0 5px; border-radius: 5px; border: 1px dashed var(--gold);
  background: var(--gold-soft); color: #7A4F00; font-weight: 700;
}

/* ---------- landing */
.hero {
  position: relative; overflow: hidden;
  padding: 28px 20px 26px; border-radius: 22px;
  background: linear-gradient(150deg, #FFFFFF 0%, #F4F7FF 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 168, 18, .28) 0%, rgba(245, 168, 18, 0) 70%);
}
.hero h1 { font-size: 34px; }
.lead { font-size: 18px; color: var(--ink); }
.muted { color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid var(--navy);
  background: var(--navy); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 16px -8px rgba(31, 55, 166, .7);
}
.btn:hover { background: var(--navy-deep); color: #fff; text-decoration: none; }
.btn.ghost { background: #fff; color: var(--navy); box-shadow: none; }
.btn.ghost:hover { background: var(--tint); color: var(--navy-deep); }

.cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 16px 0; }
.card {
  display: block; padding: 18px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
}
a.card:hover { border-color: var(--navy); color: var(--ink); text-decoration: none; }
.card h2 { margin: 0 0 6px; padding: 0; border: 0; font-size: 18px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card .go { display: inline-block; margin-top: 10px; color: var(--navy); font-weight: 700; font-size: 15px; }

.note {
  margin: 16px 0; padding: 16px 18px; border-radius: 16px;
  background: var(--gold-soft); border: 1px solid #F6DFA6; border-left: 5px solid var(--gold);
}
.note h2 { margin: 0 0 6px; padding: 0; border: 0; font-size: 17px; }
.note p { margin: 0 0 8px; font-size: 15px; }
.note p:last-child { margin-bottom: 0; }

/* ---------- footer */
.foot { padding: 8px 0 36px; color: var(--ink-soft); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--navy); text-decoration: underline; }
.foot p { margin: 0; }

/* ---------- wider screens */
@media (min-width: 680px) {
  .wrap { padding: 0 24px; }
  main { padding-top: 32px; }
  .doc { padding: 40px 48px 44px; }
  h1 { font-size: 34px; }
  h2 { font-size: 23px; }
  .hero { padding: 44px 44px 40px; }
  .hero h1 { font-size: 46px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .toc ol { columns: 2; column-gap: 32px; }
  .toc li { break-inside: avoid; }

  .table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
  .table table { min-width: 100%; }
  .table thead { display: table-header-group; }
  .table tr { display: table-row; margin: 0; padding: 0; border: 0; border-radius: 0; }
  .table th, .table td { display: table-cell; padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
  .table th { background: var(--tint); font-size: 13px; font-weight: 800; letter-spacing: .03em; color: var(--ink); }
  .table tr:last-child td { border-bottom: 0; }
  .table td::before { content: none; }
}

@media print {
  body { background: #fff; }
  .top, .foot, .skip, .toc { display: none; }
  .doc { border: 0; box-shadow: none; padding: 0; }
  a { color: inherit; }
}
