/* LADOPOS - mwongozo (manual) */
:root { --p: #1e74bd; --p50: #eef5fc; --dark: #232323; --text: #0f172a; --muted: #5b6b80; --border: #e2e8f0; --bg: #f6f8fb; --ok: #16a34a; --warn: #b45309; --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 15.5px; line-height: 1.6; }
a { color: var(--p); }
.hidden { display: none !important; }
.hbar { position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 18px; background: var(--dark); color: #fff; }
.hbar .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.hbar .brand img { width: 36px; height: 36px; border-radius: 9px; background: #fff; }
.hbar .brand span { display: flex; flex-direction: column; line-height: 1.15; }
.hbar .brand small { color: rgba(255,255,255,.65); font-size: 12px; }
.hbar .search { flex: 1; max-width: 420px; }
.hbar .search input { width: 100%; height: 38px; border-radius: 9px; border: 0; padding: 0 12px; font: inherit; font-size: 14px; }
.hbar .tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.seg { display: inline-flex; border-radius: 9px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); }
.seg button { border: 0; background: transparent; color: rgba(255,255,255,.75); font: inherit; font-size: 13.5px; font-weight: 600; padding: 7px 11px; cursor: pointer; }
.seg button.on { background: var(--p); color: #fff; }
.hbtn { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.hbtn:hover { background: rgba(255,255,255,.1); }
.hbtn.menu { display: none; font-size: 18px; }
.layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); max-width: 1320px; margin: 0 auto; }
.toc { position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; padding: 18px 12px 40px 18px; border-right: 1px solid var(--border); background: #fff; }
.toc-h { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.toc .tg { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: #94a3b8; margin: 14px 0 4px; font-weight: 700; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.35; }
.toc a span { color: var(--muted); margin-right: 2px; }
.toc a:hover { background: var(--p50); }
.toc a.active { background: var(--p); color: #fff; }
.toc a.active span, .toc a.active .tv { color: #fff; }
.toc a.dim { opacity: .35; }
.toc .tv { font-style: normal; color: var(--p); font-size: 10px; }
.toc .tvids { margin-top: 14px; font-weight: 650; color: var(--p); border: 1px dashed var(--p); }
.doc { padding: 26px 34px 80px; min-width: 0; }
.cover { background: linear-gradient(120deg, #232323 0%, #1b4f80 100%); color: #fff; border-radius: 16px; padding: 34px 36px; margin-bottom: 26px; }
.cover .clogo { height: 54px; background: #fff; border-radius: 10px; padding: 6px 10px; }
.cover h1 { font-size: 34px; margin: 18px 0 4px; line-height: 1.15; }
.cover .sub { font-size: 18px; opacity: .85; margin: 0; }
.cover .cfoot { margin: 22px 0 0; font-size: 13px; opacity: .6; }
.sec { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px 30px; margin-bottom: 18px; }
.sec h2 { font-size: 23px; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; line-height: 1.25; }
.sec h2 .n { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--p); color: #fff; font-size: 17px; }
.sec h3 { font-size: 17px; margin: 22px 0 6px; }
.sec p { margin: 8px 0; }
.ghead { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin: 30px 0 10px 4px; }
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 10px 0; }
ol.steps > li { counter-increment: s; position: relative; padding: 6px 0 6px 42px; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 5px; width: 28px; height: 28px; border-radius: 50%; background: var(--p50); color: var(--p); border: 2px solid var(--p); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
ul { padding-left: 22px; }
li { margin: 3px 0; }
code { background: #f1f5f9; border-radius: 5px; padding: 1px 6px; font-size: 13.5px; font-family: Consolas, "Courier New", monospace; }
figure { margin: 16px 0; }
figure img { width: 100%; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 6px 20px rgba(15,23,42,.08); display: block; }
figcaption { color: var(--muted); font-size: 13.5px; text-align: center; margin-top: 6px; font-style: italic; }
.tip, .warn { border-radius: 10px; padding: 11px 14px; margin: 14px 0; }
.tip { background: #f0fdf4; border-left: 4px solid var(--ok); }
.warn { background: #fffbeb; border-left: 4px solid #d97706; }
.tbl { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14.5px; }
.tbl th, .tbl td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.tbl th { background: #f8fafc; }
.totop { display: inline-block; margin-top: 10px; font-size: 13px; text-decoration: none; color: var(--muted); }
.vbox { position: relative; border-radius: 12px; overflow: hidden; background: #0f172a; aspect-ratio: 16 / 9; cursor: pointer; margin: 4px 0 18px; max-width: 760px; }
.vbox img { width: 100%; height: 100%; object-fit: cover; opacity: .9; display: block; }
.vbox video { width: 100%; height: 100%; display: block; background: #000; }
.vbox.playing { cursor: default; }
.vplay { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; background: rgba(30,116,189,.95); display: grid; place-items: center; box-shadow: 0 8px 26px rgba(0,0,0,.35); transition: transform .15s; }
.vplay svg { width: 34px; height: 34px; fill: #fff; margin-left: 4px; }
.vplay.sm { width: 46px; height: 46px; } .vplay.sm svg { width: 22px; height: 22px; }
.vbox:hover .vplay { transform: scale(1.08); }
.vcap { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.72); color: #fff; padding: 5px 11px; border-radius: 8px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.vcap svg { width: 14px; height: 14px; fill: #fff; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.vcard { border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 0; overflow: hidden; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.vcard:hover { box-shadow: 0 10px 28px rgba(15,23,42,.15); }
.vcard .th { position: relative; display: block; aspect-ratio: 16 / 9; background: #0f172a; }
.vcard .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard .dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.75); color: #fff; font-size: 11.5px; font-weight: 650; padding: 1px 6px; border-radius: 5px; }
.vcard .vt { display: block; padding: 9px 11px 11px; font-weight: 600; font-size: 14px; line-height: 1.3; }
.vnote { background: var(--p50); border-radius: 10px; padding: 9px 14px; margin: 0 0 14px; font-size: 14px; color: #1e3a5f; }
.noresult { text-align: center; color: var(--muted); padding: 40px; }
/* ndani ya app (iframe) */
body.embed .hbar .brand { display: none; }
/* simu na tablet */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .toc { position: fixed; left: 0; top: 60px; bottom: 0; width: 300px; z-index: 30; transform: translateX(-105%); transition: transform .2s; box-shadow: 0 10px 40px rgba(0,0,0,.25); height: auto; }
  body.toc-open .toc { transform: none; }
  .hbtn.menu { display: inline-flex; }
  .doc { padding: 16px 14px 60px; }
  .sec { padding: 20px 16px; }
  .hbar .search { display: none; }
  #print, .hbar .brand small { display: none; }
  .cover { padding: 24px 20px; } .cover h1 { font-size: 26px; }
}
@media (max-width: 520px) { #pdf { display: none; } }
/* Kuchapisha / PDF */
body.print { background: #fff; font-size: 13.5px; }
body.print .hbar, body.print .toc { display: none; }
body.print .layout { display: block; max-width: none; }
body.print .doc { padding: 0; }
body.print .cover { border-radius: 0; min-height: 100vh; padding: 60px 50px; display: flex; flex-direction: column; break-after: page; margin: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body.print .cover .clogo { align-self: flex-start; }
body.print .cover h1 { font-size: 40px; margin-top: 50px; }
body.print .ctoc { margin-top: 40px; columns: 2; column-gap: 40px; font-size: 14px; }
body.print .ctoc .cg { break-inside: avoid; margin-bottom: 14px; }
body.print .ctoc ol { margin: 4px 0 0; padding-left: 22px; }
body.print .cover .cfoot { margin-top: auto; }
body.print .sec { border: 0; border-radius: 0; padding: 0; margin: 0 0 18px; break-before: page; }
body.print .sec h2 { font-size: 21px; padding-bottom: 8px; border-bottom: 2px solid var(--p); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body.print .sec h2 .n { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body.print figure { break-inside: avoid; margin: 12px auto; max-width: 92%; }
body.print figure img { box-shadow: none; }
body.print .tbl, body.print .tip, body.print .warn, body.print ol.steps > li { break-inside: avoid; }
body.print .ghead { display: none; }
body.print ol.steps > li::before, body.print .tip, body.print .warn, body.print .vnote { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media print {
  .hbar, .toc, .totop, #videos, .vbox { display: none !important; }
  .layout { display: block; }
  .doc { padding: 0; }
  .sec { border: 0; break-inside: auto; }
}
.vcard .vplay.sm { inset: auto; left: 8px; bottom: 8px; margin: 0; width: 34px; height: 34px; }
.vcard .vplay.sm svg { width: 15px; height: 15px; margin-left: 2px; }
