/* v88 candidate — modern brand page prototype (Xerox). */

body.brand-preview-v88 main.site-content {
  font-family:"Inter 100System", Arial, sans-serif !important;
}

body.brand-preview-v88 .brand-page-main-image {
  display:none !important;
}

body.brand-preview-v88 .brand-info {
  max-width:1180px;
  margin:0 auto;
  padding:0 0 38px;
}

body.brand-preview-v88 .brand-preview-hero {
  display:grid;
  grid-template-columns:180px minmax(0,1fr);
  gap:28px;
  align-items:center;
  background:#fff;
  border:1px solid #e6e8eb;
  border-radius:14px;
  box-shadow:0 2px 10px rgba(27,39,51,.08);
  padding:26px 28px;
  margin:26px 0 18px;
}

body.brand-preview-v88 .brand-preview-logo {
  height:132px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:#fff;
  border:1px solid #eceef1;
  border-radius:12px;
}

body.brand-preview-v88 .brand-preview-logo img {
  max-width:100%;
  max-height:82px;
  width:auto;
  height:auto;
  object-fit:contain;
}

body.brand-preview-v88 .brand-preview-eyebrow {
  color:#f5791f;
  font-size:13px;
  line-height:1.35;
  font-weight:550;
  margin-bottom:6px;
}

body.brand-preview-v88 .brand-preview-hero h1 {
  margin:0 0 9px !important;
  color:#33383f !important;
  font-family:"Inter 100System",Arial,sans-serif !important;
  font-size:24px !important;
  line-height:1.2 !important;
  font-weight:600 !important;
  letter-spacing:-.018em !important;
}

body.brand-preview-v88 .brand-preview-lead {
  max-width:780px;
  margin:0 !important;
  color:#59636e !important;
  font-size:14px !important;
  line-height:1.5 !important;
  font-weight:400 !important;
}

body.brand-preview-v88 .brand-preview-tags {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:15px;
}

body.brand-preview-v88 .brand-preview-tags a {
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 11px;
  border:1px solid #e3e6ea;
  border-radius:999px;
  background:#fafbfc;
  color:#4c5661 !important;
  text-decoration:none !important;
  font-size:12.5px;
  line-height:1;
  font-weight:450;
  transition:.2s ease;
}

body.brand-preview-v88 .brand-preview-tags a:hover {
  border-color:#f5791f;
  color:#f5791f !important;
  background:#fff8f3;
}

body.brand-preview-v88 .brand-preview-section {
  margin-top:18px;
}

body.brand-preview-v88 .brand-preview-section-head {
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-end;
  margin-bottom:12px;
}

body.brand-preview-v88 .brand-preview-section h2 {
  margin:0 !important;
  color:#33383f !important;
  font-family:"Inter 100System",Arial,sans-serif !important;
  font-size:18px !important;
  line-height:1.32 !important;
  font-weight:550 !important;
  letter-spacing:-.012em !important;
}

body.brand-preview-v88 .brand-preview-section-head p {
  margin:0 !important;
  color:#7a848e !important;
  font-size:13px !important;
  line-height:1.4 !important;
  font-weight:400 !important;
}

body.brand-preview-v88 .brand-preview-category-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

body.brand-preview-v88 .brand-preview-category {
  position:relative;
  min-height:168px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:15px 15px 12px;
  background:#fff;
  border:1px solid #e6e8eb;
  border-radius:12px;
  box-shadow:0 2px 7px rgba(27,39,51,.055);
  color:#3e474f !important;
  text-decoration:none !important;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.brand-preview-v88 .brand-preview-category:hover {
  transform:translateY(-2px);
  border-color:#f2c5a7;
  box-shadow:0 5px 14px rgba(27,39,51,.09);
}

body.brand-preview-v88 .brand-preview-category__title {
  position:relative;
  z-index:2;
  max-width:82%;
  font-size:13.5px;
  line-height:1.35;
  font-weight:500;
  color:#424b54;
}

body.brand-preview-v88 .brand-preview-category__image {
  height:105px;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  margin-top:5px;
}

body.brand-preview-v88 .brand-preview-category__image img {
  max-width:90%;
  max-height:100px;
  width:auto;
  height:auto;
  object-fit:contain;
  mix-blend-mode:multiply;
}

body.brand-preview-v88 .brand-preview-about {
  background:#fff;
  border:1px solid #e6e8eb;
  border-radius:12px;
  box-shadow:0 2px 8px rgba(27,39,51,.06);
  padding:22px 24px 20px;
}

body.brand-preview-v88 .brand-preview-about__text {
  position:relative;
  color:#59636e;
  font-size:14px;
  line-height:1.55;
  font-weight:400;
}

body.brand-preview-v88 .brand-preview-about__text p {
  margin:0 0 9px !important;
}

body.brand-preview-v88 .brand-preview-about__text p:last-child {
  margin-bottom:0 !important;
}

body.brand-preview-v88 .brand-preview-about__text.is-collapsed {
  max-height:116px;
  overflow:hidden;
}

body.brand-preview-v88 .brand-preview-about__text.is-collapsed:after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:52px;
  background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 80%);
  pointer-events:none;
}

