/* VelkéSvaly.cz – legacy look on Cassiopeia */

:root {
  --vs-red: #f2142b;
  --vs-red-dark: #ed1c24;
  --vs-nav-bg: #333333;
  --vs-black: #000000;
  --vs-white: #ffffff;
  --vs-max-width: 950px;
  --vs-content-width: 912px;
}

body.site.vs-legacy {
  background: var(--vs-black) !important;
  color: #000;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

body.site.vs-legacy .header {
  background-color: var(--vs-white) !important;
  color: #000 !important;
}

body.site.vs-legacy a,
body.site.vs-legacy a:hover,
body.site.vs-legacy a:focus,
body.site.vs-legacy a:active,
body.site.vs-legacy a:visited {
  text-decoration: none !important;
}

body.site.vs-legacy a {
  color: var(--vs-red);
}

body.site.vs-legacy a:hover {
  color: #800000;
}

body.site.vs-legacy .site-grid {
  background: transparent;
}

body.site.vs-legacy .wrapper-static,
body.site.vs-legacy .wrapper-fluid {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Unified page column – header, content and footer same width */
body.site.vs-legacy .vs-page-wrap {
  width: 100%;
  max-width: var(--vs-content-width);
  margin: 20px auto 0;
  box-sizing: border-box;
}

/* Top band – header above menu (legacy layout) */
body.site.vs-legacy .vs-top-shell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
}

body.site.vs-legacy .vs-header-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  background: var(--vs-white) !important;
  background-image: none !important;
  color: #000 !important;
  padding: 12px 16px;
  border: 0;
  box-shadow: none !important;
  position: static;
}

body.site.vs-legacy .vs-header-logo {
  flex: 0 0 auto;
}

body.site.vs-legacy .vs-header-search {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 200px;
}

/* Banner modules in search position are for article context only – hide in header */
body.site.vs-legacy .vs-header-search .mod-banners {
  display: none !important;
}

body.site.vs-legacy .navbar-brand {
  font-size: 1rem;
  padding: 0;
}

body.site.vs-legacy .navbar-brand .brand-logo img,
body.site.vs-legacy .navbar-brand .brand-logo svg {
  width: 293px;
  height: 81px;
  max-width: 293px;
  max-height: 81px;
  object-fit: contain;
  display: block;
}

body.site.vs-legacy .navbar-brand .site-description {
  display: none;
}

body.site.vs-legacy .container-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

body.site.vs-legacy .container-search {
  margin-left: auto;
  min-width: 220px;
}

body.site.vs-legacy .container-search form,
body.site.vs-legacy .container-search .mod-finder,
body.site.vs-legacy .container-search .input-group {
  margin: 0;
}

body.site.vs-legacy .container-search input[type="search"],
body.site.vs-legacy .container-search input[type="text"] {
  border: 1px solid #ccc;
  border-radius: 0;
}

/* Main navigation */
body.site.vs-legacy .vs-nav-bar {
  background: var(--vs-nav-bg);
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
}

body.site.vs-legacy .vs-nav-bar .mod-menu,
body.site.vs-legacy .vs-nav-bar nav,
body.site.vs-legacy .vs-nav-bar .vs-main-nav {
  width: 100%;
}

body.site.vs-legacy .vs-nav-bar ul,
body.site.vs-legacy .vs-nav-bar .vs-flat-menu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  width: 100%;
}

body.site.vs-legacy .vs-nav-bar ul li {
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  float: none;
}

body.site.vs-legacy .vs-nav-bar ul li a,
body.site.vs-legacy .vs-nav-bar ul li .mod-menu__separator {
  display: block;
  padding: 8px 10px;
  color: var(--vs-white) !important;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  border-left: 1px solid var(--vs-white);
  white-space: nowrap;
}

body.site.vs-legacy .vs-nav-bar ul > li:first-child > a {
  border-left: 0;
}

