@charset "utf-8";
* {
  padding: 0;
  margin: 0;
}
body {
  background-color: #b9d3ee;
  font-size: 12pt;
  text-align: justify;
  font-family: Arial;
  -webkit-text-size-adjust: none;
  -ms-text-size-adjust: none;
}
.stranka {
  width: 960px;
  margin: auto;
  margin-top: 10px;
  background: white;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  border-radius: 20px;
  -webkit-box-shadow: 0px 0px 30px 0px rgba(50, 50, 50, 0.8);
  -moz-box-shadow: 0px 0px 30px 0px rgba(50, 50, 50, 0.8);
  box-shadow: 0px 0px 30px 0px rgba(50, 50, 50, 0.8);
}
.head {
  position: absolute;
  top: 10px;
  width: 960px;
  height: 300px;
  background-color: #000080;
  -moz-border-radius-topleft: 20px;
  -webkit-border-top-left-radius: 20px;
  border-top-left-radius: 20px;
  -moz-border-radius-topright: 20px;
  -webkit-border-top-right-radius: 20px;
  border-top-right-radius: 20px;
}
.head h1 {
  text-align: center;
  font-size: 40px;
  font-variant: small-caps;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin-top: 18px;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.head h1 .amp {
  display: block;
  font-size: 0.45em;
  font-weight: normal;
  line-height: 1;
  margin: 0;
}
.head h1 a {
  color: inherit;
  text-decoration: none;
}
.head h1 a:hover {
  color: inherit;
}
/* Desktop: vertically center the title in the header area above the nav */
@media (min-width: 980px) {
  .head h1 {
    margin-top: 0;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}
.head nav {
  display: inline;
  position: absolute;
  bottom: 20px;
  margin: auto;
  margin-left: -3px;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}



.content h2 {
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.content a h2, .content .aktuality h2 {
    margin-top: 0;
    margin-bottom: 0;
}



.content h3 {
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.tlacitko {
  width: 90px;
  height: 100px;
  float: left;
  background: inherit;
  cursor: pointer;
  margin-left: 6px;
}
.head nav .ikona {
  width: 60px;
  height: 60px;
  background: inherit;
  margin: 13px;
  margin-bottom: 0px;
  text-align: center;
  line-height: 60px;
  font-size: 2.5em;
  text-transform: uppercase;
  border: solid 2px white;
  text-shadow: -1px -1px 0 #ffffff, 1px -1px 0 #ffffff, -1px 1px 0 #ffffff,
    1px 1px 0 #ffffff;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}
.head nav .odkaz {
  width: 90px;
  height: 25px;
  text-align: center;
  line-height: 25px;
  font-size: 0.8em;
  text-transform: uppercase;
  background: inherit;
  color: white;
}
.head nav .tlacitko:hover {
  background: #0066ff;
  -moz-border-radius-topleft: 10px;
  -webkit-border-top-left-radius: 10px;
  border-top-left-radius: 10px;
  -moz-border-radius-topright: 10px;
  -webkit-border-top-right-radius: 10px;
  border-top-right-radius: 10px;
  -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.8);
  -moz-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.8);
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.8);
}
.head .line {
  height: 20px;
  width: 100%;
  background: #0066ff;
  position: absolute;
  bottom: 0px;
}
.head .aktivni {
  width: 90px;
  height: 100px;
  float: left;
  cursor: pointer;
  margin-left: 6px;
  background: #0066ff;
  -moz-border-radius-topleft: 10px;
  -webkit-border-top-left-radius: 10px;
  border-top-left-radius: 10px;
  -moz-border-radius-topright: 10px;
  -webkit-border-top-right-radius: 10px;
  border-top-right-radius: 10px;
  -webkit-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.8);
  -moz-box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.8);
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.8);
}
.paticka {
  clear: both;
  width: 960px;
  background: #000080;
  color: #ffffff;
  margin-bottom: 10px;
  border-top: 4px solid #0066ff;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  overflow: hidden;
}
.paticka-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 25px 40px 20px 40px;
  text-align: left;
}
.paticka-sloupec {
  flex: 1;
}
.paticka-sloupec h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b9d3ee;
  margin-bottom: 10px;
  border-bottom: 1px solid #0066ff;
  padding-bottom: 6px;
}
.paticka-sloupec p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  color: #e6eefb;
}
.paticka-sloupec a {
  color: #ffffff;
  text-decoration: none;
}
.paticka-sloupec a:hover {
  text-decoration: underline;
}
.paticka-social,
.paticka-odkazy {
  list-style: none;
  margin: 0;
  padding: 0;
}
.paticka-social li,
.paticka-odkazy li {
  list-style: none;
  margin: 8px 0;
}
.paticka-social a,
.paticka-odkazy a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #e6eefb;
}
.paticka-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}
.paticka-social a:hover,
.paticka-odkazy a:hover {
  color: #ffffff;
}
.paticka-copy {
  background: #000060;
  text-align: center;
  font-size: 12px;
  color: #b9d3ee;
  padding: 12px;
}
.panel {
  display: inline;
  position: relative;
  float: right;
  width: 200px;
  margin-top: 310px;
  text-align: center;
  margin-bottom: 25px;
}
a.tlacitkoPanel {
  text-decoration: none;
}
.tlacitkoPanel h2 {
  width: 150px;
  height: 40px;
  background-color: #007f00;
  cursor: pointer;
  margin-bottom: 10px;
  margin-left: 19px;
  line-height: 40px;
  border: solid 2px white;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  text-transform: uppercase;
  font-size: 18px;
  font-weight: normal;
  -webkit-box-shadow: 0px 0px 15px 0px rgba(50, 50, 50, 0.8);
  -moz-box-shadow: 0px 0px 15px 0px rgba(50, 50, 50, 0.8);
  box-shadow: 0px 0px 15px 0px rgba(50, 50, 50, 0.8);
  color: white;
}
.tlacitkoPanel h2:hover {
  background-color: #66cd00;
}
h2.panel-a {
  font-size: 20px;
  margin: 0px;
  margin-left: -13px;
  margin-top: 10px;
}
h2.panel {
  font-size: 18px;
  margin: 0px;
  margin-left: -13px;
}
.akce {
  border: solid 2px black;
  margin-top: 10px;
  margin-right: 10px;
  margin-left: -5px;
  padding: 5px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  background-color: #66cd00;
}
.akce a {
  font-style: normal;
  color: black;
  font-size: 13pt;
  font-weight: bold;
}
h3.panel {
  font-size: 12px;
  margin-top: 10px;
  margin-left: -13px;
}
img.panel {
  margin-right: 10px;
  margin-top: -40px;
  margin-bottom: 20px;
}
img.repre {
  margin-right: 10px;
}
.panel-fotka {
  margin-bottom: 10px;
  padding-right: 9px;
}
.content {
  width: 720px;
  min-height: 800px;
  background-color: white;
  float: left;
  margin-top: 310px;
  margin-bottom: 20px;
  font-family: Verdana, Geneva, sans-serif;
  padding-left: 20px;
}
.siroky {
  width: 920px;
  min-height: 800px;
  float: left;
  background-color: white;
  margin-top: 285px;
  margin-bottom: 20px;
  font-family: Verdana, Geneva, sans-serif;
  padding: 20px;
}
h2.content {
  text-align: center;
}
.content .vyrazny {
  font-style: normal;
  color: #0066ff;
  font-size: 13pt;
  font-weight: bold;
}
.content .dulezite {
  font-weight: bold;
  margin: 0px;
}
.content ul,
.content ol {
  margin: 16px 0;
  padding-left: 1.5em;
}
.content ul {
  list-style-type: disc;
}
.content ol {
  list-style-type: decimal;
}
.content li {
  margin: 6px 0;
  line-height: 1.5em;
}
.content ul ul,
.content ol ol,
.content ul ol,
.content ol ul {
  margin: 6px 0;
}
.content p {
  font-size: 16px;
  line-height: 24px;
  margin-top: 20px;
}
.content a {
  font-style: normal;
  color: black;
  font-size: 13pt;
  font-weight: bold;
}
.content a:hover {
  color: #7a7a7a;
}
.content h2 {
  text-align: center;
  color: black;
  background-color: white;
}
.aktuality-repre {
  border: solid 2px black;
  margin-bottom: 15px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}
