:root {
  --bg: #fff;
  --bg-soft: #f8fafc;
  --bg-inset: #f1f5f9;
  --fg: #111827;
  --fg-muted: #475569;
  --fg-faint: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --primary: #ad7600;
  --primary-bright: #ffb800;
  --primary-wash: rgba(255, 184, 0, .1);
  --info: #2563eb;
  --info-bg: #eef4ff;
  --ok: #16823b;
  --ok-bg: #effaf2;
  --danger: #c22b2b;
  --danger-bg: #fff2f2;
  --radius: 8px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0b0d;
    --bg-soft: #12151b;
    --bg-inset: #171b23;
    --fg: #edf0f4;
    --fg-muted: #bcc2cc;
    --fg-faint: #929aa7;
    --line: rgba(255,255,255,.12);
    --line-strong: rgba(255,255,255,.22);
    --primary: #ffbd1f;
    --primary-bright: #ffc62e;
    --primary-wash: rgba(255,184,0,.13);
    --info: #73a8ff;
    --info-bg: rgba(37,99,235,.14);
    --ok: #52c56b;
    --ok-bg: rgba(63,185,80,.13);
    --danger: #ef7474;
    --danger-bg: rgba(220,60,60,.13);
    color-scheme: dark;
  }
  .brand img { content: url("/DevAuto-02.svg"); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-bright); }
:focus-visible { outline: 2px solid var(--primary-bright); outline-offset: 3px; border-radius: 3px; }
.skip-link { position: fixed; left: -9999px; top: 0; z-index: 100; padding: 9px 14px; background: var(--primary-bright); color: #111; font-weight: 700; }
.skip-link:focus { left: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner { width: min(100%, 1440px); margin: 0 auto; padding: 0 22px; }
.topbar, .productbar { display: flex; align-items: center; justify-content: space-between; }
.topbar { min-height: 48px; }
.brand-cluster { display: flex; align-items: center; min-width: 0; }
.brand { display: flex; width: 124px; height: 34px; margin: 0; }
.brand img { display: block; width: 118px; height: 34px; object-fit: contain; object-position: left center; }
.brand-divider { width: 1px; height: 25px; margin: 0 14px; background: var(--line-strong); }
.hub-title { color: var(--fg-muted); font-size: 1.05rem; font-weight: 500; white-space: nowrap; }
.utility-nav, .primary-nav { display: flex; align-items: center; }
.utility-nav { gap: 26px; }
.utility-nav a, .primary-nav a { color: var(--fg-muted); text-decoration: none; font-size: .82rem; font-weight: 600; }
.utility-nav a:hover, .primary-nav a:hover { color: var(--fg); }
.productbar { min-height: 46px; border-top: 1px solid var(--line); }
.primary-nav { gap: 8px; }
.primary-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 13px; border-radius: 7px; }
.primary-nav a[aria-current="page"] { color: var(--fg); background: var(--bg-inset); }
.icon { width: 16px; height: 16px; flex: 0 0 auto; }
.search-box { position: relative; display: flex; align-items: center; width: 220px; height: 34px; color: var(--fg-faint); }
.search-box svg { position: absolute; left: 10px; width: 16px; height: 16px; pointer-events: none; }
.search-box input { width: 100%; height: 100%; padding: 0 57px 0 33px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); font: inherit; font-size: .82rem; }
.search-box kbd { position: absolute; right: 9px; border: 0; background: transparent; color: var(--fg-faint); font-family: inherit; font-size: .63rem; font-weight: 750; letter-spacing: .07em; pointer-events: none; }
.menu-button { display: none; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); cursor: pointer; }
.menu-button svg { width: 17px; height: 17px; }

