/* Návod na používanie portálu */
.manual-hero { padding: 2.5rem 0 1.5rem; }
.manual-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin: .6rem 0 .5rem; }
.manual-hero p.lead { color: var(--text-2); font-size: 1.05rem; max-width: 68ch; }

.role-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.role-card { padding: 1.6rem; display: flex; flex-direction: column; gap: .75rem; }
.role-card h2 { font-size: 1.3rem; }
.role-card ul { margin: 0; padding-left: 1.1rem; color: var(--text-2); font-size: .92rem; }
.role-card li { margin: .2rem 0; }

.manual-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2.5rem; align-items: start; padding-bottom: 4rem; }
.manual-toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: .25rem; }
.manual-toc .eyebrow { margin: 0 0 .5rem .6rem; }
.manual-toc a { display: block; padding: .38rem .6rem; border-radius: 7px; color: var(--text-2); font-size: .88rem; text-decoration: none; border-left: 2px solid transparent; }
.manual-toc a:hover { background: var(--surface-2); color: var(--text); }
.manual-toc a.is-active { color: var(--primary-text); background: var(--primary-soft); font-weight: 650; }
.manual-toc a.sub { padding-left: 1.4rem; font-size: .83rem; }
.manual-toc .toc-actions { display: grid; gap: .4rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

.manual-content { max-width: 860px; min-width: 0; }
.manual-section { padding-top: .5rem; margin-bottom: 3rem; scroll-margin-top: 80px; }
.manual-section > h2 { font-size: 1.5rem; display: flex; align-items: center; gap: .65rem; padding-bottom: .6rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.manual-section > h2 .num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9px; background: var(--primary); color: #fff; font-size: .95rem; font-family: var(--mono); }
:root[data-theme="dark"] .manual-section > h2 .num { color: #06122b; }
.manual-section h3 { font-size: 1.1rem; margin: 1.6rem 0 .6rem; scroll-margin-top: 80px; }
.manual-section p, .manual-section li { color: var(--text-2); line-height: 1.65; }
.manual-section ul, .manual-section ol { padding-left: 1.25rem; }
.manual-section li { margin: .3rem 0; }
.manual-section strong { color: var(--text); }
.manual-section .alert { margin: 1rem 0; }
.manual-section .alert div > strong ~ strong, .manual-section .alert div > strong + span strong { display: inline; }

.steps { list-style: none; padding: 0 !important; margin: 1rem 0; counter-reset: step; display: grid; gap: .6rem; }
.steps > li { counter-increment: step; position: relative; padding: .8rem 1rem .8rem 3.3rem; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); margin: 0 !important; }
.steps > li::before { content: counter(step); position: absolute; left: .9rem; top: .78rem; width: 1.65rem; height: 1.65rem; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); font-weight: 800; font-size: .85rem; }
.steps > li strong:first-child { display: block; color: var(--text); margin-bottom: .1rem; }

.shot { margin: 1.1rem 0 1.4rem; }
.shot button { display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: .82rem; color: var(--muted); margin-top: .5rem; text-align: center; }

.ui { display: inline-block; padding: .05rem .45rem; border-radius: 6px; background: var(--surface-3); color: var(--text); font-weight: 600; font-size: .88em; white-space: nowrap; }
.path { font-weight: 600; color: var(--text); }
.path .sep { color: var(--muted); margin: 0 .25rem; font-weight: 400; }

.def-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; }
.def-table th, .def-table td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.def-table th { width: 32%; color: var(--text); font-weight: 650; background: var(--surface-2); }
.def-table td { color: var(--text-2); }

.faq details { border: 1px solid var(--border); border-radius: 11px; background: var(--surface); margin-bottom: .55rem; }
.faq summary { cursor: pointer; padding: .85rem 1rem; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1rem 1rem; color: var(--text-2); line-height: 1.6; }

.checklist { list-style: none; padding: 0 !important; display: grid; gap: .45rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .9rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); margin: 0 !important; }
.checklist input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; accent-color: var(--success); flex-shrink: 0; }
.checklist li.is-done span { text-decoration: line-through; color: var(--muted); }

.manual-search { margin-bottom: 1.5rem; }
.manual-empty { display: none; }
mark.hl { background: color-mix(in srgb, var(--warning) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 .1rem; }

dialog.zoom { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.zoom::backdrop { background: rgba(6, 11, 23, .82); }
dialog.zoom img { max-width: 96vw; max-height: 94vh; border-radius: 10px; display: block; }

.print-only { display: none; }

@media (max-width: 960px) {
  .manual-shell { grid-template-columns: 1fr; }
  .manual-toc { position: static; max-height: none; border: 1px solid var(--border); border-radius: 12px; padding: .75rem; background: var(--surface); }
  .role-cards { grid-template-columns: 1fr; }
}

@media print {
  @page { size: A4; margin: 16mm 14mm 16mm; }
  html, body { background: #fff !important; }
  :root { --text: #0e1628; --text-2: #2c3547; --muted: #5b6477; --surface: #fff; --surface-2: #f3f5f9; --surface-3: #e8ecf4; --border: #d5dbe6; --primary-soft: #e7eefc; --primary-text: #1d4499; }
  .topbar, .footer, .manual-toc, .manual-search, .no-print, .toasts { display: none !important; }
  .print-only { display: block; }
  .page-public { padding: 0 !important; max-width: none; }
  .manual-shell { display: block; }
  .manual-content { max-width: none; }
  .manual-hero { padding: 0 0 1rem; }
  .manual-section { margin-bottom: 1.6rem; }
  .manual-section > h2 { break-after: avoid; }
  .manual-section h3 { break-after: avoid; }
  .manual-section h3, .steps > li, .shot, .alert, .def-table tr, .faq details { break-inside: avoid; }
  .shot button { box-shadow: none; }
  .shot img { max-height: 118mm; width: auto; max-width: 100%; margin: 0 auto; }
  .faq details > div { display: block !important; }
  .faq summary::after { content: ""; }
  a { color: inherit; text-decoration: none; }
}