.aktuality-repre h1 {
  margin-top: 0;
  padding: 4px;
  padding-left: 7px;
  background-color: #66cd00;
  font-size: 16px;
  -webkit-border-top-left-radius: 9px;
  -webkit-border-top-right-radius: 9px;
  -moz-border-radius-topleft: 9px;
  -moz-border-radius-topright: 9px;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
}
.aktuality-repre p {
  padding-left: 12px;
  padding-right: 12px;
  padding-bottom: 7px;
  margin-bottom: 5px;
  font-size: 1em;
  line-height: 1.35em;
}
.aktuality-repre h2 {
  padding: 3px;
  font-size: 0.8em;
  margin-left: 9px;
  text-align: left;
}
div.vysledky {
  text-align: center;
}
.fotky h1 {
  margin-left: 26px;
  font-size: 28px;
}
.fotky h2 {
  text-align: center;
  font-size: 22px;
}
.fotky article {
  width: 150px;
  height: 180px;
  margin-left: 25px;
  margin-top: 20px;
  margin-bottom: 20px;
  border: solid 2px black;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  position: relative;
  display: inline-block;
  text-align: center;
}
.fotky img {
  margin-top: 15px;
  font-size: 12px;
}
.fotky h3 {
  text-transform: uppercase;
  text-decoration: underline;
  font-size: 14px;
  width: 150px;
  line-height: 32px;
  text-align: center;
  position: absolute;
  bottom: 0px;
  color: black;
  cursor: pointer;
  background-color: #66cd00;
  -webkit-border-bottom-left-radius: 9px;
  -webkit-border-bottom-right-radius: 9px;
  -moz-border-radius-bottomleft: 9px;
  -moz-border-radius-bottomright: 9px;
  border-bottom-left-radius: 9px;
  border-bottom-right-radius: 9px;
}
.fotky h3:hover {
  color: white;
}
.sponzori {
  display: inline-block;
  text-align: center;
}
.sponzori article {
  margin-top: 10px;
  width: 300px;
  display: inline-block;
}
.sponzori a {
  color: #0066ff;
  font-weight: bold;
  font-size: 20px;
}
.sponzori p {
  margin-top: 5px;
}

