/* User manuals (/manuals/<product>/): one design for every manual, made with templates/manual.php */
:root {
  --ink: #0b1324;
  --text: #25304a;
  --muted: #5d6a83;
  --line: #e3e8f1;
  --soft: #f4f6fa;
  --bg: #ffffff;
  --accent: #0175b8;
  --accent-dark: #015f96;
  --accent-soft: #e3f1fa;
  --blue: #0175b8;
  --blue-soft: #e8f3fa;
  --green: #138a4b;
  --green-soft: #e4f6ec;
  --amber: #b26a00;
  --amber-soft: #fff3dc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 19, 36, .05), 0 8px 24px rgba(11, 19, 36, .06);
  --head: 'Sora', 'Segoe UI', Arial, sans-serif;
  --body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --side: 292px;
  --top: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 20px); }
body { margin: 0; font-family: var(--body); font-size: 16.5px; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.25; letter-spacing: -.02em; }
code, kbd { font-family: 'Cascadia Mono', Consolas, Menlo, monospace; font-size: .88em; }
code { overflow-wrap: anywhere; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink); }
pre { background: var(--ink); color: #e8edf8; border-radius: 12px; padding: 18px 20px; overflow-x: auto; font-family: 'Cascadia Mono', Consolas, Menlo, monospace; font-size: 14px; line-height: 1.6; white-space: pre; }
kbd { background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--top); background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { height: 100%; max-width: 1480px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; color: var(--ink); font-size: 17px; letter-spacing: -.02em; white-space: nowrap; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.brand .t { overflow: hidden; text-overflow: ellipsis; }
.brand small { font-family: var(--body); font-weight: 500; color: var(--muted); font-size: 13px; padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line); }
.top-links { display: flex; gap: 18px; font-size: 14px; white-space: nowrap; }
.top-links a { color: var(--muted); font-weight: 500; }
.top-links a:hover { color: var(--ink); text-decoration: none; }
.top-search { position: relative; flex: 1; max-width: 420px; margin-left: auto; }
.top-search input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); padding: 0 16px 0 40px; font: inherit; font-size: 14.5px; color: var(--ink); outline: none; transition: .15s; }
.top-search input:focus { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.top-search svg, .hero-search svg { position: absolute; pointer-events: none; stroke: var(--muted); fill: none; stroke-width: 2; }
.top-search svg { left: 14px; top: 11px; width: 18px; height: 18px; }
.search-results { position: absolute; left: 0; right: 0; top: 48px; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); max-height: 70vh; overflow: auto; display: none; }
.search-results.open { display: block; }
.search-results a { display: block; padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.search-results a:last-child { border: 0; }
.search-results a:hover, .search-results a.sel { background: var(--soft); text-decoration: none; }
.search-results b { display: block; font-size: 14.5px; }
.search-results span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.search-results em { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-dark); font-weight: 700; }
.search-empty { padding: 16px; color: var(--muted); font-size: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px; border: 1px solid transparent; cursor: pointer; transition: .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--accent); }
.btn-lg { height: 52px; padding: 0 30px; font-size: 16px; }
.menu-btn { display: none; flex: none; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; padding: 0; }
.menu-btn svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2; fill: none; margin: auto; }