body.site.vs-legacy .vs-nav-bar ul li a:hover,
body.site.vs-legacy .vs-nav-bar ul li.active > a {
  background: var(--vs-white);
  color: var(--vs-red) !important;
  text-decoration: none;
}

body.site.vs-legacy .vs-nav-bar .metismenu .mm-collapse,
body.site.vs-legacy .vs-nav-bar .metismenu .mm-show {
  display: none !important;
}

/* White content box */
body.site.vs-legacy .vs-content-shell {
  background: var(--vs-white);
  width: 100%;
  margin: 0;
  padding: 8px 12px 16px;
  box-sizing: border-box;
}

/* In-content footer (legacy – inside whitebox) */
body.site.vs-legacy .vs-incontent-footer {
  margin-top: 1.5rem;
  padding-top: 0.5rem;
  text-align: left;
}

body.site.vs-legacy .vs-incontent-footer .mod-banners:not(:has(.banneritem)),
body.site.vs-legacy .vs-incontent-footer .addthis_toolbox,
body.site.vs-legacy .vs-incontent-footer #mod-custom46 {
  display: none !important;
}

body.site.vs-legacy .vs-incontent-footer .mod-custom {
  margin-bottom: 0.75rem;
}

body.site.vs-legacy .vs-incontent-footer #mod-custom78 ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.25rem;
}

body.site.vs-legacy .vs-incontent-footer #mod-custom78 li {
  margin: 0.2rem 0;
  line-height: 1.4;
}

body.site.vs-legacy .vs-incontent-footer .vs-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

body.site.vs-legacy .vs-incontent-footer .vs-footer-menu li {
  margin: 0.35rem 0;
  padding: 0;
}

