/* One background sequence for the whole home, shared by EN, PT and ES.
   Count only top-level sections so cards and nested content cannot affect it. */
body.home-bands > section {
  position: relative;
  isolation: isolate;
  background: var(--band-background) !important;
  color: var(--text);
}
body.home-bands > section:nth-of-type(odd) {
  --band-background: var(--bg);
  --band-pattern: none;
}
body.home-bands > section:nth-of-type(even) {
  --band-background: var(--bg-secondary);
  --band-pattern: none;
}
body.home-bands > section.hero {
  --band-pattern: var(--hero-pattern);
  /* The rotated background must not enlarge the page's scrollable area. */
  overflow: hidden;
  overflow: clip;
}
body.home-bands > section::before {
  content: '';
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  transform: none;
  background: var(--band-pattern) repeat 0 0 / 400px 400px;
  opacity: var(--hero-pattern-opacity);
  pointer-events: none;
  z-index: -1;
}
body.home-bands > section::after { content: none; }
body.home-bands > section.hero::before {
  inset: auto;
  top: 50%;
  left: 50%;
  width: 300vmax;
  height: 300vmax;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Thirteen content bands end on dark blue; the footer continues with grey. */
body.home-bands > footer { background: var(--bg-secondary); }
body.home-bands > footer::before,
body.home-bands > footer::after { content: none; }
body.home-bands > .discovery { border-top: 0; }
body.home-bands > section.cta-section {
  --band-background: var(--header-gradient);
  --band-pattern: none;
}
body.home-bands > .cta-section h2,
body.home-bands > .cta-section p { color: #fff; }
