@font-face { font-family: 'PT Sans'; src: url('/assets/fonts/pt-sans-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'PT Sans'; src: url('/assets/fonts/pt-sans-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
:root { --dark: #263239; --light: #D2DDDE; --accent: #EA5D20; --bg: #fff; --soft: #F5F7F7; --text: #1f2a30; --muted: #5d6b72; --line: #E3E8E9; --link: #1a5fb4; }
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body { margin: 0; font: 16px/1.6 'PT Sans', -apple-system, 'Segoe UI', Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent); }
.top { position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center; gap: 20px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--dark); font-size: 20px; white-space: nowrap; }
.brand img { height: 22px; display: block; }
.brand span { padding-left: 12px; border-left: 1px solid var(--line); }
.search { position: relative; flex: 1; max-width: 560px; }
.search input { width: 100%; height: 38px; padding: 0 14px 0 38px; border: 1px solid #c9d3d5; border-radius: 8px; font: inherit; font-size: 15px; outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235d6b72' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5.5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") 12px center no-repeat; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(234,93,32,.15); }
.results { position: absolute; top: 44px; left: 0; right: 0; max-height: 70vh; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.results a { display: block; padding: 10px 14px; color: var(--text); border-bottom: 1px solid var(--line); }
.results a:last-child { border-bottom: 0; }
.results a:hover, .results a.sel { background: var(--soft); }
.results b { display: block; color: var(--dark); }
.results small { color: var(--muted); display: block; font-size: 13px; line-height: 1.4; }
.results mark { background: #ffe2d3; color: inherit; }
.results .empty { padding: 12px 14px; color: var(--muted); }
.to-service { margin-left: auto; padding: 8px 16px; border-radius: 8px; background: var(--accent); color: #fff; white-space: nowrap; font-weight: 700; font-size: 15px; }
.to-service:hover { color: #fff; background: #d14f16; }
.burger { display: none; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; padding: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' stroke='%23263239' stroke-width='2'%3E%3Cpath d='M2 5h18M2 11h18M2 17h18'/%3E%3C/svg%3E") center no-repeat; }
.layout { display: grid; grid-template-columns: 300px minmax(0, 1fr) 240px; max-width: 1440px; margin: 0 auto; min-height: calc(100vh - 140px); }
.nav { position: sticky; top: 60px; height: calc(100vh - 60px); overflow: auto; padding: 20px 12px 40px 20px; border-right: 1px solid var(--line); font-size: 15px; }
.nav-group { margin-bottom: 6px; }
.nav-group summary { cursor: pointer; list-style: none; padding: 6px 8px; font-weight: 700; color: var(--dark); border-radius: 6px; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; position: relative; top: -1px; }
.nav-group[open] > summary::before { transform: rotate(45deg); }
.nav ul { list-style: none; margin: 0; padding: 0 0 0 16px; }
.nav li a { display: block; padding: 4px 8px; color: var(--text); border-radius: 6px; line-height: 1.35; }
.nav li a:hover { background: var(--soft); color: var(--text); }
.nav li a.active { background: #fdeee6; color: var(--accent); font-weight: 700; }
.nav .has-kids > .row { display: flex; align-items: center; }
.nav .has-kids > .row a { flex: 1; }
.nav .kid-toggle { width: 24px; height: 24px; border: 0; background: none; cursor: pointer; position: relative; flex: 0 0 auto; }
.nav .kid-toggle::before { content: ''; position: absolute; left: 8px; top: 7px; width: 6px; height: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
.nav .has-kids.open > .row .kid-toggle::before { transform: rotate(45deg); }
.nav .has-kids > ul { display: none; }
.nav .has-kids.open > ul { display: block; }
.content { padding: 24px 48px 64px; min-width: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.crumbs .sep { margin: 0 8px; color: #b0bbbf; }
article h1 { font-size: 34px; line-height: 1.2; margin: 4px 0 20px; color: var(--dark); }
article h2 { font-size: 24px; line-height: 1.3; margin: 36px 0 12px; color: var(--dark); }
article h3 { font-size: 19px; margin: 24px 0 8px; color: var(--dark); }
article p, article li { max-width: 820px; }
article ol, article ul { padding-left: 24px; }
article li { margin: 4px 0; }
article code { font: 14px/1.4 ui-monospace, 'SFMono-Regular', Consolas, monospace; background: var(--soft); padding: 1px 5px; border-radius: 4px; }
article pre { background: var(--soft); padding: 12px 16px; border-radius: 8px; overflow: auto; max-width: 820px; }
article pre code { background: none; padding: 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; max-width: 100%; }
article table { border-collapse: collapse; font-size: 15px; min-width: 60%; }
article th, article td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
article th { background: var(--soft); font-weight: 700; }
.callout { max-width: 820px; margin: 16px 0; padding: 12px 16px 4px; border-radius: 8px; border-left: 4px solid; }
.callout-title { font-weight: 700; margin-bottom: 4px; }
.callout p { margin: 0 0 8px; }
.callout-note { background: #eef4fb; border-color: #5b8fd1; }
.callout-tip { background: #edf7ef; border-color: #3f9b55; }
.callout-warning { background: #fff5e8; border-color: #f0a43a; }
.callout-important { background: #fdeee6; border-color: var(--accent); }
figure.shot { margin: 20px 0; max-width: 900px; }
figure.shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.06); cursor: zoom-in; }
figure.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 820px; }
.pager a { display: block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; max-width: 48%; color: var(--dark); }
.pager a span { display: block; font-size: 13px; color: var(--muted); }
.pager a:hover { border-color: var(--accent); }
.pager .next { text-align: right; margin-left: auto; }
.onpage { position: sticky; top: 60px; height: calc(100vh - 60px); overflow: auto; padding: 28px 16px; font-size: 14px; }
.onpage-title { font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.onpage ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.onpage li a { display: block; padding: 3px 12px; color: var(--muted); margin-left: -2px; border-left: 2px solid transparent; }
.onpage li a.cur { color: var(--accent); border-left-color: var(--accent); }
.home .layout { grid-template-columns: 300px minmax(0, 1fr); }
.home .onpage { display: none; }
.sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 28px; }
.section-card { border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px 16px; background: #fff; }
.section-card h2 { font-size: 20px; margin: 16px 0 8px; }
.section-card ul { list-style: none; padding: 0; margin: 0; }
.section-card li { margin: 8px 0; max-width: none; }
.section-card li a { font-weight: 700; }
.section-card li span { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }
.section-card li.child { margin: 4px 0 4px 14px; }
.section-card li.child a { font-weight: 400; }
.section-card li.child span { display: none; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); background: var(--soft); }
.foot a { color: var(--muted); margin-left: 20px; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20,28,32,.85); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; background: #fff; }
@media (max-width: 1200px) { .layout { grid-template-columns: 280px minmax(0, 1fr); } .onpage { display: none; } }
@media (max-width: 860px) {
  .burger { display: block; }
  .layout, .home .layout { grid-template-columns: 1fr; }
  .nav { position: fixed; top: 60px; left: 0; bottom: 0; width: 86%; max-width: 340px; height: auto; background: #fff; z-index: 30; transform: translateX(-105%); transition: transform .2s; box-shadow: 4px 0 20px rgba(0,0,0,.15); }
  body.nav-open .nav { transform: none; }
  .content { padding: 16px 18px 48px; }
  .brand span, .to-service { display: none; }
  article h1 { font-size: 27px; }
  .top { gap: 10px; padding: 0 12px; }
}
