/* Elementor integration only. The visual design is copied in reference-hero.css. */
.jn-hero, .jn-hero * { box-sizing: border-box; }
.jn-hero { background: #0f0f0f; width: 100%; }
.jn-hero .jn-hero__content { position: relative; width: 100%; max-width: 1290px; height: 100%; margin-inline: auto; }
.jn-hero .site-header { padding: 0; width: auto; gap: 0; background: transparent !important; color: #fff; }
.jn-hero .site-header-logo { color: inherit; }
.jn-hero .site-nav { flex: initial; flex-wrap: nowrap; min-width: 0; }
.jn-hero .site-nav a { padding: 0; }
.jn-hero .jn-header__nav-text { font: inherit; line-height: inherit; }
.jn-hero .site-nav a:hover .jn-header__nav-text { color: inherit; }
.jn-hero .site-nav-toggle { flex: initial; color: #fff; border-radius: 0; }
.jn-hero .jn-header__brand { position: relative; }
.jn-hero .jn-header__media { border: 0; border-radius: 0; object-fit: contain; }
.jn-hero .hero-title-line .jn-hero__media { display: block; width: 100%; max-width: 100%; height: auto; }
.jn-hero .hero-title-line { color: #fff; font: 650 clamp(32px, 8vw, 130px)/1 "Aspekta Variable", Arial, sans-serif; letter-spacing: -.055em; text-align: center; }
.jn-hero .jn-hero__icon { display: contents; }
.jn-hero .jn-hero__badge-text { font: inherit; line-height: inherit; }
.jn-hero :is(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.jn-hero.is-text-editing .button-label, .elementor-editor-active .jn-hero .button-label { height: auto; overflow: visible; }
.jn-hero.is-text-editing .button-label-track, .elementor-editor-active .jn-hero .button-label-track { transform: none; }
.elementor-editor-active .jn-hero .button-label-line[aria-hidden="true"] { display: none; }

/* Reset the standalone header's tablet rules; the reference collapses at 1024px. */
@media (min-width: 1025px) {
  .jn-hero .site-header { --jn-logo-width: 165px; }
  .jn-hero .site-header-logo, .jn-hero .jn-header__media { width: 165px; height: 52px; }
  .jn-hero .site-nav { position: static; display: flex; flex-direction: row; align-items: center; padding: 0; border-radius: 0; background: transparent; backdrop-filter: none; box-shadow: none; }
  .jn-hero .site-header-button { display: inline-flex; }
  .jn-hero .site-nav-toggle { display: none; }
}
@media (max-width: 900px) {
  /* Saved badge positions apply only to desktop, as their controls describe. */
  .jn-hero .hero-badge-row .hero-badge { top: auto !important; left: auto !important; }
}
@media (max-width: 1024px) {
  .jn-hero .site-header { --jn-logo-width: 130px; }
  .jn-hero .jn-header__media { height: auto; }
  .jn-hero .site-nav { align-items: stretch; background: var(--jn-mobile-background, rgb(15 10 35 / 92%)); }
}
@media (max-width: 520px) {
  .jn-hero .site-header { --jn-logo-width: 118px; }
}

/* Compatibility for pages that still use the earlier two-widget container. */
.jednotka-hero-layout { position: relative; }
.jednotka-hero-layout .elementor-widget-jednotka-header { position: absolute; top: 16px; left: 16px; width: calc(100% - 32px); z-index: 20; }
.jednotka-hero-layout .elementor-widget-jednotka-header .jn-header { background: transparent !important; }

/* Keep the navigation aligned with the contained hero elements on wide screens. */
@media (min-width: 1494px) {
  .jn-hero .site-header { left: calc((100% - 1290px) / 2); right: calc((100% - 1290px) / 2); }
}
