:root {
  --bg: #ffffff;
  --sidebar: #f3f7f9;
  --ink: #10233f;
  --navy: #0d4753;
  --muted: #5d6a7d;
  --line: #d8dee8;
  --code-bg: #0d4753;
  --code-fg: #f8fafc;
  --teal: #1f7a91;
  --teal-dark: #0d4753;
  --teal-soft: #e5f4f9;
  --slate-soft: #eef2f7;
  --notice: #f7f3e8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.layout {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  padding: 26px 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 4px;
}
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}
.nav-section { margin: 18px 0; }
.nav-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
nav a {
  display: block;
  color: #344054;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 3px;
}
nav a:hover {
  background: var(--teal-soft);
  color: var(--navy);
  text-decoration: none;
}
nav a.active {
  background: var(--teal-soft);
  color: var(--navy);
  font-weight: 700;
  box-shadow: inset 2px 0 0 var(--teal-dark);
  text-decoration: none;
}
main {
  max-width: 980px;
  padding: 42px 54px 80px;
}
section {
  padding: 22px 0 42px;
  border-bottom: 1px solid var(--line);
}
section:last-child { border-bottom: 0; }
h1 {
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 12px;
  color: var(--navy);
}
h2 {
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 14px;
  color: var(--navy);
}
h3 {
  font-size: 20px;
  margin: 28px 0 10px;
}
h4 {
  font-size: 16px;
  margin: 22px 0 8px;
}
p { margin: 0 0 14px; }
.lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 780px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-left: 3px solid var(--line);
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  background: transparent;
}
.status-live { border-left-color: var(--teal); color: var(--navy); }
.status-soon { border-left-color: #9aa7b7; color: var(--muted); }
.grid-2,
.grid-3 {
  display: grid;
  gap: 14px;
  margin: 20px 0 8px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 4px;
  padding: 18px;
  background: #fff;
}
.card h3 { margin-top: 0; }
.scope-table td:first-child {
  font-weight: 650;
  color: var(--navy);
}
details {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  margin: 10px 0;
}
summary {
  cursor: pointer;
  padding: 13px 15px;
  color: var(--navy);
  font-weight: 700;
}
details[open] summary {
  border-bottom: 1px solid var(--line);
}
.details-body {
  padding: 15px;
}
.details-body p:last-child,
.details-body ol:last-child,
.details-body ul:last-child {
  margin-bottom: 0;
}
.label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 14px 0 4px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}
th {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
ul, ol {
  margin: 0 0 16px 22px;
  padding: 0;
}
li { margin: 5px 0; }
code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
code {
  background: #f1f3f6;
  border: 1px solid #e4e8ee;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 0.92em;
}
pre {
  color: var(--code-fg);
  background: var(--code-bg);
  border-radius: 4px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  margin: 10px 0 18px;
}
pre code {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
}
.callout {
  border: 1px solid #b9deda;
  border-left: 4px solid var(--teal);
  background: #f4fbfb;
  border-radius: 4px;
  padding: 14px 16px;
  margin: 16px 0;
}
.warning {
  border-color: #ded3b5;
  border-left-color: #9b7d36;
  background: var(--notice);
}
.updated {
  color: var(--muted);
  font-size: 13px;
  margin-top: 34px;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  aside {
    position: relative;
    height: auto;
  }
  main { padding: 30px 24px 60px; }
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
}
