/* ==========================================================================
   MŠ Horoměřice — Drupal 10/11 custom theme
   Barvy zachovány z původní D7 šablony
   ========================================================================== */

/* ---------- Typografie ---------- */
body {
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  font-size: 16px;
  color: #252525;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #a94a0b;
}
h1 { font-size: 2.25rem; font-weight: 700; padding-top: .5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; margin-top: 0.5rem; }
h4 { font-size: 1.2rem; margin-top: 0.5rem; }
h5 { font-size: 1.1rem; margin-top: 0.5rem; }
h6 { font-size: 1rem; }

a { color: #de610e; text-decoration: underline; }
a:hover { color: #de610e; text-decoration: none; }

/* ---------- Header ---------- */
#site-header {
  padding: 1rem 0;
}
#site-header #logo {
  text-align: center;
}
#block-dshoromericecz-site-branding {
	/*padding: 1rem 0 1.5rem 0;*/
}
#site-header #logo img {
  max-width: 100%;
  height: auto;
}
#site-name,
.site-branding__name {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* ---------- Navigace ---------- */
#main-navigation {
}
#main-navigation .navbar {
  padding: 0;
}

/* 1. úroveň — nav-link */
#main-navigation .navbar-nav .nav-link {
  text-align: center;
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: #353535;
}
#main-navigation .navbar-nav .nav-link:hover,
#main-navigation .navbar-nav .nav-link.active { text-decoration: underline; }

/* Barvy 1. úrovně dle field_scheme */
#main-navigation .nav-link.scheme-tmave-modre   { color: #005e98; }
#main-navigation .nav-link.scheme-svetle-zelene { color: #96b240; }
#main-navigation .nav-link.scheme-oranzove      { color: #d87848; }
#main-navigation .nav-link.scheme-svetle-modre  { color: #46a4b4; }
#main-navigation .nav-link.scheme-cervene       { color: #e0384d; }
#main-navigation .nav-link.scheme-vinove        { color: #be3244; }
#main-navigation .nav-link.scheme-fialove       { color: #8b1eab; }
#main-navigation .nav-link.scheme-tmave-zelene  { color: #448f07; }

/* 2. úroveň — dropdown dolů */
#main-navigation .dropdown-menu {
  border-top: 3px solid currentColor;
  border-radius: 0;
  min-width: 220px;
  background-color: #f8f8f8;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  padding: 4px 0;
}
#main-navigation .dropdown-item {
  font-size: 0.95rem;
  padding: 7px 16px;
  border-bottom: 1px solid #e8e8e8;
  text-decoration: none;
  color: #353535;
  white-space: normal;
}
#main-navigation .dropdown-item:last-child { border-bottom: none; }
#main-navigation .dropdown-item:hover,
#main-navigation .dropdown-item:focus {
  background-color: #ececec;
  text-decoration: underline;
}

/* Barvy 2. a 3. úrovně dle field_scheme */
#main-navigation .dropdown-item.scheme-tmave-modre   { color: #005e98; }
#main-navigation .dropdown-item.scheme-svetle-zelene { color: #96b240; }
#main-navigation .dropdown-item.scheme-oranzove      { color: #d87848; }
#main-navigation .dropdown-item.scheme-svetle-modre  { color: #46a4b4; }
#main-navigation .dropdown-item.scheme-cervene       { color: #e0384d; }
#main-navigation .dropdown-item.scheme-vinove        { color: #be3244; }
#main-navigation .dropdown-item.scheme-fialove       { color: #8b1eab; }
#main-navigation .dropdown-item.scheme-tmave-zelene  { color: #448f07; }

/* 3. úroveň — flyout do strany (desktop) */
#main-navigation .dropdown-submenu { position: relative; }
#main-navigation .dropdown-submenu-panel {
  top: 0 !important;
  left: 100% !important;
  margin-top: -4px;
  display: none;
}
#main-navigation .dropdown-submenu:hover > .dropdown-submenu-panel,
#main-navigation .dropdown-submenu:focus-within > .dropdown-submenu-panel {
  display: block;
}
/* Šipka naznačující flyout */
#main-navigation .dropdown-toggle-side::after {
  display: inline-block;
  content: "";
  border-top: 0.3em solid transparent;
  border-bottom: 0.3em solid transparent;
  border-left: 0.3em solid;
  float: right;
  margin-top: 0.4em;
  margin-left: 8px;
}

/* Hover otevírání na desktopu (bez kliknutí) */
@media (min-width: 992px) {
  #main-navigation .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
  }
  /* Zrušit Bootstrap data-bs-toggle fokus při hoveru */
  #main-navigation .nav-item.dropdown > .nav-link {
    pointer-events: auto;
  }
}

/* ---------- Horní menu — třídy (Mechová, Mátová, Poměnková) ---------- */
#block-dshoromericecz-hornimenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
#block-dshoromericecz-hornimenu ul li a {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  transition: opacity 0.2s;
}
#block-dshoromericecz-hornimenu ul li a:hover {
  opacity: 0.85;
  text-decoration: none;
  color: #fff;
}

/* Barvy jednotlivých tříd — uprav dle potřeby */
#block-dshoromericecz-hornimenu ul li.mechova   a { background-color: #448f07; }
#block-dshoromericecz-hornimenu ul li.matova    a { background-color: #96b240; }
#block-dshoromericecz-hornimenu ul li.pomenkova a { background-color: #46a4b4; }

/* Aktivní třída */
#block-dshoromericecz-hornimenu ul li.mechova.is-active   a,
#block-dshoromericecz-hornimenu ul li.matova.is-active    a,
#block-dshoromericecz-hornimenu ul li.pomenkova.is-active a {
  outline: 2px solid rgba(0,0,0,0.25);
  outline-offset: 2px;
}

