/* Javorník Brno — styl webu.
   Barvy, ornament i písmo vychází z manuálu souboru (design/VSECHNO-1.pdf).
   Zdroj pravdy je tento soubor; prototyp v design/prototype/ je jeho náhled. */
:root {
    color-scheme: light;

    /* identita souboru (manuál) */
    --navy: #242063;
    --red: #EB390C;
    --yellow: #F2E424;

    --paper: #FFFFFF;
    --wash: #F2F3F8;
    --ink: #1A1838;
    --ink-2: #53516E;
    --ink-3: #757394;
    --rule: #DCDDE8;
    --rule-soft: #EBECF3;
    --signal: var(--red);
    --signal-ink: #FFFFFF;
    --lift: 0 2px 4px rgba(26, 24, 56, .05), 0 22px 44px -26px rgba(26, 24, 56, .45);

    --display: "EB Garamond", "Iowan Old Style", Georgia, serif;
    --sans: "Fira Sans", "Segoe UI", Helvetica, Arial, sans-serif;
    --wrap: 1180px;
    --gutter: clamp(20px, 4vw, 44px);
  }



  * { box-sizing: border-box; }
  html { scroll-padding-top: 88px; }
  main { flex: 1 0 auto; }

  body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font: 400 16.5px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    caret-color: var(--signal);
    scrollbar-color: var(--navy) var(--wash);
  }
  ::selection { background: var(--yellow); color: #1A1838; }

  h1, h2, h3 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.012em;
    text-wrap: balance;
    margin: 0;
    color: var(--ink);
  }
  p { margin: 0; }
  /* Chrome zmenšuje h1 uvnitř <section>; nadpis stránky by byl menší než h2 pod ním. */
  h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.015em; }

  a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
  a:hover { text-decoration-color: currentColor; }
  :focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

  .skip { position: absolute; left: -9999px; background: var(--navy); color: #fff; padding: 12px 18px; z-index: 60; }
  .skip:focus { left: 10px; top: 10px; }

  /* krojový límeček – závazný ornament identity */
  .collar {
    height: 13px;
    background-image: url("../img/brand/ctverecky.svg");
    background-repeat: repeat-x;
    background-size: auto 13px;
    background-position: left center;
  }
  .collar--tall { height: 22px; background-size: auto 22px; }

  /* ---------- hlavička ---------- */
  .site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--paper); }
  .header-in {
    max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gutter);
    display: flex; align-items: center; gap: 18px 26px; flex-wrap: wrap;
  }
  .logo { display: block; flex: none; }
  .logo img { height: 42px; width: auto; display: block; }

  .nav { display: none; gap: 3px; flex-wrap: wrap; margin-left: auto; }
  .nav a {
    font: 500 15px/1 var(--sans); color: var(--ink-2); text-decoration: none;
    display: inline-block; padding: 10px 12px; position: relative;
  }
  .nav a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
    background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .18s cubic-bezier(.16,1,.3,1);
  }
  .nav a:hover { color: var(--ink); }
  .nav a:hover::after { transform: scaleX(1); }
  .nav a[aria-current="page"] { color: var(--ink); }
  .nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--navy); }

  .burger {
    margin-left: auto; width: 46px; height: 46px; display: inline-flex; align-items: center;
    justify-content: center; background: none; border: 0; color: var(--navy); cursor: pointer;
  }
  .burger:hover { background: var(--wash); }

  .lang { display: none; gap: 6px; align-items: center; font: 500 13px/1 var(--sans); }
  .lang a {
    font: inherit; letter-spacing: .08em; padding: 8px 4px;
    color: var(--ink-3); text-decoration: none;
  }
  .lang a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; text-decoration-color: var(--signal); }
  .lang span { color: var(--rule); }

  @media (min-width: 64em) {
    .nav, .lang { display: flex; }
    .burger { display: none; }
  }

  /* ---------- zásuvka na mobilu ---------- */
  .menu {
    position: fixed; inset: 0 0 0 auto; margin: 0; border: 0; padding: 0;
    width: min(100%, 23rem); height: 100dvh; max-width: none; max-height: none;
    background: var(--navy); color: #fff; display: flex; flex-direction: column; overflow: auto;
    box-shadow: -18px 0 52px rgba(16, 14, 46, .4);
    opacity: 0; transform: translateX(100%);
    transition: transform .32s cubic-bezier(.2, .7, .2, 1), opacity .32s ease, overlay .32s allow-discrete, display .32s allow-discrete;
  }
  .menu:popover-open { opacity: 1; transform: none; }
  @starting-style { .menu:popover-open { opacity: 0; transform: translateX(100%); } }
  .menu::backdrop { background: rgba(16, 14, 46, 0); transition: background-color .32s ease, overlay .32s allow-discrete, display .32s allow-discrete; }
  .menu:popover-open::backdrop { background: rgba(16, 14, 46, .55); }
  @starting-style { .menu:popover-open::backdrop { background: rgba(16, 14, 46, 0); } }
  .menu-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 64px; padding: 10px 10px 10px 22px; border-bottom: 1px solid rgba(255, 255, 255, .17);
  }
  .menu-head img { height: 30px; width: auto; display: block; }
  .menu-close { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: #fff; cursor: pointer; }
  .menu-close:hover { background: rgba(255, 255, 255, .12); }
  .menu-links { display: flex; flex-direction: column; padding: 8px 0; }
  .menu-links a {
    display: flex; align-items: center; min-height: 56px; padding: 6px 22px; width: 100%;
    color: #fff; text-decoration: none;
    font: 500 22px/1.2 var(--display);
  }
  .menu-links a:hover { background: rgba(255, 255, 255, .09); }
  .menu-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); }
  .menu-foot {
    margin-top: auto; display: flex; flex-direction: column; gap: 14px;
    padding: 22px 22px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, .17);
  }
  .menu-foot .lang-row { display: flex; gap: 8px; align-items: center; font: 500 13.5px/1 var(--sans); }
  .menu-foot .lang-row a { color: #A9A7D6; text-decoration: none; padding: 10px 2px; letter-spacing: .08em; }
  .menu-foot .lang-row a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; text-decoration-color: var(--red); }
  .menu-foot p, .menu-foot a { font-size: 15px; color: #CFCDEA; }
  .menu :focus-visible { outline-color: #fff; }

  /* ---------- plovoucí termín na mobilu ---------- */
  .next-pill {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 35; display: flex; align-items: center; gap: 12px;
    opacity: 0; transform: translateY(150%); pointer-events: none;
    transition: transform .34s cubic-bezier(.16, 1, .3, 1), opacity .24s ease;
    background: var(--red); color: #fff; text-decoration: none;
    padding: 13px 18px; border-radius: 999px;
    box-shadow: 0 10px 28px rgba(16, 14, 46, .38), 0 1px 3px rgba(16, 14, 46, .3);
  }
  .next-pill .d { font: 600 14px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; font-variant-numeric: tabular-nums; flex: none; }
  .next-pill .t { font: 500 17px/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .next-pill svg { margin-left: auto; flex: none; }
  .next-pill.is-shown { opacity: 1; transform: none; pointer-events: auto; }
  @media (min-width: 64em) { .next-pill { display: none; } }

  /* ---------- mapa ---------- */
  .map { margin-top: clamp(28px, 4vw, 44px); border: 1px solid var(--rule); background: var(--wash); }
  .map iframe { display: block; width: 100%; height: clamp(280px, 40vw, 420px); border: 0; }

  /* ---------- plochy ---------- */
  .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
  .wash { background: var(--wash); }
  section.strip { padding-block: clamp(46px, 6vw, 82px); }

  .head { display: flex; align-items: flex-end; gap: 14px 24px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 34px); }
  .head h2 { font-size: clamp(28px, 4vw, 40px); }
  .head .also { margin-left: auto; font: 500 15px/1 var(--sans); color: var(--ink-2); }
  .lede { font-size: 18.5px; line-height: 1.55; color: var(--ink-2); max-width: 64ch; }
  .prose { max-width: 68ch; display: flex; flex-direction: column; gap: 15px; color: var(--ink-2); font-size: 17px; }
  .prose strong { color: var(--ink); font-weight: 600; }
  .note { font: 400 13.5px/1.6 var(--sans); color: var(--ink-3); }

  /* ---------- hero ---------- */
  /* výška roste s oknem: na širokém monitoru by nízký pruh z fotky ukázal jen strop sálu */
  .hero { position: relative; background: var(--navy); display: flex; flex-direction: column; min-height: min(80svh, 56vw); }
  .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
  .hero-veil {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 820px 440px at calc(50% - 330px) 250px, rgba(36, 32, 99, .74) 0%, rgba(36, 32, 99, .5) 45%, rgba(36, 32, 99, 0) 100%),
      linear-gradient(180deg, rgba(36, 32, 99, .22) 0%, rgba(36, 32, 99, .12) 45%, rgba(36, 32, 99, .55) 100%);
  }
  .hero-in {
    position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto;
    padding: clamp(80px, 13vw, 150px) var(--gutter) clamp(34px, 5vw, 60px);
    display: flex; flex-direction: column; gap: 14px;
  }
  .hero h1 { font-size: clamp(44px, 7.4vw, 78px); color: #fff; letter-spacing: -.02em; }
  .hero-in p { color: #DEDCF2; font-size: 17.5px; max-width: 46ch; }

  .hero-seal {
    position: relative; width: 100%; max-width: var(--wrap); margin: auto auto 0;
    padding: 0 var(--gutter); display: flex; justify-content: flex-end;
  }
  .hero-seal > a {
    background: var(--red); color: #fff; text-decoration: none;
    padding: 22px 28px 24px; max-width: 420px;
    display: flex; flex-direction: column; gap: 6px;
  }
  .hero-seal > a:hover { background: #C42F09; }
  .hero-seal .when { font: 600 14px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
  .hero-seal .sep { margin: 0 .5em; }
  .hero-seal .what { font: 600 clamp(26px, 3.4vw, 34px)/1.1 var(--display); }
  .hero-seal .where { font: 400 15px/1.5 var(--sans); color: #FFD9CE; }

  /* ---------- akce ---------- */
  .events { display: flex; flex-direction: column; }
  .event {
    display: grid; grid-template-columns: 106px minmax(0, 1fr) minmax(0, 210px);
    gap: 6px 26px; padding: 18px 0; border-top: 1px solid var(--rule-soft); align-items: baseline;
  }
  .event:first-child { border-top: 1px solid var(--rule); }
  .event:last-child { border-bottom: 1px solid var(--rule-soft); }
  .event time {
    font: 500 15px/1.4 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink);
    text-wrap: balance; overflow-wrap: normal; word-break: keep-all;
  }
  .event h3 { font-size: 21px; font-weight: 500; }
  .event p { font-size: 15px; color: var(--ink-2); margin-top: 5px; max-width: 60ch; }
  .event .where { font-size: 15px; color: var(--ink-3); }
  .event--next { grid-template-columns: 154px minmax(0, 1fr) minmax(0, 210px); border-top: 2px solid var(--signal); padding-top: 22px; }
  .event--next time { color: var(--signal); font-weight: 600; }
  .event--next h3 { font-size: clamp(25px, 3.4vw, 33px); }

  .event.is-target, .post.is-target, .post-lead.is-target {
    background: color-mix(in srgb, var(--yellow) 26%, transparent);
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--yellow) 26%, transparent);
  }

  .year { font: 600 14px/1 var(--sans); letter-spacing: .14em; color: var(--ink-3); padding: 34px 0 10px; font-variant-numeric: tabular-nums; }

  /* ---------- novinky ---------- */
  .post-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
  .post-lead img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; display: block; }
  .post-lead .body { display: flex; flex-direction: column; gap: 12px; }
  .post-lead h3 { font-size: clamp(26px, 3.4vw, 34px); }
  .stamp { font: 500 13.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .posts { display: flex; flex-direction: column; margin-top: 34px; }
  .post { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 6px 26px; padding: 18px 0; border-top: 1px solid var(--rule); align-items: baseline; }
  .post h3 { font-size: 20px; font-weight: 500; }
  .post p { font-size: 15px; color: var(--ink-2); margin-top: 5px; max-width: 62ch; }
  .mark-yellow { box-shadow: inset 0 -.36em 0 var(--yellow); }

  /* ---------- kdo jsme ---------- */
  .about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 290px); gap: clamp(26px, 4vw, 56px); align-items: center; }
  .about .mark { width: 100%; max-width: 250px; height: auto; justify-self: center; }

  /* ---------- odkazy na kanály ---------- */
  .channels { display: flex; gap: 12px 46px; flex-wrap: wrap; }
  .channel { display: flex; align-items: center; gap: 13px; padding: 10px 0; color: var(--ink); text-decoration: none; }
  .channel svg { flex: none; color: var(--navy); }
  .channel b { font: 500 19px/1.2 var(--display); display: block; }
  .channel span { font-size: 14px; color: var(--ink-3); display: block; }
  .channel:hover b { text-decoration: underline; text-underline-offset: .2em; }

  /* ---------- lidé, tabulky ---------- */
  .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(24px, 3vw, 44px); }
  .roster h3 { font-size: 21px; margin-bottom: 10px; }
  .roster p { font-size: 15.5px; line-height: 1.95; color: var(--ink-2); }
  .band-list { display: flex; flex-direction: column; gap: 7px; }
  .band-list div { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 14px; align-items: baseline; }
  .band-list dt { font: 500 13px/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
  .band-list dd { margin: 0; font-size: 16px; }



  .table-wrap { overflow-x: auto; }
  table { border-collapse: collapse; width: 100%; min-width: 470px; font-size: 15.5px; }
  th, td { text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule-soft); }
  th { font: 500 13px/1.4 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--rule); }
  td.num { font-variant-numeric: tabular-nums; color: var(--ink-3); white-space: nowrap; }
  tr.own td:first-child { font-weight: 600; }

  .offer { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px 40px; }
  .offer div h3 { font-size: 19px; font-weight: 500; margin-bottom: 6px; }
  .offer div p { font-size: 15.5px; color: var(--ink-2); }
  .offer div { border-top: 2px solid var(--navy); padding-top: 14px; }

  .call { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
  .call img { width: 54px; height: auto; flex: none; }
  .call div { display: flex; flex-direction: column; gap: 10px; max-width: 60ch; }

  .btn {
    display: inline-block; font: 500 15.5px/1 var(--sans); padding: 14px 22px;
    background: var(--signal); color: var(--signal-ink); text-decoration: none;
  }
  .btn:hover { background: #C42F09; color: #fff; }

  .contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px 44px; }
  .contact h3 { font-size: 19px; margin-bottom: 8px; }
  .contact p { font-size: 16px; color: var(--ink-2); }
  .contact .reg { font-size: 14.5px; color: var(--ink-3); line-height: 1.75; }

  .partners { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
  .partners img { height: 46px; width: auto; }

  /* ---------- patička ---------- */
  .site-footer { background: var(--navy); color: #fff; }
  .footer-in {
    max-width: var(--wrap); margin: 0 auto;
    padding: clamp(36px, 5vw, 58px) var(--gutter) calc(clamp(30px, 4vw, 46px) + env(safe-area-inset-bottom, 0px));
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px 44px; align-items: start;
  }
  .footer-in img.wordmark { height: 40px; width: auto; margin-bottom: 16px; }
  .footer-in p, .footer-in a { font-size: 15px; color: #CFCDEA; }
  .footer-in h3 { font-size: 17px; color: #fff; margin-bottom: 10px; }
  .footer-in a { display: inline-block; }
  .footer-in a:hover { color: #fff; }

  /* ---------- jeden autorský pohyb ---------- */
  @media (prefers-reduced-motion: no-preference) {
    .hero-in > *, .hero-seal { animation: rise .62s cubic-bezier(.16, 1, .3, 1) both; }
    .hero-in > *:nth-child(2) { animation-delay: .06s; }
    .hero-seal { animation-delay: .12s; }
    @keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }
  }

  @media (max-width: 900px) {
    .post-lead { grid-template-columns: 1fr; }
    .about { grid-template-columns: 1fr; }
    .about .mark { max-width: 180px; justify-self: start; }
  }
  @media (max-width: 63.99em) {
    /* plovoucí termín nesmí zakrýt patičku */
    .footer-in { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  }

  @media (max-width: 720px) {
    .event { grid-template-columns: 106px minmax(0, 1fr); }
    .event--next { grid-template-columns: 154px minmax(0, 1fr); }
    .event .where { grid-column: 2; }
    .post { grid-template-columns: 136px minmax(0, 1fr); }
    /* fotka nad textem: skupinová fotka oříznutá na výšku by ukázala pár lidí a text by je zakryl */
    .hero { min-height: 0; }
    .hero-photo { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3; }
    .hero-veil { inset: 0 0 auto; aspect-ratio: 4 / 3; background: linear-gradient(180deg, rgba(36,32,99,0) 55%, var(--navy) 100%); }
    .hero-in { margin-top: -54px; padding-top: 0; padding-bottom: 22px; gap: 10px; }
    .hero-in p { font-size: 16px; }
    .hero-seal { justify-content: stretch; }
    .hero-seal > a { max-width: none; width: 100%; padding: 16px 20px 18px; gap: 4px; }
    .hero-seal .what { font-size: 24px; }
  }
  @media (max-width: 560px) {
    .header-in { gap: 10px; padding-block: 12px; }
    .logo img { height: 34px; }
    .nav { order: 3; width: 100%; margin-left: 0; gap: 0; }
    .nav a { padding: 8px 10px; font-size: 14.5px; }
    .lang { margin-left: auto; }
    .event {
      grid-template-columns: auto minmax(0, 1fr);
      grid-template-areas: "nazev nazev" "kdy kde";
      gap: 7px 10px;
    }
    .event > div { grid-area: nazev; }
    .event time { grid-area: kdy; color: var(--ink-3); }
    .event .where { grid-area: kde; }
    .event .where::before { content: "·"; margin-right: 8px; color: var(--rule); }
    .event .where br { display: none; }
    .event--next { grid-template-areas: "kdy kdy" "nazev nazev" "kde kde"; }
    .event--next time { color: var(--signal); }
    .event--next .where::before { content: none; margin: 0; }
    .post { grid-template-columns: 1fr; gap: 2px; }
    .band-list div { grid-template-columns: 1fr; gap: 0; }
  }

  /* ---------- obrázky: nic nesmí vytlačit stránku do šířky ---------- */
  img { max-width: 100%; height: auto; }

  /* ---------- stránky s obsahem z manageru ---------- */
  .prose--page { max-width: none; }
  .prose--page > p, .prose--page > ul, .prose--page > h2, .prose--page > h3,
  .prose--page > h4, .prose--page > .lede { max-width: 68ch; }
  .prose--page h2 { font-size: clamp(24px, 3vw, 31px); margin-top: 22px; }
  .prose--page h3 { font-size: 21px; margin-top: 10px; }
  .prose--page h4 { font: 600 17px/1.35 var(--sans); color: var(--ink); }
  .prose--page ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
  .prose--page .cols, .prose--page .offer, .prose--page .table-wrap, .prose--page .partners-grid { max-width: none; }

  .shot { margin: 6px 0; }
  .shot img { display: block; max-height: 420px; width: auto; }

  .links { font: 500 15px/1.6 var(--sans); }

  /* ---------- detail vystoupení ---------- */
  .detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); margin-top: 22px; }
  .detail:has(.poster) { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: start; }
  .poster { margin: 0; }
  .poster img { display: block; width: 100%; box-shadow: var(--lift); }
  .back { margin-top: clamp(28px, 4vw, 44px); font: 500 15px/1.4 var(--sans); }
  .back a { text-decoration: none; color: var(--ink-2); }
  .back a:hover { color: var(--ink); }

  /* ---------- partneři ---------- */
  .partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px 40px; margin: 8px 0 22px; }
  .partner { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; }
  .partner img { width: 96px; height: 64px; object-fit: contain; object-position: left center; }
  .partner h3 { font-size: 19px; margin-bottom: 4px; }
  .partner p { font-size: 15px; color: var(--ink-2); }

  /* ---------- Tančili a hráli ---------- */
  table.members { min-width: 420px; }
  table.members td:first-child strong { font-weight: 600; letter-spacing: .02em; }
  .deceased { text-decoration: none; color: var(--ink-3); cursor: help; }

  @media (max-width: 720px) {
    .detail:has(.poster) { grid-template-columns: 1fr; }
    .poster { max-width: 360px; }
  }

  /* ---------- řada malých fotek nad seznamem jmen ---------- */
  .strip-photos { display: flex; gap: 8px; margin-bottom: 14px; align-items: flex-start; }
  .strip-photos img { flex: 1 1 0; min-width: 0; height: auto; }

  /* ---------- rozcestník podstránek ---------- */
  .podstranky {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px;
    margin: 6px 0 clamp(34px, 4vw, 52px);
  }
  .podstranka {
    display: flex; flex-direction: column; gap: 8px; position: relative;
    padding: 22px 56px 24px 24px; background: var(--navy); color: #fff; text-decoration: none;
    border-bottom: 4px solid var(--red);
    box-shadow: var(--lift);
    transition: transform .18s cubic-bezier(.16, 1, .3, 1), background-color .18s ease;
  }
  .podstranka:hover { background: #2E2980; transform: translateY(-2px); color: #fff; }
  .podstranka:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
  .podstranka .nazev { font: 600 23px/1.15 var(--display); }
  .podstranka .popis { font-size: 15px; line-height: 1.5; color: #CFCDEA; }
  .podstranka svg { position: absolute; right: 20px; top: 24px; color: var(--yellow); transition: transform .18s ease; }
  .podstranka:hover svg { transform: translateX(4px); }
  .back--top { margin: 0 0 14px; }

  /* ---------- výzva pro pořadatele ---------- */
  .vyzva {
    margin-left: auto; position: relative; display: flex; flex-direction: column; gap: 5px;
    padding: 14px 54px 16px 20px; background: var(--red); color: #fff; text-decoration: none;
  }
  .vyzva:hover { background: #C42F09; color: #fff; }
  .vyzva:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
  .vyzva .stitek { font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
  .vyzva .nazev { font: 600 22px/1.1 var(--display); }
  .vyzva svg { position: absolute; right: 18px; top: calc(50% - 11px); transition: transform .18s ease; }
  .vyzva:hover svg { transform: translateX(4px); }
  @media (max-width: 560px) { .vyzva { margin-left: 0; width: 100%; } }

  /* ---------- dlouhé texty: Historie, Osobnosti ---------- */
  /* Blokový tok místo flexu, aby fotky mohly stát vedle textu. */
  .prose--page { display: block; }
  .prose--page > * + * { margin-top: 15px; }
  .prose--page > h2 { margin-top: 44px; }
  .prose--page > h3 { margin-top: 30px; }
  .prose--page::after { content: ""; display: table; clear: both; }

  /* Fotky se neořezávají: skupina se skládá do mřížky, každá fotka v celém svém poměru stran. */
  .prose--page > .shot {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px; align-items: start; margin: 6px 0 18px;
  }
  .prose--page > .shot img {
    display: block; width: 100%; height: auto;
    border: 1px solid var(--rule); background: var(--wash);
  }
  .prose--page > .shot:has(> img:only-child) { display: block; }
  .prose--page > .shot > img:only-child { width: auto; max-width: 100%; max-height: 320px; }

  @media (min-width: 900px) {
    /* Pravý sloupec je vedle textu o šířce 68 znaků prázdný — fotky patří tam. */
    .prose--page > .shot { float: right; clear: right; width: min(320px, 30%); margin: 4px 0 22px 40px; }
    .prose--page > .shot > img:only-child { width: 100%; max-height: none; }
  }

  .prose--page blockquote {
    margin: 26px 0; max-width: 60ch; padding-left: 26px;
    border-left: 1px solid var(--rule);
  }
  .prose--page blockquote p { font: italic 400 22px/1.45 var(--display); color: var(--ink); }
  .prose--page .podpis { max-width: 68ch; text-align: right; font-style: italic; color: var(--ink-2); }

  .prose--page .dokument {
    max-width: 68ch; padding: 16px 20px; background: var(--wash); color: var(--ink-2);
  }
  .prose--page .dokument::before {
    content: "PDF"; display: inline-block; margin-right: 12px; vertical-align: 2px;
    font: 700 11px/1 var(--sans); letter-spacing: .12em;
    color: #fff; background: var(--red); padding: 5px 7px;
  }
  .prose--page .dokument a { font-weight: 600; color: var(--ink); }

  .prose--page .verzalky { letter-spacing: .05em; color: var(--navy); }
  .prose--page h2.verzalky { font-size: clamp(22px, 2.6vw, 27px); }
  .prose--page h3.verzalky { font-size: clamp(18px, 2vw, 21px); }
  .prose--page li::marker { color: var(--red); }
