body .kmcore-header,body .kmcore-footer{box-sizing:border-box;display:flex!important;align-items:center!important;flex-wrap:wrap;gap:12px!important;width:100%!important;max-width:none!important;padding:8px 4%!important;background:#f1f5fa!important;color:#08184e!important;font:600 16px/1.4 Arial,sans-serif!important;grid-column:1/-1;overflow:visible!important;height:auto!important;position:relative;box-shadow:none!important;text-align:left!important}body .kmcore-header a,body .kmcore-footer a{font:inherit;text-decoration:none!important;color:#08184e!important}body .kmcore-header .kmcore-brand{display:block;width:clamp(150px,18vw,260px)!important;margin-right:auto!important;flex-shrink:0}body .kmcore-brand img{display:block;width:100%!important;height:auto!important;max-width:none!important}body .kmcore-header .kmcore-nav{display:flex!important;align-items:center;justify-content:flex-end;gap:clamp(8px,1vw,18px)!important;margin:0!important;width:auto!important;flex-wrap:wrap;order:0;font:inherit!important}body .kmcore-header .kmcore-btn{display:inline-flex!important;align-items:center;justify-content:center;padding:10px 19px!important;border-radius:40px!important;white-space:nowrap;border:1px solid transparent!important;background:linear-gradient(#ffda30,#ff9200)!important;color:#07174c!important}body .kmcore-header .kmcore-outline{background:transparent!important;border-color:#005aff!important;color:#004de5!important}body .kmcore-menu{position:relative;z-index:20}body .kmcore-menu summary{cursor:pointer;list-style:none;white-space:nowrap}body .kmcore-menu summary::-webkit-details-marker{display:none}body .kmcore-dropdown{position:absolute;right:0;top:100%;width:220px;max-width:85vw;max-height:65vh;overflow:auto;background:white;border:1px solid #dce6f4;border-radius:14px;padding:8px;box-shadow:0 12px 32px #123b7926;z-index:100}body .kmcore-dropdown a{display:block;padding:8px}body .kmcore-header a:hover,body .kmcore-footer a:hover{color:#005aff!important}body .kmcore-header a:focus-visible,body .kmcore-menu summary:focus-visible{outline:2px solid #005aff;outline-offset:3px}body .kmcore-footer{justify-content:space-between;padding:16px 4%!important;font-size:14px!important}body .kmcore-footer .kmcore-brand{width:160px!important}body .kmcore-footer small{font-size:14px;margin:0!important;font-weight:400}body .kmcore-footer a{color:#005aff!important}@media(max-width:1050px){body .kmcore-header .kmcore-nav{order:3;width:100%!important;justify-content:center!important;font-size:14px!important}body .kmcore-header .kmcore-btn{font-size:14px!important;padding:8px 12px!important}body .kmcore-footer{justify-content:center}}@media(max-width:420px){body .kmcore-header{justify-content:center}body .kmcore-header .kmcore-brand{margin:0!important;width:150px!important}body .kmcore-dropdown{right:auto;left:0}}

/* Compact mobile navigation; desktop layout unchanged. */
body .kmcore-header .kmcore-toggle{display:none!important}
@media(max-width:1050px){
body .kmcore-header{justify-content:flex-start!important;gap:8px!important;padding:10px 4%!important;min-height:64px}
body .kmcore-header .kmcore-brand{order:0;margin:0 auto 0 0!important;width:clamp(112px,39vw,190px)!important}
body .kmcore-header .kmcore-toggle{display:inline-flex!important;order:2;align-items:center;justify-content:center;width:44px;height:44px;padding:0!important;border:1px solid #cbd9ed;border-radius:12px;background:transparent;color:#08184e;font:26px/1 Arial;cursor:pointer;flex:none}
body .kmcore-header > .kmcore-btn{order:1;font-size:13px!important;padding:9px 10px!important;min-height:40px;box-sizing:border-box}
body .kmcore-header > .kmcore-gold{display:none!important}
body .kmcore-header > .kmcore-nav{display:none!important;order:3;flex:0 0 100%;align-items:stretch!important;flex-direction:column!important;gap:0!important;text-align:left!important}
body .kmcore-header.kmcore-open > .kmcore-nav{display:flex!important}
body .kmcore-header.kmcore-open > .kmcore-gold{display:inline-flex!important;order:4;flex:0 0 100%;margin:4px 0!important}
body .kmcore-header .kmcore-nav > a,body .kmcore-header .kmcore-menu > summary{display:block;padding:12px 4px!important;border-bottom:1px solid #dce6f4;white-space:normal!important}
body .kmcore-header .kmcore-dropdown{position:static!important;width:auto!important;max-width:none!important;box-shadow:none;margin:4px 0}
body .kmcore-footer{display:flex!important;justify-content:center!important;gap:12px 18px!important;text-align:center!important;padding:24px 4%!important}
body .kmcore-footer .kmcore-brand{flex:0 0 100%;width:100%!important;margin:0!important}
body .kmcore-footer .kmcore-brand img{width:160px!important;margin:auto!important}
body .kmcore-footer small{flex:0 0 100%;text-align:center!important;padding-top:10px;border-top:1px solid #dce6f4}
}

/* 2.2: capsule navigation and active states */
body .kmcore-header .kmcore-nav > a,body .kmcore-header .kmcore-menu > summary,body .kmcore-header .kmcore-dropdown a{transition:background-color .22s ease,color .22s ease,box-shadow .22s ease;border-radius:12px;box-sizing:border-box}
body .kmcore-header .kmcore-nav > a:hover,body .kmcore-header .kmcore-menu > summary:hover,body .kmcore-header .kmcore-dropdown a:hover{background:#deebfc!important;color:#0054c8!important}
body .kmcore-header .kmcore-nav a[aria-current],body .kmcore-header .kmcore-menu.kmcore-current > summary{background:#e0edff!important;color:#0054c8!important}
body .kmcore-header .kmcore-menu > summary{display:flex;align-items:center;gap:7px}
body .kmcore-header .kmcore-menu > summary span{transition:transform .22s ease;display:inline-block}
body .kmcore-header .kmcore-menu[open] > summary span{transform:rotate(180deg)}
body .kmcore-header .kmcore-dropdown{padding:9px;border-radius:18px;border:1px solid #e0e9f5;background:#fff;box-shadow:0 12px 36px #123b7926}
body .kmcore-header .kmcore-dropdown a{padding:11px 14px!important;font-weight:500;line-height:1.4}
body .kmcore-header .kmcore-menu[open] > .kmcore-dropdown{animation:kmcore-reveal .2s ease-out}
@keyframes kmcore-reveal{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
body .kmcore-header > .kmcore-btn{transition:background-color .22s ease,box-shadow .22s ease,filter .22s ease}
body .kmcore-header > .kmcore-btn:hover{box-shadow:0 4px 14px #164c8120;filter:brightness(1.035)}
@media(min-width:851px){
body .kmcore-header .kmcore-nav{background:transparent!important;border:0!important;border-radius:0;padding:0!important;gap:4px!important;box-shadow:none!important;flex-wrap:nowrap;font-weight:600!important}
body .kmcore-header .kmcore-nav > a,body .kmcore-header .kmcore-menu > summary{padding:10px clamp(8px,1vw,16px)!important;border-radius:12px;white-space:nowrap;font-weight:600!important}
body .kmcore-header .kmcore-dropdown{top:calc(100% + 9px);width:240px}
body .kmcore-header > .kmcore-outline{background:transparent!important;border-color:#005aff!important}
}
@media(prefers-reduced-motion:reduce){body .kmcore-header *,body .kmcore-header .kmcore-menu[open] > .kmcore-dropdown{transition:none!important;animation:none!important}}

/* 2.3: mobile-only refinement */
@media(max-width:1050px){
body .kmcore-header{padding:7px 4%!important;min-height:54px!important;gap:8px!important}
body .kmcore-header .kmcore-brand{width:clamp(100px,38vw,180px)!important}
body .kmcore-header .kmcore-toggle{width:42px!important;height:42px!important;min-height:0!important;margin:0!important;background:#e4eefb!important;border:1px solid #d5e4f7!important;box-shadow:none!important;color:#0054c8!important;border-radius:12px!important;transform:none!important}
body .kmcore-toggle span{position:relative;display:block;width:21px;height:18px}
body .kmcore-toggle i{position:absolute;left:0;width:21px;height:2px;background:currentColor;border-radius:2px;transition:transform .22s ease,opacity .18s ease;top:8px}
body .kmcore-toggle i:first-child{transform:translateY(-7px)}
body .kmcore-toggle i:last-child{transform:translateY(7px)}
body .kmcore-open .kmcore-toggle i:first-child{transform:rotate(45deg)}
body .kmcore-open .kmcore-toggle i:nth-child(2){opacity:0}
body .kmcore-open .kmcore-toggle i:last-child{transform:rotate(-45deg)}
body .kmcore-header.kmcore-open > .kmcore-nav{background:#fff!important;border:1px solid #e0e9f5!important;border-radius:16px!important;padding:8px!important;box-sizing:border-box;gap:3px!important;animation:kmcore-reveal .24s ease-out}
body .kmcore-header .kmcore-nav > a,body .kmcore-header .kmcore-menu > summary{padding:10px 12px!important;border-bottom:0!important;border-radius:9px!important;min-height:42px;box-sizing:border-box}
body .kmcore-header .kmcore-menu > summary{display:flex!important;justify-content:space-between;align-items:center}
body .kmcore-header .kmcore-dropdown{background:#f5f8fc!important;border:0!important;border-radius:10px!important;box-shadow:none!important;padding:5px!important;margin:3px 0 3px 10px!important;max-height:none!important}
body .kmcore-header .kmcore-dropdown a{padding:9px 12px!important;border-radius:8px!important}
body .kmcore-header.kmcore-open > .kmcore-gold{animation:kmcore-reveal .24s ease-out;margin:0!important;min-height:44px!important}
body .kmcore-header .kmcore-toggle:focus-visible{outline:2px solid #005aff;outline-offset:2px}
}

/* 2.4: individual navigation highlights and clean chevron */
body .kmcore-header .kmcore-menu > summary .kmcore-chevron{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 14px;width:14px;height:14px;color:#1760b8;line-height:1;vertical-align:middle}
body .kmcore-header .kmcore-chevron svg{display:block;width:14px;height:14px;flex:none}
body .kmcore-header .kmcore-menu > summary:focus-visible,body .kmcore-header .kmcore-nav > a:focus-visible{background:#deebfc!important}

/* 2.5 structured shared footer */
body .kmcore-footer{display:block!important;padding:36px 4% 18px!important;text-align:left!important;border-top:1px solid #dce6f4!important;font-weight:400!important}
body .kmcore-footer .kmcore-foot-grid{display:grid!important;grid-template-columns:1.35fr 1fr 1fr;gap:32px;max-width:1440px;margin:0 auto!important;align-items:start}
body .kmcore-footer .kmcore-foot-brand,body .kmcore-footer .kmcore-foot-col{display:flex!important;flex-direction:column;align-items:flex-start;gap:9px;min-width:0}
body .kmcore-footer .kmcore-brand{display:block!important;width:220px!important;max-width:100%!important;flex:none!important;margin:0 0 7px!important}
body .kmcore-footer .kmcore-brand img{width:100%!important;margin:0!important}
body .kmcore-footer .kmcore-foot-col h3{font:700 16px/1.4 Arial,sans-serif!important;color:#08184e!important;margin:0 0 5px!important;padding:0!important}
body .kmcore-footer .kmcore-foot-col a,body .kmcore-footer .kmcore-foot-email,body .kmcore-footer .kmcore-foot-legal a{font:400 15px/1.5 Arial,sans-serif!important;color:#405575!important;transition:color .2s ease;overflow-wrap:anywhere}
body .kmcore-footer a:hover{color:#005aff!important}
body .kmcore-footer a:focus-visible{outline:2px solid #005aff;outline-offset:3px}
body .kmcore-footer .kmcore-foot-bottom{display:flex!important;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;border-top:1px solid #cddbed;margin:26px auto 0!important;padding-top:16px;max-width:1440px}
body .kmcore-footer .kmcore-foot-bottom small{border:0!important;padding:0!important;flex:none!important;color:#60718a!important;text-align:left!important}
body .kmcore-footer .kmcore-foot-legal{display:flex;flex-wrap:wrap;gap:8px 20px}
@media(max-width:700px){body .kmcore-footer{padding:26px 5% 18px!important}body .kmcore-footer .kmcore-foot-grid{grid-template-columns:1fr 1fr;gap:24px 16px}body .kmcore-footer .kmcore-foot-brand{grid-column:1/-1}body .kmcore-footer .kmcore-brand{width:185px!important}body .kmcore-footer .kmcore-foot-col a,body .kmcore-footer .kmcore-foot-email{font-size:14px!important}}

/* 2.6: compact shared footer */
body .kmcore-footer{padding:26px 4% 14px!important}
body .kmcore-footer .kmcore-foot-grid{max-width:1120px;grid-template-columns:1.25fr 1fr 1fr;gap:clamp(24px,4vw,64px)}
body .kmcore-footer .kmcore-foot-brand,body .kmcore-footer .kmcore-foot-col{gap:6px}
body .kmcore-footer .kmcore-foot-col h3{font-size:18px!important;margin-bottom:4px!important}
body .kmcore-footer .kmcore-foot-email{display:inline-flex!important;align-items:center;gap:8px;max-width:100%}
body .kmcore-footer .kmcore-foot-email svg{flex:none;color:#405575;width:18px;height:18px}
body .kmcore-footer .kmcore-foot-bottom{max-width:1120px;flex-direction:column;justify-content:center;gap:8px;margin-top:20px!important;padding-top:12px}
body .kmcore-footer .kmcore-foot-bottom small{text-align:center!important}
body .kmcore-footer .kmcore-foot-legal{justify-content:center;text-align:center}
body .kmcore-footer .kmcore-foot-legal:empty{display:none!important}
@media(max-width:700px){body .kmcore-footer{padding:22px 5% 14px!important}body .kmcore-footer .kmcore-foot-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px}body .kmcore-footer .kmcore-foot-brand{align-items:center}body .kmcore-footer .kmcore-foot-col h3{font-size:16px!important}}

@media(max-width:1050px){body .kmcore-header.kmcore-member > .kmcore-gold{display:inline-flex!important;order:1;flex:0 0 auto;margin:0!important}body .kmcore-header.kmcore-member.kmcore-open > .kmcore-gold{order:1;flex:0 0 auto;min-height:40px!important;animation:none}}

@media (prefers-reduced-motion: no-preference){html:has(#km-subjects){scroll-behavior:smooth;}}