/* 2. a hlubší úrovně — dropdown na hover */
#block-dshoromericecz-hornimenu ul li {
  position: relative;
}
#block-dshoromericecz-hornimenu ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  flex-direction: column;
  gap: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-top: 3px solid #ccc;
}
#block-dshoromericecz-hornimenu ul li.mechova   > ul { border-top-color: #448f07; }
#block-dshoromericecz-hornimenu ul li.matova    > ul { border-top-color: #96b240; }
#block-dshoromericecz-hornimenu ul li.pomenkova > ul { border-top-color: #46a4b4; }

#block-dshoromericecz-hornimenu ul li:hover > ul {
  display: flex;
}

/* 2. úroveň — položky pod sebou */
#block-dshoromericecz-hornimenu ul ul li {
  width: 100%;
}
#block-dshoromericecz-hornimenu ul ul li a {
  display: block;
  color: #fff;
  font-weight: 400;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  border-radius: 0;
}
#block-dshoromericecz-hornimenu ul ul li:last-child a {
  border-bottom: none;
}

/* Barvy pozadí 2. úrovně dle rodičovské třídy */
#block-dshoromericecz-hornimenu li.mechova   ul li a { background-color: #448f07; }
#block-dshoromericecz-hornimenu li.matova    ul li a { background-color: #96b240; }
#block-dshoromericecz-hornimenu li.pomenkova ul li a { background-color: #46a4b4; }

/* Hover stejný jako 1. úroveň — zesvětlení přes opacity */
#block-dshoromericecz-hornimenu ul li a:hover {
  opacity: 0.85;
  color: #fff;
  text-decoration: none;
}

/* 3. úroveň — flyout do strany */
#block-dshoromericecz-hornimenu ul ul ul {
  top: 0;
  left: 100%;
  border-top: none;
  border-left: 3px solid #ccc;
}
#block-dshoromericecz-hornimenu ul li.mechova   ul ul { border-left-color: #448f07; }
#block-dshoromericecz-hornimenu ul li.matova    ul ul { border-left-color: #96b240; }
#block-dshoromericecz-hornimenu ul li.pomenkova ul ul { border-left-color: #46a4b4; }

/* Šipka naznačující další úroveň */
#block-dshoromericecz-hornimenu ul ul li:has(> ul) > a::after {
  content: " ›";
  float: right;
  opacity: 0.6;
}

/* ---------- Drobečková navigace ---------- */
.site-breadcrumb { margin-bottom: 0.5rem; }
.breadcrumb-wrapper {
  background-color: #ffffff;
  padding: 8px 15px;
  border-bottom: 1px solid #de610e;
  margin-bottom: 1rem;
}
.breadcrumb {
  margin: 0;
  background: none;
  padding: 0;
}
.breadcrumb-item + .breadcrumb-item::before { color: #de610e; }

/* ---------- Sidebar levý ---------- */
#sidebar-first {
  margin: 10px 0;
}
#sidebar-first h2 {
  margin-top: 25px;
}
.sidebar-login {
  padding: 10px 5px 10px 15px;
}

/* ---------- Sidebar stromové menu ---------- */
#main-menu {
  background-color: #f2f2f2;
  padding: 8px 10px 10px 10px;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Reset všech úrovní */
#main-menu .sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
#main-menu .sidebar-menu__item {
  margin: 0;
  padding: 0;
}

/* Základní odkaz */
#main-menu .sidebar-menu__link {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  color: #353535;
  line-height: 1.35;
  min-width: 0;
}
#main-menu .sidebar-menu__link .sidebar-scheme-icon {
  flex-shrink: 0;
  margin-top: 3px;
}
#main-menu .sidebar-menu__link .menu-item-title {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}
#main-menu .sidebar-menu__link:hover { text-decoration: underline; }
#main-menu .sidebar-menu__link.is-active { text-decoration: underline; }

/* Ikony */
#main-menu .sidebar-icon     { flex-shrink: 0; }
#main-menu .sidebar-icon     { font-size: 18px; }
#main-menu .sidebar-icon--sm { font-size: 12px; }
#main-menu .sidebar-icon--xs { font-size: 10px; }

/* 1. úroveň — tučné, větší */
#main-menu .sidebar-menu--depth-1 > .sidebar-menu__item {
  margin: 6px 0 2px 5px;
}
#main-menu .sidebar-menu__link.depth-1 {
  font-size: 1rem;
  font-weight: 700;
}

/* 2. úroveň — menší, odsazení */
#main-menu .sidebar-menu--depth-2 {
  padding-left: 10px;
  margin: 2px 0 4px;
}
#main-menu .sidebar-menu__link.depth-2 {
  font-size: 0.92rem;
  font-weight: 400;
}

/* 3. úroveň — ještě menší, více odsazené */
#main-menu .sidebar-menu--depth-3 {
  padding-left: 16px;
  margin: 2px 0 2px;
}
#main-menu .sidebar-menu__link.depth-3 {
  font-size: 0.87rem;
  font-weight: 400;
}

/* ---------- Sidebar: scheme barvy (1. úroveň = tučná s ikonou, 2-3 = menší) ---------- */
/* Sidebar je #sidebar-first, top nav je #main-navigation — různé kontejnery, různé CSS */

#sidebar-first a.scheme-tmave-modre   { color: #005e98; }
#sidebar-first a.scheme-svetle-zelene { color: #96b240; }
#sidebar-first a.scheme-oranzove      { color: #d87848; }
#sidebar-first a.scheme-svetle-modre  { color: #46a4b4; }
#sidebar-first a.scheme-cervene       { color: #e0384d; }
#sidebar-first a.scheme-vinove        { color: #be3244; }
#sidebar-first a.scheme-fialove       { color: #8b1eab; }
#sidebar-first a.scheme-tmave-zelene  { color: #448f07; }

