@font-face {
  font-family: "Ribbon Junicode";
  src: url("../../legacy-home/assets/home-card-link-20261123-r24/home-current/selected-serif-fonts/junicode.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@media (max-width: 743px) {
  @layer mobile-masthead {
    .proothisis-inner-page .header-wrapper-2026 {
      --ref-surface: var(--proothisis-page);
      --ref-ink: var(--proothisis-ink);
      --wordmark-secondary: #646465;
      --aligned-gutter-left: max(4vw, env(safe-area-inset-left));
      --aligned-gutter-right: max(4vw, env(safe-area-inset-right));
    }
    html[data-hero-theme=dark] .proothisis-inner-page .header-wrapper-2026 {
      --ref-ink: #f6f5f3;
      --wordmark-secondary: #aeaeaf;
    }
    #site-header { border: 0 !important; background: var(--ref-surface) !important; }
    #site-header::after { content: none !important; }
    #site-header .header-inner {
      position: relative !important;
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) repeat(3, auto) !important;
      align-items: center !important;
      height: 64px !important;
      padding: 0 var(--aligned-gutter-right) 0 var(--aligned-gutter-left) !important;
      gap: clamp(2px, 1vw, 6px) !important;
    }
    #site-header .header-actions { display: contents !important; }
    #site-header :is(.desktop-nav, .header-cta, .prod-header-start, .reference-brand-ink),
    #site-header .header-logo::before { display: none !important; }
    #site-header :is(.header-logo, #header-lang-btn, #header-theme-btn, #mobile-menu-btn) {
      grid-row: 1 !important;
      position: static !important;
      display: grid !important;
      place-items: center !important;
      margin: 0 !important;
      padding: 0 !important;
      background: transparent !important;
      color: var(--ref-ink) !important;
      border: 0 !important;
      box-shadow: none !important;
      transform: none !important;
      height: 44px !important;
    }
    #site-header .header-logo { grid-column: 1; justify-self: start !important; width: auto !important; }
    #site-header .header-logo-text {
      display: block !important;
      color: color-mix(in srgb, var(--wordmark-secondary) 90%, var(--ref-ink)) !important;
      font: 500 28px/1 "Ribbon Junicode", Georgia, serif !important;
      -webkit-text-stroke: 1px currentColor !important;
      letter-spacing: -.045em !important;
      transform: translateY(2px) !important;
      transform-origin: left center;
      scale: 1.1;
      opacity: 1 !important;
    }
    #site-header #header-lang-btn { grid-column: 2; width: 44px !important; min-width: 44px !important; }
    #site-header :is(.header-flag-icon, .header-flag-icon svg) { width: 27px !important; height: 18px !important; }
    #site-header .header-flag-icon { display: flex !important; scale: 1.2; }
    #site-header #header-theme-btn { grid-column: 3; width: 40px !important; min-width: 40px !important; height: 40px !important; }
    #site-header .hero-theme-switch-thumb { scale: 1.24; translate: -3px 0; }
    #site-header #mobile-menu-btn { grid-column: 4; justify-self: end !important; }
    html[data-wheel-scrolled] .header-wrapper-2026:not(:has(.is-menu-open)),
    html[data-wheel-scrolled] #site-header:not(.is-menu-open),
    html[data-wheel-scrolled] #site-header:not(.is-menu-open) .header-inner {
      background: transparent !important;
      box-shadow: none !important;
      backdrop-filter: none !important;
      transition: none !important;
      pointer-events: none !important;
    }
    html[data-wheel-scrolled] #site-header:not(.is-menu-open) #mobile-menu-btn { pointer-events: auto !important; }
    html[data-wheel-scrolled] #site-header:not(.is-menu-open) :is(.header-logo, #header-lang-btn, #header-theme-btn) {
      visibility: hidden !important;
      opacity: 0 !important;
      transition: none !important;
    }
  }
}
