/* Shared site header for every page. Loaded after homepage-v1.css (and pages.css on inner pages).
   Fixed bar, page links on desktop, full-screen menu at 820px and below. */
:root { --header-h: 84px; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* anchored sections land just below the fixed header */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* fixed header: always solid so page content never shows through; the shadow appears once you scroll */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: #FBF8F4;
  box-shadow: 0 1px 0 rgba(176, 122, 110, .18);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(47, 42, 40, .08); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }

/* ---------- desktop nav ---------- */
.site-nav { display: none; align-items: center; gap: 20px; }
.site-nav .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  white-space: nowrap;
}
.site-nav .nav-link:hover { color: var(--color-clay); }
/* the current page's item: 2px accent underline, 6px below the text */
.site-nav .nav-link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: #8A5245;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.site-nav .btn { white-space: nowrap; }

@media (min-width: 821px) {
  .site-nav { display: flex; }
  .menu-toggle { display: none; }
}
@media (min-width: 821px) and (max-width: 1079px) {
  .site-nav .nav-link { font-size: 13px; letter-spacing: .12em; }
  .site-nav .btn { padding: 10px 16px; }
}
@media (min-width: 1080px) { .site-nav { gap: 32px; } }

/* ---------- mobile: Menu button and full-screen menu ---------- */
.menu-toggle {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(47, 42, 40, .3);
  border-radius: var(--radius-pill);
  background: rgba(251, 248, 244, .7);
  font: 600 13px var(--font-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-text);
  cursor: pointer;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #FBF8F4;
  overflow-y: auto;
  padding: 14px 20px 40px;
  display: flex;
  flex-direction: column;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-bottom: 20px; }
.mobile-menu__close {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(47, 42, 40, .3);
  background: none;
  font-size: 24px;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
}
.mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list > li { border-bottom: 1px solid rgba(176, 122, 110, .25); }
.mobile-menu__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mobile-menu__row > a {
  flex: 1;
  min-height: 60px;
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--color-text);
  text-decoration: none;
}
.mobile-menu__row > a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: #8A5245;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.mobile-menu > .btn { margin-top: 32px; width: 100%; }
body.menu-open { overflow: hidden; }
@media (min-width: 821px) { .mobile-menu { display: none !important; } }

/* footer disclaimer line, shared by every page */
.footer-edu{margin:24px 0 0;font-size:13px;color:rgba(255,255,255,.7)}

/* social icons: desktop nav and mobile menu */
.nav-social, .mobile-social { display: inline-flex; align-items: center; gap: 14px; }
.nav-social a, .mobile-social a { display: inline-flex; align-items: center; justify-content: center; color: var(--color-deep); transition: color .2s ease, transform .2s ease; }
.nav-social a:hover, .mobile-social a:hover { color: var(--color-clay); transform: translateY(-1px); }
.nav-social svg { width: 20px; height: 20px; }
.mobile-social { gap: 22px; margin: 8px 0 20px; }
.mobile-social a { width: 44px; height: 44px; }
.mobile-social svg { width: 26px; height: 26px; }
@media (min-width: 821px) and (max-width: 1079px) { .nav-social { gap: 10px; } .nav-social svg { width: 18px; } }
