/* Ash navigation: the school crest leads, with centered links and a clear action. */
:root { --nav-ash:#e9e9e5; --nav-panel:#f3f3ef; --nav-ink:#30332f; --nav-line:rgba(48,51,47,.14); --nav-yellow:#ffce32; }
html { scroll-padding-top:128px; }
.announcement-banner { position:relative; top:auto; padding:12px 20px; font-size:12px; line-height:1.5; color:var(--ink); text-align:center; }
.announcement-banner .container { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:4px 10px; width:100%; padding:0; }
.announcement-banner a { color:var(--nav-ink); font-weight:600; text-decoration:none; }
.announcement-banner a:hover { text-decoration:underline; text-underline-offset:3px; }
.announcement-banner .announcement-separator { opacity:.3; }
.header { position:sticky; top:12px; z-index:101; width:calc(100% - 48px); max-width:1408px; padding:8px 16px; margin:0 auto 24px; border:1px solid var(--nav-line); border-radius:18px; background:var(--nav-ash); color:var(--nav-ink); box-shadow:0 4px 20px rgba(36,36,31,.05); }
.header > .container { width:100%; max-width:none; padding:0; }
.nav-container { position:static; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.header .logo,.header .logo:hover { display:grid; place-items:center; flex-shrink:0; width:94px; height:78px; padding:4px 6px; background:transparent; border:0; border-radius:14px; transform:none; text-decoration:none; }
.header .logo-img { width:82px; height:70px; object-fit:contain; background:transparent; border-radius:0; }
.navigation { display:flex; position:static; flex:1; align-items:center; gap:16px; min-width:0; }
.navigation ul { display:flex; position:static; list-style:none; gap:0; margin-inline:auto; padding:0; border:0; background:transparent; }
.navigation a { display:flex; align-items:center; min-height:44px; padding:12px 11px; border-radius:10px; color:var(--nav-ink); font-size:14px; font-weight:500; line-height:1.4; white-space:nowrap; text-decoration:none; transition:background .18s ease,color .18s ease; }
.navigation a:hover,.navigation a:focus-visible,#primary-navigation a[aria-current] { background:#fff; color:var(--nav-ink); }
#primary-navigation a::after { display:none; }
.navigation .nav-home,.navigation .nav-apply-item,.navigation .nav-menu-note { display:none; }
.navigation .nav-apply,.navigation .nav-apply:hover { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:48px; padding:6px 6px 6px 16px; border-radius:12px; background:var(--nav-ink); color:#fff; font-size:14px; font-weight:600; box-shadow:none; }
.navigation .nav-apply:hover { background:#454940; }
.nav-arrow { display:inline-grid; place-items:center; flex:0 0 36px; width:36px; height:36px; border-radius:8px; background:var(--nav-yellow); color:var(--nav-ink); font-size:24px; font-weight:400; line-height:1; transition:transform .18s ease; }
.nav-apply:hover .nav-arrow { transform:rotate(8deg); }
.nav-label-mobile { display:none; }
.mobile-menu-btn { display:none; }
.header a:focus-visible,.header button:focus-visible { outline:3px solid #73796d; outline-offset:3px; }
@media (max-width:1200px) {
    .header { padding:8px 14px; }
    .header .logo,.header .logo:hover { width:86px; height:72px; }
    .header .logo-img { width:76px; height:64px; }
    .navigation { flex:0 0 auto; gap:12px; }
    .navigation .nav-apply { order:2; }
    .navigation .mobile-menu-btn,.navigation .mobile-menu-btn:hover { display:flex; flex-direction:column; justify-content:center; align-items:center; order:3; width:44px; height:44px; padding:0; gap:5px; border:0; border-radius:10px; background:transparent; color:var(--nav-ink); cursor:pointer; }
    .mobile-menu-btn span { display:block; width:22px; height:2px; border-radius:1px; background:currentColor; transition:opacity .18s ease,transform .18s ease; }
    .mobile-menu-btn span:nth-child(2) { display:none; }
    .mobile-menu-btn[aria-expanded="true"] span:first-child { transform:translateY(3.5px) rotate(45deg); }
    .mobile-menu-btn[aria-expanded="true"] span:last-child { transform:translateY(-3.5px) rotate(-45deg); }
    .navigation ul { display:none; position:absolute; top:calc(100% + 10px); left:-1px; right:-1px; flex-direction:column; gap:0; margin:0; padding:16px 24px 20px; border:1px solid var(--nav-line); border-radius:20px; background:var(--nav-panel); box-shadow:0 16px 32px rgba(34,38,29,.12); max-height:calc(100dvh - 174px); overflow-y:auto; overscroll-behavior:contain; }
    .navigation.is-open ul { display:flex; }
    .navigation .nav-home,.navigation .nav-apply-item,.navigation .nav-menu-note { display:list-item; }
    .navigation ul a { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:46px; padding:10px 0; border-bottom:1px solid var(--nav-line); border-radius:0; color:var(--nav-ink); background:transparent; font-size:23px; font-weight:500; letter-spacing:-.035em; line-height:1.35; white-space:normal; }
    #primary-navigation a:hover,#primary-navigation a:focus-visible,#primary-navigation a[aria-current] { color:var(--nav-ink); background:transparent; border-radius:0; text-decoration:underline; text-underline-offset:6px; }
    #primary-navigation li:not(.nav-apply-item) a::after { display:block; position:static; content:'↗'; width:auto; height:auto; flex-shrink:0; color:#767c70; background:none; font-size:20px; }
    .navigation .nav-apply-item { margin-top:16px; }
    .navigation .nav-apply-item a,#primary-navigation .nav-apply-item a:hover,#primary-navigation .nav-apply-item a[aria-current] { min-height:50px; padding:6px 6px 6px 16px; border:0; border-radius:12px; background:var(--nav-ink); color:#fff; font-size:17px; font-weight:600; letter-spacing:-.01em; text-decoration:none; }
    .navigation .nav-menu-note { margin-top:20px; color:var(--ink-soft); font-size:12px; line-height:1.6; }
    .nav-menu-note span { display:block; }
}
@media (max-width:600px) {
    .announcement-banner { padding:10px 16px; font-size:11px; }
    .header { width:calc(100% - 32px); top:10px; padding:8px 12px; margin-bottom:16px; border-radius:16px; }
    .nav-container { gap:12px; }
    .header .logo,.header .logo:hover { width:78px; height:68px; padding:4px 6px; }
    .header .logo-img { width:66px; height:56px; }
    .navigation { gap:8px; }
    .navigation .nav-apply,.navigation .nav-apply:hover { min-height:44px; padding:10px 14px; border-radius:10px; font-size:14px; gap:0; }
    .nav-apply .nav-label-desktop,.nav-apply .nav-arrow { display:none; }
    .nav-apply .nav-label-mobile { display:inline; }
    .navigation ul { padding:14px 20px 18px; border-radius:16px; }
}
@media (max-width:350px) { .announcement-banner .announcement-separator { display:none; } }
@media (prefers-reduced-motion:reduce) { .mobile-menu-btn span,.nav-arrow { transition:none; } }
/* Keep the header anchored when scrolling and when a new page opens. */
body { padding-top:128px; }
.header { position:fixed; top:12px; left:50%; transform:translateX(-50%); margin:0; }
@media (max-width:600px) {
    body { padding-top:108px; }
    .header { top:10px; margin:0; }
}
@media print { body { padding-top:0; } }
