/* =========================================================
   ZÁKLAD STRÁNKY
   ========================================================= */

html{
  scroll-behavior: smooth;
}

body {

  margin: 0;
  font-family: "Nunito Sans", Arial, sans-serif;
  background: #e8f3c8;
}

/* hlavní vnitřní blok */
.shell {
  max-width: 1100px;
  margin: 20px auto 40px;
  padding: 0;                 /* bez vnitřního okraje */
  border-radius: 18px;        /* kulaté rohy */
  overflow: hidden;           /* vše uvnitřfre drží rohy */
  background: #ffffff;        /* bílá karta */
  box-shadow: 0 14px rgba(0,0,0,.12);
}

/* BÍLÝ OBSAHOVÝ BLOK */
.content {
  background: transparent;    /* bílá je už na .shell */
  margin: 0;
  padding: 26px 20px 36px;
  min-height: 400px;
  border-radius: 0;           /* rohy řeší shell */
}

.turnaje-title {
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  margin: 16px 0 12px;
  padding: 0;
  text-transform: uppercase;
  color: #333;
}

.turnaje-subtitle {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #333;
}

/* HLAVNÍ PRUHY NAD SEKCEMI */
.section-title{
  margin: 24px auto 12px;
  max-width: 760px;
  background: #173554;
  color: #ffffff;              /* ✅ bílé písmo */
  text-align: center;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}


/* Vyhlášení výsledků – poslední odstavec na střed */
.content p:last-child {
  text-align: center;
  font-weight: 700;
}

/* =========================================================
   HEADER – LOGO + MENU
   ========================================================= */

.turnaje-header {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* LOGO jako banner přes celý rámec */
.logo-line{
  position: relative;
  display:block;
  padding: 0;
  margin: 0;
  background: #fff;
}

.logo-line a{
  display:block;
  width:100%;
  max-width: none;       /* ✅ zrušit limit 980px */
}

.logo-turnaje{
  display:block;
  width:100%;
  height:auto;
  max-height: none;      /* ✅ zrušit strop */
  object-fit: cover;     /* ✅ vyplní šířku */
}

.turnaje-header{
  background:#fff;
}

.logo-turnaje{
  width: 100%;
  aspect-ratio: 4.5 / 1;
  object-fit: cover;
  object-position: center;
}



.turnaje-header nav {
  background: #173554;
  margin: 0;
  padding: 0;
  line-height: 1;
  z-index: 50;
  border-radius: 0;
}

.nav-main {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-main > li {
  position: relative;
}

/* MENŠÍ MENU – text i červený rámeček */
.nav-main > li > a {
  display: block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-main > li > a:hover {
  background: rgba(255,255,255,0.18);
}

/* SUBMENU */
.nav-main > li .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0b1f33;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-width: 190px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 100;
}

.nav-main > li .submenu li {
  margin: 0;
  width: 100%;
}

.nav-main > li .submenu a {
  display: block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.nav-main > li .submenu a:hover {
  background: rgba(255,255,255,0.18);
}

.nav-main > li.has-submenu:hover > .submenu {
  display: block;
}

/* =========================================================
   FOOTER
   ========================================================= */

.turnaje-footer{
  background: #3a3a3a;
  color: #fff;
  text-align: center;
  padding: 18px 14px;
  border-radius: 0;
  margin-top: 40px;
}

.turnaje-footer p{
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.5px;
  font-weight: 700;
  opacity: 0.95;
}


/* =========================================================
   ROZPIS + ONLINE VÝSLEDKY
   ========================================================= */

.schedule {
  margin: 20px auto;
  padding: 16px 14px;
  background: #f6fbf6;
  border-radius: 14px;
  border: 1px solid #d2e8d2;
  max-width: 760px;
}

.schedule h2,
.schedule h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  color: #0b1f33;
}

.games {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.game {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px 8px 80px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #dde8dd;
  font-weight: 700;
}

/* štítek SKUPINY – šedá */
.game[data-group]::before {
  content: "Sk. " attr(data-group);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 800;
  color: #333;
  background: #fff;
  border: 1px solid #d2e8d2;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* štítky vlevo u PLAY-OFF (např. "O 3. místo") */
.game[data-label]::before {
  content: attr(data-label);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 800;
  color: #333;
  background: #ffffff;
  border: 1px solid #d2e8d2;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.time {
  font-size: 13px;
  color: #555;
}

.teams-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* TÝMY V ROZPISU – menší písmo */
.teams-line span {
  font-size: 13px;
  font-weight: 900;
  color: #222;
}

.teams-line .vs {
  opacity: .5;
}

.score {
  text-align: right;
  font-weight: 900;
  font-size: 15px;
  color: #b5151c;
}

.logo-sm {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #dde8dd;
}

/* VÍTĚZ / PORAŽENÝ V PLAY-OFF */
.game .turnaje-winner {
  font-weight: 900;
}

.game .turnaje-loser {
  font-weight: 400;
}

/* čas poslední aktualizace výsledků */
.results-time {
  text-align: center;
  margin-top: 10px;
  font-weight: 700;
}

/* =========================================================
   TABULKY – MODRÉ POZADÍ, ŽLUTÝ TEXT HLAVIČKY
   ========================================================= */

.results-wrap {
  margin: 24px auto;
  max-width: 760px;
  overflow-x: auto;
}

/* NADPISY NAD TABULKAMI (TABULKA – SKUPINA A/B) → bez pozadí */
.results-wrap h2,
.results-wrap h3{
  margin: 18px 0 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  color: #111;                 /* ✅ černý text */
  background: transparent;     /* ✅ bez pozadí */
  padding: 0;
  border: 0;
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: .05em;
}


/* samotná tabulka */
.results-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fbff;
  border: 1px solid #cfe0f5;
}

/* HLAVIČKA TABULKY */
.results-table thead {
  background: #173554;
}

.results-table th {
  padding: 7px 8px;
  font-size: 13px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.04em;
}

/* buňky tabulky */
.results-table td {
  padding: 6px 8px;
  font-size: 13px;
  text-align: center;
  border-bottom: 1px solid #dbe7f6;
  color: #173554;
}

/* řádky */
.results-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.results-table tbody tr:nth-child(even) {
  background: #f2f7ff;
}

/* sloupec TÝM */
.results-table td.team {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
  color: #173554;
}

.results-table img.team-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cfe0f5;
}

/* NADPIS NAD TABULKOU (TABULKA – SKUPINA A/B) → bez pozadí */
.table-title{
  margin: 18px 0 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  color: #111;
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: .05em;
}


/* =========================================================
   CELKOVÉ POŘADÍ – 1.–10. MÍSTO
   ========================================================= */

.overall-order {
  max-width: 760px;
  margin: 10px auto 0;
  padding: 0;
  list-style: none;
  border: 1px solid #d2e8d2;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fbf8;
}

.overall-order li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid #dde8dd;
  font-size: 13px;
}

.overall-order li:nth-child(odd) {
  background: #ffffff;
}

.overall-order li:nth-child(even) {
  background: #f4faf4;
}

/* pořadí + medaile */
.overall-pos {
  width: 40px;
  position: relative;
  padding-left: 26px;
  display: inline-block;
  text-align: right;
  font-weight: 900;
  color: #b5151c;
}

.overall-pos::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-size: 20px 20px;
  background-repeat: no-repeat;
}

