/* Nápověda pro zaměstnavatele – the static help centre.
   Built by scripts/make_html.py; loaded after css/tokens.css, so every colour,
   size and shadow comes from the site's design tokens. */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--jss-bg);
    color: var(--jss-ink-2);
    font-size: var(--jss-fs-md);
    line-height: 1.65;
}

a { color: var(--jss-brand); text-underline-offset: 3px; }
a:hover { color: var(--jss-brand-hover); }
img { max-width: 100%; height: auto; }
.hc-nowrap { white-space: nowrap; }

.hc-skip {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    padding: 8px 14px; border-radius: var(--jss-radius);
    background: var(--jss-brand); color: #fff; font-weight: 600; text-decoration: none;
}
.hc-skip:focus { top: 12px; color: #fff; }

/* ── Top bar ──────────────────────────────────────────────────────────── */
.hc-top {
    position: sticky; top: 0; z-index: 30;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--jss-line);
}
.hc-top-in {
    display: flex; align-items: center; gap: 16px;
    max-width: 1440px; height: 64px; margin: 0 auto; padding: 0 24px;
}
.hc-brand {
    display: flex; align-items: center; gap: 12px; flex: none;
    color: var(--jss-ink); font-weight: 600; font-size: var(--jss-fs-md); text-decoration: none;
}
.hc-brand span { padding-left: 12px; border-left: 1px solid var(--jss-line); color: var(--jss-ink-3); }
.hc-brand:hover { color: var(--jss-ink); }

.hc-search { position: relative; flex: 1; max-width: 520px; margin-left: 12px; }
.hc-search > .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--jss-ink-4); pointer-events: none; }
.hc-search input, .hc-hero-search input {
    width: 100%; height: var(--jss-control-h); padding: 0 12px 0 36px;
    border: 1px solid var(--jss-line-strong); border-radius: var(--jss-radius);
    background: var(--jss-surface); color: var(--jss-ink); font-size: var(--jss-fs-base);
    transition: border-color .15s, box-shadow .15s;
}
.hc-search input:focus, .hc-hero-search input:focus {
    outline: none; border-color: var(--jss-brand); box-shadow: var(--jss-focus-ring);
}
.hc-results {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px);
    max-height: min(70vh, 520px); overflow-y: auto; padding: 6px;
    background: var(--jss-surface); border: 1px solid var(--jss-line);
    border-radius: var(--jss-radius-lg); box-shadow: var(--jss-shadow-overlay);
}
.hc-results a {
    display: block; padding: 10px 12px; border-radius: var(--jss-radius);
    color: var(--jss-ink-2); text-decoration: none; font-size: var(--jss-fs-sm); line-height: 1.45;
}
.hc-results a strong { display: block; color: var(--jss-ink); font-size: var(--jss-fs-base); font-weight: 600; }
.hc-results a small { display: block; color: var(--jss-ink-3); font-size: var(--jss-fs-xs); }
.hc-results a:hover, .hc-results a[aria-selected="true"] { background: var(--jss-brand-soft); }
.hc-results mark { background: var(--jss-mark); color: inherit; border-radius: 2px; }
.hc-results-empty { margin: 0; padding: 12px; color: var(--jss-ink-3); font-size: var(--jss-fs-sm); }

