:root {
  --bg: #f4f8f9;
  --surface: #ffffff;
  --ink: #16283b;
  --ink-soft: #3f5468;
  --muted: #6b8095;
  --line: #e2eaf0;
  --teal: #0f9d8f;
  --teal-deep: #087f74;
  --teal-soft: #e4f6f2;
  --radius: 20px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--ink);
  background-color: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 85% -100px, #dff4f1 0%, transparent 60%),
    radial-gradient(700px 420px at -10% 0%, #e8f1ff 0%, transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
}

.shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, #12b3a2, #087f74);
  box-shadow: 0 8px 16px -8px rgba(8, 127, 116, 0.9);
  flex: 0 0 auto;
}

.brand-text small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-top: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-link:hover {
  background: #f0f5f7;
  color: var(--ink);
}

.nav-link.active {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.header-cta {
  margin-left: auto;
  text-decoration: none;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Content */

.doc {
  padding: 44px 0 72px;
}

.doc-shell {
  max-width: 800px;
}

.kicker {
  display: inline-block;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--teal);
}

.doc h1 {
  margin: 10px 0 14px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.doc-lede {
  margin: 0 0 30px;
  max-width: 700px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.doc-body {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.78;
}

.doc-body h2 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.doc-body h3 {
  margin: 24px 0 8px;
  color: var(--ink);
  font-size: 16.5px;
  letter-spacing: -0.01em;
}

.doc-body p {
  margin: 0 0 15px;
}

.doc-body ul,
.doc-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.doc-body li::marker {
  color: var(--teal);
}

.doc-body strong {
  color: var(--ink);
}

.doc-body a {
  color: var(--teal);
  text-underline-offset: 2px;
}

.doc-body a:hover {
  color: var(--teal-deep);
}

.doc-body .meta {
  font-size: 12.5px;
  color: var(--muted);
}

.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.doc-body th,
.doc-body td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc-body th {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f7fafb;
}

.doc-body tbody tr:last-child td {
  border-bottom: 0;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 24px 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.contact-email {
  display: inline-block;
  margin: 4px 0 8px;
  font-size: 19px;
  font-weight: 800;
  color: var(--teal);
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

/* Hub cards */

.card-grid {
  list-style: none;
  padding: 0;
  margin: 22px 0 26px;
  display: grid;
  gap: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(16, 40, 60, 0.05);
}

.card a {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.card a:hover {
  color: var(--teal-deep);
  text-decoration: underline;
}

.card p {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* Related links */

.related {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.related h2 {
  margin-top: 0;
  font-size: 17px;
}

.related ul {
  padding-left: 20px;
  font-size: 14.5px;
}

.cta-link {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  text-decoration: none;
}

.cta-link:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

.footer-brand strong {
  font-size: 13px;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 11.5px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-actions {
  font-size: 11.5px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .header-inner {
    gap: 14px;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(1160px, calc(100% - 32px));
  }

  .header-inner {
    height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
  }

  .nav {
    gap: 2px;
    flex-basis: 100%;
  }

  .nav-link {
    padding: 6px 9px;
    font-size: 12.5px;
  }

  .doc {
    padding: 30px 0 56px;
  }

  .doc-body {
    font-size: 15px;
  }

  .doc-body table {
    font-size: 13px;
  }
}
