/* Relay content pages — one restrained shared stylesheet.
   Neutral tinted surfaces, a single teal accent, a 4px spacing grid and the
   system font stack. No gradients, glows, emoji or decorative motion. These
   pages are reading material, so they are quieter than the landing page. */

:root {
  --bg: #f7f9fa;
  --surface: #eef2f3;
  --surface-strong: #e6ecee;
  --ink: #1f3038;
  --muted: #5d6b72;
  --line: #d7dfe2;
  --accent: #0d7480;
  --accent-ink: #ffffff;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --measure: 44rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--s-6);
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 10;
  padding: var(--s-2) var(--s-4);
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--s-1);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--s-3);
}

/* Header ------------------------------------------------------------------ */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-6);
  padding-block: var(--s-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--ink);
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Article ----------------------------------------------------------------- */
main {
  display: block;
  padding-block: var(--s-10) var(--s-16);
}

.eyebrow {
  margin: 0 0 var(--s-3);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  margin: 0 0 var(--s-5);
  font-size: clamp(30px, 6vw, 40px);
  font-weight: 650;
  letter-spacing: -0.02em;
}

h2 {
  margin: var(--s-12) 0 var(--s-4);
  font-size: clamp(22px, 4vw, 26px);
  font-weight: 620;
  letter-spacing: -0.01em;
}

h3 {
  margin: var(--s-8) 0 var(--s-3);
  font-size: 19px;
  font-weight: 620;
}

p {
  margin: 0 0 var(--s-5);
}

.lede {
  margin: 0 0 var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--s-1) var(--s-1) 0;
  font-size: 19px;
  line-height: 1.55;
}

.meta {
  margin: 0 0 var(--s-4);
  color: var(--muted);
  font-size: 14px;
}

.meta a {
  color: var(--muted);
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s-10) 0;
}

ul,
ol {
  margin: 0 0 var(--s-5);
  padding-left: var(--s-6);
}

li {
  margin-bottom: var(--s-2);
}

.steps li {
  padding-left: var(--s-2);
  margin-bottom: var(--s-3);
}

.steps li::marker {
  color: var(--accent);
  font-weight: 600;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: var(--s-1);
}

/* Tables ------------------------------------------------------------------ */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--s-1);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

caption {
  text-align: left;
  color: var(--muted);
  font-size: 14px;
  padding: var(--s-3);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: var(--s-3);
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 620;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody th {
  font-weight: 600;
}

/* Callouts, notes and actions --------------------------------------------- */
.note {
  margin: 0 0 var(--s-6);
  padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border-radius: var(--s-1);
  font-size: 15px;
}

.demo-note {
  margin: var(--s-3) 0 0;
  color: var(--muted);
  font-size: 13px;
}

.cta {
  display: inline-flex;
  align-items: center;
  margin: 0 var(--s-2) var(--s-3) 0;
  padding: var(--s-3) var(--s-5);
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--s-1);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.cta:hover {
  background: #0a606a;
  color: var(--accent-ink);
  text-decoration: none;
}

.cta--quiet {
  background: var(--surface-strong);
  color: var(--ink);
}

.cta--quiet:hover {
  background: var(--line);
  color: var(--ink);
}

/* Related links and footer ------------------------------------------------ */
.related {
  margin-top: var(--s-12);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}

.related h2 {
  margin-top: 0;
  font-size: 19px;
}

.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related li {
  margin-bottom: var(--s-2);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-6);
  padding-block: var(--s-6);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
}

/* Responsive: keep a comfortable measure down to 390px -------------------- */
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding-inline: var(--s-4);
  }

  main {
    padding-block: var(--s-8) var(--s-12);
  }

  .lede {
    padding: var(--s-4);
    font-size: 18px;
  }

  h2 {
    margin-top: var(--s-10);
  }

  .site-nav {
    gap: var(--s-2) var(--s-4);
  }
}
