:root {
  --bg: #ffffff;
  --surface: #f2f7f9;
  --border: #dde7ea;
  --text: #102730;
  --muted: #5c7680;
  --teal: #076284;
  --teal-soft: rgba(7, 98, 132, 0.08);
  --red: #c84342;
  --red-soft: rgba(200, 67, 66, 0.08);
  --max-width: 780px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 96px;
}

/* ---------- Top brand bar ---------- */

.brand-bar {
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal) 65%, var(--red) 100%);
}

/* ---------- Header ---------- */

header {
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

.meta {
  color: var(--muted);
  font-size: 14.5px;
}

.meta strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Table of contents ---------- */

nav.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 52px;
}

nav.toc h2 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 14px;
}

nav.toc ol {
  list-style: none;
  counter-reset: toc;
  columns: 2;
  column-gap: 32px;
}

nav.toc li {
  counter-increment: toc;
  margin-bottom: 7px;
  break-inside: avoid;
  font-size: 14.5px;
}

nav.toc li::before {
  content: counter(toc) ".";
  color: var(--teal);
  font-weight: 700;
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}

nav.toc a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

nav.toc a:hover {
  color: var(--teal);
}

/* ---------- Sections ---------- */

section {
  margin-bottom: 44px;
  scroll-margin-top: 24px;
}

h2 {
  font-size: 21px;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-top: 8px;
}

h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--teal);
  margin: 28px 0 10px;
}

p {
  margin-bottom: 15px;
  color: #33484f;
}

ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
  color: #33484f;
}

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

strong {
  color: var(--text);
  font-weight: 700;
}

a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(7, 98, 132, 0.35);
  transition: border-color 0.15s ease, color 0.15s ease;
}

a:hover {
  border-bottom-color: var(--teal);
}

/* ---------- Callout (attention / warning) ---------- */

.callout {
  background: var(--red-soft);
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 22px 0;
}

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

.callout .label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 6px;
}

/* ---------- Tables ---------- */

.table-scroll {
  overflow-x: auto;
  margin: 18px 0 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 480px;
}

th {
  background: var(--surface);
  text-align: left;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--teal);
  white-space: nowrap;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: #3a4f56;
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- Contact block ---------- */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  padding: 24px 26px;
  margin-top: 8px;
}

.contact-card .name {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-card p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 15px;
}

.contact-card a {
  color: var(--teal);
}

/* ---------- Footer ---------- */

footer {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .wrap {
    padding: 0 18px 64px;
  }
  header {
    padding: 44px 0 30px;
    margin-bottom: 36px;
  }
  nav.toc ol {
    columns: 1;
  }
  nav.toc {
    padding: 18px 20px;
    margin-bottom: 40px;
  }
}

/* ---------- Print ---------- */

@media print {
  .brand-bar {
    display: none;
  }
  nav.toc {
    display: none;
  }
  section {
    break-inside: avoid;
  }
  a {
    border-bottom: none;
  }
}
