:root {
  --primary: #032859;
  --primary-soft: #eef5ff;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #dbe3ee;
  --surface: #ffffff;
  --page: #f7f9fc;
  --accent: #0f766e;
}

* {
  box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 32px;
  font-size: 1rem;
  font-weight: 500;
}

.site-nav a {
  color: #1a1a1a;
}

.site-nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(3, 40, 89, 0.14);
}

.nav-cta:hover {
  color: white !important;
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-login {
  color: var(--primary) !important;
  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: 6px;
  font-weight: 700;
  background: var(--surface);
}

.nav-login:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.docs-hero {
  background: var(--primary);
  color: white;
}

.docs-hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #b7cff4;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: #e7eefb;
  font-size: 1.08rem;
  line-height: 1.7;
}

.docs-layout,
.docs-home {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.doc-card,
.article-card,
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.doc-card {
  padding: 22px;
  display: block;
  color: inherit;
}

.doc-card:hover {
  border-color: var(--primary);
  text-decoration: none;
}

.doc-card h2,
.article h2,
.article h3 {
  margin-top: 0;
}

.doc-card p,
.article p,
.article li {
  color: var(--muted);
  line-height: 1.65;
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

.toc {
  align-self: start;
  position: sticky;
  top: 82px;
  padding: 18px;
}

.toc h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.toc a.active {
  color: var(--primary);
  font-weight: 700;
}

.article-card {
  padding: 30px;
}

.article img {
  width: 100%;
  height: auto;
  margin: 18px 0 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.step-shot {
  margin: 16px 0 24px;
}

.step-shot img {
  margin: 10px 0 8px;
}

.step-shot figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.steps {
  padding-left: 1.3rem;
}

.note {
  border-left: 4px solid var(--accent);
  background: #ecfdf5;
  padding: 14px 16px;
  color: #134e4a;
  border-radius: 4px;
}

.site-footer {
  background: var(--primary);
  color: white;
  padding: 30px 20px;
  text-align: center;
}

.site-footer a {
  color: #d9e8ff;
}

@media (max-width: 780px) {
  .site-header__inner {
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    font-size: 0.92rem;
  }

  .nav-cta,
  .nav-login {
    padding: 8px 12px;
  }

  .docs-layout {
    display: block;
  }

  .toc {
    position: static;
    margin-bottom: 18px;
  }

  .article-card {
    padding: 22px;
  }
}
