/* Verejný web – Aďkov prístav (základ; úvodná stránka a finálne doladenie v kroku 7) */

:root {
    --ink: #16303F;
    --muted: #4D6472;
    --muted-2: #5B707B;
    --line: #E8EEF1;
    --tint: #F1F5F7;
    --tint-2: #F6F9FA;
    --primary: #1F5F7A;
    --font: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-head: 'Bricolage Grotesque', var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font: 400 16px/1.65 var(--font);
    display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; }

.muted { color: var(--muted-2); }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; color: #fff; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--text { max-width: 768px; }
.section { padding-top: 56px; padding-bottom: 112px; }

/* Hlavička */
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
/* Logo – pôvodný emblém + plochý nápis (písmo Caveat, modrá z emblému) */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #0077B6; }
.logo:hover { color: #00639A; }
.logo__emblem { display: block; width: auto; height: 56px; flex: none; }
.logo__text { font-family: 'Caveat', 'Segoe Script', cursive; font-weight: 700; font-size: 36px; line-height: 1; letter-spacing: -0.005em; padding-top: 2px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; }
.site-nav a { text-decoration: none; padding: 10px 0; }
.site-nav a[aria-current="page"] { color: var(--primary); font-weight: 500; }

.site-nav__cta { margin-left: 4px; }
.menu-toggle { display: none; }

/* Tlačidlá */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 12px 24px;
    border-radius: 999px; border: 1.5px solid transparent;
    font: 500 15px/1.2 var(--font); text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: #184C62; color: #fff; }
.btn--outline { border-color: var(--primary); color: var(--primary); padding: 9px 18px; }
.btn--outline:hover { background: var(--primary); color: #fff; }
.site-nav .btn--outline { padding: 9px 18px; }
.text-link { text-decoration: none; font-weight: 500; padding: 10px 0; }

/* Pätička */
.site-footer { margin-top: auto; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 40px; padding-bottom: 40px; font-size: 14px; color: var(--muted-2); border-top: 1px solid var(--line); }
.site-footer__info, .site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.site-footer a { color: var(--muted-2); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }

/* --- Úvodná stránka ------------------------------------------------------- */

.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; padding-top: 56px; padding-bottom: 96px; }
.hero__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero--text .hero__text { max-width: 760px; }
.hero__title { font-size: clamp(36px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.02em; }
.hero__intro { margin: 0; font-size: 18px; font-weight: 300; color: var(--muted); max-width: 480px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 4px; }
.hero__image { flex: 1 1 420px; min-width: 0; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; background: var(--tint); }

.highlight-wrap { padding-bottom: 96px; }
.highlight {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
    padding: 22px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    text-decoration: none; color: var(--ink);
}
.highlight__label { color: var(--primary); font-weight: 500; }
.highlight__dot { color: var(--muted-2); }
.highlight__more { font-weight: 500; }
a.highlight:hover .highlight__more { color: var(--primary); }

.home-section { padding-bottom: 112px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 36px; }
.section-head h2 { font-size: 30px; }
.section-head__link { font-size: 15px; color: var(--muted-2); text-decoration: none; }
.section-head__link:hover { color: var(--primary); }

.donate { background: var(--tint-2); }
.donate__inner { max-width: 680px; padding-top: 96px; padding-bottom: 96px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.donate__title { font-size: clamp(28px, 3.4vw, 34px); line-height: 1.15; }
.donate__text { margin: 0; font-size: 17px; font-weight: 300; color: var(--muted); }
.donate__ico { margin: 0; font-size: 15px; color: var(--muted); }
.donate__ico strong { font-weight: 500; color: var(--ink); }
.donate .btn { margin-top: 8px; }

.card__image--empty { aspect-ratio: 16 / 10; }

/* --- Kontakt ---------------------------------------------------------------- */

.contact { padding-top: 40px; display: flex; flex-direction: column; gap: 56px; }
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 32px; margin: 0; }
.contact-info dt { font-size: 14px; color: var(--muted-2); }
.contact-info dd { margin: 2px 0 0; font-size: 17px; overflow-wrap: anywhere; }
.contact-info a { color: var(--primary); text-decoration: none; }
.contact-form h2 { font-size: 26px; margin-bottom: 24px; }

.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: flex; flex-wrap: wrap; gap: 20px; }
.form__row > .field { flex: 1 1 240px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 500; }
.field__optional { font-weight: 300; color: var(--muted-2); }
.field input, .field textarea {
    width: 100%; min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #D5E1E7; border-radius: 12px;
    background: #fff; color: var(--ink);
    font: 400 16px/1.5 var(--font);
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 95, 122, .15); }
.field [aria-invalid="true"] { border-color: #A3322A; }
.field__error { margin: 0; font-size: 14px; color: #A3322A; }
.form__note { margin: 0; font-size: 14px; font-weight: 300; color: var(--muted-2); }
.form__note a { color: var(--muted); }

.notice { padding: 16px 20px; border-radius: 14px; font-size: 15px; margin-bottom: 24px; }
.notice strong { display: block; font-weight: 500; margin-bottom: 2px; }
.notice--ok { background: #EEF7F3; color: #245847; }
.notice--error { background: #FDF0EF; color: #A3322A; }

/* skryté pole proti robotom – mimo obrazovky, nie display:none (niektoré roboty to rozpoznajú) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* --- Cookies lišta ---------------------------------------------------------- */

.cookie-bar {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
    max-width: 560px; margin: 0 auto;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
    padding: 16px 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(22, 48, 63, .14), 0 0 0 1px rgba(22, 48, 63, .06);
    font-size: 14px; color: var(--muted);
}
.cookie-bar p { margin: 0; flex: 1 1 280px; }
.cookie-bar a { color: var(--ink); }
.cookie-bar .btn { min-height: 40px; padding: 9px 18px; }

/* --- Mobilné menu --------------------------------------------------------- */

@media (max-width: 860px) {
    .js .menu-toggle {
        display: inline-flex; align-items: center; gap: 10px;
        min-height: 44px; padding: 8px 4px;
        border: 0; background: none; color: var(--ink);
        font: 500 15px var(--font); cursor: pointer;
    }
    .menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after {
        display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; position: relative;
        transition: transform .2s, background-color .2s;
    }
    .menu-toggle__icon::before, .menu-toggle__icon::after { content: ''; position: absolute; left: 0; }
    .menu-toggle__icon::before { top: -6px; }
    .menu-toggle__icon::after { top: 6px; }
    .menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
    .menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

    .js .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
    .js .site-nav.is-open { display: flex; }
    .js .site-nav a { padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; }
    .js .site-nav .site-nav__cta { margin: 16px 0 0; border: 1.5px solid var(--primary); padding: 12px 18px; }
}

/* Nadpis stránky */
.page-title { font-size: clamp(32px, 4vw, 44px); margin-bottom: 40px; letter-spacing: -0.01em; }

/* Karty aktualít */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 56px 32px; }
.card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.card__image { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; background: var(--tint); display: block; }
/* Vysoké alebo veľmi široké obrázky (napr. logo) – celé, bez orezania, na svetlom podklade */
.card__image--contain { object-fit: contain; padding: 14px; }
.card__date { font-size: 14px; color: var(--muted-2); margin-top: 4px; }
.card__title { font-family: var(--font-head); font-weight: 600; font-size: 21px; line-height: 1.25; margin-top: -4px; }
.card:hover .card__title { color: var(--primary); }
.card__text { font-size: 15px; font-weight: 300; color: var(--muted); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 64px; font-size: 15px; }
.pager a { text-decoration: none; padding: 10px 0; font-weight: 500; }

/* Článok */
.article { padding-bottom: 112px; }
.article__head { padding-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.article__head h1 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.015em; }
.article__date { color: var(--muted-2); font-size: 15px; }
.back-link { color: var(--muted-2); text-decoration: none; font-size: 15px; align-self: flex-start; padding: 6px 0; margin-bottom: 12px; }
.article__cover { margin-top: 40px; margin-bottom: 0; }
/* Titulný obrázok sa zobrazí celý (bez orezania) a nikdy sa nezväčší nad svoju veľkosť */
.article__cover img { display: block; max-width: 100%; height: auto; max-height: 640px; margin: 0 auto; border-radius: 24px; }
.preview-note { margin: 24px 0 0; padding: 12px 16px; border-radius: 12px; background: #FFF6E6; color: #6B4600; font-size: 14px; }
.preview-note a { color: inherit; font-weight: 500; }

/* Text článku */
.prose { padding-top: 40px; font-size: 18px; font-weight: 300; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 28px; margin: 1.7em 0 .5em; }
.prose h3 { font-size: 22px; margin: 1.5em 0 .4em; }
.prose h4 { font-size: 19px; margin: 1.4em 0 .4em; }
.prose strong, .prose b { font-weight: 500; }
.prose a { color: var(--primary); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: 16px; display: block; }
.prose figure { margin: 2em 0; }
.prose figure.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.prose figure.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.prose figure.gallery figcaption { grid-column: 1 / -1; }
.prose figcaption { font-size: 14px; color: var(--muted-2); margin-top: 10px; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--line); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; margin: 0 0 1.1em; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { font-weight: 500; background: var(--tint-2); }

/* Dokumenty */
.doc-group + .doc-group { margin-top: 48px; }
.doc-group__title { font-size: 22px; margin-bottom: 12px; }
.doc-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.doc-list li { border-top: 1px solid var(--line); }
.doc { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; text-decoration: none; color: var(--ink); }
.doc__icon { flex: none; margin-top: 2px; color: var(--primary); }
.doc__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.doc__title { font-weight: 500; }
.doc__desc { font-size: 15px; font-weight: 300; color: var(--muted); }
.doc__meta { font-size: 14px; color: var(--muted-2); }
.doc__action { flex: none; align-self: center; font-size: 15px; font-weight: 500; color: var(--primary); }
.doc:hover .doc__title { color: var(--primary); }

/* Galéria – zoznam albumov */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 48px 32px; }
.album { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.album__image { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; background: var(--tint); display: block; }
.album__title { font-weight: 500; font-size: 17px; margin-top: 4px; }
.album:hover .album__title { color: var(--primary); }
.album__meta { font-size: 14px; color: var(--muted-2); margin-top: -6px; }

.album__image--locked { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted-2); font-size: 14px; }

/* Ochrana heslom */
.unlock { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 520px; padding: 32px; border-radius: 20px; background: var(--tint-2); }
.unlock__icon { color: var(--primary); }
.unlock__text { margin: 0; font-size: 17px; }
.unlock .notice { margin: 0; width: 100%; }
.unlock__form { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.unlock__form input {
    flex: 1 1 200px; min-width: 0; min-height: 48px; padding: 12px 14px;
    border: 1px solid #D5E1E7; border-radius: 12px; background: #fff; color: var(--ink); font: 400 16px var(--font);
}
.unlock__form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 95, 122, .15); }
.unlock__form input[aria-invalid="true"] { border-color: #A3322A; }
.unlock__note { margin: 0; font-size: 13px; color: var(--muted-2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.article .unlock { margin-top: 32px; }

/* Galéria – album */
.gallery-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; max-width: 720px; }
.page-title--tight { margin-bottom: 0; }
.gallery-head__desc { margin: 4px 0 0; font-weight: 300; font-size: 17px; color: var(--muted); }
.preview-note--top { margin: 0 0 24px; }

.photo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.photo { display: block; border-radius: 12px; overflow: hidden; background: var(--tint); aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease, opacity .2s; }
.photo:hover img { transform: scale(1.03); }
.photo:focus-visible { outline-offset: 2px; }

/* Lightbox */
.lightbox-open { overflow: hidden; }
.lightbox {
    width: 100vw; height: 100vh; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0;
    background: rgba(12, 22, 28, .94);
    color: #fff;
}
.lightbox::backdrop { background: rgba(12, 22, 28, .94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__figure {
    margin: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    padding: 64px 72px 72px;
}
.lightbox__image { max-width: 100%; max-height: calc(100% - 40px); object-fit: contain; border-radius: 6px; }
.lightbox__caption { font-size: 15px; font-weight: 300; text-align: center; max-width: 720px; color: #E3ECF1; }
.lightbox__counter { position: absolute; top: 20px; left: 24px; margin: 0; font-size: 14px; color: #B4C6CF; }
.lightbox__btn {
    position: absolute;
    width: 48px; height: 48px; border-radius: 999px;
    border: 0; background: rgba(255, 255, 255, .12); color: #fff;
    font: 20px/1 var(--font); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: 12px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
    .hero { padding-top: 24px; padding-bottom: 64px; gap: 32px; }
    .hero__image { border-radius: 18px; }
    .highlight-wrap, .home-section { padding-bottom: 72px; }
    .donate__inner { padding-top: 64px; padding-bottom: 64px; }
    .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .photo { border-radius: 8px; }
    .lightbox__figure { padding: 56px 8px 64px; }
    .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; }
    .doc__action { display: none; }
    .section { padding-top: 32px; padding-bottom: 72px; }
    .site-header__inner { padding-top: 20px; padding-bottom: 20px; }
    .logo__emblem { height: 46px; }
    .logo__text { font-size: 30px; }
    .prose { font-size: 17px; }
    .article__cover { padding: 0; }
    .article__cover img { border-radius: 0; }
}

/* Album – počet fotiek a stránkovanie */
.gallery-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; scroll-margin-top: 24px; }
.gallery-bar__count { margin: 0; color: var(--muted-2); font-size: 15px; }
.per-page { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted-2); }
.per-page > span:first-child { margin-right: 6px; }
.per-page__item { min-width: 40px; padding: 6px 10px; border-radius: 999px; text-align: center; text-decoration: none; color: var(--ink); }
.per-page a.per-page__item:hover { background: var(--tint); }
.per-page__item.is-active { background: var(--primary); color: #fff; font-weight: 500; }

.pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 40px; font-size: 15px; }
.pages__step { text-decoration: none; font-weight: 500; padding: 10px 0; }
.pages__step.is-disabled { color: var(--muted-2); opacity: .5; font-weight: 400; }
.pages__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.pages__num { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 999px; text-decoration: none; color: var(--ink); }
a.pages__num:hover { background: var(--tint); }
.pages__num.is-active { background: var(--primary); color: #fff; font-weight: 500; }
.pages__gap { min-width: 24px; text-align: center; color: var(--muted-2); }
@media (max-width: 600px) {
    .pages { justify-content: center; }
    .pages__list { order: -1; flex-basis: 100%; gap: 2px; flex-wrap: nowrap; }
    .pages__num { min-width: 32px; height: 36px; padding: 0 4px; font-size: 14px; }
    .pages__gap { min-width: 14px; }
    .pages__step { flex: 1; text-align: center; }
}
.gallery-head__desc { overflow-wrap: anywhere; }

/* Odkazy na súbory v texte stránok a aktualít (App\Html::fileLinks) */
.prose .file-card {
    display: flex; align-items: center; gap: 16px;
    margin: 1.4em 0; padding: 16px 18px;
    border: 1px solid var(--line); border-radius: 16px; background: var(--tint-2);
    text-decoration: none; color: var(--ink); line-height: 1.4;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.prose .file-card + .file-card { margin-top: -0.6em; }
.prose .file-card:hover { border-color: var(--primary); background: #fff; box-shadow: 0 4px 18px rgba(22, 48, 63, .08); }
.file-card__badge {
    flex: none; display: flex; align-items: center; justify-content: center;
    width: 48px; height: 56px; border-radius: 8px 16px 8px 8px;
    background: var(--primary); color: #fff;
    font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.file-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.file-card__title { font-weight: 500; font-size: 17px; overflow-wrap: anywhere; }
.file-card__meta { font-size: 14px; color: var(--muted-2); }
.file-card__btn {
    flex: none; display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 999px;
    background: var(--primary); color: #fff; font-size: 15px; font-weight: 500;
}
.file-card__btn::before { content: '↓'; font-weight: 600; }
.prose .file-card:hover .file-card__btn { background: #184C62; }
.prose .file-inline { font-weight: 500; }
.file-inline__meta { font-size: .85em; color: var(--muted-2); white-space: nowrap; }
@media (max-width: 600px) {
    .prose .file-card { flex-wrap: wrap; padding: 14px; gap: 12px 14px; }
    .file-card__badge { width: 40px; height: 48px; font-size: 11px; }
    .file-card__btn { flex-basis: 100%; justify-content: center; }
}

/* Galéria – stiahnutie fotky z lightboxu */
.lightbox__download {
    top: 12px; right: 76px; width: auto; padding: 0 18px; gap: 8px;
    font-size: 15px; font-weight: 500; text-decoration: none;
}
.lightbox__download::before { content: '↓'; font-weight: 600; }
@media (max-width: 600px) {
    .lightbox__download { right: 72px; padding: 0 14px; }
}

/* Galéria – výber fotiek na stiahnutie (ZIP) */
.select-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 999px;
    background: #fff; color: var(--ink); font: 500 14px var(--font); cursor: pointer;
}
.select-toggle::before { content: '☐'; font-size: 15px; line-height: 1; }
.select-toggle:hover { border-color: var(--primary); color: var(--primary); }
.select-toggle[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.select-toggle[aria-pressed="true"]::before { content: '✓'; }
.gallery-bar { gap: 12px 16px; }
.gallery-bar__count { margin-right: auto; }

.photo-item { position: relative; }
.photo-check {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    width: 34px; height: 34px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .92); box-shadow: 0 1px 6px rgba(22, 48, 63, .25);
    cursor: pointer;
}
.photo-check[hidden] { display: none; }
.photo-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.is-selecting .photo { cursor: pointer; }
.is-selecting .photo:hover img { transform: none; }
.photo-item.is-checked .photo { outline: 3px solid var(--primary); outline-offset: -3px; }
.photo-item.is-checked .photo img { opacity: .82; }

.select-bar { position: sticky; bottom: 16px; z-index: 20; margin-top: 24px; }
.select-bar[hidden] { display: none; }
.select-bar__inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
    padding: 12px 14px 12px 22px; border-radius: 999px;
    background: #fff; box-shadow: 0 8px 32px rgba(22, 48, 63, .18), 0 0 0 1px rgba(22, 48, 63, .06);
}
.select-bar__count { margin: 0; font-weight: 500; }
.select-bar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.select-bar__link { border: 0; background: none; padding: 8px 0; font: 400 14px var(--font); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.select-bar__link:hover { color: var(--primary); }
.select-bar .btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 600px) {
    .select-bar { bottom: 8px; }
    .select-bar__inner { border-radius: 18px; padding: 12px 14px; }
    .select-bar__actions { width: 100%; justify-content: space-between; }
    .select-bar .btn { flex-basis: 100%; }
    .photo-check { top: 6px; left: 6px; width: 30px; height: 30px; }
}

/* Album – titulná fotka aj pri albume chránenom heslom */
.album__media { position: relative; display: block; }
.album__lock {
    position: absolute; left: 10px; bottom: 10px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px;
    background: rgba(255, 255, 255, .94); color: var(--ink);
    font-size: 13px; font-weight: 500; box-shadow: 0 1px 6px rgba(22, 48, 63, .18);
}
.album__lock--open { color: var(--primary); }
.locked-cover { display: block; width: auto; max-width: 100%; max-height: 280px; margin: 4px 0 24px; border-radius: 18px; }

/* Lišta prihláseného správcu webu */
.admin-bar { background: var(--ink); color: #DCE6EB; font-size: 14px; }
.admin-bar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; min-height: 40px; padding-top: 4px; padding-bottom: 4px; }
.admin-bar__user { display: inline-flex; align-items: center; gap: 8px; }
.admin-bar__user strong { color: #fff; font-weight: 500; }
.admin-bar__role { color: #9FB4C0; }
.admin-bar__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.admin-bar__links form { margin: 0; }
.admin-bar__links a, .admin-bar__links button {
    color: #fff; text-decoration: none; font: inherit; background: none; border: 0; padding: 6px 0; cursor: pointer;
}
.admin-bar__links a:hover, .admin-bar__links button:hover { text-decoration: underline; text-underline-offset: 3px; }
.admin-bar__links button { color: #9FB4C0; }
@media (max-width: 600px) {
    .admin-bar__role { display: none; }
    .admin-bar__inner { gap: 0 16px; }
}

/* Mapa stránky */
.sitemap h2 { font-size: 22px; margin: 40px 0 12px; }
.sitemap h2:first-child { margin-top: 8px; }
.sitemap ul { margin: 0; padding-left: 1.2em; line-height: 1.8; }
.sitemap a { text-underline-offset: 3px; }
.sitemap__date { color: var(--muted-2); font-size: 14px; margin-left: 6px; }

/* Veľkosť obrázka zvolená v editore (okno Vložiť/upraviť obrázok → Veľkosť obrázka) */
.prose img.img-maly, .prose img.img-stredny, .prose img.img-velky, .prose img.img-cely { display: block; height: auto; margin-left: auto; margin-right: auto; }
.prose img.img-maly { width: 33%; min-width: 160px; }
.prose img.img-stredny { width: 50%; }
.prose img.img-velky { width: 75%; }
.prose img.img-cely { width: 100%; }
@media (max-width: 600px) {
    .prose img.img-maly { width: 50%; }
    .prose img.img-stredny, .prose img.img-velky { width: 100%; }
}

/* Obtekanie textu okolo obrázka (tlačidlá zarovnania v editore) */
.prose::after { content: ''; display: table; clear: both; }
.prose img.img-vlavo { float: left; margin: .35em 1.6em 1em 0; }
.prose img.img-vpravo { float: right; margin: .35em 0 1em 1.6em; }
.prose img.img-vlavo:not([class*="img-maly"]):not([class*="img-stredny"]):not([class*="img-velky"]):not([class*="img-cely"]),
.prose img.img-vpravo:not([class*="img-maly"]):not([class*="img-stredny"]):not([class*="img-velky"]):not([class*="img-cely"]) { max-width: 45%; }
.prose figure.img-vlavo { float: left; max-width: 45%; margin: .35em 1.6em 1em 0; }
.prose figure.img-vpravo { float: right; max-width: 45%; margin: .35em 0 1em 1.6em; }
.prose figure.img-vlavo img, .prose figure.img-vpravo img { width: 100%; }
.prose h2, .prose h3, .prose h4, .prose hr, .prose figure.gallery { clear: both; }
@media (max-width: 600px) {
    /* na mobile obteká len malý obrázok; ostatné sú samostatne na celú šírku */
    .prose img.img-vlavo:not(.img-maly), .prose img.img-vpravo:not(.img-maly),
    .prose figure.img-vlavo, .prose figure.img-vpravo { float: none; max-width: 100%; margin: 1em 0; }
    .prose img.img-maly.img-vlavo, .prose img.img-maly.img-vpravo { width: 42%; min-width: 0; }
}

/* Titulná fotka albumu v inom pomere ako 4:3 – celá, bez orezania, s rozmazaným pozadím */
.album__media { overflow: hidden; border-radius: 18px; }
.album__image--fit { position: relative; z-index: 1; object-fit: contain; background: transparent; }
.album__backdrop { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(22px) saturate(1.1); opacity: .55; transform: scale(1.05); }
.album__lock { z-index: 2; }
