.catalog-carousel.brand-catalog-carousel {
  width: 100%;
  scroll-margin-top: calc(var(--header-height, 76px) + 12px);
  overflow-anchor: none;
}

.brand-catalog-section {
  padding: 28px 0 0;
  background: #f4f6fb;
}

.brand-catalog-section > .container {
  padding-bottom: 22px;
}

.catalog-carousel-instructions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto 8px;
  padding: 0 4px;
  color: rgba(9, 20, 39, 0.62);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
}

.catalog-scroll-hint {
  display: none;
  grid-column: 2;
  justify-self: center;
}

[data-collection-newer-slot] {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
}

[data-collection-previous-slot] {
  grid-column: 3;
  justify-self: end;
  min-width: 0;
}

.catalog-direction-link,
.catalog-direction-empty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(9, 20, 39, 0.66);
  text-decoration: none;
  white-space: nowrap;
}

.catalog-direction-link strong {
  color: #123bff;
  font-weight: 900;
}

.catalog-direction-link:hover,
.catalog-direction-link:focus-visible {
  color: #123bff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.catalog-carousel-track {
  display: flex;
  gap: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overflow-anchor: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.catalog-carousel-track::-webkit-scrollbar {
  display: none;
}

.brand-identity-item {
  flex: 0 0 100%;
  min-width: 100%;
  overflow-anchor: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.brand-identity-page {
  width: 100%;
}

.brand-identity-item.is-targeted .brand-page-hero {
  box-shadow: inset 0 0 0 3px rgba(18, 59, 255, 0.28);
}

@media (max-width: 900px) {
  .catalog-carousel-instructions {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 18px;
    text-align: center;
  }

  .catalog-scroll-hint {
    display: inline-flex;
    grid-column: 1;
  }

  [data-collection-newer-slot],
  [data-collection-previous-slot] {
    grid-column: 1;
    justify-self: center;
  }

  .catalog-direction-link,
  .catalog-direction-empty {
    white-space: normal;
    justify-content: center;
  }
}


.brand-catalog-section.section-dark {
  padding-bottom: 0;
}

.brand-catalog-section.section-dark .section-head-center {
  margin-bottom: 22px;
}

.brand-overview-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 14px;
  color: #123bff;
  font-weight: 900;
  text-decoration: none;
  text-underline-offset: 4px;
}

.brand-overview-link:hover,
.brand-overview-link:focus-visible {
  text-decoration: underline;
}

.brand-catalog-overview {
  background: #f4f6fb;
  color: #091427;
}

.catalog-overview-drawer {
  position: fixed;
  inset: calc(var(--header-h) + 18px) clamp(18px, 4vw, 56px) calc(var(--footer-h) + 18px);
  z-index: 900;
  overflow: auto;
  border: 1px solid rgba(18, 59, 255, 0.22);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(5, 12, 24, 0.28);
  padding: clamp(24px, 3vw, 44px);
}

.catalog-overview-drawer::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(5, 12, 24, 0.36);
  backdrop-filter: blur(3px);
}

.catalog-overview-drawer > .container {
  width: min(100%, var(--inner-max));
}

.catalog-overview-close {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  place-items: center;
  margin-left: auto;
  margin-bottom: 18px;
  padding: 0;
  border: 1px solid rgba(18, 59, 255, 0.22);
  border-radius: 50%;
  background: #ffffff;
  color: #123bff;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.catalog-overview-close:hover,
.catalog-overview-close:focus-visible {
  background: #123bff;
  color: #ffffff;
}

.brand-catalog-overview-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 32px;
  align-items: center;
}

.brand-catalog-overview-copy > p {
  max-width: 760px;
  color: rgba(9, 20, 39, 0.74);
}

.brand-catalog-overview-grid {
  margin-top: 26px;
}

@media (max-width: 900px) {
  .brand-catalog-overview-shell {
    grid-template-columns: 1fr;
  }
}

/* Brands catalog refinements
   Keep the SPA catalog header readable on the light catalog background and
   make each carousel identity card fit as a true above-the-fold catalog card. */
.brand-catalog-section:not(.catalog-home-section),
.brand-catalog-section.section-dark:not(.catalog-home-section) {
  background: #f4f6fb;
  color: #091427;
  padding-top: clamp(14px, 2.2vh, 24px);
}

.brand-catalog-section.section-dark::before {
  display: none;
}

.brand-catalog-section > .container {
  padding-bottom: 10px;
}

.brand-catalog-section .section-head-center {
  margin-bottom: 14px;
}

.brand-catalog-section .section-kicker,
.brand-catalog-section .section-kicker.light {
  color: #123bff;
}

.brand-catalog-section .section-head-center h2 {
  color: #091427;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
}

