/* =============================================================
   Kongres Právní prostor — Design System
   Palette: "Ink & Emerald"  ·  Fonts: Fraunces + Inter
   Pure CSS, no framework. All colors as tokens for easy theming.
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --bg:            #ffffff;
  --bg-soft:       #eef5f8;   /* cool blue-tinted off-white section */
  --bg-mute:       #e3edf2;
  --bg-ink:        #0c1a24;   /* deep navy for dark bands/footer */
  --bg-ink-2:      #0f2330;

  /* Text */
  --ink:           #0f1a22;   /* headings + body */
  --ink-2:         #38424e;   /* secondary text */
  --muted:         #66727d;   /* meta / captions */
  --on-ink:        #eaf1f5;   /* text on dark bg */
  --on-ink-mute:   #9aabb7;

  /* Brand — blue (#55a5c3) */
  --brand:         #55a5c3;   /* primary blue (graphics/accents) */
  --brand-strong:  #256f8b;   /* buttons / text — accessible on white */
  --brand-deep:    #184f66;   /* deep hover */
  --brand-tint:    #e6f2f7;   /* light wash */
  --brand-tint-2:  #cfe6ef;
  --teal:          #3f93b5;   /* secondary for gradients */

  /* CTA accent — used primarily on "Koupit vstupenky" buttons */
  --cta:           #12a56b;
  --cta-hover:     #0e8d5b;

  /* Topic accents — 4 program themes (homepage cards + program blocks) */
  --t1: #2f7ea5;  --t1-tint: #e7f0f6;   /* Legislativa */
  --t2: #5b64c7;  --t2-tint: #ececf8;   /* Média a digitální svět */
  --t3: #b9831b;  --t3-tint: #f6eeda;   /* Aktuální otázky justice */
  --t4: #12a56b;  --t4-tint: #e2f4ec;   /* Umělá inteligence a bezpečí */

  /* Lines */
  --line:          #e2eaee;
  --line-2:        #cfdae1;
  --line-ink:      #1e3340;

  /* Effects */
  --radius:        18px;
  --radius-sm:     12px;
  --radius-lg:     28px;
  --shadow-sm:     0 1px 2px rgba(16,24,33,.04), 0 2px 8px rgba(16,24,33,.05);
  --shadow-md:     0 8px 28px rgba(16,24,33,.09);
  --shadow-lg:     0 24px 60px rgba(16,24,33,.16);
  --ring:          0 0 0 4px rgba(85,165,195,.30);

  /* Type */
  --font-display: "Martel", Georgia, "Times New Roman", serif;
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container:     1400px;
  --gutter:        clamp(20px, 5vw, 48px);
  --header-h:      84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
::selection { background: var(--brand-tint-2); color: var(--brand-deep); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p  { color: var(--ink-2); }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-strong);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--brand);
  display: inline-block;
}
/* Centered eyebrows get a flanking line on both sides for symmetry */
.section-head.center .eyebrow::after,
.partner-group__head .eyebrow::after {
  content: "";
  width: 26px; height: 2px;
  background: var(--brand);
  display: inline-block;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); line-height: 1.65; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { margin-top: 16px; }
