/* KS site chrome (notice bar, header, drawer, footer, WhatsApp), from the approved v9 demo. Loaded on every page. */
:root{
  --navy:#042D72; --night:#0B1A3F; --accent:var(--accent-day,#042D72); --accent-ink:#fff; --sun:#FCE3B4; --sun-ink:#3A2400; --coral:#A8462F;
  --bg:#F5F8FC; --surface:#FFFFFF; --surface-2:#EEF3FA; --ink:#0F1D3D; --ink-2:#4A5878; --line:#DCE4F0; --chip:#E7EFFA; --chip-ink:#23408F;
  --teal:#17736C; --teal-soft:#DDF2EF; --amber-soft:#FFF1D9; --amber-ink:#7A4A00;
  --display:"Sora",system-ui,sans-serif; --body:"Hanken Grotesk",system-ui,sans-serif; --ease:cubic-bezier(.16,1,.3,1);
  --shadow:0 1px 0 var(--line),0 24px 50px -32px rgba(15,29,61,.35);
}
html[data-mode="night"]{
  --bg:#08122E; --surface:#0F1C40; --surface-2:#132451; --ink:#E9EEF8; --ink-2:#A7B4D3; --line:#22335F; --chip:#1B2D5F; --chip-ink:#C9D6F6;
  --accent:#9FC2FF; --accent-ink:#06204F; --teal:#7FD1C8; --teal-soft:#123C45; --amber-soft:#3A2C12; --amber-ink:#F6D49A; --coral:#F4A58E;
  --shadow:0 1px 0 var(--line),0 24px 50px -30px rgba(0,0,0,.6);
}
.wrap{width:min(1200px,100% - 40px);margin-inline:auto}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:14px;padding:14px 22px;font:600 15px var(--body);text-decoration:none;cursor:pointer;transition:transform .35s var(--ease),background .3s,opacity .3s}
.btn svg{width:18px;height:18px;flex:none}
.btn:hover{transform:translateY(-2px)}
.btn-sun{background:var(--sun);color:var(--sun-ink)}
.btn-accent{background:var(--accent);color:var(--accent-ink)}
.btn-line{border:1px solid currentColor;background:transparent}
.btn-quiet{background:var(--surface);color:var(--ink);box-shadow:0 1px 0 var(--line)}
.link{font-weight:600;color:var(--accent);text-decoration:none;display:inline-flex;gap:6px;align-items:center}
.link svg{width:16px;height:16px;transition:transform .3s var(--ease)}
.link:hover svg{transform:translateX(4px)}
/* notice bar */
.noticebar{background:var(--night);color:#E6ECF8;font-size:14px;position:relative;z-index:25}
.noticebar .wrap{display:flex;align-items:center;gap:14px;min-height:44px;padding:6px 0}
.noticebar .pill{flex:none;font-size:12px;font-weight:700;background:var(--sun);color:var(--sun-ink);border-radius:999px;padding:2px 10px}
.noticebar .ticker{flex:1;overflow:hidden;position:relative;height:22px}
.noticebar .ticker a{position:absolute;inset:0;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:transform .6s var(--ease),opacity .6s}
.noticebar .ticker a b{font-weight:600}
.noticebar .all{flex:none;color:var(--sun);font-weight:600;text-decoration:none}
.noticebar .x{flex:none;background:none;border:0;color:#E6ECF8;cursor:pointer;width:28px;height:28px;border-radius:8px}
.noticebar .x:hover{background:rgba(255,255,255,.1)}

/* header */
.top{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 84%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line);transition:background .6s}
.top .wrap{display:flex;align-items:center;gap:20px;height:68px}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;margin-right:auto}
.brand img{height:28px}
html[data-mode="night"] .brand img{filter:brightness(0) invert(1)}
.brand span{font:600 13px/1.15 var(--display)}
.brand small{display:block;font:500 11px var(--body);color:var(--ink-2)}
.menu{display:flex;gap:24px;font-size:15px;font-weight:500;list-style:none}
.menu a{text-decoration:none;color:var(--ink-2)}
.menu a:hover,.menu a[aria-current="page"]{color:var(--ink)}
.mode{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:5px 10px 5px 6px;font-size:13px;color:var(--ink-2);cursor:pointer}
.mode i{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--sun);color:var(--sun-ink)}
html[data-mode="night"] .mode i{background:#2A3C70;color:#F6E7B8}
.mode svg{width:14px;height:14px}
.burger{display:none;background:var(--surface);border:1px solid var(--line);border-radius:12px;width:44px;height:44px;cursor:pointer}
.burger svg{width:20px;height:20px;margin:auto}
.drawer{display:none}
@media (max-width:980px){
  .menu{display:none}
  .burger{display:grid;place-items:center}
  .top .cta-desk{display:none}
  .mode span.t{display:none}
  .drawer.open{display:block;position:fixed;inset:0;z-index:40;background:rgba(8,18,46,.5)}
  .drawer .panel{position:absolute;right:0;top:0;bottom:0;width:min(360px,88vw);background:var(--surface);padding:22px;display:flex;flex-direction:column;gap:6px;box-shadow:-20px 0 60px rgba(0,0,0,.25)}
  .drawer .panel a{text-decoration:none;font:500 20px var(--display);padding:12px 4px;border-bottom:1px solid var(--line)}
  .drawer .panel .btn{margin-top:18px}
  .drawer .close{align-self:flex-end;background:none;border:0;font-size:28px;line-height:1;cursor:pointer;width:44px;height:44px}
}
footer{background:var(--night);color:#C9D3EA;padding:60px 0 110px;font-size:15px}
footer .cols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:28px}
footer h4{color:#fff;font-size:15px;margin-bottom:12px}
footer ul{list-style:none;display:grid;gap:8px}
footer a{text-decoration:none}
footer a:hover{color:#fff}
.social{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}
.social a{width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.08);display:grid;place-items:center}
.social svg{width:18px;height:18px}
.legal{margin-top:40px;padding-top:20px;border-top:1px solid rgba(255,255,255,.12);display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;font-size:14px}
.wa{position:fixed;right:18px;bottom:18px;z-index:30;display:flex;align-items:center;gap:10px;background:#177A41;color:#fff;border-radius:14px;padding:13px 18px 13px 14px;font:600 15px var(--body);text-decoration:none;box-shadow:0 12px 30px -12px rgba(0,0,0,.45)}
.wa svg{width:20px;height:20px}
.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,calc(100% + 60px));visibility:hidden;z-index:60;background:var(--ink);color:var(--bg);padding:12px 18px;border-radius:14px;font-size:14px;font-weight:600;transition:transform .5s var(--ease),visibility 0s .5s;max-width:calc(100% - 32px)}
.toast.show{transform:translate(-50%,0);visibility:visible;transition:transform .5s var(--ease)}

/* ---- WordPress adaptations (chrome) ---- */
:root{--ks-display:"Sora",system-ui,sans-serif;--ks-body:"Hanken Grotesk",system-ui,sans-serif}
[hidden]{display:none!important}
.screen-reader-text,.ks-hp{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip-link{position:absolute;left:-9999px;top:8px;z-index:1000;background:var(--sun);color:var(--sun-ink);padding:10px 16px;border-radius:999px;font-weight:700}
.skip-link:focus{left:12px}
.ks-chrome,.ks-chrome *{box-sizing:border-box}
.noticebar,.top,.drawer,footer.ks9-footer,.wa{font-family:var(--body)}
.noticebar p,.top p,footer.ks9-footer p{margin:0}
.noticebar .ticker a{transform:translateY(100%);opacity:0}
.noticebar .ticker a.is-on{transform:none;opacity:1}
.noticebar .ticker a span{font-weight:400}
.top{color:var(--ink)}
.top .brand{color:var(--ink)}
.top .brand img{width:auto}
.top nav{display:contents}
.menu{margin:0;padding:0}
.menu li{list-style:none;position:relative}
.menu .sub-menu{display:none}
.menu .current-menu-item>a{color:var(--ink)}
.mode{font-family:var(--body)}
.mode i{font-style:normal}
.drawer .panel ul{list-style:none;margin:0;padding:0;display:grid}
.drawer .panel .sub-menu{display:none}
@media (max-width:980px){
  .drawer.is-open{display:block;position:fixed;inset:0;z-index:40;background:rgba(8,18,46,.5)}
  .drawer .panel li a{display:block;text-decoration:none;color:var(--ink);font:500 20px var(--display);padding:12px 4px;border-bottom:1px solid var(--line)}
  .drawer .panel .btn{margin-top:18px}
  .drawer .panel .wa-d{background:#177A41;color:#fff;margin-top:8px}
  .drawer .panel .ct{margin-top:16px;font-size:15px;color:var(--ink-2);display:grid;gap:6px}
  .drawer .panel .ct a{color:var(--ink-2);text-decoration:none}
}
body.ks-lock{overflow:hidden}
.admin-bar .top{top:32px}
@media (max-width:782px){.admin-bar .top{top:46px}}
@media (max-width:600px){.admin-bar .top{top:0}}
footer.ks9-footer .cols{grid-template-columns:1.4fr 1fr 1fr 1fr}
footer.ks9-footer h4,footer.ks9-footer h2{font:500 15px var(--display);color:#fff;margin:0 0 12px;letter-spacing:-.01em}
footer.ks9-footer ul{margin:0;padding:0}
footer.ks9-footer a{color:#C9D3EA}
footer.ks9-footer a:hover{color:#fff}
footer.ks9-footer .legal ul{display:flex;flex-wrap:wrap;gap:14px;list-style:none}
footer.ks9-footer .flogo{height:30px;width:auto;filter:brightness(0) invert(1)}
.social a{color:#E6ECF8}
.social svg,.social .ks-ic{width:18px;height:18px}
.wa svg,.wa .ks-ic{width:20px;height:20px}
.wa:hover{color:#fff}
@media (max-width:980px){footer.ks9-footer .cols{grid-template-columns:1fr 1fr}}
@media (max-width:640px){footer.ks9-footer .cols{grid-template-columns:1fr}.noticebar .all{display:none}}
@media (max-width:980px){.drawer .panel .ct a{font:500 15px var(--body);padding:0;border:0}.drawer .panel .wa-d{border:0;font:600 15px var(--body);padding:14px 22px}}

footer.ks9-footer .cols .menu{display:grid;gap:8px;font-size:15px;font-weight:400}
footer.ks9-footer .cols .menu a{color:#C9D3EA}
footer.ks9-footer .legal .menu{display:flex;gap:14px}
footer.ks9-footer .flogo{height:34px}
.noticebar a{color:#E6ECF8;text-decoration:none}.noticebar .all{color:var(--sun)}.top a,.drawer a,footer.ks9-footer a{text-decoration:none}

/* notice bar: type tag, prev/next */
.noticebar .ticker a{display:flex;align-items:center;gap:8px}
.noticebar .ticker a b{overflow:hidden;text-overflow:ellipsis}
.noticebar .ticker a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.noticebar .nt{flex:none;font-style:normal;font:700 11px var(--body);border-radius:999px;padding:2px 8px;background:rgba(255,255,255,.14);color:#fff}
.noticebar .nt-notice,.noticebar .nt-circular{background:#FFE1A8;color:#3A2400}
.noticebar .nt-event{background:#7FD1C8;color:#06302C}
.noticebar .nt-scholarship{background:#F4A58E;color:#3A1206}
.noticebar .nb-ctl{flex:none;display:flex;align-items:center;gap:2px;color:#A7B4D3;font:600 12px var(--body)}
.noticebar .nb-ctl button{width:26px;height:26px;border:0;border-radius:8px;background:rgba(255,255,255,.08);color:#fff;font-size:18px;line-height:1;cursor:pointer}
.noticebar .nb-ctl button:hover{background:rgba(255,255,255,.18)}
.noticebar .nb-count{min-width:30px;text-align:center;font-variant-numeric:tabular-nums}
footer.ks9-footer .fnote{margin-top:12px;font-size:14px;color:#A7B4D3}
@media (max-width:640px){.noticebar .nb-count,.noticebar .ticker a span{display:none}}.noticebar .ticker a span{opacity:.85}.noticebar .ticker a span::before{content:"·";margin-right:8px}
.noticebar .ticker a b{white-space:nowrap}

/* notice bar on phones: one tidy line */
@media (max-width:640px){
  .noticebar .wrap{gap:8px;min-height:40px;width:calc(100% - 24px)}
  .noticebar .pill{display:none}
  .noticebar .ticker{min-width:0}
  .noticebar .ticker a{gap:6px}
  .noticebar .ticker a b{font-size:13px;font-weight:600}
  .noticebar .nt{font-size:10px;padding:2px 6px}
  .noticebar .nb-ctl button{width:24px;height:24px;font-size:16px}
  .noticebar .x{width:24px;height:24px}
}
/* back to top */
.totop{position:fixed;right:18px;bottom:84px;z-index:29;width:46px;height:46px;border-radius:14px;border:0;background:var(--night);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 10px 24px -10px rgba(0,0,0,.45);opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .3s,transform .35s cubic-bezier(.16,1,.3,1),visibility .3s}
.totop.show{opacity:1;visibility:visible;transform:none}
.totop:hover{background:var(--navy)}
.totop svg{width:20px;height:20px}
.totop .ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.totop .ring circle{fill:none;stroke:#FFE1A8;stroke-width:2.5;stroke-dasharray:138;stroke-dashoffset:calc(138 - 138 * var(--p,0));transition:stroke-dashoffset .15s}
@media (max-width:640px){.totop{right:12px;bottom:76px;width:42px;height:42px}}
@media (prefers-reduced-motion:reduce){.totop{transition:none}}@media (max-width:640px){.totop{bottom:86px}}