/* Aktivní položka v sidebaru — zachová barvu schématu */
#sidebar-first a.scheme-tmave-modre.is-active   { color: #005e98; font-weight: 700; }
#sidebar-first a.scheme-svetle-zelene.is-active { color: #96b240; font-weight: 700; }
#sidebar-first a.scheme-oranzove.is-active      { color: #d87848; font-weight: 700; }
#sidebar-first a.scheme-svetle-modre.is-active  { color: #46a4b4; font-weight: 700; }
#sidebar-first a.scheme-cervene.is-active       { color: #e0384d; font-weight: 700; }
#sidebar-first a.scheme-vinove.is-active        { color: #be3244; font-weight: 700; }
#sidebar-first a.scheme-fialove.is-active       { color: #8b1eab; font-weight: 700; }
#sidebar-first a.scheme-tmave-zelene.is-active  { color: #448f07; font-weight: 700; }

/* Sidebar 1. úroveň: tučná, s ikonou vlevo */
#sidebar-first .sidebar-menu--depth-1 > .sidebar-menu__item > a {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  text-decoration: none;
}
/* Sidebar 1. úroveň: ikona — schéma barvy #sidebar-first a.scheme-* ji zdědí */
#sidebar-first .sidebar-menu--depth-1 > .sidebar-menu__item > a .sidebar-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* Potlačit Bootstrap navbar-nav styly v sidebaru */
#sidebar-first .navbar-nav { display: block; }
#sidebar-first .navbar-nav .nav-link {
  padding: 4px 0;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: none;
  text-decoration: none;
}
#sidebar-first .dropdown-menu {
  position: static !important;
  display: block;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  min-width: 0;
  float: none;
}
#sidebar-first .dropdown-toggle::after { display: none; }
#sidebar-first .nav-item { margin: 4px 0; }

/* Dropdown toggle button — viditelný v top navbar, skrytý v sidebaru */
.nav-dropdown-toggle {
  background: none;
  border: none;
  padding: 4px 6px;
  color: inherit;
  cursor: pointer;
  line-height: 1;
}
.nav-dropdown-toggle::after {
  display: inline-block;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-left: 0.3em solid transparent;
  vertical-align: middle;
}
#sidebar-first .nav-dropdown-toggle { display: none; }

/* Bootstrap .dropdown-item má white-space: nowrap — v sidebaru to zrušit */
#sidebar-first .dropdown-item {
  white-space: normal;
}

/* Hover bez bílého Bootstrap podbarvení */
#sidebar-first .dropdown-item:hover,
#sidebar-first .dropdown-item:focus {
  background-color: transparent;
  text-decoration: underline;
}

/* Ikona skryta v top navigaci (viditelná jen v sidebaru) */
#main-navigation .sidebar-icon { display: none; }

/* Ikonky domečků — dekorativní, řešeno přes CSS background-image */
.sidebar-scheme-icon {
  display: inline-block;
  width: 13px;
  height: 23px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url('../images/scheme1-big.png'); /* fallback */
}

/* Scheme-specifické ikonky — 1. úroveň (velká ikona) */
#sidebar-first a.scheme-tmave-modre   .sidebar-scheme-icon { background-image: url('../images/scheme1-big.png'); }
#sidebar-first a.scheme-svetle-zelene .sidebar-scheme-icon { background-image: url('../images/scheme2-big.png'); }
#sidebar-first a.scheme-oranzove      .sidebar-scheme-icon { background-image: url('../images/scheme3-big.png'); }
#sidebar-first a.scheme-svetle-modre  .sidebar-scheme-icon { background-image: url('../images/scheme4-big.png'); }
#sidebar-first a.scheme-cervene       .sidebar-scheme-icon { background-image: url('../images/scheme5-big.png'); }
#sidebar-first a.scheme-vinove        .sidebar-scheme-icon { background-image: url('../images/scheme6-big.png'); }
#sidebar-first a.scheme-fialove       .sidebar-scheme-icon { background-image: url('../images/scheme7-big.png'); }
#sidebar-first a.scheme-tmave-zelene  .sidebar-scheme-icon { background-image: url('../images/scheme8-big.png'); }

/* 2. a 3. úroveň — malá ikona, menší rozměr */
#sidebar-first .depth-2 .sidebar-scheme-icon,
#sidebar-first .depth-3 .sidebar-scheme-icon {
  width: 13px;
  height: 16px;
}
#sidebar-first .depth-2.scheme-tmave-modre   .sidebar-scheme-icon,
#sidebar-first .depth-3.scheme-tmave-modre   .sidebar-scheme-icon { background-image: url('../images/scheme1-small.png'); }
#sidebar-first .depth-2.scheme-svetle-zelene .sidebar-scheme-icon,
#sidebar-first .depth-3.scheme-svetle-zelene .sidebar-scheme-icon { background-image: url('../images/scheme2-small.png'); }
#sidebar-first .depth-2.scheme-oranzove      .sidebar-scheme-icon,
#sidebar-first .depth-3.scheme-oranzove      .sidebar-scheme-icon { background-image: url('../images/scheme3-small.png'); }
#sidebar-first .depth-2.scheme-svetle-modre  .sidebar-scheme-icon,
#sidebar-first .depth-3.scheme-svetle-modre  .sidebar-scheme-icon { background-image: url('../images/scheme4-small.png'); }
#sidebar-first .depth-2.scheme-cervene       .sidebar-scheme-icon,
#sidebar-first .depth-3.scheme-cervene       .sidebar-scheme-icon { background-image: url('../images/scheme5-small.png'); }
#sidebar-first .depth-2.scheme-vinove        .sidebar-scheme-icon,
#sidebar-first .depth-3.scheme-vinove        .sidebar-scheme-icon { background-image: url('../images/scheme6-small.png'); }
#sidebar-first .depth-2.scheme-fialove       .sidebar-scheme-icon,
#sidebar-first .depth-3.scheme-fialove       .sidebar-scheme-icon { background-image: url('../images/scheme7-small.png'); }
#sidebar-first .depth-2.scheme-tmave-zelene  .sidebar-scheme-icon,
#sidebar-first .depth-3.scheme-tmave-zelene  .sidebar-scheme-icon { background-image: url('../images/scheme7-small.png'); }