.brand-catalog-section .section-head-center p {
  max-width: 820px;
  color: rgba(9, 20, 39, 0.68);
}

.brand-catalog-section .catalog-carousel-instructions {
  margin-bottom: 6px;
}

.brand-identity-item .brand-identity-page > .section-light,
.brand-identity-item .brand-identity-page > .brand-details-band {
  display: none;
}

.brand-identity-item .brand-page-hero.panel {
  display: block !important;
  min-height: auto !important;
  padding: clamp(22px, 3.4vh, 40px) 0 !important;
}

.brand-identity-item .brand-page-hero .container {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 340px);
  gap: clamp(24px, 4vw, 58px);
}

.brand-identity-item .brand-page-copy h1 {
  margin-bottom: 16px;
  font-size: clamp(2.45rem, 4.3vw, 4.15rem);
}

.brand-identity-item .brand-page-copy p {
  font-size: clamp(1rem, 1.16vw, 1.2rem);
  line-height: 1.42;
}

.brand-identity-item .brand-page-actions {
  margin-top: 20px;
}

.brand-identity-item .hero-cta {
  min-height: 48px;
  padding: 0 22px;
}

.brand-identity-item .brand-overview-link {
  margin-top: 10px;
}

.brand-identity-item .brand-page-logo-card {
  min-height: 220px;
  padding: clamp(22px, 3vw, 34px);
}

.brand-identity-item .brand-page-logo-card img {
  max-height: 116px;
}

@media (max-width: 900px) {
  .brand-identity-item .brand-page-hero .container {
    grid-template-columns: 1fr;
  }

  .brand-identity-item .brand-page-logo-card {
    min-height: 170px;
  }
}


@media (max-width: 760px) {
  .catalog-overview-drawer {
    inset: calc(var(--header-h) + 10px) 12px calc(var(--footer-h) + 10px);
    padding: 20px 16px;
    border-radius: 14px;
  }
}

/* Brand Portfolio modal — Option #2: Soft Blue.
   Keep the modal surface opaque. Dim the page behind it with the drawer shadow,
   not with a pseudo-element that can tint the modal itself. */
.brand-catalog-overview.catalog-overview-drawer {
  isolation: auto;
  background-color: #eaf7ff !important;
  background-image: linear-gradient(
    135deg,
    #fbfeff 0%,
    #eaf7ff 52%,
    #d8effc 100%
  ) !important;
  color: #07111f !important;
  border: 1px solid rgba(18, 59, 255, 0.18) !important;
  box-shadow:
    0 0 0 100vmax rgba(5, 12, 24, 0.36),
    0 24px 70px rgba(7, 17, 31, 0.24) !important;
}

.brand-catalog-overview.catalog-overview-drawer::before {
  content: none !important;
  display: none !important;
}

.brand-catalog-overview.catalog-overview-drawer > .container {
  position: relative;
  z-index: 1;
}

.brand-catalog-overview.catalog-overview-drawer h2,
.brand-catalog-overview.catalog-overview-drawer h3 {
  color: #07111f !important;
}

.brand-catalog-overview.catalog-overview-drawer p,
.brand-catalog-overview.catalog-overview-drawer li {
  color: #243449 !important;
}

.brand-catalog-overview.catalog-overview-drawer .catalog-overview-close {
  color: #07111f !important;
}

/* Brand catalog UX v2 — right-side desktop navigation, dots, and clean modal backdrop. */
.brand-catalog-overview.catalog-overview-drawer {
  z-index: 1400;
  box-shadow: 0 24px 70px rgba(7, 17, 31, 0.34) !important;
}

