﻿/* Kamenica – theme
   WCAG 2.1 AA: kontrast textu min. 4.5:1, ovládacích prvkov a fokusu min. 3:1.
   Všetky zdroje (fonty, ikony) sú lokálne – bez prenosu údajov tretím stranám. */

/* ------------------------------------------------------------------ fonts (self-hosted, SIL OFL) */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500 600; font-display: swap; src: url("../fonts/manrope-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/manrope-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/fraunces-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ikonové fonty – opravená cesta k lokálnym súborom */
@font-face { font-family: 'FontAwesome'; font-weight: normal; font-style: normal; font-display: block; src: url("../fonts/fontawesome-webfont.woff2?v=4.6.3") format("woff2"), url("../fonts/fontawesome-webfont.woff?v=4.6.3") format("woff"); }
@font-face { font-family: 'townpress'; font-weight: normal; font-style: normal; font-display: block; src: url("../fonts/townpress.woff?u6p4kh") format("woff"), url("../fonts/townpress.ttf?u6p4kh") format("truetype"); }

/* ------------------------------------------------------------------ tokens */

:root {
    --radius: 1.25rem;
    --shadow-card: 0 1px 2px rgba(87, 5, 4, .05), 0 8px 28px -8px rgba(87, 5, 4, .16);
    --ink: #2a1312;
    --muted: #4b5563;      /* 7.0:1 na pozadí */
    --line: #f0dedc;
    --field-border: #6b7280; /* 4.8:1 – hranica ovládacích prvkov */
    --focus-inner: #570504;
    --focus-outer: #ffd23a;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.6; }
.font-serif, h1, h2, h3 { font-family: Fraunces, Georgia, "Times New Roman", serif; }
.text-muted { color: var(--muted); }

::selection { background: var(--color-gold-400); color: var(--color-primary-900); }

a { color: var(--color-accent-600); text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--color-primary-800); }

/* Viditeľný fokus (WCAG 2.4.7, 1.4.11): dvojfarebný prstenec funguje na svetlom aj tmavom pozadí. */
:focus { outline: none; }
:focus-visible {
    outline: 3px solid var(--focus-inner);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--focus-outer);
    border-radius: 6px;
}
.site-footer :focus-visible, .main-nav :focus-visible, .official-bar :focus-visible, .topbar :focus-visible, .hero :focus-visible {
    outline-color: var(--focus-outer);
    box-shadow: 0 0 0 5px var(--focus-inner);
}
main:focus, nav:focus { outline: none; box-shadow: none; }

.icon { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; vertical-align: -.125em; }

.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 100;
    border-radius: .5rem; background: #fff; padding: .75rem 1rem;
    font-weight: 700; color: var(--color-primary-900); box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.skip-link:focus { top: 1rem; }

/* ------------------------------------------------------------------ official bar (ID-SK) + topbar */

