/* Equal Association / Academy header marks, with a readable Korean identity. */
body:is([data-view=association],[data-view=academy],[data-view=apps]) .section-brand,
body.purpose-academy-root .site-header .purpose-academy-brand{width:280px;max-width:100%;gap:10px;min-width:0;direction:ltr;text-align:left}
body:is([data-view=association],[data-view=academy],[data-view=apps]) .header .section-brand svg,
body.purpose-academy-root .site-header .purpose-academy-brand svg{width:30px;height:44px;flex:none}
body:is([data-view=association],[data-view=academy],[data-view=apps]) .section-brand strong,
body.purpose-academy-root .purpose-academy-brand strong{font:400 20px/1.3 Arial,sans-serif;letter-spacing:-.5px;white-space:nowrap}
body:is([data-view=association],[data-view=academy],[data-view=apps]) .section-brand .brand-purpose,
body.purpose-academy-root .purpose-academy-brand .brand-purpose{font-size:9px;line-height:1.5;margin-top:5px}
body:is([data-view=association],[data-view=academy],[data-view=apps]) .section-brand .brand-purpose small[lang=ko],
body.purpose-academy-root .purpose-academy-brand .brand-purpose small[lang=ko]{font-size:13px!important;line-height:1.5!important;white-space:nowrap;letter-spacing:0!important;margin-top:4px!important}
body[data-view=academy] #gallery-brand-purpose .brand-purpose small[lang=ko]{font-size:18px!important;line-height:1.6!important;word-break:keep-all}
body.purpose-academy-root .purpose-academy-footer .brand-purpose small[lang=ko]{font-size:13px!important;line-height:1.6!important}
@media(min-width:651px) and (max-width:900px){
 body:is([data-view=association],[data-view=academy],[data-view=apps]) .header{display:flex;flex-wrap:wrap;height:auto;min-height:150px;padding-block:10px;gap:10px 16px}
 body:is([data-view=association],[data-view=academy],[data-view=apps]) .header .brand{flex:0 0 100%}
 body:is([data-view=association],[data-view=academy],[data-view=apps]) .header nav{margin-inline-start:0;margin-inline-end:auto}
}
@media(max-width:650px){
 body:is([data-view=association],[data-view=academy],[data-view=apps]) .header{height:auto;min-height:185px;grid-template-columns:minmax(0,1fr) auto}
 body:is([data-view=association],[data-view=academy],[data-view=apps]) .header .brand{grid-column:1/-1;grid-row:1;max-width:100%}
 body:is([data-view=association],[data-view=academy],[data-view=apps]) .section-brand{width:100%}
 body:is([data-view=association],[data-view=academy],[data-view=apps]) .header #motion{grid-column:2;grid-row:2;max-width:130px}
 body:is([data-view=association],[data-view=academy],[data-view=apps]) .hub-language-control{grid-column:1;grid-row:2;justify-content:start;min-width:0}
 body:is([data-view=association],[data-view=academy],[data-view=apps]) .hub-language-control select{min-width:0}
 body[data-view=academy] #gallery-brand-purpose .brand-purpose small[lang=ko]{font-size:16px!important}
}
/* Compact header uses its second row for controls, without covering planet links.
   Floating member/Courses shortcuts remain available in the existing Menu. */
@media(max-width:540px){
 body.purpose-academy-root .site-header{display:flex;flex-wrap:wrap!important;align-content:start;align-items:flex-start;gap:4px;padding:4px 16px 0;min-height:120px;height:120px!important;pointer-events:none}
 body.purpose-academy-root .site-header>.brand,body.purpose-academy-root .site-header>button,body.purpose-academy-root .site-header>details,body.purpose-academy-root .site-header>nav{pointer-events:auto}
 body.purpose-academy-root .site-header .purpose-academy-brand{flex:0 0 100%;width:100%}
 body.purpose-academy-root .site-header .academy-language-picker{position:absolute;top:76px;right:72px;left:auto;margin:0}
 body.purpose-academy-root .site-header .menu-toggle{position:absolute;top:76px;right:16px;left:auto;margin:0;width:48px;min-width:48px}
 body.purpose-academy-root .site-header #primary-nav{inset:124px 16px 16px}
 body.purpose-academy-root .route-bar{margin-top:140px}
 body.purpose-academy-root .home-member-action,body.purpose-academy-root.planet-mode .explore-button{display:none}
 body.purpose-academy-root.planet-mode .motion-controls,body.purpose-academy-root.gallery-exploring.planet-mode .motion-controls{top:76px;bottom:auto;left:16px;right:auto;max-width:142px;gap:4px}
 body.purpose-academy-root.planet-mode .motion-controls button{max-width:69px;white-space:normal;font-size:9px;line-height:1.25;padding:6px 7px;min-height:44px}
 body.purpose-academy-root .section-nav{top:120px}
 body.purpose-academy-root [id]{scroll-margin-top:140px}
}
@media(max-width:540px) and (max-height:700px){body.purpose-academy-root .planet-group-label{display:none}}
@media(max-width:360px){body:is([data-view=association],[data-view=academy],[data-view=apps]) .hub-language-control select{max-width:115px}}
/* Match the header reserve on intermediate tablets as well as phones. */
@media(min-width:541px) and (max-width:1100px){body.purpose-academy-root .home-member-action{top:108px}}
@media(min-width:541px) and (max-width:1100px) and (max-height:760px){body.purpose-academy-root .home-member-action,body.purpose-academy-root.planet-mode .explore-button{display:none}}
@media(min-width:541px) and (max-width:860px){body.purpose-academy-root .site-header #primary-nav{inset:100px 16px 16px}}
@media(min-width:541px) and (max-width:860px) and (max-height:600px){
 body.purpose-academy-root .site-header{pointer-events:none}
 body.purpose-academy-root .site-header>.brand,body.purpose-academy-root .site-header>button,body.purpose-academy-root .site-header>details,body.purpose-academy-root .site-header>nav{pointer-events:auto}
 body.purpose-academy-root.planet-mode .motion-controls{top:64px;bottom:auto;left:auto;right:18px;max-width:200px;gap:6px}
 body.purpose-academy-root.planet-mode .motion-controls button{max-width:96px;white-space:normal;line-height:1.3;padding:6px 8px}
 body.purpose-academy-root .home-member-action,body.purpose-academy-root.planet-mode .explore-button{display:none}
}
