/* Clasitrónicos branding 3B1: native PICTURE logos, 2026-09-15.
   Loaded by updated inner pages only. index.htm and shared legacy CSS stay
   unchanged. New file names separate this release from cached 3A/3B assets. */

/* The PICTURE element selects the artwork; CSS only sizes it. */
html body picture.clasi-picture-3b1 {
  display: block !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  line-height: 0;
}
html body picture.clasi-picture-3b1 > img.clasi-logo-3b1 {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html body a.clasi-brand-novo,
html body .menu a.logo,
html body .site-header a.logo {
  display: block !important;
  min-width: 0 !important;
  max-width: 100%;
  height: auto !important;
  line-height: 0;
  text-decoration: none;
}
a.clasi-brand-novo { width: 300px; }

/* Disable both the 3B background and older duplicate category icon strips. */
html body a.clasi-brand-novo::before,
html body a.clasi-brand-novo::after,
html body .menu a.logo::before,
html body .menu a.logo::after,
html body .site-header a.logo::before,
html body .site-header a.logo::after {
  content: none !important;
  display: none !important;
  background-image: none !important;
}
html body .menu a.logo > img[src*="icon-strip"],
html body .menu a.logo > img[src*="icon-bar"],
html body .site-header a.logo > img[src*="icon-strip"],
html body .site-header a.logo > img[src*="icon-bar"] {
  display: none !important;
}
a.clasi-brand-novo:focus-visible,
.menu a.logo:focus-visible,
.site-header a.logo:focus-visible {
  outline: 3px solid #336688;
  outline-offset: 4px;
}

.header-inner > a.brand.clasi-brand-novo,
.rf-header-inner > a.rf-brand.clasi-brand-novo,
.form-header-original .wordmark-original.clasi-brand-novo {
  width: 272px;
  flex: 0 1 272px;
  gap: 0;
}
.header-main > a.brand.clasi-brand-novo {
  width: 300px;
  flex: 0 1 300px;
}
a.detail-logo.clasi-brand-novo,
a.premium-brand.clasi-brand-novo { width: 100%; }
a.premium-footer-brand.clasi-brand-novo { width: 170px; }
.detail-header-inner,
.premium-header-inner { padding-top: 8px; padding-bottom: 8px; }

/* Category headers: handle the modern header even without a .menu class. */
html body .site-header .logo-publish-container a.logo {
  width: 100% !important;
  max-width: 100% !important;
}
html body .menu:not(.site-header) .logo-publish-container a.logo {
  width: 176px;
  max-width: 100%;
  margin-inline: auto;
}
.site-header-inner { padding-top: 7px; padding-bottom: 7px; }

/* Preserve the original phone/tablet boundary: 700 CSS pixels.
   Device labels are layout widths, not operating-system detection. */
@media (max-width: 699px) {
  a.clasi-brand-novo { width: 188px; max-width: 62vw; }
  .header-inner > a.brand.clasi-brand-novo,
  .rf-header-inner > a.rf-brand.clasi-brand-novo,
  .form-header-original .wordmark-original.clasi-brand-novo {
    flex-basis: 188px;
    width: 188px;
    max-width: 62vw;
  }
  .header-main > a.brand.clasi-brand-novo {
    width: 188px;
    flex: 0 1 188px;
    max-width: 62vw;
  }
  a.detail-logo.clasi-brand-novo { width: 170px; }
  a.premium-brand.clasi-brand-novo { width: 100%; }
  a.premium-footer-brand.clasi-brand-novo { width: 146px; }
  html body .site-header .logo-publish-container a.logo {
    max-width: 158px !important;
    margin-inline: auto;
  }
  html body .menu:not(.site-header) .logo-publish-container a.logo {
    width: 100px; /* 58px tall: fits the legacy fixed 68px row. */
    margin-inline: auto;
  }
}

/* 3B2_DESKTOP_LOGO_120 — 2026-09-15.
   Enlarge ONLY the modern category-page desktop header logo by about 20%.
   The original desktop logo track is minmax(145px, 176px); its new limits
   are 174px and 211.2px. The flexible search column gives up the extra space.
   This is layout sizing, not transform:scale(), so the logo cannot overpaint
   the adjacent search box. Keep the existing 700–1099px tablet layout and
   <=699px phone layout unchanged. Other page headers and the homepage are
   deliberately outside this change. */
@media only screen and (min-width: 1100px) {
  html body .site-header .site-header-inner {
    grid-template-columns:
      minmax(174px, 211.2px) minmax(220px, 1fr) auto auto auto auto auto;
  }
}
