/*------------------------------------------------------------------
    Pisma – Barlow (text) a Barlow Condensed (nadpisy), hostovane u webu
-------------------------------------------------------------------*/
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/barlow-latin-ext-300.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: 'Barlow'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/barlow-latin-300.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: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-latin-ext-400.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: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-latin-400.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: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-latin-ext-500.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: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-latin-500.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: 'Barlow Condensed'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/barlow-condensed-latin-ext-300.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: 'Barlow Condensed'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/barlow-condensed-latin-300.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: 'Barlow Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-condensed-latin-ext-400.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: 'Barlow Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-condensed-latin-400.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: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-condensed-latin-ext-500.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: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-condensed-latin-500.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; }

/*------------------------------------------------------------------
    CARP – tokens
-------------------------------------------------------------------*/
:root {
    --navy-900: #0b1530;
    --navy-700: #152238;
    /* hlavni barva = navy z loga CARP */
    --blue: #1f0f4c;
    --blue-hover: #3b2a80;
    --red: #9b0815;
    --ice: #f4f6f9;
    --text: #111;
    --muted: #5f6676;
    --line: #e2e6ec;

    --font-body: 'Barlow', Arial, sans-serif;
    --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;

    --radius: 4px;
    --header-h: 80px;
    --gutter: clamp(16px, 4vw, 40px);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    /* paticka vzdy dole i na kratkych strankach */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

img, svg, video, iframe { max-width: 100%; }
b, strong { font-weight: 500; }
img { height: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); text-decoration: underline; }

/* nadpisy jako COMNAP: uzke, tenke, verzalky */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 .6em;
}

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.icon {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 8px 16px;
    background: var(--navy-700);
    color: #fff;
}
.skip-link:focus { top: 16px; color: #fff; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* tlacitka – i ta z ACF (class="btn hvr-hover") */
.btn,
.wp-block-button__link,
.wp-block-file__button {
    display: inline-block;
    padding: 12px 26px;
    border: 0;
    border-radius: 4px;
    background: var(--blue);
    color: #fff !important;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.btn:hover,
.wp-block-button__link:hover,
.wp-block-file__button:hover {
    background: var(--blue-hover);
    color: #fff !important;
    text-decoration: none;
}

/*------------------------------------------------------------------
    Header
-------------------------------------------------------------------*/
/* pruh s fotkou nahore, menu lezi primo na ni (jako COMNAP) */
.site-top {
    position: relative;
    height: clamp(200px, 20vw, 280px);
    overflow: hidden;
    background: var(--navy-900);
}
.site-top--home { height: clamp(300px, 32vw, 440px); }
.site-top__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}
/* svetly zavoj nahore, aby bylo menu citelne */
.site-top::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .6) 32%, rgba(255, 255, 255, 0) 62%);
    pointer-events: none;
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.site-header__inner {
    /* loga, menu a TiA jako jedna skupina uprostred, se stejnou mezerou */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    max-width: 1540px;
    height: var(--header-h);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.brand { display: flex; align-items: center; gap: 18px; }
.brand a { display: block; }
.brand img { display: block; width: auto; }
.brand__muni img { height: 26px; }
.brand__carp {
    padding-left: 18px;
    border-left: 1px solid rgba(21, 34, 56, .2);
}
.brand__carp img { height: 56px; }

.tia img { display: block; width: 54px; height: 54px; }


.site-nav .menu {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav .menu > li { position: relative; display: flex; align-items: center; }

.site-nav .menu > li > a {
    display: block;
    padding: 26px 12px 24px;
    border-bottom: 2px solid transparent;
    font-size: 17px;
    font-weight: 400;
    white-space: nowrap;
    color: var(--text);
    text-decoration: none;
}

.site-nav .menu > li:hover > a,
.site-nav .menu > li:focus-within > a,
.site-nav .menu > .current-menu-item > a,
.site-nav .menu > .current-menu-ancestor > a,
.site-nav .menu > .current_page_item > a { border-bottom-color: var(--blue); }

.submenu-toggle {
    display: none;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}
.submenu-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.site-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 220px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 2px solid var(--blue);
    box-shadow: 0 6px 16px rgba(11, 21, 48, .08);
}
.site-nav .menu > li:hover > .sub-menu,
.site-nav .menu > li:focus-within > .sub-menu { display: block; }

.site-nav .sub-menu a {
    display: block;
    padding: 7px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}
.site-nav .sub-menu a:hover {
    background: var(--ice);
    color: var(--blue);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
}
.nav-toggle span {
    position: absolute;
    left: 11px;
    right: 11px;
    height: 2px;
    background: var(--navy-700);
    transition: transform .2s, opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/*------------------------------------------------------------------
    Sekce
-------------------------------------------------------------------*/
.section { padding: clamp(48px, 6vw, 80px) 0; }

.section-lead { margin: 0; color: var(--muted); }

/* uvod */
.intro { text-align: center; }
.intro__inner { max-width: 920px; }
.intro__title { margin: 0 0 24px; font-size: clamp(2rem, 3.6vw, 3rem); }
.intro__text { margin: 0 auto; font-size: 18px; line-height: 1.75; text-align: left; }
/* nenapadna sipka na konci uvodniho textu */
.intro__more {
    display: inline-block;
    margin-left: 4px;
    color: var(--blue);
    font-size: 18px;
    vertical-align: -3px;
    opacity: .6;
    transition: opacity .2s, transform .2s;
}
.intro__more:hover { opacity: 1; transform: translateX(3px); }

/* tri oblasti s kulatymi fotkami */
.areas { padding-top: 0; }
.areas__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(28px, 4vw, 56px);
}
.area { display: flex; flex-direction: column; align-items: center; color: var(--text); text-align: center; }
.area:hover { color: var(--text); text-decoration: none; }
.area:hover .area__title { color: var(--blue-hover); }
.area__img {
    display: block;
    width: min(100%, 300px);
    aspect-ratio: 1;
    margin-bottom: 26px;
    overflow: hidden;
    border-radius: 50%;
}
.area__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.area:hover .area__img img { transform: scale(1.04); }
.area__title { margin: 0 0 12px; font-size: clamp(1.6rem, 2.2vw, 2rem); transition: color .2s; }
.area__text { margin: 0; text-align: center; }

/* novinky */
.news__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 20px;
}