/* ---------- layout ---------- */
.shell { max-width: 1480px; margin: 0 auto; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
.sidebar { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; padding: 26px 18px 40px 24px; border-right: 1px solid var(--line); font-size: 14.5px; }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.nav-home { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); padding: 7px 10px; border-radius: 8px; margin-bottom: 8px; }
.nav-home:hover { background: var(--soft); text-decoration: none; }
.nav-pdf { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 6px 10px; border-radius: 8px; margin: -4px 0 8px; }
.nav-pdf svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.nav-pdf:hover { color: var(--accent-dark); background: var(--soft); text-decoration: none; }
.nav-group { margin-bottom: 4px; }
.nav-group > button { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; width: 100%; cursor: pointer; font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding: 12px 10px 8px; }
.nav-group > button:focus-visible { outline: 2px solid var(--accent); border-radius: 6px; }
.nav-group > button svg { flex: none; width: 14px; height: 14px; stroke: var(--muted); stroke-width: 2.4; fill: none; transition: .2s; }
.nav-group.closed > button svg { transform: rotate(-90deg); }
.nav-group.closed ul { display: none; }
.nav-group ul { list-style: none; margin: 0; padding: 0 0 6px; }
.nav-group li a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); line-height: 1.4; }
.nav-group li a:hover { color: var(--ink); background: var(--soft); text-decoration: none; }
.nav-group li a.active { color: var(--accent-dark); background: var(--accent-soft); font-weight: 600; }
.main { padding: 38px 56px 80px; min-width: 0; }
.article-wrap { display: grid; grid-template-columns: minmax(0, 820px) 220px; gap: 56px; justify-content: start; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 6px; opacity: .6; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
article h1 { font-size: 40px; margin: 0 0 14px; letter-spacing: -.03em; }
.lead { font-size: 19.5px; line-height: 1.6; color: var(--muted); margin: 0 0 30px; }
article h2 { font-size: 26px; margin: 46px 0 14px; padding-top: 8px; }
article h3 { font-size: 19px; margin: 30px 0 8px; }
article h4 { font-size: 16.5px; margin: 24px 0 6px; }
article p { margin: 0 0 16px; }
article ul, article ol { margin: 0 0 18px; padding-left: 24px; }
article li { margin-bottom: 7px; }
article li::marker { color: var(--accent); font-weight: 700; }
article hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
article dt { font-weight: 700; color: var(--ink); }
article dd { margin: 0 0 12px 18px; }
article blockquote { margin: 22px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--line); color: var(--muted); }
.updated { font-size: 13.5px; color: var(--muted); margin: 40px 0 0; }