/* ===== #mobile-main-collapse — stejné styly jako #sidebar-first ===== */
#mobile-main-collapse a.scheme-tmave-modre   { color: #005e98; }
#mobile-main-collapse a.scheme-svetle-zelene { color: #96b240; }
#mobile-main-collapse a.scheme-oranzove      { color: #d87848; }
#mobile-main-collapse a.scheme-svetle-modre  { color: #46a4b4; }
#mobile-main-collapse a.scheme-cervene       { color: #e0384d; }
#mobile-main-collapse a.scheme-vinove        { color: #be3244; }
#mobile-main-collapse a.scheme-fialove       { color: #8b1eab; }
#mobile-main-collapse a.scheme-tmave-zelene  { color: #448f07; }

#mobile-main-collapse a.scheme-tmave-modre.is-active   { color: #005e98; font-weight: 700; }
#mobile-main-collapse a.scheme-svetle-zelene.is-active { color: #96b240; font-weight: 700; }
#mobile-main-collapse a.scheme-oranzove.is-active      { color: #d87848; font-weight: 700; }
#mobile-main-collapse a.scheme-svetle-modre.is-active  { color: #46a4b4; font-weight: 700; }
#mobile-main-collapse a.scheme-cervene.is-active       { color: #e0384d; font-weight: 700; }
#mobile-main-collapse a.scheme-vinove.is-active        { color: #be3244; font-weight: 700; }
#mobile-main-collapse a.scheme-fialove.is-active       { color: #8b1eab; font-weight: 700; }
#mobile-main-collapse a.scheme-tmave-zelene.is-active  { color: #448f07; font-weight: 700; }

#mobile-main-collapse .navbar-nav { display: block; }
#mobile-main-collapse .navbar-nav .nav-link {
  padding: 4px 0;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: none;
  text-decoration: none;
}
#mobile-main-collapse .dropdown-menu {
  position: static !important;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 0 0 0 16px;
  min-width: 0;
  float: none;
}
#mobile-main-collapse .dropdown-toggle::after { display: none; }
#mobile-main-collapse .nav-item { margin: 4px 0; }
#mobile-main-collapse .nav-dropdown-toggle { display: none; }

/* Podmenu skryto ve výchozím stavu — toggle přes JS */
#mobile-main-collapse ul.mobile-submenu-hidden { display: none; }
#mobile-main-collapse ul.mobile-submenu-open   { display: block; }

/* Položka s podmenu — flex řádek (odkaz + šipka) */
#mobile-main-collapse .sidebar-menu__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
#mobile-main-collapse .sidebar-menu__item > a {
  flex: 1;
}
#mobile-main-collapse .sidebar-menu__item > ul {
  flex-basis: 100%;
}
/* Sjednocený styl šipky pro všechna mobilní podmenu */
.mobile-submenu-toggle {
  background: rgba(0,0,0,0.15);
  border: none;
  color: inherit;
  padding: 0 12px;
  cursor: pointer;
  font-size: 0.75rem;
  flex-shrink: 0;
  min-height: 36px;
  line-height: 1;
  border-radius: 0;
}
.mobile-submenu-toggle:hover {
  background: rgba(0,0,0,0.25);
}
#mobile-main-collapse .dropdown-item { white-space: normal; }
#mobile-main-collapse .dropdown-item:hover,
#mobile-main-collapse .dropdown-item:focus {
  background-color: transparent;
  text-decoration: underline;
}
#mobile-main-collapse .sidebar-menu--depth-1 > .sidebar-menu__item > a {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  text-decoration: none;
}

#mobile-main-collapse a.scheme-tmave-modre   .sidebar-scheme-icon { background-image: url('../images/scheme1-big.png'); }
#mobile-main-collapse a.scheme-svetle-zelene .sidebar-scheme-icon { background-image: url('../images/scheme2-big.png'); }
#mobile-main-collapse a.scheme-oranzove      .sidebar-scheme-icon { background-image: url('../images/scheme3-big.png'); }
#mobile-main-collapse a.scheme-svetle-modre  .sidebar-scheme-icon { background-image: url('../images/scheme4-big.png'); }
#mobile-main-collapse a.scheme-cervene       .sidebar-scheme-icon { background-image: url('../images/scheme5-big.png'); }
#mobile-main-collapse a.scheme-vinove        .sidebar-scheme-icon { background-image: url('../images/scheme6-big.png'); }
#mobile-main-collapse a.scheme-fialove       .sidebar-scheme-icon { background-image: url('../images/scheme7-big.png'); }
#mobile-main-collapse a.scheme-tmave-zelene  .sidebar-scheme-icon { background-image: url('../images/scheme8-big.png'); }

#mobile-main-collapse .depth-2 .sidebar-scheme-icon,
#mobile-main-collapse .depth-3 .sidebar-scheme-icon { width: 13px; height: 16px; }