body.brand-preview-v88 .brand-preview-more {
  margin-top:10px;
  border:0;
  background:transparent;
  padding:0;
  color:#f5791f;
  font-family:"Inter 100System",Arial,sans-serif;
  font-size:13px;
  line-height:1.4;
  font-weight:500;
  cursor:pointer;
}

body.brand-preview-v88 .brand-preview-cta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  background:#fff;
  border:1px solid #e6e8eb;
  border-radius:12px;
  box-shadow:0 2px 8px rgba(27,39,51,.06);
  padding:19px 22px;
}

body.brand-preview-v88 .brand-preview-cta h2 {
  font-size:16px !important;
  margin-bottom:5px !important;
}

body.brand-preview-v88 .brand-preview-cta p {
  margin:0 !important;
  color:#59636e !important;
  font-size:13.5px !important;
  line-height:1.5 !important;
}

body.brand-preview-v88 .brand-preview-cta a {
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 18px;
  border:1px solid #f5791f;
  border-radius:10px;
  color:#f5791f !important;
  text-decoration:none !important;
  font-size:13.5px;
  font-weight:500;
  transition:.2s ease;
}

body.brand-preview-v88 .brand-preview-cta a:hover {
  background:#f5791f;
  color:#fff !important;
}

@media (max-width:1023.98px) {
  body.brand-preview-v88 .brand-info {
    max-width:none;
  }
  body.brand-preview-v88 .brand-preview-hero {
    grid-template-columns:145px minmax(0,1fr);
    gap:22px;
  }
  body.brand-preview-v88 .brand-preview-logo {
    height:112px;
  }
  body.brand-preview-v88 .brand-preview-category-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media (max-width:767.98px) {
  body.brand-preview-v88 .brand-info {
    padding-bottom:26px;
  }
  body.brand-preview-v88 .brand-preview-hero {
    grid-template-columns:1fr;
    gap:15px;
    padding:19px 18px;
    margin:20px 0 16px;
  }
  body.brand-preview-v88 .brand-preview-logo {
    width:124px;
    height:82px;
    padding:14px;
  }
  body.brand-preview-v88 .brand-preview-logo img {
    max-height:52px;
  }
  body.brand-preview-v88 .brand-preview-hero h1 {
    font-size:22px !important;
  }
  body.brand-preview-v88 .brand-preview-lead,
  body.brand-preview-v88 .brand-preview-about__text {
    font-size:13.5px !important;
  }
  body.brand-preview-v88 .brand-preview-tags {
    gap:6px;
    margin-top:12px;
  }
  body.brand-preview-v88 .brand-preview-tags a {
    min-height:28px;
    font-size:12px;
    padding:0 9px;
  }
  body.brand-preview-v88 .brand-preview-section-head {
    display:block;
  }
  body.brand-preview-v88 .brand-preview-section-head p {
    margin-top:4px !important;
  }
  body.brand-preview-v88 .brand-preview-section h2 {
    font-size:17px !important;
  }
  body.brand-preview-v88 .brand-preview-category-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  body.brand-preview-v88 .brand-preview-category {
    min-height:145px;
    padding:13px 12px 10px;
  }
  body.brand-preview-v88 .brand-preview-category__title {
    max-width:100%;
    font-size:12.5px;
  }
  body.brand-preview-v88 .brand-preview-category__image {
    height:84px;
  }
  body.brand-preview-v88 .brand-preview-category__image img {
    max-width:92%;
    max-height:80px;
  }
  body.brand-preview-v88 .brand-preview-about {
    padding:18px;
  }
  body.brand-preview-v88 .brand-preview-cta {
    align-items:flex-start;
    flex-direction:column;
    gap:13px;
    padding:18px;
  }
  body.brand-preview-v88 .brand-preview-cta a {
    width:100%;
  }
}

@media (max-width:420px) {
  body.brand-preview-v88 .brand-preview-category-grid {
    grid-template-columns:1fr;
  }
  body.brand-preview-v88 .brand-preview-category {
    min-height:132px;
  }
}


/* v88b: breathing room under About brand heading. */
body.brand-preview-v88 .brand-preview-about > h2 {
  margin-bottom:9px !important;
}


/* v88c: align brand content width with the site's main full-width content block. */
body.brand-preview-v88 .brand-info {
  max-width:1370px;
}


/* v89: fallback for brand pages without an uploaded logo. */
body.brand-preview-v88 .brand-preview-logo-fallback {
  display:block;
  max-width:100%;
  color:#33383f;
  font-family:"Inter 100System",Arial,sans-serif;
  font-size:22px;
  line-height:1.15;
  font-weight:600;
  text-align:center;
  overflow-wrap:anywhere;
}
@media (max-width:767.98px) {
  body.brand-preview-v88 .brand-preview-logo-fallback {
    font-size:18px;
  }
}

/* Preserve the original full brand description HTML/text, but normalize
   legacy inline styling to the approved v90 palette. */
body.brand-preview-v88 .brand-preview-about__text,
body.brand-preview-v88 .brand-preview-about__text :not(a) {
  color:#59636e !important;
  font-family:"Inter 100System",Arial,sans-serif !important;
  font-size:14px !important;
  line-height:1.55 !important;
}
body.brand-preview-v88 .brand-preview-about__text h3,
body.brand-preview-v88 .brand-preview-about__text h4 {font-weight:550!important}
body.brand-preview-v88 .brand-preview-about__text a {color:#f5791f!important}
