* { box-sizing: border-box; }
:root { color-scheme: light; --ink: #202925; --muted: #6c7770; --line: #e1e6e1; --paper: #ffffff; --soft: #f6f8f5; --green: #256049; --green-soft: #eaf2eb; --sidebar: 256px; }
html { min-height: 100%; scroll-padding-top: 94px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.65 "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
button, input, select { color: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
button { background: none; border: 0; }
:focus-visible { outline: 2px solid #47876b; outline-offset: 3px; }
[hidden] { display: none !important; }
svg { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: clamp(32px, 3.2vw, 46px); font-weight: 620; letter-spacing: -1.8px; line-height: 1.18; margin-bottom: 20px; overflow-wrap: anywhere; }
h2 { font-size: 23px; line-height: 1.3; font-weight: 620; letter-spacing: -.55px; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 620; }
h4 { font-size: 13px; margin: 22px 0 9px; font-weight: 650; }
p { margin-bottom: 16px; }
code, pre, kbd { font-family: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 12px; }
code { background: #f1f4f0; padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; }
pre code { padding: 0; background: none; border-radius: 0; }
kbd { font-size: 10px; line-height: 1.6; padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #6d756d; }
mark { background: #e4eed7; color: inherit; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 200; background: var(--green); color: white; padding: 10px 18px; }
.skip-link:focus { top: 10px; }
.sidebar { position: fixed; width: var(--sidebar); top: 0; bottom: 0; border-right: 1px solid var(--line); background: #f8faf7; padding: 29px 20px 0; display: flex; flex-direction: column; z-index: 40; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 650; line-height: 1.2; letter-spacing: -.5px; margin: 0 4px 31px; }
.brand-mark { width: 33px; height: 33px; display: grid; place-items: center; background: #284d3a; color: white; border-radius: 9px; font-weight: 600; font-size: 21px; }
.brand-caption { display: block; font-size: 11px; font-weight: 400; letter-spacing: .05px; color: var(--muted); padding-top: 4px; }
.version-control { margin: 0 4px 27px; }
.version-caption { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; margin-bottom: 10px; }
.version-caption span { color: var(--green); background: var(--green-soft); padding: 1px 7px; border-radius: 4px; font-size: 10px; }
.version-selectors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.version-control label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 7px; }
.version-control select { width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid #d5ddd5; border-radius: 6px; font-size: 12px; background: #fff; text-overflow: ellipsis; }
.nav-label { font-size: 9px; letter-spacing: 1.3px; color: #869086; font-weight: 650; padding: 0 11px 10px; }
#Navigation { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding: 0 1px 20px; }
.nav-group { margin: 0 0 3px; }
.nav-group summary { display: flex; align-items: center; min-height: 37px; font-weight: 580; font-size: 12px; padding: 6px 9px; border-radius: 5px; list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::before { content: '›'; font: 16px/1 Arial, sans-serif; color: #829082; margin-right: 9px; transition: transform .12s; }
.nav-group[open] > summary::before { transform: rotate(90deg); }
.nav-group summary span { margin-left: auto; color: #9ba59a; font-size: 10px; font-weight: 400; }
.nav-group summary:hover, .nav-link:hover, .nav-overview:hover { background: #edf1eb; }
.nav-children { margin: 4px 0 10px 16px; padding-left: 10px; border-left: 1px solid #dfe5db; }
.nav-link, .nav-overview { display: block; padding: 5px 9px; border-radius: 4px; font-size: 12px; color: #637162; overflow-wrap: anywhere; }
.nav-overview { font-size: 11px; }
.nav-link[aria-current] { background: #e7efe3; color: #31533b; font-weight: 600; }
.sidebar-footer { border-top: 1px solid var(--line); padding: 18px 3px; font-size: 11px; }
.sidebar-footer a { display: flex; align-items: center; gap: 8px; }
.sidebar-footer a span { font-size: 9px; color: #899387; border: 1px solid #dfe5db; border-radius: 3px; padding: 0 4px; margin-left: auto; }
.sidebar-footer small { display: block; color: #8b9489; font-size: 10px; margin-top: 8px; padding-left: 26px; }
.workspace { margin-left: var(--sidebar); min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 40px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.breadcrumb { display: flex; align-items: center; gap: 11px; min-width: 0; overflow: hidden; font-size: 11px; white-space: nowrap; color: #8b948b; }
.breadcrumb a { overflow: hidden; text-overflow: ellipsis; }
.breadcrumb [aria-current] { color: #465543; font-weight: 550; }
.search-trigger { display: flex; align-items: center; gap: 9px; border: 1px solid #e0e5dc; background: #fafbf8; border-radius: 6px; color: #7d8778; font-size: 11px; padding: 6px 9px; min-width: 253px; }
.search-trigger kbd { margin-left: auto; }
.search-trigger:hover { border-color: #afc0ac; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 5px; color: #6d7969; }
.icon-button:hover { background: var(--green-soft); }
.mobile-toggle { display: none; }
#Main { min-height: calc(100vh - 145px); outline: none; }
.browse-view { max-width: 1190px; margin: auto; padding: 59px 56px 45px; }
.eyebrow { font-size: 10px; letter-spacing: 1.45px; color: #6c8263; text-transform: uppercase; font-weight: 600; margin-bottom: 19px; }
.eyebrow span { color: #c5cec0; margin: 0 7px; }
.browse-intro { max-width: 610px; font-size: 15px; color: #788272; line-height: 1.85; margin-bottom: 25px; }
.browse-search { display: flex; align-items: center; gap: 12px; width: min(100%, 510px); border: 1px solid #d7e0d2; border-radius: 7px; padding: 13px 15px; font-size: 12px; background: #fbfcf9; color: #7b8a71; text-align: left; margin-bottom: 48px; }
.browse-search:hover { border-color: #8da284; }
.browse-search span { margin-left: auto; }
.browse-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 37px 0 18px; }
.browse-heading h2 { font-size: 16px; letter-spacing: -.2px; margin: 0; }
.text-button { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: #708068; padding: 4px 0; }
.text-button:hover { color: #285a35; }
.library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.library-card { display: flex; flex-direction: column; border: 1px solid #e0e6db; border-radius: 9px; padding: 23px 24px 20px; background: white; min-width: 0; transition: border-color .15s, background .15s; }
.library-card:hover { border-color: #aabb9f; background: #fdfefb; }
.card-kicker { display: flex; justify-content: space-between; color: #809371; font-size: 9px; letter-spacing: 1.2px; font-weight: 600; }
.card-kicker span { color: #b5c0ad; font-size: 10px; letter-spacing: 0; }
.library-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 20px; margin: 13px 0 9px; letter-spacing: -.35px; color: #36452d; overflow-wrap: anywhere; }
.library-card h3 svg { color: #8fa47e; }
.library-card p { font-size: 12px; color: #7b8872; line-height: 1.75; margin-bottom: 20px; }
.card-meta { margin-top: auto; font-size: 10px; color: #7b8d6d; }
.browse-note { border-top: 1px solid var(--line); margin-top: 33px; padding-top: 20px; font-size: 11px; color: #8b9583; }
.browse-note strong { font-weight: 550; color: #6c7d61; }
.browse-note p { margin: 4px 0; }
.document-layout { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 40px; max-width: 1440px; margin: auto; padding: 48px 38px 30px 48px; }
.document { min-width: 0; }
.document-header { border-bottom: 1px solid var(--line); padding-bottom: 27px; margin-bottom: 34px; }
.lead { font-size: 14px; color: #71806a; line-height: 1.9; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; }
.document-actions { display: flex; flex-wrap: wrap; gap: 9px 22px; margin-top: 22px; }
.doc-section { margin: 35px 0 44px; }
.anchor-heading { scroll-margin-top: 93px; }
.permalink { font-size: .8em; color: #aebda6; margin-left: 10px; font-weight: 400; opacity: .55; }
.anchor-heading:hover .permalink, .permalink:focus { opacity: 1; color: #50713b; }
.code-block { position: relative; border: 1px solid #e1e7da; border-radius: 7px; background: #f7f9f3; margin: 14px 0 22px; }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px 7px 19px; border-bottom: 1px solid #e1e7da; color: #62715b; font-size: 10px; }
.code-block pre { overflow: auto; margin: 0; padding: 15px 19px 19px; color: #263845; scrollbar-width: thin; line-height: 1.8; tab-size: 4; }
.code-copy { padding: 4px 8px; border: 1px solid #dce5d3; border-radius: 4px; color: #536749; background: #f9fbf6; font-size: 10px; }
.code-copy:hover { background: #e9f0e0; color: #496039; }
.python-keyword { color: #783faa; font-weight: 550; }
.python-builtin, .python-function { color: #175d9c; }
.python-string { color: #276a39; }
.python-number, .python-constant { color: #9b4b16; }
.python-comment { color: #667263; font-style: italic; }
.python-operator { color: #75416c; }
.method-card { padding: 30px 0 8px; border-top: 1px solid #e6ebdf; }
.method-card .anchor-heading { font-size: 20px; font-family: "Cascadia Code", Consolas, monospace; font-weight: 500; letter-spacing: -.7px; overflow-wrap: anywhere; }
.method-card > p, .method-card > .prose { font-size: 13px; color: #617255; }
.method-card:first-of-type { border-top: 0; padding-top: 10px; }
.table-scroll { width: 100%; overflow-x: auto; border: 1px solid #e3e8dc; border-radius: 6px; margin: 12px 0 24px; scrollbar-width: thin; }
table { border-collapse: collapse; width: 100%; font-size: 12px; line-height: 1.7; text-align: left; }
th, td { padding: 12px 13px; vertical-align: top; border-bottom: 1px solid #e4eadc; overflow-wrap: anywhere; }
thead th { background: #f7f9f3; font-weight: 500; font-size: 10px; color: #7a8b6e; white-space: nowrap; }
tbody th { font-weight: 400; width: 20%; max-width: 200px; }
tbody td:nth-child(2) { width: 16%; }
tbody td { color: #687b5b; min-width: 100px; }
tbody tr:last-child > * { border-bottom: 0; }
tr[id] { scroll-margin-top: 93px; }
.accepted { margin-top: 8px; line-height: 2; font-size: 11px; }
.accepted > span { font-size: 10px; color: #91a083; margin-right: 4px; }
.accepted code { padding: 2px 4px; color: #597143; font-size: 10px; }
.value-list { padding-left: 21px; margin: 7px 0 15px; overflow-wrap: anywhere; }
.value-list li { margin: 4px 0; }
.value-map { margin: 8px 0 18px; }
.value-map > div { display: grid; grid-template-columns: minmax(100px, 25%) minmax(0, 1fr); gap: 18px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.value-map dt { font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.value-map dd { margin: 0; font-size: 12px; }
.extra-field { margin-bottom: 20px; overflow-wrap: anywhere; }
.extra-field h4 { font-size: 12px; color: #687d59; }
.class-section { margin: 45px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.class-section .class-section { padding-left: 15px; border-left: 2px solid #e7eddf; }
.contents { min-width: 0; }
.contents-inner { position: sticky; top: 102px; max-height: calc(100vh - 130px); overflow-y: auto; padding-right: 5px; scrollbar-width: thin; }
.contents strong { display: block; font-size: 10px; letter-spacing: .35px; color: #738567; font-weight: 600; margin: 4px 0 15px; }
#Contents_Filter { width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 5px 7px; font-size: 10px; margin-bottom: 10px; background: #fdfefb; }
#Contents_Links { display: flex; flex-direction: column; gap: 1px; border-left: 1px solid #e6ebdf; }
#Contents_Links a { display: block; font-size: 10px; color: #8a997d; padding: 4px 8px 4px 13px; border-left: 2px solid transparent; margin-left: -1px; overflow-wrap: anywhere; line-height: 1.65; }
#Contents_Links a:hover, #Contents_Links a.active { color: #45682c; border-left-color: #7e9a65; background: #f7faf1; }
#Contents_Links a.contents-group { color: #647b53; font-weight: 550; margin-top: 6px; }
.document-bottom { border-top: 1px solid var(--line); margin-top: 50px; padding-top: 20px; color: #8b9b7d; display: flex; gap: 15px; justify-content: space-between; font-size: 10px; }
.document-bottom a { display: flex; align-items: center; gap: 7px; }
.page-footer { display: flex; gap: 7px; padding: 22px 40px; border-top: 1px solid var(--line); color: #939e89; font-size: 10px; }
.page-footer a { margin-left: auto; }
.muted { color: #8b9980; font-size: 12px; }
.inline-notice { margin-top: 20px; padding: 12px 15px; font-size: 12px; background: #fff9e9; border: 1px solid #e9d9a7; border-radius: 5px; color: #786131; }
.error-state { padding: 85px 50px; max-width: 800px; }
.error-state h1 { font-size: 32px; }
.error-state p { color: #7d8975; }
.button { display: inline-flex; align-items: center; gap: 13px; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 6px; font-size: 12px; }
.button:hover { background: #19432f; color: #fff; }
.loading-state { display: flex; align-items: center; gap: 12px; padding: 65px 50px; color: #809371; font-size: 13px; }
.loading-dot { width: 8px; height: 8px; border-radius: 50%; background: #90a77e; animation: breathe 1s infinite alternate; }
@keyframes breathe { to { opacity: .3; } }
.search-open { overflow: hidden; }
.search-dialog { width: min(740px, calc(100vw - 32px)); max-height: min(760px, calc(100dvh - 70px)); margin: max(30px, 8vh) auto auto; padding: 0; border: 1px solid #d4ddce; border-radius: 12px; color: var(--ink); background: #fff; box-shadow: 0 24px 90px #25301e33; overflow: hidden; }
.search-dialog[open] { display: flex; flex-direction: column; }
.search-dialog::backdrop { background: #1f2e2466; backdrop-filter: blur(3px); }
.search-head { display: flex; align-items: center; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--line); color: #788e65; }
.search-head input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 15px; background: #fff; color: #334b25; padding: 6px 0; }
.search-head input::placeholder { color: #9ba990; }
.search-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10px; padding: 10px 20px; background: #f8faf4; border-bottom: 1px solid var(--line); color: #869578; }
.search-tools label { display: flex; gap: 7px; align-items: center; }
.search-tools select { font-size: 10px; padding: 3px 5px; border: 1px solid #dce5d2; background: #fff; border-radius: 3px; }
.search-status { font-size: 11px; padding: 13px 20px 8px; color: #8a997e; flex-shrink: 0; }
.search-results { overflow-y: auto; flex: 1; min-height: 100px; padding: 4px 9px 12px; scrollbar-width: thin; }
.search-result { display: block; padding: 13px 13px 12px; margin: 3px 0; border: 1px solid transparent; border-radius: 7px; }
.search-result:hover, .search-result.selected, .search-result:focus-visible { background: #f5f8ef; border-color: #e0e8d6; }
.result-context { display: flex; justify-content: space-between; gap: 12px; color: #8c9b7f; font-size: 9px; margin-bottom: 4px; }
.result-context span { border: 1px solid #dce6d2; padding: 0 5px; border-radius: 3px; }
.search-result strong { display: block; color: #425d2f; font-size: 13px; overflow-wrap: anywhere; font-weight: 600; }
.result-signature { display: block; margin-top: 5px; background: transparent; padding: 0; color: #7c906b; font-size: 10px; overflow-wrap: anywhere; }
.search-result p { font-size: 11px; color: #8a997c; line-height: 1.65; margin: 6px 0 0; overflow-wrap: anywhere; }
.search-footer { display: flex; justify-content: space-between; gap: 10px; font-size: 9px; color: #96a388; padding: 11px 18px; background: #f9fbf6; border-top: 1px solid var(--line); }
.search-footer kbd { font-size: 9px; }
.search-hints { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 24px 10px 30px; font-size: 11px; color: #879777; }
.search-hints span { width: 100%; margin-bottom: 4px; }
.search-hints button { border: 1px solid #dae5ce; background: #f8fbf3; color: #708b56; border-radius: 4px; padding: 5px 9px; font-size: 11px; }
.search-retry { margin: 15px; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%, 10px); background: #304c21; color: #fff; padding: 11px 18px; border-radius: 7px; font-size: 12px; opacity: 0; visibility: hidden; transition: .15s; z-index: 100; max-width: calc(100vw - 30px); box-shadow: 0 5px 20px #263a1c22; }
.toast.visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.copy-fallback { position: fixed; left: -10000px; top: 0; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 30; background: #21321a55; }
@media (min-width: 1600px) { .browse-view { padding-top: 75px; } .document-layout { gap: 55px; padding-top: 60px; } }
@media (max-width: 1200px) { :root { --sidebar: 224px; } .sidebar { padding-left: 15px; padding-right: 15px; } .topbar { padding: 0 28px; } .browse-view { padding: 44px 34px; } .document-layout { grid-template-columns: minmax(0, 1fr) 155px; gap: 24px; padding: 36px 25px 30px 30px; } .search-trigger { min-width: 210px; } }
@media (max-width: 1020px) { .document-layout { display: flex; flex-direction: column; } .contents { order: -1; } .contents-inner { position: static; max-height: 190px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcf9; } .contents strong { margin: 0 0 5px; } #Contents_Links { display: flex; flex-direction: row; flex-wrap: wrap; gap: 3px 8px; border: 0; } #Contents_Links a { padding: 3px 0; border: 0; margin: 0; } #Contents_Links a.contents-group { margin: 0; } #Contents_Filter { max-width: 250px; } .search-trigger { min-width: 0; } .search-trigger kbd { display: none; } .library-card { padding: 19px; } }
@media (max-width: 760px) { .sidebar { transform: translateX(-100%); transition: transform .18s; width: 270px; } .sidebar-open .sidebar { transform: none; } .sidebar-open { overflow: hidden; } .workspace { margin-left: 0; } .mobile-toggle { display: inline-flex; flex-shrink: 0; } .topbar { height: 61px; padding: 0 17px; gap: 10px; } .breadcrumb { flex: 1; gap: 8px; } .search-trigger { min-width: 0; border: 0; background: transparent; padding: 6px; } .search-trigger span { display: none; } .browse-view { padding: 37px 23px; } h1 { letter-spacing: -1.2px; } .browse-intro { font-size: 14px; } .browse-search { margin-bottom: 31px; font-size: 11px; } .browse-heading { align-items: flex-start; } .browse-heading .text-button { font-size: 10px; } .library-grid { gap: 12px; } .library-card { padding: 17px; } .library-card h3 { font-size: 18px; } .library-card p { font-size: 11px; } .document-layout { padding: 24px 20px; } .document-header h1 { font-size: 36px; } .document-header { padding-bottom: 21px; } .doc-section { margin-top: 29px; } .document-actions { gap: 9px 17px; } .table-scroll { font-size: 11px; } th, td { padding: 10px; } tbody td:nth-child(2) { min-width: 75px; } tbody th { min-width: 105px; } tbody td:last-child { min-width: 190px; } .page-footer { padding: 18px 23px; } .error-state { padding: 50px 24px; } .search-dialog { margin-top: 18px; max-height: calc(100dvh - 36px); } .search-head { gap: 8px; padding: 11px 13px; } .search-head input { font-size: 13px; } .search-tools { padding: 8px 15px; } .search-footer { font-size: 8px; padding: 10px 13px; } }
@media (max-width: 460px) { .library-grid { grid-template-columns: 1fr; } .library-card { padding: 20px; } .library-card p { font-size: 12px; } .browse-heading { flex-direction: column; gap: 7px; } .browse-search { gap: 8px; padding: 12px; } .value-map > div { grid-template-columns: 1fr; gap: 4px; } .document-bottom { flex-direction: column; gap: 8px; } .search-footer > span:first-child { font-size: 8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .sidebar, .topbar, .contents, .document-actions, .code-copy, .page-footer, .search-dialog, .toast, .permalink { display: none !important; } .workspace { margin: 0; } .document-layout { display: block; padding: 0; } .document { width: 100%; } .code-block pre { white-space: pre-wrap; padding-right: 15px; } .table-scroll { overflow: visible; } .method-card { break-inside: avoid; } }