#mobile-main-collapse .depth-2.scheme-tmave-modre   .sidebar-scheme-icon,
#mobile-main-collapse .depth-3.scheme-tmave-modre   .sidebar-scheme-icon { background-image: url('../images/scheme1-small.png'); }
#mobile-main-collapse .depth-2.scheme-svetle-zelene .sidebar-scheme-icon,
#mobile-main-collapse .depth-3.scheme-svetle-zelene .sidebar-scheme-icon { background-image: url('../images/scheme2-small.png'); }
#mobile-main-collapse .depth-2.scheme-oranzove      .sidebar-scheme-icon,
#mobile-main-collapse .depth-3.scheme-oranzove      .sidebar-scheme-icon { background-image: url('../images/scheme3-small.png'); }
#mobile-main-collapse .depth-2.scheme-svetle-modre  .sidebar-scheme-icon,
#mobile-main-collapse .depth-3.scheme-svetle-modre  .sidebar-scheme-icon { background-image: url('../images/scheme4-small.png'); }
#mobile-main-collapse .depth-2.scheme-cervene       .sidebar-scheme-icon,
#mobile-main-collapse .depth-3.scheme-cervene       .sidebar-scheme-icon { background-image: url('../images/scheme5-small.png'); }
#mobile-main-collapse .depth-2.scheme-vinove        .sidebar-scheme-icon,
#mobile-main-collapse .depth-3.scheme-vinove        .sidebar-scheme-icon { background-image: url('../images/scheme6-small.png'); }
#mobile-main-collapse .depth-2.scheme-fialove       .sidebar-scheme-icon,
#mobile-main-collapse .depth-3.scheme-fialove       .sidebar-scheme-icon { background-image: url('../images/scheme7-small.png'); }
#mobile-main-collapse .depth-2.scheme-tmave-zelene  .sidebar-scheme-icon,
#mobile-main-collapse .depth-3.scheme-tmave-zelene  .sidebar-scheme-icon { background-image: url('../images/scheme7-small.png'); }

/* V top navigaci ikonku a menu-item-title wrapper skrýt / reset */
#main-navigation .sidebar-scheme-icon { display: none; }
#main-navigation .menu-item-title { display: inline; }

/* Mobilní top nav — collapse menu (všechny úrovně jako seznam) */
@media (max-width: 991px) {
  #main-navigation .dropdown-menu,
  #main-navigation .dropdown-submenu-panel {
    position: static !important;
    display: none;
    box-shadow: none;
    border: none;
    background: #f2f2f2;
    padding-left: 12px;
  }
  #main-navigation .nav-item.dropdown.show > .dropdown-menu,
  #main-navigation .dropdown-submenu.show > .dropdown-submenu-panel {
    display: block;
  }
  #main-navigation .navbar-nav .nav-link {
    text-align: left;
    font-size: 1rem;
    padding: 8px 12px;
  }
  #main-navigation .dropdown-item { padding: 6px 12px; }
  /* Na mobilu zobrazit sidebar ikonu i v top nav hamburger menu */
  .mobile-nav-menu .sidebar-scheme-icon { display: inline-block; }
}

/* ---------- Barevná schémata sekcí (z field_scheme na node) ---------- */
/* CSS třída se generuje v dshoromericecz.theme: tmave_modre → scheme-tmave-modre */