.bg-soft { background: var(--bg-soft); }
.bg-ink  { background: var(--bg-ink); color: var(--on-ink); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink p { color: var(--on-ink-mute); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn i, .btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--cta); color: #fff; box-shadow: 0 8px 20px rgba(18,165,107,.30); }
.btn--primary:hover { background: var(--cta-hover); box-shadow: 0 12px 26px rgba(18,165,107,.40); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn--on-ink { background: #fff; color: var(--ink); }
.btn--on-ink:hover { background: var(--brand); color: #fff; }
.btn--ghost-ink { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost-ink:hover { border-color: #fff; background: rgba(255,255,255,.08); }
/* Secondary button — subtle border at rest, fills with the light border colour on hover (text stays brand blue) */
.btn--outline { background: transparent; color: var(--brand-strong); border-color: var(--line-2); }
.btn--outline:hover { background: var(--line-2); border-color: var(--line-2); color: var(--brand-strong); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn--sm { padding: .5rem 1rem; font-size: .85rem; }
.btn--sm i, .btn--sm svg { width: 16px; height: 16px; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--brand-strong); transition: gap .2s ease; }
.link-arrow i, .link-arrow svg { width: 18px; height: 18px; }
.link-arrow:hover { gap: .75rem; }

/* ---------- Chips / meta ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .85rem; font-weight: 500; color: var(--ink-2);
  padding: .5rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg);
}
.chip i, .chip svg { width: 16px; height: 16px; color: var(--brand-strong); }
.chip--ink { border-color: rgba(255,255,255,.16); color: var(--on-ink); background: rgba(255,255,255,.04); }
.chip--ink i, .chip--ink svg { color: #7fc6e0; }

/* =============================================================
   Header
   ============================================================= */
/* Floating header — transparent at top, glass bar appears on scroll (atlas-web pattern) */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-top: 18px;
  transition: padding .3s ease;
}
.site-header.scrolled { padding-top: 10px; }
.site-header .container { max-width: 1600px; }

.header-bar {
  display: flex; align-items: center; gap: 1.4rem;
  height: 66px; padding: 0 14px 0 24px;
  border-radius: 16px;
  background: transparent; box-shadow: none;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled .header-bar {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 10px 30px rgba(16,24,33,.10);
}

.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; line-height: 1; justify-self: start; }
.brand__word { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: .015em; text-transform: uppercase; color: var(--ink); white-space: nowrap; transition: color .25s ease; }
.brand__tag { display: flex; align-items: center; gap: .5rem; font-family: var(--font-sans); font-size: .56rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--brand-strong); white-space: nowrap; transition: color .25s ease; }
.brand__tag::before, .brand__tag::after { content: ""; height: 1px; width: 16px; background: currentColor; opacity: .55; }

.nav__links { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.nav__links a {
  font-size: .92rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  padding: .5rem .8rem; border-radius: 10px; transition: color .18s ease, background .18s ease;
}
.nav__links a:hover { color: var(--ink); background: rgba(16,24,33,.06); }
.nav__links a.is-active { color: var(--brand-strong); }

.header-right { display: flex; align-items: center; gap: 10px; }
.nav__cta.mobile { display: none; }
.nav__toggle { display: none; width: 44px; height: 44px; background: transparent; border: 0; border-radius: 10px; align-items: center; justify-content: center; color: var(--ink); }
.nav__toggle i, .nav__toggle svg { width: 24px; height: 24px; }

/* Over a dark hero (homepage), not scrolled → light header */
body.hero-dark .site-header:not(.scrolled) .brand__word { color: #fff; }
body.hero-dark .site-header:not(.scrolled) .brand__tag { color: #7fc6e0; }
body.hero-dark .site-header:not(.scrolled) .nav__links a { color: rgba(255,255,255,.85); }
body.hero-dark .site-header:not(.scrolled) .nav__links a:hover { color: #fff; background: rgba(255,255,255,.14); }
body.hero-dark .site-header:not(.scrolled) .nav__links a.is-active { color: #fff; }
body.hero-dark .site-header:not(.scrolled) .nav__toggle { color: #fff; }

@media (max-width: 940px) {
  .nav__cta.desktop { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: var(--header-h) 0 auto 0; justify-self: stretch;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 12px var(--gutter) 28px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: .95rem .4rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink-2) !important; background: none !important; }
  .nav__cta.mobile { display: inline-flex; margin-top: 18px; }
}

/* =============================================================
   Hero — modern, bottom-anchored over full-bleed video
   ============================================================= */
.hero { position: relative; overflow: hidden; background: var(--bg-ink); color: #fff; }
.hero--video { min-height: 100svh; display: flex; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* YouTube / iframe background variant */
.hero__ytwrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--bg-ink); }
.hero__ytwrap iframe { position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1.45);
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; border: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.1s ease; }
.hero__ytwrap.is-playing iframe { opacity: 1; }
.hero__overlay { position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(9,20,29,.55) 0%, rgba(9,20,29,.20) 24%, rgba(9,20,29,.30) 54%, rgba(8,17,25,.92) 100%),
    radial-gradient(130% 95% at 10% 120%, rgba(37,111,139,.55), transparent 58%); }

.hero__inner {
  position: relative; z-index: 1; width: 100%; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: clamp(104px, 12vw, 140px) clamp(28px, 4vw, 50px);
  gap: clamp(30px, 4vw, 48px);
}
.hero__grid { display: grid; grid-template-columns: 1.55fr 1fr; align-items: end; gap: clamp(24px, 5vw, 60px); }
.hero__lead .eyebrow { color: #8fd0e8; margin-bottom: 20px; }
.hero__lead h1 { font-size: clamp(2.9rem, 8.2vw, 6.2rem); line-height: .96; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.hero__lead h1 em { font-style: normal; color: #7fc6e0; }
.hero__aside { padding-bottom: 4px; }
.hero__aside .hero__sub { color: rgba(234,241,245,.9); font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.55; margin: 0 0 22px; max-width: 40ch; }
.hero__aside .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero__cta i, .hero__cta svg { width: 18px; height: 18px; }
.hero--video .btn--ghost { color: #fff; border-color: rgba(255,255,255,.32); }
.hero--video .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.hero__meta-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 32px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.22); }
.hero__meta-item { display: flex; align-items: center; gap: 11px; color: rgba(234,241,245,.94); font-size: .96rem; font-weight: 500; }
.hero__meta-item i, .hero__meta-item svg { width: 20px; height: 20px; color: #7fc6e0; flex: none; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; gap: 22px; }
  .hero__lead h1 { font-size: clamp(2.6rem, 12vw, 3.8rem); }
  .hero__meta-row { grid-template-columns: 1fr; gap: 12px; }
}

/* =============================================================
   Stats band
   ============================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: 30px 26px; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2rem,3.5vw,2.8rem); font-weight: 600; color: var(--brand-strong); line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 720px){ .stats { grid-template-columns: repeat(2,1fr); } }

/* =============================================================
   Cards / grids
   ============================================================= */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px){ .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-deep); margin-bottom: 20px;
}
.card__icon i, .card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .97rem; }
.card__meta { margin-top: 18px; font-size: .85rem; color: var(--muted); font-weight: 500; }

/* Topic card (program highlights) */
.topic { position: relative; overflow: hidden; }
.topic__no { position: absolute; top: 22px; right: 26px; font-family: var(--font-display); font-size: 2.2rem; color: var(--line-2); font-weight: 600; }

/* Theme colour coding — shared by homepage topic cards and program blocks */
.theme-1 { --tc: var(--t1); --tc-tint: var(--t1-tint); }
.theme-2 { --tc: var(--t2); --tc-tint: var(--t2-tint); }
.theme-3 { --tc: var(--t3); --tc-tint: var(--t3-tint); }
.theme-4 { --tc: var(--t4); --tc-tint: var(--t4-tint); }
/* Homepage topic cards — coloured icon + number only (no border) */
.topic[class*="theme-"] .card__icon { background: var(--tc-tint); color: var(--tc); }
.topic[class*="theme-"] .topic__no { color: var(--tc); opacity: .5; }
/* Program blocks — whole header strip in the theme colour + theme icon on the right */
.block[class*="theme-"] .block__head { background: var(--tc-tint); background: color-mix(in srgb, var(--tc) 15%, #fff); }
.block[class*="theme-"] .block__time { color: var(--tc); }
.block[class*="theme-"] .block__head h3 { color: var(--brand-deep); flex: 1; }
.block[class*="theme-"] .block__head .block__theme-icon { flex: none; width: 24px; height: 24px; color: var(--tc); }

/* =============================================================
   Speakers
   ============================================================= */
/* Speaker tile — photo inset with 10px padding, rounded all sides; bio link is
   just an arrow that expands to reveal its label on hover */
.speaker { text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 10px; display: flex; flex-direction: column; align-self: start; }
.speaker__photo {
  aspect-ratio: 1/1; overflow: hidden; position: relative; border-radius: 10px;
  background: linear-gradient(150deg, var(--brand-tint) 0%, var(--bg-mute) 100%);
  display: grid; place-items: center;
}
.speaker__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.speaker__mono { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--brand-strong); opacity: .85; }
.speaker__info { padding: 26px 14px 16px; }
.speaker h3 { font-size: 1.1rem; line-height: 1.25; transition: color .2s ease; }
.speaker__role { margin-top: 4px; font-size: .88rem; color: var(--muted); }
/* Bio affordance — revealed decently inside the photo on hover */
.speaker__photo::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(9,20,29,.72)); opacity: 0; transition: opacity .28s ease; pointer-events: none; }
.speaker__overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 13px 15px; color: #fff; font-size: .82rem; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .28s ease, transform .28s ease; pointer-events: none; }
.speaker__overlay i, .speaker__overlay svg { width: 15px; height: 15px; transition: transform .2s ease; }

/* =============================================================
   Program timeline (used on program page + preview)
   ============================================================= */
.block { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); margin-bottom: 18px; scroll-margin-top: 100px; }
.block__head { display: flex; align-items: center; gap: 16px; padding: 22px 26px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.block__time { font-weight: 600; color: var(--brand-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.block__head h3 { font-size: 1.2rem; }
.block__body { padding: 8px 26px 14px; }
.slot { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.slot:last-child { border-bottom: 0; }
.slot__time { flex: none; width: 108px; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.slot__title { font-weight: 600; color: var(--ink); }
.slot__speaker { font-size: .9rem; color: var(--ink-2); margin-top: 3px; }
@media (max-width: 560px){ .slot { flex-direction: column; gap: 3px; } .slot__time { width: auto; } }

/* =============================================================
   Partners
   ============================================================= */
.logos { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
@media (max-width: 900px){ .logos { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 520px){ .logos { grid-template-columns: repeat(2,1fr); } }
.logo-tile { display: grid; place-items: center; padding: 22px 24px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); min-height: 132px; transition: box-shadow .2s ease; }
.logo-tile:hover { box-shadow: var(--shadow-sm); }
.logo-tile img { max-height: 84px; max-width: 100%; width: auto; object-fit: contain; opacity: .9; transition: opacity .2s ease; }
.logo-tile:hover img { opacity: 1; }
.logo-tile__text { font-weight: 600; color: var(--ink-2); text-align: center; font-size: .95rem; }

/* Centered logo row (partners page — varying counts) */
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.logo-row .logo-tile { flex: 1 1 190px; max-width: 250px; }
.partner-group { margin-bottom: clamp(40px, 6vw, 64px); }
.partner-group__head { text-align: center; margin-bottom: 26px; }
.partner-group__head .eyebrow { justify-content: center; }
/* single decorative dash above the heading (no duplicate eyebrow label) */
.partner-group__head::before { content: ""; display: block; width: 40px; height: 2px; background: var(--brand); margin: 0 auto 16px; }
.partner-group__head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 0; }

/* Partner cards (logo + name + description) */
.partner-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 20px; }
.partner-cards--solo { max-width: 560px; margin-inline: auto; }
.partner-card { display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 28px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: box-shadow .2s ease, transform .2s ease; }
.partner-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.partner-card__logo { height: 56px; display: flex; align-items: center; }
.partner-card__logo img { max-height: 52px; max-width: 175px; width: auto; object-fit: contain; opacity: .9; transition: opacity .2s ease; }
.partner-card:hover .partner-card__logo img { opacity: 1; }
.partner-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink); line-height: 1.25; }
.partner-card__text { margin: 0; color: var(--ink-2); font-size: .92rem; line-height: 1.65; }

/* Záštitu převzali — patronage documents */
.patron-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px){ .patron-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .patron-grid { grid-template-columns: 1fr; } }
.patron-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.patron-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.patron-card__doc { position: relative; aspect-ratio: 1 / 1.15; overflow: hidden; background: var(--bg-mute); border-bottom: 1px solid var(--line); }
.patron-card__doc img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.patron-card__doc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12,26,36,.06) 100%); pointer-events: none; }
.patron-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.patron-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); line-height: 1.25; }
.patron-card__meta { font-size: .85rem; color: var(--ink-2); }
.patron-card__link { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--brand-strong); }
.patron-card__link i, .patron-card__link svg { width: 16px; height: 16px; }

