/* Layout refinements shared by the public site, version 2.1.11. */

/* Responsive homepage photography: never crop the subject vertically. */
.home-hero {
  --home-hero-height: clamp(620px, 37.5vw, 768px);
  min-height: var(--home-hero-height);
}
.home-hero .hero-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f2e7dc;
}
.home-hero .hero-media img {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: right top;
}
.home-hero .hero-content { min-height: var(--home-hero-height); }

/* The transparent header belongs only to the homepage. */
body:not(.home-page) .site-header {
  background: rgba(250, 247, 243, .98);
  border-bottom: 1px solid rgba(18, 52, 80, .10);
  box-shadow: 0 8px 26px rgba(10, 37, 59, .055);
}
body:not(.home-page) .site-header::after { display: none; }

/* Logo, navigation, actions and page content share the same invisible edges. */
.header-shell {
  width: var(--shell);
  grid-template-columns: 250px minmax(0, 1fr) auto;
  gap: 8px;
}
.site-nav {
  justify-content: flex-start;
  gap: clamp(10px, 1vw, 17px);
}
.site-nav > a,
.nav-dropdown > button { font-size: .71rem; letter-spacing: .045em; }
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%,0);
}

.mobile-cart-bar { display: none; }

/* Interior headings follow the finer editorial scale of the approved mockups. */
.section-heading h2,
.editorial-layout h2,
.ler-grid h2,
.product-editorial h2,
.legal-copy h2,
.contact-layout > div h2 {
  font-size: clamp(1.7rem, 2.05vw, 2.35rem);
  line-height: 1.18;
}

/* The mission copy uses the full site grid instead of an arbitrary narrow column. */
.mission-narrative-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: clamp(44px, 6vw, 92px);
  align-items: start;
}
.mission-narrative-grid p {
  color: #344654;
  font: 400 clamp(1rem, 1.12vw, 1.13rem)/1.82 var(--serif);
}
.mission-narrative-grid > div > p:last-child { margin-bottom: 0; }
.mission-statement {
  padding-left: clamp(24px, 3vw, 44px);
  border-left: 1px solid rgba(45, 99, 149, .22);
}
.mission-statement blockquote {
  margin-top: 28px;
  padding: 23px 26px;
  font-size: clamp(1.15rem, 1.45vw, 1.35rem);
}

.digital-resources-heading { align-items: start; }
.digital-resources-heading > p {
  width: min(46%, 590px);
  margin: 4px 0 0;
  color: var(--muted);
}
.digital-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.digital-resource-grid article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 60, 96, .055);
}
.digital-resource-grid .icon {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: var(--blue);
}
.digital-resource-grid h3 {
  margin-bottom: 9px;
  color: var(--blue-deep);
  font: 400 1.35rem/1.25 var(--serif);
}
.digital-resource-grid p { margin: 0; color: var(--muted); }
.digital-resources-note {
  margin-top: 26px;
  padding: 22px 26px;
  border-left: 3px solid var(--blue);
  background: #eef4f8;
}
.digital-resources-note p { margin: 3px 0 0; color: var(--muted); }

