/* Apply-ED global site shell
   Shared header and footer for public pages.
   Keep selectors namespaced to avoid collisions with legacy Webflow styles.
*/

:root {
  --aed-shell-navy: #263358;
  --aed-shell-sage: #799377;
  --aed-shell-sage-soft: #e2e8e2;
  --aed-shell-rust: #c8956d;
  --aed-shell-offwhite: #fbfcfa;
  --aed-shell-text: #7a7f87;
  --aed-shell-border: #dde4dd;
  --aed-shell-white: #ffffff;
  --aed-shell-shadow: 0 18px 45px rgba(38, 51, 88, 0.10);
}

.aed-shell-header *,
.aed-shell-header *::before,
.aed-shell-header *::after,
.aed-shell-footer *,
.aed-shell-footer *::before,
.aed-shell-footer *::after {
  box-sizing: border-box;
}

/* Shared container */

.aed-shell-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */

.aed-shell-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid var(--aed-shell-border);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  font-family: Montserrat, Arial, sans-serif;
}

.aed-shell-header-inner {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 30px;
  align-items: center;
  min-height: 78px;
}

.aed-shell-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.aed-shell-logo img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}

.aed-shell-nav {
  display: flex;
  gap: clamp(18px, 2.3vw, 34px);
  align-items: center;
  justify-content: center;
}

.aed-shell-nav > a,
.aed-shell-samples-summary {
  color: var(--aed-shell-navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
}

.aed-shell-nav > a:hover,
.aed-shell-samples-summary:hover,
.aed-shell-samples[open] > .aed-shell-samples-summary {
  color: var(--aed-shell-sage);
}

/* Sample Programs dropdown */

.aed-shell-samples {
  position: relative;
}

.aed-shell-samples-summary {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.aed-shell-samples-summary::-webkit-details-marker {
  display: none;
}

.aed-shell-samples-summary::after {
  position: relative;
  top: -1px;
  content: "⌄";
  font-size: 15px;
}

.aed-shell-samples-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  display: none;
  width: 270px;
  transform: translateX(-50%);
  border: 1px solid var(--aed-shell-border);
  border-radius: 16px;
  background: var(--aed-shell-white);
  box-shadow: var(--aed-shell-shadow);
  padding: 10px;
}

.aed-shell-samples[open] .aed-shell-samples-menu,
.aed-shell-samples:hover .aed-shell-samples-menu {
  display: grid;
}

.aed-shell-samples-menu a {
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--aed-shell-navy);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.4;
  text-decoration: none;
}

.aed-shell-samples-menu a:hover {
  background: var(--aed-shell-sage-soft);
}

.aed-shell-samples-all {
  font-weight: 700 !important;
  text-transform: uppercase;
}

/* Header CTA */

.aed-shell-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  padding: 13px 23px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.aed-shell-button-primary,
.aed-shell-button-primary:link,
.aed-shell-button-primary:visited {
  background: var(--aed-shell-sage);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.aed-shell-button-primary:hover {
  transform: translateY(-1px);
  background: #6d866b;
}

.aed-shell-header-cta {
  white-space: nowrap;
}

/* Mobile navigation */

.aed-shell-mobile-nav {
  position: relative;
  display: none;
  justify-self: end;
}

.aed-shell-mobile-nav > summary {
  display: flex;
  min-width: 48px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--aed-shell-border);
  border-radius: 12px;
  color: var(--aed-shell-navy);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  list-style: none;
  text-transform: uppercase;
}

.aed-shell-mobile-nav > summary::-webkit-details-marker {
  display: none;
}

.aed-shell-mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: min(300px, calc(100vw - 32px));
  gap: 2px;
  border: 1px solid var(--aed-shell-border);
  border-radius: 16px;
  background: var(--aed-shell-white);
  box-shadow: var(--aed-shell-shadow);
  padding: 12px;
}

.aed-shell-mobile-menu a {
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--aed-shell-navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
}

.aed-shell-mobile-menu a:hover {
  background: var(--aed-shell-sage-soft);
}

.aed-shell-mobile-sample {
  padding-left: 24px !important;
  color: var(--aed-shell-text) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: none !important;
}

/* Keyboard accessibility */

.aed-shell-header a:focus-visible,
.aed-shell-header summary:focus-visible,
.aed-shell-footer a:focus-visible {
  outline: 3px solid var(--aed-shell-rust);
  outline-offset: 4px;
  border-radius: 6px;
}

/* Footer */

.aed-shell-footer {
  border-top: 1px solid var(--aed-shell-border);
  background: var(--aed-shell-offwhite);
  padding: 44px 0 28px;
  font-family: Montserrat, Arial, sans-serif;
}

.aed-shell-footer-top {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 50px;
  align-items: start;
}

.aed-shell-footer-logo {
  display: inline-flex;
}

.aed-shell-footer-logo img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}

.aed-shell-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 26px;
  justify-content: flex-end;
}

.aed-shell-footer-links a {
  color: var(--aed-shell-navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-decoration: none;
  text-transform: uppercase;
}

.aed-shell-footer-links a:hover {
  color: var(--aed-shell-sage);
}

.aed-shell-footer-bottom {
  margin-top: 30px;
  border-top: 1px solid var(--aed-shell-border);
  padding-top: 18px;
  color: var(--aed-shell-text);
  font-size: 11px;
  text-align: center;
}

/* Tablet */

@media (max-width: 980px) {
  .aed-shell-header-inner {
    grid-template-columns: 1fr auto;
  }

  .aed-shell-nav,
  .aed-shell-header-cta {
    display: none;
  }

  .aed-shell-mobile-nav {
    display: block;
  }

  .aed-shell-footer-top {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .aed-shell-footer-links {
    justify-content: flex-start;
  }
}

/* Mobile */

@media (max-width: 760px) {
  .aed-shell-container {
    width: min(calc(100% - 32px), 1180px);
  }

  .aed-shell-header-inner {
    min-height: 68px;
  }

  .aed-shell-logo img {
    width: 150px;
  }

  .aed-shell-footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .aed-shell-button {
    transition: none;
  }
}

/* Preserve legacy visual heading styles when semantic heading levels are used */
.fyp-header-blue,
.home-what-we-do-heading,
.diff-header-white,
.difference-header,
.blue-header-about,
.home-programs-look-like,
.pricing-header-card,
.pr-main_header-blue,
.heading-4,
.sp-header-blue-copy,
.home-sample-header-caveat,
.structure-white-heading {
  text-transform: none;
}

.no-break {
  white-space: nowrap;
}

.aed-child-summary-name {
  font-size: 23px;
}

@media (max-width: 760px) {
  .aed-child-summary-name {
    font-size: 21px;
  }
}
