/**
 * KOTLYARS v5 bridge — skin-2 only.
 * Visual styles come from /design-preview/shared/{brand,v3-home,v5-visual}.css
 * This file only hides Journal chrome and keeps page layout clean.
 */
html.skin-2 body.v5v,
html.skin-2 body.v3,
html.skin-2 body.bg-grain {
  /* Never use background shorthand here — it wipes etalon .bg-grain images */
  font-family: var(--font-ui, 'Figtree', system-ui, sans-serif) !important;
}

/* Ensure logo lockup sizes even before body.v3 is marked */
html.skin-2 .brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
}
html.skin-2 .brand-lockup img.logo-header,
html.skin-2 .v3-top .brand-lockup img {
  display: block !important;
  width: auto !important;
  height: clamp(48px, 5.2vw, 72px) !important;
  max-width: min(340px, 42vw) !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: left center !important;
  background: transparent !important;
  flex-shrink: 0 !important;
}
html.skin-2 .v3-join {
  background: var(--gold, #c8a65a) !important;
  color: var(--navy, #0b1726) !important;
}

/* Hide Journal desktop/mobile chrome — replaced by .site-header.v3-header */
html.skin-2 .top-bar,
html.skin-2 .header,
html.skin-2 header.header,
html.skin-2 .header-classic,
html.skin-2 .desktop-main-menu-wrapper,
html.skin-2 .desktop-main-menu-container,
html.skin-2 .mobile-header,
html.skin-2 .mobile-container,
html.skin-2 .mobile-bar,
html.skin-2 .sticky-wrapper,
html.skin-2 .header-sticky {
  display: none !important;
}

/* Hide promo video + demo modules */
html.skin-2 .module-text-1150.kotlyars-promo-video,
html.skin-2 .module-text-1150,
html.skin-2.route-common-home .module-title-639,
html.skin-2.route-common-home .module-brands,
html.skin-2.route-common-home .module-title-643,
html.skin-2.route-common-home .module-testimonials,
html.skin-2.route-common-home .module-title-1048 {
  display: none !important;
}

/* Home: hide Journal content rows (v5 home body replaces them) */
html.skin-2.route-common-home #top,
html.skin-2.route-common-home #top.top,
html.skin-2.route-common-home .top.top-row,
html.skin-2.route-common-home #bottom,
html.skin-2.route-common-home #bottom.bottom,
html.skin-2.route-common-home .bottom.bottom-row,
html.skin-2.route-common-home #content {
  display: none !important;
}

/* All pages: Journal footer / newsletter → v5 footer only */
html.skin-2 .site-wrapper > footer:not(.v5v-footer),
html.skin-2 footer:not(.v5v-footer),
html.skin-2 .footer:not(.v5v-footer),
html.skin-2 .module-newsletter,
html.skin-2 [class*="module-newsletter"] {
  display: none !important;
}

/* v5 footer must stay visible (Journal hide above used to catch it) */
html.skin-2 footer.v5v-footer,
html.skin-2 .v5v-footer {
  display: block !important;
  visibility: visible !important;
}

/* Ensure injected v5 blocks sit above leftover Journal wrappers */
html.skin-2 .site-header.v3-header,
html.skin-2 .v5v-mode,
html.skin-2 .v5v-sec,
html.skin-2 .v5v-how,
html.skin-2 .v5v-sellband,
html.skin-2 .v5v-partner,
html.skin-2 .v5v-founder,
html.skin-2 .v5v-functions,
html.skin-2 .v5v-articles-band,
html.skin-2 .v5v-footer {
  position: relative;
  z-index: 2;
}

/* Inner pages: Journal page-title/breadcrumbs use flex order -N above chrome */
html.skin-2 .site-wrapper > header.site-header.v3-header,
html.skin-2 .site-wrapper > header.k5-chrome {
  order: -100;
  width: 100%;
}
html.skin-2 .site-wrapper > h1.title,
html.skin-2 .site-wrapper > h1.page-title,
html.skin-2 .site-wrapper > .breadcrumbs {
  order: 0;
}

/* Kill Journal global link underlines inside v5 surfaces */
html.skin-2 .site-header a,
html.skin-2 .v3-header a,
html.skin-2 .v5v-mode a,
html.skin-2 .v5v-sec a,
html.skin-2 .v5v-how a,
html.skin-2 .v5v-sellband a,
html.skin-2 .v5v-partner a,
html.skin-2 .v5v-founder a,
html.skin-2 .v5v-functions a,
html.skin-2 .v5v-articles-band a,
html.skin-2 .v5v-footer a,
html.skin-2 .v5v-lot,
html.skin-2 .v5v-article,
html.skin-2 .v5v-cats a {
  text-decoration: none !important;
}

/* Dropdown open state (util-dropdowns + our bridge) */
html.skin-2 .lang-dd.is-open .lang-dd__menu,
html.skin-2 .curr-dd.is-open .curr-dd__menu,
html.skin-2 .lang-dd.is-open .k5-dd__menu,
html.skin-2 [data-k5-dd].is-open .lang-dd__menu,
html.skin-2 [data-k5-dd].is-open .curr-dd__menu {
  display: block;
}
