:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --panel-soft: #f0f5f9;
  --text: #16212d;
  --muted: #5d6c7b;
  --border: #dce5ee;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --code-bg: #101820;
  --code-text: #e6edf3;
  --shadow: 0 18px 45px rgba(24, 38, 52, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 18px;
  background: #111827;
  color: #e5edf5;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: #9fb0c1;
  font-size: 0.8rem;
  margin-top: 2px;
}

.nav-section {
  margin: 0 0 22px;
}

.nav-section h2 {
  margin: 0 0 8px;
  color: #8fb3c8;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-link {
  display: block;
  padding: 8px 10px;
  border-radius: 7px;
  color: #d8e2eb;
  text-decoration: none;
  font-size: 0.94rem;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.content {
  min-width: 0;
  padding: 44px clamp(18px, 5vw, 72px);
}

.page,
.home {
  max-width: 1060px;
  margin: 0 auto;
}

.page-header,
.hero {
  margin-bottom: 28px;
  padding: 34px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero {
  background: linear-gradient(135deg, #ffffff 0%, #eef8f6 100%);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h2 {
  margin-top: 42px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 1.55rem;
}

h3 {
  margin-top: 28px;
  font-size: 1.16rem;
}

.lead {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
}

.doc-body {
  padding: 34px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.doc-body > :first-child {
  margin-top: 0;
}

code {
  padding: 0.12rem 0.28rem;
  border-radius: 5px;
  background: #e9eef4;
  color: #183046;
  font-size: 0.92em;
}

pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--code-text);
}

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

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

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

th {
  background: var(--panel-soft);
}

blockquote {
  margin: 22px 0;
  padding: 12px 18px;
  border-left: 4px solid var(--accent);
  background: var(--panel-soft);
  color: var(--muted);
}

@media (max-width: 900px) {
  .shell {
    display: block;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .content {
    padding: 18px;
  }

  .page-header,
  .hero,
  .doc-body {
    padding: 22px;
  }
}