.hc-top-links { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.hc-top-links a {
    display: inline-flex; align-items: center; gap: 6px; height: var(--jss-control-h); padding: 0 12px;
    border-radius: var(--jss-radius); color: var(--jss-ink-2); font-size: var(--jss-fs-base);
    font-weight: 600; text-decoration: none;
}
.hc-top-links a:hover { background: var(--jss-line-soft); color: var(--jss-ink); }
.hc-top-links .hc-top-cta { background: var(--jss-brand); color: #fff; }
.hc-top-links .hc-top-cta:hover { background: var(--jss-brand-hover); color: #fff; }

.hc-menu-btn {
    display: none; place-items: center; width: var(--jss-control-h); height: var(--jss-control-h);
    padding: 0; border: 1px solid var(--jss-line); border-radius: var(--jss-radius);
    background: var(--jss-surface); color: var(--jss-ink-2); cursor: pointer;
}

/* ── Layout ───────────────────────────────────────────────────────────── */
.hc-shell { display: flex; max-width: 1440px; margin: 0 auto; }

.hc-nav {
    position: sticky; top: 64px; flex: none; align-self: flex-start;
    width: 272px; height: calc(100vh - 64px); overflow-y: auto;
    padding: 24px 16px 40px 24px; border-right: 1px solid var(--jss-line);
}
.hc-nav ul { margin: 0 0 8px; padding: 0; list-style: none; }
.hc-nav-label { margin: 18px 0 6px 10px; color: var(--jss-ink-3); font-size: var(--jss-fs-xs); font-weight: 600; }
.hc-nav a {
    display: flex; align-items: flex-start; gap: 10px; padding: 7px 10px;
    border-radius: var(--jss-radius); color: var(--jss-ink-2);
    font-size: var(--jss-fs-sm); line-height: 1.4; text-decoration: none;
}
.hc-nav a .i { margin-top: 1px; color: var(--jss-ink-4); }
.hc-nav a:hover { background: var(--jss-line-soft); color: var(--jss-ink); }
.hc-nav a[aria-current="page"] { background: var(--jss-brand-soft); color: var(--jss-brand-ink); font-weight: 600; }
.hc-nav a[aria-current="page"] .i { color: var(--jss-brand); }
.hc-nav-home { font-weight: 600; }

.hc-main { flex: 1; min-width: 0; }

.hc-article-wrap {
    display: grid; grid-template-columns: minmax(0, 780px) 220px; gap: 48px;
    justify-content: center; padding: 36px 40px 24px;
}

/* ── Article ──────────────────────────────────────────────────────────── */
.hc-article { min-width: 0; }
.hc-crumbs {
    display: flex; align-items: center; gap: 6px; margin: 0 0 10px;
    color: var(--jss-ink-3); font-size: var(--jss-fs-sm);
}
.hc-crumbs a { color: var(--jss-ink-3); text-decoration: none; }
.hc-crumbs a:hover { color: var(--jss-brand); }
.hc-article h1 {
    margin: 0 0 10px; color: var(--jss-ink);
    font-size: clamp(28px, 3.2vw, 36px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em;
}
.hc-lead { margin: 0 0 28px; color: var(--jss-ink-3); font-size: 18px; line-height: 1.55; }
.hc-article h2 {
    margin: 44px 0 12px; padding-top: 22px; border-top: 1px solid var(--jss-line);
    color: var(--jss-ink); font-size: 24px; font-weight: 700; line-height: 1.3;
}
.hc-intro > h2:first-child { margin-top: 32px; padding-top: 0; border-top: 0; }
.hc-article h3 { margin: 28px 0 8px; color: var(--jss-ink); font-size: 19px; font-weight: 600; line-height: 1.35; }
.hc-article p, .hc-article ul, .hc-article ol, .hc-article dl, .hc-article table { margin: 0 0 16px; }
.hc-article li { margin-bottom: 6px; }
.hc-article li > ul, .hc-article li > ol { margin: 6px 0 0; }
.hc-article strong { color: var(--jss-ink); font-weight: 600; }
.hc-article code {
    padding: 1px 6px; border-radius: var(--jss-radius-sm); background: var(--jss-line-soft);
    color: var(--jss-ink); font-family: inherit; font-size: 0.94em; overflow-wrap: anywhere;
}

/* Numbered steps: an ordered list straight under a heading reads as steps. */
.hc-article ol { padding-left: 0; list-style: none; counter-reset: step; }
.hc-article ol > li { position: relative; padding-left: 44px; counter-increment: step; }
.hc-article ol > li::before {
    content: counter(step); position: absolute; left: 0; top: 1px;
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    background: var(--jss-brand-soft); color: var(--jss-brand-ink); font-size: var(--jss-fs-sm); font-weight: 700;
}
.hc-article ul { padding-left: 22px; }
.hc-article ul > li::marker { color: var(--jss-brand); }

/* Tables */
.hc-article table {
    width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden;
    border: 1px solid var(--jss-line); border-radius: var(--jss-radius-lg);
    background: var(--jss-surface); font-size: var(--jss-fs-base); box-shadow: var(--jss-shadow-xs);
}
.hc-article th, .hc-article td { padding: 10px 14px; border-bottom: 1px solid var(--jss-line); text-align: left; vertical-align: top; }
.hc-article th { background: var(--jss-surface-2); color: var(--jss-ink); font-size: var(--jss-fs-sm); font-weight: 600; }
.hc-article tr:last-child td { border-bottom: 0; }

/* Buttons and badges as they look in the app */
.hc-btn {
    display: inline-flex; align-items: center; gap: 5px; padding: 0 9px; min-height: 26px;
    border: 1px solid var(--jss-line-strong); border-radius: var(--jss-radius-sm);
    background: var(--jss-surface); color: var(--jss-ink); font-size: 0.88em; font-weight: 600;
    line-height: 1.3; white-space: nowrap; vertical-align: 0.05em;
}
.hc-btn .i { color: var(--jss-brand); }
.hc-article .jss-badge { vertical-align: 0.1em; white-space: nowrap; }

/* Figures */
.hc-figure { margin: 18px 0 26px; }
.hc-figure .hc-zoom {
    display: block; overflow: hidden; border: 1px solid var(--jss-line); border-radius: var(--jss-radius-lg);
    background: var(--jss-surface); box-shadow: var(--jss-shadow); cursor: zoom-in;
    transition: box-shadow .2s var(--jss-ease), transform .2s var(--jss-ease);
}
.hc-figure .hc-zoom:hover { box-shadow: var(--jss-shadow-lg); }
.hc-figure img { display: block; width: 100%; }
.hc-figure figcaption { margin-top: 10px; color: var(--jss-ink-3); font-size: var(--jss-fs-sm); line-height: 1.5; text-align: center; }
.hc-figure.is-phone { max-width: 300px; margin-left: auto; margin-right: auto; }
.hc-figure.is-phone .hc-zoom { border: 8px solid #10161f; border-radius: 30px; }
.hc-figure.is-paper { max-width: 520px; margin-left: auto; margin-right: auto; }
.hc-figure.is-paper .hc-zoom { border-radius: 2px; box-shadow: 0 1px 2px rgba(15, 27, 45, 0.08), 0 14px 34px rgba(15, 27, 45, 0.14); }
.hc-figure.is-narrow { max-width: 520px; margin-left: auto; margin-right: auto; }

.hc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; align-items: start; margin: 18px 0 26px; }
.hc-row .hc-figure { margin: 0; }
.hc-row .hc-figure.is-paper, .hc-row .hc-figure.is-phone, .hc-row .hc-figure.is-narrow { max-width: none; }

/* Admonitions: !!! tip / note / warning */
.admonition {
    position: relative; margin: 20px 0 24px; padding: 14px 18px 14px 50px;
    border: 1px solid var(--jss-brand-soft-2); border-radius: var(--jss-radius-lg);
    background: var(--jss-brand-soft); color: var(--jss-ink-2); font-size: var(--jss-fs-base);
}
.admonition::before {
    content: ""; position: absolute; left: 18px; top: 17px; width: 18px; height: 18px;
    background: var(--jss-brand);
    -webkit-mask: var(--hc-icon) center / contain no-repeat; mask: var(--hc-icon) center / contain no-repeat;
}
.admonition p:last-child, .admonition ul:last-child { margin-bottom: 0; }
.admonition-title { margin: 0 0 4px; color: var(--jss-ink); font-weight: 600; }
.admonition.note, .admonition.info { --hc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E"); }
.admonition.tip {
    --hc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m16 9-5.5 5.5L8 12'/%3E%3C/svg%3E");
    border-color: var(--jss-success-line); background: var(--jss-success-soft);
}
.admonition.tip::before { background: var(--jss-success); }
.admonition.warning {
    --hc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
    border-color: var(--jss-warning-line); background: var(--jss-warning-soft);
}
.admonition.warning::before { background: var(--jss-warning); }

/* Definition lists: one document per term */
.hc-article dl { display: grid; gap: 10px; }
.hc-article dt { color: var(--jss-ink); font-weight: 600; }
.hc-article dd { margin: -6px 0 6px; color: var(--jss-ink-2); }

/* On this page */
.hc-toc { position: sticky; top: 96px; align-self: start; font-size: var(--jss-fs-sm); }
.hc-toc p { margin: 0 0 8px; color: var(--jss-ink); font-weight: 600; }
.hc-toc ol { margin: 0; padding: 0 0 0 12px; list-style: none; border-left: 1px solid var(--jss-line); }
.hc-toc li { margin: 0 0 6px; }
.hc-toc a { display: block; color: var(--jss-ink-3); line-height: 1.4; text-decoration: none; }
.hc-toc a:hover, .hc-toc a.is-active { color: var(--jss-brand); }

/* Previous / next */
.hc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 48px 0 20px; }
.hc-pager a {
    display: flex; flex-direction: column; gap: 2px; padding: 14px 16px;
    border: 1px solid var(--jss-line); border-radius: var(--jss-radius-lg);
    background: var(--jss-surface); color: var(--jss-ink); font-weight: 600; text-decoration: none;
    box-shadow: var(--jss-shadow-xs); transition: border-color .15s, box-shadow .15s;
}
.hc-pager a:hover { border-color: var(--jss-brand-soft-2); box-shadow: var(--jss-shadow); color: var(--jss-brand-ink); }
.hc-pager small { display: inline-flex; align-items: center; gap: 4px; color: var(--jss-ink-3); font-size: var(--jss-fs-xs); font-weight: 600; }
.hc-pager-next { grid-column: 2; text-align: right; align-items: flex-end; }

/* Contact */
.hc-contact {
    display: flex; gap: 14px; align-items: flex-start; margin: 20px 0 8px; padding: 18px 20px;
    border: 1px solid var(--jss-line); border-radius: var(--jss-radius-lg);
    background: var(--jss-surface); box-shadow: var(--jss-shadow-sm);
}
.hc-contact-icon {
    display: grid; place-items: center; flex: none; width: 44px; height: 44px;
    border-radius: var(--jss-radius-lg); background: var(--jss-brand-soft); color: var(--jss-brand);
}
.hc-contact strong { color: var(--jss-ink); font-size: var(--jss-fs-md); }
.hc-contact p { margin: 2px 0 0; font-size: var(--jss-fs-base); }

.hc-footer {
    padding: 24px 40px 40px; color: var(--jss-ink-3); font-size: var(--jss-fs-sm); text-align: center;
}
.hc-footer p { margin: 0 0 4px; }
.hc-footer a { color: var(--jss-ink-3); }

/* ── Home ─────────────────────────────────────────────────────────────── */
.hc-hero {
    /* No overflow: hidden here: the search results hang below the box. */
    position: relative; z-index: 2; margin: 24px 32px 0; padding: 56px 48px 52px;
    border-radius: 20px; color: #fff;
    background:
        linear-gradient(118deg, rgba(255, 255, 255, 0.10) 0 32%, transparent 32% 100%),
        linear-gradient(64deg, transparent 0 70%, rgba(255, 255, 255, 0.12) 70% 100%),
        linear-gradient(135deg, var(--jss-brand) 0%, var(--jss-brand-active) 100%);
    box-shadow: var(--jss-shadow);
}
.hc-hero-kicker {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 4px 12px;
    border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: var(--jss-fs-sm); font-weight: 600;
}
.hc-hero h1 { margin: 0 0 10px; font-size: var(--jss-fs-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.hc-hero > p:not(.hc-hero-kicker) { max-width: 640px; margin: 0 0 26px; color: rgba(255, 255, 255, 0.9); font-size: 18px; }
.hc-hero-search { position: relative; display: block; max-width: 620px; }
.hc-hero-search .i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--jss-ink-4); }
.hc-hero-search input { height: 54px; padding-left: 48px; border: 0; font-size: var(--jss-fs-md); box-shadow: var(--jss-shadow-lg); }
.hc-hero-search .hc-results { z-index: 30; color: var(--jss-ink-2); text-align: left; }

.hc-home-body { max-width: 1120px; margin: 0 auto; padding: 8px 32px 24px; }
.hc-intro { max-width: 860px; }
.hc-group h2 { margin: 40px 0 14px; color: var(--jss-ink); font-size: var(--jss-fs-lg); font-weight: 700; }
.hc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.hc-card {
    display: flex; flex-direction: column; gap: 6px; padding: 18px;
    border: 1px solid var(--jss-line); border-radius: var(--jss-radius-lg);
    background: var(--jss-surface); color: var(--jss-ink-3); font-size: var(--jss-fs-sm); line-height: 1.5;
    text-decoration: none; box-shadow: var(--jss-shadow-xs);
    transition: border-color .15s, box-shadow .2s var(--jss-ease), transform .2s var(--jss-ease);
}
.hc-card strong { color: var(--jss-ink); font-size: var(--jss-fs-md); font-weight: 600; }
.hc-card:hover { border-color: var(--jss-brand-soft-2); box-shadow: var(--jss-shadow); transform: translateY(-2px); color: var(--jss-ink-3); }
.hc-card-icon {
    display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px;
    border-radius: var(--jss-radius-lg); background: var(--jss-brand-soft); color: var(--jss-brand);
}

/* ── Lightbox ─────────────────────────────────────────────────────────── */
.hc-lightbox {
    /* flex + margin: auto centres a picture that fits and leaves a larger one
       reachable from its top left corner; the layer scrolls. */
    position: fixed; inset: 0; z-index: 60; display: flex; padding: 32px; overflow: auto;
    background: rgba(15, 27, 45, 0.82); cursor: zoom-out; overscroll-behavior: contain;
}
.hc-lightbox[hidden] { display: none; }
.hc-lightbox img {
    /* The whole picture on the screen first; a click shows it full size. */
    margin: auto; width: auto; height: auto;
    max-width: calc(100vw - 64px); max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px);
    border-radius: var(--jss-radius); background: #fff; box-shadow: var(--jss-shadow-lg); cursor: zoom-in;
}
.hc-lightbox.is-full img { max-width: none; max-height: none; cursor: zoom-out; }
.hc-lightbox-close {
    position: fixed; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px;
    border: 0; border-radius: 50%; background: rgba(15, 27, 45, 0.6); color: #fff; cursor: pointer;
}
.hc-lightbox-close:hover { background: rgba(15, 27, 45, 0.85); }

/* ── Narrower screens ─────────────────────────────────────────────────── */
@media (max-width: 1180px) {
    .hc-article-wrap { grid-template-columns: minmax(0, 780px); }
    .hc-toc { display: none; }
}
@media (max-width: 900px) {
    .hc-menu-btn { display: grid; }
    .hc-nav {
        position: fixed; top: 64px; left: 0; z-index: 25; width: min(320px, 86vw);
        background: var(--jss-surface); box-shadow: var(--jss-shadow-overlay);
        transform: translateX(-102%); transition: transform .2s var(--jss-ease);
    }
    .hc-nav.is-open { transform: none; }
    .hc-article-wrap { padding: 24px 16px 16px; }
    .hc-hero { margin: 16px 16px 0; padding: 36px 22px 32px; }
    .hc-home-body { padding: 8px 16px 16px; }
    .hc-top-in { padding: 0 16px; gap: 10px; }
    /* Icon only; the label stays for screen readers. */
    .hc-top-links a span {
        position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip: rect(0 0 0 0); white-space: nowrap;
    }
    .hc-top-links a { padding: 0 10px; }
    .hc-footer { padding: 20px 16px 32px; }
}
@media (max-width: 620px) {
    .hc-brand span { display: none; }
    .hc-search { margin-left: 0; }
    .hc-top-links .hc-top-cta { display: none; }
    .hc-lead { font-size: var(--jss-fs-md); }
    .hc-article h2 { font-size: 21px; }
    .hc-pager { grid-template-columns: 1fr; }
    .hc-pager-next { grid-column: auto; }
    .hc-article table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .hc-card, .hc-figure .hc-zoom, .hc-nav { transition: none; }
    .hc-card:hover { transform: none; }
}
@media print {
    .hc-top, .hc-nav, .hc-toc, .hc-pager, .hc-contact, .hc-footer, .hc-hero-search { display: none !important; }
    body { background: #fff; }
    .hc-article-wrap { display: block; padding: 0; }
    .hc-figure .hc-zoom { box-shadow: none; }
}