.news__box {
    background: #fff;
    border: 1px solid var(--line);
}

.news__box--fb {
    display: flex;
    justify-content: center;
    min-height: 466px;
    padding: 12px;
}
.fb-consent {
    align-self: center;
    max-width: 360px;
    padding: 24px;
    text-align: center;
}
.fb-consent p { margin: 0 0 18px; text-align: center; color: var(--muted); }
.fb-consent a { display: block; margin-top: 14px; font-size: 16px; }

.news__box--fb .fb-page,
.news__box--fb .fb-page > span,
.news__box--fb iframe { width: 100% !important; }

.news__box--weather iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 440px;
    padding: 12px;
    border: 0;
}

/*------------------------------------------------------------------
    Podstranky
-------------------------------------------------------------------*/
.page-hero { padding: clamp(40px, 6vw, 72px) 0 0; }

/* nadpis stranky soucasti obsahu, jen kratka modra linka pod nim */
.page-title {
    margin: 0;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    letter-spacing: -.02em;
    color: var(--text);
}
.page-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 14px;
    background: var(--blue);
}

.page-hero + .page-content { padding-top: clamp(28px, 4vw, 44px); }

.page-hero--404 { padding: 96px 0; }
.page-hero--404 .section-lead { margin: 12px 0 28px; }

/* obsah z Gutenbergu */
.entry > *:first-child { margin-top: 0; }

.entry p,
.entry li { color: var(--text); text-align: left; }
.entry p { margin: 0 0 1.1em; }

.entry h2 {
    margin: 2em 0 .7em;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--blue);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.entry > h2:first-child { margin-top: 0; }

.entry h3 { margin: 1.6em 0 .5em; font-size: 1.3rem; }

.entry a:not(.btn):not(.wp-block-file__button):not(.wp-block-button__link) { font-weight: 500; }

.entry .wp-element-caption { font-size: 15px; color: var(--muted); text-align: center; }