.scheme-tmave-modre h1,
.scheme-tmave-modre h2,
.scheme-tmave-modre h3  { color: #005e98; }
.scheme-tmave-modre a   { color: #005e98; }
.scheme-tmave-modre table thead th { background: #005e98; color: #fff; }

.scheme-svetle-zelene h1,
.scheme-svetle-zelene h2,
.scheme-svetle-zelene h3 { color: #96b240; }
.scheme-svetle-zelene a  { color: #96b240; }
.scheme-svetle-zelene table thead th { background: #96b240; color: #fff; }

.scheme-oranzove h1,
.scheme-oranzove h2,
.scheme-oranzove h3 { color: #d87848; }
.scheme-oranzove a  { color: #d87848; }
.scheme-oranzove table thead th { background: #d87848; color: #fff; }

.scheme-svetle-modre h1,
.scheme-svetle-modre h2,
.scheme-svetle-modre h3 { color: #46a4b4; }
.scheme-svetle-modre a  { color: #46a4b4; }
.scheme-svetle-modre table thead th { background: #46a4b4; color: #fff; }

.scheme-cervene h1,
.scheme-cervene h2,
.scheme-cervene h3 { color: #e0384d; }
.scheme-cervene a  { color: #e0384d; }
.scheme-cervene table thead th { background: #e0384d; color: #fff; }

/* Content type aktuality — výchozí schéma červená */
body.page-aktuality .scheme-content h1,
body.page-aktuality .scheme-content h2,
body.page-aktuality .scheme-content h3 { color: #e0384d; }
body.page-aktuality .scheme-content a  { color: #e0384d; }
body.page-aktuality .scheme-content table thead th { background: #e0384d; color: #fff; }
body.page-aktuality #sidebar-first a.is-active { color: #e0384d; }
body.page-aktuality #sidebar-first a.is-current { color: #e0384d; font-weight: 700; }

.scheme-vinove h1,
.scheme-vinove h2,
.scheme-vinove h3 { color: #be3244; }
.scheme-vinove a  { color: #be3244; }
.scheme-vinove table thead th { background: #be3244; color: #fff; }

.scheme-fialove h1,
.scheme-fialove h2,
.scheme-fialove h3 { color: #8b1eab; }
.scheme-fialove a  { color: #8b1eab; }
.scheme-fialove table thead th { background: #8b1eab; color: #fff; }

.scheme-tmave-zelene h1,
.scheme-tmave-zelene h2,
.scheme-tmave-zelene h3 { color: #448f07; }
.scheme-tmave-zelene a  { color: #448f07; }
.scheme-tmave-zelene table thead th { background: #448f07; color: #fff; }

/* ---------- Systémové hlášky (messages) ---------- */
#messages-console,
.messages-list,
.messages {
  margin: 0.75rem 0 1rem;
}

.messages--status,
.alert-success,
div[role="contentinfo"].messages {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  border-left: 4px solid #96b240;
  background-color: #f4f8ea;
  border-radius: 0 4px 4px 0;
  font-size: 0.92rem;
  color: #3a4a1a;
  line-height: 1.5;
}
.messages--status::before {
  content: "\ea5e";
  font-family: "tabler-icons";
  font-size: 18px;
  color: #96b240;
  flex-shrink: 0;
  margin-top: 1px;
}
.messages--status a,
.messages--status a:visited,
.scheme-content .messages--status a,
.scheme-content .messages--status a:visited {
  color: #3b6d11 !important;
  font-weight: 600;
  text-decoration: underline;
}
.messages--status a:hover,
.scheme-content .messages--status a:hover { color: #27500a !important; }

.messages--warning {
  border-left-color: #d87848;
  background-color: #fdf3ec;
  color: #5a2e0a;
}
.messages--warning::before {
  content: "\ea06";
  font-family: "tabler-icons";
  color: #d87848;
}

.messages--error {
  border-left-color: #e0384d;
  background-color: #fdf0f2;
  color: #5a0a12;
}
.messages--error::before {
  content: "\ea09";
  font-family: "tabler-icons";
  color: #e0384d;
}

/* ---------- Tabulky ---------- */
article table {
  margin: 5px 0 25px 0;
  width: 100%;
}
article table tr th,
article table tr td {
  border-bottom: 1px solid #ccc;
  padding: 4px 15px;
}
article table thead tr th {
  border: none;
  padding: 7px 15px;
}

/* ---------- Přílohy ---------- */
#prilohy {
  margin-top: 1.5rem;
}
#prilohy img {
  border: none !important;
}
#prilohy .file {
  display: block;
  margin: 2px 0 0 25px;
}

/* ---------- Footer ---------- */
footer#site-footer {
  margin: 2rem -15px 0;
  padding: 25px 0 0;
  color: #252525;
}
footer p {
	margin: 5px 0;
}
.footer-area {
  border-top: solid 10px #42a2ec;
  border-bottom: solid 10px #9cbe34;
  padding: 15px;
}
.footer-area-logo {
  text-align: center;
  margin-bottom: 1rem;
}
.footer-area-logo img {
  max-width: 100%;
  height: auto;
}
footer#subfooter {
  padding: 15px 0;
  margin-top: 1rem;
}
.footerFirst .footer-area {
	border-top: none;
	border-bottom: none;
	padding: 0;
	text-align: center
}
#block-dshoromericecz-logo img {
	height: 132px;
}
.footerSecond {
	padding-right: 0;
}
.footerSecond .footer-area > div{
	border-right: solid 5px #ea7c28;
}
.footerThird {
	padding-left: 0;
	padding-right: 0;
}
.footerThird .footer-area > div {
	border-right: solid 5px #ea7c28;
}
.footerFourth {
	padding-left: 0;
}
/* ---------- Scroll to top ---------- */
#toTop {
  position: fixed;
  border-radius: 5px;
  background: #999999;
  opacity: 0.4;
  width: 50px;
  height: 50px;
  bottom: 15px;
  right: 15px;
  cursor: pointer;
  color: #ffffff;
  font-size: 1.4rem;
  text-align: center;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  border: none;
  transition: opacity 0.3s;
}
#toTop:hover { opacity: 1; }

/* ---------- Mobilní navigace ---------- */

/* Menu v hamburgeru — zobrazí sidebar menu */
.mobile-nav-menu {
  width: 100%;
  padding: 10px 0;
  border-top: 1px solid #e2e2e2;
}
.mobile-nav-menu #main-menu {
  display: block !important;
}
/* Skrýt přihlášení a tlačítko "Zobrazit hlavní menu" uvnitř hamburgeru */
.mobile-nav-menu .sidebar-login,
.mobile-nav-menu #mobile-categories-button {
  display: none !important;
}

#mobile-class-button {
  font-weight: 400;
  color: white;
  cursor: pointer;
  background-color: #96b240;
  display: block;
  padding: 12px 20px;
  text-transform: uppercase;
  border: none;
  width: 100%;
  text-align: left;
  margin-top: 8px;
}
#mobile-categories-button {
  font-weight: 400;
  color: white;
  cursor: pointer;
  background-color: #005e98;
  display: block;
  padding: 12px 20px;
  text-transform: uppercase;
  border: none;
  width: 100%;
  text-align: left;
}
/* Mobilní navbary — Hlavní menu a Třídy — stejný styl */
#mobile-main-navbar {
  background-color: #00457c;
  margin-bottom: 0;
}
#mobile-main-navbar .navbar {
  background-color: #00457c;
  padding: 0.4rem 1rem;
  cursor: pointer;
}
#mobile-class-navbar {
  background-color: #ea7c28;
  margin-bottom: 0;
}
#mobile-class-navbar .navbar {
  background-color: #ea7c28;
  padding: 0.4rem 1rem;
  cursor: pointer;
}
#mobile-main-navbar .navbar-brand,
#mobile-class-navbar .navbar-brand {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}
#mobile-main-navbar .navbar-toggler-icon,
#mobile-class-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
#mobile-main-collapse {
  background-color: #fff;
  padding: 0.5rem 0;
}
/* Rozbalená oblast tříd */
#mobile-class-collapse {
  background-color: #fff;
  padding: 0.5rem 0;
}
#mobile-class-collapse #block-dshoromericecz-hornimenu {
  padding: 0;
}
/* Podmenu skryté/otevřené v mobilním kontextu */
#mobile-class-collapse #block-dshoromericecz-hornimenu ul {
  flex-direction: column;
  gap: 2px;
  padding: 0;
  margin: 0;
}
#mobile-class-collapse #block-dshoromericecz-hornimenu ul li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
#mobile-class-collapse #block-dshoromericecz-hornimenu ul li a {
  flex: 1;
  border-radius: 0;
  display: block;
}

#mobile-class-collapse #block-dshoromericecz-hornimenu ul ul {
  display: none;
  position: static;
  box-shadow: none;
  width: 100%;
  flex-basis: 100%;
  border-left: 4px solid rgba(255,255,255,0.4);
  padding-left: 8px;
}
#mobile-class-collapse #block-dshoromericecz-hornimenu ul ul.mobile-submenu-open {
  display: flex;
  flex-direction: column;
}
#mobile-class-collapse #block-dshoromericecz-hornimenu ul ul.mobile-submenu-hidden {
  display: none;
}

/* Mobilní horní menu — klik-toggle podmenu (hover nefunguje na dotyku) */
#mobile-class-menu #block-dshoromericecz-hornimenu ul {
  flex-direction: column;
  gap: 2px;
}
#mobile-class-menu #block-dshoromericecz-hornimenu ul li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
#mobile-class-menu #block-dshoromericecz-hornimenu ul li a {
  display: block;
  flex: 1;
  border-radius: 0;
}

/* Podmenu — skryto ve výchozím stavu */
#mobile-class-menu #block-dshoromericecz-hornimenu ul ul {
  display: none;
  position: static;
  box-shadow: none;
  border-top: none;
  border-left: 4px solid rgba(255,255,255,0.4);
  padding-left: 8px;
  width: 100%;
  flex-basis: 100%;
}
/* Podmenu otevřené přes JS */
#mobile-class-menu #block-dshoromericecz-hornimenu ul ul.mobile-submenu-open {
  display: flex;
  flex-direction: column;
}
/* Podmenu skryté (výchozí po inicializaci JS) */
#mobile-class-menu #block-dshoromericecz-hornimenu ul ul.mobile-submenu-hidden {
  display: none;
}
#mobile-class-menu #block-dshoromericecz-hornimenu ul ul ul {
  border-left: 4px solid rgba(255,255,255,0.3);
  padding-left: 8px;
}

