:root {
  --accent: #b95b2e;
  --accent-hover: #964721;
  --accent-soft: #fcf0e9;
  --ink: #20252d;
  --body: #444c58;
  --muted: #6d7683;
  --line: #e6e8ec;
  --surface: #f8f9fb;
  --sidebar: 252px;
  --header: 112px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 142px; }
body { margin: 0; padding-top: var(--header); background: #fff; color: var(--body); font: 15px/1.85 -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
button, input, select { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
svg { width: 18px; height: 18px; flex: none; }
p { margin: 0 0 18px; word-break: keep-all; overflow-wrap: anywhere; }
strong { font-weight: 650; color: var(--ink); }
ul { padding-left: 22px; margin: 14px 0 22px; }
li { margin: 9px 0; word-break: keep-all; overflow-wrap: anywhere; }
li::marker { color: #a4abb4; }
code, pre, kbd { font-family: var(--mono); }
code { padding: 2px 5px; border: 1px solid #e9ebef; border-radius: 4px; background: #f5f6f8; color: #344356; font-size: .86em; overflow-wrap: anywhere; }
pre code { padding: 0; border: 0; border-radius: 0; background: none; color: inherit; overflow-wrap: normal; }

/* Persistent navigation */
.header { position: fixed; inset: 0 0 auto; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.topbar { height: 64px; display: flex; align-items: center; gap: 36px; padding: 0 28px; border-bottom: 1px solid var(--line); }
.brand { min-width: 224px; display: flex; align-items: center; gap: 10px; color: var(--ink); line-height: 1; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-icon { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 31px; background: var(--accent); color: #fff; border-radius: 7px 7px 7px 2px; font-size: 23px; font-weight: 750; line-height: 1; }
.brand b { font-size: 20px; letter-spacing: -.7px; font-weight: 750; }
.brand-divider { width: 1px; height: 19px; background: #dfe2e6; margin: 0 3px 0 6px; }
.brand-docs { color: #636c79; font-size: 12px; letter-spacing: -.2px; }
.search-open { display: flex; align-items: center; gap: 10px; width: 360px; max-width: 35vw; padding: 8px 11px; background: #f8f9fb; border: 1px solid #e4e7eb; border-radius: 6px; font-size: 12px; line-height: 1.6; color: #717986; text-align: left; }
.search-open:hover { border-color: #bfc5ce; background: #f4f5f7; }
kbd { margin-left: auto; padding: 0 5px; border: 1px solid #e1e5e9; background: #fff; border-radius: 4px; font-size: 10px; color: #747e8b; }
.top-links { display: flex; align-items: center; gap: 23px; margin-left: auto; font-size: 12px; white-space: nowrap; }
.top-links a { color: #53606d; }
.top-links a:last-child { font-family: var(--mono); font-size: 10px; color: var(--accent); border: 1px solid #ecd7c9; background: #fffaf6; padding: 2px 9px; border-radius: 4px; }
.top-links a span { margin-left: 6px; }
.subbar { display: flex; align-items: center; height: 48px; padding: 0 28px; font-size: 13px; }
.sub-home { width: calc(var(--sidebar) - 28px); flex: none; font-size: 10px; letter-spacing: 1.1px; color: #838b96; font-weight: 600; }
.subbar nav { display: flex; align-items: stretch; gap: 30px; height: 100%; }
.subbar nav a { display: flex; align-items: center; border-bottom: 2px solid transparent; color: #687280; font-size: 12px; padding: 1px 1px 0; }
.subbar nav a:hover { text-decoration: none; color: var(--ink); }
.subbar nav a[aria-current] { color: var(--accent); border-color: var(--accent); font-weight: 650; }
.sub-status { margin-left: auto; display: flex; gap: 13px; align-items: center; color: #7b8491; font-size: 11px; }
.status-divider { color: #c6cbd2; }
.sidebar { position: fixed; top: var(--header); left: 0; bottom: 0; width: var(--sidebar); overflow-y: auto; padding: 24px 18px; border-right: 1px solid var(--line); background: #fafbfc; scrollbar-width: thin; scrollbar-color: #d8dde3 transparent; z-index: 20; }
.version { display: flex; gap: 10px; align-items: center; margin-bottom: 28px; padding: 12px; border: 1px solid #e0e4e9; border-radius: 7px; background: #fff; color: var(--ink); }
.version:hover { border-color: #d3b9a8; text-decoration: none; }
.platform-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 36px; background: var(--surface); border-radius: 5px; color: #596679; }
.version-label { display: flex; flex-direction: column; gap: 1px; line-height: 1.65; }
.version-label strong { font-size: 12px; font-weight: 650; }
.version-label small { font-family: var(--mono); color: #7a8592; font-size: 10px; }
.version-chevron { margin-left: auto; color: #8b929c; }
.nav-group { margin-bottom: 22px; }
.nav-group h2 { margin: 0 11px 8px; font-size: 11px; letter-spacing: .1px; line-height: 1.6; color: #343d49; font-weight: 650; }
.nav-link { display: block; position: relative; padding: 6px 12px; margin: 2px 0; color: #65707e; border-radius: 5px; line-height: 1.8; font-size: 12px; }
.nav-link:hover { background: #f0f2f5; color: var(--ink); text-decoration: none; }
.nav-link.active { background: #fbede4; color: #a44d26; font-weight: 650; }
.nav-link.active::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--accent); }
.sidebar-footer { display: flex; flex-direction: column; gap: 4px; padding: 20px 11px 4px; border-top: 1px solid var(--line); color: #8a929e; font-size: 10px; }
.sdk-label { color: #66717e; font-size: 10px; letter-spacing: .6px; font-weight: 600; }
.sidebar-footer span span { margin: 0 6px; }

/* Article hierarchy */
.doc-layout { display: grid; grid-template-columns: minmax(0, 810px) 178px; gap: 46px; margin-left: var(--sidebar); padding: 34px 48px 0; max-width: 1180px; }
main { min-width: 0; padding-bottom: 32px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; font-size: 11px; color: #8a929e; line-height: 1.8; }
.breadcrumb a { color: #707b8a; }
.breadcrumb span:last-child { color: #4b5869; }
.doc-heading { padding-bottom: 26px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 10px; line-height: 1.7; letter-spacing: 1.15px; font-weight: 650; margin-bottom: 11px; }
.eyebrow::before { content: ''; width: 13px; height: 2px; background: var(--accent); }
h1 { margin: 0 0 15px; color: #1c2532; font-size: clamp(30px, 2.75vw, 40px); line-height: 1.3; font-weight: 700; letter-spacing: -1.3px; }
.lead { margin-bottom: 22px; color: #667180; font-size: 15px; line-height: 1.85; }
.meta { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; color: #7a8492; font-size: 10px; line-height: 1.8; }
.badge { display: inline-flex; align-items: center; white-space: nowrap; border-radius: 4px; padding: 2px 7px; font-size: 10px; line-height: 1.6; }
.warm { color: #a1512b; background: #fff5ed; border: 1px solid #f0ddce; font-family: var(--mono); }
.muted { color: #687583; background: #f1f3f6; border: 1px solid #e4e8ed; }
.updated { padding-left: 15px; border-left: 1px solid #dfe3e8; }
.doc-downloads, .package-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.doc-downloads { margin-top: 22px; }
.download-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 42px; padding: 10px 15px; border: 1px solid #dce1e7; border-radius: 6px; background: #fff; color: #455368; font-size: 12px; font-weight: 600; line-height: 1.6; }
.download-button:hover { color: var(--ink); border-color: #c8ae9c; background: #fffcfa; text-decoration: none; }
.download-button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.download-button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.doc-downloads .release-link { padding: 10px 5px; font-size: 12px; }
.package-list { display: grid; gap: 16px; margin: 24px 0; }
.package-card { padding: 23px; border: 1px solid #dfe4ea; border-radius: 8px; background: #fff; }
.package-card h3 { margin: 0 0 8px; color: #263140; font-size: 17px; line-height: 1.5; }
.package-card > p { margin-bottom: 16px; font-size: 13px; color: #657180; }
.package-card .package-instruction { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; }
section { margin-top: 42px; }
section:first-of-type { margin-top: 0; }
h2 { color: #263140; font-size: 21px; line-height: 1.5; font-weight: 650; letter-spacing: -.55px; margin: 0 0 18px; scroll-margin-top: 0; }
.anchor { font: 15px var(--mono); margin-left: 10px; color: #a3aab5; opacity: 0; }
h2:hover .anchor, .anchor:focus-visible { opacity: 1; }
body[data-page="api-reference"] main section > h2 { font-family: var(--mono); font-size: 20px; letter-spacing: -.6px; }
.note { position: relative; padding: 18px 20px 18px 23px; margin: 24px 0; border: 1px solid #eddfd5; border-left: 3px solid #bd794e; border-radius: 0 6px 6px 0; background: #fffbf7; color: #6c6058; font-size: 13px; line-height: 1.85; }
.note strong { color: #835131; font-size: 12px; font-weight: 650; }
.note p { margin: 5px 0 0; }

/* API tables and copyable examples */
.table-scroll { margin: 18px 0 24px; overflow-x: auto; border: 1px solid #e1e5ea; border-radius: 7px; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; line-height: 1.8; }
th { background: #f6f8fa; color: #596575; font-size: 11px; font-weight: 650; white-space: nowrap; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfcfd; }
td { color: #596474; overflow-wrap: anywhere; }
td:first-child { color: #33445a; }
#sensor-type-table th, #sensor-type-table td { padding: 12px; }
#sensor-type-table td { word-break: keep-all; }
#sensor-type-table th:first-child { width: 18%; }
#sensor-type-table th:nth-child(2) { width: 38%; }
#sensor-type-table th:nth-child(3) { width: 26%; }
#sensor-type-table th:last-child { width: 18%; }
td small { display: block; color: #7c8694; font-size: 10px; margin-top: 4px; }
td code { font-size: 11px; border: 0; background: #f0f3f7; color: #425774; }
body[data-page="api-reference"] td:first-child { font-family: var(--mono); font-size: 11px; width: 46%; color: #334966; }
#type-table td:first-child { font-family: var(--mono); font-weight: 500; }
#type-table td:first-child small { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 400; }
.table-scroll .hash { word-break: break-all; }
.table-scroll p { padding: 16px; margin: 0; font-size: 12px; }
.codebox { margin: 21px 0 24px; border: 1px solid #273143; border-radius: 8px; background: #17202e; overflow: hidden; }
.codebar { display: flex; align-items: center; justify-content: space-between; padding: 9px 15px; border-bottom: 1px solid #303a4a; background: #1e2837; font-size: 10px; line-height: 1.65; color: #b1bdcf; }
.code-language { display: flex; align-items: center; gap: 9px; font-family: var(--mono); }
.code-language > span { color: #8395ae; font-size: 12px; }
.copy { padding: 3px 10px; border: 1px solid #495568; border-radius: 4px; color: #ccd5e2; background: #273345; font-size: 10px; line-height: 1.6; }
.copy:hover { background: #344158; color: #fff; border-color: #78869a; }
pre { margin: 0; padding: 22px 23px 24px; overflow: auto; font-size: 12px; line-height: 1.95; color: #d3dce9; tab-size: 4; scrollbar-width: thin; scrollbar-color: #51617a transparent; }
.syntax-comment { color: #91a2ba; }
.syntax-string { color: #b9d6ad; }
.syntax-keyword { color: #d5a9e5; }
.syntax-number { color: #ebc196; }
.syntax-type { color: #9abcf1; }

/* Context rail */
.toc { align-self: start; position: sticky; top: 149px; padding-left: 4px; margin-top: 58px; font-size: 11px; }
.toc > b { display: block; font-size: 11px; color: #485666; font-weight: 650; margin-bottom: 15px; }
.toc nav { display: flex; flex-direction: column; border-left: 1px solid #e1e5eb; }
.toc nav a { margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; color: #7c8694; line-height: 1.7; word-break: keep-all; }
.toc nav a:hover { color: #49576a; text-decoration: none; }
.toc nav a.current { color: var(--accent); border-color: var(--accent); font-weight: 600; }
.toc-resources { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; padding-top: 19px; border-top: 1px solid var(--line); }
.toc-resources > span { font-size: 10px; color: #8a929e; margin-bottom: 2px; }
.toc-resources a { color: #596777; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.toc-resources a span { color: #8793a1; }

/* Overview, resources and document footer */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 22px 18px; border: 1px solid #e1e5eb; border-radius: 7px; background: #f8fafc; margin: 22px 0 25px; }
.flow-step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 7px; text-align: center; background: #fff; border: 1px solid #e1e5eb; border-radius: 5px; }
.flow-step:not(:last-child)::after { content: '›'; position: absolute; right: -12px; top: 45%; color: #8b98a9; line-height: 1; }
.step-num { font: 9px var(--mono); color: #a16a48; }
.flow-step strong { font-size: 11px; line-height: 1.5; color: #38475c; }
.flow-step > span:last-child { font-size: 10px; color: #7d8898; line-height: 1.6; }
.next-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.next-cards a { display: flex; flex-direction: column; gap: 7px; padding: 23px; border: 1px solid #dfe4eb; border-radius: 7px; }
.next-cards a:hover { border-color: #cba88e; background: #fffcfa; text-decoration: none; }
.next-cards span { color: #8c6c55; font-size: 9px; font-family: var(--mono); letter-spacing: .8px; }
.next-cards strong { color: #354358; font-size: 14px; font-weight: 600; }
.next-cards small { color: #7a8595; font-size: 11px; }
.page-turn { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 52px; padding-top: 23px; border-top: 1px solid var(--line); }
.page-turn a { display: flex; flex-direction: column; gap: 5px; color: #3f4f64; }
.page-turn a:last-child { text-align: right; }
.page-turn small { color: #7b8797; font-size: 10px; }
.page-turn strong { font-size: 13px; font-weight: 550; }
.article-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 37px; padding-top: 22px; border-top: 1px solid var(--line); color: #8992a0; font-size: 10px; }
.article-footer b { font-size: 11px; color: #657184; letter-spacing: .5px; margin-right: 4px; }
.filterbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.filterbar input, .filterbar select { min-width: 0; padding: 10px 12px; border: 1px solid #dce2e9; border-radius: 5px; background: #fff; font-size: 12px; color: #4d5e73; }
.filterbar input { flex: 1; min-width: 160px; }
.filterbar > span { color: #7d8999; font: 10px var(--mono); }
.formula { display: flex; align-items: center; flex-direction: column; gap: 10px; padding: 28px; margin: 25px 0; border: 1px solid #e1e6ed; border-radius: 7px; background: #f7f9fc; color: #7b8798; }
.formula strong { color: #344c6b; font: 500 27px var(--mono); }
.formula > span { font-size: 12px; color: #5d6b80; }
.formula small { font-size: 11px; }
.download { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; padding: 21px; border: 1px solid #e1e5eb; border-radius: 7px; }
.download:hover { background: #fffcfa; border-color: #cfb299; text-decoration: none; }
.download div { display: flex; flex-direction: column; min-width: 0; }
.download strong { font-size: 14px; color: #33445b; }
.download small { font-size: 11px; color: #7a8798; margin-top: 4px; }
.download > span:last-child { margin-left: auto; font: 10px var(--mono); color: #8a664a; white-space: nowrap; }
.file-icon { display: flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 40px; border: 1px solid #ecdbcd; background: #fff7f0; border-radius: 6px; color: var(--accent); font-size: 20px; }

/* Search and utility controls */
.mobile-toggle { display: none; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 17px; }
.sr-only { position: absolute; clip: rect(0,0,0,0); width: 1px; height: 1px; overflow: hidden; }
.skip { position: fixed; top: -60px; left: 15px; z-index: 100; padding: 8px 20px; border: 1px solid var(--accent); background: #fff; }
.skip:focus { top: 10px; }
dialog { width: min(640px, calc(100vw - 32px)); padding: 0; margin-top: min(15vh,130px); border: 1px solid #dce1e9; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px #17243528; }
dialog::backdrop { background: #18223542; backdrop-filter: blur(3px); }
.search-heading { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 9px; }
.search-heading h2 { margin: 0; color: #344357; font-size: 14px; }
.search-close { padding: 1px 6px; border: 1px solid #dbe1e9; border-radius: 4px; background: #fff; color: #7e8a9c; font: 10px/1.7 var(--mono); }
.search-input-wrap { display: flex; align-items: center; gap: 10px; padding: 11px 13px; margin: 6px 22px 17px; border: 1px solid #d8dfe8; border-radius: 5px; color: #8b97a7; }
.search-input-wrap input { width: 100%; border: 0; outline: none; background: transparent; font-size: 14px; color: #35445b; }
.search-input-wrap:focus-within { border-color: #b87c56; box-shadow: 0 0 0 2px #fcf2e9; }
#search-results { max-height: 45vh; padding: 8px; overflow: auto; border-top: 1px solid var(--line); }
#search-results a { display: flex; flex-direction: column; padding: 13px 15px; border-radius: 5px; color: #33445b; line-height: 1.8; }
#search-results a:hover, #search-results a:focus { background: #fcf1e9; outline: none; text-decoration: none; }
#search-results strong { font-size: 13px; font-weight: 600; }
#search-results a span { font-size: 11px; color: #7c899c; }
#search-results p { padding: 20px 14px; font-size: 12px; color: #7c899c; }
.search-help { display: flex; justify-content: space-between; padding: 10px 22px; border-top: 1px solid var(--line); color: #8591a2; font-size: 10px; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%,20px); z-index: 50; padding: 10px 17px; background: #263449; border-radius: 6px; color: #fff; font-size: 12px; opacity: 0; pointer-events: none; transition: .16s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.notfound { max-width: 650px; padding: 24px; margin: 60px auto; }
.notfound h1 { margin-top: 28px; }
[hidden] { display: none !important; }

@media (min-width: 1550px) {
  .doc-layout { margin-left: calc(var(--sidebar) + (100vw - 1550px)/2); }
}
@media (max-width: 1200px) {
  :root { --sidebar: 228px; }
  .doc-layout { grid-template-columns: minmax(0,1fr); max-width: 980px; padding: 32px 48px 0; }
  .toc { display: none; }
  .brand { min-width: 200px; }
  .topbar { gap: 28px; }
  .sub-status { display: none; }
}
@media (max-width: 900px) {
  .top-links a:first-child { display: none; }
  .search-open { width: 280px; }
  .doc-layout { padding-left: 34px; padding-right: 34px; }
}
@media (max-width: 833px) {
  :root { --header: 102px; }
  body { font-size: 14px; }
  .topbar { height: 59px; gap: 11px; padding: 0 20px; }
  .brand { min-width: 0; gap: 8px; }
  .brand b { font-size: 18px; }
  .brand-icon { width: 26px; height: 28px; font-size: 21px; }
  .brand-divider, .brand-docs, .top-links { display: none; }
  .search-open { margin-left: auto; width: 34px; max-width: none; height: 34px; justify-content: center; padding: 0; }
  .search-open > span { position: absolute; clip: rect(0,0,0,0); width: 1px; height: 1px; overflow: hidden; }
  .search-open kbd { display: none; }
  .mobile-toggle { display: inline-flex; }
  .subbar { height: 43px; padding: 0 20px; overflow-x: auto; }
  .sub-home { display: none; }
  .subbar nav { gap: 25px; white-space: nowrap; }
  .subbar nav a { font-size: 11px; }
  .sidebar { visibility: hidden; transform: translateX(-100%); transition: transform .18s; box-shadow: 8px 0 24px #1726380c; }
  .sidebar.open { visibility: visible; transform: translateX(0); }
  .nav-backdrop { position: fixed; inset: var(--header) 0 0; z-index: 19; background: #15223b38; }
  .doc-layout { display: block; margin-left: 0; padding: 25px 23px 0; }
  .breadcrumb { font-size: 10px; margin-bottom: 27px; gap: 8px; }
  .doc-heading { padding-bottom: 24px; margin-bottom: 28px; }
  h1 { font-size: 30px; letter-spacing: -1px; }
  .eyebrow { font-size: 9px; }
  .lead { font-size: 14px; margin-bottom: 19px; }
  .meta { gap: 11px; font-size: 9px; }
  .badge { font-size: 9px; }
  .updated { padding-left: 11px; }
  .package-card { padding: 18px; }
  .doc-downloads, .package-actions { gap: 8px; }
  .download-button { padding: 10px 12px; }
  h2 { font-size: 20px; }
  body[data-page="api-reference"] main section > h2 { font-size: 19px; }
  section { margin-top: 34px; }
  .anchor { opacity: .5; }
  .codebar { padding: 8px 12px; }
  pre { padding: 17px; font-size: 11px; }
  .table-scroll { max-width: 100%; }
  table { font-size: 11px; }
  th, td { padding: 12px; }
  body[data-page="api-reference"] table { min-width: 460px; }
  #type-table { min-width: 500px; }
  .note { padding: 15px 17px; font-size: 12px; }
  .flow { grid-template-columns: 1fr 1fr; gap: 12px; padding: 15px; }
  .flow-step::after { display: none; }
  .flow-step strong { font-size: 12px; }
  .next-cards { grid-template-columns: 1fr; }
  .next-cards a { padding: 20px; }
  .formula { padding: 24px 12px; }
  .formula strong { font-size: 24px; }
  .formula small { font-size: 10px; text-align: center; }
  .download { padding: 17px 13px; gap: 12px; }
  .download strong { font-size: 13px; }
  .download small { font-size: 10px; }
  .download > span:last-child { font-size: 9px; }
  .article-footer { flex-wrap: wrap; gap: 6px; }
  dialog { margin-top: 70px; }
  .search-help { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .header, .sidebar, .toc, .page-turn, .copy, .mobile-toggle, .toast, .doc-downloads { display: none; }
  .doc-layout { display: block; margin: 0; padding: 0; max-width: none; }
  body { padding: 0; }
  a { color: inherit; }
  pre { white-space: pre-wrap; color: #263140; }
  .codebox, .codebar { background: #f7f8fa; border-color: #dce2e9; }
  pre span { color: inherit !important; }
  .codebox, .note, table { break-inside: avoid; }
}

/* Detailed API contracts retain the same documentation layout. */
main section h3 { margin: 26px 0 11px; font-size: 13px; font-weight: 650; color: #3d4c61; }
.api-condition { display: inline-flex; padding: 3px 9px; border: 1px solid #e2e7ee; border-radius: 4px; background: #f7f9fc; color: #607188; font: 10px/1.8 var(--mono); }
.api-params { min-width: 560px; }
.api-params td:nth-child(-n+3) { font-family: var(--mono); font-size: 11px; color: #394e6b; }
.api-params th:first-child { width: 20%; }
.api-params th:nth-child(2) { width: 19%; }
.api-params th:nth-child(3) { width: 15%; }
.api-errors td:first-child { width: 30%; color: #38495f; }
.api-enums td:first-child { font-family: var(--mono); font-size: 11px; width: 33%; }
body[data-page^="api-"] .toc nav { max-height: calc(100vh - 350px); overflow-y: auto; scrollbar-width: thin; }
@media (max-width: 833px) {
  main section h3 { margin-top: 22px; font-size: 12px; }
  .api-errors, .api-enums { min-width: 440px; }
}
