:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --text: #0f172a;
  --muted: #475569;
  --muted-soft: #64748b;
  --border: #dbe5ef;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --success: #15803d;
  --warning: #b45309;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  --container: 1120px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 229, 239, 0.86);
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-family: Manrope, Inter, sans-serif;
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.78rem 1.05rem;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.hero {
  padding: clamp(44px, 7vw, 82px) 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-family: Manrope, Inter, sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.75rem, 6vw, 5.1rem);
  line-height: 0.96;
}

h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.08;
}

h3 {
  margin-top: 1.8rem;
  font-size: 1.28rem;
  line-height: 1.18;
}

p,
li,
td,
th {
  font-size: 1.02rem;
  line-height: 1.72;
}

p {
  margin: 0;
}

.hero-copy {
  display: grid;
  gap: 1.1rem;
}

.hero-copy > p {
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-media {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-media-caption {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  color: var(--muted);
}

.hero-media-caption strong {
  color: var(--text);
}

.content-shell {
  padding: 28px 0 72px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.article-body {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.article-body > p,
.article-body li {
  color: var(--muted);
}

.article-body > p + p {
  margin-top: 1rem;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.toc {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.toc strong {
  font-family: Manrope, Inter, sans-serif;
}

.toc a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--accent-dark);
}

.callout,
.example-box,
.cta-band {
  margin-top: 1.35rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.callout strong,
.example-box strong,
.cta-band strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-family: Manrope, Inter, sans-serif;
}

.cta-band {
  display: grid;
  gap: 1rem;
  background: #0f172a;
  color: #ffffff;
}

.cta-band p,
.cta-band strong {
  color: #ffffff;
}

.cta-band p {
  max-width: 46rem;
}

.table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  padding: 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eff6ff;
  color: var(--text);
  font-size: 0.9rem;
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

.status-good {
  color: var(--success);
  font-weight: 800;
}

.status-warning {
  color: var(--warning);
  font-weight: 800;
}

.footer {
  padding: 24px 0 36px;
  color: var(--muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
}

@media (max-width: 860px) {
  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    order: -1;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 0.85rem 0;
  }

  h1 {
    max-width: 11ch;
  }
}
