/* JB Builder CSS 3.2 – 01-base.css
   Základ: rozměry, mezery, šířky objektů, typografie.
   Pořadí registrace v JB Code Manageru: podle čísla v názvu souboru. */

/* ===== base/foundation.css ===== */
/* JB Builder 2.8.23 — one source of truth for dimensions.
   Font and site colors remain owned by the site's external CSS. */
:root {
  --jb-content: 1800px;
  --jb-wide: 1920px;
  --jb-text: 900px;
  --jb-page-gutter: clamp(20px, 4vw, 80px);
  --jb-media-max-height: min(80svh, 800px);
  --jb-primary: var(--primary-color, #5d2a42);
}
.jb-co,
.jb-co * {
  box-sizing: border-box;
}
.jb-co {
  min-width: 0;
}

/* ===== base/spacing.css ===== */
/* JB Builder 2.8.23 — predictable spacing based on available inline space,
   not viewport HEIGHT (the previous 20vh/40vh created oversized side gutters). */
.jb-co-space--none {
  --jb-pad-y: 0px;
  --jb-pad-x: 0px;
  --jb-gap: 0px;
}
.jb-co-space--small {
  --jb-pad-y: clamp(20px, 2.8vw, 40px);
  --jb-pad-x: clamp(16px, 2vw, 32px);
  --jb-gap: clamp(12px, 1.5vw, 24px);
}
.jb-co-space--normal {
  --jb-pad-y: clamp(36px, 4.6vw, 72px);
  --jb-pad-x: clamp(18px, 2.5vw, 48px);
  --jb-gap: clamp(20px, 2.4vw, 40px);
}
.jb-co-space--large {
  --jb-pad-y: clamp(56px, 6.5vw, 104px);
  --jb-pad-x: clamp(20px, 3vw, 56px);
  --jb-gap: clamp(28px, 3.4vw, 56px);
}
.jb-co:not(.jb-co--banner) {
  box-sizing: border-box;
  padding-block: var(--jb-pad-y, 0px);
  padding-inline: var(--jb-pad-x, 0px);
}
/* Nested content has ONE owner for section spacing: the outer layout object. */
.jb-co .jb-co:not(.jb-co--banner),
.jb-co--combinator > .jb-co__inner > .jb-co {
  padding: 0;
  margin: 0;
  min-width: 0;
}
.jb-co .jb-co:not(.jb-co--banner) > .jb-co__inner {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
/* Legacy combinators (no Introduction) still use their original flat markup. */
.jb-co--combinator > .jb-co__inner:not(:has(> .jb-co-combinator__layout)) {
  display: flex;
  flex-direction: column;
  gap: var(--jb-gap, 0px);
}
.jb-co-anchor {
  display: block;
  position: relative;
  height: 0;
  overflow: hidden;
  scroll-margin-top: var(--jb-sn-content-offset, 80px);
}
@media (max-width: 767px) {
  .jb-co-space--small {
    --jb-pad-y: 20px;
    --jb-pad-x: 16px;
    --jb-gap: 12px;
  }
  .jb-co-space--normal {
    --jb-pad-y: 32px;
    --jb-pad-x: 20px;
    --jb-gap: 20px;
  }
  .jb-co-space--large {
    --jb-pad-y: 56px;
    --jb-pad-x: 24px;
    --jb-gap: 28px;
  }
}

/* Every embedded object uses the parent's content box. Backgrounds of its
   internal Cards are not changed; only duplicated outer spacing disappears. */
.jb-co .jb-co--embedded:not(.jb-co--banner) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
}
.jb-co .jb-co--embedded:not(.jb-co--banner) > .jb-co__inner {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/* ===== base/layout.css ===== */
/* JB Builder 2.8.23 — background surfaces are independent of content width.
   Every ordinary object is fluid until it reaches the shared content limit. */
.jb-co > .jb-co__inner {
  width: 100%;
  max-width: var(--jb-content);
  min-width: 0;
  margin-inline: auto;
}
.jb-co-width--narrow > .jb-co__inner {
  max-width: var(--jb-text);
}
.jb-co-width--wide > .jb-co__inner {
  max-width: var(--jb-wide);
}
/* Full and auto fill their parent but cannot enlarge the content indefinitely. */
.jb-co-width--full > .jb-co__inner {
  max-width: none;
}
.jb-co-width--auto > .jb-co__inner {
  max-width: var(--jb-content);
}
/* Viewport mode is the explicit edge-to-edge option, including in MioWeb rows.
   Keep the Section Navigation offset and do not cap the section itself. */
.jb-co-width--viewport {
  position: relative;
  left: auto;
  width: calc(100vw - var(--jb-sn-content-offset, 0px));
  max-width: none;
  margin-left: calc(50% - 50vw + var(--jb-sn-content-offset, 0px) / 2);
  margin-right: 0;
}
.jb-co-width--viewport > .jb-co__inner {
  max-width: none;
}
/* The Combinator is a layout host, not an additional width-constraining card.
   Child objects apply their own max-width, so full-bleed surfaces can remain wide. */
.jb-co--combinator > .jb-co__inner {
  width: 100%;
  max-width: none;
}
/* Banner's inner layer contains the background and must remain full width.
   The readable content is constrained in objects/banner.css instead. */

/* Nested sections are allowed full-width background surfaces, but their
   actual content must respect the same limit as standalone objects. */
.jb-co--combinator > .jb-co__inner > .jb-co:not(.jb-co--banner) > .jb-co__inner,
.jb-co-combinator__item > .jb-co:not(.jb-co--banner) > .jb-co__inner {
  width: 100%;
  max-width: var(--jb-content);
  margin-inline: auto;
}
/* Explicit wide children retain the wider preset; narrow children stay narrow. */
.jb-co--combinator > .jb-co__inner > .jb-co-width--wide:not(.jb-co--banner) > .jb-co__inner,
.jb-co-combinator__item > .jb-co-width--wide:not(.jb-co--banner) > .jb-co__inner {
  max-width: var(--jb-wide);
}
.jb-co--combinator > .jb-co__inner > .jb-co-width--narrow:not(.jb-co--banner) > .jb-co__inner,
.jb-co-combinator__item > .jb-co-width--narrow:not(.jb-co--banner) > .jb-co__inner {
  max-width: var(--jb-text);
}

/* Explicit Full is edge-to-edge within the hosting row. */
.jb-co.jb-co-width--full:not(.jb-co--banner) {
  --jb-pad-x: 0px;
}

/* ===== base/typography.css ===== */
/* JB Builder 2.8.24 — centralized typography.
   Site variables (--font-*, --para-size, --hea*-size, --hero-size) win.
   This file owns visual classes, semantic rhythm, and Composer alignment.
   Visual size classes change only font size, never semantic font or rhythm. */
.jb-co {
  font-family: var(--font-body, "Be Vietnam Pro", sans-serif);
  font-size: var(--para-size, 1rem);
  font-weight: var(--font-body-weight, 400);
  --jb-type-heading: var(--jb-context-heading, var(--primary-color, #5d2a42));
  --jb-type-body: var(--jb-context-body, var(--black-color, #3a3a3a));
  --jb-type-emphasis: var(--jb-context-emphasis, var(--primary-color, #5d2a42));
  --jb-type-link: var(--jb-context-link, var(--primary-color, #5d2a42));
  --jb-type-paragraph-leading: 1.6;
  --jb-type-heading-leading: 1.2;
  --jb-type-paragraph-gap: 1rem;
}
/* Semantics define typeface; visual size classes below only control size.
   <p class="text-h3"> must remain a paragraph, not acquire heading styles. */
.jb-co :is(p, li, blockquote, summary, h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-body, "Be Vietnam Pro", sans-serif);
}
.jb-co .text-label {
  font-size: var(--para-size, 1rem);
}
.jb-co .text-h6 {
  font-size: var(--hea6-size, var(--para-size, 1rem));
}
.jb-co .text-h5 {
  font-size: var(--hea5-size, 1.222rem);
}
.jb-co .text-h4 {
  font-size: var(--hea4-size, 1.444rem);
}
.jb-co .text-h3 {
  font-size: var(--hea3-size, 1.722rem);
}
.jb-co .text-h2 {
  font-size: var(--hea2-size, 2.056rem);
}
.jb-co .text-h1 {
  font-size: var(--hea1-size, 2.944rem);
}
.jb-co .text-hero {
  font-size: var(--hero-size, 3.556rem);
}
.jb-co .text-hero-xl {
  font-size: calc(var(--hero-size, 3.556rem) * 1.18);
}
.jb-co .text-custom {
  font-size: clamp(
    var(--jb-custom-min),
    calc(var(--jb-custom-b1) * 1px + var(--jb-custom-a1) * 1vw),
    var(--jb-custom-ref)
  );
}
@media (min-width: 1367px) {
  .jb-co .text-custom {
    font-size: clamp(
      var(--jb-custom-ref),
      calc(var(--jb-custom-b2) * 1px + var(--jb-custom-a2) * 1vw),
      var(--jb-custom-max)
    );
  }
}
/* Article themes such as MioWeb set a blanket font-size: ... !important on
   .entry_content p. A higher-specificity *normal* declaration cannot override
   that. Limit the necessary !important exception to explicit JB Builder visual
   size classes inside article content. Semantic P/H rhythm is NOT changed. */
body.single-post :is(.entry_content, .entry-content) .jb-co .text-label {
  font-size: var(--para-size, 1rem) !important;
}
body.single-post :is(.entry_content, .entry-content) .jb-co .text-h6 {
  font-size: var(--hea6-size, var(--para-size, 1rem)) !important;
}
body.single-post :is(.entry_content, .entry-content) .jb-co .text-h5 {
  font-size: var(--hea5-size, 1.222rem) !important;
}
body.single-post :is(.entry_content, .entry-content) .jb-co .text-h4 {
  font-size: var(--hea4-size, 1.444rem) !important;
}
body.single-post :is(.entry_content, .entry-content) .jb-co .text-h3 {
  font-size: var(--hea3-size, 1.722rem) !important;
}
body.single-post :is(.entry_content, .entry-content) .jb-co .text-h2 {
  font-size: var(--hea2-size, 2.056rem) !important;
}
body.single-post :is(.entry_content, .entry-content) .jb-co .text-h1 {
  font-size: var(--hea1-size, 2.944rem) !important;
}
body.single-post :is(.entry_content, .entry-content) .jb-co .text-hero {
  font-size: var(--hero-size, 3.556rem) !important;
}
body.single-post :is(.entry_content, .entry-content) .jb-co .text-hero-xl {
  font-size: calc(var(--hero-size, 3.556rem) * 1.18) !important;
}
body.single-post :is(.entry_content, .entry-content) .jb-co .text-custom {
  font-size: clamp(
    var(--jb-custom-min),
    calc(var(--jb-custom-b1) * 1px + var(--jb-custom-a1) * 1vw),
    var(--jb-custom-ref)
  ) !important;
}
@media (min-width: 1367px) {
  body.single-post :is(.entry_content, .entry-content) .jb-co .text-custom {
    font-size: clamp(
      var(--jb-custom-ref),
      calc(var(--jb-custom-b2) * 1px + var(--jb-custom-a2) * 1vw),
      var(--jb-custom-max)
    ) !important;
  }
}
.jb-co .jb-text-script {
  font-family: var(--font-script, "Allura", cursive);
  font-weight: 400;
}
.jb-co .jb-text-bold {
  font-weight: var(--font-body-weight-strong, 700);
}
.jb-co .jb-text-italic {
  font-style: italic;
}
.jb-text-align--left,
.jb-co-align--left {
  text-align: left;
}
.jb-text-align--center,
.jb-co-align--center {
  text-align: center;
}
.jb-text-align--right,
.jb-co-align--right {
  text-align: right;
}
/* Existing pasted markup sometimes contains inline font declarations.
   The PHP sanitizer is authoritative; these rules cover normal spans. */
.jb-co :is(p, h1, h2, h3, h4, h5, h6, summary) span[style] {
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}
.jb-co :is(h1, h2, h3, h4, h5, h6) {
  font-weight: var(--font-heading-weight, 400);
  color: var(--jb-type-heading);
  line-height: var(--jb-type-heading-leading);
  margin-block: 0 0.35em;
}
.jb-co :is(p, li, blockquote) {
  color: var(--jb-type-body);
  line-height: var(--jb-type-paragraph-leading);
}
.jb-co p {
  margin-block: 0 var(--jb-type-paragraph-gap);
}
.jb-co :is(strong, b) {
  color: var(--jb-type-emphasis);
  font-weight: var(--font-body-weight-strong, 700);
}
.jb-co a:not(.jb-co-button) {
  color: var(--jb-type-link);
  text-decoration: underline;
}
.jb-co :is(.text-label, .jb-text-label) {
  line-height: 1.3;
}
.jb-co .jb-co-label-group .jb-text-label {
  line-height: 1;
}
/* Explicit emphasis must survive global reset/heading styles, including legacy
   Cards where <strong>/<b> appears inside a semantic heading. */
.jb-co :is(.jb-co-card__body, .jb-co-combinator__intro) :is(strong, b) {
  font-weight: var(--font-body-weight-strong, 700);
}
/* No trailing paragraph/heading margin in each independent content fragment. */
.jb-co
  :is(
    .jb-co-align--left,
    .jb-co-align--center,
    .jb-co-align--right,
    .jb-co-media-text__copy,
    .jb-co-card__body,
    .jb-co-banner__copy,
    .jb-co-combinator__intro
  )
  > :is(p, h1, h2, h3, h4, h5, h6):last-child {
  margin-block-end: 0;
}
/* Banner text rhythm: the same semantic spacing tokens as above.
   MioWeb resets margins on direct banner text. Restore the base rules,
   regardless of whether a label group is present. Do not use sibling
   margin-top or gap: those change the intended rhythm. */
.jb-co.jb-co--banner .jb-co-banner__copy > :is(h1, h2, h3, h4, h5, h6),
.jb-co.jb-co--banner .jb-co-banner__copy > .jb-co--text .jb-co-align--left > :is(h1, h2, h3, h4, h5, h6),
.jb-co.jb-co--banner .jb-co-banner__copy > .jb-co--text .jb-co-align--center > :is(h1, h2, h3, h4, h5, h6),
.jb-co.jb-co--banner .jb-co-banner__copy > .jb-co--text .jb-co-align--right > :is(h1, h2, h3, h4, h5, h6) {
  margin-block-start: 0 !important;
  /* margin-block-end is set in objects/banner.css (1em, 0 for the last item) */
}
.jb-co.jb-co--banner .jb-co-banner__copy > p,
.jb-co.jb-co--banner .jb-co-banner__copy > .jb-co--text .jb-co-align--left > p,
.jb-co.jb-co--banner .jb-co-banner__copy > .jb-co--text .jb-co-align--center > p,
.jb-co.jb-co--banner .jb-co-banner__copy > .jb-co--text .jb-co-align--right > p {
  margin-block-start: 0 !important;
  margin-block-end: var(--jb-type-paragraph-gap) !important;
}
/* A Text object is one content item in the Banner. Its internal text keeps
   the same semantics, while the object itself gets one trailing rhythm gap. */
.jb-co.jb-co--banner .jb-co-banner__copy > .jb-co--text {
  margin-block-start: 0 !important;
  margin-block-end: var(--jb-type-paragraph-gap) !important;
}
/* Exceptions: independent content fragment end and the final Banner item. */
.jb-co.jb-co--banner .jb-co-banner__copy > :is(p, h1, h2, h3, h4, h5, h6):last-child,
.jb-co.jb-co--banner .jb-co-banner__copy > .jb-co--text:last-child,
.jb-co.jb-co--banner
  .jb-co-banner__copy
  > .jb-co--text
  :is(.jb-co-align--left, .jb-co-align--center, .jb-co-align--right)
  > :is(p, h1, h2, h3, h4, h5, h6):last-child {
  margin-block-end: 0 !important;
}
/* Label-group has its own spacing rules in objects/banner.css. */

/* Embedded buttons form independent content items, without nested padding. */
.jb-co
  :is(
    .jb-co-align--left,
    .jb-co-align--center,
    .jb-co-align--right,
    .jb-co-media-text__copy,
    .jb-co-card__body,
    .jb-co-banner__copy,
    .jb-co-combinator__intro
  )
  > .jb-co--button {
  display: block;
  padding: 0;
  margin-block: 1.75rem;
}
.jb-co
  :is(
    .jb-co-align--left,
    .jb-co-align--center,
    .jb-co-align--right,
    .jb-co-media-text__copy,
    .jb-co-card__body,
    .jb-co-banner__copy,
    .jb-co-combinator__intro
  )
  > .jb-co--button
  > .jb-co__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.jb-co
  :is(
    .jb-co-align--left,
    .jb-co-align--center,
    .jb-co-align--right,
    .jb-co-media-text__copy,
    .jb-co-card__body,
    .jb-co-banner__copy,
    .jb-co-combinator__intro
  )
  > .jb-co--button:first-child {
  margin-block-start: 0;
}
.jb-co
  :is(
    .jb-co-align--left,
    .jb-co-align--center,
    .jb-co-align--right,
    .jb-co-media-text__copy,
    .jb-co-card__body,
    .jb-co-banner__copy,
    .jb-co-combinator__intro
  )
  > .jb-co--button:last-child {
  margin-block-end: 0;
}
/* The button renderer creates an extra alignment wrapper. A button embedded
   in a Text object must follow the containing object's alignment. */
.jb-co--text
  > .jb-co__inner
  > .jb-co-align--left
  > .jb-co--button
  :is(.jb-co-align--left, .jb-co-align--center, .jb-co-align--right) {
  text-align: left;
}
.jb-co--text
  > .jb-co__inner
  > .jb-co-align--center
  > .jb-co--button
  :is(.jb-co-align--left, .jb-co-align--center, .jb-co-align--right) {
  text-align: center;
}
.jb-co--text
  > .jb-co__inner
  > .jb-co-align--right
  > .jb-co--button
  :is(.jb-co-align--left, .jb-co-align--center, .jb-co-align--right) {
  text-align: right;
}
