/* Hajcman — projektové CSS child theme (fonty + media queries tříd, které Bricks z _cssCustom striptne). Enqueue: functions.php, verze = filemtime. */
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:200 900;font-display:swap;src:url(../fonts/SourceSans3-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:200 900;font-display:swap;src:url(../fonts/SourceSans3-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Source Sans 3";font-style:italic;font-weight:200 900;font-display:swap;src:url(../fonts/SourceSans3-italic-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Source Sans 3";font-style:italic;font-weight:200 900;font-display:swap;src:url(../fonts/SourceSans3-italic-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* Kotvy pod fixní (sticky) hlavičkou */
.brxe-section[id]{scroll-margin-top:calc(var(--hjc-header-h) + 1rem)}

/* Hajcman — komponentní rozměry (jediné místo pravdy): výška hlavičky, připínák, odsazení karet pod hlavičkou */
:root{--hjc-logo-h:clamp(5.2rem,4.4vw,7.6rem);--hjc-header-pad:var(--space-s);--hjc-header-h:calc(var(--hjc-logo-h) + 2 * var(--hjc-header-pad));--hjc-pin:clamp(4.4rem,3.4vw,5.6rem);--hjc-pod-hlavickou:calc(var(--hjc-header-h) + var(--hjc-pin) / 2 + var(--space-2xs))}
/* Galerie: bez animace při prefers-reduced-motion (Bricks @media v class CSS nepodporuje) */
@media (prefers-reduced-motion:reduce){html .hjc-galerie__seznam .hjc-polaroid{transition:none}}

/* Bricks Tabs: server nevykreslí otevřený panel (ani první), obsah se objeví až po JS a při první návštěvě
   (studená cache) patička uskočí — CLS 0.25–0.41 na lístcích. Do inicializace Bricks ukážeme panel i záložku
   dle data-open-tab. Panel: Bricks ho skrývá `display:none !important` ve vrstvě `bricks` → přebít jde jen
   !important ve stejné vrstvě. Jakmile Bricks přidá .brx-open, pravidla přestanou platit. */
@layer bricks {
  .brxe-tabs-nested:not([data-open-tab]):not(:has(.brx-open)) > .tab-content > .tab-pane:first-child,
  .brxe-tabs-nested[data-open-tab="0"]:not(:has(.brx-open)) > .tab-content > .tab-pane:nth-child(1),
  .brxe-tabs-nested[data-open-tab="1"]:not(:has(.brx-open)) > .tab-content > .tab-pane:nth-child(2),
  .brxe-tabs-nested[data-open-tab="2"]:not(:has(.brx-open)) > .tab-content > .tab-pane:nth-child(3),
  .brxe-tabs-nested[data-open-tab="3"]:not(:has(.brx-open)) > .tab-content > .tab-pane:nth-child(4),
  .brxe-tabs-nested[data-open-tab="4"]:not(:has(.brx-open)) > .tab-content > .tab-pane:nth-child(5),
  .brxe-tabs-nested[data-open-tab="5"]:not(:has(.brx-open)) > .tab-content > .tab-pane:nth-child(6),
  .brxe-tabs-nested[data-open-tab="6"]:not(:has(.brx-open)) > .tab-content > .tab-pane:nth-child(7),
  .brxe-tabs-nested[data-open-tab="7"]:not(:has(.brx-open)) > .tab-content > .tab-pane:nth-child(8),
  .brxe-tabs-nested[data-open-tab="8"]:not(:has(.brx-open)) > .tab-content > .tab-pane:nth-child(9),
  .brxe-tabs-nested[data-open-tab="9"]:not(:has(.brx-open)) > .tab-content > .tab-pane:nth-child(10) {
    display: block !important;
  }
}
.brxe-tabs-nested:not([data-open-tab]):not(:has(.brx-open)) > .tab-menu > .tab-title:first-child,
.brxe-tabs-nested[data-open-tab="0"]:not(:has(.brx-open)) > .tab-menu > .tab-title:nth-child(1),
.brxe-tabs-nested[data-open-tab="1"]:not(:has(.brx-open)) > .tab-menu > .tab-title:nth-child(2),
.brxe-tabs-nested[data-open-tab="2"]:not(:has(.brx-open)) > .tab-menu > .tab-title:nth-child(3),
.brxe-tabs-nested[data-open-tab="3"]:not(:has(.brx-open)) > .tab-menu > .tab-title:nth-child(4),
.brxe-tabs-nested[data-open-tab="4"]:not(:has(.brx-open)) > .tab-menu > .tab-title:nth-child(5),
.brxe-tabs-nested[data-open-tab="5"]:not(:has(.brx-open)) > .tab-menu > .tab-title:nth-child(6),
.brxe-tabs-nested[data-open-tab="6"]:not(:has(.brx-open)) > .tab-menu > .tab-title:nth-child(7),
.brxe-tabs-nested[data-open-tab="7"]:not(:has(.brx-open)) > .tab-menu > .tab-title:nth-child(8),
.brxe-tabs-nested[data-open-tab="8"]:not(:has(.brx-open)) > .tab-menu > .tab-title:nth-child(9),
.brxe-tabs-nested[data-open-tab="9"]:not(:has(.brx-open)) > .tab-menu > .tab-title:nth-child(10) {
  border-bottom-color: var(--primary-d-2) !important;
}