.docs-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr) 245px; width: min(100%, 1440px); min-height: calc(100vh - 95px); margin: 0 auto; }
.docs-sidebar { position: sticky; top: 95px; align-self: start; height: calc(100vh - 95px); padding: 27px 20px 48px; overflow-y: auto; border-right: 1px solid var(--line); scrollbar-width: thin; }
.sidebar-nav { display: grid; gap: 24px; }
.nav-group-title { display: flex; align-items: center; justify-content: space-between; width: calc(100% - 7px); margin: 0 0 7px 7px; padding: 2px 4px 2px 0; border: 0; background: transparent; color: var(--fg-faint); font: inherit; font-size: .68rem; font-weight: 750; letter-spacing: .075em; text-align: left; text-transform: uppercase; cursor: pointer; }
.nav-group-title::after { content: ""; width: 6px; height: 6px; margin-left: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .16s ease; }
.nav-group-title:hover { color: var(--fg); }
.nav-group-title[aria-expanded="false"]::after { transform: rotate(-45deg); }
.nav-group.collapsed > ul { display: none; }
.sidebar-nav ul { margin: 0; padding: 0; list-style: none; }
.sidebar-nav li { margin: 1px 0; }
.sidebar-nav a { display: block; padding: 6px 10px; border-radius: 7px; color: var(--fg-muted); font-size: .81rem; font-weight: 560; line-height: 1.35; text-decoration: none; }
.sidebar-nav a:hover { color: var(--fg); background: var(--bg-soft); }
.sidebar-nav a.active, .sidebar-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-wash); font-weight: 700; }
.sidebar-nav a.sub { padding-left: 20px; font-size: .77rem; }

.article { min-width: 0; padding: 34px clamp(28px, 4vw, 58px) 90px; }
.breadcrumbs { margin-bottom: 22px; color: var(--fg-faint); font-size: .76rem; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs span { margin: 0 7px; color: var(--line-strong); }
.article-header { padding-bottom: 30px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
h1, h2, h3, h4 { color: var(--fg); letter-spacing: -.022em; }
h1 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 2.65rem); line-height: 1.12; letter-spacing: -.038em; }
h2 { margin: 0 0 12px; font-size: 1.52rem; line-height: 1.28; }
h3 { margin: 28px 0 9px; font-size: 1.07rem; line-height: 1.35; }
h4 { margin: 20px 0 7px; font-size: .95rem; }
p { margin: 0 0 13px; color: var(--fg-muted); }
strong { color: var(--fg); font-weight: 680; }
.lede { max-width: 72ch; color: var(--fg); font-size: 1.07rem; line-height: 1.58; }
.updated { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 16px 0 0; color: var(--fg-faint); font-size: .78rem; }
.updated .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
[hidden], .docs-section[hidden] { display: none !important; }

.docs-section { margin-bottom: 54px; padding-top: 2px; scroll-margin-top: 116px; }
.docs-section + .docs-section { padding-top: 38px; border-top: 1px solid var(--line); }
.section-kicker { display: block; margin-bottom: 5px; color: var(--primary); font-size: .68rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
ul, ol { margin: 0 0 15px; padding-left: 1.2rem; color: var(--fg-muted); }
li { margin-bottom: 7px; }
li::marker { color: var(--primary); }
code, .path { padding: .12em .38em; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-inset); color: var(--fg); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .87em; overflow-wrap: anywhere; }

.callout { margin: 16px 0; padding: 13px 15px; border: 1px solid var(--line-strong); border-left: 3px solid var(--primary-bright); border-radius: var(--radius); background: var(--primary-wash); }
.callout.info { border-left-color: var(--info); background: var(--info-bg); }
.callout.success { border-left-color: var(--ok); background: var(--ok-bg); }
.callout.danger { border-left-color: var(--danger); background: var(--danger-bg); }
.callout p:last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 3px; color: var(--fg); font-weight: 700; }

.steps { list-style: none; padding: 0; counter-reset: steps; }
.steps > li { position: relative; min-height: 30px; padding-left: 42px; margin-bottom: 15px; }
.steps > li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--line)); border-radius: 50%; background: var(--primary-wash); color: var(--primary); font-size: .76rem; font-weight: 750; }
.steps > li > p:last-child { margin-bottom: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 17px 0; }
.feature-card { display: block; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); color: var(--fg-muted); text-decoration: none; }
.feature-card:hover { border-color: var(--primary); background: var(--primary-wash); color: var(--fg-muted); }
.feature-card strong { display: block; margin-bottom: 3px; }
.feature-card span { display: block; font-size: .82rem; line-height: 1.45; }
.feature-card .tag { display: inline-block; width: auto; margin-top: 8px; color: var(--primary); font-size: .66rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }

.workflow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin: 20px 0 24px; padding: 0; list-style: none; counter-reset: workflow; }
.workflow li { position: relative; margin: 0; padding: 12px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); color: var(--fg-muted); font-size: .75rem; text-align: center; }
.workflow li::before { counter-increment: workflow; content: counter(workflow); display: grid; place-items: center; width: 23px; height: 23px; margin: 0 auto 7px; border-radius: 50%; background: var(--primary-wash); color: var(--primary); font-weight: 750; }
.workflow li:not(:last-child)::after { content: "→"; position: absolute; top: 22px; right: -16px; color: var(--line-strong); font-weight: 700; }

.table-wrap { margin: 16px 0 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: .83rem; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--bg-inset); color: var(--fg); font-size: .68rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { width: 25%; color: var(--fg); font-weight: 650; }
td { color: var(--fg-muted); }

.checklist { padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 25px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }
.inline-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.inline-links a { padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-soft); color: var(--fg-muted); font-size: .75rem; text-decoration: none; }
.inline-links a:hover { border-color: var(--primary); color: var(--primary); }

.page-toc { position: sticky; top: 95px; align-self: start; height: calc(100vh - 95px); padding: 34px 14px 40px 19px; overflow-y: auto; scrollbar-width: thin; }
.copy-page { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 34px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--fg-muted); font: inherit; font-size: .75rem; font-weight: 650; cursor: pointer; }
.copy-page:hover { background: var(--bg-soft); color: var(--fg); }
.copy-page svg { width: 14px; height: 14px; }
.toc { padding-left: 13px; border-left: 1px solid var(--line-strong); }
.toc h2 { margin: 0 0 7px; font-size: .74rem; letter-spacing: 0; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a { display: block; padding: 3.5px 0; color: var(--fg-faint); font-size: .7rem; line-height: 1.35; text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--fg); }
.back-top { display: block; margin-top: 13px; color: var(--fg-faint); font-size: .7rem; text-decoration: none; }

.docs-footer { margin: 0; padding: 25px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer-inner { width: min(100%, 850px); margin: 0 auto; }
.docs-footer p { margin: 3px 0; color: var(--fg-faint); font-size: .78rem; }
.sidebar-scrim { display: none; }
.search-empty { display: none; margin: 20px 0; padding: 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--fg-muted); text-align: center; }
.search-empty.visible { display: block; }

@media (max-width: 1140px) {
  .docs-layout { grid-template-columns: 245px minmax(0, 1fr); }
  .page-toc { display: none; }
}

@media (max-width: 760px) {
  .header-inner { padding-inline: 14px; }
  .topbar { min-height: 54px; }
  .brand-divider, .utility-nav { display: none; }
  .hub-title { font-size: .9rem; }
  .brand { width: 105px; }
  .brand img { width: 100px; }
  .menu-button { display: grid; }
  .productbar { min-height: 50px; }
  .primary-nav a:not([aria-current="page"]) { display: none; }
  .primary-nav a { padding-left: 8px; }
  .search-box { width: min(52vw, 230px); }
  .search-box kbd { display: none; }
  .search-box input { padding-right: 10px; }
  .docs-layout { display: block; min-height: calc(100vh - 105px); }
  .docs-sidebar { position: fixed; top: 105px; bottom: 0; left: 0; z-index: 45; width: min(86vw, 315px); height: auto; background: var(--bg); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 18px 0 45px rgba(0,0,0,.16); }
  body.nav-open .docs-sidebar { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 105px 0 0; z-index: 40; border: 0; background: rgba(15,23,42,.42); }
  body.nav-open .sidebar-scrim { display: block; }
  .article { padding: 28px 20px 68px; }
  .breadcrumbs { margin-bottom: 16px; }
  .article-header { margin-bottom: 28px; padding-bottom: 25px; }
  h1 { font-size: 2rem; }
  .docs-section { scroll-margin-top: 125px; }
  .feature-grid { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr; gap: 8px; }
  .workflow li { display: flex; align-items: center; gap: 9px; text-align: left; }
  .workflow li::before { margin: 0; flex: 0 0 auto; }
  .workflow li:not(:last-child)::after { content: "↓"; top: auto; right: 13px; bottom: -12px; z-index: 2; }
}

@media print {
  .site-header, .docs-sidebar, .page-toc, .docs-footer { display: none !important; }
  .docs-layout { display: block; }
  .article { padding: 0; }
  .docs-section { break-inside: avoid; }
  a { color: inherit; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .docs-sidebar, .nav-group-title::after { transition: none; }
}