/* =============================================================
   Tickets (vstupenky) — cards styled as real tear-off tickets
   ============================================================= */
.ticket-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 900px; margin-inline: auto; }
@media (max-width: 760px){ .ticket-grid { grid-template-columns: 1fr; gap: 34px; } }
.ticket {
  position: relative; display: flex; flex-direction: column; text-align: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-sm); transition: box-shadow .22s ease;
}
.ticket:hover { box-shadow: var(--shadow-md); }
.ticket--featured { border-color: var(--cta); box-shadow: 0 10px 30px rgba(18,165,107,.14); }
.ticket__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); z-index: 3;
  background: var(--cta); color: #fff; font-family: var(--font-sans);
  font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.ticket__body { padding: 36px 28px 28px; flex: 1; }
.ticket__label { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.ticket__for { margin-top: 10px; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.ticket__price { margin-top: 24px; }
.ticket__amount {
  display: inline-flex; align-items: flex-start; gap: .18em;
  font-family: var(--font-display); font-size: clamp(2.1rem, 3.6vw, 2.7rem); font-weight: 800;
  color: var(--brand-strong); line-height: 1; letter-spacing: -.02em;
}
.ticket--featured .ticket__amount { color: var(--cta); }
.ticket__cur { font-size: .42em; font-weight: 600; margin-top: .25em; }
.ticket__vat { display: block; margin-top: 10px; font-size: .85rem; color: var(--muted); }
/* what's included — right inside the ticket */
.ticket__perks { display: grid; gap: 11px; margin-top: 26px; text-align: left; }
.ticket__perks li { display: flex; align-items: center; gap: 10px; font-size: .87rem; color: var(--ink-2); line-height: 1.4; }
.ticket__perks i, .ticket__perks svg { width: 17px; height: 17px; flex: none; color: var(--brand-strong); }
.ticket--featured .ticket__perks i, .ticket--featured .ticket__perks svg { color: var(--cta); }
/* perforated tear line with punched notches on both edges.
   Notch colour must match the SECTION background behind the ticket. */
.ticket__cut { position: relative; margin: 0 26px; border-top: 2px dashed var(--line-2); }
.ticket__cut::before, .ticket__cut::after {
  content: ""; position: absolute; top: -13px; z-index: 2;
  width: 26px; height: 26px; border-radius: 999px; background: var(--bg);
}
.ticket__cut::before { left: -39px; }
.ticket__cut::after { right: -39px; }
.ticket__foot { padding: 26px 28px 30px; display: grid; place-items: center; }

/* Disabled action (e-shop not open yet) */
.btn.is-disabled {
  background: var(--line-2); color: var(--muted); border-color: transparent;
  box-shadow: none; cursor: not-allowed;
}
.btn.is-disabled:hover { background: var(--line-2); color: var(--muted); transform: none; box-shadow: none; }

/* Tooltip */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip); position: absolute; bottom: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-ink); color: #fff; font-family: var(--font-sans); font-size: .78rem;
  font-weight: 500; line-height: 1.45; letter-spacing: 0; text-transform: none;
  padding: 9px 13px; border-radius: 8px; width: max-content; max-width: 230px;
  white-space: normal; text-align: center; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 30;
}
[data-tooltip]::before {
  content: ""; position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 6px solid transparent; border-top-color: var(--bg-ink);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 30;
}
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after,
[data-tooltip]:hover::before, [data-tooltip]:focus-visible::before {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* =============================================================
   Student competition — archive of winning articles
   ============================================================= */
.winners { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 24px; }
.winner-year { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 22px; }
.winner-year__label { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--brand-strong); line-height: 1; letter-spacing: -.02em; margin-bottom: 18px; }
.winner-list { display: grid; gap: 15px; list-style: none; margin: 0; padding: 0; }
.winner { display: flex; align-items: flex-start; gap: 12px; }
.winner__place {
  flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 999px;
  display: grid; place-items: center; font-family: var(--font-sans);
  font-size: .7rem; font-weight: 700; color: #fff; background: var(--muted);
}
.winner--1 .winner__place { background: #c9a227; }   /* zlatá */
.winner--2 .winner__place { background: #9aa5ad; }   /* stříbrná */
.winner--3 .winner__place { background: #b3763f; }   /* bronzová */
.winner__title { display: block; font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.42; transition: color .2s ease; }
.winner__title:hover { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }
.winner__author { display: block; margin-top: 4px; font-size: .8rem; color: var(--muted); }

/* =============================================================
   Password gate (client-side only — chrání zobrazení stránky,
   nikoli soubory samotné; viz poznámka v js/main.js)
   ============================================================= */
.lock { max-width: 520px; margin-inline: auto; }
.lock__box {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: clamp(28px, 4vw, 40px); text-align: center;
}
.lock__icon {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-strong); display: grid; place-items: center;
}
.lock__icon i, .lock__icon svg { width: 26px; height: 26px; }
.lock__box h2 { font-size: 1.4rem; }
.lock__box > p { margin-top: 10px; color: var(--ink-2); font-size: .95rem; }
.lock__form { display: flex; gap: 10px; margin-top: 22px; }
.lock__input {
  flex: 1; min-width: 0; font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
  padding: .85rem 1.1rem; border: 1.5px solid var(--line-2); border-radius: 999px;
  background: var(--bg); transition: border-color .2s ease, box-shadow .2s ease;
}
.lock__input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(85,165,195,.16); }
.lock__form .btn { flex: none; }
.lock__error { margin-top: 14px; font-size: .88rem; font-weight: 600; color: #b3261e; }
.lock__hint { margin-top: 16px; font-size: .85rem; color: var(--muted); }
@media (max-width: 460px){ .lock__form { flex-direction: column; } .lock__form .btn { width: 100%; } }

/* =============================================================
   Materials list (přednášky ke stažení)
   ============================================================= */
.materials { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.material {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; transition: box-shadow .2s ease, border-color .2s ease;
}
.material:hover { box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.material__icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-strong); display: grid; place-items: center; }
.material__icon i, .material__icon svg { width: 20px; height: 20px; }
.material__body { flex: 1; min-width: 0; }
.material__title { display: block; font-weight: 600; color: var(--ink); line-height: 1.35; transition: color .2s ease; }
.material:hover .material__title { color: var(--brand-strong); }
.material__meta { display: block; margin-top: 3px; font-size: .83rem; color: var(--muted); }
.material__go { flex: none; color: var(--muted); transition: color .2s ease, transform .2s ease; }
.material__go i, .material__go svg { width: 19px; height: 19px; }
.material:hover .material__go { color: var(--brand-strong); transform: translateY(2px); }
.material__action { flex: none; }
.material--pending { border-style: dashed; }
.material--pending:hover { box-shadow: none; border-color: var(--line); }
.material--pending .material__icon { background: var(--bg-soft); color: var(--muted); }
.material--pending .material__title,
.material--pending:hover .material__title { color: var(--muted); font-weight: 600; }
.material--pending { cursor: default; }
@media (max-width: 560px) {
  .material { flex-wrap: wrap; }
  .material__body { flex: 1 1 100%; order: 2; }
  .material__action { order: 3; margin-left: 54px; }
}


/* =============================================================
   Photo gallery (opens in the lightbox)
   ============================================================= */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gallery__item {
  position: relative; display: block; overflow: hidden; aspect-ratio: 3/2;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); cursor: zoom-in;
  transition: box-shadow .22s ease;
}
.gallery__item:hover { box-shadow: var(--shadow-md); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(9,20,29,0); transition: background .25s ease;
}
.gallery__item:hover::after { background: rgba(9,20,29,.14); }

/* Lightbox (patronage documents + gallery photos open in-page) */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: clamp(20px, 4vw, 56px); background: rgba(9,20,29,.86); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox.open { display: grid; animation: lb-fade .2s ease; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img { max-width: min(94vw, 860px); max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 24px 70px rgba(0,0,0,.55); background: #fff; }
.lightbox__close { position: absolute; top: clamp(14px, 2vw, 24px); right: clamp(14px, 2vw, 28px); width: 46px; height: 46px; border: 0; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s ease; }
.lightbox__close:hover { background: rgba(255,255,255,.26); }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: clamp(16px, 3vw, 28px); text-align: center; color: rgba(255,255,255,.9); font-size: .9rem; font-weight: 500; padding: 0 20px; }

/* =============================================================
   CTA band
   ============================================================= */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-ink); color: #fff; padding: clamp(40px,6vw,72px); }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 80% at 90% 0%, rgba(85,165,195,.32), transparent 60%), radial-gradient(45% 70% at 0% 100%, rgba(63,147,181,.24), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: var(--on-ink-mute); margin-top: 14px; max-width: 52ch; }
.cta-band .hero__actions { margin-top: 30px; }

/* Full-bleed pre-footer CTA strip (flush to footer, photo on the right) */
.cta-strip { position: relative; background: var(--bg-ink); overflow: hidden; }
.cta-strip__media { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; z-index: 1;
  background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.3) 38%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.3) 38%, #000 100%); }