/* Discrete glass surfaces, preserving the editorial palette. */
.product-card,
.purchase-card,
.checkout-card,
.order-summary,
.digital-resource-grid article,
.story-page .ler-grid article,
.product-editorial > section {
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.74);
  box-shadow: 0 18px 48px rgba(18,55,80,.09), inset 0 1px 0 rgba(255,255,255,.82);
  backdrop-filter: blur(13px) saturate(112%);
  -webkit-backdrop-filter: blur(13px) saturate(112%);
}
.product-card { position: relative; isolation: isolate; overflow: hidden; cursor: pointer; }
.product-card-image {
  background-color: #070604;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
@media (min-width: 1181px) {
  .product-hero__art img { object-position: right center; }
}
.product-card-hit { position: absolute; z-index: 5; inset: 0; border-radius: inherit; }
.product-card-hit:focus-visible { outline: 3px solid rgba(45,99,149,.5); outline-offset: -4px; }
.product-card:has(.product-card-hit:focus-visible) { outline: 3px solid rgba(45,99,149,.48); outline-offset: 3px; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 22px 55px rgba(18,55,80,.15), inset 0 1px 0 rgba(255,255,255,.9); }
.product-card .circle-link { transition: transform .25s ease, background .25s ease; }
.product-card:hover .circle-link { transform: translateX(3px); background: var(--blue-deep); }

.product-editorial { display: grid; gap: 22px; }
.product-editorial > section {
  margin: 0;
  padding: clamp(28px,3vw,44px);
  border-radius: 14px;
}
.product-editorial > section:first-child {
  padding-top: clamp(28px,3vw,44px);
}
.product-editorial > section:last-child {
  border-top: 1px solid rgba(255,255,255,.72);
  border-right: 1px solid rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(255,255,255,.72);
}
.product-editorial > section:nth-child(3n+1) { border-left: 3px solid rgba(45,99,149,.55); }
.product-editorial > section:nth-child(3n+2) { border-left: 3px solid rgba(168,115,33,.55); }
.product-editorial > section:nth-child(3n) { border-left: 3px solid rgba(75,104,124,.42); }
.product-editorial > section h2:first-child,
.product-editorial > section .section-kicker + h2 { margin-top: 0; }
.trilogy-grid article,
.catalog-search {
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.68);
  box-shadow: 0 16px 42px rgba(18,55,80,.08), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.button-light,
.button-ghost {
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.70);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 28px rgba(12,43,67,.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.button-primary { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 28px rgba(23,60,96,.22); }

/* The course CTA is visually separated from the navy footer. */
.product-final-cta {
  position: relative;
  color: var(--blue-deep);
  background: linear-gradient(135deg,#eef3f6 0%,#f8f3ea 52%,#e7eef2 100%);
  border-top: 1px solid rgba(45,99,149,.12);
  border-bottom: 12px solid var(--cream);
}
.product-final-cta::before { content: ""; position: absolute; inset: 18% 20%; background: rgba(255,255,255,.58); filter: blur(70px); pointer-events: none; }
.product-final-cta > .shell { position: relative; }
.product-final-cta h2 { color: var(--blue-deep); }
.product-final-cta .eyebrow { color: var(--blue); }
.product-final-cta .button-light { color: #fff; border-color: rgba(23,60,96,.2); background: var(--blue-deep); }
.product-final-cta .button-light:hover { background: #234f75; }

/* Legal pages use the same editorial width and type scale as the public site. */
.legal-hero { padding-bottom: 58px; background: linear-gradient(180deg,#f1f4f5 0%,var(--cream) 100%); }
.legal-hero h1 { max-width: 980px; font-size: clamp(2.65rem,4.3vw,4.65rem); }
.legal-hero p:last-child { margin-bottom: 0; }
.legal-section { padding-top: 66px; background: #fff; }
.legal-copy { width: min(var(--shell), 1120px); color: #344654; }
.legal-copy h2 { margin: 2.25em 0 .7em; scroll-margin-top: calc(var(--header) + 24px); color: var(--blue-deep); font: 400 clamp(1.55rem,2vw,2.05rem)/1.22 var(--serif); }
.legal-copy h2:first-of-type { margin-top: 1.7em; }
.legal-copy p,
.legal-copy li { font-size: .98rem; line-height: 1.78; }
.legal-copy a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-copy code { padding: 2px 5px; border-radius: 4px; color: var(--blue-deep); background: #edf2f5; font-size: .9em; }
.legal-updated { margin-bottom: 24px; color: var(--muted); font-size: .8rem !important; letter-spacing: .035em; }
.legal-operator { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 34px; padding: 26px 30px; border: 1px solid rgba(45,99,149,.16); border-radius: 12px; background: #f6f8f8; }
.legal-operator strong { grid-column: 1/-1; margin-bottom: 5px; color: var(--blue-deep); font: 400 1.3rem var(--serif); }
.legal-operator span { font-size: .9rem; line-height: 1.55; }
.legal-notice { margin: 26px 0 36px; padding: 22px 26px; border-left: 3px solid var(--blue); background: #eef3f6; }
.legal-notice strong { display: block; margin-bottom: 4px; color: var(--blue-deep); }
.legal-notice p { margin: 0; }
.legal-table-wrap { margin: 24px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.legal-table { min-width: 720px; background: #fff; }
.legal-table th { color: var(--blue-deep); background: #eef3f6; }
.legal-table th,
.legal-table td { padding: 14px 16px; vertical-align: top; white-space: normal; font-size: .88rem; line-height: 1.55; }
.checkout-legal-consents { display: grid; gap: 12px; padding: 18px; border: 1px solid rgba(45,99,149,.15); border-radius: 10px; background: #f4f7f8; }
.checkout-legal-consents .check-row { margin: 0; }

/* Granular cookie preferences and Google Consent Mode v2. */
body.consent-open { overflow: hidden; }
.cookie-banner { max-width: 1180px; border-color: rgba(45,99,149,.18); background: rgba(250,247,243,.97); }
.cookie-banner strong { color: var(--blue-deep); }
.cookie-banner a,
.cookie-modal a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner .button { width: auto; min-height: 46px; padding: 9px 15px; font-size: .7rem; }
.cookie-modal { position: fixed; z-index: 650; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(7,28,44,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cookie-modal[hidden] { display: none; }
.cookie-modal__panel { position: relative; width: min(720px,100%); max-height: min(820px,calc(100vh - 40px)); overflow: auto; padding: clamp(26px,4vw,42px); border: 1px solid rgba(255,255,255,.8); border-radius: 16px; background: rgba(250,247,243,.98); box-shadow: 0 28px 80px rgba(4,22,36,.28); }
.cookie-modal__panel h2 { margin-bottom: 9px; color: var(--blue-deep); font: 400 clamp(2rem,4vw,2.75rem)/1.1 var(--serif); }
.cookie-modal__panel > p:not(.eyebrow,.cookie-modal__note) { color: var(--muted); }
.cookie-modal__close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--blue-deep); background: #e7edf0; font-size: 1.5rem; line-height: 1; }
.cookie-category { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 22px; align-items: center; padding: 17px 0; border-top: 1px solid var(--line); }
.cookie-category strong { display: block; color: var(--blue-deep); }
.cookie-category div > span { display: block; margin-top: 3px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.consent-switch { position: relative; display: grid; grid-template-columns: 46px; gap: 2px; justify-items: center; min-width: 72px; cursor: pointer; }
.consent-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.consent-switch > span { position: relative; width: 46px; height: 25px; border-radius: 20px; background: #c5cdd2; transition: background .2s ease; }
.consent-switch > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .2s ease; }
.consent-switch input:checked + span { background: var(--blue); }
.consent-switch input:checked + span::after { transform: translateX(21px); }
.consent-switch input:focus-visible + span { outline: 3px solid rgba(45,99,149,.25); outline-offset: 2px; }
.consent-switch em { color: var(--muted); font-size: .64rem; font-style: normal; font-weight: 700; text-transform: uppercase; }
.cookie-modal__note { margin: 16px 0 0; padding: 14px 16px; border-radius: 8px; color: var(--muted); background: #eef3f6; font-size: .78rem; line-height: 1.55; }
.cookie-modal__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.cookie-modal__actions .button { width: auto; min-height: 46px; padding: 9px 14px; font-size: .7rem; }

/* Velvet footer gradient, using only the navy family. */
.site-footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 4%,rgba(78,130,162,.24),transparent 36%),
    radial-gradient(circle at 84% 90%,rgba(34,83,113,.30),transparent 39%),
    linear-gradient(138deg,#08253d 0%,#153f59 48%,#0a2942 100%);
}
.footer-glow {
  display: block;
  position: absolute;
  width: 420px;
  height: 420px;
  top: -250px;
  left: 42%;
  border-radius: 50%;
  background: rgba(111,158,186,.16);
  filter: blur(70px);
  pointer-events: none;
}
.site-footer .footer-grid,
.site-footer .footer-bottom { position: relative; }

@media (max-width: 1180px) {
  body.menu-open {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
  }
  .site-header.menu-open {
    position: fixed;
    z-index: 700;
    background: #faf7f3;
    border-bottom: 1px solid rgba(18, 52, 80, .10);
    box-shadow: 0 8px 24px rgba(10, 37, 59, .08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header.menu-open::after { display: none; }
  .home-hero { --home-hero-height: 720px; }
  .header-shell {
    width: var(--shell);
    grid-template-columns: 220px auto 1fr;
  }
  .site-nav {
    z-index: 690;
    top: var(--header);
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--header));
    min-height: calc(100vh - var(--header));
    gap: 2px;
    padding: 24px max(2rem, env(safe-area-inset-right)) calc(34px + env(safe-area-inset-bottom)) max(2rem, env(safe-area-inset-left));
    background: #faf7f3;
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav > a,
  .nav-dropdown > button { font-size: .9rem; }
  .site-nav .nav-dropdown-menu {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    display: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 7px 0 5px 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none !important;
    box-sizing: border-box;
  }
  .site-nav .nav-dropdown.is-open .nav-dropdown-menu { display: grid; }
  .site-nav .nav-dropdown-menu a {
    width: 100%;
    padding: 11px 0;
    text-align: left;
    box-sizing: border-box;
  }
}

@media (max-width: 820px) {
  .home-hero { --home-hero-height: 820px; }
  .header-shell {
    width: var(--shell);
    grid-template-columns: 1fr auto auto;
  }
  .mission-narrative-grid { grid-template-columns: 1fr; gap: 30px; }
  .mission-statement { padding: 28px 0 0; border-top: 1px solid rgba(45, 99, 149, .22); border-left: 0; }
  .digital-resources-heading { display: block; }
  .digital-resources-heading > p { width: auto; margin-top: 14px; }
  .digital-resource-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section-heading h2,
  .editorial-layout h2,
  .ler-grid h2,
  .product-editorial h2,
  .legal-copy h2,
  .contact-layout > div h2 { font-size: 1.8rem; }
  .digital-resource-grid article { padding: 24px 22px; }
  .home-page .site-header {
    background: rgba(250,247,243,.96);
    border-bottom: 1px solid rgba(18,52,80,.10);
    box-shadow: 0 8px 24px rgba(10,37,59,.08);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .home-page .site-header::after { display: none; }
  .home-hero {
    --home-hero-height: auto;
    min-height: 0;
    padding-top: 74px;
  }
  .home-hero .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 10;
  }
  .home-hero .hero-media img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .home-hero .hero-fade {
    top: 74px;
    bottom: auto;
    height: calc((100vw * 10 / 9) + 54px);
    background: linear-gradient(180deg, transparent 61%, rgba(250,247,243,.58) 79%, var(--cream) 100%);
  }
  .home-hero .hero-content {
    min-height: 0;
    align-items: flex-start;
    padding-top: 0;
  }
  .home-hero .hero-copy {
    width: 100%;
    max-width: none;
    padding: 24px 0 52px;
  }
  .footer-grid .cookie-settings {
    width: max-content;
    margin: 0 auto 9px !important;
    text-align: center;
  }
  .product-page { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .mobile-cart-bar {
    position: fixed;
    z-index: 360;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,.72);
    background: rgba(250,247,243,.92);
    box-shadow: 0 -12px 34px rgba(8,37,61,.16);
    backdrop-filter: blur(16px) saturate(112%);
    -webkit-backdrop-filter: blur(16px) saturate(112%);
    box-sizing: border-box;
  }
  .mobile-cart-bar__price { min-width: 0; }
  .mobile-cart-bar__price span { display: block; color: var(--muted); font-size: .66rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .05em; }
  .mobile-cart-bar__price strong { color: var(--blue-deep); font: 700 1.08rem/1.2 var(--serif); white-space: nowrap; }
  .mobile-cart-bar form { margin: 0; }
  .mobile-cart-bar .button { width: auto; min-height: 48px; padding: 10px 14px; font-size: .72rem; white-space: nowrap; }
  .mobile-cart-bar .button .icon { display: none; }
  .product-page .cookie-banner { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .legal-section { padding-top: 44px; }
  .legal-operator { grid-template-columns: 1fr; padding: 22px; }
  .legal-operator strong { grid-column: auto; }
  .legal-copy h2 { font-size: 1.65rem; }
  .cookie-banner { right: 10px; bottom: 10px; left: 10px; gap: 14px; padding: 18px; }
  .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .cookie-actions .button { width: 100%; }
  .cookie-actions .button-primary { grid-column: 1/-1; }
  .cookie-modal { padding: 0; align-items: end; }
  .cookie-modal__panel { max-height: 92vh; padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
  .cookie-category { gap: 10px; }
  .cookie-modal__actions { display: grid; grid-template-columns: 1fr; }
  .cookie-modal__actions .button { width: 100%; }
  .product-page .cookie-banner { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  .site-nav {
    top: 74px;
    height: calc(100dvh - 74px);
    min-height: calc(100vh - 74px);
  }
}
