/* Page heroes (every page but the home page): white by default, dark title, and a Home > ... path of
   plain links above the title. A hero the merchant gave a background colour or image keeps the
   coloured look (white text), because its inline style carries a background. Markup lives in each
   section; the path comes from snippets/hero-path.liquid. */

:is(.col-hero, .cart-hero, .cat-hero, .brand-hero, .dept-hero, .depts-hero, .shop-hero, .search-hero-band, .ty-hero, .ot-hero, .rsvf-hero, .rsvc-hero, .rsvl-hero, .wishlist-hero, .menu-hero, .pdp-hero, .blog-hero, .dit-hero, .acct-hero, .rvp-hero, .apx-hero, .apc-hero, .apl-hero, .cx-auth-hero, .article-title-band):not([style*="background"]) {
  background: #f8f8f9;
  border-bottom: 1px solid var(--adi-gray-200, #e5e5e5);
  padding-block: 2.25rem 1.75rem;
}

:is(.col-hero, .cart-hero, .cat-hero, .brand-hero, .dept-hero, .depts-hero, .shop-hero, .search-hero-band, .ty-hero, .ot-hero, .rsvf-hero, .rsvc-hero, .rsvl-hero, .wishlist-hero, .menu-hero, .pdp-hero, .blog-hero, .dit-hero, .acct-hero, .rvp-hero, .apx-hero, .apc-hero, .apl-hero, .cx-auth-hero, .article-title-band):not([style*="background"]) :is([class*="__title"], h1) {
  color: #111;
}

:is(.col-hero, .cart-hero, .cat-hero, .brand-hero, .dept-hero, .depts-hero, .shop-hero, .search-hero-band, .ty-hero, .ot-hero, .rsvf-hero, .rsvc-hero, .rsvl-hero, .wishlist-hero, .menu-hero, .pdp-hero, .blog-hero, .dit-hero, .acct-hero, .rvp-hero, .apx-hero, .apc-hero, .apl-hero, .cx-auth-hero, .article-title-band):not([style*="background"]) :is([class*="__desc"], [class*="__lede"], [class*="__note"], [class*="__sub"]) {
  color: var(--adi-gray-500, #767677);
}

/* The round icon and the order-number pill were white on the accent colour. */
:is(.col-hero, .cart-hero, .cat-hero, .brand-hero, .dept-hero, .depts-hero, .shop-hero, .search-hero-band, .ty-hero, .ot-hero, .rsvf-hero, .rsvc-hero, .rsvl-hero, .wishlist-hero, .menu-hero, .pdp-hero, .blog-hero, .dit-hero, .acct-hero, .rvp-hero, .apx-hero, .apc-hero, .apl-hero, .cx-auth-hero, .article-title-band):not([style*="background"]) :is(.ty-hero__icon, .ot-hero__icon, .rsvc-hero__icon, .apc-intro__icon) {
  background: color-mix(in srgb, var(--accent-color, #45bace) 12%, #fff);
  color: var(--accent-color, #45bace);
}

:is(.col-hero, .cart-hero, .cat-hero, .brand-hero, .dept-hero, .depts-hero, .shop-hero, .search-hero-band, .ty-hero, .ot-hero, .rsvf-hero, .rsvc-hero, .rsvl-hero, .wishlist-hero, .menu-hero, .pdp-hero, .blog-hero, .dit-hero, .acct-hero, .rvp-hero, .apx-hero, .apc-hero, .apl-hero, .cx-auth-hero, .article-title-band):not([style*="background"]) :is(.ty-hero__order, .ot-hero__order) {
  background: color-mix(in srgb, var(--accent-color, #45bace) 10%, #fff);
  color: #111;
}

/* Hero titles (plain or coloured): big and uppercase. A title colour set in the editor still wins, because it is
   an inline style. */
:is(.col-hero, .cart-hero, .cat-hero, .brand-hero, .dept-hero, .depts-hero, .shop-hero, .search-hero-band, .ty-hero, .ot-hero, .rsvf-hero, .rsvc-hero, .rsvl-hero, .wishlist-hero, .menu-hero, .pdp-hero, .blog-hero, .dit-hero, .acct-hero, .rvp-hero, .apx-hero, .apc-hero, .apl-hero, .cx-auth-hero, .article-title-band) :is([class*="__title"], h1) {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* The text column of every page hero: wide, instead of the 34rem each section gave it, so a big uppercase title
   and a long description have room to sit on fewer lines. */
:is(.col-hero, .cart-hero, .cat-hero, .brand-hero, .dept-hero, .depts-hero, .shop-hero, .search-hero-band, .ty-hero, .ot-hero, .rsvf-hero, .rsvc-hero, .rsvl-hero, .wishlist-hero, .menu-hero, .pdp-hero, .blog-hero, .dit-hero, .acct-hero, .rvp-hero, .apx-hero, .apc-hero, .apl-hero, .cx-auth-hero, .article-title-band) :is([class*="-hero__inner"], .article-title-band__inner, .apc-intro, .apx__head) {
  max-width: 72rem;
}

/* ---- The path: plain links, like any <a> ---- */
.cx-path {
  margin: 0.9rem 0 0;
}

.cx-path__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

.cx-path__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cx-path__item + .cx-path__item::before {
  content: "\203A";
  color: #4b4b52;
}

[dir="rtl"] .cx-path__item + .cx-path__item::before {
  content: "\2039";
}

/* A link: the accent colour, underlined, so it is plainly something to click. */
.cx-path__link {
  color: var(--accent-color, #0b5cad);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cx-path__link:hover {
  text-decoration-thickness: 2px;
  opacity: 0.8;
}

.cx-path__link:focus-visible {
  outline: 2px solid var(--accent-color, #0b5cad);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Where you are: plain bold text, not a link. */
.cx-path__current {
  color: #111;
  font-weight: 500;
}

/* On a hero that has its own background the path goes light. */
:is(.col-hero, .cart-hero, .cat-hero, .brand-hero, .dept-hero, .depts-hero, .shop-hero, .search-hero-band, .ty-hero, .ot-hero, .rsvf-hero, .rsvc-hero, .rsvl-hero, .wishlist-hero, .menu-hero, .pdp-hero, .blog-hero, .dit-hero, .acct-hero, .rvp-hero, .apx-hero, .apc-hero, .apl-hero, .cx-auth-hero, .article-title-band)[style*="background"] .cx-path__link,
:is(.col-hero, .cart-hero, .cat-hero, .brand-hero, .dept-hero, .depts-hero, .shop-hero, .search-hero-band, .ty-hero, .ot-hero, .rsvf-hero, .rsvc-hero, .rsvl-hero, .wishlist-hero, .menu-hero, .pdp-hero, .blog-hero, .dit-hero, .acct-hero, .rvp-hero, .apx-hero, .apc-hero, .apl-hero, .cx-auth-hero, .article-title-band)[style*="background"] .cx-path__current {
  color: #fff;
}

:is(.col-hero, .cart-hero, .cat-hero, .brand-hero, .dept-hero, .depts-hero, .shop-hero, .search-hero-band, .ty-hero, .ot-hero, .rsvf-hero, .rsvc-hero, .rsvl-hero, .wishlist-hero, .menu-hero, .pdp-hero, .blog-hero, .dit-hero, .acct-hero, .rvp-hero, .apx-hero, .apc-hero, .apl-hero, .cx-auth-hero, .article-title-band)[style*="background"] .cx-path__item + .cx-path__item::before {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 640px) {
  .cx-path__list {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  :is(.col-hero, .cart-hero, .cat-hero, .brand-hero, .dept-hero, .depts-hero, .shop-hero, .search-hero-band, .ty-hero, .ot-hero, .rsvf-hero, .rsvc-hero, .rsvl-hero, .wishlist-hero, .menu-hero, .pdp-hero, .blog-hero, .dit-hero, .acct-hero, .rvp-hero, .apx-hero, .apc-hero, .apl-hero, .cx-auth-hero, .article-title-band):not([style*="background"]) {
    padding-block: 1.5rem 1.25rem;
  }
}

/* Mobile: no page-title hero bands on any page (cart, shop, product, account,
   appointments, ...). Matches every `*-hero` band but not the homepage
   slider (`cx-herop`). */
@media (max-width: 767px) {
  [class$="-hero"],
  [class*="-hero "] {
    display: none !important;
  }
}