a.vysledky {
  color: black;
  font-size: 25px;
  margin: 20px;
  padding-bottom: 20px;
}
table.druzstva td,
table.parak td {
  min-width: 70px;
  height: 30px;
  text-align: center;
}
table.druzstva th,
table.parak th {
  width: 70px;
  height: 30px;
  text-align: center;
}
caption {
  font-weight: bold;
}
table.parak {
  width: 100%;
}
h1 {
  font-size: 26px;
  text-align: center;
  margin-bottom: 10px;
  margin-top: 10px;
}
.aktuality {
  border: solid 2px black;
  margin-bottom: 15px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}
.aktuality h1 {
  text-align: left;
  margin-bottom: 0px;
  margin-top: 0px;
  padding: 4px;
  padding-left: 7px;
  background-color: #66cd00;
  font-size: 16px;
  -webkit-border-top-left-radius: 7px;
  -webkit-border-top-right-radius: 7px;
  -moz-border-radius-topleft: 7px;
  -moz-border-radius-topright: 7px;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
}
.aktuality h1.skolni {
  background-color: #66cd00;
}
.aktuality h1.mezinarodni {
  background-color: #0066ff;
}
.aktuality h1.klub {
  background-color: #ff8100;
}
.aktuality h1.republikove {
  background-color: #ffff00;
}
.aktuality h1.aktualita {
  background-color: red;
}
.aktuality h2 {
  padding: 3px;
  font-size: 10px;
  margin-right: 5px;
  margin-left: 5px;
  text-align: right;
}
.aktuality p {
  padding: 12px;
  padding-bottom: 0px;
  padding-top: 0px;
  font-size: 1em;
  line-height: 1.35em;
}
.aktuality a {
  font-style: normal;
  color: black;
  font-size: 13pt;
  font-weight: bold;
}
.aktuality a:hover {
  color: #7a7a7a;
}
div.odkazy {
  text-align: center;
}
.odkazy article {
  width: 90%;
  margin-left: 6%;
  margin-bottom: 5px;
  height: 30px;
  border: solid 2px black;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  text-align: left;
  float: left;
  position: relative;
}
.odkazy article h1 {
  font-size: 14px;
  line-height: 30px;
  padding-left: 5px;
  float: left;
  margin-top: 0px;
}
.odkazy article h2 {
  float: right;
  font-size: 14px;
  line-height: 30px;
  text-align: center;
  color: black;
  width: 80px;
  background-color: #66cd00;
  -webkit-border-top-right-radius: 9px;
  -webkit-border-bottom-right-radius: 9px;
  -moz-border-radius-topright: 9px;
  -moz-border-radius-bottomright: 9px;
  border-top-right-radius: 9px;
  border-bottom-right-radius: 9px;
}
.odkazy article h2:hover {
  color: white;
}
/* New semantic styling for result links */
.result-link {
  width: 90%;
  margin-left: 6%;
  margin-bottom: 5px;
  height: 30px;
  border: solid 2px black;
  border-radius: 10px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.result-link-text {
  font-size: 14px;
  font-weight: bold;
  line-height: 30px;
  padding-left: 5px;
  flex: 1;
}
.result-link-btn {
  display: block;
  font-size: 14px;
  font-weight: bold;
  line-height: 30px;
  text-align: center;
  text-decoration: none;
  color: black;
  width: 80px;
  background-color: #66cd00;
  border-top-right-radius: 9px;
  border-bottom-right-radius: 9px;
}
.result-link-btn:hover {
  color: white;
}
.zabava article {
  margin-left: 60px;
  margin-bottom: 30px;
  text-align: center;
  width: 800px;
  border: solid 2px black;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}
.zabava h1 {
  font-size: 22px;
  line-height: 31px;
  padding-left: 10px;
  margin-top: 0px;
  margin-bottom: 15px;
  background-color: #66cd00;
  -webkit-border-top-left-radius: 9px;
  -webkit-border-top-right-radius: 9px;
  -moz-border-radius-topleft: 9px;
  -moz-border-radius-topright: 9px;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
}
.zabava a {
  color: black;
  font-weight: bold;
}
.zabava p {
  padding: 10px;
  font-size: 17px;
}
h1.content {
  margin: 0;
  min-height: 30px;
  width: 100%;
  clear: both;
}
h2.content {
  margin: 0;
  min-height: 30px;
  width: 100%;
  clear: left;
}
pre {
  float: left;
}
h2.aktivniPanel {
  background-color: #66cd00;
}
.lekceOdkaz {
  width: 736px;
  margin-bottom: 5px;
  height: 30px;
  border: solid 2px black;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  text-align: left;
  float: left;
  position: relative;
}
.lekceOdkaz span {
  font-weight: bold;
  font-size: 14px;
  line-height: 30px;
  margin-top: 0px;
}
.lekceOdkazNazev {
  padding-left: 10px;
}
.lekceOdkazDrazba {
  width: 80px;
  float: right;
  font-size: 14px;
  line-height: 30px;
  text-align: center;
  color: black;
  background-color: #66cd00;
}
.lekceOdkazDrazba:hover {
  color: white;
}
.lekceOdkazReseni {
  width: 80px;
  float: right;
  font-size: 14px;
  line-height: 30px;
  text-align: center;
  color: black;
  background-color: #66cd00;
}
.lekceOdkazReseni:hover {
  color: white;
}
.lekceOdkazVideo {
  width: 80px;
  float: right;
  font-size: 14px;
  line-height: 30px;
  text-align: center;
  color: black;
  background-color: #66cd00;
  -webkit-border-top-right-radius: 9px;
  -webkit-border-bottom-right-radius: 9px;
  -moz-border-radius-topright: 9px;
  -moz-border-radius-bottomright: 9px;
  border-top-right-radius: 9px;
  border-bottom-right-radius: 9px;
}
.lekceOdkazVideo:hover {
  color: white;
}
.pagination {
  text-align: center;
  margin: 20px 0;
  padding: 10px;
}
.pagination a {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 5px;
  border: 2px solid black;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  color: black;
  background-color: #66cd00;
}
.pagination a:hover {
  background-color: #7fff00;
  color: black;
}
.pagination .page-info {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 5px;
  font-size: 14px;
  font-weight: bold;
  color: black;
}

/* =========================================================
   Responsive — iteration 1: navigation + home page
   Desktop (>= 980px) is intentionally left unchanged.
   ========================================================= */

/* Nav tiles are now <a> links */
.head nav .tlacitko,
.head nav .aktivni {
  display: block;
  color: #000000;
  text-decoration: none;
}

/* Hamburger controls hidden on desktop */
.nav-toggle,
.nav-toggle-btn {
  display: none;
}

/* ---- Tablet and below: fluid width, header in normal flow ---- */
@media (max-width: 979px) {
  .stranka,
  .content,
  .siroky,
  .panel,
  .paticka {
    box-sizing: border-box;
  }
  .stranka {
    width: auto;
    max-width: 960px;
    margin: 10px 8px;
  }
  .head {
    position: static;
    width: auto;
    height: auto;
  }
  .head h1 {
    font-size: 30px;
    margin-top: 0;
    padding: 20px 15px;
  }
  .head nav {
    position: static;
    bottom: auto;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .head .line {
    position: static;
    width: 100%;
  }
  .content,
  .siroky {
    width: auto;
    float: none;
    margin-top: 0;
  }
  .content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .panel {
    float: none;
    width: auto;
    margin-top: 20px;
  }
  .paticka {
    width: auto;
  }
  .content img,
  .aktuality img,
  .aktuality-repre img {
    max-width: 100%;
    height: auto;
  }
}

/* ---- Phone: collapse the tile row into a hamburger menu ---- */
@media (max-width: 600px) {
  .head {
    position: relative;
  }
  .head h1 {
    font-size: 20px;
    padding-right: 64px;
  }
  .nav-toggle {
    display: block;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
  }
  .nav-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    font-size: 24px;
    color: #ffffff;
    background: #0066ff;
    border: 2px solid #ffffff;
    border-radius: 10px;
    cursor: pointer;
    z-index: 3;
  }
  .nav-toggle:focus-visible + .nav-toggle-btn {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
  }
  .head nav {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
  }
  .nav-toggle:checked ~ nav {
    display: flex;
  }
  .head nav .tlacitko,
  .head nav .aktivni {
    float: none;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 8px 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .head nav .ikona {
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 1.4em;
    margin: 0;
    flex-shrink: 0;
  }
  .head nav .odkaz {
    width: auto;
    height: auto;
    line-height: 1.2;
    text-align: left;
  }
  .paticka-top {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }
}

/* ---- Home page (aktuality): mobile information architecture ----
   Scoped to .stranka-aktuality so other pages are unaffected.
   Dissolves .content/.panel into the .stranka flex column so news
   items and sidebar blocks can be interleaved with `order`. */
@media (max-width: 979px) {
  .stranka-aktuality {
    display: flex;
    flex-direction: column;
  }
  .stranka-aktuality > .head {
    order: 0;
  }
  .stranka-aktuality > .content,
  .stranka-aktuality > .panel {
    display: contents;
  }
  .stranka-aktuality > .paticka {
    order: 100;
  }

  /* order the interleaved blocks */
  .stranka-aktuality .panel-actions {
    order: 10;
  }
  .stranka-aktuality .content > :nth-child(1) {
    order: 20;
  }
  .stranka-aktuality .content > .aktuality:nth-child(2),
  .stranka-aktuality .content > .aktuality:nth-child(3) {
    order: 21;
  }
  .stranka-aktuality .panel-akce {
    order: 23;
  }
  .stranka-aktuality .content > :nth-child(n + 4) {
    order: 25;
  }
  .stranka-aktuality .panel-links {
    order: 30;
  }

  /* spacing + proper layout of the stacked blocks */
  .stranka-aktuality .content > *,
  .stranka-aktuality .panel-actions,
  .stranka-aktuality .panel-akce,
  .stranka-aktuality .panel-links {
    margin-left: 12px;
    margin-right: 12px;
  }
  .stranka-aktuality .panel-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
  }
  .stranka-aktuality .panel-actions .tlacitkoPanel h2 {
    margin: 0;
  }
  .stranka-aktuality .panel-akce {
    margin-top: 8px;
  }
  .stranka-aktuality .panel-akce .panel-a,
  .stranka-aktuality .panel-links .panel-a {
    text-align: center;
    margin-left: 0;
  }
  .stranka-aktuality .panel-akce .akce {
    margin-left: 0;
    margin-right: 0;
  }
  .stranka-aktuality .panel-links {
    text-align: center;
    margin-top: 20px;
  }
  .stranka-aktuality .panel-links .tlacitkoPanel h2 {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---- Generic sidebar panel on stacked (mobile/tablet) layouts ----
   On non-home pages the panel follows the content. Fix its inline
   display (was left as display:inline) and lay its buttons/images out
   centered and full width instead of the narrow desktop column. */
@media (max-width: 979px) {
  .content,
  .siroky {
    min-height: 0;
  }
  .panel {
    display: block;
    float: none;
    width: auto;
    margin-top: 20px;
    text-align: center;
  }
  .panel .tlacitkoPanel h2,
  .panel h2.panel-a,
  .panel h2.panel,
  .panel h3.panel {
    margin-left: auto;
    margin-right: auto;
  }
  .panel .akce {
    margin-left: 0;
    margin-right: 0;
  }
  .panel img,
  .panel .panel-fotka {
    display: block;
    float: none;
    margin: 10px auto;
    max-width: 100%;
    height: auto;
  }
}

/* ---- Phone: full-bleed layout, reclaim the horizontal gutters ---- */
@media (max-width: 600px) {
  .stranka {
    margin: 0;
    max-width: none;
    border-radius: 0;
  }
  .head {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  .paticka {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
  }
}

/* ---- Spacing fixes for stacked panels (mobile/tablet) ---- */
@media (max-width: 979px) {
  /* drop the ad-hoc <br> spacers so button spacing is even */
  .panel br {
    display: none;
  }
  /* wider quick-link buttons that use the available width
     (home action-button row is left as its own flex layout) */
  .stranka:not(.stranka-aktuality) .panel .tlacitkoPanel h2,
  .stranka-aktuality .panel-links .tlacitkoPanel h2 {
    width: auto;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 12px;
  }
  /* clear separation between the interleaved home blocks */
  .stranka-aktuality .panel-akce {
    margin-top: 15px;
    margin-bottom: 15px;
  }
  .stranka-aktuality .panel-links {
    margin-top: 15px;
  }
  .stranka-aktuality .panel-akce .akce {
    margin-bottom: 12px;
  }
}

/* =========================================================
   Responsive fixes: top gap, nav overflow, section divider,
   heading spacing, Odkazy link wrapping
   ========================================================= */
.aktuality-divider {
  display: none; /* only shown on the stacked mobile layout */
}
@media (max-width: 979px) {
  /* headings need breathing room now that the <br> spacers are hidden */
  .panel h2.panel-a {
    margin-left: 0;
    margin-bottom: 14px;
  }
  /* visible division between "Nejbližší akce" and the resumed news */
  .stranka-aktuality .aktuality-divider {
    display: block;
    text-align: center;
    font-size: 22px;
    color: #000000;
    margin: 16px 12px 14px;
  }
  /* Odkazy page: let long link titles wrap instead of overflowing the box */
  .odkazy article {
    float: none;
    display: flex;
    align-items: stretch;
    width: auto;
    height: auto;
    min-height: 36px;
    margin: 0 8px 8px;
  }
  .odkazy article h1 {
    float: none;
    flex: 1;
    line-height: 1.3;
    padding: 8px;
    display: flex;
    align-items: center;
  }
  .odkazy article a {
    display: flex;
    flex-shrink: 0;
  }
  .odkazy article h2 {
    float: none;
    height: auto;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 600px) {
  /* remove the 10px offset that exposed a white strip above the header */
  .head {
    top: 0;
  }
  /* nav rows must include their padding in the width (was overflowing ~30px) */
  .head nav .tlacitko,
  .head nav .aktivni {
    box-sizing: border-box;
  }
  /* hide the blue accent bar while the dropdown menu is open */
  .nav-toggle:checked ~ .line {
    display: none;
  }
}

/* ---- More responsive fixes: action buttons, hr spacing, result-links ---- */
@media (max-width: 979px) {
  /* Home quick-actions and Klub sub-nav: render as a blue bar that
     continues the header accent stripe, links shown as pills — rather
     than oversized green buttons. */
  .stranka-aktuality > .head .line,
  .stranka:has(.panel-subnav-top) > .head .line {
    display: none;
  }
  .stranka-aktuality .panel-actions,
  .stranka:has(.panel-subnav-top) .panel-subnav-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px;
    background: #0066ff;
  }
  .stranka-aktuality .panel-actions .tlacitkoPanel,
  .stranka:has(.panel-subnav-top) .panel-subnav-top .tlacitkoPanel {
    display: inline-flex;
    width: auto;
  }
  .stranka-aktuality .panel-actions .tlacitkoPanel h2,
  .stranka:has(.panel-subnav-top) .panel-subnav-top .tlacitkoPanel h2 {
    width: auto;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 8px 18px;
    line-height: 1.2;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    box-shadow: none;
  }
  .stranka-aktuality .panel-actions .tlacitkoPanel h2:hover,
  .stranka:has(.panel-subnav-top) .panel-subnav-top .tlacitkoPanel h2:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  .stranka:has(.panel-subnav-top) .panel-subnav-top .tlacitkoPanel h2.aktivniPanel {
    background: #ffffff;
    color: #0066ff;
    border-color: #ffffff;
  }
  /* systematic: <hr> in panels lost the <br> that used to space it */
  .panel hr {
    margin: 16px 12px;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
  }
  /* DB-stored link rows (Síň slávy etc.): let long titles wrap instead
     of overflowing the fixed-height box */
  .result-link {
    height: auto;
    min-height: 36px;
    align-items: stretch;
  }
  .result-link-text {
    line-height: 1.3;
    padding: 8px;
    display: flex;
    align-items: center;
  }
  .result-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1.3;
  }
}

/* ---- Sub-navigation panels (e.g. Klub): lift the sub-nav above the
   content on the stacked layout. Opt in by wrapping the sub-nav buttons
   in .panel-subnav-top; any page then gets this ordering automatically. ---- */
@media (max-width: 979px) {
  .stranka:has(.panel-subnav-top) {
    display: flex;
    flex-direction: column;
  }
  .stranka:has(.panel-subnav-top) > .head {
    order: 0;
  }
  .stranka:has(.panel-subnav-top) > .panel {
    display: contents;
  }
  .stranka:has(.panel-subnav-top) > .panel > * {
    order: 3;
  }
  .stranka:has(.panel-subnav-top) > .panel > .panel-subnav-top {
    order: 1;
  }
  .stranka:has(.panel-subnav-top) > .content {
    order: 2;
  }
  .stranka:has(.panel-subnav-top) > .paticka {
    order: 4;
  }
}

/* ---- Desktop: give the section sub-navigation a distinct, more
   rectangular tab styling (vs the loose green action buttons) ---- */
@media (min-width: 980px) {
  .panel-subnav,
  .panel-tabs {
    margin-bottom: 14px;
  }
  /* same width/position as the green buttons so the column stays aligned;
     border-box keeps padding + border inside the 150px width */
  .panel-subnav .tlacitkoPanel h2,
  .panel-tabs .tlacitkoPanel h2 {
    box-sizing: border-box;
    width: 150px;
    height: auto;
    margin: 0 0 6px 19px;
    padding: 9px 8px;
    line-height: 1.2;
    font-size: 15px;
    border-radius: 6px;
    background: #ffffff;
    color: #0066ff;
    border: 2px solid #0066ff;
    box-shadow: none;
  }
  .panel-subnav .tlacitkoPanel h2:hover,
  .panel-tabs .tlacitkoPanel h2:hover {
    background: #e6eefb;
  }
  /* current section stands out as the solid one */
  .panel-subnav .tlacitkoPanel h2.aktivniPanel,
  .panel-tabs .tlacitkoPanel h2.aktivniPanel {
    background: #0066ff;
    color: #ffffff;
    border-color: #0066ff;
  }
}

/* ---- Phone: left-align body text (justify creates large word gaps
   on narrow screens). Explicitly centered elements keep their align. ---- */
@media (max-width: 600px) {
  body {
    text-align: left;
  }
}

/* ---- Phone/tablet: lekce lesson rows were fixed at 736px and overflowed.
   Make them fluid flex rows: title wraps on the left, action buttons on
   the right, consistent with the other link rows. ---- */
@media (max-width: 979px) {
  .lekceOdkaz {
    width: auto;
    height: auto;
    min-height: 40px;
    float: none;
    display: flex;
    align-items: stretch;
    margin: 0 0 8px;
  }
  .lekceOdkazNazev {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    line-height: 1.3;
  }
  .lekceOdkaz > a {
    display: flex;
    flex-shrink: 0;
  }
  .lekceOdkazVideo,
  .lekceOdkazDrazba,
  .lekceOdkazReseni {
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    line-height: 1.3;
  }
}

/* ---- Phone/tablet: left-align all link-row labels for consistency
   (.odkazy inherited center from its container; others were left) ---- */
@media (max-width: 979px) {
  .odkazy article h1,
  .result-link-text,
  .lekceOdkazNazev {
    text-align: left;
    justify-content: flex-start;
    /* let flex labels shrink and wrap long titles instead of pushing
       the action button off-screen */
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

/* ---- Face cards (repre reps / habra coaches) ---- */
.tvar {
  text-align: center;
}
.tvar img.repre {
  margin: 0;
}
/* Two-column grid of faces on phone/tablet (sidebar is too narrow on desktop) */
@media (max-width: 979px) {
  .tvary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
    justify-items: center;
  }
  .tvary > h2,
  .tvary > h3 {
    grid-column: 1 / -1;
    text-align: center;
  }
  .tvar img.repre {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }
  .tvar .jmeno {
    margin-top: 4px;
  }
}

/* ---- Desktop: tidier, more evenly spaced home sidebar ---- */
@media (min-width: 980px) {
  /* center the action / quick-link buttons in the sidebar column */
  .stranka-aktuality .panel-actions .tlacitkoPanel h2,
  .stranka-aktuality .panel-links .tlacitkoPanel h2 {
    margin: 0 auto 10px;
  }
  /* clear separation between the sidebar's sections */
  .stranka-aktuality .panel-akce,
  .stranka-aktuality .panel-links {
    margin-top: 26px;
  }
  /* section headings: centered, with breathing room below */
  .stranka-aktuality .panel-a {
    margin: 0 0 14px;
  }
  /* event cards: symmetric margins and an even gap between them */
  .stranka-aktuality .akce {
    margin: 0 4px 12px;
  }
}

/* ---- Phone/tablet: photo-album gallery as a responsive grid instead of
   a single narrow column with wasted space ---- */
@media (max-width: 979px) {
  .fotky {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    align-items: start;
    justify-items: center;
  }
  .fotky h1,
  .fotky h2 {
    grid-column: 1 / -1;
    margin-left: 0;
    text-align: center;
  }
  .fotky article {
    margin: 0;
  }
}

/* ---- Phone/tablet: breathing room above the content heading and before
   the footer (both felt crammed on the stacked layout) ---- */
@media (max-width: 979px) {
  .content {
    padding-top: 16px;
  }
  .paticka {
    margin-top: 22px;
  }
}

/* ---- Phone: tighter horizontal gutters so text gets more width ---- */
@media (max-width: 600px) {
  .content {
    padding-left: 8px;
    padding-right: 8px;
  }
  .aktuality p,
  .aktuality-repre p {
    padding-left: 8px;
    padding-right: 8px;
  }
  .aktuality-repre h1,
  .aktuality h1 {
    padding-left: 8px;
  }
}

/* ---- Repre-archive boxes contain real <p> paragraphs (CMS), which
   picked up the long-form ".content p { margin-top:20px }" spacing and
   left a gap under the coloured title bar. Tighten it here only; the
   Aktuality boxes and long-form article pages keep the roomier rhythm. ---- */
.aktuality-repre p {
  margin-top: 12px;
}
.aktuality-repre .payload-richtext > :first-child {
  margin-top: 0;
}
.aktuality-repre .payload-richtext > :last-child {
  margin-bottom: 0;
}