@media (min-width: 981px) {
  .brand-catalog-section > .container {
    min-height: 104px;
  }

  .brand-catalog-section .section-head-center {
    max-width: 1280px;
    margin: 0 auto 14px;
    padding-right: 540px;
    text-align: left;
  }

  .brand-catalog-section .section-head-center p {
    margin-left: 0;
  }

  .brand-catalog-carousel {
    position: relative;
  }

  .brand-catalog-carousel .catalog-carousel-instructions {
    position: absolute;
    top: -112px;
    right: max(18px, calc((100% - 1280px) / 2));
    z-index: 3;
    width: min(500px, calc(48vw - 24px));
    min-height: 74px;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid rgba(18, 59, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 36px rgba(5, 12, 24, 0.10);
  }

  .brand-catalog-carousel .catalog-carousel-instructions::before {
    content: "Browse brand identities";
    grid-column: 1 / -1;
    color: rgba(9, 20, 39, 0.70);
    font-size: 0.70rem;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
}

@media (max-width: 980px) {
  .brand-catalog-section .section-head-center {
    padding-right: 0;
    text-align: center;
  }

  .brand-catalog-carousel .catalog-carousel-instructions {
    position: static;
  }
}

/* Keep the supporting overview action legible on the light Soft Blue modal. */
.brand-catalog-overview .hero-cta.secondary {
  border: 1px solid rgba(18, 59, 255, 0.24);
  background: rgba(255, 255, 255, 0.86);
  color: #123bff;
  box-shadow: none;
}

.brand-catalog-overview .hero-cta.secondary:hover,
.brand-catalog-overview .hero-cta.secondary:focus-visible {
  background: #ffffff;
  color: #07111f;
}

/* Standard Brands catalog landing page.
   Brands now use the shared summary-card catalog pattern used by Promotions. */
.brand-catalog-section.catalog-home-section {
  background: transparent;
  color: var(--catalog-ink, #0b111d);
}

.brand-catalog-section.catalog-home-section > .catalog-page-layout {
  width: min(calc(100% - 48px), 1280px);
}

@media (max-width: 760px) {
  .brand-catalog-section.catalog-home-section > .catalog-page-layout {
    width: 100%;
  }
}


/* Standard Brands catalog landing page — dark alternating panel.
   The catalog landing page replaces the retired Brand Portfolio modal. */
.brand-catalog-section.catalog-home-section,
.brand-catalog-section.catalog-home-section.section-dark {
  background:
    linear-gradient(90deg, rgba(4, 10, 20, 0.99) 0%, rgba(5, 13, 26, 0.97) 58%, rgba(10, 28, 58, 0.90) 100%),
    linear-gradient(180deg, #091427 0%, #07111f 100%);
  color: #ffffff;
}

.brand-catalog-section.catalog-home-section.section-dark::before {
  display: block;
}

.brand-catalog-section.catalog-home-section .catalog-page-head h2 {
  color: #ffffff;
}

.brand-catalog-section.catalog-home-section .catalog-page-head p {
  color: rgba(255, 255, 255, 0.76);
}

.brand-catalog-section.catalog-home-section .section-kicker,
.brand-catalog-section.catalog-home-section .section-kicker.light {
  color: #8db6ff;
}

/* Keep the mobile carousel affordances readable on the dark Brands landing panel. */
@media (max-width: 980px) {
  .brand-catalog-section.catalog-home-section .catalog-carousel-instructions,
  .brand-catalog-section.catalog-home-section .catalog-scroll-hint,
  .brand-catalog-section.catalog-home-section .catalog-direction-empty,
  .brand-catalog-section.catalog-home-section .catalog-direction-link {
    color: rgba(255, 255, 255, 0.82);
  }

  .brand-catalog-section.catalog-home-section .catalog-direction-link strong {
    color: #8db6ff;
  }
}

/* Brands summary cards — dark translucent tiles to match the Services panel. */
.brand-catalog-section.catalog-home-section .catalog-item-panels,
.brand-catalog-section.catalog-home-section .catalog-carousel-item.is-featured .catalog-item-panels {
  border-color: rgba(255, 255, 255, 0.12);
  border-top-color: #2f6bff;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.brand-catalog-section.catalog-home-section .catalog-panel-summary {
  border-right-color: rgba(255, 255, 255, 0.10);
}

.brand-catalog-section.catalog-home-section .catalog-panel-summary h2,
.brand-catalog-section.catalog-home-section .catalog-panel-detail h3,
.brand-catalog-section.catalog-home-section .catalog-attribute strong {
  color: #ffffff;
}

.brand-catalog-section.catalog-home-section .catalog-panel p:not(.catalog-subtitle),
.brand-catalog-section.catalog-home-section .catalog-subtitle,
.brand-catalog-section.catalog-home-section .catalog-description p,
.brand-catalog-section.catalog-home-section .catalog-attribute p {
  color: rgba(255, 255, 255, 0.76);
}

.brand-catalog-section.catalog-home-section .catalog-badge {
  color: #8db6ff;
}

.brand-catalog-section.catalog-home-section .catalog-tag-list li,
.brand-catalog-section.catalog-home-section .catalog-tag-list span {
  border-color: rgba(143, 178, 255, 0.24);
  background: rgba(18, 59, 255, 0.14);
  color: rgba(255, 255, 255, 0.90);
}

.brand-catalog-section.catalog-home-section .catalog-carousel-item.is-selected .catalog-item-panels {
  border-color: rgba(143, 178, 255, 0.72);
  box-shadow: 0 0 0 2px rgba(18, 59, 255, 0.18), 0 18px 46px rgba(0, 0, 0, 0.22);
}

@media (max-width: 760px) {
  .brand-catalog-section.catalog-home-section .catalog-item-panels,
  .brand-catalog-section.catalog-home-section .catalog-carousel-item.is-featured .catalog-item-panels {
    background: rgba(255, 255, 255, 0.055);
  }
}


/* Brands summary tiles — match the square Services treatment, but keep a
   subtle electric-blue glow so the dark cards remain visually distinct. */
.brand-catalog-section.catalog-home-section .catalog-item-panels,
.brand-catalog-section.catalog-home-section .catalog-carousel-item.is-featured .catalog-item-panels {
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(143, 178, 255, 0.14),
    0 0 28px rgba(18, 59, 255, 0.18),
    0 18px 44px rgba(0, 0, 0, 0.28);
}

.brand-catalog-section.catalog-home-section .catalog-carousel-item.is-selected .catalog-item-panels {
  box-shadow:
    0 0 0 2px rgba(143, 178, 255, 0.34),
    0 0 34px rgba(18, 59, 255, 0.30),
    0 20px 50px rgba(0, 0, 0, 0.34);
}

.brand-catalog-section.catalog-home-section .catalog-summary-logo {
  filter: drop-shadow(0 0 12px rgba(143, 178, 255, 0.32));
}

/* Brand detail actions use the shared luminous-text affordance. */
.brand-catalog-section .catalog-details-toggle {
  color: #8db6ff;
  text-shadow: 0 0 14px rgba(143, 178, 255, 0.52);
}

.brand-catalog-section .catalog-details-toggle:hover,
.brand-catalog-section .catalog-details-toggle:focus-visible {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(143, 178, 255, 0.82);
}

/* Compact Brand detail modals: keep the complete brand story visible without
   requiring a desktop scrollbar. */
@media (min-width: 761px) {
  .brand-catalog-detail-modal.is-open {
    width: min(780px, calc(100vw - 32px));
    max-height: min(700px, calc(100dvh - var(--header-h, 84px) - var(--footer-h, 56px) - 32px));
  }

  .brand-catalog-detail-modal .catalog-attribute-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand-catalog-detail-modal .catalog-attribute {
    padding: 11px 12px;
  }

  .brand-catalog-detail-modal .catalog-detail-summary {
    margin: 0;
  }
}

/* Brand detail modal refinement.
   The shared promotion modal intentionally suppresses repeated titles. Brand
   details are different: keep the brand name, remove the duplicative subtitle,
   and tighten the mobile presentation so the complete story fits without an
   internal scrollbar. */
.brand-catalog-detail-modal > h3 {
  display: none; /*block;*/
}

.brand-catalog-detail-modal > .catalog-badge,
.brand-catalog-detail-modal > .catalog-subtitle {
  display: none;
}

.brand-catalog-detail-modal .catalog-detail-logo {
  max-height: 58px;
  margin: 0;
}

@media (max-width: 760px) {
  .brand-catalog-detail-modal.is-open {
    gap: 8px;
    padding: 16px;
  }

  .brand-catalog-detail-modal .catalog-detail-close {
    margin-bottom: 2px;
  }

  .brand-catalog-detail-modal .catalog-detail-logo {
    display: none;
  }

  .brand-catalog-detail-modal h3 {
    font-size: 1.62rem;
    line-height: 1.05;
  }

  .brand-catalog-detail-modal .catalog-detail-summary {
    margin: 0;
    font-size: 1rem !important;
    line-height: 1.34 !important;
  }

  .brand-catalog-detail-modal .catalog-attribute-grid {
    gap: 7px;
  }

  .brand-catalog-detail-modal .catalog-attribute {
    padding: 8px 10px;
  }

  .brand-catalog-detail-modal .catalog-attribute strong {
    font-size: 0.98rem !important;
  }

  .brand-catalog-detail-modal .catalog-attribute p {
    margin-top: 2px;
    font-size: 0.94rem !important;
    line-height: 1.28 !important;
  }

  .brand-catalog-detail-modal .catalog-actions {
    margin-top: 0;
  }
}

.brand-catalog-detail-modal h3 {
  color: #ffffff;
}


/* 2026-06-16 intentional refinement: light catalog cards need clearer surface separation. */
.brand-catalog-section.catalog-home-section .catalog-page-head {
  margin-bottom: clamp(16px, 2.6vw, 28px);
}

.brand-catalog-section.catalog-home-section .catalog-item-panels,
.brand-catalog-section.catalog-home-section .catalog-carousel-item.is-featured .catalog-item-panels {
  min-height: 350px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.99), rgba(238,244,255,0.96)),
    #ffffff !important;
  box-shadow:
    0 0 0 1px rgba(18,59,255,0.07),
    0 20px 54px rgba(16,23,34,0.11) !important;
}

.brand-catalog-section.catalog-home-section .catalog-summary-brand-header {
  min-height: auto;
  padding-bottom: 4px;
}