.entry .wp-block-columns { gap: clamp(24px, 4vw, 48px); margin-bottom: 1.4em; }
/* flex sloupce se jinak nezuzi pod sirku obsahu (Robo Gallery si pak spocita sirku vetsi nez stranka) */
.entry .wp-block-column { min-width: 0; }
.entry [class*="robogallery-gallery-"],
.entry .robo-gallery-wrap { max-width: 100%; overflow: hidden; }

.entry li::marker { color: var(--blue); }

.entry .wp-block-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    background: var(--ice);
}
.entry .wp-block-file__button { margin-left: auto; padding: 8px 18px; font-size: 14px; }

.entry hr,
.entry .wp-block-separator {
    height: 1px;
    margin: 2.5em 0;
    border: 0;
    background: var(--line) !important;
    opacity: 1;
}

.entry table { width: 100%; border-collapse: collapse; }
.entry td, .entry th { padding: 8px 10px; border-bottom: 1px solid var(--line); }

/*------------------------------------------------------------------
    Kontakty – jednotne karty lidi (sestavene v functions.php z obsahu stranky)
-------------------------------------------------------------------*/
.person { margin: 0 0 44px; text-align: center; }
.person__photo {
    display: block;
    width: 168px;
    height: 168px;
    margin: 0 auto 18px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--ice);
}
.person__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .5s ease; }
a.person__photo:hover img { transform: scale(1.05); }
.person__name { margin: 0 0 4px; font-size: 21px; letter-spacing: .02em; }
.entry .person__role { margin: 0 0 10px; font-weight: 500; color: var(--blue); text-align: center; }
.entry .person__info { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); text-align: center; }
.person__info a { color: var(--text); }
.entry .person__links { display: flex; justify-content: center; gap: 12px; margin: 14px 0 0; }
.person__links img { display: block; width: auto; height: 22px; opacity: .7; transition: opacity .2s; }
.person__links a:hover img { opacity: 1; }

/*------------------------------------------------------------------
    Galerie (Robo Gallery)
-------------------------------------------------------------------*/
.rbs_gallery_button { margin: 0 0 28px !important; text-align: left; }
.rbs_gallery_button .button {
    margin: 0 18px 8px 0 !important;
    padding: 4px 0 !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: var(--muted) !important;
    font-family: var(--font-head) !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-shadow: none !important;
    transition: color .2s, border-color .2s;
}
.rbs_gallery_button .button:hover,
.rbs_gallery_button .button.active { color: var(--blue) !important; border-bottom-color: var(--blue) !important; }

.robo-gallery-wrap .rbs-img-container {
    overflow: hidden;
    border-radius: 4px !important;
    box-shadow: none !important;
}
.robo-gallery-wrap .rbs-img-thumbs img { transition: transform .6s ease !important; }
.robo-gallery-wrap .rbs-img-container:hover .rbs-img-thumbs img { transform: scale(1.05); }
.robo-gallery-wrap .thumbnail-overlay { background: rgba(31, 15, 76, .35) !important; }

/*------------------------------------------------------------------
    Organigram (About us)
-------------------------------------------------------------------*/
.org {
    --org-line: #aab3c2;
    container-type: inline-size;
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
}

.org__node {
    display: block;
    padding: 10px 14px;
    border: 1.5px solid var(--blue);
    background: #fff;
    color: var(--blue);
    font-weight: 500;
    text-align: center;
}
.org__node small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; }
.org__node--solid { background: var(--blue); color: #fff; }

/* dozorci rada a svisla cara dolu */
.org__top { position: relative; max-width: 240px; margin: 0 auto; padding-bottom: 20px; }
.org__top::after,
.org__boards::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 1.5px;
    background: var(--org-line);
}
.org__top::after { top: 100%; bottom: 0; top: auto; height: 20px; }

/* poradni sbor a vedecka rada po stranach, napojene na stred */
.org__boards {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 32px 1fr;
    align-items: center;
    padding-bottom: 20px;
}
.org__boards::before { top: 0; bottom: 0; }
.org__boards .org__node { position: relative; }
.org__boards .org__node:first-child { grid-column: 1; }
.org__boards .org__node:last-child { grid-column: 3; }
.org__boards .org__node::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 16px;
    height: 1.5px;
    background: var(--org-line);
}
.org__boards .org__node:first-child::after { left: 100%; }
.org__boards .org__node:last-child::after { right: 100%; }