.overall-order li:nth-child(1) .overall-pos::before { background-image: url("/turnaje/loga/zlato.svg"); }
.overall-order li:nth-child(2) .overall-pos::before { background-image: url("/turnaje/loga/stribro.svg"); }
.overall-order li:nth-child(3) .overall-pos::before { background-image: url("/turnaje/loga/bronz.svg"); }

.overall-team {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #222;
}

.overall-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 1px solid #dde8dd;
}

/* =========================================================
   RESPONSIVITA
   ========================================================= */

@media (max-width: 600px) {
  .shell{ margin: 12px auto 28px; padding: 0; }
  .content{ padding: 18px 14px 26px; }

  .game {
    grid-template-columns: 60px 1fr 55px;
    padding-left: 74px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .score {
    font-size: 14px;
  }

  .results-table th,
  .results-table td {
    font-size: 12px;
    padding: 5px 6px;
  }

  .results-table td.team {
    font-size: 12px;
  }
}

/* ===== MOBILNÍ MENU turnaje ===== */

.menu-toggle {
  display: none;
  background: #0b1f33;
  color: #ffffff;
  border: 0;
  width: 100%;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}

@media (max-width: 800px) {

  .turnaje-header nav {
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .turnaje-header .turnaje-nav.is-open .nav-main {
    display: flex;
  }

  .nav-main > li {
    width: 100%;
  }

  .nav-main > li > a {
    padding: 10px 16px;
    border-top: 1px solid rgba(255,255,255,0.25);
  }

  .nav-main > li .submenu {
    position: static;
    box-shadow: none;
    min-width: 0;
    padding: 0;
  }

  .nav-main > li.has-submenu > .submenu {
    display: none;
  }

  .nav-main > li.has-submenu.is-open > .submenu {
    display: block;
  }
}

/* MOBIL – logo jako banner přes celou šířku */
@media (max-width: 800px) {

  .turnaje-header{
    display: flex;
    flex-direction: column;
  }

  .logo-line{
    order: 1;
    width: 100%;
    padding: 6px 10px;
    margin: 0;
    display: flex;
    justify-content: center;
  }

  .logo-line a{
    display: block;
    width: 100%;
  }

  .logo-turnaje{
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 170px;   /* STROP i na mobilu */
    margin: 0;
    object-fit: contain;
  }

.turnaje-socials img{
  width: 13px !important;
  height: 13px !important;
}

.turnaje-socials{
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
}

.turnaje-socials a{
  display: inline-flex;
}

  .turnaje-header nav{
    order: 2;
    width: 100%;
  }

  .menu-toggle{
    text-align: center;
  }
}

/* =========================================================
   OPRAVA ZAROVNÁNÍ LOG A TÝMŮ V TABULCE
   ========================================================= */

.results-table tbody tr td:nth-child(2) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.results-table tbody tr td:nth-child(2) img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #dde8dd;
  display: block;
  flex-shrink: 0;
}

/* =========================================================
   Loga a názvy týmů v tabulkách - team-with-logo
   ========================================================= */

.results-table td .team-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.results-table td .team-with-logo img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #dde8dd;
  flex-shrink: 0;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.qr-print {
  width: 90px !important;
  height: 90px !important;
  object-fit: contain;
}

/* --- Fotky týmů --- */
.team-photos-heading {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 700;
}

.team-photos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.team-photo-card {
  flex: 1 1 160px;
  max-width: 200px;
  text-align: center;
}

.team-photo-card a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.team-photo-card img {
  width: 100%;
  height: auto;
  display: block;
}

.team-photo-card figcaption {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
}

/* --- Lightbox --- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  text-align: center;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  background: #000;
}

.lightbox-caption {
  margin-top: 8px;
  font-size: 14px;
  color: #fff;
}

.lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 32px;
  text-align: center;
  background: #fff;
}

@media (max-width: 600px) {
  .team-photo-card {
    flex: 1 1 calc(50% - 16px);
  }
}

.overall-order .photo-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  vertical-align: middle;
  opacity: 0.75;
  cursor: pointer;
  transition: 0.15s;
}

.team-photo-icon a img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
  object-fit: cover;
  border: 1px solid #ccc;
}

.gallery-box {
  text-align: center;
  margin: 28px 0 40px;
}

.gallery-link {
  display: inline-block;
  background: #b5151c;
  color: #fff;
  padding: 11px 26px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  transition: 0.2s;
}

.gallery-link:hover {
  background: #8e1016;
  transform: scale(1.03);
}

/* ============================================
   ROZPIS – 4 SLOUPCE (ÚZKÉ HŘIŠTĚ)
   ============================================ */

.game[data-has-pitch="1"]{
  grid-template-columns: 64px 32px 1fr 60px;
}

.game[data-has-pitch="1"] > .pitch{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 20px;
  flex: 0 0 32px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
  background: #e8f1ff;
}

/* =========================================================
   KOMPONENTY – záložky + termíny + karty (sdílené napříč stránkami)
   ========================================================= */

/* --- ZÁLOŽKY --- */
.turnaje-tabs{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 12px;
}

.turnaje-tabs a{
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid rgba(23,53,84,.22);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: .6px;
  background: #f7f9f3;
  color: #173554;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.turnaje-tabs a:hover{
  background: #ffd051;
  color: #173554;
  border-color: rgba(23,53,84,.35);
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
  transform: translateY(-1px);
}

/* --- TERMÍNY – sekce --- */
.terms{
  text-align: center;
  margin-top: 10px;
}

.terms h2{
  font-size: 22px;
  color: #173554;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.term-info{
  color: #475569;
  font-size: 15px;
  margin-bottom: 24px;
  font-style: italic;
}

.term-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
  justify-content: center;
}

