/* Approved Cargo Acceptance composition, opt-in allowlist only. Real source photos. */
html body.ui-v4-site .story-hero {
  padding: 28px 0 48px;
  background: #fff;
  color: #122b3b;
}

html body.ui-v4-site .story-hero__container {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
}

.story-hero__frame {
  --frame-radius: 40px;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: var(--frame-radius);
  corner-shape: superellipse(2);
  background: #142b35;
}

/* An in-flow ratio spacer keeps 16:9 / 4:5 at normal text size, while
   allowing the frame to grow rather than clip an enlarged heading. */
.story-hero__frame::before {
  content: "";
  grid-area: 1 / 1;
  padding-top: 56.25%;
  pointer-events: none;
}

.story-hero__picture {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

html body.ui-v4-site .story-hero__picture img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: var(--hero-focus, 50% 50%);
  opacity: 1;
  filter: none;
}

.story-hero__heading {
  grid-area: 1 / 1;
  align-self: end;
  position: relative;
  z-index: 1;
  padding: 42px 48px;
}

/* The scrim follows the heading's height, including when text is enlarged.
   The upper cargo area stays clear rather than receiving a full-image wash. */
.story-hero__heading::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -100px 0 0;
  background: linear-gradient(180deg, rgba(6, 18, 24, 0), rgba(6, 18, 24, .70) 100px, rgba(6, 18, 24, .93) 100%);
  pointer-events: none;
}

html body.ui-v4-site .story-hero .story-hero__eyebrow {
  margin: 0 0 16px;
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

html body.ui-v4-site .story-hero h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.375rem, 4.4vw, 4rem);
  font-weight: 550;
  line-height: 1.06;
  letter-spacing: -.04em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.story-hero__intro {
  padding-top: 28px;
}

html body.ui-v4-site .story-hero .story-hero__lead {
  max-width: 780px;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.65;
  color: #415665;
}

.story-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

html body.ui-v4-site .story-hero__actions .button {
  min-height: 52px;
  white-space: normal;
  text-align: center;
  font-size: 1rem;
}

html body.ui-v4-site .story-hero__actions .button-secondary {
  color: #123e57;
  border: 1px solid #9dafbb;
  background: #fff;
}

@media (max-width: 900px) {
  html body.ui-v4-site .story-hero__container {
    width: calc(100% - 48px);
  }
  .story-hero__heading { padding: 32px; }
  .story-hero__frame { --frame-radius: 32px; }
}

@media (max-width: 600px) {
  html body.ui-v4-site .story-hero { padding: 16px 0 36px; }
  html body.ui-v4-site .story-hero__container { width: calc(100% - 40px); }
  .story-hero__frame { --frame-radius: 28px; }
  .story-hero__frame::before { padding-top: 125%; }
  html body.ui-v4-site .story-hero__picture img {
    /* Enlarge within the clipped frame to remove excess roof, never distort. */
    height: var(--hero-mobile-height, 100%);
    max-width: none;
    object-position: var(--hero-mobile-focus, 50% 50%);
    transform: translateY(var(--hero-mobile-shift, 0%));
  }
  .story-hero__heading { padding: 24px; }
  .story-hero__heading::before {
    top: -72px;
    background: linear-gradient(180deg, rgba(6, 18, 24, 0), rgba(6, 18, 24, .70) 72px, rgba(6, 18, 24, .93) 100%);
  }
  html body.ui-v4-site .story-hero .story-hero__eyebrow { font-size: .75rem; margin-bottom: 12px; }
  html body.ui-v4-site .story-hero h1 { font-size: 2.125rem; line-height: 1.07; letter-spacing: -.035em; }
  .story-hero__intro { padding-top: 24px; }
  html body.ui-v4-site .story-hero .story-hero__lead { font-size: 1rem; line-height: 1.65; }
  .story-hero__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  html body.ui-v4-site .story-hero__actions .button { width: 100%; }
}

@media (max-width: 350px) {
  .story-hero__heading { padding: 22px; }
  html body.ui-v4-site .story-hero h1 { font-size: 1.875rem; }
}

.story-hero__heading { min-width:0; }
html body.ui-v4-site .story-hero h1 { overflow-wrap:anywhere; }
html body.ui-v4-site .story-hero__caption { margin:12px 0 0; max-width:850px; font-size:.875rem; line-height:1.5; color:#516471; }
html body.ui-v4-site .story-hero__sources { display:flex; flex-wrap:wrap; gap:8px 18px; list-style:none; margin:20px 0 0; padding:0; color:#415665; font-size:1rem; }
html body.ui-v4-site .story-hero__sources li { margin:0; }
html body.ui-v4-site .story-hero__actions a { display:inline-flex; justify-content:center; align-items:center; }
/* Route pages formerly placed a transparent fixed header over a full-bleed hero.
   Only opt-in photo-frame routes get the same separate white header as the sample. */
html body.ui-v4-site:is(.ui-v4-family-country-route,.ui-v4-family-regional-route):has(.story-hero) .site-header,
html body.ui-v4-site.eu-taste-pilot.europe-route-page.ui-v4-europe-product-design:has(.story-hero) .site-header {
  position:relative; inset:auto; background:#fff; color:#122b3b;
  border-bottom:1px solid #122b3b12; box-shadow:none;
  backdrop-filter:none; -webkit-backdrop-filter:none;
}
html body.ui-v4-site:has(.story-hero) .site-header :is(.brand,.nav-links>a,.primary-nav>a) { color:#122b3b; }
html body.ui-v4-site:has(.story-hero) .site-header .brand img { filter:none; }
html body.ui-v4-site:has(.story-hero) .site-header :is(.nav-cta,.header-whatsapp) { background:#2873a8; border-color:#2873a8; color:#fff; }
html body.ui-v4-site:has(.story-hero) .knowledge-mobile-nav summary { color:#122b3b; background:#fff; border-color:#a8b6bf; }
@media (max-width:600px) {
  /* Keep a real photo area even when a long title or enlarged text needs more height. */
  .story-hero__heading { margin-top:160px; }
}