.official-bar { background: #fbf1f0; color: var(--ink); font-size: .8125rem; border-bottom: 1px solid var(--line); }
.official-bar-toggle { border: 0; background: none; padding: .25rem 0; font-weight: 700; color: var(--color-primary-700); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.official-bar-toggle[aria-expanded="true"] { color: var(--color-primary-900); }
.official-bar-info { border-top: 1px solid var(--line); background: #fff; line-height: 1.6; }
.official-bar :focus-visible { outline-color: var(--focus-inner); box-shadow: 0 0 0 5px var(--focus-outer); }

.topbar { background: var(--color-primary-900); font-size: .8125rem; color: rgba(255, 255, 255, .85); }
.topbar a { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255, 255, 255, .9); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .icon { color: var(--color-gold-400); }
.font-size-controls { display: inline-flex; gap: .25rem; border-left: 1px solid rgba(255, 255, 255, .25); padding-left: .75rem; }
.font-size-controls button { min-width: 2rem; min-height: 2rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: .375rem; background: transparent; padding: 0 .5rem; font-weight: 700; color: #fff; cursor: pointer; }
.font-size-controls button:hover { background: rgba(255, 255, 255, .12); }

/* ------------------------------------------------------------------ header */

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -10px rgba(87, 5, 4, .35); }
.brand { display: flex; min-width: 0; align-items: center; gap: .75rem; text-decoration: none; }
.brand-kicker { display: block; font-size: .6875rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--color-accent-600); }
.brand-name { display: block; white-space: nowrap; font-family: Fraunces, Georgia, serif; font-size: 1.25rem; font-weight: 700; color: var(--color-primary-900); }
@media (min-width: 640px) { .brand-name { font-size: 1.5rem; } }

.icon-btn { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; color: var(--color-primary-800); cursor: pointer; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--color-primary-50); }
.menu-btn { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .5rem; border: 0; border-radius: 999px; background: var(--color-primary-800); padding: 0 1rem; font-size: .875rem; font-weight: 700; color: #fff; cursor: pointer; }
@media (min-width: 1024px) { .menu-btn { display: none; } }

.btn-primary, .btn-accent, .btn-gold, .btn-ghost {
    display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; gap: .5rem;
    border: 0; border-radius: 999px; padding: .65rem 1.4rem; font-size: .9375rem; font-weight: 700;
    text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s;
}
.btn-primary { background: var(--color-primary-800); color: #fff; }
.btn-primary:hover { background: var(--color-primary-900); color: #fff; }
.btn-accent { background: var(--color-accent-500); color: #fff; }
.btn-accent:hover { background: var(--color-accent-600); color: #fff; }
.btn-gold { background: var(--color-gold-400); color: var(--color-primary-900); }
.btn-gold:hover { background: #fff; color: var(--color-primary-900); }
.btn-ghost { background: rgba(87, 5, 4, .55); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .8); }
.btn-ghost:hover { background: rgba(87, 5, 4, .85); color: #fff; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.search-panel { border-top: 1px solid var(--line); background: #fff; }
.field {
    width: 100%; min-height: 2.75rem; border: 1px solid var(--field-border); border-radius: .75rem;
    background: #fff; padding: .6rem 1rem; font-size: 1rem; color: var(--ink);
}
.field:focus-visible { border-color: var(--focus-inner); }

/* ------------------------------------------------------------------ main navigation */

.main-nav { display: none; background: var(--color-primary-800); }
.main-nav.is-open { display: block; max-height: calc(100vh - 4.5rem); overflow-y: auto; }
.nav-list { display: flex; flex-direction: column; padding: .75rem 0; }
.nav-link {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .375rem;
    border: 0; border-radius: .75rem; background: transparent; padding: .8rem 1rem;
    font: inherit; font-size: .9375rem; font-weight: 700; color: #fff; text-align: left; text-decoration: none; cursor: pointer;
}
.nav-link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-link[aria-current="page"] { background: rgba(255, 255, 255, .12); box-shadow: inset 4px 0 0 var(--color-gold-400); }
.nav-chevron { width: 1rem; height: 1rem; flex-shrink: 0; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

.subnav { margin: .25rem 0 .5rem 1rem; border-left: 2px solid rgba(255, 255, 255, .25); padding-left: .5rem; }
.subnav-link { display: block; border-radius: .625rem; padding: .55rem .75rem; font-size: .9375rem; color: #fff; text-decoration: none; }
.subnav-link:hover { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: underline; }
.subnav-link[aria-current="page"] { font-weight: 800; text-decoration: underline; }
.subnav-heading { display: block; padding: .55rem .75rem .25rem; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.subnav-nested { margin-left: .5rem; }
.nav-mobile-extra { display: flex; flex-wrap: wrap; gap: .5rem; border-top: 1px solid rgba(255, 255, 255, .2); padding: 1rem 0; }
.nav-mobile-extra a { border-radius: 999px; background: rgba(255, 255, 255, .12); padding: .55rem 1rem; font-size: .875rem; font-weight: 700; color: #fff; text-decoration: none; }

@media (min-width: 1024px) {
    .main-nav { display: block; }
    .nav-list { flex-direction: row; flex-wrap: wrap; padding: 0; }
    .nav-item { position: relative; }
    .nav-link { position: relative; height: 100%; width: auto; border-radius: 0; padding: 1rem .9rem; font-size: .875rem; }
    .nav-link::after { content: ''; position: absolute; left: .9rem; right: .9rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--color-gold-400); transform: scaleX(0); transition: transform .2s; }
    .nav-link:hover, .nav-link[aria-current="page"] { background: transparent; box-shadow: none; }
    .nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-toggle[aria-expanded="true"]::after { transform: scaleX(1); }

    .subnav {
        position: absolute; left: 0; top: 100%; z-index: 60; min-width: 18rem; max-width: 24rem;
        margin: 0; border: 0; border-radius: 0 0 1rem 1rem; background: #fff; padding: .5rem;
        box-shadow: 0 18px 40px -12px rgba(87, 5, 4, .35);
    }
    .nav-item:last-child .subnav, .nav-item:nth-last-child(2) .subnav { left: auto; right: 0; }
    .subnav-link { color: var(--ink); font-size: .875rem; }
    .subnav-link:hover { background: var(--color-primary-50); color: var(--color-primary-900); }
    .subnav-heading { color: var(--muted); }
    .subnav-nested { margin-left: .75rem; border-left: 2px solid var(--line); padding-left: .25rem; }
    .main-nav .subnav :focus-visible { outline-color: var(--focus-inner); box-shadow: 0 0 0 5px var(--focus-outer); }
}

/* ------------------------------------------------------------------ hero */

.hero { position: relative; overflow: hidden; background: var(--color-primary-900); }
.hero-home { height: 26rem; }
.hero-sub { height: 8rem; }
@media (min-width: 640px) { .hero-home { height: 32rem; } .hero-sub { height: 11rem; } }
@media (min-width: 1024px) { .hero-home { height: 36rem; } .hero-sub { height: 13rem; } }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.05); transition: opacity 1.5s, transform 7s; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-fallback { background: radial-gradient(circle at 78% 30%, rgba(255, 210, 58, .35), transparent 50%), linear-gradient(135deg, #570504, #a90a07 55%, #e3120b); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(87, 5, 4, .92) 0%, rgba(142, 9, 6, .62) 50%, rgba(227, 18, 11, .15) 100%); }
.hero-kicker { display: inline-block; width: fit-content; margin-bottom: 1rem; border-radius: 999px; background: rgba(87, 5, 4, .6); padding: .35rem 1rem; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--color-gold-400); }
.hero-title { max-width: 42rem; font-size: 2.25rem; font-weight: 700; line-height: 1.1; color: #fff; }
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }
.hero-lead { margin-top: 1.25rem; max-width: 36rem; font-size: 1.0625rem; color: #fff; }
.hero-pause { position: absolute; right: 1rem; bottom: 1rem; z-index: 5; border: 0; border-radius: 999px; background: rgba(87, 5, 4, .8); padding: .5rem .9rem; font-size: .8125rem; font-weight: 700; color: #fff; cursor: pointer; }
.hero-home .hero-pause { bottom: 4.5rem; }
.hero-pause:hover { background: var(--color-primary-900); }

/* ------------------------------------------------------------------ quick links */

.quick-link {
    display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: flex-start; gap: .75rem;
    border-radius: var(--radius); background: #fff; padding: 1.25rem 1rem;
    font-size: .9375rem; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none;
    color: var(--color-primary-900); box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s;
}
.quick-link svg { width: 4rem; height: 4rem; flex-shrink: 0; border-radius: 1rem; background: var(--color-primary-50); padding: .9rem; color: var(--color-primary-700); transition: background-color .2s, color .2s; }
.quick-link:hover { transform: translateY(-3px); color: var(--color-primary-900); text-decoration: underline; box-shadow: 0 18px 40px -16px rgba(87, 5, 4, .35); }
.quick-link:hover svg { background: var(--color-accent-500); color: #fff; }
@media (max-width: 639px) {
    .quick-link { padding: .875rem .5rem; font-size: .875rem; }
    .quick-link svg { width: 3.25rem; height: 3.25rem; padding: .7rem; }
}

/* ------------------------------------------------------------------ page header + breadcrumbs */

#page-header { position: relative; margin-bottom: 1.75rem; }
#page-header .page-title h1, .page-heading {
    font-family: Fraunces, Georgia, serif; font-size: 1.875rem; font-weight: 700; line-height: 1.15;
    color: var(--color-primary-900); text-wrap: balance;
}
#page-header .page-title p { color: var(--muted); }
@media (min-width: 640px) { #page-header .page-title h1, .page-heading { font-size: 2.375rem; } }
#page-header::after { content: ''; display: block; margin-top: 1rem; height: 4px; width: 3.5rem; border-radius: 4px; background: linear-gradient(90deg, var(--color-accent-500), var(--color-gold-400)); }
#page-header.m-has-breadcrumbs { display: flex; flex-direction: column; }

.breadcrumbs { order: -1; margin-bottom: .75rem; font-size: .875rem; color: var(--muted); }
.breadcrumbs ul, .breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .375rem; }
.breadcrumbs li:not(:last-child)::after { content: '›'; color: var(--muted); }
.breadcrumbs a { color: var(--color-primary-700); }
.breadcrumbs a:hover { color: var(--color-primary-900); }
.breadcrumbs li.current, .breadcrumbs li.current a, .breadcrumbs [aria-current] { font-weight: 700; color: var(--color-primary-900); text-decoration: none; }

.page-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1rem; font-size: .875rem; color: var(--muted); }
.page-meta dt { display: inline; font-weight: 700; }
.page-meta dd { display: inline; margin: 0; }

/* ------------------------------------------------------------------ content boxes + typography */

.page-content-inner > * + * { margin-top: 1.5rem; }

.c-content-box { border-radius: var(--radius); background: #fff; padding: 1.5rem; box-shadow: var(--shadow-card); overflow-wrap: anywhere; }
@media (min-width: 640px) { .c-content-box { padding: 2rem 2.25rem; } }
.c-content-box.m-no-padding { padding: 0; overflow: hidden; }
.c-content-box + .c-content-box { margin-top: 1.5rem; }

.c-content-box, .post-content, .article-content { font-size: 1rem; line-height: 1.75; color: #334155; }
.c-content-box h1, .c-content-box h2, .c-content-box h3, .c-content-box h4 { font-family: Fraunces, Georgia, serif; font-weight: 700; line-height: 1.25; color: var(--color-primary-900); }
.c-content-box h1 { font-size: 1.75rem; margin: 0 0 1rem; }
.c-content-box h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }
.c-content-box h3 { font-size: 1.25rem; margin: 1.75rem 0 .625rem; }
.c-content-box h4 { font-family: Manrope, system-ui, sans-serif; font-size: 1.0625rem; margin: 1.5rem 0 .5rem; }
.c-content-box > :first-child, .c-content-box > :first-child > :first-child { margin-top: 0; }
.c-content-box p { margin: 0 0 1rem; }
.c-content-box ul:not([class]), .c-content-box ol:not([class]) { margin: 0 0 1rem; padding-left: 1.25rem; }
.c-content-box ul:not([class]) { list-style: disc; }
.c-content-box ol:not([class]) { list-style: decimal; }
.c-content-box li::marker { color: var(--color-accent-500); }
.c-content-box a:not([class]) { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
.c-content-box a:not([class]):hover { text-decoration-thickness: 2px; }
.c-content-box :is(h1, h2, h3, h4, h5) a:not([class]) { font-weight: inherit; text-decoration: none; color: inherit; }
.c-content-box :is(h1, h2, h3, h4, h5) a:not([class]):hover { text-decoration: underline; }
.c-content-box img { max-width: 100%; height: auto; border-radius: .75rem; }
.c-content-box blockquote { margin: 1.5rem 0; border-left: 4px solid var(--color-accent-500); background: var(--color-primary-50); border-radius: 0 .75rem .75rem 0; padding: 1rem 1.25rem; color: var(--color-primary-900); }
.c-content-box hr { margin: 2rem 0; border-color: var(--line); }
.c-content-box iframe { max-width: 100%; border: 0; border-radius: .75rem; }
.c-content-box dl.facts { display: grid; gap: .5rem 1.5rem; grid-template-columns: max-content 1fr; }
.c-content-box dl.facts dt { font-weight: 700; color: var(--color-primary-900); }
.c-content-box dl.facts dd { margin: 0; }

/* prílohy – formát a veľkosť sú súčasťou názvu odkazu */
.attachment, .file-list { list-style: none; margin: 0; padding: 0; }
.attachment li, .file-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; border-bottom: 1px solid var(--line); padding: .75rem 0; }
.attachment li:last-child, .file-list li:last-child { border-bottom: 0; }
.attachment li a:first-child, .file-list a { display: inline-flex; align-items: baseline; gap: .5rem; font-weight: 700; color: var(--color-primary-800); }
.attachment li a:first-child:hover, .file-list a:hover { color: var(--color-accent-600); }
.attachment small, .file-meta { font-weight: 600; color: var(--muted); }
.attachment .fa, .attachment .fi-download { color: var(--color-accent-600); }
.file-badge { display: inline-flex; align-items: center; border-radius: .375rem; background: var(--color-primary-50); padding: .05rem .4rem; font-size: .75rem; font-weight: 800; letter-spacing: .04em; color: var(--color-primary-800); }

/* ------------------------------------------------------------------ posts (spravodajstvo / článok) */

.post-page .post, .post-list-page .post { margin-bottom: 1.5rem; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
.post-page .post .post-inner { border-radius: 0; box-shadow: none; }
@media (min-width: 768px) {
    .post-list-page .post .post-inner { display: grid; grid-template-columns: 38% 1fr; }
    .post-list-page .post .post-footer { grid-column: 1 / -1; }
}
.post-page .post-image { overflow: hidden; background: var(--color-primary-50); }
.post-page .post-image img { display: block; width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: 0; }
.post-page .post-core { padding: 1.5rem; }
.post-page .post-title { font-family: Fraunces, Georgia, serif; font-size: 1.375rem; font-weight: 700; line-height: 1.3; color: var(--color-primary-900); }
.post-page .post-title a { color: var(--color-primary-900); }
.post-page .post-title a:hover { text-decoration: underline; }
.post-page .post-content { margin-top: .75rem; color: #475569; }
.post-page .post-date, .post-date { display: inline-flex; align-items: center; gap: .375rem; margin-top: .5rem; font-size: .875rem; font-weight: 600; color: var(--muted); }
.post-page .post-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--line); background: #fff9f8; padding: .875rem 1.5rem; font-size: .875rem; color: var(--muted); }
.post-footer .tp, .post-footer .fa { color: var(--color-accent-600); }

/* ------------------------------------------------------------------ widgets (DB komponenty) */

.sidebar .widget, .widget { position: relative; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
.widget-inner { position: relative; }
.widget-title {
    display: flex; align-items: center; gap: .625rem; margin: 0; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem;
    font-family: Fraunces, Georgia, serif; font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--color-primary-900);
}
.widget-title::before { content: ''; width: .5rem; height: .5rem; flex-shrink: 0; border-radius: 999px; background: var(--color-accent-500); }
.widget-ico, .ico-shadow { display: none; }
.widget-content { padding: 1rem 1.25rem 1.25rem; font-size: .9375rem; line-height: 1.6; color: #374151; }
.widget-content a { color: var(--color-primary-700); font-weight: 700; }
.widget-content a:hover { color: var(--color-primary-900); text-decoration: underline; }
.widget-content img { max-width: 100%; height: auto; border-radius: .75rem; }
.widget-content p { margin: 0 0 .75rem; }
.widget-content p:last-child { margin-bottom: 0; }

.admin-widget { border-radius: var(--radius); overflow: hidden; background: #3b0f0e !important; box-shadow: var(--shadow-card); }
.admin-widget .widget-title { border-color: rgba(255, 255, 255, .2); color: #fff; }
.admin-widget .widget-title::before { background: #fff; }
.admin-widget .widget-content a { color: #fff; }

/* základné údaje o obci */
.info-list { display: grid; gap: .5rem; margin: 0; }
.info-list > div { display: grid; grid-template-columns: 9rem 1fr; gap: .75rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.info-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list dt { font-size: .8125rem; font-weight: 700; color: var(--muted); }
.info-list dd { margin: 0; font-weight: 700; color: var(--color-primary-900); }

/* oznamy */
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list .notice, .notice { position: relative; border-bottom: 1px solid var(--line); padding: .75rem 0; }
.notice-list .notice:first-child { padding-top: 0; }
.notice-list .notice:last-child { border-bottom: 0; padding-bottom: 0; }
.notice-title { display: block; margin: 0; font-family: Manrope, system-ui, sans-serif; font-size: .9375rem; font-weight: 700; line-height: 1.4; color: var(--color-primary-900); }
.notice-title a { color: var(--color-primary-900) !important; }
.notice-title a:hover { text-decoration: underline; }
.notice-date { display: block; margin-top: .25rem; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.notice.today { margin: 0 -.75rem; border-radius: .75rem; background: var(--color-primary-50); padding-left: .75rem; padding-right: .75rem; box-shadow: inset 4px 0 0 var(--color-accent-500); }
.notice.today .notice-title::after { content: ' (dnes)'; font-weight: 600; color: var(--color-accent-600); }

/* dokumenty */
.document-list { list-style: none; margin: 0; padding: 0; }
.document { position: relative; border-bottom: 1px solid var(--line); padding: .75rem 0 .75rem 2.75rem; }
.document:last-child { border-bottom: 0; }
.document-icon { position: absolute; left: 0; top: .8rem; display: inline-flex; height: 2rem; width: 2rem; align-items: center; justify-content: center; border-radius: .625rem; background: var(--color-primary-50); font-size: .625rem; font-weight: 800; color: var(--color-primary-800); }
.document-title { display: block; margin: 0; font-family: Manrope, system-ui, sans-serif; font-size: .9375rem; font-weight: 700; line-height: 1.4; color: var(--color-primary-900); }
.document-meta, .document-filesize, .document-info { display: block; margin-top: .2rem; font-size: .8125rem; color: var(--muted); }

/* pozvánky */
.event-list { list-style: none; margin: 0; padding: 0; }
.event { display: flex; gap: .875rem; border-bottom: 1px solid var(--line); padding: .75rem 0; }
.event:last-child { border-bottom: 0; }
.event-date { display: flex; width: 3.25rem; flex-shrink: 0; flex-direction: column; align-items: center; justify-content: center; border-radius: .75rem; background: var(--color-primary-800); padding: .35rem; color: #fff; line-height: 1.1; }
.event-day { font-size: 1.25rem; font-weight: 800; }
.event-month { font-size: .6875rem; font-weight: 700; text-transform: uppercase; }
.event-title { margin: 0; align-self: center; font-family: Manrope, system-ui, sans-serif; font-size: .9375rem; font-weight: 700; }

/* zoznamy článkov v komponentoch */
.post-list-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; font-family: Fraunces, Georgia, serif; font-size: 1.5rem; font-weight: 700; color: var(--color-primary-900); }
.post-list-title a { color: inherit; text-decoration: none; }
.post-list-title a:hover { text-decoration: underline; }
.post-list-content .post { border-bottom: 1px solid var(--line); padding: .875rem 0; }
.post-list-content .post:last-of-type { border-bottom: 0; }
.post-list-content .post-title { margin: 0; font-family: Manrope, system-ui, sans-serif; font-size: 1rem; font-weight: 700; line-height: 1.4; }
.post-list-content .post-title a { color: var(--color-primary-900); text-decoration: none; }
.post-list-content .post-title a:hover { text-decoration: underline; }
.featured-post { display: grid; gap: 1.25rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; }
@media (min-width: 640px) { .featured-post.m-has-thumb { grid-template-columns: 40% 1fr; } }
.featured-post .post-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1rem; }
.featured-post .post-title { font-family: Fraunces, Georgia, serif; font-size: 1.25rem; }
.post-excerpt { margin-top: .5rem; color: #374151; }

.show-all-btn { margin: 1rem 0 0; }
.show-all-btn a, .more-btn-holder a, .btn1 {
    display: inline-flex; min-height: 2.5rem; align-items: center; gap: .375rem; border-radius: 999px;
    background: var(--color-primary-50); padding: .5rem 1rem; font-size: .875rem; font-weight: 700;
    color: var(--color-primary-800) !important; text-decoration: none; transition: background-color .2s, color .2s;
}
.show-all-btn a:hover, .more-btn-holder a:hover, .btn1:hover { background: var(--color-primary-800); color: #fff !important; text-decoration: underline; }
.show-all-btn a::after, .more-btn-holder a::after { content: '→'; }

.my-container.flex-list { display: grid; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .my-container.flex-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.my-container .c-content-box { height: 100%; }
.my-container .featured-post.m-has-thumb { grid-template-columns: 1fr; }

.image-widget img { display: block; width: 100%; height: auto; }

/* externý obsah (mapa) – načíta sa až po súhlase */
.consent-embed { display: grid; place-items: center; gap: .75rem; min-height: 16rem; border-radius: var(--radius); background: var(--color-primary-50); padding: 1.5rem; text-align: center; color: var(--ink); }
.consent-embed p { max-width: 32rem; }
.consent-embed iframe { width: 100%; min-height: 28rem; border: 0; border-radius: var(--radius); }
.consent-embed.is-loaded { display: block; padding: 0; }

/* ------------------------------------------------------------------ side menu */

.side-menu { overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
.side-menu-header { margin: 0; background: var(--color-primary-800); padding: 1rem 1.25rem; font-family: Fraunces, Georgia, serif; font-size: 1.125rem; font-weight: 700; color: #fff; }
.side-menu ul { list-style: none; margin: 0; }
.side-menu-link { display: block; border-radius: .75rem; padding: .55rem .875rem; font-size: .9375rem; font-weight: 600; color: #1f2937; text-decoration: none; }
.side-menu-link:hover { background: var(--color-primary-50); color: var(--color-primary-900); text-decoration: underline; }
.side-menu-link[aria-current="page"], a.side-menu-link-active { background: var(--color-primary-50); color: var(--color-primary-900); font-weight: 800; box-shadow: inset 4px 0 0 var(--color-accent-500); }
.side-menu-group { display: block; padding: .55rem .875rem .25rem; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side-menu-nested { margin: 0 0 .5rem .875rem !important; border-left: 2px solid var(--line); padding-left: .25rem !important; }

/* ------------------------------------------------------------------ image preview modal */

.calendar-preview { display: block; border-radius: .75rem; cursor: zoom-in; }
.calendar-preview span { display: block; margin-top: .75rem; text-align: center; font-size: .875rem; }
.image-modal { width: min(72rem, calc(100% - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); margin: auto; border: 0; border-radius: var(--radius); background: #fff; padding: 0; overflow: hidden; color: var(--ink); box-shadow: 0 24px 80px rgba(87, 5, 4, .4); }
.image-modal[open] { display: flex; flex-direction: column; }
.image-modal::backdrop { background: rgba(40, 4, 3, .8); }
.image-modal-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem; }
.image-modal-header h2 { font-size: 1.125rem; font-weight: 700; color: var(--color-primary-900); }
.image-modal-close { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 999px; background: var(--color-primary-50); color: var(--color-primary-800); font-size: 1.75rem; cursor: pointer; }
.image-modal-close:hover { background: var(--color-primary-800); color: #fff; }
.image-modal-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 1rem; }
.image-modal-body img { display: block; width: 100%; height: auto; margin: auto; }

/* ------------------------------------------------------------------ gallery */

.gallery-images { display: grid; gap: .875rem; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .gallery-images { grid-template-columns: repeat(3, 1fr); } }
.gallery-image a { display: block; overflow: hidden; border-radius: 1rem; background: var(--color-primary-50); }
.gallery-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; transition: transform .5s; }
.gallery-image a:hover img { transform: scale(1.04); }

/* ------------------------------------------------------------------ pagination */

.c-pagination ul, ul.pagination { display: flex; flex-wrap: wrap; gap: .375rem; list-style: none; margin: 1.5rem 0; padding: 0; }
.c-pagination li a, ul.pagination li a, ul.pagination li span {
    display: inline-flex; min-width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border-radius: 999px;
    background: #fff; padding: 0 .75rem; font-size: .9375rem; font-weight: 700; color: var(--color-primary-800);
    box-shadow: inset 0 0 0 1px var(--field-border); text-decoration: none;
}
.c-pagination li a:hover, ul.pagination li a:hover { background: var(--color-primary-50); }
.c-pagination li.m-active a, ul.pagination li.active a, ul.pagination li.active span { background: var(--color-primary-800); color: #fff; box-shadow: none; }

/* ------------------------------------------------------------------ alerts */

.c-alert-message, .alert { display: flex; gap: .75rem; margin-bottom: 1rem; border-radius: 1rem; border: 1px solid #d97706; background: #fffbeb; padding: 1rem 1.25rem; color: #78350f; }
.alert-success, .c-alert-message.m-success { border-color: #15803d; background: #f0fdf4; color: #14532d; }
.alert-danger, .c-alert-message.m-warning { border-color: #b91c1c; background: #fef2f2; color: #7f1d1d; }
.alert-info, .c-alert-message.m-info { border-color: #1d4ed8; background: #eff6ff; color: #1e3a8a; }

/* ------------------------------------------------------------------ tables */

.table-wrap, .table-responsive, .dataTables_wrapper { overflow-x: auto; }
table { width: 100%; font-size: .9375rem; border-collapse: separate; border-spacing: 0; }
.c-content-box table { border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
table caption { padding: .5rem 0; text-align: left; font-weight: 700; color: var(--color-primary-900); }
table thead th { background: var(--color-primary-800); padding: .75rem 1rem; text-align: left; font-weight: 700; color: #fff; }
table tbody td, table tbody th { border-bottom: 1px solid var(--line); padding: .75rem 1rem; text-align: left; vertical-align: top; }
table tbody tr:last-child td { border-bottom: 0; }
table tbody tr:nth-child(even) td { background: #fff9f8; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { min-height: 2.5rem; border: 1px solid var(--field-border); border-radius: .75rem; padding: .375rem .875rem; }

div.westo_calendar .table tr.calendar-month-header th { background: var(--color-primary-800); color: #fff; }
.export-ics { margin: .5rem 0; text-align: center; }
.export-ics a { display: inline-flex; min-height: 2.5rem; align-items: center; gap: .5rem; border-radius: 999px; background: var(--color-primary-800); padding: .5rem 1rem; font-size: .875rem; font-weight: 700; color: #fff; text-decoration: none; }
.export-ics a:hover { background: var(--color-primary-900); text-decoration: underline; }

/* ------------------------------------------------------------------ forms */

.c-content-box input[type="text"], .c-content-box input[type="email"], .c-content-box input[type="tel"],
.c-content-box input[type="search"], .c-content-box input[type="password"], .c-content-box input[type="date"],
.c-content-box input[type="number"], .c-content-box select, .c-content-box textarea, .form-control {
    width: 100%; min-height: 2.75rem; border: 1px solid var(--field-border); border-radius: .75rem; background: #fff;
    padding: .6rem 1rem; font-size: 1rem; color: var(--ink);
}
.c-content-box input[aria-invalid="true"], .form-control[aria-invalid="true"] { border-color: #b91c1c; border-width: 2px; }
.c-content-box label { display: block; margin-bottom: .375rem; font-size: .9375rem; font-weight: 700; color: var(--color-primary-900); }
.c-content-box label:has(input[type="radio"]), .c-content-box label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.c-content-box input[type="radio"], .c-content-box input[type="checkbox"] { width: 1.25rem; height: 1.25rem; accent-color: var(--color-primary-800); }
.c-content-box .form-group, .c-form .form-field, .form-row { margin-bottom: 1rem; }
.required-mark { color: #b91c1c; }
.c-button, .btn, .submit-btn, .c-content-box button[type="submit"], .c-content-box input[type="submit"] {
    display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; gap: .5rem;
    border: 0; border-radius: 999px; background: var(--color-primary-800); padding: .65rem 1.5rem;
    font-size: .9375rem; font-weight: 700; color: #fff; cursor: pointer; transition: background-color .2s;
}
.c-button:hover, .btn:hover, .submit-btn:hover, .c-content-box button[type="submit"]:hover, .c-content-box input[type="submit"]:hover { background: var(--color-primary-900); color: #fff; }
.btn-success { background: var(--color-accent-500); }
.btn-default { background: var(--color-primary-50); color: var(--color-primary-800); }
fieldset { border: 0; margin: 0; padding: 0; }
legend { margin-bottom: .75rem; font-weight: 700; color: var(--color-primary-900); }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--color-primary-900); color: rgba(255, 255, 255, .88); }
.site-footer a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); }
.site-footer a:hover { color: var(--color-gold-400); text-decoration-color: currentColor; }
.footer-title { margin-bottom: 1.25rem; font-family: Manrope, system-ui, sans-serif; font-size: .8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--color-gold-400); }
.footer-address { display: grid; gap: .875rem; font-size: .9375rem; font-style: normal; line-height: 1.6; }
.footer-links { display: grid; gap: .625rem; font-size: .9375rem; }
.office-hours { display: grid; gap: .375rem; margin: 0; font-size: .9375rem; }
.office-hours > div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .15); padding-bottom: .375rem; }
.office-hours dt { font-weight: 700; color: #fff; }
.office-hours dd { margin: 0; }
.office-hours > div.is-today { color: var(--color-gold-400); }
.office-hours > div.is-today dt { color: var(--color-gold-400); }
.office-hours-light > div { border-color: var(--line); }
.office-hours-light dt { color: var(--color-primary-900); }
.office-hours-light > div.is-today { margin: 0 -.5rem; border-radius: .5rem; background: var(--color-primary-50); padding: .25rem .5rem; color: var(--color-primary-900); box-shadow: inset 4px 0 0 var(--color-accent-500); }
.office-hours-light > div.is-today dt { color: var(--color-primary-900); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); font-size: .875rem; color: rgba(255, 255, 255, .85); }
.footer-identity { display: grid; gap: .25rem; margin: 0; }
.footer-identity > div { display: flex; flex-wrap: wrap; gap: .35rem; }
.footer-identity dt { font-weight: 700; color: #fff; }
.footer-identity dd { margin: 0; }
.site-footer .widget { background: rgba(255, 255, 255, .06); box-shadow: none; color: #fff; }
.site-footer .widget-title { border-color: rgba(255, 255, 255, .15); color: #fff; }
.site-footer .widget-content { color: rgba(255, 255, 255, .88); }

.back-to-top {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: inline-flex; width: 3rem; height: 3rem;
    align-items: center; justify-content: center; border-radius: 999px; background: var(--color-primary-800); color: #fff;
    opacity: 0; pointer-events: none; transform: translateY(1rem); transition: opacity .2s, transform .2s; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.back-to-top.is-visible, .back-to-top:focus-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--color-primary-900); color: #fff; }

/* ------------------------------------------------------------------ home */

.home-components .page-content-inner { display: flex; flex-direction: column; gap: 1.5rem; }
.home-components .page-content-inner > * { margin-top: 0; }
.home-components .my-card { min-width: 0; }
.home-components .my-card .c-post-list { height: 100%; }
.home-components .jv-news-cards { align-items: start; }
.home-components .jv-news-cards .c-content-box { height: auto; padding: 1.25rem; }
.home-components .jv-news-cards .featured-post { display: flex; flex-direction: column; gap: 1rem; margin: 0; padding: 0; border: 0; }
.home-components .jv-news-cards .post-image img { display: block; width: 100%; height: auto; max-height: 12rem; aspect-ratio: auto; object-fit: contain; margin: 0; }
.home-components .jv-news-cards .post-title { margin: 0 0 .5rem; font-size: 1.125rem; line-height: 1.4; }
.home-components .jv-news-cards .news-attachment { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.section-heading { margin: 0 0 1rem; font-size: 1.5rem; font-weight: 700; color: var(--color-primary-900); }

/* ------------------------------------------------------------------ podstránky */

.card-grid { display: grid; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card-grid > li { min-width: 0; }
.notice-card { height: 100%; }
.notice-card-image { display: block; width: 100%; max-height: 14rem; margin-bottom: 1rem; border-radius: .75rem; object-fit: cover; }
.notice-card-title, .gallery-card-title { margin: 0; font-size: 1.1875rem; font-weight: 700; line-height: 1.35; color: var(--color-primary-900); }
.notice-card-title a, .gallery-card-title a { color: inherit; text-decoration: none; }
.notice-card-title a:hover, .gallery-card-title a:hover { text-decoration: underline; }
.notice-card p { margin: .5rem 0 0; }

.gallery-card { position: relative; display: flex; height: 100%; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
.gallery-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--color-primary-50); }
.gallery-card-body { padding: 1.25rem; }
/* celá karta je klikateľná cez odkaz v nadpise */
.gallery-card-title a::after { content: ''; position: absolute; inset: 0; }
.gallery-card .file-list { position: relative; z-index: 1; }

.tab-nav ul, .chip-nav ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.tab-nav a { display: inline-flex; min-height: 2.75rem; align-items: center; border-radius: 999px; background: #fff; padding: .5rem 1.25rem; font-weight: 700; color: var(--color-primary-800); text-decoration: none; box-shadow: inset 0 0 0 1px var(--field-border); }
.tab-nav a:hover { background: var(--color-primary-50); text-decoration: underline; }
.tab-nav a[aria-current="page"] { background: var(--color-primary-800); color: #fff; box-shadow: none; }
.chip-nav { margin-bottom: 1.25rem; }
.chip-nav a { display: inline-flex; min-height: 2.25rem; align-items: center; border-radius: 999px; background: var(--color-primary-50); padding: .35rem .9rem; font-size: .875rem; font-weight: 700; color: var(--color-primary-800); text-decoration: none; }
.chip-nav a:hover { text-decoration: underline; }
.chip-nav a[aria-current="page"] { background: var(--color-accent-500); color: #fff; }
.chip-nav a[aria-current="page"]::before { content: '✓ '; }

.filter-form { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 640px) { .filter-form { flex-direction: row; align-items: flex-end; } .filter-form > .btn-primary { margin-bottom: 0; } }
.filter-form label { display: block; margin-bottom: .375rem; font-weight: 700; color: var(--color-primary-900); }
.filter-form:has(.text-muted) > .btn-primary { align-self: flex-start; }
@media (min-width: 640px) { .filter-form:has(.text-muted) > .btn-primary { margin-top: 1.9rem; } }
.search-summary { font-weight: 700; color: var(--color-primary-900); }
.search-results { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.search-results h3 { margin: 0; font-size: 1.0625rem; }
.search-results p { margin: .25rem 0 0; }

.page-toc ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.page-toc a { font-weight: 700; }

.file-link { display: inline-flex; align-items: baseline; gap: .5rem; font-weight: 700; color: var(--color-primary-800); }
.file-link .file-badge { flex-shrink: 0; }
.file-preview { font-size: .875rem; font-weight: 600; }

.post-lead { margin-bottom: 1.25rem; font-size: 1.125rem; font-weight: 600; color: var(--color-primary-900); }
.post-detail-page .post { overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
.post-detail-page .post-image img { max-height: 32rem; }
.post-detail-page .post-core.c-content-box { box-shadow: none; border-radius: 0; }
.post-list-page { list-style: none; margin: 0; padding: 0; }
.post-list-page .post-image:empty { display: none; }
.post-list-page .post-inner:has(.post-image:empty) { display: block; }
#page-header .post-date { margin-top: .75rem; }

.post-navigation ul { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .post-navigation ul { grid-template-columns: 1fr 1fr; } .post-navigation .next { grid-column: 2; text-align: right; } }
.post-navigation a { display: block; height: 100%; border-radius: var(--radius); background: #fff; padding: 1.25rem; text-decoration: none; box-shadow: var(--shadow-card); }
.post-navigation a:hover .post-nav-title { text-decoration: underline; }
.post-nav-label { display: block; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.post-nav-title { display: block; margin-top: .25rem; font-weight: 700; color: var(--color-primary-900); }

.timeline { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.timeline-item { position: relative; padding-left: 1.75rem; border-left: 4px solid var(--color-accent-500); }
.timeline-date { font-size: .875rem; font-weight: 800; color: var(--color-accent-600); }
.timeline-title { margin: .25rem 0 0; font-size: 1.25rem; font-weight: 700; color: var(--color-primary-900); }
.timeline-content { margin-top: .5rem; }

.consent-embed-video iframe { aspect-ratio: 16 / 9; min-height: 0; height: auto; }

/* tabuľky – na mobile ako karty (hodnoty majú data-label) */
.responsive-table th[scope="row"] { font-weight: 600; }
.responsive-table th[scope="row"] a { font-weight: 700; }
@media (max-width: 767px) {
    .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td, .responsive-table th[scope="row"] { display: block; width: 100%; }
    .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .c-content-box .responsive-table { border: 0; }
    .responsive-table tr { margin-bottom: .75rem; border: 1px solid var(--line); border-radius: 1rem; padding: .5rem 0; }
    .responsive-table tbody td, .responsive-table tbody th[scope="row"] { border: 0; padding: .35rem 1rem; background: transparent !important; }
    .responsive-table [data-label]::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
}

/* DataTables */
.dt-toolbar, .dt-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin: .5rem 0 1rem; font-size: .9375rem; }
.dt-footer { margin: 1rem 0 0; }
.dataTables_wrapper label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: 700; color: var(--color-primary-900); }
.dataTables_wrapper .dataTables_filter input { min-width: 14rem; }
.dataTables_processing { font-weight: 700; color: var(--color-primary-800); }
.dataTables_paginate { display: flex; flex-wrap: wrap; gap: .375rem; }
.dataTables_paginate .paginate_button, .dataTables_paginate a { display: inline-flex; min-width: 2.75rem; min-height: 2.75rem; align-items: center; justify-content: center; border-radius: 999px; padding: 0 .9rem; font-weight: 700; color: var(--color-primary-800); text-decoration: none; cursor: pointer; box-shadow: inset 0 0 0 1px var(--field-border); }
.dataTables_paginate .current, .dataTables_paginate .active a { background: var(--color-primary-800); color: #fff; box-shadow: none; }
.dataTables_paginate .disabled { opacity: .55; cursor: default; }
table.dataTable thead th { cursor: pointer; }
table.dataTable thead th[aria-sort="ascending"]::after { content: ' ▲'; }
table.dataTable thead th[aria-sort="descending"]::after { content: ' ▼'; }

.login-form .form-row input { width: 100%; }

.sitemap { list-style: none; margin: 0; padding: 0; }
.sitemap li { padding: .25rem 0; }
.sitemap ul { list-style: none; margin: .25rem 0 .5rem .5rem; border-left: 2px solid var(--line); padding-left: 1rem; }
.sitemap a { font-weight: 600; }

/* ------------------------------------------------------------------ legacy helpers */

.c-separator { display: none; }
.clearfix::after { content: ''; display: table; clear: both; }
.pull-right, .right { float: right; }
.pull-left, .left { float: left; }
.text-center { text-align: center; }
.lightbox, .thumb, .th { display: inline-block; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
    .official-bar, .topbar, .site-header, .hero, .back-to-top, .sidebar, .site-footer nav, #cc-main { display: none !important; }
    body { background: #fff; }
    .c-content-box { box-shadow: none; padding: 0; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

@media (forced-colors: active) {
    .nav-link::after { background: CanvasText; }
    .quick-link, .widget, .c-content-box { border: 1px solid CanvasText; }
}

/* ------------------------------------------------------------------ Kamenica: sýtejšia červená */

.site-header { border-top: 4px solid var(--color-primary-500); }
.main-nav { background: linear-gradient(90deg, var(--color-primary-800) 0%, var(--color-primary-700) 55%, var(--color-primary-600) 100%); }
.menu-btn, .btn-primary { background: var(--color-primary-700); }
.btn-primary:hover, .menu-btn:hover { background: var(--color-primary-900); }
.brand-kicker { color: var(--color-primary-600); }
.brand-name { color: var(--color-primary-800); }
.topbar { background: var(--color-primary-900); }
.side-menu-header { background: linear-gradient(90deg, var(--color-primary-800), var(--color-primary-600)); }
.widget-title::before { background: var(--color-primary-500); box-shadow: 0 0 0 3px var(--color-primary-100); }
.quick-link svg { background: var(--color-primary-50); color: var(--color-primary-600); }
.quick-link:hover svg { background: var(--color-primary-600); }
.site-footer { background: linear-gradient(180deg, var(--color-primary-900) 0%, #3a0302 100%); }
#page-header::after { background: linear-gradient(90deg, var(--color-primary-500), var(--color-gold-400)); }

/* ------------------------------------------------------------------ legacy komponenty (bootstrap/townpress) */

.row { display: flex; flex-wrap: wrap; margin-left: -.75rem; margin-right: -.75rem; }
.row > [class*="col-"] { width: 100%; min-width: 0; padding-left: .75rem; padding-right: .75rem; }
@media (min-width: 640px) {
    .col-sm-2 { width: 16.6667% !important; } .col-sm-3 { width: 25% !important; } .col-sm-6 { width: 50% !important; }
    .col-sm-9 { width: 75% !important; } .col-sm-10 { width: 83.3333% !important; } .col-sm-12 { width: 100% !important; }
}
@media (min-width: 992px) {
    .col-md-3 { width: 25% !important; } .col-md-4 { width: 33.3333% !important; } .col-md-6 { width: 50% !important; }
    .col-md-9 { width: 75% !important; } .col-md-12 { width: 100% !important; }
    .hidden-md, .hidden-lg { display: none !important; }
}
.panel { margin-bottom: 1rem; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.panel-heading { background: var(--color-primary-50); padding: .75rem 1.25rem; font-weight: 700; color: var(--color-primary-900); }
.panel-body { padding: 1rem 1.25rem; }
.panel-footer { border-top: 1px solid var(--line); background: #fff9f8; padding: .75rem 1.25rem; font-size: .875rem; }
.table { width: 100%; margin-bottom: 1rem; }
.definition-list-widget dl, .widget-content > ul:has(.row-title) { display: grid; grid-template-columns: max-content 1fr; gap: .375rem 1rem; margin: 0; list-style: none; padding: 0; }
.definition-list-widget dt { font-weight: 700; color: var(--color-primary-900); }
.definition-list-widget dd { margin: 0; }
.widget-content > ul:has(.row-title) > li { display: contents; }
.row-title h4 { margin: 0; font-family: Manrope, system-ui, sans-serif; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.row-value { font-weight: 700; color: var(--color-primary-900); }
.site-footer .definition-list-widget dt, .site-footer .row-value { color: #fff; }
.site-footer .widget-content a { color: #fff; }

/* ------------------------------------------------------------------ Kamenica: komponenty */

.sidebar img, .page-content-inner img, .widget img { max-width: 100%; height: auto; }
.image-widget .widget-content { padding: 0; }
.image-widget:has(.widget-title) .widget-content { padding: 1rem 1.25rem 1.25rem; }
.image-widget .widget-content > a, .image-widget .widget-content > p > a { display: block; }
.image-widget .widget-content img { display: block; width: 100%; border-radius: 0; }
.image-widget:has(.widget-title) .widget-content img { border-radius: .75rem; }
.widget-title:has(img) { flex-direction: column; align-items: stretch; }
.widget-title:has(img)::before { display: none; }
.widget-title img { display: block; width: 100%; height: auto; border-radius: .75rem; }

.gallery-images-widget { grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) and (max-width: 1023px) { .gallery-images-widget { grid-template-columns: repeat(2, 1fr); } }
.home-components .gallery-images-widget { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .home-components .gallery-images-widget { grid-template-columns: repeat(3, 1fr); } }
.gallery-images-widget .gallery-image a { position: relative; text-decoration: none; }
.gallery-image-title { position: absolute; inset: auto 0 0 0; background: linear-gradient(0deg, rgba(40, 4, 3, .88), rgba(40, 4, 3, 0)); padding: 2rem .875rem .75rem; font-size: .875rem; font-weight: 700; line-height: 1.35; color: #fff; }
.gallery-images-widget .gallery-image a:hover .gallery-image-title { text-decoration: underline; }
figure.gallery-image { margin: 0; }

.map-embed, .video-embed { overflow: hidden; border-radius: var(--radius); background: var(--color-primary-50); box-shadow: var(--shadow-card); }
.map-embed iframe { display: block; width: 100%; height: 26rem; border: 0; }
.video-embed { aspect-ratio: 16 / 9; box-shadow: none; border-radius: .75rem; }
.video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

.app-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; list-style: none; margin: .75rem 0 0; padding: 0; }
.app-badges img { display: block; height: 3rem; width: auto; }

.poll-question { font-weight: 700; color: var(--color-primary-900); }
.weather-widget .pull-right { margin: 0 0 .5rem .75rem; }

.highlight-notices .featured-post { margin: 0; border: 0; padding: 0; }
.highlight-notices .post-image img { aspect-ratio: 16 / 9; }

details.accessibility-transcript { margin: .75rem 1.25rem 1rem; border-radius: .75rem; background: var(--color-primary-50); padding: .75rem 1rem; font-size: .9375rem; }
details.accessibility-transcript summary { cursor: pointer; font-weight: 700; color: var(--color-primary-800); }
details.accessibility-transcript[open] summary { margin-bottom: .75rem; }
details.accessibility-transcript h4 { margin: 1rem 0 .375rem; font-size: 1rem; font-weight: 700; color: var(--color-primary-900); }
details.accessibility-transcript ul { list-style: disc; margin: 0 0 .75rem; padding-left: 1.25rem; }
details.accessibility-transcript table { font-size: .875rem; }
.image-widget > .widget-inner > p { margin: 0; padding: 0 1.25rem .75rem; }

/* tabuľky – bez lámania slov po písmenách (c-content-box má overflow-wrap: anywhere) */
.c-content-box table th, .c-content-box table td { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.c-content-box table th { white-space: nowrap; }
table.dataTables td:first-child, table.dataTables td:last-child { white-space: nowrap; }
table.dataTables td:nth-child(2) { min-width: 14rem; }

/* kontakt v obsahu stránky */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.contact-grid > section > h2:first-child { margin-top: 0; }
.contact-grid dl.facts { margin-bottom: 1.5rem; }
.contact-grid .map-embed iframe { height: 24rem; }
.c-content-box th[scope="row"] { font-weight: 700; color: var(--color-primary-900); }

/* ------------------------------------------------------------------ calendar modal (Bootstrap JS) */
.modal-open { overflow: hidden; }
.modal { display: none; position: fixed; inset: 0; z-index: 1050; overflow: hidden; outline: 0; -webkit-overflow-scrolling: touch; }
.modal-open .modal { overflow-x: hidden; overflow-y: auto; }
.modal.fade { opacity: 0; transition: opacity .15s linear; }
.modal.fade.in { opacity: 1; }
.modal.fade .modal-dialog { transform: translateY(-1.5rem); transition: transform .3s ease-out; }
.modal.in .modal-dialog { transform: none; }
.modal-dialog { position: relative; width: auto; max-width: 36rem; margin: 4rem auto; padding: 0 1rem; }
.modal-content { position: relative; border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: 0 24px 80px rgba(87, 5, 4, .4); outline: 0; overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgb(40, 4, 3); }
.modal-backdrop.fade { opacity: 0; transition: opacity .15s linear; }
.modal-backdrop.in { opacity: .8; }
.modal-header { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); background: var(--color-primary-50); padding: 1rem 1.25rem; }
.modal-title, h5.modal-title { margin: 0; font-size: 1.125rem; font-weight: 700; color: var(--color-primary-900); }
.modal-header .close { display: inline-flex; width: 2.25rem; height: 2.25rem; flex-shrink: 0; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; font-size: 1.75rem; line-height: 1; color: var(--color-primary-900); cursor: pointer; }
.modal-header .close:hover { background: var(--color-primary-100); }
.modal-header .close:focus-visible { outline: 3px solid var(--color-gold-400); outline-offset: 2px; }
.modal-body { padding: 1.25rem; line-height: 1.6; }
.modal-body a { color: var(--color-primary-700); font-weight: 600; text-decoration: underline; }
.modal-footer { border-top: 1px solid var(--line); padding: .75rem 1.25rem; text-align: right; }
.modal-footer:empty { display: none; }
.modal-scrollbar-measure { position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll; }