/* jadro CARP */
.org__core {
    padding: 18px;
    background: var(--ice);
    border: 1px solid var(--line);
}
.org__exec { max-width: 320px; margin: 0 auto 18px; }

.org__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 28px 1fr;
    grid-template-areas:
        "chief . head"
        "ops   . research";
    align-items: end;
    row-gap: 14px;
}
/* svisla osa od vedouciho CARP dolu, k ni napojene obe vetve */
.org__grid::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -18px;
    bottom: 18px;
    width: 1.5px;
    background: var(--org-line);
}
.org__chief { grid-area: chief; }
.org__head { grid-area: head; align-self: start; margin-top: -6px; } /* o kus vys nez vedouci operaci */
.org__ops { grid-area: ops; align-self: start; }
.org__research { grid-area: research; align-self: start; }

.org__chief .org__node,
.org__head .org__node { position: relative; }
.org__chief .org__node::after,
.org__head .org__node::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 14px;
    height: 1.5px;
    background: var(--org-line);
}
.org__chief .org__node::after { left: 100%; }
.org__head .org__node::after { right: 100%; }

.org h4 { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.org ul { margin: 0; padding: 0; list-style: none; }
.org__ops { margin-left: 12px !important; padding-left: 12px !important; border-left: 1.5px solid var(--org-line); }
.org li {
    margin-bottom: 6px;
    padding: 8px 12px;
    background: #fff;
    border-left: 3px solid var(--blue);
    font-size: 14px;
    font-weight: 500;
}

@container (max-width: 440px) {
    .org__boards { grid-template-columns: 1fr; gap: 8px; }
    .org__boards .org__node:first-child,
    .org__boards .org__node:last-child { grid-column: 1; }
    .org__boards .org__node::after { display: none; }
    .org__grid {
        grid-template-columns: 1fr;
        grid-template-areas: "head" "chief" "ops" "research";
    }
    .org__grid::before,
    .org__chief .org__node::after,
    .org__head .org__node::after { display: none; }
}

/*------------------------------------------------------------------
    Publikace
-------------------------------------------------------------------*/
.pub-years {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.pub-years a { font-weight: 500; color: var(--blue); }

.pub-year { border-bottom: 1px solid var(--line); }

.pub-year summary {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 18px 0;
    list-style: none;
    cursor: pointer;
}
.pub-year summary::-webkit-details-marker { display: none; }
.pub-year summary::after {
    content: '';
    width: 10px;
    height: 10px;
    margin-left: auto;
    border-right: 2px solid var(--text);
    border-bottom: 2px solid var(--text);
    transform: translateY(-3px) rotate(45deg);
    transition: transform .2s;
}
.pub-year[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.pub-year summary:hover h2 { color: var(--blue); }

.pub-year h2 { margin: 0; font-size: 1.6rem; transition: color .2s; }
.pub-year__count { font-size: 15px; color: var(--muted); }
.pub-year__edit { font-size: 14px; }

.pub-year__body { padding: 0 0 28px; font-size: 16px; }
.pub-year__body p,
.pub-year__body li { margin: 0 0 .7em; line-height: 1.55; }
.pub-year__body p:has(> strong:only-child) { margin-top: 1.4em; font-size: 17px; }
.pub-year__body ol,
.pub-year__body ul { padding-left: 1.6em; }
.pub-year__body a { word-break: break-word; }

/*------------------------------------------------------------------
    Paticka – jemny puvodni gradient modra / bila / cervena
-------------------------------------------------------------------*/
.site-footer {
    background: linear-gradient(23deg, rgba(0, 0, 128, .1) 0%, #fff 32%, #fff 68%, rgba(155, 8, 21, .08) 100%);
    border-top: 1px solid var(--line);
}

.footer__grid {
    display: grid;
    /* sloupce podle obsahu, radky se nelamou */
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    gap: 32px;
    padding: clamp(24px, 3vw, 36px) 0;
}

.footer__brand { display: flex; align-items: flex-start; gap: 16px; }
.footer__brand img { flex: none; width: 48px; height: 48px; }
.footer__brand address {
    margin: 12px 0 0;
    font-style: normal;
    font-size: 15px;
    line-height: 1.55;
    white-space: nowrap;
}
.footer__brand p { margin: 0; white-space: nowrap; font-size: 16px; line-height: 1.5; color: var(--muted); text-align: left; }
.footer__brand strong { display: block; margin-bottom: 2px; font-size: 17px; line-height: 1.25; color: var(--text); }

.footer__title {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--text);
}

.footer__contacts,
.footer__contacts p {
    margin: 0;
    white-space: nowrap;
    font-style: normal;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
    color: var(--text);
}
.footer__contacts b { color: var(--text); }
.footer__contacts u { text-decoration: none; }


.footer__partner { display: inline-block; }
.footer__partner img { display: block; width: 190px; max-width: none; }

.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: var(--navy-700);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--blue); }

/*------------------------------------------------------------------
    Responsive
-------------------------------------------------------------------*/
/* paticka ve trech sloupcich se vejde od ~1000 px */
@media (max-width: 1000px) {
    .footer__grid { grid-template-columns: 1fr 1fr; justify-content: stretch; }
    .footer__brand p, .footer__brand address, .footer__contacts, .footer__contacts p { white-space: normal; }
}

@media (max-width: 1180px) {
    :root { --header-h: 68px; }

    .site-header__inner { justify-content: flex-start; gap: 14px; }
    /* otevrene menu: hlavicka zustane nahore i po odscrollovani */
    .nav-open .site-header { position: fixed; background: #fff; border-bottom: 1px solid var(--line); }
    .areas__grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .brand { gap: 14px; }
    .brand__carp { padding-left: 14px; }
    .brand__muni img { height: 22px; }
    .brand__carp img { height: 46px; }
    .tia { margin-left: auto; }
    .tia img { width: 44px; height: 44px; }
    .nav-toggle { display: block; }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        display: none;
        margin: 0;
        padding: 8px var(--gutter) 32px;
        overflow-y: auto;
        background: #fff;
        border-top: 1px solid var(--line);
    }
    .nav-open .site-nav { display: block; }
    .nav-open { overflow: hidden; }

    .site-nav .menu { flex-direction: column; align-items: stretch; }
    .site-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
    .site-nav .menu > li > a {
        flex: 1;
        padding: 14px 0;
        border-bottom: 0;
        font-size: 17px;
    }
    .site-nav .menu > .current-menu-item > a,
    .site-nav .menu > .current_page_item > a { color: var(--blue); }

    .submenu-toggle {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
    }
    .submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

    .site-nav .sub-menu,
    .site-nav .menu > li:hover > .sub-menu,
    .site-nav .menu > li:focus-within > .sub-menu {
        position: static;
        flex-basis: 100%;
        display: none;
        min-width: 0;
        padding: 0 0 10px 12px;
        border: 0;
        box-shadow: none;
    }
    .site-nav .menu > li.is-open > .sub-menu { display: block; }
    .site-nav .sub-menu a { padding: 6px 0; white-space: normal; }
    .site-nav .sub-menu a:hover { background: none; }

    .news__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }
    .hero__content { padding-bottom: 76px; }

    .brand { gap: 10px; }
    .brand__carp { padding-left: 10px; }
    .brand__muni img { height: 18px; }
    .brand__carp img { height: 40px; }
    .tia img { width: 38px; height: 38px; }

    .hero { min-height: 420px; max-height: 620px; }
    .hero__ui { bottom: 20px; }
    .hero__arrow { width: 38px; height: 38px; font-size: 18px; }


    .news__box--fb { min-height: 0; }
    /* meteogram yr.no se neskaluje sam – theme.js ho zmensi na sirku boxu */
    .news__box--weather { overflow: hidden; }
    .news__box--weather iframe { width: 800px; max-width: none; height: 420px; min-height: 0; padding: 10px; transform-origin: 0 0; }

    .footer__grid { grid-template-columns: 1fr; gap: 20px; }

    .page-hero { padding-top: 32px; }
    .entry .wp-block-columns { flex-wrap: wrap !important; }
    .entry .wp-block-column { flex-basis: 100% !important; }
}

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