/* Berounské běhy · informační stránky (doprava, kontakt, FAQ, galerie, novinky)
   Doplňuje site.css, nic v něm nepřepisuje. Breakpointy 1024 px a 720 px. */

/* Filtry skrývají přes atribut hidden, i u prvků s display:grid/block */
[data-faq] [hidden], [data-gallery] [hidden], [data-news] [hidden] { display: none !important; }
/* Kotvy pod lepicí hlavičkou */
#poradatele, #partneri, #dobrovolnici, .album-open { scroll-margin-top: 100px; }

/* ---------- Tmavý pruh s nadpisem ---------- */
.band { background: var(--ink); color: #fff; padding: 64px 0 48px; }
.crumbs { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--lime); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 10px; }
.band h1 { font-size: clamp(52px, 6.2vw, 88px); margin-top: 20px; }
.band .band-lead { margin-top: 18px; font-size: 17px; color: #C9CDD3; max-width: 760px; }
.band .band-lead a { color: #fff; }

/* ---------- Filtrovací pilulky (FAQ, galerie, novinky) ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-family: var(--head); font-weight: 700; font-size: 18px; text-transform: uppercase; color: var(--ink); cursor: pointer; line-height: 1; }
.pill.c-b10 { color: var(--b10); }
.pill.c-bp { color: var(--bp); }
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.toolbar .input { max-width: 320px; border-radius: 999px; min-height: 44px; }

/* ---------- Doprava ---------- */
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.place { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.place-map { position: relative; height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--b10-soft); color: var(--b10); text-decoration: none; font-size: 13px; font-weight: 600; overflow: hidden; }
.place-map img { position: absolute; right: 24px; bottom: 0; height: 88%; width: auto; opacity: .22; }
.place-map .pin { width: 26px; height: 26px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px #fff; position: relative; }
.place-map span { position: relative; }
.place-map:hover span { text-decoration: underline; }
.place.bp .place-map { background: var(--bp-soft); color: var(--bp); }
.place-body { padding: 32px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.place .eyebrow { color: var(--b10); }
.place.bp .eyebrow { color: var(--bp); }
.place h2 { font-size: clamp(34px, 3.2vw, 44px); margin-top: 18px; }
.place .addr { font-weight: 600; margin-top: 12px; }
.gps { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--b10-soft); color: var(--b10); font-size: 14px; font-weight: 700; }
.place.bp .gps { background: var(--bp-soft); color: var(--bp); }
.gps code { font-family: inherit; }
.place-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.how { list-style: none; margin: 20px 0 0; padding: 0; }
.how li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.how .ic { display: inline-flex; align-items: center; justify-content: center; height: 44px; border-radius: 10px; background: var(--b10-soft); color: var(--b10); font-family: var(--head); font-weight: 700; font-size: 15px; text-transform: uppercase; }
.place.bp .how .ic { background: var(--bp-soft); color: var(--bp); }
.how h3 { font-size: 22px; text-transform: none; line-height: 1.1; }
.how p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.tip { margin-top: 24px; display: flex; align-items: center; gap: 20px; padding: 24px 28px; border-radius: var(--radius); background: var(--soft); font-weight: 600; }
.tip b { font-family: var(--head); font-size: 28px; text-transform: uppercase; color: var(--bp); line-height: 1; flex: none; }

/* ---------- Kontakt ---------- */
.kt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kt-card { border-radius: var(--radius); padding: 36px 32px; background: var(--soft); display: flex; flex-direction: column; gap: 12px; }
.kt-card .eyebrow { color: var(--muted); }
.kt-card h2, .kt-card h3 { font-size: 36px; }
.kt-card p { font-size: 14px; color: var(--muted); }
.kt-card .mail { font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; margin-top: auto; overflow-wrap: anywhere; }
.kt-card .mail:hover { text-decoration: underline; }
.kt-card.dark { background: var(--ink); color: #fff; }
.kt-card.dark .eyebrow { color: var(--lime); }
.kt-card.dark p { color: #C9CDD3; }
.kt-card.dark .mail { color: #fff; }
.kt-person { margin-top: 20px; display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.kt-avatar { width: 120px; height: 120px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 44px; color: var(--muted); }
.kt-person .eyebrow { color: var(--muted); }
.kt-person h2 { font-size: 44px; margin-top: 12px; }
.kt-person p { margin-top: 10px; color: var(--muted); max-width: 720px; }
.kt-person p a { color: var(--ink); font-weight: 600; }
.kt-info { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kt-info > div { border-radius: var(--radius-sm); background: var(--soft); padding: 24px; }
.kt-info h3 { font-size: 22px; }
.kt-info p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.kt-info a { color: var(--ink); font-weight: 600; }
.kt-partners { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.kt-partners .partner-logos { justify-content: flex-start; gap: 48px; margin-top: 0; }
.kt-partners .partner-logos img { height: 80px; }
.kt-partners p { margin-top: 16px; color: var(--muted); }
.kt-partners .row { margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq-group + .faq-group { margin-top: 36px; }
.faq-group > h2 { font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--ink); margin-bottom: 14px; line-height: 1.4; }
.faq-group.b10 > h2 { color: var(--b10); }
.faq-group.bp > h2 { color: var(--bp); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 0 24px; }
.faq-list details[open] { border-color: var(--ink); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--head); font-weight: 700; font-size: 22px; text-transform: uppercase; line-height: 1.1; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--body); font-size: 26px; font-weight: 600; line-height: 1; color: var(--ink); flex: none; }
.faq-group.b10 summary::after { color: var(--b10); }
.faq-group.bp summary::after { color: var(--bp); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list .a { padding: 0 0 22px; font-size: 15px; color: var(--muted); max-width: 860px; }
.faq-list .a p + p, .faq-list .a p + ul, .faq-list .a ul + p, .faq-list .a table + p { margin-top: 10px; }
.faq-list .a ul { margin: 10px 0 0; padding-left: 20px; }
.faq-list .a a { color: var(--ink); font-weight: 600; }
.faq-list .a strong { color: var(--ink); }
.faq-list .a .table-wrap { margin-top: 12px; }
.faq-list .a table.t { font-size: 14px; }
.faq-empty { padding: 24px; border-radius: var(--radius-sm); background: var(--soft); }

/* ---------- Galerie ---------- */
.albums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.album { text-decoration: none; display: block; }
.album .photo { aspect-ratio: 16 / 7; border-radius: var(--radius-sm); }
.album .photo .chip { position: absolute; left: 16px; bottom: 16px; z-index: 2; }
.album h3 { font-size: 30px; margin-top: 16px; }
.album p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.album:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; }
.album-open { scroll-margin-top: 100px; }
.album-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.album-head .eyebrow { color: var(--bp); }
.album-open.b10 .album-head .eyebrow { color: var(--b10); }
.album-head h2 { font-size: clamp(40px, 4vw, 56px); margin-top: 10px; }
.num-search { display: flex; flex-direction: column; gap: 6px; min-width: 260px; }
.num-search label { font-size: 13px; font-weight: 600; }
.num-search .input { border-radius: 999px; }
.num-search .input:disabled { background: var(--soft); color: var(--muted); cursor: not-allowed; }
.num-search small { font-size: 12px; color: var(--muted); }
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 12px; }
.masonry button { display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--soft); cursor: zoom-in; }
.masonry button.tall { grid-row: span 2; }
.masonry.sq-grid { grid-auto-rows: auto; }
.masonry.sq-grid button { aspect-ratio: 1 / 1; height: auto; }
.masonry img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.masonry button:hover img { transform: scale(1.03); }

/* Lightbox (dialog) */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14,17,22,.96); color: #fff; }
.lightbox::backdrop { background: rgba(14,17,22,.96); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.lb-count { font-family: var(--head); font-weight: 700; font-size: 22px; }
.lb-stage { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 16px; min-height: 0; }
.lb-stage img { max-width: min(100%, 1600px); max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lb-cap { padding: 14px 20px 22px; text-align: center; font-size: 14px; color: #C9CDD3; }
.lightbox .circle-btn { flex: none; }
.lb-close { font-size: 26px; }

/* ---------- Novinky ---------- */
.nv-featured { display: grid; grid-template-columns: 1.3fr 1fr; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff; }
.nv-featured .photo { border-radius: 0; min-height: 440px; }
.nv-copy { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.nv-copy h2 { font-size: clamp(36px, 3.6vw, 52px); }
.nv-copy p { color: #C9CDD3; }
.nv-copy .meta { font-size: 13px; color: #9AA0A8; }
.nv-copy .chip { align-self: flex-start; }
.nv-copy .row { margin-top: 8px; }
.nv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 24px; margin-top: 28px; }
.nv-card .photo { aspect-ratio: 434 / 220; border-radius: var(--radius-sm); }
.nv-card .eyebrow { display: block; margin-top: 18px; color: var(--ink); }
.nv-card .eyebrow.c-b10 { color: var(--b10); }
.nv-card .eyebrow.c-bp { color: var(--bp); }
.nv-card h2 { font-size: 28px; margin-top: 10px; line-height: 1; }
.nv-card p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.nv-card .meta { font-size: 13px; color: var(--muted); margin-top: 10px; }
.nv-card a { text-decoration: none; }
.nv-card a:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; }
.nv-card .more { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 14px; }
.nv-letter { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px; border-radius: var(--radius); background: var(--soft); }
.nv-letter h2 { font-size: 40px; }
.nv-letter p { margin-top: 8px; color: var(--muted); }
.nv-letter .nl-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.nv-letter small { font-size: 12px; color: var(--muted); max-width: 320px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .places, .kt-partners { grid-template-columns: 1fr; }
  .kt-cards, .kt-info, .albums, .nv-grid { grid-template-columns: 1fr 1fr; }
  .nv-featured { grid-template-columns: 1fr; }
  .nv-featured .photo { min-height: 320px; }
  .masonry { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 720px) {
  .band { padding: 40px 0 32px; }
  .crumbs { font-size: 11px; letter-spacing: .14em; }
  .band h1 { font-size: 48px; margin-top: 14px; }
  .band .band-lead { font-size: 15px; }
  .pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .pill { flex: none; font-size: 16px; min-height: 38px; padding: 0 14px; }
  .toolbar .input { max-width: none; }
  .toolbar > * { width: 100%; }
  .place-map { height: 160px; }
  .place-map img { display: none; }
  .place-body { padding: 24px 20px 20px; }
  .place-ctas .btn { flex: 1; }
  .how li { grid-template-columns: 48px 1fr; gap: 12px; }
  .tip { flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; }
  .kt-cards, .kt-info, .albums, .nv-grid { grid-template-columns: 1fr; }
  .kt-card { padding: 26px 22px; }
  .kt-card h2, .kt-card h3 { font-size: 30px; }
  .kt-person { grid-template-columns: 1fr; gap: 16px; padding: 24px 20px; }
  .kt-avatar { width: 80px; height: 80px; font-size: 30px; }
  .kt-person h2 { font-size: 34px; }
  .kt-partners .partner-logos { gap: 28px; }
  .kt-partners .partner-logos img { height: 60px; }
  .faq-list details { padding: 0 16px; }
  .faq-list summary { font-size: 19px; padding: 16px 0; }
  .album h3 { font-size: 26px; }
  .num-search { min-width: 0; width: 100%; }
  .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 8px; }
  .lb-stage .circle-btn { display: none; }
  .lb-stage { padding: 0 8px; }
  .nv-copy { padding: 28px 22px; }
  .nv-featured .photo { min-height: 220px; }
  .nv-letter { padding: 24px 20px; }
  .nv-letter h2 { font-size: 32px; }
  .nv-letter .nl-right { align-items: stretch; text-align: left; width: 100%; }
}
/* Článek novinky */
.nv-figure { margin: 0 0 28px; }
.nv-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); }
.nv-figure figcaption { margin-top: 8px; }
.nv-h { margin: 36px 0 12px; font-size: 28px; }
.prose .t th:nth-child(n+3) { text-align: right; }
@media (max-width: 560px) {
  .prose .t { font-size: 13px; }
  .prose .t th, .prose .t td { padding: 8px 6px; white-space: nowrap; }
  .prose .t td:nth-child(2) { white-space: normal; }
  .prose .t .nv-long { display: none; }
}
@media (min-width: 561px) { .prose .t .nv-short { display: none; } }
