/* Hero, Photo and Compact presets, and the breadcrumb trail (library candidate, T21). Tokens only.
   Phones first, then 768 and 1024. Nothing animates. */

.hero {
  /* Room for the floating header pill above the hero (T41 gives pages that start with a hero no spacer). */
  --hero-top: calc(var(--space-24) + var(--space-3));
  position: relative;
}
@media (max-width: 999.98px) {
  /* Without script the pill sits in the page below 1000 px (T41): no room needed. */
  .no-js .hero { --hero-top: var(--space-8); }
}
/* The section sub-menu above the hero has already made the room. */
.section-subnav + .hero { --hero-top: var(--space-2); }

.hero__heading {
  margin: 0;
  font-size: var(--fs-hero);
  font-weight: var(--fw-light);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-hero);
  color: var(--color-heading);
}
.hero__line {
  max-width: 36ch;
  margin: var(--space-5) 0 0;
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-light);
  line-height: var(--lh-body);
  color: var(--color-text);
}

/* ── Photo ─────────────────────────────────────────────────────────────── */
/* The photo is the ground: text is white on the design's scrim, the theme colours the keyline and the button.
   A darker Deep Blue layer sits behind the text only, as on the Home carousel's phones (T25a). Unlike the carousel
   it stays on wide screens too: a long heading lifts the small label above the strongest part of the scrim (CC11). */
.hero--photo {
  background: none;
  color: var(--c-white);
  --color-heading: var(--c-white);
  --color-text: var(--c-white);
  --color-focus: var(--color-focus-inverse);
  --hero-layer: color-mix(in srgb, var(--c-deep-blue) 58%, transparent);
  --hero-layer-fade: var(--space-24);
}
.hero--photo .hero__frame {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--c-deep-blue);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media picture { display: contents; }
.hero__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Scrim: the prototype's own photo-hero shade (Abyss, 86% at the foot, 35% at 55% height, 5% at the top),
   with the design's left scrim behind the text column. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg,
      color-mix(in srgb, var(--c-abyss) 86%, transparent) 0%,
      color-mix(in srgb, var(--c-abyss) 35%, transparent) 55%,
      color-mix(in srgb, var(--c-abyss) 5%, transparent) 100%),
    var(--scrim-left);
}
.hero--photo .hero__body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--container-wide) + 2 * var(--page-gutter));
  margin-inline: auto;
  padding: var(--space-16) var(--page-gutter) var(--space-10);
}
.hero--photo .hero__text {
  position: relative;
  max-width: 960px;
  min-width: 0;
}
/* Text layer: from a soft top edge above the text down to the bottom of the hero. */
.hero--photo .hero__text::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(-1 * var(--hero-layer-fade));
  bottom: calc(-1 * var(--space-10));
  left: calc(-1 * var(--page-gutter));
  right: calc(-1 * var(--page-gutter));
  background: var(--hero-layer);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, var(--c-deep-blue) var(--hero-layer-fade));
  mask-image: linear-gradient(to bottom, transparent 0, var(--c-deep-blue) var(--hero-layer-fade));
  pointer-events: none;
}
.hero__keyline {
  display: block;
  width: var(--space-12);
  height: var(--border-width-heavy);
  margin-bottom: var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--theme-bg);
}
.hero__eyebrow {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-bold);
  line-height: var(--lh-label);
  letter-spacing: var(--ls-label);
  color: var(--c-white);
}
.hero--photo .hero__line { max-width: 560px; }
.hero__action {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
/* The pale Presentation theme's dark pill disappears on a photo: use the white pill there (as the carousel). */
.hero--photo.theme-presentation .hero__button {
  --btn-bg: var(--btn-inverse-bg);
  --btn-fg: var(--btn-inverse-fg);
  --btn-border: var(--btn-inverse-border);
}

/* Full bleed: edge to edge, from the top of the page (under the header pill). */
.hero--full-bleed .hero__frame {
  min-height: max(640px, min(94svh, 940px));
  padding-top: var(--hero-top);
}
/* Contained: inside the page margins, rounded, below the header pill. */
.hero--contained {
  padding: var(--hero-top) var(--page-gutter) 0;
}
.hero--contained .hero__frame {
  max-width: var(--container-wide);
  min-height: max(560px, min(78svh, 820px));
  margin-inline: auto;
  border-radius: var(--radius-card);
}
.hero--contained .hero__body { padding-inline: var(--space-6); }
.hero--contained .hero__text::before { left: calc(-1 * var(--space-6)); right: calc(-1 * var(--space-6)); }

@media (min-width: 768px) {
  .hero--photo .hero__text::before {
    right: auto;
    width: calc(var(--page-gutter) + 640px + var(--hero-layer-fade));
    background: linear-gradient(to right, var(--hero-layer) calc(100% - var(--hero-layer-fade)), transparent);
  }
  .hero--contained .hero__body { padding-inline: var(--space-12); }
  .hero--contained .hero__text::before { width: calc(var(--space-12) + 640px + var(--hero-layer-fade)); }
}
@media (min-width: 1024px) {
  .hero--photo .hero__body { padding-bottom: clamp(var(--space-12), 8vh, var(--space-24)); }
  .hero--contained .hero__body { padding-inline: var(--space-16); }
}

/* ── Compact ───────────────────────────────────────────────────────────── */
/* On the section theme's ground (the theme class sets the background and the text colours). */
.hero--compact .hero__body {
  max-width: calc(var(--container-wide) + 2 * var(--page-gutter));
  margin-inline: auto;
  padding: calc(var(--hero-top) + var(--space-8)) var(--page-gutter) clamp(var(--space-12), 9vw, var(--space-32));
}
.hero--compact .hero__heading { max-width: 960px; }
.hero--compact .hero__line { max-width: 580px; }
.hero--compact .breadcrumb { margin-bottom: var(--space-6); }

/* ── Breadcrumb trail ──────────────────────────────────────────────────── */
.breadcrumb {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-label);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
/* The separator is decoration: empty alternative text, so screen readers skip it. */
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  content: "/" / "";
  margin-inline: var(--space-2);
  color: var(--color-text);
}
.breadcrumb__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-thickness: var(--border-width);
  text-underline-offset: 3px;
}
.breadcrumb__link:hover { color: var(--color-heading); }
.breadcrumb__current {
  color: var(--color-heading);
  font-weight: var(--fw-bold);
}
