/* Ledra College — current shared chrome and shell implementation.
   The current Home page is the primary global front-end reference. This file owns the institutional
   strip, primary header/navigation, breadcrumb shell, and the shared top/content-shell vocabulary.
   Page-family CSS must not create narrower route-family shell authorities. */

:root{
  --ledra-blue:#14184F;
  --ledra-orange:#E67E22;
  --ledra-scheme-blue:#14184F;
  --ledra-scheme-orange:#E67E22;
  /* One bounded shell: preserve laptop geometry and use more of wide desktops. */
  --ledra-shell-standard-max:clamp(1280px,84vw,1480px);
  --ledra-shell-standard-gutter:32px;
  --ledra-shell-wide-max:var(--ledra-shell-standard-max);
  --ledra-shell-wide-gutter:32px;
  --ledra-nav-size:clamp(.9375rem,calc(.875rem + .08vw),1rem);
}

/* One Home-derived editorial shell site-wide. Narrow text measures still belong inside sections. */
body{
  --ledra-shell-max:var(--ledra-shell-standard-max);
  --ledra-shell-gutter:var(--ledra-shell-standard-gutter);
  --ledra-shell-edge:max(var(--ledra-shell-gutter),calc((100vw - var(--ledra-shell-max))/2));
  --max:var(--ledra-shell-max);
  --content-max:var(--ledra-shell-max);
}
body.home-page{
  --ledra-shell-max:var(--ledra-shell-wide-max);
  --ledra-shell-gutter:var(--ledra-shell-wide-gutter);
}

/* Constrained content shells follow the same horizontal guide as Home/header/breadcrumbs. Three
   intentional full-bleed chapter variants can themselves carry section-shell and therefore opt out. */
body .section-shell:not(.about-approach-chapter):not(.accreditation-limits-chapter):not(.apply-next-chapter){
  width:min(var(--ledra-shell-max),calc(100% - (var(--ledra-shell-gutter) * 2)))!important;
  max-width:none!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Canonical institutional strip — slim, dark, informational, and aligned to the active page shell. */
body .institutional-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:28px;
  margin:0;
  padding:5px var(--ledra-shell-edge);
  border:0;
  border-top:3px solid var(--ledra-orange);
  background:var(--ledra-blue);
  color:#fff;
  font-family:var(--ledra-display);
  font-size:10px;
  font-weight:650;
  line-height:1.3;
  letter-spacing:.055em;
}
body .institutional-strip span:first-child{
  text-transform:uppercase;
  letter-spacing:.12em;
}
body .institutional-strip span:last-child{
  color:rgba(255,255,255,.82);
  text-align:right;
}

/* One primary header. Geometry follows Home: white surface, compact institutional brand,
   restrained nav, strong blue action, no floating container treatment. */
body .site-header.ledra-global-header{
  position:sticky!important;
  top:0!important;
  z-index:50!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:28px!important;
  width:100%!important;
  max-width:none!important;
  min-height:76px!important;
  margin:0!important;
  padding:10px var(--ledra-shell-edge)!important;
  border:0!important;
  border-bottom:1px solid rgba(20,24,79,.16)!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  color:#111827!important;
}
body .site-header.ledra-global-header::before,
body .site-header.ledra-global-header::after{
  content:none!important;
  display:none!important;
}
body .site-header.ledra-global-header .brand{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:max-content!important;
  margin:0!important;
  padding:0!important;
  color:var(--ledra-blue)!important;
}
body .site-header.ledra-global-header .brand-logo{
  display:block!important;
  position:static!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  flex:0 0 34px!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
}
body .site-header.ledra-global-header .brand-wordmark{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin:0!important;
  line-height:1!important;
  white-space:nowrap!important;
}
body .site-header.ledra-global-header .brand strong{
  margin:0!important;
  color:var(--ledra-blue)!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:22px!important;
  font-weight:500!important;
  line-height:1!important;
  letter-spacing:.02em!important;
  text-transform:none!important;
}
body .site-header.ledra-global-header .brand-divider{
  display:block!important;
  width:1px!important;
  height:13px!important;
  margin:0!important;
  background:#cbd2dc!important;
}
body .site-header.ledra-global-header .brand small{
  display:block!important;
  margin:0!important;
  color:#667085!important;
  font-family:var(--ledra-display)!important;
  font-size:9px!important;
  font-weight:650!important;
  line-height:1!important;
  letter-spacing:.08em!important;
  text-transform:none!important;
}

