/* supplement.css — layout / visibility fixes
   Keeps original PechaKucha look, caps oversized hero + type */

/* ---------- Mega titles: still bold, no full-viewport giant type ---------- */
.h1-mega {
  font-size: clamp(2rem, 5.2vw, 4rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em;
  margin: 0.15em 0 0.2em !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.h2-mega {
  font-size: clamp(1.15rem, 2.6vw, 1.85rem) !important;
  line-height: 1.3 !important;
  font-weight: 400;
  margin: 0 0 0.6em !important;
  color: #444;
}

/* Blog listing / article: never use mega display sizes for reading titles */
.blog-page-title,
.article-title,
article > .h2-mega,
article > h1 {
  font-size: clamp(1.5rem, 2.8vw, 2.15rem) !important;
  line-height: 1.25 !important;
  letter-spacing: 0;
  color: #111;
  margin: 0 0 1rem !important;
}

/* ---------- Event / page heroes (parallax-window) ----------
   Without cover photos JS left a full-viewport white slab. */
.parallax-window {
  position: relative !important;
  overflow: hidden !important;
  height: min(48vh, 420px) !important;
  min-height: 240px !important;
  max-height: 480px !important;
  background-color: #1a1a1a;
  background-image: url('/images/tester.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.parallax-window #logo_20 {
  position: absolute;
  left: 2vw;
  top: 2vh;
  width: min(18vw, 140px);
  z-index: 3;
  height: auto;
}

/* Huge 75vh wordmark only makes sense over video; on static heroes keep compact */
.parallax-window #logo_pecha {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%);
  width: min(72%, 680px) !important;
  max-width: 680px !important;
  height: auto !important;
  max-height: min(38vh, 280px) !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  z-index: 2;
  object-fit: contain;
}

/* ---------- Homepage hero (video was a broken HTML dump, not media) ---------- */
.home-hero-wrap {
  margin: 0;
  padding: 0;
}

#indexvideo.home-hero,
#indexvideo {
  position: relative !important;
  overflow: hidden !important;
  width: 100%;
  height: min(36vh, 340px) !important;
  min-height: 200px !important;
  max-height: 360px !important;
  margin: 0 !important;
  background-color: #1a1a1a;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%),
    url('/images/tester.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#indexvideo video {
  display: none !important;
}

.home-hero__link {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
}

.home-hero__badge,
#indexvideo #logo_20 {
  position: absolute !important;
  left: 18px !important;
  top: 16px !important;
  width: 96px !important;
  max-width: 20vw !important;
  height: auto !important;
  z-index: 3;
  margin: 0 !important;
}

.home-hero__wordmark,
#indexvideo #logo_pecha,
#indexvideo a #logo_pecha {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(68%, 640px) !important;
  max-width: 640px !important;
  height: auto !important;
  max-height: 140px !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  z-index: 3;
  object-fit: contain;
  /* SVG is light strokes — ensure it reads on photo */
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.home-hero__ticket-link {
  position: absolute;
  right: 4%;
  bottom: 14%;
  z-index: 4;
  display: block;
}

/* Ticket badge inside hero, not floating over the whole page */
#koupitVstupenku {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: 110px;
  height: 110px;
  margin: 0;
}

#koupitVstupenku span {
  top: 34px;
  font-size: 95%;
}

#koupitVstupenkuSmall {
  position: static !important;
  top: auto !important;
  right: auto !important;
}

/* ---------- Main content width / spacing ---------- */
.margin-bottom {
  margin-bottom: 3rem !important;
}

/* Event description + body text more readable */
section.container-fluid.margin-bottom > .row > .col-md-8 p,
section.container-fluid.margin-bottom > .row > .col-md-9 p {
  max-width: 42rem;
  font-size: 16px;
  line-height: 1.65;
}

/* Blog catalog + article shells */
.blog-shell,
.article-shell {
  max-width: 1100px;
  margin: 28px auto 48px;
  padding: 0 20px;
}

.article-shell article {
  max-width: 720px;
  padding: 8px 0 24px;
}

.article-shell article .pefcaxr5e {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2a2a2a;
}

.article-shell article .pefcaxr5e p {
  max-width: none;
}

.article-shell aside {
  margin-top: 8px;
}

/* Blog listing: cap huge legacy title if any remains */
.blog-shell .lead {
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

/* ---------- Speakers grid: broken when photos missing ---------- */
.prednasejici > div {
  position: relative;
  min-height: 300px;
  height: auto !important;
  margin-bottom: 16px;
  background: #141414;
  overflow: hidden;
}

.prednasejici > div > img {
  width: 100% !important;
  height: 300px !important;
  object-fit: cover;
  display: block;
}

.hover-content {
  box-sizing: border-box;
  font-size: 13px;
  line-height: 1.45;
}

/* No photo: show readable bio instead of empty black hole */
.prednasejici > div:not(:has(img)) .hover-content {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  height: auto !important;
  min-height: 300px;
  background-color: #1f1f1f !important;
  color: #f2f2f2 !important;
}

/* ---------- Navbar logo overflow on narrow desktops ---------- */
#logo_plzen {
  min-width: 0 !important;
  width: clamp(140px, 22%, 280px) !important;
  max-width: 280px !important;
}

.navbar-nav {
  font-size: clamp(0.95rem, 1.4vw, 1.25rem) !important;
}

/* ---------- Mobile menu sizing (7vh was huge) ---------- */
#xsMenu li {
  line-height: 1.35 !important;
  font-size: 1.15rem !important;
  padding: 14px 15px !important;
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 767px) {
  .parallax-window {
    height: 38vh !important;
    min-height: 200px !important;
  }

  #indexvideo.home-hero,
  #indexvideo {
    height: min(32vh, 240px) !important;
    min-height: 180px !important;
  }

  .home-hero__wordmark,
  #indexvideo #logo_pecha {
    width: 80% !important;
    max-height: 90px !important;
  }

  .parallax-window #logo_pecha {
    width: 88% !important;
    max-height: 32vh !important;
  }

  .h1-mega {
    font-size: clamp(1.6rem, 8vw, 2.4rem) !important;
  }

  .article-shell,
  .blog-shell {
    padding: 0 14px;
    margin-top: 16px;
  }

  .prednasejici > div,
  .prednasejici > div > img,
  .prednasejici > div:not(:has(img)) .hover-content {
    min-height: 240px;
    height: 240px !important;
  }
}