/* --- KARTA (term-box) --- */
.term-box{
  background:#f1f5f9;
  border:1px solid rgba(23,53,84,.18);
  border-radius:18px;
  padding:22px 26px;
  text-align:center;
  box-shadow:0 10px 24px rgba(0,0,0,.08);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  flex:0 1 340px;
  max-width:360px;
  color:#173554;
}

@media (max-width: 768px){

  .term-box{
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
  }

}

.term-box:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(0,0,0,.12);
  border-color:rgba(255,208,81,.95);
}

.term-box h3{
  margin:0;
  font-size:20px;
  font-weight:900;
  color:#173554;
  line-height:1.25;
}

.term-box h3 .age{
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.term-box ul{
  list-style:none;
  margin:0;
  padding:0;
  width:100%;
}

.term-box li{
  margin:0;
  font-size:18px;
  font-weight:900;
  color:#173554;
}

.term-box li span.detail{
  display:block;
  margin-top:10px;
  font-size:14px;
  font-weight:800;
  color:#475569;
  line-height:1.45;
}

.term-box li span.free{
  font-weight:900;
  color:#b38f00;
}

.term-date-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  color:#173554;
  font-weight:900;
}

.term-date-link:hover{
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.term-ball{ font-size:18px; }

/* --- PŘIHLÁŠENÉ TÝMY (bubliny) – pokud chceš používat i jinde --- */
.month-title{
  font-size: 32px;
  font-weight: 900;
  text-align: center;
  margin: 45px 0 20px;
  color: #173554;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.month-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
  justify-content: center;
}

.team-bubble{
  background: #f1f5f9;
  border: 1px solid rgba(23,53,84,.18);
  border-radius: 18px;
  padding: 22px 26px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: auto;
  flex: 0 1 340px;
  max-width: 360px;
}

/* =========================================================
   #prihlasene-tymy – KOMPAKTNÍ VARIANTA (jen pro tuhle sekci)
   ========================================================= */

#prihlasene-tymy .month-title{
  font-size: 22px;
  margin: 26px 0 12px;
  letter-spacing: .6px;
}