/* ---------- content blocks ---------- */
.shot { margin: 26px 0 30px; }
.shot img { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.shot a { display: block; }
.shot figcaption { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 10px; }
.note, .tip, .warn { border-radius: 12px; padding: 14px 18px 14px 50px; margin: 22px 0; position: relative; font-size: 15.5px; line-height: 1.6; }
.note::before, .tip::before, .warn::before { position: absolute; left: 16px; top: 13px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--head); color: #fff; }
.note { background: var(--blue-soft); border: 1px solid #bcdcef; }
.note::before { content: 'i'; background: var(--blue); }
.tip { background: var(--green-soft); border: 1px solid #bfe8d0; }
.tip::before { content: '\2713'; background: var(--green); }
.warn { background: var(--amber-soft); border: 1px solid #f6d99b; }
.warn::before { content: '!'; background: var(--amber); }
.note > :last-child, .tip > :last-child, .warn > :last-child { margin-bottom: 0; }
.note ul, .tip ul, .warn ul { margin-bottom: 0; }
.steps { list-style: none; counter-reset: s; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding: 2px 0 2px 52px; margin-bottom: 18px; min-height: 36px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 15px/36px var(--head); text-align: center; }
.table { overflow-x: auto; margin: 22px 0 28px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { background: var(--soft); text-align: left; font-family: var(--head); font-size: 13px; letter-spacing: .02em; color: var(--ink); padding: 11px 16px; vertical-align: bottom; }
td { padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: top; }
td:first-child { font-weight: 600; color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 24px 0; }
.card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff; color: var(--text); transition: .15s; }
.card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.card b { display: block; font-family: var(--head); color: var(--ink); margin-bottom: 4px; font-size: 16px; line-height: 1.35; }
.card span { font-size: 14.5px; color: var(--muted); line-height: 1.5; display: block; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); vertical-align: middle; }
.path { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--ink); color: #fff; font-size: 13.5px; line-height: 1.5; padding: 6px 14px; border-radius: 999px; margin: 0 0 22px; }
.path b, .path a { color: #fff; }
p.path { display: flex; width: fit-content; max-width: 100%; }

/* ---------- right TOC, prev/next, CTA ---------- */
.toc { position: sticky; top: calc(var(--top) + 28px); align-self: start; font-size: 13.5px; border-left: 2px solid var(--line); padding-left: 16px; max-height: calc(100vh - 120px); overflow: auto; }
.toc b { display: block; font-family: var(--head); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink); }
.toc a { display: block; color: var(--muted); padding: 4px 0; line-height: 1.4; }
.toc a:hover { color: var(--accent-dark); text-decoration: none; }
.toc a.on { color: var(--accent-dark); font-weight: 600; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 56px 0 30px; }
.pager a { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; color: var(--ink); transition: .15s; }
.pager a:hover { border-color: var(--accent); text-decoration: none; box-shadow: var(--shadow); }
.pager small { display: block; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.pager b { font-family: var(--head); font-size: 15.5px; }
.pager .next { text-align: right; grid-column: 2; }
.related { margin: 40px 0 0; }
.related h2 { font-size: 20px; margin: 0 0 4px; }
.cta { margin: 48px 0 0; background: var(--ink); color: #dbe3f5; border-radius: 22px; padding: 38px 40px; position: relative; overflow: hidden; }
.cta::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 90% 120%, rgba(1, 117, 184, .55), transparent 60%); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; margin: 0 0 8px; font-size: 26px; padding: 0; }
.cta p { margin: 0 0 20px; max-width: 560px; color: #b4c0d8; }
.cta .btn { margin-right: 10px; margin-bottom: 8px; }
.cta .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--soft); }
.foot-in { max-width: 1480px; margin: 0 auto; padding: 30px 24px; display: flex; flex-wrap: wrap; gap: 18px 36px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.foot b { color: var(--ink); }
.foot a { color: var(--muted); margin-right: 18px; }
.foot a:hover { color: var(--ink); }

/* ---------- home page of a manual ---------- */
.hero { background: radial-gradient(1200px 520px at 85% -10%, rgba(1, 117, 184, .18), transparent 60%), linear-gradient(180deg, #fff, var(--soft)); border-bottom: 1px solid var(--line); }
.hero-in { max-width: 1180px; margin: 0 auto; padding: 64px 24px 60px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero-in.solo { grid-template-columns: minmax(0, 760px); }
.hero .crumbs { margin-bottom: 18px; }
.hero h1 { font-size: 52px; margin: 0 0 18px; letter-spacing: -.04em; line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 560px; }
.hero-meta { font-size: 14px !important; margin: 18px 0 0 !important; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-search { position: relative; margin: 0 0 26px; max-width: 540px; }
.hero-search input { width: 100%; height: 56px; border: 1px solid var(--line); border-radius: 999px; padding: 0 22px 0 52px; font: inherit; font-size: 16.5px; box-shadow: var(--shadow); outline: none; background: #fff; }
.hero-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.hero-search svg { left: 19px; top: 17px; width: 22px; height: 22px; }
.hero-search .search-results { top: 62px; text-align: left; }
.hero-shot img { border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(11, 19, 36, .35); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0 8px; }
.section-head { margin-bottom: 18px; }
.section-head h2 { font-size: 28px; margin: 0; letter-spacing: -.03em; }
.part-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; font: 700 14px var(--head); margin-right: 10px; vertical-align: 3px; }
.cards.three { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.index-cta { margin: 70px 0; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) { .article-wrap { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } .main { padding: 34px 40px 70px; } .top-links { display: none; } }
@media (max-width: 960px) {
  .shell { display: block; }
  .menu-btn { display: grid; }
  .brand small { display: none; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: var(--top); width: 310px; max-width: 86vw; background: #fff; transform: translateX(-102%); transition: .25s; visibility: hidden; }
  body.menu-open .sidebar { transform: none; visibility: visible; box-shadow: 0 20px 50px rgba(11, 19, 36, .25); }
  .main { padding: 26px 20px 60px; }
  article h1 { font-size: 31px; }
  article h2 { font-size: 23px; }
  .lead { font-size: 17.5px; }
  .hero-in { grid-template-columns: 1fr; padding: 40px 20px 40px; gap: 34px; }
  .hero h1 { font-size: 36px; }
  .top-search { max-width: none; }
  .topbar .btn-accent { display: none; }
}
@media (max-width: 600px) {
  .topbar-in { padding: 0 14px; gap: 10px; }
  .brand .t { display: none; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: auto; }
  .cta { padding: 28px 22px; }
  table { font-size: 14px; }
  th, td { padding: 9px 11px; }
  .wrap { padding: 0 16px; }
  .hero-in { padding: 32px 16px; }
  .main { padding: 22px 16px 50px; }
}
@media print { .topbar, .sidebar, .toc, .cta, .pager, .foot, .related { display: none; } .shell { display: block; } .main { padding: 0; } }
