h1, h3, h5, h6 {color: #005d94;}
h2 {font-size: 22px;color: black;}
h4 {font-size: 16px;color: #a34b00;}
a:link, a:visited { color:#005d94; }
a:hover { color:#a34b00 }
.btn-primary { background-color:#005d94;border-color:#005d94 }
.footer__col--address { width:400px }
.footer__col--contact { width:200px }
.footer__col--custom { width:400px }
.footer__col--social { width:200px }

/* Compact homepage header and readable introduction */
body.frontpage .motive { height: 220px !important; min-height: 0 !important; max-height: 220px !important; }
body.frontpage .motive__background { background-attachment: scroll !important; }
body.frontpage #main h1 { font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.2; text-transform: none; }
body.frontpage #main a.btn-primary, body.frontpage #main a.btn-primary:visited { color: #fff; margin: 0 0.5rem 0.5rem 0; }
@media (max-width: 767px) {
  body.frontpage .motive { height: 130px !important; max-height: 130px !important; }
}

/* UADP: mobile controls and system dark mode, 2026-10-29 */
#main iframe[src*="mapy.com"], #main iframe[src*="mapy.cz"] { width:100%; max-width:100%; display:block; }
.user-form__input, .add-comment__input, .form-control { border-color:#737d88; }
.user-form__input:focus, .add-comment__input:focus, .form-control:focus { border-color:#005d94; box-shadow:0 0 0 3px rgba(0,93,148,.25); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline:3px solid #005d94; outline-offset:3px; }
#cookiesModal #allowAllButton, #cookiesModal .btn-primary { background:#005d94 !important; border-color:#005d94 !important; color:#fff !important; }
#cookiesModal #allowAllButton:hover { background:#00466f !important; }
#cookiesModal button:not(.close):not(.btn-close) { min-height:44px; }
#cookiesModal #closeModalButton { min-width:44px; min-height:44px; }
#cookiesModal .modal-content { max-height:calc(100dvh - 32px); overflow-y:auto; }
@media (max-width:1199px) {
  .navbar__toggler { width:44px; height:44px; min-width:44px; min-height:44px; }
  .navbar__toggler-icon-bar { width:28px; left:8px; }
  .navbar__toggler:not(.expanded) .navbar__toggler-icon-bar:nth-of-type(1) { top:13px; }
  .navbar__toggler:not(.expanded) .navbar__toggler-icon-bar:nth-of-type(3) { top:31px; }
}
@media (max-width:767px) {
  .user-form__input, .add-comment__input, .form-control { font-size:16px; min-height:44px; }
  .user-form__submit { min-height:44px; }
  .contactus { flex-wrap:wrap; white-space:normal; max-width:100%; gap:0 12px; }
  .footer__col { max-width:100%; }
}
html:has(#footer .tt:checked) { color-scheme:dark; }body:has(#footer .tt:checked) { background-color:#14191f !important; color:#e7edf3 !important; }body:has(#footer .tt:checked) #main,
body:has(#footer .tt:checked) .main,
body:has(#footer .tt:checked) .section-container,
body:has(#footer .tt:checked) .section-content,
body:has(#footer .tt:checked) .section-blank { background-color:#14191f; color:#e7edf3; }body:has(#footer .tt:checked) #header,
body:has(#footer .tt:checked) .header,
body:has(#footer .tt:checked) .navbar,
body:has(#footer .tt:checked) .navbar__menu,
body:has(#footer .tt:checked) .navbar__menu-list,
body:has(#footer .tt:checked) .contactus,
body:has(#footer .tt:checked) .contactus::after,
body:has(#footer .tt:checked) .breadcrumb,
body:has(#footer .tt:checked) #footer,
body:has(#footer .tt:checked) .footer { background-color:#1d252e !important; color:#e7edf3 !important; }body:has(#footer .tt:checked) h1,
body:has(#footer .tt:checked) h2,
body:has(#footer .tt:checked) h3,
body:has(#footer .tt:checked) h4,
body:has(#footer .tt:checked) h5,
body:has(#footer .tt:checked) h6,
body:has(#footer .tt:checked) .h1,
body:has(#footer .tt:checked) .h2,
body:has(#footer .tt:checked) .h3,
body:has(#footer .tt:checked) .h4,
body:has(#footer .tt:checked) .h5,
body:has(#footer .tt:checked) .h6 { background-color:transparent !important; color:#e7edf3 !important; }body:has(#footer .tt:checked) h1,
body:has(#footer .tt:checked) h3,
body:has(#footer .tt:checked) h5,
body:has(#footer .tt:checked) h6 { color:#83d3ff !important; }body:has(#footer .tt:checked) a:link,
body:has(#footer .tt:checked) a:visited { color:#83d3ff; }body:has(#footer .tt:checked) a:hover,
body:has(#footer .tt:checked) a:focus-visible { color:#ffd08a; }body:has(#footer .tt:checked) .navbar__menu-link,
body:has(#footer .tt:checked) button.navbar__menu-link,
body:has(#footer .tt:checked) .navbar__menu-item.active > .navbar__menu-link,
body:has(#footer .tt:checked) .breadcrumb__current,
body:has(#footer .tt:checked) .breadcrumb__item::before,
body:has(#footer .tt:checked) .contactus,
body:has(#footer .tt:checked) .footer__copy,
body:has(#footer .tt:checked) .footer__heading { color:#e7edf3 !important; }body:has(#footer .tt:checked) .navbar__menu a:link,
body:has(#footer .tt:checked) .navbar__menu a:visited,
body:has(#footer .tt:checked) .contactus a:link,
body:has(#footer .tt:checked) .contactus a:visited,
body:has(#footer .tt:checked) .footer a:link,
body:has(#footer .tt:checked) .footer a:visited { color:#83d3ff !important; }body:has(#footer .tt:checked) .navbar__toggler-icon-bar { background-color:#e7edf3 !important; }body:has(#footer .tt:checked) .navbar__brand-logo-img { background:#fff; border-radius:4px; }body:has(#footer .tt:checked) .user-form,
body:has(#footer .tt:checked) .modal-content,
body:has(#footer .tt:checked) #cookiesModal .modal-content,
body:has(#footer .tt:checked) .card,
body:has(#footer .tt:checked) .list-group-item { background-color:#202a35 !important; color:#e7edf3 !important; }body:has(#footer .tt:checked) .user-form label,
body:has(#footer .tt:checked) .user-form__info-required,
body:has(#footer .tt:checked) .user-form__data-limit,
body:has(#footer .tt:checked) .form-check-label,
body:has(#footer .tt:checked) #cookiesModal label,
body:has(#footer .tt:checked) #cookiesModal button:not(.btn-primary):not(#allowAllButton),
body:has(#footer .tt:checked) .text-muted { color:#d1dae4 !important; }body:has(#footer .tt:checked) .user-form__input,
body:has(#footer .tt:checked) .add-comment__input,
body:has(#footer .tt:checked) .form-control,
body:has(#footer .tt:checked) select { background-color:#14191f !important; color:#f1f5f9 !important; border-color:#8a9aaa !important; }body:has(#footer .tt:checked) .user-form__input::placeholder,
body:has(#footer .tt:checked) .form-control::placeholder { color:#b8c5d2; opacity:1; }body:has(#footer .tt:checked) .user-form__input:focus,
body:has(#footer .tt:checked) .form-control:focus { border-color:#83d3ff !important; box-shadow:0 0 0 3px rgba(131,211,255,.3); }body:has(#footer .tt:checked) .form-check-input,
body:has(#footer .tt:checked) .user-form__checkbox-input { border-color:#aab8c6 !important; background-color:#14191f; }body:has(#footer .tt:checked) .form-check-input:checked,
body:has(#footer .tt:checked) .user-form__checkbox-input:checked { background-color:#00689f !important; border-color:#83d3ff !important; }body:has(#footer .tt:checked) .form-check-input:disabled { opacity:.7; }body:has(#footer .tt:checked) .btn-primary,
body:has(#footer .tt:checked) a.btn-primary,
body:has(#footer .tt:checked) a:link .btn-primary,
body:has(#footer .tt:checked) a:visited .btn-primary,
body:has(#footer .tt:checked) #cookiesModal #allowAllButton { background-color:#005d94 !important; border-color:#83d3ff !important; color:#fff !important; }body:has(#footer .tt:checked) .btn-primary:hover { background-color:#00466f !important; }body:has(#footer .tt:checked) #cookiesModal #rejectAllButton,
body:has(#footer .tt:checked) #cookiesModal #allowChoiceButton { background-color:#202a35 !important; color:#f1f5f9 !important; border-color:#aab8c6 !important; }body:has(#footer .tt:checked) #cookiesModal .btn-close { filter:invert(1); opacity:1; }body:has(#footer .tt:checked) a:focus-visible,
body:has(#footer .tt:checked) button:focus-visible,
body:has(#footer .tt:checked) input:focus-visible,
body:has(#footer .tt:checked) textarea:focus-visible,
body:has(#footer .tt:checked) select:focus-visible { outline-color:#ffd08a; }body:has(#footer .tt:checked) hr,
body:has(#footer .tt:checked) .modal-header,
body:has(#footer .tt:checked) .modal-footer,
body:has(#footer .tt:checked) .navbar__menu-list,
body:has(#footer .tt:checked) .table td,
body:has(#footer .tt:checked) .table th { border-color:#6b7b8c !important; }body:has(#footer .tt:checked) .text-danger,
body:has(#footer .tt:checked) .invalid-feedback,
body:has(#footer .tt:checked) .user-form__error { color:#ffb4b4 !important; }

/* Keep right-hand submenus inside the viewport. */
@media (min-width:992px) { .navbar__menu-item--has-childs:last-child > .navbar__menu-list { right:0 !important; left:auto !important; } }
body:has(#footer .tt:checked) #cookiesModal .button-close,
body:has(#footer .tt:checked) #cookiesModal .button-more-icon { filter:brightness(0) invert(1) !important; }body:has(#footer .tt:checked) .section-contact .social-icons img { filter:brightness(0) invert(1) !important; }body:has(#footer .tt:checked) #cookiesModal .close { opacity:1; }

/* Explicit visitor choice; default remains light, including on dark devices. */
:root { color-scheme:light; }
.tc { display:inline-flex; align-items:center; gap:6px; margin-left:14px; min-height:36px; cursor:pointer; font-size:14px; color:inherit; white-space:nowrap; }
.tt { width:18px; height:18px; margin:0; accent-color:#005d94; cursor:pointer; }
.footer .tc, #footer .tc { display:none; }
@media(max-width:767px){ .contactus { justify-content:flex-end; flex-wrap:wrap; } .tc { min-height:44px; margin-left:8px; } }

/* Theme choice belongs to the footer; keep header contacts compact. */
#contactus .tc { display:none !important; }
#footer .tc, .footer .tc { display:flex; width:max-content; max-width:100%; align-items:center; gap:8px; min-height:44px; margin:8px 0 0; cursor:pointer; }

/* Theme switch beside cookie settings in the footer bottom line. */
#footer .footer__copy .tc { display:inline-flex; width:auto; min-height:44px; margin:0 0 0 16px; vertical-align:middle; font-size:inherit; }
#footer .footer__copy { display:flex; flex-wrap:wrap; align-items:center; gap:0 8px; }
#footer .footer__poweredby { margin-left:auto; }
@media(max-width:767px){ #footer .footer__copy-text { flex-basis:100%; } #footer .footer__poweredby { margin-left:0; } }

/* Align theme label to the footer text baseline and separate it from cookies. */
#footer .footer__copy { align-items:baseline; }
#footer .footer__copy .tc { display:inline-block; min-height:44px; box-sizing:border-box; padding:10px 0; margin:0; line-height:24px; font-weight:400; }
#footer .footer__copy .tc::before { content:""; display:inline-block; height:1em; border-left:1px solid currentColor; margin-right:12px; vertical-align:-0.1em; opacity:.65; }
#footer .footer__copy .tt { display:inline-block; vertical-align:middle; margin:-2px 8px 0 0; }

/* Accessibility contrast and semantic footer headings, 2026-11-01 */
.footer__heading { font-size:16px; background:transparent; }
body:not(:has(#footer .tt:checked)) .footer__heading, body:not(:has(#footer .tt:checked)) .section-contact h2 { color:#a34b00 !important; }


/* Contact page: compact, responsive layout for the form, details and map. */
#main:has(> .container--form .form-row__text .section-contact .section-map) {
  --contact-surface: #fff;
  --contact-border: #d9e0e6;
  --contact-accent: #005d94;
  --contact-panel-padding: clamp(1rem, 2.4vw, 1.5rem);
}
body:has(#footer .tt:checked) #main:has(> .container--form .form-row__text .section-contact .section-map) {
  --contact-surface: #202a35;
  --contact-border: #536579;
  --contact-accent: #83d3ff;
}
#main:has(> .container--form .form-row__text .section-contact .section-map) > .container:first-child {
  padding-bottom: 0;
}
#main:has(> .container--form .form-row__text .section-contact .section-map) > .container:first-child .section--header {
  padding: clamp(1.25rem, 3vw, 2.25rem) 0 .75rem;
}
#main:has(> .container--form .form-row__text .section-contact .section-map) > .container:first-child h1 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  text-transform: none;
  background: transparent;
}
#main:has(> .container--form .form-row__text .section-contact .section-map) > .container--form > .section--form {
  width: auto;
  margin-inline: 0;
  padding: .5rem 0 clamp(1.5rem, 3vw, 2.5rem);
}
#main:has(> .container--form .form-row__text .section-contact .section-map) .form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin: 0;
}
#main:has(> .container--form .form-row__text .section-contact .section-map) .form-row > :is(.form-row__col-left, .form-row__col-right) {
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 992px) {
  #main:has(> .container--form .form-row__text .section-contact .section-map) .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
}
#main:has(> .container--form .form-row__text .section-contact .section-map) :is(form.user-form, .form-row__text) {
  box-sizing: border-box;
  margin: 0;
  padding: var(--contact-panel-padding);
  border: 1px solid var(--contact-border);
  border-radius: .75rem;
  background: var(--contact-surface);
}
body:has(#footer .tt:checked) #main:has(> .container--form .form-row__text .section-contact .section-map) form.user-form {
  background: var(--contact-surface) !important;
  border-color: var(--contact-border) !important;
}
#main:has(> .container--form .form-row__text .section-contact .section-map) .user-form__info-required {
  position: static;
  text-align: start;
  margin: 0 0 .75rem;
}
#main:has(> .container--form .form-row__text .section-contact .section-map) .user-form__field { margin-bottom: .75rem; }
#main:has(> .container--form .form-row__text .section-contact .section-map) .form-row__text > p:first-of-type {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.4;
  text-align: start !important;
}
#main:has(> .container--form .form-row__text .section-contact .section-map) .form-row__text .section-container {
  margin: 0;
  padding: 0;
  background: transparent;
}
#main:has(> .container--form .form-row__text .section-contact .section-map) .form-row__text p:empty,
#main:has(> .container--form .form-row__text .section-contact .section-map) .form-row__text p:has(> span:only-child:empty) { display: none; }
#main:has(> .container--form .form-row__text .section-contact .section-map) .section-contact > .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1rem;
  margin: 0;
}
#main:has(> .container--form .form-row__text .section-contact .section-map) .section-contact > .row > .section-content {
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 1rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
#main:has(> .container--form .form-row__text .section-contact .section-map) .section-contact > .row > .section-content:last-child:nth-child(odd) { grid-column: 1 / -1; }
#main:has(> .container--form .form-row__text .section-contact .section-map) .section-contact .section-content h2 {
  margin: 0 0 .25rem;
  font-family: inherit;
  font-size: 1rem !important;
  font-weight: 650;
  line-height: 1.35;
  color: var(--contact-accent) !important;
  background: transparent;
}
#main:has(> .container--form .form-row__text .section-contact .section-map) .section-contact .section-content :is(h2, li) > span { font-size: inherit !important; }
#main:has(> .container--form .form-row__text .section-contact .section-map) .section-contact .section-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: flex-start;
}
#main:has(> .container--form .form-row__text .section-contact .section-map) .section-contact .section-content :is(ul, li) { text-align: start; }
#main:has(> .container--form .form-row__text .section-contact .section-map) .section-contact .section-map { margin-top: 1rem; }
#main:has(> .container--form .form-row__text .section-contact .section-map) .section-map img { border-radius: .5rem; }
@media (max-width: 359px) {
  #main:has(> .container--form .form-row__text .section-contact .section-map) .section-contact > .row { grid-template-columns: minmax(0, 1fr); }
}


/* Respect the visitor’s system motion preference for the motif. */
@media (prefers-reduced-motion: reduce) {
  #motive.zoom-effect > .motive__background { animation: none; }
}


/* Team page: keep the heading close to the grid and align each card. */
#main .section-blank:has(> .section-contact > .uadp-team-grid) > h1 { margin-bottom: var(--uadp-page-title-gap); }
#main .section-blank:has(> .section-contact > .uadp-team-grid) > p:empty { display: none; }
#main .section-blank:has(> .section-contact > .uadp-team-grid) > .section-contact { padding-block-start: 0; }
#main .uadp-team-grid > .section-content :is(ul, li) { text-align: start; }
#main .uadp-team-grid > .section-content ul { justify-content: flex-start; }


/* Main page headings: common colour and space before the first content block. */
#main { --uadp-page-title-gap: clamp(1rem, 2vw, 1.5rem); }
#main h1 {
  color: #005d94;
  margin-block-end: var(--uadp-page-title-gap);
}
#main .container--article h1 + :is(p, h2, ul, ol) { margin-block-start: 0; }
#main .container--article > .entry-header + .section-container { padding-block-start: 0; }
#main:has(> .container--form .form-row__text .section-contact .section-map) > .container:first-child .section--header { padding-block-end: var(--uadp-page-title-gap); }
#main:has(> .container--form .form-row__text .section-contact .section-map) > .container--form > .section--form { padding-block-start: 0; }
#main .container--search-results .section--header > h1 { margin-block-end: 0; }
#main .container--search-results > .search-form-wrapper { margin-block-start: var(--uadp-page-title-gap); }
#main :is(.container--files, .container--galleries, .container:has(> .gallery)) :is(.section--header, .gallery-header) {
  margin-block-end: var(--uadp-page-title-gap);
}
#main :is(.container--files, .container--galleries, .container:has(> .gallery)) :is(.section--header, .gallery-header) > h1 {
  margin-block-end: 0;
}
#main :is(.container--files, .container:has(> .gallery)) .section--header ~ .perex:not(:has(*)) { margin-block: 0; }

/* Reserve the space for the current 270 × 90 px logo before it loads. */
#header img.navbar__brand-logo-img[src="/obrazek/3/logo370-90-webp/"] {
  width: 128px;
  height: auto;
  aspect-ratio: 3 / 1;
}
