/* One structural hierarchy for both themes. The existing palette provides A and B. */
html[data-website-theme] body > .site-header {
  background:var(--zone-contrast);
  color:var(--zone-ink);
}
html[data-website-theme] body > .site-header ~ #main > .page-top {
  --section-surface:var(--zone-base);
}

/* The entire photo section owns its band, including its controls and outer breathing room. */
html[data-website-theme] body > .site-header ~ #main > .content-carousel-v9 {
  --section-surface:var(--zone-contrast);
  --panel:var(--zone-base);
  position:relative;
  isolation:isolate;
  background:var(--section-surface);
  color:var(--zone-ink);
  margin-block:0;
  padding-block:clamp(32px,4vw,56px);
  border-bottom:0;
}
html[data-website-theme] body > .site-header ~ #main > .content-carousel-v9::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:var(--section-surface);
  box-shadow:0 0 0 100vmax var(--section-surface);
  clip-path:inset(0 -100vmax);
}

/* Cards sit within a complete reading band with inset on all four sides. */
html[data-website-theme] body > .site-header ~ #main > .course-list {
  --section-surface:var(--zone-base);
  background:var(--section-surface);
  padding-block:clamp(32px,4vw,56px);
  gap:clamp(24px,3vw,40px);
}
html[data-website-theme] body > .site-header ~ #main > .course-list > article {
  box-sizing:border-box;
  min-width:0;
  background:var(--zone-contrast);
  padding:clamp(20px,2.2vw,32px);
  border:0;
}
html[data-website-theme] body > .site-header ~ #main > .course-list + .section {
  --section-surface:var(--zone-contrast);
  margin-top:0!important;
  padding-block:clamp(32px,4vw,56px);
}
html[data-website-theme] body > .site-header ~ #main > .content-carousel-v9 + .section {
  --section-surface:var(--zone-base);
  padding-block:clamp(32px,4vw,56px);
}

/* Contact columns are content within one band, not two unpadded cards. */
html[data-website-theme] body > .site-header ~ #main > .contact-layout > .contact-details {
  background:transparent;
}

/* A form group stays on its section; an existing padded result remains a real card. */
html[data-website-theme] body > .site-header ~ #main .tool-workspace {
  padding-block:clamp(32px,4vw,56px);
}
html[data-website-theme] body > .site-header ~ #main .tool-workspace > .input-block {
  background:transparent;
}
@media (max-width:900px) {
  html[data-website-theme] body > .site-header ~ #main > .course-list {
    grid-template-columns:minmax(0,1fr);
  }
}
