/* Návod k pokladně (/navod/) – načítá se jen tam, doplňuje style.css. Převzato z elvapos.cz (navod.css), barvy andapos.cz. */
.nv { --primary: var(--blue); --primary-soft: var(--blue-soft); --primary-dark: var(--blue-600); background: var(--bg); padding-bottom: 40px; }
.nv .ico { width: 20px; height: 20px; }

.nv-hero { padding: 48px 0 22px; }
.nv-hero h1 { margin: 6px 0 10px; font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: -.03em; color: var(--ink); }
.nv-hero p { color: var(--muted); max-width: 680px; margin: 0 0 22px; font-size: 17px; line-height: 1.55; }

.nv-search { position: relative; max-width: 580px; }
.nv-search input { width: 100%; height: 54px; border: 1px solid var(--line); border-radius: 14px; padding: 0 48px 0 18px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.nv-search input:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
.nv-search > .ico { position: absolute; right: 16px; top: 27px; transform: translateY(-50%); color: var(--muted); pointer-events: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.nv-results { position: absolute; left: 0; right: 0; top: 60px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 30; max-height: 420px; overflow: auto; display: none; }
.nv-results.open { display: block; }
.nv-results a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.nv-results a:last-child { border-bottom: 0; }
.nv-results a:hover { background: var(--primary-soft); }
.nv-results .r-c { font-size: 12px; color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.nv-results .r-h { font-weight: 700; }
.nv-results .r-t { font-size: 14px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.nv-results .r-empty { padding: 14px 16px; color: var(--muted); }
.nv-results mark { background: #fff3b0; padding: 0 1px; border-radius: 3px; }

.nv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 8px 0 40px; }
.nv-group-title { grid-column: 1 / -1; margin: 22px 0 -2px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.nv-card { display: flex; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; text-decoration: none !important; color: var(--ink); box-shadow: var(--shadow-sm); transition: .15s; }
.nv-card:hover { border-color: #bfd3ff; box-shadow: var(--shadow); transform: translateY(-1px); }
.nv-card-ico { width: 46px; height: 46px; border-radius: 13px; background: var(--primary-soft); color: var(--primary-dark); display: grid; place-items: center; flex-shrink: 0; }
.nv-card-ico .ico { width: 24px; height: 24px; }
.nv-card-txt { display: flex; flex-direction: column; min-width: 0; }
.nv-card b { display: block; font-size: 17px; font-weight: 800; margin-bottom: 3px; }
.nv-card-txt > span:last-child { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.nv-num { display: block; font-size: 12px; color: var(--muted); font-weight: 800; letter-spacing: .05em; margin-bottom: 2px; }
.nv-badge { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green-600); font-size: 11.5px; font-style: normal; font-weight: 800; letter-spacing: .02em; vertical-align: middle; text-transform: none; }

.nv-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; padding: 28px 0 40px; align-items: start; }
.nv-side { position: sticky; top: calc(var(--header) + 16px); }
.nv-side-search { margin-bottom: 14px; }
.nv-side-search input { height: 46px; border-radius: 12px; padding: 0 40px 0 14px; font-size: 15px; }
.nv-side-search .nv-search > .ico { top: 23px; }
.nv-side-search .nv-results { top: 52px; }
.nv-toc { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px; max-height: calc(100vh - var(--header) - 110px); overflow: auto; }
.nv-toc .g { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding: 12px 12px 6px; }
.nv-toc a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 11px; text-decoration: none !important; color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.3; }
.nv-toc a .ico { flex-shrink: 0; width: 18px; height: 18px; color: var(--muted); }
.nv-toc a:hover { background: var(--bg); }
.nv-toc a.active { background: var(--primary-soft); color: var(--primary-dark); }
.nv-toc a.active .ico { color: var(--primary); }
.nv-toc-mobile { display: none; }

.nv-article { max-width: 880px; min-width: 0; }
.nv-crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.nv-crumbs a { color: var(--muted); }
.nv-article h1 { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
.nv-lead { font-size: 17.5px; color: var(--text); margin: 0 0 18px; line-height: 1.55; }
.nv-secs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.nv-secs a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--primary-dark); font-size: 14px; font-weight: 700; text-decoration: none !important; }
.nv-secs a:hover { border-color: var(--primary); }

.nv-body { color: var(--text); }
.nv-body h2 { margin: 40px 0 12px; padding-top: 4px; font-size: 25px; font-weight: 850; letter-spacing: -.01em; color: var(--ink); scroll-margin-top: calc(var(--header) + 20px); }
.nv-body h2:first-child { margin-top: 6px; }
.nv-body h3 { margin: 22px 0 6px; font-size: 18px; font-weight: 800; color: var(--ink); scroll-margin-top: calc(var(--header) + 20px); }
.nv-body p { line-height: 1.65; margin: 0 0 12px; font-size: 16.5px; }
.nv-body ul { line-height: 1.6; padding-left: 22px; margin: 0 0 12px; }
.nv-body li { margin-bottom: 4px; }
.nv-body b { color: var(--ink); }
.nv-body hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
kbd.ui { display: inline-block; font: inherit; font-size: .82em; font-weight: 800; letter-spacing: .02em; background: var(--navy); color: #fff; padding: 2px 9px; border-radius: 7px; white-space: nowrap; line-height: 1.5; }

/* Postup = očíslované kroky v kartě */
.nv-body ol.nv-steps { list-style: none; counter-reset: krok; margin: 6px 0 16px; padding: 6px 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.nv-body ol.nv-steps li { counter-increment: krok; position: relative; margin: 0; padding: 12px 0 12px 46px; line-height: 1.55; font-size: 16.5px; border-top: 1px dashed var(--line); }
.nv-body ol.nv-steps li:first-child { border-top: 0; }
.nv-body ol.nv-steps li::before { content: counter(krok); position: absolute; left: 0; top: 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; }

.box { margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.box-h { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 6px; }
.box-h .ico { width: 18px; height: 18px; }
.box-b p:last-child { margin-bottom: 0; }
.box-tip { background: var(--green-soft); border-color: #bbe8c9; } .box-tip .box-h { color: var(--green-600); }
.box-pozor { background: var(--amber-soft); border-color: #f6d98a; } .box-pozor .box-h { color: var(--amber); }
.box-info { background: var(--blue-soft); border-color: #c9d9ff; } .box-info .box-h { color: var(--primary-dark); }

/* Obrázek s bublinami */
.nv-body figure.shot { margin: 14px 0 24px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.shot-frame { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; cursor: zoom-in; }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot--tall .shot-frame { max-width: 340px; margin-inline: auto; border-radius: 26px; border: 6px solid var(--navy); }
.shot-backdrop { position: fixed; inset: 0; background: rgba(11, 20, 38, .78); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .18s; }
.shot-backdrop.show { opacity: 1; pointer-events: auto; }
.shot.zoomed { position: relative; z-index: 71; }
.shot.zoomed .shot-frame { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 72; width: auto; max-width: 96vw; max-height: 94vh; margin: 0; cursor: zoom-out; }
.shot.zoomed .shot-frame img { width: auto; height: auto; max-width: 96vw; max-height: 94vh; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; border: 3px solid #fff; font: 800 14px/1 var(--font); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); cursor: pointer; padding: 0; transition: .15s; }
.pin:hover, .pin.hot { transform: translate(-50%, -50%) scale(1.22); background: #f59e0b; }
.shot-cap { font-size: 14.5px; color: var(--muted); margin: 10px 2px 0; }
.legend { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; }
.legend li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 10px; font-size: 15.5px; line-height: 1.45; cursor: pointer; }
.legend li > b.n { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; display: inline-grid; place-items: center; flex-shrink: 0; margin-top: 0; }
.legend li:hover, .legend li.hot { background: #fff7e6; }
.legend li.hot > b.n { background: #f59e0b; }

.faq { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin: 0 0 10px; padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 700; min-height: 48px; padding: 12px 0; list-style: none; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); transition: .15s; flex-shrink: 0; margin-left: 2px; }
.faq[open] summary::before { transform: rotate(45deg); }
.faq-a { padding: 0 0 14px 21px; line-height: 1.6; }
.faq-a p:last-child { margin-bottom: 0; }

.tbl-wrap { overflow-x: auto; margin: 0 0 16px; }
.nv-body table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 15px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.nv-body th, .nv-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.nv-body th { background: var(--bg); font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.nv-body tr:last-child td { border-bottom: 0; }

/* Karta videa (:::video) – náhled + tlačítka tablet / telefon */
.vcard { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 20px; align-items: center; margin: 4px 0 22px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.vcard-thumb { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--line-2); }
.vcard-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vcard-thumb .video-play { position: absolute; right: 10px; bottom: 10px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 8px 18px rgba(220, 38, 38, .35); }
.vcard-thumb .video-play .ico { width: 20px; height: 20px; fill: currentColor; stroke: none; margin-left: 3px; }
.vcard-body { display: grid; gap: 6px; }
.vcard-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.vcard-yt { width: 22px; height: 16px; }
.vcard-title { font-size: 18px; line-height: 1.3; color: var(--ink); }
.vcard-desc { color: var(--muted); font-size: 15px; line-height: 1.5; }
.vcard-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.vcard-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-weight: 800; font-size: 15px; text-decoration: none !important; }
.vcard-btn:hover { border-color: var(--red); }
.vcard-btn .ico { width: 16px; height: 16px; fill: var(--red); stroke: none; }
.vcard-btn small { color: var(--muted); font-weight: 600; }

/* Pruh s videonávody nad přehledem kapitol */
.nv-video { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin: 0 0 10px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; text-decoration: none !important; color: var(--ink); box-shadow: var(--shadow-sm); transition: .15s; }
.nv-video:hover { border-color: #fecaca; box-shadow: var(--shadow); }
.nv-video-ico { width: 54px; height: 54px; border-radius: 14px; background: var(--red); color: #fff; display: grid; place-items: center; }
.nv-video-ico .ico { width: 26px; height: 26px; fill: currentColor; stroke: none; margin-left: 3px; }
.nv-video-txt b { display: block; font-size: 17px; margin-bottom: 3px; }
.nv-video-txt > span { display: block; font-size: 15px; color: var(--muted); line-height: 1.45; }
.nv-video-cta { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 800; color: var(--red); }

.nv-pn { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.nv-pn a { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-decoration: none !important; color: var(--ink); max-width: 48%; }
.nv-pn a:hover { border-color: var(--primary); }
.nv-pn a.next { text-align: right; margin-left: auto; }
.nv-pn small { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.nv-pn b { font-size: 16px; }
.nv-updated { font-size: 14.5px; color: var(--muted); margin-top: 26px; line-height: 1.5; }
.nv-404 { padding: 40px 0; }

@media screen and (max-width: 900px) {
  .nv-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .nv-side { position: static; }
  .nv-toc { max-height: none; }
  .nv-toc-desktop { display: none; }
  .nv-toc-mobile { display: block; }
  .nv-toc-mobile summary { cursor: pointer; font-weight: 800; min-height: 48px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; list-style: none; display: flex; align-items: center; gap: 8px; }
  .nv-toc-mobile summary::-webkit-details-marker { display: none; }
  .nv-toc-mobile[open] summary { border-radius: 14px 14px 0 0; }
  .nv-toc-mobile .nv-toc { border-radius: 0 0 14px 14px; border-top: 0; }
  .nv-hero { padding: 28px 0 16px; }
  .nv-card-ico { width: 40px; height: 40px; }
  .nv-article h1 .nv-card-ico { width: 40px; height: 40px; }
  .nv-body ol.nv-steps { padding: 4px 14px; }
  .nv-body ol.nv-steps li { padding-left: 42px; font-size: 16px; }
  .pin { width: 26px; height: 26px; font-size: 12px; border-width: 2px; }
  .vcard { grid-template-columns: 1fr; gap: 12px; }
  .nv-video { grid-template-columns: auto 1fr; gap: 12px; padding: 14px; }
  .nv-video-cta { grid-column: 1 / -1; }
  .nv-pn { flex-direction: column; }
  .nv-pn a { max-width: none; }
  .nv-pn a.next { text-align: left; }
}
@media print {
  .site-header, .site-footer, .nv-side, .nv-pn, .nv-secs, .nv-crumbs, .vcard-btns { display: none !important; }
  .nv-layout { display: block; padding: 0; }
  .nv-article { max-width: none; }
  .shot-frame { box-shadow: none; break-inside: avoid; }
  .box, .faq, ol.nv-steps { break-inside: avoid; }
  .pin { background: #333; }
}
