/* Ledra College — current shared chapter geometry and boundary implementation.
   The current Home page is the primary front-end reference. This layer owns generic chapter spacing,
   section-boundary cleanup and full-bleed background behaviour. Component-internal borders remain
   owned by their semantic components and route-family composition may still opt into deliberate
   84px editorial chapters where that composition needs slightly more air. */

:root{
  --ledra-chapter-space:82px;
  --ledra-chapter-space-compact:58px;
  --ledra-chapter-line:#D9DEE5;
}

/* Automatic section-to-section divider rules are retired. Chapters separate primarily through
   whitespace, background contrast and content geometry. A visible rule is explicit to its component. */
.rollout-a-page .content-section + .content-section,
.rollout-b-page .content-section + .content-section,
.ledra-inner-prototype .content-section + .content-section,
.core-chapter + .core-chapter{
  border-top:0!important;
  box-shadow:none;
}

/* Historical inner-page systems added short orange pseudo-rules to nearly every chapter/split.
   Home carries that accent through the kicker instead, so generic chapter decoration is retired. */
body .core-chapter::before,
body .core-chapter::after,
body .core-split::before,
body .core-split::after,
body [data-ledra-scheme="editorial-split"]::before,
body [data-ledra-scheme="editorial-split"]::after{
  content:none!important;
  display:none!important;
  width:0!important;
  height:0!important;
  border:0!important;
  background:none!important;
  box-shadow:none!important;
}

/* Shared conversion/contact hubs must not generate another boundary. Retire both real borders and
   the historical inner-design-v1 ::before full-width pseudo-rule. */
.rollout-a-page .contact-hub,
.rollout-b-page .contact-hub,
.ledra-inner-prototype .contact-hub,
body .contact-hub{
  border-top:0!important;
  border-bottom:0!important;
  outline:0!important;
}
body .contact-hub::before,
body .contact-hub::after{
  content:none!important;
  display:none!important;
  width:0!important;
  height:0!important;
  background:none!important;
  box-shadow:none!important;
}

/* Admissions programme-return chapter and conversion hub share one clean transition. */
.rollout-a-admissions .canonical-admissions-programmes,
.rollout-a-admissions .canonical-admissions-programmes + .contact-hub{
  border-top:0!important;
  border-bottom:0!important;
  outline:0!important;
  box-shadow:none!important;
}
.rollout-a-admissions .canonical-admissions-programmes::before,
.rollout-a-admissions .canonical-admissions-programmes::after,
.rollout-a-admissions .canonical-admissions-programmes + .contact-hub::before,
.rollout-a-admissions .canonical-admissions-programmes + .contact-hub::after{
  content:none!important;
  display:none!important;
}

/* Generic expanded core chapters use the Home-derived responsive cadence. */
body .core-chapter{
  padding-top:var(--ledra-chapter-space)!important;
  padding-bottom:var(--ledra-chapter-space)!important;
}

/* Non-scheme factual/fallback states still belong to the same hard-edged visual system. This keeps
   old prototype shadows/radii from surviving on fact matrices, empty search states or source-safe
   notices merely because those elements are not Route/Information/Programme Cards. */
body .content-fact-panel,
body .content-source-empty,
body .core-source-state,
body .core-source-note,
body .empty-state{
  border-radius:0!important;
  box-shadow:none!important;
  transform:none!important;
}

/* Full-bleed chapter contract. Outer colour fields span the viewport; the .section-shell child
   remains the constrained content geometry. */
body .content-dark,
body .content-soft,
body .core-dark,
body .core-soft,
body .programme-choice-band{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  border-left:0!important;
  border-right:0!important;
}

/* Legacy constrained sections that paint full-bleed via the established overflow primitive may keep
   that mechanism during migration, but may not also draw section boundaries. */
.rollout-a-page .content-page-hero,
.rollout-a-programme .content-programme-hero,
.rollout-a-directory .content-section.content-split,
.rollout-a-programme .rollout-a-outcomes,
.rollout-a-admissions .rollout-a-admissions-prescreen,
.rollout-a-tuition .rollout-a-fee-details,
.rollout-a-programme .canonical-programme-structure,
.rollout-a-programme .canonical-programme-admissions,
.rollout-a-programme .rollout-a-faq,
.rollout-a-admissions .rollout-a-admissions-levels,
.rollout-a-process .rollout-a-after-prescreen,
.rollout-a-requirements .rollout-a-requirement-programmes,
.rollout-b-page .core-dark,
.rollout-b-page .core-soft{
  border-top:0!important;
  border-bottom:0!important;
  outline:0!important;
}

/* Grid/list/table rules are content structure, not chapter boundaries. */
.core-info-grid,
.core-route-grid,
.core-checklist,
.core-programme-links,
.content-list-grid,
.content-fee-table,
.content-accreditation-table,
.programme-grid{
  box-sizing:border-box;
}

/* Decorative page-family pseudo-rules must not stack with real chapter transitions. */
main > .content-dark::before,
main > .content-dark::after,
main > .content-soft::before,
main > .content-soft::after,
main > .programme-choice-band::before,
main > .programme-choice-band::after{
  border:0!important;
  box-shadow:none!important;
}

@media(max-width:700px){
  :root{
    --ledra-chapter-space:58px;
    --ledra-chapter-space-compact:44px;
  }
}
