/* Jediný princip pro tři výslovně označené rozcestníky; ostatní layouty se nemění. */
#main-wrapper.pc-hub-row {
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center;
  gap: 18px; inline-size: min(100%, calc(100vw - 2rem));
}
#main-wrapper.pc-hub-row::before, #main-wrapper.pc-hub-row::after { content: none; display: none; }
#main-wrapper.pc-hub-row > .pc-hub-column {
  box-sizing: border-box; display: flex; flex-direction: column;
  flex: 1 1 302px; max-width: 302px; min-width: 0; width: auto;
  float: none; margin: 0; padding: 0;
}
.pc-hub-row > #content-wrapper > #content { display: flex; flex-direction: column; flex: 1; min-width: 0; width: 100%; }
#main-wrapper.pc-hub-row .sidebar-middle, #main-wrapper.pc-hub-row .content-middle {
  box-sizing: border-box; display: flex; flex-direction: column; flex: 1 0 auto; min-width: 0;
}
.pc-hub-row #content-bottom { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pc-hub-row .pc-hub-column .block-wrapper,
.pc-hub-row .pc-hub-column .block,
.pc-hub-row .pc-hub-column .block > .content,
.pc-hub-row .pc-hub-column .block > .content > .view,
.pc-hub-row .pc-hub-column .view > .view-content,
.pc-hub-row .pc-hub-column .view-content > .views-row {
  display: flex; flex-direction: column; flex: 1; min-width: 0;
}
#main-wrapper.pc-hub-row .pc-hub-column .block-wrapper { margin: 0; clear: none; }
/* Staré marginy wrapperů ležely až pod CTA; jejich výška nesmí posouvat patu karty. */
#main-wrapper.pc-hub-row .pc-hub-column .block > .content > .view { margin-bottom: 0; }
.pc-hub-row .pc-hub-column .view-content > .pc-hub-teaser { flex: 0 0 auto; }
.pc-hub-row .pc-hub-column .views-field-field-block-link-url,
.pc-hub-row .pc-hub-column .view-footer {
  display: flex; justify-content: flex-end; align-items: flex-end;
  flex: 0 0 auto; margin-top: auto; padding-top: var(--pc-panel-inset); height: auto; line-height: normal;
  text-align: right; background: none;
}
.pc-hub-row .views-field-field-block-link-url > .field-content { display: flex; justify-content: flex-end; }
/* Koncové okraje obsahu nesmějí přičítat další mezeru před CTA. */
.pc-hub-row .view-content > .views-row:last-child,
.pc-hub-row .views-field-body .field-content > :last-child,
.pc-hub-row .views-field-field-page-perex-value .field-content > :last-child { margin-bottom: 0; }
.pc-hub-row .pc-hub-column a.pc-hub-cta,
.pc-article-list a.pc-hub-cta {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.4em; padding: .35em .8em; border: 1px solid rgba(255,255,255,.5); border-radius: .3em;
  background: transparent; color: rgba(255,255,255,.85); font-size: 1.125rem; font-style: italic; line-height: 1.25;
  text-decoration: none; transition: color .15s, border-color .15s;
}
.pc-hub-row .pc-hub-column a.pc-hub-cta:hover,
.pc-article-list a.pc-hub-cta:hover { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.pc-hub-row a:focus-visible, .pc-article-list a:focus-visible { outline: 2px solid #dfb77c; outline-offset: 3px; }
.pc-hub-row .views-field-title > .field-content { margin: 0; padding: 0; font: inherit; }
.pc-hub-row a.pc-hub-title-link { color: inherit; text-decoration: none; }
.pc-hub-row a.pc-hub-title-link:hover { text-decoration: underline; }
.pc-hub-row a.pc-hub-image-link { display: inline-block; max-width: 100%; }
.pc-hub-row .pc-hub-column img { max-width: 100%; height: auto; }
.pc-hub-row .pc-hub-section-title {
  background: transparent url('/assets/design/theme/bg-sidebar-block-title.png') center bottom no-repeat;
}
.pc-hub-row .pc-hub-section-title a { color: inherit; text-decoration: none; }
.pc-hub-row .pc-hub-section-title a:hover { text-decoration: underline; }
.pc-hub-row .pc-hub-teaser .views-field-title { font-size: 1.125rem; line-height: 1.35; font-style: normal; }

/* REBUILD-04 I02: jen vnitřní upoutávky levé karty CZ homepage. */
#main-wrapper.pc-hub-row #sidebar-first .pc-home-event {
  display: flex; flex-direction: column; flex: 0 0 auto; min-width: 0;
}
/* Stejný ornament jako pod nadpisem karty, pouze mezi sousedními upoutávkami. */
#main-wrapper.pc-hub-row #sidebar-first .pc-home-event + .pc-home-event::before {
  content: ''; display: block; flex: 0 0 2px; height: 2px; margin: 28px 0;
  background: transparent url('/assets/design/theme/bg-sidebar-block-title.png') center center no-repeat;
}
/* Typografie a odrážka seznamu Sochy; bez třídy views-field-title a její dělicí čáry. */
#main-wrapper.pc-hub-row #sidebar-first .pc-home-event__title {
  margin: 0 0 14px; padding: 0 0 0 14px;
  background: transparent url('/assets/design/theme/bg-secondary-li.png') left 6px no-repeat;
  font-size: 18px; line-height: 1.35; font-weight: bold; font-style: italic;
}
#main-wrapper.pc-hub-row #sidebar-first .pc-home-event__title a,
#main-wrapper.pc-hub-row #sidebar-first .pc-home-event__title a:visited { color: #fff; text-decoration: none; }
#main-wrapper.pc-hub-row #sidebar-first .pc-home-event__title a:hover,
#main-wrapper.pc-hub-row #sidebar-first .pc-home-event__title a:focus-visible { color: #fff; text-decoration: underline; }
#main-wrapper.pc-hub-row #sidebar-first .pc-home-event__image { display: block; width: 100%; }
#main-wrapper.pc-hub-row #sidebar-first .pc-home-event__image img {
  display: block; width: 100%; height: auto; border-radius: 8px;
}
#main-wrapper.pc-hub-row #sidebar-first .pc-home-event__perex {
  margin: 14px 0 0; line-height: 1.4; max-height: 2.8em; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow-wrap: anywhere;
}
/* Výškový limit je fallback pro prohlížeče bez line-clamp; zdrojový perex zůstává celý. */
#main-wrapper.pc-hub-row #sidebar-first .pc-home-event__action { margin-top: 14px; text-align: right; }

