/* SPDX-License-Identifier: AGPL-3.0-or-later */
:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #202b2e;
  background: #fffefa;
  font-synthesis: none;
  --ink: #202b2e;
  --muted: #657176;
  --line: #e8e9e3;
  --accent: #245b68;
  --accent-soft: #eaf2f1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #2b7787; outline-offset: 3px; }
.skip-link { position: absolute; z-index: 50; top: -60px; left: 16px; padding: 12px; background: #fff; border: 1px solid var(--line); }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: #fffefaef; backdrop-filter: blur(14px); }
.header-inner { max-width: 1600px; height: 68px; margin: auto; padding: 0 32px; display: flex; align-items: center; gap: 19px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 750; letter-spacing: -.045em; white-space: nowrap; }
.brand-mark { position: relative; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: url('assets/brand-v2/app-icon.svg') center / contain no-repeat; color: transparent; font-size: 0; }
.brand-divider { width: 1px; height: 21px; background: #d9ddd9; }
.brand-section { font-size: 14px; font-weight: 620; color: #4b575a; }
.header-links { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-links a { padding: 9px 12px; border-radius: 7px; color: #607074; font-size: 13px; font-weight: 570; transition: background 140ms, color 140ms; }
.header-links a:hover, .header-links a.current { background: #eff3f0; color: #174753; }
.menu-toggle { display: none; margin-left: auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); }
.docs-layout { max-width: 1600px; min-height: calc(100vh - 68px); margin: auto; display: grid; grid-template-columns: 254px minmax(0, 1fr); }
.docs-sidebar { position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto; padding: 30px 17px 23px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.docs-sidebar a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 7px; color: #59666a; font-size: 13px; line-height: 1.3; transition: background 140ms, color 140ms, transform 140ms; }
.docs-sidebar a:hover { background: #f2f5f1; color: var(--accent); transform: translateX(2px); }
.docs-sidebar a.active { background: #e9f0ed; color: #235463; font-weight: 700; }
.docs-sidebar .sidebar-home { font-weight: 670; }
.sidebar-home span { font-size: 17px; }
.sidebar-label { margin: 28px 11px 8px; color: #88918d; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.sidebar-bottom { margin: auto 11px 0; padding-top: 32px; color: #818c8d; font-size: 11px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #7caa93; }
.docs-main { min-width: 0; max-width: 1260px; width: 100%; padding: 36px clamp(32px, 5vw, 84px) 60px; }
.eyebrow { margin-bottom: 25px; color: #8b9594; font-size: 12px; font-weight: 600; }
.docs-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 277px; align-items: center; gap: 40px; padding: 47px 48px; overflow: hidden; border: 1px solid #e4eae4; border-radius: 17px; background: radial-gradient(circle at 78% 20%, #dfece7 0, #f0f5ef 29%, transparent 55%), linear-gradient(125deg, #f5f6f0, #eaf1ec); }
.docs-hero::after { content: ""; position: absolute; width: 315px; height: 315px; right: -108px; bottom: -204px; border: 1px solid #ceded9; border-radius: 50%; pointer-events: none; }
.hero-pill { display: inline-flex; align-items: center; padding: 6px 9px; border: 1px solid #d8e5e0; border-radius: 5px; background: #ffffffa3; color: #417180; font-size: 11px; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
.docs-hero h1 { max-width: 700px; margin: 18px 0 14px; font-size: clamp(35px, 3.6vw, 52px); line-height: 1.09; letter-spacing: -.065em; }
.docs-hero p { max-width: 620px; margin-bottom: 0; color: #5d6b69; font-size: 15px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 27px; }
.primary-link { display: inline-flex; align-items: center; gap: 20px; padding: 12px 16px; border-radius: 7px; background: var(--accent); color: white; font-size: 13px; font-weight: 700; transition: background 160ms, transform 160ms; }
.primary-link:hover { background: #174955; transform: translateY(-2px); }
.subtle-link { color: #315f68; font-size: 13px; font-weight: 700; }
.subtle-link:hover { text-decoration: underline; }
.hero-steps { position: relative; z-index: 1; padding: 12px 21px; border: 1px solid #dfe8e2; border-radius: 11px; background: #fffefaeb; box-shadow: 0 14px 35px #294d4620; }
.hero-steps div { display: grid; grid-template-columns: 30px 1fr; column-gap: 11px; padding: 13px 0; }
.hero-steps div + div { border-top: 1px solid var(--line); }
.hero-steps span { grid-row: span 2; color: #69918c; font-size: 12px; font-weight: 730; }
.hero-steps strong { font-size: 12px; }
.hero-steps small { margin-top: 4px; color: #88918f; font-size: 10px; }
.developer-hero { background: radial-gradient(circle at 82% 18%, #e2eceb 0, transparent 52%), linear-gradient(125deg, #f3f6f4, #e9f0ef); }
.architecture-sketch { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 21px 17px; border: 1px solid #dce7e4; border-radius: 11px; background: #fffefaec; box-shadow: 0 14px 35px #294d4620; text-align: center; }
.architecture-sketch span, .architecture-sketch strong { width: 100%; padding: 9px; border: 1px solid #e4ece9; border-radius: 6px; color: #517079; font-size: 11px; font-weight: 640; }
.architecture-sketch strong { background: #245b68; color: white; font-size: 13px; }
.architecture-sketch small { padding: 4px 8px 0; color: #838d8e; font-size: 10px; line-height: 1.5; }
.search-box { display: flex; align-items: center; gap: 12px; max-width: 700px; margin: 34px 0 51px; padding: 0 15px; border: 1px solid #e1e5e1; border-radius: 9px; background: white; box-shadow: 0 5px 19px #284c4110; }
.search-box:focus-within { border-color: #80aaae; box-shadow: 0 0 0 3px #dcece9; }
.search-box > span { color: #677b7b; font-size: 23px; }
.search-box input { min-width: 0; width: 100%; height: 49px; border: 0; background: transparent; outline: none; color: var(--ink); font-size: 13px; }
.search-box input:focus-visible { outline: none; }
.search-box kbd { padding: 2px 6px; border: 1px solid #e1e5e1; border-radius: 4px; color: #98a29e; font-size: 11px; }
.search-empty { margin-top: -32px; color: #667; font-size: 13px; }
.content-section { margin-bottom: 68px; }
.section-heading { margin-bottom: 23px; }
.section-number { color: #5a8790; font-size: 10px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.section-heading h2 { margin: 9px 0 7px; font-size: clamp(23px, 2.4vw, 31px); letter-spacing: -.05em; }
.section-heading p { margin: 0; color: #75807d; font-size: 13px; line-height: 1.6; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.doc-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; min-height: 253px; padding: 23px; border: 1px solid #e5e8e3; border-radius: 10px; background: #fff; transition: border-color 160ms, box-shadow 160ms, transform 160ms; }
.doc-card:hover { border-color: #bfd4cd; box-shadow: 0 12px 28px #264a4313; transform: translateY(-2px); }
.doc-card.featured { background: #f5f9f6; border-color: #d7e6dd; }
.card-icon { width: 31px; height: 31px; display: grid; place-items: center; margin-bottom: 19px; border-radius: 7px; background: #dbeee7; color: #2b7269; font-size: 17px; }
.card-icon.neutral { background: #edece7; color: #6b6d67; }
.card-icon.amber { background: #f6eddb; color: #ae7941; }
.card-meta { color: #719198; font-size: 10px; font-weight: 730; letter-spacing: .035em; }
.doc-card h3 { margin: 8px 0 7px; font-size: 17px; letter-spacing: -.035em; }
.doc-card p { margin-bottom: 18px; color: #687578; font-size: 12px; line-height: 1.65; }
.doc-card a { margin-top: auto; color: #245b68; font-size: 12px; font-weight: 750; }
.doc-card a:hover { text-decoration: underline; }
.card-grid.compact .doc-card { min-height: 208px; }
.code-panel { margin-top: 17px; overflow: hidden; border: 1px solid #dfe5e1; border-radius: 10px; background: #f8faf8; }
.code-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 17px; border-bottom: 1px solid #e1e7e3; color: #667773; font-size: 11px; }
.code-head button { padding: 6px 9px; border: 1px solid #d9e3de; border-radius: 5px; background: white; color: #245b68; cursor: pointer; font-size: 11px; font-weight: 680; }
.code-head button:hover { background: #eaf2ef; }
.code-panel pre { margin: 0; overflow-x: auto; padding: 18px 20px; color: #263e3d; font-size: 12px; line-height: 1.8; }
.code-panel > p { margin: 0; padding: 10px 17px 14px; border-top: 1px solid #e1e7e3; color: #6a7674; font-size: 11px; }
.code-panel > p code, .inline-note code, .split-panel code { padding: 2px 4px; border-radius: 3px; background: #eaf0ed; }
.inline-note { margin-top: 18px; padding: 17px 19px; border-left: 3px solid #729da0; background: #f3f7f5; color: #5c6e6b; font-size: 12px; line-height: 1.7; }
.inline-note a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.split-panel { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #e5e8e3; border-radius: 10px; background: #fff; }
.split-panel > div { min-width: 0; padding: 25px; }
.split-panel > div + div { border-left: 1px solid #e5e8e3; }
.split-panel h3 { margin-bottom: 8px; font-size: 16px; letter-spacing: -.03em; }
.split-panel p { color: #687578; font-size: 12px; line-height: 1.7; }
.split-panel a { color: var(--accent); font-size: 12px; font-weight: 740; }
.split-panel a:hover { text-decoration: underline; }
.mini-code { overflow-x: auto; padding: 11px; border-radius: 6px; background: #f2f5f3; color: #335b59; font: 11px/1.6 ui-monospace, Consolas, monospace; }
.docs-footer { display: flex; justify-content: space-between; gap: 15px; padding-top: 25px; border-top: 1px solid var(--line); color: #8a9593; font-size: 11px; }
.docs-footer a { color: var(--accent); font-weight: 700; }
[hidden] { display: none !important; }
@media (max-width: 1180px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .docs-hero { grid-template-columns: minmax(0, 1fr) 238px; gap: 20px; padding: 38px; } }
@media (max-width: 850px) { .docs-layout { grid-template-columns: 1fr; } .docs-sidebar { display: none; position: fixed; z-index: 19; top: 68px; left: 0; width: min(300px, 86vw); height: calc(100vh - 68px); background: #fffefa; box-shadow: 9px 0 30px #163c3b20; } .docs-sidebar.open { display: flex; } .menu-toggle { display: inline-block; } .header-links { margin-left: auto; } .header-links a { display: none; } .header-links a.current { display: inline-flex; } .docs-main { padding: 30px 30px 55px; } }
@media (max-width: 660px) { .header-inner { padding: 0 17px; gap: 10px; } .brand-divider, .brand-section { display: none; } .header-links { margin-left: auto; } .docs-main { padding: 24px 17px 44px; } .eyebrow { margin-bottom: 15px; } .docs-hero { grid-template-columns: 1fr; padding: 28px 23px; } .docs-hero h1 { font-size: 36px; } .hero-steps, .architecture-sketch { display: none; } .search-box { margin: 24px 0 42px; } .card-grid, .split-panel { grid-template-columns: 1fr; } .doc-card, .card-grid.compact .doc-card { min-height: 0; } .split-panel > div + div { border-left: 0; border-top: 1px solid #e5e8e3; } .docs-footer { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Multi-page handbook */
.search-wrap { position: relative; max-width: 760px; margin: 26px 0 38px; }
.search-wrap .search-box { max-width: none; margin: 0; }
.search-results { position: absolute; z-index: 18; top: calc(100% + 7px); left: 0; right: 0; max-height: min(65vh, 550px); overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fffefa; box-shadow: 0 20px 50px #243f3b2a; }
.search-results[hidden] { display: none; }
.search-results a { display: grid; gap: 3px; padding: 11px 13px; border-radius: 7px; }
.search-results a:hover, .search-results a:focus-visible { background: var(--accent-soft); }
.search-results span { color: #6b8385; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.search-results strong { color: var(--ink); font-size: 14px; }
.search-results small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.search-no-results { margin: 0; padding: 17px; color: var(--muted); font-size: 13px; }
.topic-section { margin: 35px 0 48px; }
.topic-section h2 { padding-bottom: 13px; border-bottom: 1px solid var(--line); font-size: 22px; letter-spacing: -.035em; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.topic-card { display: flex; flex-direction: column; gap: 9px; min-height: 150px; padding: 19px 21px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color 140ms, transform 140ms, box-shadow 140ms; }
.topic-card:hover { border-color: #b7cfca; transform: translateY(-2px); box-shadow: 0 12px 28px #243f3b0e; }
.topic-card strong { font-size: 15px; }
.topic-card span { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.topic-card em { margin-top: auto; color: var(--accent); font-size: 12px; font-style: normal; font-weight: 700; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #879390; font-size: 12px; }
.breadcrumbs a { color: var(--accent); font-weight: 680; }
.breadcrumbs a:hover { text-decoration: underline; }
.article-layout { display: grid; grid-template-columns: minmax(0, 780px) minmax(165px, 215px); align-items: start; gap: clamp(25px, 4vw, 65px); }
.docs-article { min-width: 0; color: #344145; font-size: 15px; line-height: 1.78; }
.article-kicker { margin-bottom: 7px; color: #5f8990; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.docs-article h1 { margin-bottom: 15px; color: var(--ink); font-size: clamp(32px, 3vw, 44px); line-height: 1.13; letter-spacing: -.055em; }
.article-lead { margin-bottom: 34px; color: #58696d; font-size: 17px; line-height: 1.7; }
.docs-article h2 { margin: 39px 0 13px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); font-size: 22px; letter-spacing: -.03em; }
.docs-article h3 { margin: 27px 0 10px; color: var(--ink); font-size: 17px; }
.docs-article p, .docs-article ul, .docs-article ol { margin-bottom: 18px; }
.docs-article li { padding-left: 3px; margin: 7px 0; }
.docs-article a:not(.source-link) { color: var(--accent); text-decoration: underline; text-decoration-color: #a4c0c1; text-underline-offset: 3px; }
.docs-article code { overflow-wrap: anywhere; padding: 2px 5px; border-radius: 4px; background: #eef3f1; font-size: .91em; }
.docs-article pre { overflow-x: auto; padding: 17px; border-radius: 8px; background: #1d3035; color: #eaf3f2; }
.docs-article pre code { padding: 0; background: none; color: inherit; }
.page-toc { position: sticky; top: 105px; display: flex; flex-direction: column; gap: 10px; padding: 17px 0 17px 18px; border-left: 1px solid var(--line); color: #69797b; font-size: 12px; }
.page-toc strong { margin-bottom: 3px; color: #455a5e; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.page-toc a:hover { color: var(--accent); text-decoration: underline; }
.inline-toc { display: none; }
.article-source { margin: 40px 0 20px; }
.source-link { color: var(--accent); font-size: 12px; font-weight: 700; }
.page-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 32px 0 52px; }
.page-pagination a { display: grid; gap: 4px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none !important; }
.page-pagination a:last-child { text-align: right; }
.page-pagination a:hover { border-color: #b7cfca; background: #f6faf8; }
.page-pagination small { color: #7c8f90; font-size: 11px; }
.page-pagination strong { color: var(--accent); font-size: 13px; }
.api-operations { list-style: none; padding: 0; }
.api-operations li { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: baseline; column-gap: 12px; row-gap: 3px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.api-operations li > span:last-child { grid-column: 2; color: var(--muted); font-size: 12px; }
.http-method { font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.method-get { color: #256d77; } .method-post { color: #337453; } .method-put, .method-patch { color: #94640b; } .method-delete { color: #a64b48; }
@media (max-width: 1120px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .page-toc { display: none; } .inline-toc { display: flex; flex-wrap: wrap; gap: 8px 15px; margin: -11px 0 24px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #69797b; font-size: 12px; } .inline-toc strong { width: 100%; color: #455a5e; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; } .inline-toc a:hover { color: var(--accent); text-decoration: underline; } }
@media (max-width: 660px) { .topic-grid, .page-pagination { grid-template-columns: 1fr; } .topic-card { min-height: 0; } .breadcrumbs { gap: 6px; } .search-wrap { margin: 20px 0 28px; } .article-lead { font-size: 16px; } .api-operations li { grid-template-columns: 55px minmax(0, 1fr); column-gap: 7px; } }
