:root {
  color-scheme: dark;
  --bg: #071723;
  --sidebar: #091c29;
  --surface: #0e2432;
  --code: #081923;
  --border: #28404e;
  --border-soft: #1d3442;
  --text: #f1f5f7;
  --body: #c1ced5;
  --muted: #91a8b5;
  --yellow: #fff200;
  --red: #ed1c2b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.7; }
button { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
code, pre { font-family: "Cascadia Code", Consolas, "SFMono-Regular", monospace; }
code { color: #f9e886; font-size: .88em; overflow-wrap: anywhere; }
pre code { color: inherit; font-size: inherit; overflow-wrap: normal; }
.skip-link { position: fixed; z-index: 100; top: -60px; left: 12px; padding: 9px 13px; background: var(--yellow); color: #071723; border-radius: 4px; font-weight: 750; }
.skip-link:focus { top: 12px; }

.mobile-header { display: none; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 265px; background: var(--sidebar); border-right: 1px solid var(--border-soft); }
.sidebar-brand { min-height: 99px; display: flex; align-items: center; gap: 12px; padding: 17px 18px; border-bottom: 1px solid var(--border-soft); text-decoration: none; }
.brand-mark { display: inline-block; flex: none; width: 66px; height: 36px; background: url("assets/logo-mark.png") -20px -39px / 108px 108px no-repeat; mix-blend-mode: screen; }
.brand-name { display: flex; flex-direction: column; min-width: 0; color: #f1f5f7; font-size: 15px; line-height: 1.13; letter-spacing: -.025em; font-weight: 800; }
.brand-name > span { display: block; }
.brand-name small { display: block; margin-top: 6px; font-size: 9px; line-height: 1.3; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); }
.sidebar-resource { display: flex; align-items: center; gap: 8px; margin: 20px 15px 4px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 6px; background: #102937; color: #dfebef; font: 650 11px "Cascadia Code", Consolas, monospace; white-space: nowrap; }
.resource-dot { width: 6px; height: 6px; flex: none; background: var(--yellow); border-radius: 50%; }
.sidebar-nav { overflow-y: auto; padding: 0 10px 24px; scrollbar-width: thin; scrollbar-color: #3c5767 transparent; }
.nav-label { margin: 21px 11px 7px; color: #6f8b9b; font-size: 10px; letter-spacing: .13em; font-weight: 800; }
.nav-link { display: block; margin: 1px 0; padding: 8px 12px; border-left: 2px solid transparent; border-radius: 4px; color: #b5c6ce; text-decoration: none; font-size: 13px; line-height: 1.35; font-weight: 600; transition: background .15s, color .15s, border-color .15s; }
.nav-link:hover { background: #142d3b; color: #fff; }
.nav-link.active { background: #17313f; border-left-color: var(--yellow); color: var(--yellow); }
.sidebar-footer { margin-top: auto; padding: 12px 15px; border-top: 1px solid var(--border-soft); color: #728d9b; text-align: center; font-size: 11px; }
.sidebar-scrim { display: none; }

.main { min-height: 100vh; margin-left: 265px; }
.topline { display: flex; align-items: center; gap: 11px; height: 52px; padding: 0 clamp(28px, 5vw, 70px); border-bottom: 1px solid var(--border-soft); color: #819aa8; font-size: 11px; font-weight: 650; }
.topline span { color: #546f7e; }
.topline strong { color: #d3e1e7; font-weight: 700; }
.article { max-width: 1050px; margin: 0 auto; padding: 0 clamp(28px, 5vw, 70px); }
.intro { padding: 50px 0 39px; border-bottom: 1px solid var(--border); }
.overline { margin: 0 0 12px; color: var(--yellow); font-size: 11px; letter-spacing: .13em; font-weight: 800; }
.intro h1 { margin: 0 0 14px; font-size: clamp(38px, 4.8vw, 58px); line-height: 1.1; letter-spacing: -.055em; font-weight: 800; }
.lead { max-width: 730px; margin: 0; color: var(--body); font-size: 17px; line-height: 1.72; }

.doc-section { padding: 46px 0 37px; border-bottom: 1px solid var(--border-soft); scroll-margin-top: 15px; }
.doc-section.last-section { border-bottom: 0; padding-bottom: 70px; }
.option-section { padding-top: 34px; padding-bottom: 27px; }
.option-section .section-head h2 { font-size: clamp(25px, 3vw, 31px); }
.option-section .codebox { margin-top: 16px; margin-bottom: 16px; }
.section-head { margin-bottom: 18px; }
.section-head > span { display: block; margin-bottom: 5px; color: #a8b5bf; font-size: 11px; letter-spacing: .06em; font-weight: 750; }
.section-head h2 { margin: 0; color: #fff; font-size: clamp(27px, 3.3vw, 36px); line-height: 1.22; letter-spacing: -.04em; font-weight: 760; }
.doc-section > p { max-width: 790px; margin: 0 0 17px; color: var(--body); font-size: 16px; line-height: 1.75; }
.doc-section > p:last-child { margin-bottom: 0; }
.doc-section > p.placement { margin: 20px 0 8px; color: #dce7ec; font-size: 14px; }
.placement strong { color: #fff; }
.doc-section p code, .doc-section td code, .section-head code, .reference-details code { padding: 0; border: 0; background: none; color: inherit; font: inherit; overflow-wrap: anywhere; }
.doc-section a:not(.nav-link) { color: #f6e76d; text-underline-offset: 3px; }

.codebox { overflow: hidden; margin: 22px 0 25px; border: 1px solid var(--border); border-radius: 7px; background: var(--code); }
.codebar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 43px; padding: 6px 10px 6px 16px; border-bottom: 1px solid var(--border); background: #112b39; color: #bcd0d9; font-size: 12px; font-weight: 700; }
.copy-button { flex: none; min-width: 65px; padding: 5px 10px; border: 1px solid #4a6979; border-radius: 4px; background: #1a3a4b; color: #f7fbfd; font-size: 12px; font-weight: 750; cursor: pointer; }
.copy-button:hover { border-color: var(--yellow); color: var(--yellow); }
.copy-button.copied { border-color: #66b38b; background: #1d483b; color: #cbf4d8; }
.codebox pre { margin: 0; padding: 19px 21px; overflow-x: auto; color: #e2eaf0; font-size: 13px; line-height: 1.68; tab-size: 4; scrollbar-width: thin; scrollbar-color: #496678 #081923; }
.table-wrap { overflow-x: auto; margin: 23px 0 21px; border: 1px solid var(--border); border-radius: 6px; scrollbar-width: thin; }
table { width: 100%; min-width: 580px; border-collapse: collapse; text-align: left; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: #112b39; color: #dce8ee; font-size: 12px; font-weight: 750; }
td { color: #b8cbd3; font-size: 13px; line-height: 1.6; }
td:first-child { width: 245px; white-space: nowrap; color: #e7f1f4; font-weight: 700; }
td a { white-space: nowrap; }
.reference-details { margin: 20px 0 0; border: 1px solid var(--border); border-radius: 6px; background: #0c2130; }
.reference-details summary { padding: 11px 15px; cursor: pointer; color: #e0e9ed; font-size: 14px; font-weight: 750; }
.reference-details summary::marker { color: var(--yellow); }
.reference-details > div { padding: 0 15px 14px; color: var(--body); font-size: 14px; line-height: 1.7; }
.reference-details p { margin: 0; }
.page-footer { display: flex; justify-content: space-between; gap: 18px; padding: 20px clamp(28px, 5vw, 70px); border-top: 1px solid var(--border-soft); color: #7893a1; font-size: 11px; }
.copy-status { position: fixed; z-index: 50; right: 18px; bottom: 18px; padding: 9px 13px; border: 1px solid #456977; border-radius: 5px; background: #163748; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.3); font-size: 13px; font-weight: 700; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.copy-status.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 940px) {
  .sidebar { width: 235px; }
  .main { margin-left: 235px; }
  .sidebar-brand { gap: 9px; padding-left: 13px; padding-right: 12px; }
  .sidebar-resource { margin-left: 10px; margin-right: 10px; }
  .article { padding: 0 36px; }
  .topline, .page-footer { padding-left: 36px; padding-right: 36px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 72px; }
  .mobile-header { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; justify-content: space-between; height: 59px; padding: 0 18px; border-bottom: 1px solid var(--border-soft); background: var(--sidebar); }
  .mobile-brand { display: flex; align-items: center; gap: 5px; text-decoration: none; font-size: 14px; font-weight: 800; }
  .mobile-brand strong { color: var(--yellow); }
  .menu-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 37px; height: 37px; border: 1px solid #426171; border-radius: 5px; background: #153140; cursor: pointer; }
  .menu-button span { width: 17px; height: 2px; border-radius: 2px; background: #fff; }
  .sidebar { width: min(295px, 85vw); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(0,0,0,.3); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim:not([hidden]) { display: block; position: fixed; z-index: 19; inset: 0; background: rgba(0,0,0,.57); }
  .main { margin-left: 0; }
  .topline { height: 43px; padding: 0 19px; overflow-x: auto; white-space: nowrap; font-size: 10px; }
  .article { padding: 0 19px; }
  .intro { padding: 35px 0 32px; }
  .intro h1 { font-size: clamp(34px, 9vw, 46px); }
  .lead { font-size: 16px; }
  .doc-section { padding: 37px 0 32px; }
  .section-head h2 { font-size: 28px; }
  .codebox pre { padding: 16px; font-size: 12px; }
  .page-footer { flex-direction: column; gap: 2px; padding: 18px 19px; }
}
@media (max-width: 390px) {
  .article { padding: 0 16px; }
  .intro h1 { font-size: 34px; }
  .section-head h2 { font-size: 26px; }
  .codebox pre { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
