/* Public navigation only; member menus keep their existing layout. */
:root { --ga-header-height: 88px; }
.public-header .public-navigation { gap: clamp(14px, 2vw, 28px); }
.public-nav-group { position: relative; }
.public-nav-parent { display: flex; align-items: center; gap: 3px; }
.public-nav-parent > a { white-space: nowrap; padding: 16px 0; }
.public-nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 36px; color: #47635a; background: transparent; border-radius: 6px; cursor: pointer; }
.public-nav-toggle span { display: block; transition: transform .2s ease; }
.public-nav-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.public-submenu { position: absolute; top: 100%; left: -20px; min-width: 228px; padding: 10px; border: 1px solid #dfe6df; border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(1,45,35,.12); z-index: 1050; }
.public-submenu[hidden] { display: none; }
.public-navigation .public-submenu a { display: block; padding: 11px 13px; color: #3d544a; font-size: 14px; font-weight: 500; border-radius: 7px; white-space: nowrap; }
.public-navigation .public-submenu a:hover, .public-navigation .public-submenu a:focus-visible { background: #edf3ee; color: #014339; }
.public-nav-parent > a[aria-current="page"] { color: #014339; }
.public-navigation a:focus-visible, .public-navigation button:focus-visible, .page-subnav a:focus-visible { outline: 3px solid #a88b39; outline-offset: 3px; }
.page-subnav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; padding: 8px; margin: 24px auto 48px; border: 1px solid #dce5dd; border-radius: 14px; background: #fff; box-shadow: 0 3px 14px rgba(1,67,57,.035); }
.page-subnav a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 18px; color: #4d6257; text-decoration: none; text-align: center; font-size: 15px; font-weight: 700; line-height: 1.5; word-break: keep-all; border-radius: 9px; transition: background .2s, color .2s; }
.page-subnav a:hover { background: #f0f4ef; color: #014339; }
.page-subnav a[aria-current="location"] { color: #fff; background: #014339; }
.page-group, #schoolHistory { scroll-margin-top: calc(var(--ga-header-height) + 24px); }
.page-group:focus { outline: none; }
.page-group + .page-group { margin-top: 64px; padding-top: 44px; border-top: 1px solid #dce4dc; }
.container .page-group-title { text-align: center; font-size: 30px; color: #014339; margin: 0 0 32px; line-height: 1.45; word-break: keep-all; }
#greeting .about-intro { margin-top: 0; }
#greeting .about-slogan { margin-top: 34px; }
#vision .about-feature:first-of-type { margin-top: 0; }
#school-courses .curriculum-program:first-of-type, #special-activities .curriculum-program:first-of-type { margin-top: 0; }
/* Keep chronology photo pinning below headers of any measured height. */
.ga-history .gh-visual { top: calc(var(--ga-header-height) + 24px); }
@media (max-width: 1100px) {
 .public-header { width: 100%; min-height: 70px; padding: 12px 76px 12px 18px; z-index: 2600; }
 .public-header .brand { min-width: 0; gap: 10px; }
 .public-header .symbol { height: 46px; }
 .public-header .wordmark { height: auto; max-height: 28px; max-width: min(55vw, 310px); }
 .public-header ~ .menu-toggle, body:has(.public-header) > .menu-toggle { display: flex; justify-content: center; align-items: center; position: fixed; top: 15px; right: 15px; left: auto; z-index: 3001; width: 42px; height: 42px; border-radius: 8px; background: #014339; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
 body:has(.public-header) > .overlay { display: block; position: fixed; inset: 0; z-index: 2000; opacity: 0; visibility: hidden; pointer-events: none; background: rgba(0,0,0,.45); }
 body:has(.public-header) > .overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
 .public-header .public-navigation { position: fixed; top: 0; right: -310px; width: 300px; max-width: 90vw; height: 100vh; height: 100dvh; z-index: 2800; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 86px 18px 30px; gap: 8px; overflow-y: auto; background: #014339; transition: right .3s ease; }
 .public-header .public-navigation.active { right: 0; }
 .public-nav-group { border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 6px; }
 .public-nav-parent { justify-content: space-between; }
 .public-header .public-nav-parent > a { display: block; flex: 1; width: auto; padding: 10px 12px; border-radius: 8px; color: white; font-size: 16px; }
 .public-header .public-nav-parent > a[aria-current="page"] { color: #f2df9b; background: rgba(255,255,255,.08); }
 .public-nav-toggle { width: 42px; height: 44px; color: #e7dfbe; flex-shrink: 0; }
 .public-submenu { position: static; min-width: 0; border: 0; box-shadow: none; background: rgba(0,0,0,.1); margin: 2px 0 6px; padding: 5px 8px; border-radius: 8px; }
 .public-header .public-submenu a { color: #dfeae1; font-size: 14px; font-weight: 400; padding: 10px 13px; white-space: normal; }
 .public-header .public-submenu a:hover, .public-header .public-submenu a:focus-visible { color: white; background: rgba(255,255,255,.12); }
 .public-header .public-navigation > .btn { display: block; width: 100%; text-align: center; padding: 11px 14px; margin-top: 5px; background: rgba(255,255,255,.16); color: white; }
}
@media (max-width: 768px) {
 .public-header .wordmark { max-height: 22px; }
 .page-subnav { margin: 20px 0 34px; padding: 5px; border-radius: 11px; }
 .page-subnav a { padding: 11px 7px; min-height: 48px; font-size: 13px; border-radius: 7px; }
 .container .page-group-title { font-size: 25px; margin-bottom: 26px; }
 .page-group + .page-group { margin-top: 42px; padding-top: 32px; }
 .ga-history .gh-visual { position: static; }
}
@media (max-width: 360px) {
 .public-header .brand { gap: 8px; }
 .public-header .symbol { height: 36px; }
 .public-header .wordmark { max-height: 17px; }
}
@media(prefers-reduced-motion:reduce) {
 .public-submenu, .public-nav-toggle span, .page-subnav a { transition: none; }
}
@media (min-width:1101px) and (max-width:1280px) {
 .public-header { padding-left:24px; padding-right:24px; }
 .public-header .brand { gap:10px; }
 .public-header .symbol { height:50px; }
 .public-header .wordmark { height:29px; }
 .public-header .public-navigation { gap:14px; }
 .public-header .public-navigation > .btn { padding:10px 12px; white-space:nowrap; }
}
