/* Only the logo area. Existing uploaded images keep their own colours. */
/* The primary and scroll logos must never appear side by side. */
html body.someh-site-brand #theme-header #sticky-logo,
html body.someh-site-brand #theme-header #main-nav #sticky-logo {
  display: none !important;
}
@media (min-width: 992px) {
  html body.someh-site-brand #theme-header #main-nav.fixed-nav:not(.just-before-sticky) #sticky-logo {
    display: block !important;
  }
  html body.someh-site-brand #theme-header #main-nav.fixed-nav:not(.just-before-sticky) .header-layout-1-logo {
    display: none !important;
  }
  html body.someh-site-brand #theme-header #main-nav:not(.fixed-nav) .header-layout-1-logo,
  html body.someh-site-brand #theme-header #main-nav.just-before-sticky .header-layout-1-logo {
    display: block !important;
  }
}

body.someh-site-brand {
  --someh-brand-accent: #334155;
  --someh-brand-soft: #edf1f5;
  --someh-brand-ink: #172538;
  --someh-brand-muted: #586579;
  --someh-brand-surface: #fff;
}
body.someh-site-brand.someh-brand-style-6 {
  --someh-brand-ink: #fff;
  --someh-brand-muted: #d3dce9;
  --someh-brand-surface: #172538;
}

body.someh-site-brand #theme-header #logo {
  max-width: 100%;
  margin-block: 8px !important;
  line-height: 1 !important;
}
body.someh-site-brand #theme-header #logo > a,
body.someh-site-brand #theme-header #sticky-logo > a,
body.someh-site-brand .someh-sf-brand > a {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  max-width: 100% !important;
  min-width: 0;
  padding: 5px 8px !important;
  vertical-align: middle;
  line-height: 1 !important;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 12px;
  background: transparent !important;
  background-image: none !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
}
body.someh-site-brand #theme-header #logo.text-logo > a,
body.someh-site-brand #theme-header #sticky-logo.text-logo > a,
body.someh-site-brand .someh-sf-brand > a.someh-sf-text-logo {
  color: var(--someh-brand-ink) !important;
  background: var(--someh-brand-surface) !important;
}
body.someh-site-brand #theme-header #logo > a:hover,
body.someh-site-brand #theme-header #sticky-logo > a:hover,
body.someh-site-brand .someh-sf-brand > a:hover { opacity: 1 !important; }
body.someh-site-brand #theme-header #logo > a:focus-visible,
body.someh-site-brand #theme-header #sticky-logo > a:focus-visible,
body.someh-site-brand .someh-sf-brand > a:focus-visible {
  outline: 3px solid var(--someh-brand-accent);
  outline-offset: 4px;
}

/* A real logo is fitted, never cropped, tinted, whitened or stretched. */
body.someh-site-brand #theme-header #logo .tie-logo-picture,
body.someh-site-brand #theme-header #sticky-logo .tie-logo-picture,
body.someh-site-brand .someh-sf-brand .someh-sf-logo-link picture {
  max-width: 100%;
  line-height: 0;
}
body.someh-site-brand #theme-header #logo img,
body.someh-site-brand #theme-header #sticky-logo img,
body.someh-site-brand .someh-sf-brand .someh-sf-logo-link img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 58px !important;
  margin: 0;
  padding: 0 !important;
  top: auto;
  object-fit: contain;
  filter: none !important;
  mix-blend-mode: normal !important;
}

body.someh-site-brand .someh-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  text-align: start;
}
body.someh-site-brand .someh-brand-symbol {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--someh-brand-soft);
}
body.someh-site-brand .someh-brand-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.someh-site-brand #theme-header #logo .someh-brand-name,
body.someh-site-brand #theme-header #sticky-logo .someh-brand-name,
body.someh-site-brand .someh-sf-brand .someh-brand-name {
  display: block;
  color: var(--someh-brand-ink) !important;
  -webkit-text-fill-color: var(--someh-brand-ink) !important;
  font-family: inherit;
  font-size: 20px !important;
  font-weight: 900;
  line-height: 1.45 !important;
  white-space: normal;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}
