:root {
  color-scheme: light;
  --ink: #161b1b;
  --muted: #657171;
  --white: #fff;
  --surface: #f6f8f8;
  --surface-strong: #edf2f1;
  --teal-950: #0a3432;
  --teal-800: #135a53;
  --teal-600: #168779;
  --teal-100: #d9eeea;
  --shadow: 0 9px 24px rgb(8 36 33 / 8%);
  --shadow-overlay: 0 18px 48px rgb(8 36 33 / 22%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
body { height: 100%; margin: 0; overflow: hidden; color: var(--ink); background: var(--white); }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; }
::selection { background: var(--teal-100); }
:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; }

.page-grid { position: fixed; inset: 0; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.side-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--surface); }
.sidebar-header { height: 56px; flex: none; display: flex; align-items: center; padding: 0 20px; color: var(--white); background: var(--teal-950); }
.brand { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 720; white-space: nowrap; }
.brand .icon { width: 19px; height: 19px; filter: brightness(0) invert(1); }
.sidebar-tabs { flex: none; display: flex; gap: 4px; padding: 12px 12px 8px; }
.sidebar-tabs a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; padding: 0 8px; color: var(--muted); font-size: 12px; font-weight: 650; border-radius: 4px; }
.sidebar-tabs a:hover, .sidebar-tabs a.active { background: var(--teal-100); color: var(--teal-950); }
.sidebar-tabs .icon { width: 15px; height: 15px; }
.sidebar { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 8px 12px 20px; }
.sidebar-group + .sidebar-group { margin-top: 9px; }
.sidebar-heading, .sidebar-section-heading { display: flex; align-items: center; margin: 0; }
.sidebar-heading { min-height: 28px; padding: 0 9px; color: var(--teal-800); font-size: 12px; font-weight: 750; }
.sidebar-sections { padding: 1px 0 3px 12px; }
.sidebar-section + .sidebar-section { margin-top: 5px; }
.sidebar-section-heading { min-height: 25px; padding: 0 8px; color: #506561; background: var(--surface-strong); border-radius: 3px; font-size: 11px; font-weight: 700; }
.sidebar-items { padding: 1px 0 3px 11px; }
.sidebar-link { display: block; padding: 5px 8px; border-radius: 4px; color: #465351; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.sidebar-link:hover { color: var(--teal-950); background: var(--surface-strong); }
.sidebar-link.active { color: var(--teal-950); background: var(--teal-100); font-weight: 700; }
.sidebar-agent { flex: none; margin-top: auto; padding: 11px 21px 17px; color: var(--muted); font-size: 11px; }
.sidebar-agent:hover { color: var(--teal-800); }
.workspace { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.workspace main { min-width: 0; min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior-y: contain; }
.workspace main:focus { outline: 0; }
.mobile-header, .nav-scrim, .nav-close { display: none; }
.icon-button { border: 0; background: transparent; color: inherit; cursor: pointer; }
.eyebrow { margin: 0 0 9px; color: var(--teal-600); font-size: 12px; font-weight: 750; }

.home-intro { padding: 55px min(5vw, 70px) 41px; background: var(--surface-strong); }
.home-intro h1, .page-heading h1 { margin: 0; font-size: 32px; line-height: 1.25; font-weight: 760; }
.home-intro > p:last-of-type { margin: 12px 0 25px; color: var(--muted); font-size: 15px; }
.home-search { display: flex; align-items: center; gap: 12px; width: min(100%, 560px); height: 48px; padding: 0 16px; border-radius: 4px; background: var(--white); box-shadow: var(--shadow); color: var(--muted); font-size: 14px; }
.home-search:hover { color: var(--teal-800); }
.home-search .icon { opacity: .75; }
.catalog-section { padding: 35px min(5vw, 70px) 12px; scroll-margin-top: 80px; }
.catalog-section:last-child { padding-bottom: 24px; }
.domain-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 22px; }
.domain-heading h2 { margin: 0; font-size: 23px; font-weight: 750; line-height: 1.3; }
.domain-heading .eyebrow { margin-bottom: 4px; }
.catalog-group { scroll-margin-top: 80px; }
.catalog-group + .catalog-group { margin-top: 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.section-heading h3 { margin: 0; font-size: 16px; font-weight: 720; line-height: 1.35; }
.section-heading .eyebrow { margin-bottom: 4px; }
.count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.document-list { display: grid; }
.document-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; padding: 16px 18px; border-radius: 4px; }
.document-row:nth-child(odd) { background: var(--surface); }
.document-row:hover { background: var(--teal-100); }
.document-row > span { min-width: 0; display: grid; gap: 5px; }
.document-row strong { font-size: 15px; font-weight: 700; }
.document-row small { color: var(--muted); font-size: 12px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.document-row .icon { width: 16px; height: 16px; opacity: .6; }

.page-heading { padding: 55px min(5vw, 70px) 23px; }
.search-form { margin: 0 min(5vw, 70px); height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 17px; background: var(--surface); border-radius: 4px; box-shadow: inset 0 0 0 2px transparent; }
.search-form:focus-within { box-shadow: inset 0 0 0 2px var(--teal-600); }
.search-form input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
.search-form input::placeholder { color: #8d9b99; }
.search-status { margin: 28px min(5vw, 70px) 11px; color: var(--muted); font-size: 12px; }
.search-page .document-list { margin: 0 min(5vw, 70px) 70px; }
.result-category { color: var(--teal-600) !important; font-weight: 700; }

.article-layout { width: 100%; max-width: 1000px; margin-inline: auto; padding: 50px min(5vw, 70px) 100px; }
.article { min-width: 0; }
.article-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 13px; color: var(--muted); font-size: 12px; }
.article-meta a:hover, .article-footer a:hover { color: var(--teal-600); }
.prose { font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.prose h1 { margin: 0 0 23px; font-size: 29px; line-height: 1.35; font-weight: 760; }
.prose h2 { margin: 43px 0 15px; font-size: 20px; line-height: 1.4; font-weight: 730; scroll-margin-top: 85px; }
.prose h3 { margin: 29px 0 12px; font-size: 16px; font-weight: 730; scroll-margin-top: 85px; }
.prose p { margin: 0 0 17px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { padding-left: 2px; margin: 5px 0; }
.prose li::marker { color: var(--teal-600); }
.prose a { color: var(--teal-800); text-decoration: underline; text-decoration-color: #9bcac1; text-underline-offset: 3px; }
.prose a:hover { color: var(--teal-600); }
.prose blockquote { margin: 22px 0; padding: 6px 20px; background: var(--surface-strong); color: #394744; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { padding: 2px 5px; background: var(--surface-strong); border-radius: 3px; font-size: .9em; }
.prose pre { max-width: 100%; margin: 21px 0; padding: 20px; overflow-x: auto; border-radius: 4px; color: #e9f5f1; background: var(--teal-950); line-height: 1.6; }
.prose pre code { padding: 0; color: inherit; background: transparent; }
.prose table { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 22px 0; font-size: 13px; }
.prose th, .prose td { padding: 10px 12px; text-align: left; vertical-align: top; background: var(--surface); }
.prose th { background: var(--surface-strong); font-weight: 720; }
.prose tr:nth-child(even) td { background: var(--white); }
.article-footer { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 62px; padding-top: 19px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.article-footer a { color: var(--teal-800); }
@media (max-width: 1024px) {
  .page-grid { display: block; }
  .side-panel { position: fixed; inset: 0 auto 0 0; z-index: 30; width: min(82vw, 320px); transform: translateX(-100%); visibility: hidden; pointer-events: none; transition: transform 180ms ease; overflow: hidden; box-shadow: var(--shadow-overlay); }
  .nav-opened .side-panel { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .mobile-header { height: 56px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 18px; color: var(--white); background: var(--teal-950); font-size: 14px; font-weight: 700; }
  .mobile-header .nav-open { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; }
  .mobile-header > a { margin-left: auto; padding: 8px; }
  .mobile-header .icon { width: 19px; height: 19px; filter: brightness(0) invert(1); }
  .nav-close { width: 36px; height: 36px; display: grid; place-items: center; margin-left: auto; padding: 0; }
  .nav-close .icon { filter: brightness(0) invert(1); }
  .nav-scrim { position: fixed; inset: 0; z-index: 20; width: 100%; padding: 0; border: 0; background: rgb(0 0 0 / 35%); }
  .nav-opened .nav-scrim { display: block; }
  .workspace { height: 100%; }
  .article-layout { padding: 34px 6vw 70px; }
}
@media (max-width: 560px) {
  .home-intro { padding: 39px 20px 33px; }
  .home-intro h1, .page-heading h1 { font-size: 27px; }
  .catalog-section { padding: 28px 20px 5px; }
  .catalog-section:last-child { padding-bottom: 20px; }
  .domain-heading h2 { font-size: 20px; }
  .document-row { padding: 14px 12px; min-height: 76px; }
  .document-row strong { font-size: 14px; }
  .page-heading { padding: 39px 20px 20px; }
  .search-form { margin: 0 20px; }
  .search-status { margin-left: 20px; margin-right: 20px; }
  .search-page .document-list { margin-left: 20px; margin-right: 20px; }
  .article-layout { padding: 26px 20px 60px; }
  .prose { font-size: 14px; }
  .prose h1 { font-size: 24px; }
  .prose h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .side-panel { transition: none; }
}
