/* Shared typography and final accessibility refinements. SVG lettering keeps its own construction. */
@font-face{font-family:"Wang Course Sans";src:url("assets/bcd62c4c0575471ab1c6539e.woff2") format("woff2");font-weight:100 900;font-display:swap}
body.gateway,#wechat-contact{font-family:"Wang Course Sans","Microsoft YaHei",sans-serif}
/* Keep company and registration together as two right-aligned footer lines. */
body.gateway .gateway-footer{flex-direction:column;align-items:flex-end;justify-content:flex-start;flex-wrap:nowrap;gap:4px;text-align:right}
.gateway button,.gateway input,.gateway select{font:inherit}
[data-close-contact],.dialog-close{min-width:44px;min-height:44px}
.small-controls button{min-height:44px}
.credential-copy>span{color:#576b85}
.audience-card[aria-pressed="true"] p{color:#edf3ff}
.path-kicker{color:#536b94}
.question-index{color:#667993}
body:not(.gateway) footer p,body:not(.gateway) footer a{color:#566c89}
:root{--ui-focus:#245de6}
.gateway.theme-a,.hero,.system-section,.price-section{--ui-focus:#e4c57a}
:is(button,a,summary,input,select,[tabindex]):focus-visible{outline:2px solid var(--ui-focus);outline-offset:4px}
::selection{background:#245de6;color:#fff}
@media(max-width:700px){
 #knowledge-map .mind-toolbar{flex-wrap:wrap;gap:8px}
 #knowledge-map .mind-zoom{flex-wrap:wrap}
 #knowledge-map .mind-toolbar button{min-height:44px;min-width:44px}
 .bio-entry-nav{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:2px}
 .bio-entry-nav [data-bio-prev]{grid-column:1;grid-row:1;min-width:44px;height:44px}
 .bio-entry-nav [data-bio-next]{grid-column:3;grid-row:1;min-width:44px;height:44px}
 .bio-entry-dots{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:wrap;justify-content:center}
 .bio-entry-nav [data-bio-dot]{min-width:24px;width:24px;height:32px}
}

.theme-a .instrument-placeholder .return-link{color:#bbd8ee}

/* Enrollment actions stay beside the brand; section links keep their own scrollable row on narrow screens. */
.header-inner .header-enrollment{display:flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}
.header-enrollment button,.header-enrollment a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;border:1px solid #245de6;border-radius:7px;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap;cursor:pointer}
.header-enrollment button{background:#fff;color:#245de6}
.header-enrollment a{background:#245de6;color:#fff}
.header-inner:has(.header-enrollment)>.brand{width:auto}
@media(min-width:1100px){.header-inner:has(.header-enrollment){display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:22px}.header-inner:has(.header-enrollment) #nav{min-width:0;width:100%}}
@media(max-width:1099px){.header-inner:has(.header-enrollment){display:flex;flex-wrap:wrap;gap:4px 8px}.header-inner:has(.header-enrollment) #nav{order:3;width:100%;flex-basis:100%}}
@media(max-width:700px){.header-inner .header-enrollment{gap:4px}.header-enrollment button,.header-enrollment a{font-size:10px;padding:6px;min-height:40px}.header-inner:has(.header-enrollment)>.brand{font-size:16px;gap:6px}.header-inner:has(.header-enrollment) .brand-logo{width:28px;height:28px}}
@media(max-width:359px){.header-inner:has(.header-enrollment){padding-left:10px;padding-right:10px}.header-inner:has(.header-enrollment)>.brand{font-size:14px}.header-enrollment button,.header-enrollment a{padding:5px 4px;font-size:9px}}

/* Keep hover feedback legible on the original light course surfaces. */
.primary:hover{background:#2f65e7}
.dialog-close{color:var(--sub,#586780)}
