:root {
  color-scheme: light;
  --ink: #1e1e1e;
  --muted: #595959;
  --blue: #006eaf;
  --line: #e0e4e8;
  --paper: #fff;
  --soft: #f7fafc;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.75; }
a { color: var(--blue); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.skip-link { position: absolute; z-index: 5; top: -6rem; left: 1rem; padding: .6rem 1rem; background: var(--paper); }
.skip-link:focus { top: 1rem; }
.docs-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.docs-header nav { max-width: 1120px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-size: 1.125rem; font-weight: 650; }
.brand svg { flex: none; }
.header-links { display: flex; align-items: center; gap: 1.5rem; }
.header-links a { color: var(--muted); font-size: .875rem; text-decoration: none; }
.header-links a:hover { color: var(--blue); text-decoration: underline; }
.docs-wrap { max-width: 1120px; padding: 0 1.5rem; margin: auto; }
.breadcrumbs { margin: 2rem 0 2.5rem; font-size: .8125rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem .6rem; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .6rem; color: #777; }
.breadcrumbs a { color: var(--muted); }
.docs-layout { display: grid; grid-template-columns: minmax(0, 730px) minmax(180px, 1fr); gap: 4rem; align-items: start; }
.docs-layout-index { grid-template-columns: minmax(0, 800px); }
main { min-width: 0; }
main:focus { outline: none; }
.article-header { margin-bottom: 2rem; }
.eyebrow { margin: 0 0 .875rem; color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.035em; line-height: 1.12; font-weight: 650; margin: 0; text-wrap: balance; }
.byline { color: var(--muted); font-size: .8125rem; margin: 1.25rem 0 0; }
article > p, article > ul, article > ol, article > dl { max-width: 70ch; }
p { margin: 0 0 1.1rem; }
.lead { font-size: 1.125rem; line-height: 1.7; color: #414141; margin-bottom: 2rem; }
h2 { margin: 3rem 0 .875rem; font-size: 1.5rem; line-height: 1.3; font-weight: 650; letter-spacing: -.02em; text-wrap: balance; }
h2[id] { scroll-margin-top: 1.5rem; }
ul, ol { padding-left: 1.4rem; margin: 1rem 0 1.5rem; }
li { padding-left: .2rem; margin-bottom: .65rem; }
li::marker { color: var(--muted); }
strong { font-weight: 650; }
kbd, code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .875em; background: var(--soft); border: 1px solid var(--line); padding: .1em .3em; border-radius: 4px; overflow-wrap: anywhere; }
.note { padding: 1.35rem 1.5rem; background: var(--soft); border-left: 3px solid #0098f2; margin: 1.75rem 0; border-radius: 0 10px 10px 0; }
.note h2 { margin-top: 0; }
.note p { margin-top: .5rem; }
.note p:last-child { margin-bottom: 0; }
figure { margin: 2rem 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
figcaption { margin-top: .75rem; font-size: .8125rem; color: var(--muted); line-height: 1.6; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .9375rem; line-height: 1.6; }
caption { text-align: left; color: var(--muted); font-size: .8125rem; margin-bottom: .65rem; }
th, td { padding: .9rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead { background: var(--soft); }
th { font-weight: 650; }
tbody th { width: 26%; }
dt { font-weight: 650; margin-top: 1.5rem; line-height: 1.5; }
dd { margin: .45rem 0 0; }
.mobile-toc { display: none; }
.toc { position: sticky; top: 1.5rem; border-left: 1px solid var(--line); padding-left: 1.25rem; }
.toc p { font-size: .8125rem; font-weight: 650; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { padding: 0; margin: 0 0 .8rem; line-height: 1.5; }
.toc a { font-size: .8125rem; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }
.related { margin-top: 3rem; padding-top: .25rem; border-top: 1px solid var(--line); }
.related h2 { margin-top: 1.5rem; }
.related ul { columns: 2; column-gap: 2rem; }
.related li { break-inside: avoid; }
.start-link { margin-bottom: 2.5rem; font-weight: 650; }
.guide-list { border-top: 1px solid var(--line); }
.guide { display: grid; grid-template-columns: 2rem 1fr 1.25rem; gap: 1.25rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.guide:hover h2 { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
.guide-number { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: .1rem; }
.guide-category { color: var(--blue); font-size: .75rem; font-weight: 650; margin: 0 0 .35rem; }
.guide h2 { margin: 0 0 .6rem; font-size: 1.375rem; }
.guide p:last-child { color: var(--muted); margin: 0; }
.guide-arrow { color: var(--blue); }
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .toc { display: none; }
  .mobile-toc { display: block; border: 1px solid var(--line); border-radius: 8px; padding: .75rem 1rem; margin: 1.5rem 0; }
  .mobile-toc summary { cursor: pointer; font-weight: 650; }
  .mobile-toc ul { margin-bottom: 0; }
}
@media (max-width: 520px) {
  .docs-wrap { padding: 0 1.25rem; }
  .docs-header { padding: 1rem 1.25rem; }
  .header-links { gap: .75rem; }
  .brand { font-size: 1rem; }
  .brand svg { width: 24px; height: 24px; }
  .breadcrumbs { margin: 1.5rem 0; }
  .toc ul, .related ul { columns: 1; }
  .guide { grid-template-columns: 1.25rem 1fr; gap: .75rem; }
  .guide-arrow { display: none; }
  .note { padding: 1rem; }
  th, td { padding: .75rem .5rem; }
  h2 { font-size: 1.375rem; }
}
