:root {
  color-scheme: light;
  --ink: var(--brand-ink);
  --muted: var(--brand-muted);
  --line: var(--brand-line);
  --blue: var(--brand-green);
  --soft: var(--brand-soft);
  font-family: var(--brand-font);
  color: var(--ink);
  background: var(--brand-paper);
  font-size: 16px;
  line-height: 1.7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--blue);
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid #709cf3;
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  top: -6rem;
  left: 1rem;
  z-index: 30;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
}
.skip-link:focus {
  top: 1rem;
}
.docs-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 76px;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.docs-header nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  align-items: center;
}
.docs-header a {
  text-decoration: none;
}
.brand {
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.04em;
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand small {
  margin-left: 0.4rem;
  border-left: 1px solid var(--line);
  padding-left: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.app-link {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.45rem 0.8rem;
  color: var(--ink);
}
.docs-layout {
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: 245px minmax(0, 800px) 205px;
  gap: 40px;
  padding: 0 28px;
}
.sidebar {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  overflow: auto;
  padding: 24px 18px 40px 0;
  border-right: 1px solid var(--line);
}
.sidebar summary {
  display: list-item;
  font-size: 0.875rem;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-group {
  margin: 24px 0 8px;
  font-size: 0.875rem;
  font-weight: 700;
}
.sidebar nav a {
  color: var(--muted);
  padding: 10px 12px;
  font-size: 0.9rem;
  border-radius: 6px;
  text-decoration: none;
}
.sidebar nav a:hover {
  background: var(--soft);
  color: var(--ink);
}
.sidebar nav a[aria-current="page"] {
  background: #edf3d6;
  color: #17654c;
  font-weight: 650;
  border-left: 3px solid var(--blue);
}
.sidebar-note {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 20px 12px;
  margin-top: 28px;
}
.prose {
  min-width: 0;
  padding: 48px 0 24px;
}
.page-heading {
  margin-bottom: 36px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 650;
  letter-spacing: 0.1em;
}
h1,
h2,
h3 {
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  margin: 14px 0;
}
h2 {
  font-size: 1.5rem;
  margin: 0 0 18px;
}
h3 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
}
.lede {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 0;
}
.prose section {
  scroll-margin-top: 100px;
  margin-bottom: 42px;
}
.prose p {
  margin: 12px 0 18px;
}
.prose li {
  margin: 10px 0;
}
.prose strong {
  font-weight: 650;
}
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.guide-grid a {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
}
.guide-grid a:hover {
  border-color: #abc6b7;
  background: #eaf3ed;
}
.guide-grid strong,
.guide-grid span {
  display: block;
}
.guide-grid span {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 9px;
}
.flow {
  padding-left: 24px;
}
.flow li {
  padding: 8px 0 12px 7px;
  border-bottom: 1px solid var(--line);
}
.callout {
  background: #eaf3ed;
  border-left: 3px solid var(--blue);
  padding: 18px 22px;
  border-radius: 0 7px 7px 0;
  margin: 24px 0;
}
.callout.warning {
  background: #fff7e9;
  border-color: #af750e;
}
.callout p:last-child {
  margin-bottom: 0;
}
.badge {
  display: inline-block;
  background: #e9f5ef;
  color: #216142;
  border-radius: 5px;
  font-size: 0.8rem;
  padding: 3px 8px;
  font-weight: 650;
}
.badge.setup {
  background: #fff1da;
  color: #7e5409;
}
.badge.planned {
  background: #eaf3ed;
  color: #62736e;
}
.capabilities dt {
  margin-top: 20px;
}
.capabilities dd {
  margin: 9px 0 0;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
td,
th {
  text-align: left;
  vertical-align: top;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--soft);
  font-weight: 650;
}
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.875rem;
}
code {
  background: var(--soft);
  padding: 0.1rem 0.25rem;
  overflow-wrap: anywhere;
}
pre {
  padding: 20px;
  background: #172b28;
  color: #eaf3ed;
  overflow: auto;
  border-radius: 8px;
  line-height: 1.65;
}
pre code {
  background: none;
  padding: 0;
  color: inherit;
  overflow-wrap: normal;
}
details {
  margin: 16px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.page-toc {
  position: sticky;
  top: 106px;
  height: fit-content;
  padding: 30px 0;
  font-size: 0.875rem;
}
.page-toc p {
  font-weight: 650;
  margin: 0 0 10px;
}
.page-toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
}
.article-footer {
  border-top: 1px solid var(--line);
  padding: 25px 0;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .docs-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }
  .page-toc {
    display: none;
  }
}
@media (max-width: 760px) {
  .docs-layout {
    display: block;
    padding: 0 20px;
  }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 5px 0;
  }
  .sidebar summary {
    display: list-item;
    font-size: 0.9rem;
  }
  .sidebar-note {
    display: none;
  }
  .sidebar nav {
    padding-bottom: 16px;
  }
  .prose {
    padding-top: 30px;
  }
  .docs-header {
    padding: 12px 20px;
    position: static;
    flex-wrap: wrap;
  }
  .docs-header nav {
    gap: 14px;
  }
  .prose section {
    scroll-margin-top: 20px;
  }
}
@media (max-width: 620px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .brand small {
    display: none;
  }
  .docs-header {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