body .site-header.ledra-global-header .site-nav{
  display:flex!important;
  align-items:center!important;
  gap:24px!important;
  margin:0!important;
  padding:0!important;
  color:#111827!important;
  font-family:var(--ledra-display)!important;
  font-size:var(--ledra-nav-size)!important;
  font-weight:400!important;
  line-height:1!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
body .site-header.ledra-global-header .site-nav>a{
  font-size:var(--ledra-nav-size)!important;
  font-weight:400!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
body .site-header.ledra-global-header .site-nav>a:not(.nav-apply){
  position:relative!important;
  padding:15px 0 13px!important;
  border:0!important;
  border-bottom:4px solid transparent!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#111827!important;
}
body .site-header.ledra-global-header .site-nav>a:not(.nav-apply)::before,
body .site-header.ledra-global-header .site-nav>a:not(.nav-apply)::after{
  content:none!important;
  display:none!important;
}
body .site-header.ledra-global-header .site-nav>a:not(.nav-apply):not([aria-current="page"]):hover,
body .site-header.ledra-global-header .site-nav>a:not(.nav-apply):not([aria-current="page"]):focus-visible{
  color:var(--ledra-orange)!important;
  border-bottom-color:transparent!important;
}
body .site-header.ledra-global-header .site-nav>a[aria-current="page"]:not(.nav-apply),
body .site-header.ledra-global-header .site-nav>a[aria-current="page"]:not(.nav-apply):hover,
body .site-header.ledra-global-header .site-nav>a[aria-current="page"]:not(.nav-apply):focus-visible{
  color:#111827!important;
  border-bottom-color:var(--ledra-orange)!important;
}
body .site-header.ledra-global-header .nav-apply{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:44px!important;
  margin:0!important;
  padding:0 18px!important;
  border:1px solid var(--ledra-blue)!important;
  border-radius:0!important;
  background:var(--ledra-blue)!important;
  color:#fff!important;
  font-size:var(--ledra-nav-size)!important;
  font-weight:750!important;
  line-height:1!important;
  transition:background .16s ease,border-color .16s ease,color .16s ease!important;
}
body .site-header.ledra-global-header .nav-apply:hover,
body .site-header.ledra-global-header .nav-apply:focus-visible{
  border-color:var(--ledra-orange)!important;
  background:var(--ledra-orange)!important;
  color:#fff!important;
}
body .site-header.ledra-global-header .menu-toggle{
  display:none!important;
  border:1px solid var(--ledra-blue)!important;
  border-radius:0!important;
  background:var(--ledra-blue)!important;
  color:#fff!important;
}

/* Breadcrumb grammar: one quiet line of hierarchy, same horizontal guide as the page H1. */
body .breadcrumbs,
body nav.breadcrumbs,
body .breadcrumbs.section-shell{
  width:min(var(--ledra-shell-max),calc(100% - (var(--ledra-shell-gutter) * 2)))!important;
  max-width:none!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:0!important;
  padding-right:0!important;
  border-top:0!important;
  border-bottom:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body .breadcrumbs::before,
body .breadcrumbs::after{
  content:none!important;
  display:none!important;
}

/* Hero boundaries are chapters, not extra horizontal-rule stacks. */
main>.content-page-hero,
main>.content-programme-hero,
main>.rollout-hero,
main>.campus-hero,
main>.page-hero,
main>.content-hero{
  border-top:0!important;
  border-bottom:0!important;
  outline:0!important;
}

@media(max-width:1180px){
  :root{--ledra-nav-size:.875rem}
}
@media(max-width:1080px){
  body .site-header.ledra-global-header .site-nav{gap:18px!important}
}

@media(max-width:960px){
  :root{--ledra-nav-size:.9375rem}
  body,
  body.home-page{
    --ledra-shell-gutter:20px;
  }
  body .institutional-strip{
    min-height:26px;
    font-size:9px;
  }
  body .site-header.ledra-global-header{
    min-height:68px!important;
    padding-top:9px!important;
    padding-bottom:9px!important;
  }
  body .site-header.ledra-global-header .menu-toggle{
    display:block!important;
    padding:10px 13px!important;
  }
  body .site-header.ledra-global-header .site-nav{
    position:absolute!important;
    top:100%!important;
    left:0!important;
    right:0!important;
    display:none!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:0!important;
    padding:8px var(--ledra-shell-edge) 16px!important;
    border:0!important;
    border-bottom:1px solid rgba(20,24,79,.16)!important;
    background:#fff!important;
    box-shadow:0 16px 30px rgba(20,24,79,.08)!important;
  }
  body .site-header.ledra-global-header .site-nav.is-open{display:flex!important}
  body .site-header.ledra-global-header .site-nav>a:not(.nav-apply){
    padding:13px 0!important;
    border-bottom:0!important;
  }
  body .site-header.ledra-global-header .site-nav>a[aria-current="page"]:not(.nav-apply){
    border-bottom:4px solid var(--ledra-orange)!important;
  }
  body .site-header.ledra-global-header .nav-apply{margin-top:8px!important}
}

@media(max-width:700px){
  body,
  body.home-page{
    --ledra-shell-gutter:14px;
  }
  body .institutional-strip{
    justify-content:flex-start;
    min-height:24px;
    padding-top:5px;
    padding-bottom:5px;
  }
  body .institutional-strip span:last-child{display:none}
  body .site-header.ledra-global-header .brand-logo{
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    max-width:32px!important;
    flex-basis:32px!important;
  }
  body .site-header.ledra-global-header .brand strong{font-size:20px!important}
}

@media(max-width:520px){
  body .site-header.ledra-global-header .brand-divider,
  body .site-header.ledra-global-header .brand small{display:none!important}
}