#prihlasene-tymy .month-grid{
  gap: 16px;
  max-width: 1100px;
}

#prihlasene-tymy .team-bubble{
  padding: 16px 18px;
  gap: 8px;
  flex: 0 1 320px;
  max-width: 340px;
  border-radius: 16px;
}

#prihlasene-tymy .team-bubble h3{
  font-size: 18px;
}

#prihlasene-tymy .team-bubble .cat{
  font-size: 14px;
  margin-bottom: 2px;
}

#prihlasene-tymy .team-bubble .cap{
  font-size: 13px;
  margin-bottom: 6px;
}

#prihlasene-tymy .team-bubble ul{
  font-size: 14px;
  line-height: 1.45;
}

/* řádky týmů o chlup menší + jemnější mezery */
#prihlasene-tymy .team-bubble li{
  margin: 4px 0;
  column-gap: 8px;
}

#prihlasene-tymy .team-pos{
  width: 2.2em;
  font-size: 13px;
}

#prihlasene-tymy .team-logo-box{
  width: 26px;
  height: 26px;
}

#prihlasene-tymy .team-name.free{
  font-size: 12px; /* už ne 20 */
}

/* mobil pro tuhle sekci */
@media (max-width: 768px){
  #prihlasene-tymy .month-title{ font-size: 18px; margin: 18px 0 10px; }
  #prihlasene-tymy .team-bubble{ padding: 14px 14px; }
  #prihlasene-tymy .team-bubble h3{ font-size: 17px; }
  #prihlasene-tymy .team-bubble .cat{ font-size: 13px; }
  #prihlasene-tymy .team-bubble ul{ font-size: 13.5px; }
}


/* =========================================================
   TEAM-BUBBLE – řádky s pořadím + logo + název (FIX LOG)
   ========================================================= */

.team-bubble li{
  margin: 6px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  column-gap: 10px;
}

.team-pos{
  width: 2.5em;
  text-align: center;
  font-weight: 900;
}

.team-logo-box{
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* obrázek loga – držet uvnitř boxu */
.team-logo,
.team-logo-box img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.team-name{
  flex: 1;
}

.team-name.free{
  font-size: 20px;
  font-weight: 900;
  color: #b5151c;
  text-transform: uppercase;
}

/* mobil */
@media (max-width: 768px){
  .team-logo-box{
    width: 26px;
    height: 26px;
  }
  .team-name.free{
    font-size: 18px;
  }
}

.team-bubble:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
  border-color: rgba(255,208,81,.95);
}

.team-bubble h3{
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: #173554;
}

.bubble-date-link{
  color: inherit;
  text-decoration: none;
}

.bubble-date-link:hover{
  color: #173554;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.team-bubble .cat{
  font-size: 18px;
  font-weight: 900;
  color: #b38f00;
  margin-bottom: 4px;
}

.team-bubble .cap{
  font-size: 15px;
  font-weight: 900;
  color: #173554;
  margin-bottom: 8px;
  opacity: .9;
}

.team-bubble ul{
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  color: #173554;
  text-align: left;
}

/* mobile */
@media (max-width: 768px){

  .turnaje-tabs{
    margin: 18px 0 8px;
    gap: 8px;
  }

  .turnaje-tabs a{
    font-size: 12px;
    padding: 6px 14px;
  }

  .terms h2{
    font-size: 18px;
    padding: 0 10px;
  }

  .term-info{
    font-size: 14px;
    padding: 0 10px;
    margin-bottom: 18px;
  }

  .term-grid{
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
    padding: 0 10px;
  }

  .term-box{
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
    padding: 14px 16px;
  }

  .term-box h3{
    font-size: 16px;
  }

  .term-box li{
    font-size: 16px;
  }

  .term-box li span.detail{
    font-size: 13px;
  }

  .month-title{
    font-size: 24px;
    margin: 32px 0 14px;
    padding: 0 10px;
  }

  .month-grid{
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
    padding: 0 10px 10px;
    align-items: stretch;
  }

  .team-bubble{
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
    padding: 16px 16px;
  }

  .team-bubble h3{
    font-size: 20px;
  }

  .team-bubble .cat{
    font-size: 16px;
  }

  .team-bubble ul{
    font-size: 16px;
  }
}

/* =========================================================
   PŘIHLÁŠKA – sjednocený styl (bez inline CSS)
   ========================================================= */

.signup-section{
  margin-top: 60px;
  padding: 40px 16px 10px;
  background: transparent;
}

.signup-inner{
  max-width: 760px;
  margin: 0 auto;
}