/* REBUILD-08 I02 / K01: pouze dvě vybrané upoutávky v existujícím spodním panelu. */
.pc-featured { min-width: 0; }
.pc-featured .pc-featured__heading {
  margin: 0 0 var(--pc-heading-content-gap);
  padding: var(--pc-heading-top) 0 var(--pc-heading-line-gap);
  border-bottom: 1px solid var(--pc-panel-edge);
  font: italic 400 24px/32px "Times New Roman", serif; color: #fff;
}
.pc-featured .pc-featured__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 0;
}
.pc-featured .pc-featured__story {
  box-sizing: border-box; padding-inline: 16px;
  display: grid; grid-template-rows: subgrid; grid-row: span 2; min-width: 0; margin: 0;
}
.pc-featured .pc-featured__title {
  margin: 0; padding: 0 0 0 14px;
  background: transparent url('/assets/design/theme/bg-secondary-li.png') left 6px no-repeat;
  font-size: 18px; line-height: 1.35; font-weight: bold; font-style: italic;
}
.pc-featured .pc-featured__title a,
.pc-featured .pc-featured__title a:visited { color: #fff; text-decoration: none; }
.pc-featured .pc-featured__title a:hover { text-decoration: underline; }
.pc-featured .pc-featured__body {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px; align-items: start; min-width: 0; padding-bottom: 14px;
}
/* Společný řádek nadpisů končí nad dělicí čárou, včetně zalomených titulů. */
.pc-featured .pc-featured__story + .pc-featured__story .pc-featured__body::before {
  content: ''; position: absolute; inset-block: 0; inset-inline-start: -16px;
  width: 1px; background-color: var(--pc-panel-edge); transform: translateX(-50%);
}
.pc-featured .pc-featured__image { display: block; min-width: 0; }
.pc-featured .pc-featured__image img { display: block; width: 100%; max-width: 254px; height: auto; border-radius: 8px; }
.pc-featured .pc-featured__text {
  display: flex; flex-direction: column; align-self: stretch; min-width: 0; min-height: 0;
  contain: size; overflow-wrap: anywhere;
}
.pc-featured .pc-featured__text:only-child { grid-column: 1 / -1; contain: none; }
.pc-featured .pc-featured__perex > :first-child { margin-top: 0; }
.pc-featured .pc-featured__perex > :last-child { margin-bottom: 0; }
.pc-featured .pc-featured__action {
  position: relative; isolation: isolate; flex: 0 0 auto;
  margin-top: auto; padding-top: 14px; text-align: right;
}
/* Výšku těl určují obrázky; křídlo je mimo tok, částečně pod tlačítkem. */
.pc-featured .pc-featured__action::after {
  content: ''; position: absolute; right: 0; bottom: -6px; width: 64px; height: 58px; z-index: 0;
  background: url('/assets/design/theme/bg-column-front.png') center / contain no-repeat;
  transform: scaleY(-1); pointer-events: none;
}
.pc-featured a.pc-hub-cta {
  position: relative; z-index: 1; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.4em; padding: .35em .8em; border: 1px solid rgba(255,255,255,.5); border-radius: .3em;
  background: transparent; color: rgba(255,255,255,.85); font-size: 1.125rem; font-style: italic; line-height: 1.25;
  text-decoration: none; transition: color .15s, border-color .15s;
}
.pc-featured a.pc-hub-cta:hover { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.pc-featured a:focus-visible { outline: 2px solid #dfb77c; outline-offset: 3px; }