body.someh-site-brand #theme-header #logo .someh-brand-domain,
body.someh-site-brand #theme-header #sticky-logo .someh-brand-domain,
body.someh-site-brand .someh-sf-brand .someh-brand-domain {
  display: block;
  overflow: hidden;
  max-width: 100%;
  color: var(--someh-brand-muted) !important;
  -webkit-text-fill-color: var(--someh-brand-muted) !important;
  font-family: Arial, sans-serif;
  font-size: 10px !important;
  font-weight: 500;
  letter-spacing: .5px;
  line-height: 1.5 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.someh-site-brand .someh-brand-initials {
  color: var(--someh-brand-accent) !important;
  -webkit-text-fill-color: var(--someh-brand-accent) !important;
  font-family: inherit;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
}
body.someh-site-brand #theme-header #logo .someh-brand-site-icon,
body.someh-site-brand #theme-header #sticky-logo .someh-brand-site-icon,
body.someh-site-brand .someh-sf-brand .someh-brand-site-icon {
  display: block;
  width: 40px !important;
  height: 40px !important;
  max-width: 100% !important;
  max-height: 40px !important;
  padding: 0 !important;
  background: #fff;
  object-fit: contain;
  filter: none !important;
  opacity: 1;
  visibility: visible;
  transform: none;
}

body.someh-brand-style-2 #theme-header #logo > a,
body.someh-brand-style-2 #theme-header #sticky-logo > a,
body.someh-brand-style-2 .someh-sf-brand > a { border-radius: 999px; padding-inline: 10px !important; }
body.someh-brand-style-2 .someh-brand-symbol { border-radius: 50%; }
body.someh-brand-style-3 #theme-header #logo > a,
body.someh-brand-style-3 #theme-header #sticky-logo > a,
body.someh-brand-style-3 .someh-sf-brand > a { border-width: 0 0 3px; border-color: var(--someh-brand-accent); border-radius: 7px 7px 0 0; }
body.someh-brand-style-4 #theme-header #logo > a,
body.someh-brand-style-4 #theme-header #sticky-logo > a,
body.someh-brand-style-4 .someh-sf-brand > a { border-inline-start: 3px solid var(--someh-brand-accent); box-shadow: 3px 3px 0 var(--someh-brand-soft); }
body.someh-brand-style-5 #theme-header #logo > a,
body.someh-brand-style-5 #theme-header #sticky-logo > a,
body.someh-brand-style-5 .someh-sf-brand > a { border-radius: 18px 4px 18px 4px; border-color: var(--someh-brand-accent); }
body.someh-brand-style-6 #theme-header #logo > a,
body.someh-brand-style-6 #theme-header #sticky-logo > a,
body.someh-brand-style-6 .someh-sf-brand > a { border-inline-end: 3px solid var(--someh-brand-accent); }

@media (min-width: 992px) {
  body.someh-site-brand #theme-header .header-layout-1-logo { width: 220px !important; min-width: 0; flex: 0 1 220px; align-self: center; }
  body.someh-site-brand #theme-header #logo > a { max-width: 220px !important; }
  body.someh-site-brand #theme-header #sticky-logo > a { max-width: 172px !important; padding: 3px 6px !important; border-radius: 8px; }
  body.someh-site-brand #theme-header #sticky-logo .someh-brand-name { font-size: 16px !important; }
  body.someh-site-brand #theme-header #sticky-logo .someh-brand-domain { display: none; }
  body.someh-site-brand #theme-header #sticky-logo .someh-brand-symbol { flex-basis: 30px; width: 30px; height: 30px; }
  body.someh-site-brand #theme-header #sticky-logo .someh-brand-site-icon { width: 30px !important; height: 30px !important; max-height: 30px !important; }
  body.someh-site-brand #theme-header #sticky-logo > a > .tie-logo-picture img { max-height: 40px !important; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  body.someh-site-brand #theme-header .header-layout-1-logo { width: 182px !important; flex-basis: 182px; }
  body.someh-site-brand #theme-header #logo .someh-brand-name { font-size: 18px !important; }
}
@media (max-width: 991px) {
  body.someh-site-brand #theme-header .header-layout-1-logo { width: auto !important; min-width: 0; flex-shrink: 1; }
  body.someh-site-brand #theme-header #logo > a { max-width: 178px !important; padding: 4px 6px !important; }
  body.someh-site-brand #theme-header #logo img { max-height: 50px !important; }
  body.someh-site-brand #theme-header #logo .someh-brand-name { font-size: 18px !important; }
  body.someh-site-brand #theme-header #logo .someh-brand-lockup { gap: 7px; }
  body.someh-site-brand #theme-header #logo .someh-brand-symbol { flex-basis: 32px; width: 32px; height: 32px; }
  body.someh-site-brand #theme-header #logo .someh-brand-site-icon { width: 32px !important; height: 32px !important; max-height: 32px !important; }
}
@media (max-width: 359px) {
  body.someh-site-brand #theme-header #logo > a { max-width: 154px !important; }
  body.someh-site-brand #theme-header #logo .someh-brand-domain { display: none; }
  body.someh-site-brand #theme-header #logo .someh-brand-name { font-size: 17px !important; }
}

/* Compact storefront: its existing logo grid cell stays within 64px. */
body.someh-site-brand .someh-sf-brand > a { max-width: 100% !important; max-height: 64px !important; padding: 2px 5px !important; }
body.someh-site-brand .someh-sf-brand .someh-brand-name { font-size: 18px !important; }
body.someh-site-brand .someh-sf-brand .someh-brand-domain { font-size: 9px !important; }
body.someh-site-brand .someh-sf-brand .someh-brand-lockup { gap: 6px; }
body.someh-site-brand .someh-sf-brand .someh-brand-symbol { flex-basis: 32px; width: 32px; height: 32px; }
body.someh-site-brand .someh-sf-brand .someh-brand-site-icon { width: 32px !important; height: 32px !important; max-height: 32px !important; }
