:root {
  --navy: #13233f;
  --navy-2: #203b64;
  --teal: #087f73;
  --teal-soft: #dff6f1;
  --orange: #b45309;
  --orange-soft: #fff3df;
  --paper: #f5f8fb;
  --card: #ffffff;
  --ink: #1c2a3d;
  --muted: #536176;
  --line: #ccd8e6;
  --code: #e7eef6;
  --shadow: 0 12px 32px rgba(19, 35, 63, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: #086c63; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; border-radius: 3px; }
.skip {
  position: absolute;
  left: -999px;
  top: .5rem;
  background: #fff;
  color: #111;
  padding: .6rem 1rem;
  z-index: 20;
}
.skip:focus { left: .5rem; }
header {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  padding: clamp(2.6rem, 8vw, 5.3rem) 1.25rem 3.2rem;
}
header > div, nav > div, main, footer > div { max-width: 1080px; margin-inline: auto; }
h1 { font-size: clamp(2.25rem, 7vw, 4.75rem); line-height: 1.03; margin: .15em 0 .3em; max-width: 850px; }
header .lead { max-width: 760px; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.tag { color: #8ff4e8; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; font-size: .8rem; }
.meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.3rem; }
.pill { border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: .28rem .72rem; font-size: .88rem; }
nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
nav > div { display: flex; gap: 1.1rem; overflow-x: auto; padding: .7rem 1.25rem; scrollbar-width: thin; }
nav a { white-space: nowrap; font-weight: 700; text-decoration: none; }
main { padding: 2.3rem 1.25rem 5rem; }
section { margin: 0 0 3.6rem; scroll-margin-top: 4.5rem; }
h2 { color: var(--navy); font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.18; margin: 0 0 .9rem; }
h3 { color: var(--navy); font-size: 1.18rem; margin: 1.5rem 0 .45rem; }
p, li { max-width: 82ch; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.callout { border-left: 6px solid var(--teal); margin: 1.2rem 0; }
.warning { background: var(--orange-soft); border-left-color: var(--orange); }
.decision { background: var(--teal-soft); border-left-color: var(--teal); }
.stop { background: var(--orange-soft); border-left-color: var(--orange); }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 1.4rem 3.25rem; }
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .05rem;
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 850;
}
.checklist { list-style: none; padding: 0; }
.checklist li { padding: .25rem 0 .25rem 1.7rem; position: relative; }
.checklist li::before { content: "□"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: .94rem; }
th, td { padding: .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: #e7eef6; color: var(--navy); }
tr:last-child td { border-bottom: 0; }
code { background: var(--code); padding: .12em .32em; border-radius: 4px; overflow-wrap: anywhere; }
pre { background: #10213a; color: #edf8ff; padding: 1rem; border-radius: 12px; overflow-x: auto; line-height: 1.5; }
pre code { background: transparent; padding: 0; overflow-wrap: normal; }
.small { color: var(--muted); font-size: .9rem; }
footer { background: var(--navy); color: #e5f2ff; padding: 2rem 1.25rem; }

@media (max-width: 820px) {
  .grid, .grid.two { grid-template-columns: 1fr; }
  nav > div { gap: .85rem; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  header { padding-inline: 1rem; }
  main { padding-inline: 1rem; }
  .card, .callout { border-radius: 12px; padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  nav, .skip { display: none; }
  body { background: #fff; color: #111; font-size: 11pt; }
  header { background: #fff; color: #111; border-bottom: 2px solid #111; padding: 1rem 0; }
  .tag { color: #333; }
  main { padding: 1rem 0; }
  .card, .callout { box-shadow: none; break-inside: avoid; }
  a { color: #111; }
}
