:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f4f6f8;
  --sidebar: #2f3944;
  --sidebar-line: #44515e;
  --sidebar-text: #d7e0e7;
  --sidebar-muted: #aebdcc;
  --line: #d8dee4;
  --text: #2b2b2b;
  --muted: #5a6673;
  --heading: #1f2933;
  --accent: #2980b9;
  --accent-strong: #1f6ea3;
  --warm: #f0b44c;
  --shadow: none;
  --radius: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

code,
pre {
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
}

code {
  background: #f3f5f7;
  border: 1px solid #e1e4e8;
  border-radius: 0.2rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.94em;
}

pre {
  overflow-x: auto;
  background: #f6f8fa;
  color: #24292f;
  padding: 1rem 1.1rem;
  border-radius: 0.3rem;
  border: 1px solid #d8dee4;
}

pre code {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
}

.page-shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-header {
  margin: 0;
  min-height: 58px;
  padding: 0.8rem 1.2rem;
  background: #f8f9fb;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.3rem;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.15rem;
  color: var(--heading);
}

.brand-text small,
.header-links a,
.site-footer {
  color: var(--muted);
}

.header-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-links a {
  text-decoration: none;
  font-weight: 600;
}

.content-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: calc(100vh - 58px);
  padding: 1rem 1rem 1.5rem;
  background: var(--sidebar);
  border-right: 1px solid var(--sidebar-line);
}

.nav-group + .nav-group {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sidebar-line);
}

.nav-group h2 {
  margin: 0 0 0.6rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
}

.nav-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-group a {
  display: block;
  padding: 0.32rem 0.45rem;
  border-radius: 0.2rem;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.96rem;
}

.nav-group a.active,
.nav-group a:hover {
  background: #e9eef2;
  color: #1f2933;
}

.main-content {
  min-width: 0;
  background: #ffffff;
  padding: 1.5rem 2rem 2rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-card {
  max-width: 980px;
  padding: 0;
  background: var(--surface);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

h1,
h2,
h3 {
  color: var(--heading);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.15;
  font-weight: 600;
}

h1 {
  margin-top: 0;
  font-size: 2.1rem;
}

h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line);
}

h3 {
  margin-top: 1.3rem;
  font-size: 1.1rem;
}

p,
li,
td,
th {
  color: var(--text);
}

ul,
ol {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.35rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
}

.page-nav-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

blockquote {
  margin: 1.2rem 0;
  padding: 0.9rem 1rem;
  border-left: 4px solid #d0d7de;
  background: #f6f8fa;
  border-radius: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  border: 1px solid var(--line);
  border-radius: 0;
  display: block;
  overflow-x: auto;
}

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

th {
  background: var(--surface-alt);
  font-weight: 600;
}

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

.hero-grid,
.card-grid {
  display: grid;
  gap: 1rem;
}

.hero-grid {
  grid-template-columns: 1.2fr 0.9fr;
  align-items: center;
  margin: 1.8rem 0 1.2rem;
}

.callout,
.mini-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  padding: 1rem 1.05rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 1.3rem 0;
}

.mini-card h3,
.callout h3 {
  margin-top: 0;
}

.site-footer {
  margin-top: 0;
  padding: 0.8rem 2rem 1.1rem 340px;
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
  background: #fafbfc;
}

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

  .sidebar {
    position: static;
    min-height: auto;
    border-right: 0;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-content {
    padding: 1.25rem;
  }

  .site-footer {
    padding: 1rem 1.25rem;
  }
}