/* ---------- Utility ---------- */
.out-of-css {
  position: absolute;
  top: -9999px;
  left: -9999px;
}

/* ---------- Cookie consent ---------- */
.freeprivacypolicy-com---palette-light .cc-nb-okagree {
  background-color: #96b240 !important;
}
.freeprivacypolicy-com---palette-light .cc-nb-reject {
  background-color: #d87848 !important;
}

/* ==========================================================================
   Responzivita
   ========================================================================== */

/* Tablet (≤ 991px) */
@media (max-width: 991px) {
  .sidebar-login { display: none; }
  /* Blok tříd v headeru skryt — JS ho přesune do #mobile-class-collapse */
  #site-header #block-dshoromericecz-hornimenu { display: none; }

  footer#site-footer {
    padding: 0;
    margin: 0;
  }
  .footer-area-logo { display: none; }
  .footer-area {
    border: none;
    text-align: center;
    padding: 10px 0;
  }
  .footer-area p { margin: 8px 0; }
  #subfooter .sidebar-login { text-align: center; }
}

/* Mobil (≤ 767px) */
@media (max-width: 767px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.15rem; }

  #site-header #logo { margin-bottom: 1rem; }
  #site-header .col-md-4 { margin-bottom: 0.75rem; }

  #main-navigation { margin-top: 0; }

  .layout-container .row > aside,
  .layout-container .row > section { padding: 0 10px; }

  footer#site-footer .col-md-3 { margin-bottom: 1rem; }
}

/* Desktop (≥ 992px) — hamburger skrytý */
@media (min-width: 992px) {
  #mobile-class-button,
  #mobile-categories-button { display: none; }
  #mobile-class-menu { display: none !important; }
  .sidebar-login.mobile-only { display: none; }
}

/* ==========================================================================
   Správcovské záložky node — Zobrazit / Upravit / Smazat / Revize / Devel
   ========================================================================== */

.node-admin-tabs,
.tabs {
  margin: 0.75rem 0 1.25rem;
}

/* Primární záložky */
.node-tabs-primary,
ul.tabs.primary {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 3px solid #dee2e6;
}

.node-tabs-primary .node-tab,
ul.tabs.primary li {
  margin: 0;
  padding: 0;
}