.signup-card{
  background: #f1f5f9;
  border: 1px solid rgba(23,53,84,.18);
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.signup-title{
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 10px;
  text-transform: uppercase;
  color: #173554;
}

.signup-sub{
  text-align: center;
  font-size: 14px;
  margin: 0 0 18px;
  line-height: 1.6;
  color: #475569;
}

.signup-form{
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.signup-form label{
  font-weight: 700;
  font-size: 14px;
  display: block;
  color: #173554;
}

.signup-form input,
.signup-form select,
.signup-form textarea{
  margin-top: 6px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(23,53,84,.20);
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  background: #fff;
  outline: none;
}

.signup-form input:focus,
.signup-form select:focus,
.signup-form textarea:focus{
  border-color: rgba(255,208,81,.95);
  box-shadow: 0 0 0 3px rgba(255,208,81,.25);
}

.signup-form textarea{
  resize: vertical;
  min-height: 90px;
}

.signup-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.btn-primary{
  justify-self: end;
  margin-top: 4px;
  padding: 12px 18px;
  background: #b5151c;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .03em;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  transition: transform .15s ease, filter .15s ease;
}

.btn-primary:hover{
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.form-msg{
  font-size: 14px;
  margin: 6px 0 0;
  font-weight: 800;
}

.form-msg.ok{ color: #0a7a24; }
.form-msg.err{ color: #b5151c; }

@media (max-width: 700px){
  .signup-card{
    padding: 16px 16px;
  }
  .signup-row{
    grid-template-columns: 1fr;
  }
  .btn-primary{
    width: 100%;
    justify-self: stretch;
  }
}

/* =========================================================
   KONTAKT – sjednocený styl
   ========================================================= */

.page-kontakt .contact-center{
  display: flex;
  justify-content: center;
  margin: 30px 0 10px;
}

.page-kontakt .contact-card{
  background: #f1f5f9;
  border: 1px solid rgba(23,53,84,.18);
  border-radius: 18px;
  padding: 26px 32px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  text-align: center;
  min-width: 280px;
  max-width: 420px;
}

.page-kontakt .contact-name{
  font-size: 20px;
  font-weight: 900;
  color: #173554;
  margin-bottom: 14px;
}

.page-kontakt .contact-line{
  font-size: 16px;
  margin: 8px 0;
  font-weight: 700;
  color: #173554;
}

.page-kontakt .contact-line a{
  color: #000;
  text-decoration: none;
  font-weight: 900;
}

.page-kontakt .contact-line a:hover{
  text-decoration: underline;
}

@media (max-width: 600px){
  .page-kontakt .contact-card{
    padding: 18px 18px;
    width: 100%;
  }

  .page-kontakt .contact-name{
    font-size: 18px;
  }

  .page-kontakt .contact-line{
    font-size: 15px;
  }
}

/* =========================================================
   TERMÍNY – sjednocený styl
   ========================================================= */

.page-terminy .term-heading{
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  color: #173554;
  margin: 24px 0 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.page-terminy .term-center{
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.page-terminy .term-card{
  background: #f1f5f9;
  border: 1px solid rgba(23,53,84,.18);
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  width: 300px;
  max-width: 100%;
  text-align: center;
}

.page-terminy .term-row{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #173554;
}

.page-terminy .term-date-badge{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffd051;
  color: #173554;
  font-weight: 900;
  letter-spacing: .2px;
}

.page-terminy .term-text{
  font-weight: 900;
}

.page-terminy .term-kat{
  font-size: 18px;
  font-weight: 900;
  color: #173554;
  margin-top: 2px;
}

.page-terminy .term-sub{
  font-size: 14px;
  color: #475569;
  margin-top: 4px;
  margin-bottom: 8px;
}

.page-terminy .term-date{
  font-size: 15px;
  font-weight: 900;
  color: #b5151c;
}

@media (max-width: 600px){
  .page-terminy .term-card{
    width: 100%;
    padding: 16px 16px;
  }
}

/* =========================================================
   TURNAJ DETAIL – vnitřní záložky + přihlášené týmy (bez inline CSS)
   ========================================================= */

.turnaje-tabs--inner{
  margin: 18px 0 14px;
}

.registered-wrap{
  margin-top: 10px;
}

.registered-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.registered-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(23,53,84,.18);
  border-radius: 14px;
  background: #fff;
}

.registered-logo{
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(23,53,84,.15);
}

.registered-name{
  font-weight: 900;
  color: #173554;
  line-height: 1.15;
}

.is-hidden{ display:none !important; }

/* =========================================================
   MINI KARTY TURNAJŮ
   ========================================================= */

.mini-cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
  margin: 14px 0 10px;
}

/* karta */
.mini-card{
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
  border:1px solid rgba(0,0,0,.06);
  display:flex;
  flex-direction:column;
}

/* foto */
.mini-photo{
  display:block;
  height:140px;
  overflow:hidden;
}
.mini-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform: scale(1.02);
}

/* tělo */
.mini-body{
  padding:12px 12px 14px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* datum + den */
.mini-date{
  font-weight:900;
  font-size:14px;
  color:#173554;
}
.mini-day{
  font-weight:900;
  opacity:.85;
}

/* název */
.mini-title{
  font-weight:900;
  font-size:14px;
  color:#0e2a4c;
}

/* hala */
.mini-sub{
  font-size:13px;
  color:#425466;
  font-weight:700;
}

/* volná místa POD halou */
.mini-places{
  margin-top:2px;
}

/* badge */
.mini-badge{
  font-size:12px;
  font-weight:800;
  padding:5px 10px;
  border-radius:999px;
  white-space:nowrap;
}

.badge-free{
  background: rgba(16, 185, 129, .14);
  color:#0f5132;
  border:1px solid rgba(16,185,129,.25);
}
.badge-last{
  background: rgba(245, 158, 11, .16);
  color:#7c4a00;
  border:1px solid rgba(245,158,11,.28);
}
.badge-full{
  background: rgba(239, 68, 68, .14);
  color:#7a1212;
  border:1px solid rgba(239,68,68,.28);
}

/* akce – malé bubliny */
.mini-actions{
  display:flex;
  gap:10px;
  margin-top:8px;
  align-items:center;
}

/* bublinová tlačítka */
.btn-mini{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:13px;
  padding:6px 10px;
  border-radius:999px;
  white-space:nowrap;
  text-decoration:none;
  line-height:1.1;
}

/* varianty tlačítek */
.btn-outline{
  color:#173554;
  border:2px solid rgba(23,53,84,.22);
  background:#fff;
}
.btn-primary{
  background:#b5151c;
  color:#fff;
  border:2px solid rgba(0,0,0,0);
}

/* vypnuté tlačítko */
.is-disabled{
  opacity:.55;
  pointer-events:none;
}

/* RESPONSIVE */
@media (max-width: 980px){
  .mini-cards{
    grid-template-columns: 1fr;
  }
  .mini-photo{
    height:160px;
  }
}

/* === FIX: mobilní menu klikatelné na stránkách turnaje === */
.page-turnaj .turnaje-header,
.page-turnaj .turnaje-nav{
  position: relative;
  z-index: 9999;
}

.page-turnaj .menu-toggle{
  position: relative;
  z-index: 10000;
}

/* obsah/záložky nesmí být "nad" headerem */
.page-turnaj .content,
.page-turnaj .turnaje-tabs{
  position: relative;
  z-index: 1;
}

/* =========================================================
   HERO KARTY – mobil 1 / web 2 / velký web 3 + text vlevo
   ========================================================= */

.term-hero-row{
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
  margin-top:6px;
}

/* mobil + tablet: 1 pod sebou + karta přes celou šířku */
@media (max-width: 900px){
  .term-hero-row{
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }
  .term-hero-row .term-box--hero{
    width:100%;
    max-width:none;
  }
}

/* web: 2 vedle sebe */
@media (min-width: 901px){
  .term-hero-row .term-box--hero{
    flex:0 1 360px;
    max-width:360px;
  }
}

/* větší web: 3 vedle sebe */
@media (min-width: 1200px){
  .term-hero-row .term-box--hero{
    flex-basis:320px;
    max-width:320px;
  }
}

/* =========================================================
   HERO KARTA – text vlevo, kompaktní padding, pozadí vpravo
   ========================================================= */

.term-box--hero{
  position:relative;
  display:block;
  padding:10px 12px 12px;
  margin:0;
  width:100%;
  max-width:360px;
  border-radius:14px;
  overflow:visible;

  background-image:url("/turnaje/background/zima01.png");
  background-repeat:no-repeat;
  background-size:99%;
  background-position:right 105%;

  box-shadow:0 10px 22px rgba(0,0,0,.12);
  border:1px solid rgba(23,53,84,.12);
}

@media (max-width: 901px){
  .term-box--hero{
    background-size: cover;
    background-position: center right;
  }
}

/* ===== MOBILNÍ VERZE POZADÍ HERO KARET ===== */
@media (max-width: 901px){

  .term-box--hero.bg01{ background-image:url("/turnaje/background/leto01-m.png"); }
  .term-box--hero.bg02{ background-image:url("/turnaje/background/leto02-m.png"); }
  .term-box--hero.bg03{ background-image:url("/turnaje/background/leto03-m.png"); }
  .term-box--hero.bg04{ background-image:url("/turnaje/background/leto04-m.png"); }
  .term-box--hero.bg05{ background-image:url("/turnaje/background/leto05-m.png"); }
  .term-box--hero.bg06{ background-image:url("/turnaje/background/leto06-m.png"); }
  .term-box--hero.bg07{ background-image:url("/turnaje/background/leto07-m.png"); }
  .term-box--hero.bg08{ background-image:url("/turnaje/background/leto08-m.png"); }
  .term-box--hero.bg09{ background-image:url("/turnaje/background/leto09-m.png"); }
  .term-box--hero.bg10{ background-image:url("/turnaje/background/leto10-m.png"); }
}

/* varianty pozadí */
.term-box--hero.bg01{ background-image:url("/turnaje/background/leto01.png"); }
.term-box--hero.bg02{ background-image:url("/turnaje/background/leto02.png"); }
.term-box--hero.bg03{ background-image:url("/turnaje/background/leto03.png"); }
.term-box--hero.bg04{ background-image:url("/turnaje/background/leto04.png"); }
.term-box--hero.bg05{ background-image:url("/turnaje/background/leto05.png"); }
.term-box--hero.bg06{ background-image:url("/turnaje/background/leto06.png"); }
.term-box--hero.bg07{ background-image:url("/turnaje/background/leto07.png"); }
.term-box--hero.bg08{ background-image:url("/turnaje/background/leto08.png"); }
.term-box--hero.bg09{ background-image:url("/turnaje/background/leto09.png"); }
.term-box--hero.bg10{ background-image:url("/turnaje/background/leto10.png"); }


/* overlay zleva pro čitelnost */
.term-box--hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    to right,
    rgba(241,245,249,0.96) 0%,
    rgba(241,245,249,0.90) 56%,
    rgba(241,245,249,0.00) 100%
  );
  z-index:1;
}

.term-box--hero .term-content{
  position:relative;
  z-index:2;
  text-align:left;
  color:#173554;
}

/* datum */
.term-box--hero .term-date-row{
  display:flex;
  align-items:center;
  gap:6px;
  font-weight:900;
  font-size:13px;
  margin:0 0 6px;
}

.term-box--hero .term-day{
  font-size:10px;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(23,53,84,.25);
  background:rgba(241,245,249,.85);
  letter-spacing:.6px;
}

/* kategorie */
.term-box--hero .term-category{
  margin-top:0;
  font-size:16px;
  font-weight:900;
  line-height:1.15;
}

.term-box--hero .term-age{
  display:block;
  margin-top:3px;
  font-size:12px;
  font-weight:700;
  color:#64748b;
}

/* řádky info */
.term-box--hero .term-line{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:5px;
  font-size:13px;
  font-weight:800;
}

.term-box--hero .term-line .ok{
  color:#16a34a;
  font-weight:900;
}

/* děliče */
.term-box--hero .term-divider{
  height:1px;
  width:100%;
  margin:8px 0;
  background:rgba(23,53,84,.22);
}
.term-box--hero .term-divider.soft{ opacity:.5; }

/* tlačítka */
.term-box--hero .term-actions{
  display:flex;
  gap:6px;
  flex-wrap:nowrap;
  margin-top:8px;
}

/* když je fakt úzko, spadnou pod sebe */
@media (max-width: 360px){
  .term-box--hero .term-actions{
    flex-wrap:wrap;
  }
}

.term-box--hero .term-btn{
  flex:1 1 0;
  display:inline-flex;
  justify-content:flex-start;      /* ✅ vlevo */
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  text-decoration:none;
  white-space:nowrap;

  border:2px solid #173554;
  background:rgba(255,255,255,0.78);
  color:#000;
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
}

.term-box--hero .term-btn:hover{
  background:rgba(255,255,255,0.88);
}

.term-box--hero .term-btn--primary{
  background:#ffd051;              /* žlutá Sportujeme srdcem */
  color:#173554;                   /* tmavě modrý text – čitelný */
  border:1px solid rgba(23,53,84,.25);
  justify-content:center;          /* ✅ přihláška může zůstat uprostřed */
}

.term-box--hero .term-btn--primary:hover{
  background:#000;          /* černé pozadí */
  color:#ffd051;           /* žlutý text */
  border-color:#ffd051;
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(0,0,0,.35);
}

/* Detail turnaje – hover v barvě menu */
.term-btn:not(.term-btn--primary):hover{
  background:#173554;     /* tmavě modrá z menu */
  color:#ffffff;         /* bílé písmo */
  border-color:#173554;
  box-shadow:0 8px 18px rgba(23,53,84,.35);
}


.hero-break{
  flex-basis: 100%;
  height: 0;
}

/* bg04 – jemně růžový overlay */
.term-box--hero.bg04::before{
  background:linear-gradient(
    to right,
    rgba(255,235,240,0.96) 0%,   /* světlá růžová */
    rgba(255,220,232,0.90) 56%,
    rgba(255,220,232,0.00) 100%
  );
}

/* bg05 – jemně růžový overlay */
.term-box--hero.bg05::before{
  background:linear-gradient(
    to right,
    rgba(255,235,240,0.96) 0%,   /* světlá růžová */
    rgba(255,220,232,0.90) 56%,
    rgba(255,220,232,0.00) 100%
  );
}


/* =========================================================
   PROMO BOX TURNAJE
   ========================================================= */
.turnaj-intro{
  max-width: 920px;
  margin: 16px auto 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  text-align: center;
}

.turnaj-intro__lead{
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #0b1f33;
}

.turnaj-intro__chips{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
  justify-content: center;
}

.turnaj-intro__chips .chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(11,31,51,.06);
  border: 1px solid rgba(11,31,51,.10);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

/* CTA tlačítko */
.turnaj-cta{
  margin-top: 14px;
  display:flex;
  justify-content:center;
}

.turnaj-cta__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #b5151c;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(181,21,28,.25);
  border: 1px solid rgba(0,0,0,.06);
}

.turnaj-cta__btn:hover{
  filter: brightness(.95);
  transform: translateY(-1px);
}

.turnaj-intro__meta{
  margin: 12px 0 0;
  font-size: 14px;
  opacity: .9;
}

/* Mobil */
@media (max-width: 600px){
  .turnaj-intro{ text-align: left; padding: 12px 12px; }
  .turnaj-intro__chips{ justify-content:flex-start; }
  .turnaj-cta{ justify-content:flex-start; }
}

/* Sociální ikony pod bannerem TURNAJE */
.turnaje-socials{
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  line-height: 1;
  background: transparent;
  z-index: 20;
}




/* Ikony */
.turnaje-socials img{
  width: 32px;
  height: 32px;
  display: block;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none;
  opacity: 1;
  transition: transform .2s ease, opacity .2s ease;
}

.turnaje-socials a img{
  background: transparent !important;
}

.turnaje-socials a:hover img{
  transform: scale(1.12);
  opacity: 1;
}

.turnaje-socials,
.turnaje-socials *{
  background: transparent !important;
  box-shadow: none !important;
}

.turnaje-socials a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  text-decoration: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Zveřejnění fotek souhlas */

.photo-consent-note{
  margin-top: 14px;
  padding: 0;
  background: none;
  border: none;
  color: #444;          /* tmavě šedá */
  font-size: 13px;
  line-height: 1.45;
}

.photo-consent-note h3{
  margin: 0 0 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  color: #444;
}

.photo-consent-note p{
  margin: 0 0 6px;
  font-weight: 400;
  text-align: justify;
  color: #444;
}

.photo-consent-note p:last-child{
  margin-bottom: 0;
}

/* zrušení velké mezery POD souhlasem */
.photo-consent-note{
  margin-bottom: 0 !important;
}

/* hlavní obsah stránky – bývá tam padding kvůli layoutu */
.content{
  padding-bottom: 1 !important;
}

/* patička – často má horní odsazení */
footer,
.footer{
  margin-top: 8px !important;
}

/* ===== ARCHIV – KOMPAKTNÍ ===== */

.archiv-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.archiv-row {
  display: grid;
  grid-template-columns: 120px 1fr 160px 30px;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 8px;

  background: #1f2937;
  color: #fff;
  text-decoration: none;

  transition: 0.15s;
}

.archiv-row:hover {
  background: #374151;
}

.archiv-date {
  font-weight: 600;
  white-space: nowrap;
}

.archiv-title {
  font-weight: 600;
}

.archiv-hall {
  opacity: 0.8;
  font-size: 14px;
}

.archiv-link {
  text-align: right;
  opacity: 0.6;
}

/* MOBILE */
@media (max-width: 600px) {
  .archiv-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .archiv-link {
    display: none;
  }
}


@media (max-width: 768px){

  .term-hero-row{
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .term-hero-row > *{
    width: 100% !important;
  }

  /* KLÍČ – zrušení ořezávání */
  .term-hero-row *{
    height: auto !important;
    min-height: unset !important;
  }

}

/* ===== HERO – MOBILE FIX ===== */
@media (max-width: 768px){

  .term-hero-row{
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

}

/* =========================================================
   PŘIHLÁŠENÉ TÝMY – MINIMAL (logo + název)
   ========================================================= */

.registered-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px 14px;
  margin-top: 14px;
}

.registered-item{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px;
}

.registered-logo{
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.registered-name{
  font-size: 13px;
  font-weight: 800;
  color: #173554;
  line-height: 1.2;
}

.term-btn--primary{
  display: inline-block;
  background: #b5151c;
  color: #fff;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 900;
  border-radius: 10px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.term-btn--primary:hover{
  background: #8e1016;
}

.term-box--hero.hero-color-green::before{
  background: linear-gradient(
    to right,
    rgba(232,247,234,0.96) 0%,
    rgba(210,240,216,0.90) 56%,
    rgba(210,240,216,0.00) 100%
  );
}

.term-box--hero.hero-color-pink::before{
  background: linear-gradient(
    to right,
    rgba(255,235,240,0.96) 0%,
    rgba(255,220,232,0.90) 56%,
    rgba(255,220,232,0.00) 100%
  );
}

.term-box--hero.hero-color-blue::before{
  background: linear-gradient(
    to right,
    rgba(232,241,255,0.96) 0%,
    rgba(210,226,255,0.90) 56%,
    rgba(210,226,255,0.00) 100%
  );
}