.cta-strip::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg-ink) 12%, rgba(11,20,29,.5) 45%, rgba(11,20,29,.12) 72%, rgba(11,20,29,0) 100%),
    radial-gradient(46% 90% at 92% 6%, rgba(18,165,107,.18), transparent 60%); }
.cta-strip .container { position: relative; z-index: 2; }
.cta-strip__body { max-width: 600px; padding-block: clamp(56px, 8vw, 104px); }
.cta-strip__body h2 { color: #fff; max-width: 18ch; }
.cta-strip__body p { color: var(--on-ink-mute); margin-top: 14px; max-width: 48ch; }
.cta-strip__body .hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
@media (max-width: 760px) {
  .cta-strip__media { width: 100%; opacity: .4; }
  .cta-strip__body { max-width: none; }
}

/* Split feature (venue / about) */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px,5vw,64px); align-items: center; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; } }
.split__media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); aspect-ratio: 4/3; background: var(--bg-mute); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { display: grid; gap: 14px; margin-top: 24px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.feature-list i, .feature-list svg { flex: none; width: 22px; height: 22px; color: var(--brand-strong); margin-top: 2px; }

/* =============================================================
   Footer
   ============================================================= */
.site-footer { background: var(--bg-ink); color: var(--on-ink-mute); padding-block: clamp(48px,6vw,72px) 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { margin-bottom: 16px; align-items: center; align-self: flex-start; }
.site-footer .brand__word { color: #fff; }
.site-footer .brand__tag { color: #7fc6e0; }
.footer-about p { color: var(--on-ink-mute); font-size: .95rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col li { font-size: .95rem; color: var(--on-ink-mute); transition: color .18s ease; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.footer-contact i, .footer-contact svg { flex: none; width: 18px; height: 18px; color: #7fc6e0; margin-top: 2px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-ink); font-size: .85rem; color: var(--on-ink-mute); }
.footer-bottom a:hover { color: #fff; }

/* =============================================================
   Page hero (inner pages)
   ============================================================= */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; z-index:1; background: radial-gradient(50% 60% at 88% 10%, rgba(85,165,195,.14), transparent 60%); pointer-events:none; }
/* Blue-toned photo underlay in the right half, fading into the blue background on the left.
   Image URL is set inline per page; the blue tint comes from a luminosity blend with --teal. */
.page-hero__media { position:absolute; top:0; bottom:0; right:0; width:62%; z-index:0; pointer-events:none;
  background-size:cover; background-position:center; background-color:#7a9aa8; background-blend-mode:luminosity;
  filter:contrast(1.04); opacity:0; transition: opacity 1s ease;
  -webkit-mask-image:linear-gradient(90deg, transparent 0%, rgba(0,0,0,.5) 45%, #000 100%);
  mask-image:linear-gradient(90deg, transparent 0%, rgba(0,0,0,.5) 45%, #000 100%); }
.page-hero__media.is-loaded { opacity:.26; }
@media (max-width:720px){ .page-hero__media { width:100%; } .page-hero__media.is-loaded { opacity:.16; } }
.page-hero__inner { position: relative; z-index: 1; padding-block: clamp(120px,12vw,150px) clamp(40px,6vw,72px); }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--brand-strong); }
.breadcrumb i, .breadcrumb svg { width: 14px; height: 14px; }
.page-hero h1 { font-size: clamp(2.2rem,5vw,3.4rem); max-width: 18ch; }
.page-hero p { margin-top: 16px; max-width: 56ch; }

/* Prose (text pages: VOP, o nás) */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.6rem; margin-top: 40px; margin-bottom: 14px; }
.prose h3 { margin-top: 28px; margin-bottom: 10px; }
.prose p { margin-bottom: 16px; }
.prose ul { display: grid; gap: 10px; margin-bottom: 18px; padding-left: 4px; }
.prose ul li { display: flex; gap: 12px; color: var(--ink-2); }
.prose ul li::before { content:""; flex:none; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 10px; }

/* =============================================================
   Scroll reveal
   ============================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }
.reveal.d4 { transition-delay: .24s; }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mx-auto { margin-inline: auto; }
.flex-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.divider { height: 1px; background: var(--line); border: 0; }

/* =============================================================
   Subpage components
   ============================================================= */
/* Speaker bio (speakers page) */
.speaker__bio { margin-top: 10px; font-size: .9rem; color: var(--ink-2); line-height: 1.55; }
/* Clickable speaker tile (links to bio detail) — no movement, just subtle emphasis */
a.speaker { cursor: pointer; color: inherit; transition: box-shadow .22s ease, border-color .22s ease; }
a.speaker:hover { box-shadow: var(--shadow-md); border-color: var(--line-2); }
a.speaker:hover .speaker__photo img { transform: scale(1.04); }
a.speaker:hover h3 { color: var(--brand-strong); }
a.speaker:hover .speaker__photo::after { opacity: 1; }
a.speaker:hover .speaker__overlay { opacity: 1; transform: translateY(0); }
a.speaker:hover .speaker__overlay i { transform: translateX(3px); }

/* Back link */
.back-link { display: flex; width: fit-content; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; color: var(--brand-strong); margin-bottom: 20px; }
.back-link i, .back-link svg { width: 14px; height: 14px; transition: transform .2s ease; }
.back-link:hover i, .back-link:hover svg { transform: translateX(-3px); }

/* Speaker prev / list / next navigation */
.speaker-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin-top: clamp(44px, 6vw, 68px); padding-top: 28px; border-top: 1px solid var(--line); }
.speaker-nav a { display: inline-flex; align-items: center; gap: 12px; }
.speaker-nav__prev { justify-self: start; }
.speaker-nav__next { justify-self: end; text-align: right; }
.speaker-nav__list { justify-self: center; gap: 8px; font-weight: 600; color: var(--brand-strong); }
.speaker-nav__list i, .speaker-nav__list svg { width: 18px; height: 18px; }
.speaker-nav small { display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.speaker-nav b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); line-height: 1.2; transition: color .2s ease; }
.speaker-nav__prev:hover b, .speaker-nav__next:hover b { color: var(--brand-strong); }
.speaker-nav i, .speaker-nav svg { width: 22px; height: 22px; flex: none; color: var(--brand-strong); transition: transform .2s ease; }
.speaker-nav__prev:hover i, .speaker-nav__prev:hover svg { transform: translateX(-3px); }
.speaker-nav__next:hover i, .speaker-nav__next:hover svg { transform: translateX(3px); }
@media (max-width: 640px) {
  .speaker-nav { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .speaker-nav__list { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 420px) { .speaker-nav b { display: none; } }

/* Speaker detail page */
.speaker-detail { display: grid; grid-template-columns: 340px 1fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
.speaker-detail__media { position: sticky; top: 104px; }
.speaker-detail__photo { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); aspect-ratio: 4/5; background: var(--bg-mute); }
.speaker-detail__photo img { width: 100%; height: 100%; object-fit: cover; }
.speaker-detail__body { max-width: 720px; }
.detail-talk { margin-top: 18px; padding: 18px 20px; background: var(--brand-tint); border: 1px solid var(--brand-tint-2); border-radius: var(--radius-sm); }
.detail-talk__label { display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-deep); }
.detail-talk__label i, .detail-talk__label svg { width: 15px; height: 15px; }
.detail-talk__title { margin-top: 8px; font-weight: 600; color: var(--ink); }
@media (max-width: 820px) {
  .speaker-detail { grid-template-columns: 1fr; gap: 26px; }
  .speaker-detail__media { position: static; max-width: 300px; }
}

/* Modal (speaker biography) */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(9,20,29,.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal__dialog { position: relative; z-index: 1; max-width: 720px; width: calc(100% - 32px); margin: 6vh auto; max-height: 88vh; overflow-y: auto;
  background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(24px, 4vw, 40px); animation: modalIn .25s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; background: var(--bg-soft); border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: background .18s ease; }
.modal__close:hover { background: var(--bg-mute); }
.modal__close i, .modal__close svg { width: 20px; height: 20px; }
.modal__head { display: flex; gap: 24px; align-items: center; margin-bottom: 24px; padding-right: 44px; }
.modal__photo { flex: 0 0 120px; width: 120px; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--bg-mute); border: 1px solid var(--line); }
.modal__photo img { width: 100%; height: 100%; object-fit: cover; }
.modal__name { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; }
.modal__role { color: var(--muted); margin-top: 6px; }
.modal__bio { color: var(--ink-2); line-height: 1.7; }
.modal__bio p { margin-bottom: 14px; }
.modal__bio p:last-child { margin-bottom: 0; }
@media (max-width: 520px) { .modal__head { flex-direction: column; text-align: center; align-items: center; padding-right: 0; } }
.speaker__tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.speaker__tags span { font-size: .72rem; font-weight: 600; color: var(--brand-deep); background: var(--brand-tint); padding: 3px 9px; border-radius: 999px; }

/* Program day tabs / headers */
.day-head { display: flex; align-items: baseline; gap: 16px; margin: 0 0 24px; padding-top: 8px; }
.day-head .day-no { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--brand-strong); line-height: 1; }
.day-head .day-meta h2 { font-size: 1.7rem; }
.day-head .day-meta span { color: var(--muted); font-size: .95rem; }
.day-block { margin-bottom: 56px; }

/* FAQ accordion (native details) */
.faq-list { max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); margin-bottom: 12px; overflow: hidden; transition: box-shadow .2s ease; }
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--brand-strong); font-weight: 400; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item__body { padding: 0 24px 22px; color: var(--ink-2); }
.faq-item__body p { margin-bottom: 10px; }

/* Map embed */
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed iframe { display: block; width: 100%; height: 440px; border: 0; }

/* Contact person card */
.contact-role { color: var(--muted); font-size: .9rem; margin: 4px 0 16px; }
.contact-line { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--ink-2); }
.contact-line a:hover { color: var(--brand-strong); }
.contact-line i, .contact-line svg { flex: none; width: 18px; height: 18px; color: var(--brand-strong); }

/* Contact profile (photo + details) */
.profile { display: grid; grid-template-columns: 168px 1fr; gap: 30px; align-items: center;
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease; }
.profile:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.profile__photo { width: 168px; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--bg-mute); border: 1px solid var(--line); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.profile__role { color: var(--muted); font-size: .92rem; margin: 5px 0 18px; }
@media (max-width: 560px) {
  .profile { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; }
  .profile__photo { width: 150px; }
  .profile .contact-line { justify-content: center; }
}

/* History — clean alternating photo list of editions (no axis) */
.year-item { display: flex; gap: clamp(28px, 5vw, 60px); align-items: center; padding: clamp(32px,5vw,56px) 0; border-top: 1px solid var(--line); }
.year-item:first-child { border-top: 0; padding-top: 4px; }
.year-item:nth-of-type(even) { flex-direction: row-reverse; }
.year-item__media { display: block; flex: 0 0 46%; max-width: 520px; position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--bg-mute); box-shadow: var(--shadow-md); }
a.year-item__media { cursor: pointer; }
.year-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.year-item__media:hover img { transform: scale(1.05); }
/* Edition number + date as badges on the photo */
.year-item__badge { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; background: rgba(12,26,36,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-family: var(--font-sans); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; }
.year-item__badge--date { left: auto; right: 14px; }
.year-item__body { flex: 1; min-width: 0; }
.year-item__year { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 800; color: var(--brand-strong); line-height: 1; letter-spacing: -.02em; }
.year-item h3 { font-size: clamp(1.2rem, 1.9vw, 1.55rem); margin: 8px 0 14px; color: var(--ink); }
.year-item .hist-meta { margin: 0 0 14px; }
.year-item__body > p { color: var(--ink-2); line-height: 1.6; max-width: 52ch; }
.year-item__links { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 22px; }
@media (max-width: 720px){
  .year-item, .year-item:nth-of-type(even) { flex-direction: column; align-items: stretch; gap: 18px; }
  .year-item:first-child { padding-top: 0; }
  .year-item__media { flex: none; max-width: none; width: 100%; }
}

/* History cards grid */
.hist-card__top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.hist-year { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--brand-strong); line-height: 1; }
.hist-ed { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.hist-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hist-meta span { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-tint); color: var(--brand-deep); padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 500; }
.hist-meta i, .hist-meta svg { width: 14px; height: 14px; color: var(--brand-strong); }
.hist-theme { font-size: .97rem; color: var(--ink-2); }
.card .year-item__links { margin-top: 16px; }

/* Simple note / callout */
.callout { display: flex; gap: 14px; align-items: center; padding: 20px 22px; background: var(--brand-tint); border: 1px solid var(--brand-tint-2); border-radius: var(--radius-sm); color: var(--brand-deep); }
.callout i, .callout svg { flex: none; width: 26px; height: 26px; }
.callout p { color: var(--brand-deep); margin: 0; }
.callout--warn { background: #fdf4e3; border-color: #f2d9a6; color: #8a5a12; }
.callout--warn i, .callout--warn svg { color: #c9871a; }
.callout--warn p { color: #8a5a12; }

/* =============================================================
   Odkazy na CODEXIS AI chaty
   ============================================================= */
.ai-links { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 11px; }
.ai-links a { font-size: .93rem; font-weight: 500; color: var(--brand-strong); line-height: 1.45; }
.ai-links a:hover { text-decoration: underline; }