body.site.vs-legacy .vs-incontent-footer .vs-footer-menu li a {
  color: var(--vs-red) !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0;
  text-transform: none;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

body.site.vs-legacy .vs-incontent-footer .vs-footer-menu li a:hover {
  color: #800000 !important;
}

/* Copyright below white box (legacy #footer) */
body.site.vs-legacy .vs-copyright-bar {
  text-align: center;
  font-size: 0.9em;
  color: #aaa;
  padding: 10px 12px 20px;
}

body.site.vs-legacy .vs-copyright-bar p {
  margin: 0.25rem 0;
}

body.site.vs-legacy .vs-copyright-bar a {
  color: #999;
}

body.site.vs-legacy .vs-copyright-bar a:hover {
  color: #ccc;
}

body.site.vs-legacy .site-grid .container-component {
  background: transparent;
  padding: 0;
}

body.site.vs-legacy .vs-page-wrap .grid-child,
body.site.vs-legacy .vs-page-wrap .site-grid {
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

body.site.vs-legacy .vs-page-wrap .container-banner.full-width {
  width: 100%;
  max-width: 100%;
}

body.site.vs-legacy .site-grid .container-sidebar-left {
  width: 220px;
  flex: 0 0 220px;
  padding-right: 12px;
}

body.site.vs-legacy .site-grid .container-sidebar-left .card,
body.site.vs-legacy .site-grid .container-sidebar-right .card,
body.site.vs-legacy .site-grid .container-top-a .card,
body.site.vs-legacy .site-grid .container-main-top .card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  margin-bottom: 1rem;
}

body.site.vs-legacy .site-grid .card-header {
  background: transparent;
  border: 0;
  padding: 0 0 0.5rem;
  color: var(--vs-red);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
}

body.site.vs-legacy .site-grid .card-body {
  padding: 0;
}

body.site.vs-legacy h1,
body.site.vs-legacy h2,
body.site.vs-legacy h3,
body.site.vs-legacy .page-header,
body.site.vs-legacy .item-title,
body.site.vs-legacy .item-title a,
body.site.vs-legacy .contentheading,
body.site.vs-legacy .componentheading,
body.site.vs-legacy .blog-item h2,
body.site.vs-legacy .article-list h2,
body.site.vs-legacy .card-header {
  font-family: 'Bebas Neue', 'BebasNeue', sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

body.site.vs-legacy h1,
body.site.vs-legacy h2,
body.site.vs-legacy h3,
body.site.vs-legacy .page-header,
body.site.vs-legacy .item-title a {
  color: var(--vs-red);
}

/* Article title h2 – black like legacy site, not category heading */
body.site.vs-legacy.view-article .com-content-article .page-header.vs-article-title h2,
body.site.vs-legacy.view-article .com-content-article__body h2,
body.site.vs-legacy.view-article .com-content-article__body h2 a {
  color: #000 !important;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

body.site.vs-legacy .breadcrumb-container,
body.site.vs-legacy nav[aria-label="Breadcrumbs"] {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

body.site.vs-legacy .back-to-top-link {
  background: var(--vs-red);
}

body.site.vs-legacy .metabanner,
body.site.vs-legacy .tlacitko,
body.site.vs-legacy .tlacitkovelke,
body.site.vs-legacy .tlacitkosiroke {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 1rem auto;
  padding: 10px 16px;
  border: 5px solid var(--vs-red-dark);
  border-radius: 5px;
  background: var(--vs-red-dark);
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
}

body.site.vs-legacy p.tlacitkosirokevlevo,
body.site.vs-legacy .tlacitkosirokevlevo {
  display: block;
  width: 75%;
  max-width: 100%;
  margin: 10px auto;
  padding: 10px;
  border: 5px solid var(--vs-red-dark);
  border-radius: 5px;
  background: var(--vs-red-dark);
  color: var(--vs-white);
  font-size: 20px;
  line-height: 25px;
  text-transform: uppercase;
  font-weight: bold;
  text-align: left;
}

body.site.vs-legacy .tlacitkosirokevlevo a {
  color: var(--vs-white) !important;
  background: var(--vs-red-dark);
  text-decoration: none;
}

body.site.vs-legacy .tlacitkosirokevlevo a:hover {
  color: var(--vs-white) !important;
  text-shadow: 0 0 90px #000;
}

body.site.vs-legacy p.tlacitko,
body.site.vs-legacy p.tlacitkovelke,
body.site.vs-legacy p.tlacitkosiroke {
  text-align: center;
}

body.site.vs-legacy .metabanner a,
body.site.vs-legacy .tlacitko a {
  color: var(--vs-white) !important;
  text-decoration: none;
}

/* Hide read more links – article title is clickable */
body.site.vs-legacy .readmore,
body.site.vs-legacy p.readmore {
  display: none !important;
}

/* Keep images inside content column */
body.site.vs-legacy .vs-content-shell,
body.site.vs-legacy main,
body.site.vs-legacy .item-page,
body.site.vs-legacy .blog-item,
body.site.vs-legacy .container-component {
  overflow-x: hidden;
}

body.site.vs-legacy .vs-content-shell img,
body.site.vs-legacy main img,
body.site.vs-legacy .item-page img,
body.site.vs-legacy .blog-item img,
body.site.vs-legacy figure img,
body.site.vs-legacy .item-image img,
body.site.vs-legacy .intro-image img,
body.site.vs-legacy .item-content img,
body.site.vs-legacy .mod-articles img {
  max-width: 100% !important;
  height: auto !important;
}

body.site.vs-legacy .vs-content-shell iframe,
body.site.vs-legacy .vs-content-shell video,
body.site.vs-legacy .vs-content-shell table,
body.site.vs-legacy .vs-content-shell .table {
  max-width: 100%;
}

/* Mobile header – hidden on desktop */
body.site.vs-legacy .vs-mobile-header,
body.site.vs-legacy .vs-mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  body.site.vs-legacy {
    padding-top: 80px;
    background: var(--vs-white) !important;
  }

  body.site.vs-legacy .vs-desktop-only {
    display: none !important;
  }

  body.site.vs-legacy .vs-mobile-header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    height: 80px;
    background: var(--vs-white);
    box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.1);
  }

  body.site.vs-legacy .vs-menu-toggle {
    position: absolute;
    top: 23px;
    left: 10px;
    width: 36px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 10001;
  }

  body.site.vs-legacy .vs-menu-toggle-bar {
    display: block;
    width: 24px;
    height: 3px;
    margin: 4px auto;
    background: #000;
    border-radius: 1px;
    transition: background 0.2s;
  }

  body.site.vs-legacy .vs-menu-toggle.is-open .vs-menu-toggle-bar {
    background: var(--vs-white);
  }

  body.site.vs-legacy .vs-mobile-logo {
    position: absolute;
    top: 20px;
    left: 70px;
    z-index: 1000;
    display: block;
    width: calc(100% - 190px);
    max-width: 200px;
  }

  body.site.vs-legacy .vs-mobile-logo img {
    width: 100%;
    max-height: 50px;
    height: auto;
    object-fit: contain;
    object-position: left center;
  }

  body.site.vs-legacy .vs-mobile-eshop {
    position: absolute;
    top: 21px;
    right: 10px;
    z-index: 10001;
    display: block;
    line-height: 0;
  }

  body.site.vs-legacy .vs-mobile-eshop img {
    width: 100px;
    height: auto;
  }

  body.site.vs-legacy .vs-mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: var(--vs-white);
    text-align: center;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
  }

  body.site.vs-legacy .vs-mobile-menu.active {
    transform: translateY(0);
  }

  body.site.vs-legacy .vs-mobile-menu ul {
    list-style: none;
    padding: 90px 0 2rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  body.site.vs-legacy .vs-mobile-menu ul li {
    margin: 15px 0;
    width: 100%;
  }

  body.site.vs-legacy .vs-mobile-menu ul li a {
    color: var(--vs-white) !important;
    text-decoration: none;
    font-size: 1.5em;
    display: block;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    text-transform: uppercase;
  }

  body.site.vs-legacy .vs-mobile-menu ul li a:hover {
    color: #ffdd57 !important;
    background: rgba(255, 255, 255, 0.1);
  }

  body.site.vs-legacy .vs-page-wrap {
    max-width: 100%;
    margin-top: 0;
    padding: 0;
    background: var(--vs-white);
  }

  body.site.vs-legacy .vs-content-shell {
    padding: 8px 15px 16px;
    min-height: calc(100vh - 80px);
  }

  body.site.vs-legacy .vs-copyright-bar {
    display: none;
  }

  body.site.vs-legacy .site-grid .container-sidebar-left {
    display: none;
  }

  body.site.vs-legacy .site-grid {
    background: var(--vs-white);
  }

  body.site.vs-legacy h1,
  body.site.vs-legacy h2,
  body.site.vs-legacy h3,
  body.site.vs-legacy .page-header,
  body.site.vs-legacy .item-title,
  body.site.vs-legacy .item-title a,
  body.site.vs-legacy .contentheading,
  body.site.vs-legacy .componentheading,
  body.site.vs-legacy .blog-item h2,
  body.site.vs-legacy .article-list h2 {
    text-align: center;
  }
}

@media (max-width: 991px) and (min-width: 769px) {
  body.site.vs-legacy .vs-header-brand {
    flex-direction: column;
    align-items: stretch;
  }

  body.site.vs-legacy .vs-header-search {
    margin-left: 0;
    width: 100%;
    min-width: 0;
  }

  body.site.vs-legacy .site-grid {
    display: block;
  }

  body.site.vs-legacy .site-grid .container-sidebar-left {
    width: 100%;
    flex: none;
    padding-right: 0;
    margin-bottom: 1rem;
  }

  body.site.vs-legacy .vs-nav-bar {
    overflow-x: auto;
  }

  body.site.vs-legacy .container-nav {
    flex-direction: column;
    align-items: stretch;
  }

  body.site.vs-legacy .container-search {
    margin-left: 0;
    width: 100%;
  }
}
