/*
 * Raeburn education-family design language.
 * Based on the production Students and T Levels headers:
 * a restrained announcement strip, real Raeburn logo, white navigation,
 * navy programme hero and restrained violet/indigo accent.
 * Loaded after the existing site styles; never alters data or enrolment.
 */
:root {
  --raeburn-violet: #8c7ce9;
  --raeburn-navy: #121b32;
  --raeburn-nav-text: #1d2b45;
  --raeburn-border: #e1e5ee;
}
html { scroll-padding-top: 91px; }
.announcement {
  background: #0d1527;
  color: #dce3f2;
  border-bottom: 1px solid rgba(221,229,250,.12);
  letter-spacing: .13em;
}
.announcement .announcement-inner {
  height: 29px;
  font-size: 9px;
  font-weight: 740;
}
.announcement .announcement-inner > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.announcement .announcement-dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  background: #a895ff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(168,149,255,.16);
}
.announcement .slash { color: #acb7d4; margin: 0 9px; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  color: var(--raeburn-nav-text);
  border-bottom: 1px solid var(--raeburn-border);
  box-shadow: 0 7px 25px rgba(16,28,52,.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.header .header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  position: relative;
}
.header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.header .brand-logo {
  display: block;
  width: 43px;
  height: 43px;
  object-fit: contain;
  flex: none;
}
.header .brand-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.12;
}
.header .brand-lockup strong {
  font-size: 15px;
  font-weight: 780;
  letter-spacing: -.03em;
  color: #16243f;
  white-space: nowrap;
}
.header .brand-lockup strong span {
  font-weight: 520;
  color: #626f86;
}
.header .brand-lockup small {
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: .21em;
  color: #5b4ca8;
  font-weight: 820;
}
.header .nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.65vw, 25px);
  flex: 1;
}
.header .nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  position: relative;
  color: #344461;
  text-decoration: none;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
  transition: color .18s ease;
}
.header .nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: #7868c9;
  transition: right .18s ease;
}
.header .nav a:not(.nav-cta):hover,
.header .nav a:not(.nav-cta):focus-visible { color: #51459d; }
.header .nav a:not(.nav-cta):hover::after,
.header .nav a:not(.nav-cta):focus-visible::after { right: 0; }
.header .nav .nav-cta {
  padding: 12px 17px;
  background: #131d35;
  color: white;
  border: 1px solid #131d35;
  border-radius: 9px;
  box-shadow: 0 4px 11px rgba(15,28,50,.12);
  min-height: 43px;
}
.header .nav .nav-cta:hover,
.header .nav .nav-cta:focus-visible {
  background: #343f78;
  color: white;
  border-color: #343f78;
  box-shadow: 0 6px 18px rgba(35,41,108,.22);
}
.header .menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex: none;
  width: 45px;
  height: 45px;
  min-width: 45px;
  min-height: 45px;
  padding: 8px;
  border-radius: 9px;
  color: #182742;
  border: 1px solid #afbad0;
  background: #fff;
}
.header .menu-toggle span {
  background: currentColor;
  width: 22px;
  height: 2px;
  margin: 3px auto;
  border-radius: 2px;
}
.header :where(a, button):focus-visible {
  outline: 3px solid #6a5cc5;
  outline-offset: 3px;
}

/* Deep-navy and violet programme treatment, matching the sister sites. */
.hero {
  background-color: #111b33;
  background-image:
    linear-gradient(rgba(169,167,217,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169,167,217,.045) 1px, transparent 1px),
    radial-gradient(ellipse at 82% 24%, rgba(108,96,182,.30), transparent 48%),
    linear-gradient(125deg, #10192e 0%, #192541 100%);
  background-size: 58px 58px, 58px 58px, auto, auto;
}
.hero h1 em {
  color: #b3aafa;
  font-family: inherit;
  font-style: normal;
  font-weight: 760;
}
.hero .eyebrow { color: #bcb3ff; }
.hero .eyebrow-line { background: #a99ef0; }
.hero .button-light {
  background: #fff;
  color: #18253c;
}
.hero .button-light:hover { background: #e9e8ff; }
.hero .button-ghost { border-color: #8996ba; }
.hero .art-image { border-radius: 112px 12px 12px 12px; }
.hero .art-sticker {
  background: #fff;
  color: #19243d;
  border-radius: 10px 10px 10px 10px;
  box-shadow: 0 16px 43px rgba(12,21,48,.19);
}
.hero .art-sticker .sticker-icon { color: #8475dc; }
.intro-rail { background: #f2f3f9; border-bottom-color: #dde2ee; }
.rail-grid div { border-right-color: #d9deea; }

@media (max-width: 1140px) {
  .header .header-inner { height: 70px; }
  .header .menu-toggle { display: inline-flex; }
  .header .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 1px);
    padding: 10px 20px 18px;
    margin: 0;
    background: #fff;
    border: 1px solid #e2e5ee;
    border-top: none;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 28px rgba(14,26,50,.16);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100dvh - 78px);
    overflow-y: auto;
  }
  .header .nav.open { display: flex; }
  .header .nav a {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
    padding: 10px 13px;
    font-size: 14px;
    border-radius: 7px;
  }
  .header .nav a:not(.nav-cta)::after { display: none; }
  .header .nav a:not(.nav-cta):hover,
  .header .nav a:not(.nav-cta):focus-visible {
    background: #f1f0fa;
    color: #433984;
  }
  .header .nav .nav-cta {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
  }
}
@media (max-width: 680px) {
  .announcement .announcement-inner { height: 28px; font-size: 8px; }
  .header .header-inner { height: 65px; }
  .header .brand-logo { width: 40px; height: 40px; }
  .header .brand-lockup strong { font-size: 14px; }
  .header .nav { max-height: calc(100dvh - 72px); }
  .hero .art-image { border-radius: 70px 12px 12px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .header .nav a,
  .header .nav a::after { transition: none; }
}