/* Odkaz záložky */
.node-tabs-primary .node-tab a,
.node-tabs-primary .node-tab a:visited,
ul.tabs.primary li a,
ul.tabs.primary li a:visited {
  display: flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #495057;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  transition: background-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.node-tabs-primary .node-tab a:hover,
ul.tabs.primary li a:hover {
  background-color: #e9ecef;
  color: #252525;
  text-decoration: none;
}

/* Aktivní záložka */
.node-tabs-primary .node-tab.is-active a,
.node-tabs-primary .node-tab a.is-active,
ul.tabs.primary li.is-active a,
ul.tabs.primary li a.is-active {
  background-color: #ffffff;
  color: #a94a0b;
  border-color: #dee2e6;
  border-bottom-color: #ffffff;
  margin-bottom: -3px;
  padding-bottom: 11px;
}

/* Barvy specifických záložek — třídové selektory (z Twig) + href fallback */
ul.tabs.primary li.tab-edit a,
ul.tabs.primary li a[href*="/edit"] {
  border-top: 3px solid #96b240;
}
ul.tabs.primary li.tab-delete a,
ul.tabs.primary li a[href*="/delete"] {
  border-top: 3px solid #e0384d;
  color: #c0392b;
}

/* ==========================================================================
   Uživatelské stránky — login, register, password
   ========================================================================== */

body.path--user-login .layout-container,
body.path--user-register .layout-container,
body.path--user-password .layout-container {
  max-width: 520px;
}

/* Skrýt sidebar a rozšířit obsah na celou šířku */
body.path--user-login #sidebar-first,
body.path--user-register #sidebar-first,
body.path--user-password #sidebar-first,
body.path--user-login #mobile-main-navbar,
body.path--user-register #mobile-main-navbar,
body.path--user-password #mobile-main-navbar {
  display: none !important;
}
body.path--user-login #main-content,
body.path--user-register #main-content,
body.path--user-password #main-content {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Nadpis stránky */
body.path--user-login h1,
body.path--user-register h1,
body.path--user-password h1 {
  font-size: 1.6rem;
  color: #00457c;
  border-bottom: 3px solid #42a2ec;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Formulář — rámeček s jemným stínem */
#user-login-form,
#user-register-form,
#user-pass {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-top: 4px solid #00457c;
  border-radius: 0 0 6px 6px;
  padding: 1.5rem 2rem 2rem;
  margin-bottom: 1.5rem;
}

/* Popisky */
#user-login-form label,
#user-register-form label,
#user-pass label {
  font-weight: 600;
  color: #252525;
  margin-bottom: 4px;
  display: block;
}

/* Textová pole */
#user-login-form input[type="text"],
#user-login-form input[type="email"],
#user-login-form input[type="password"],
#user-register-form input[type="text"],
#user-register-form input[type="email"],
#user-register-form input[type="password"],
#user-pass input[type="text"],
#user-pass input[type="email"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #b0bec5;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  color: #252525;
  background: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
#user-login-form input[type="text"]:focus,
#user-login-form input[type="email"]:focus,
#user-login-form input[type="password"]:focus,
#user-register-form input[type="text"]:focus,
#user-register-form input[type="email"]:focus,
#user-register-form input[type="password"]:focus,
#user-pass input[type="text"]:focus,
#user-pass input[type="email"]:focus {
  border-color: #00457c;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 69, 124, 0.12);
}

/* Nápověda pod polem */
#user-login-form .form-item--description,
#user-register-form .form-item--description,
#user-pass .form-item--description {
  font-size: 0.85rem;
  color: #666;
  margin-top: 3px;
}

/* Tlačítko Přihlásit / Odeslat */
#user-login-form .form-submit,
#user-register-form .form-submit,
#user-pass .form-submit {
  background: #00457c;
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}
#user-login-form .form-submit:hover,
#user-register-form .form-submit:hover,
#user-pass .form-submit:hover {
  background: #003560;
}

/* Odkazy pod formulářem (zapomenuté heslo apod.) */
body.path--user-login #main-content a,
body.path--user-register #main-content a,
body.path--user-password #main-content a {
  color: #00457c;
  font-weight: 600;
}
body.path--user-login #main-content a:hover,
body.path--user-register #main-content a:hover,
body.path--user-password #main-content a:hover {
  color: #de610e;
}
ul.tabs.primary li.tab-delete a:hover,
ul.tabs.primary li a[href*="/delete"]:hover {
  background-color: #fdf2f2;
}
ul.tabs.primary li.tab-revisions a,
ul.tabs.primary li a[href*="/revisions"] {
  border-top: 3px solid #46a4b4;
}
ul.tabs.primary li.tab-devel a,
ul.tabs.primary li a[href*="/devel"] {
  border-top: 3px solid #8b1eab;
}

/* Ikony v záložkách */
ul.tabs.primary li a .ti,
ul.tabs.secondary li a .ti {
  font-size: 15px;
  vertical-align: -2px;
  margin-right: 5px;
}

/* Sekundární záložky */
.node-tabs-secondary,
ul.tabs.secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.node-tabs-secondary .node-tab a,
ul.tabs.secondary li a {
  display: block;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  color: #495057;
  background-color: #f1f3f5;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  transition: background-color 0.15s;
}
.node-tabs-secondary .node-tab a:hover,
ul.tabs.secondary li a:hover { background-color: #dee2e6; text-decoration: none; }
.node-tabs-secondary .node-tab.is-active a,
ul.tabs.secondary li.is-active a { background-color: #a94a0b; color: #fff; border-color: #a94a0b; }

/* ---------- Mobilní záložky (≤ 600px) ---------- */
@media (max-width: 600px) {
  .node-tabs-primary,
  ul.tabs.primary {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 3px solid #dee2e6;
    padding-bottom: 0;
  }
  .node-tabs-primary::-webkit-scrollbar,
  ul.tabs.primary::-webkit-scrollbar { display: none; }

  .node-tabs-primary .node-tab a,
  ul.tabs.primary li a {
    padding: 10px 14px;
    font-size: 0.85rem;
    border-radius: 4px 4px 0 0;
  }

  /* Indikátor posunu */
  .node-admin-tabs,
  .tabs {
    position: relative;
  }
  .node-admin-tabs::after,
  .tabs::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 3px;
    width: 24px;
    background: linear-gradient(to right, transparent, #fff);
    pointer-events: none;
  }
}
.jidelnicek-table td {
	padding: 5px 15px;
	border: none;
}
.tucne {
	font-weight: 800;
}
.pondeli, .utery, .streda, .ctvrtek, .patek {
	font-weight: 600;
}
.header-right {
	align-self: flex-end;
}