/* Maumau Chess AAB52: botão Home/cavalo e seleção de idioma. */
.mca-global-home{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:38px;flex:none;margin:0 8px 0 4px;border-radius:9px;text-decoration:none;background:#123047;border:1px solid #467a9c;position:relative;z-index:3}
.mca-global-home img{width:32px;height:32px;object-fit:contain}.mca-global-home:hover,.mca-global-home:focus-visible{outline:2px solid #86e7b1}
.mca-global-home.floating{position:fixed;top:8px;left:8px;z-index:9999}
.mca-site-language{margin-inline-start:auto;align-self:center;display:inline-flex;align-items:center}
.mca-site-language-select,#mcaLocaleSelect{background:#10232b;border:1px solid #487267;border-radius:9px;color:#effcf6;padding:8px;min-height:37px;max-width:190px;font:600 13px system-ui,Arial,sans-serif}
.mca-site-language-select:focus-visible,#mcaLocaleSelect:focus-visible{outline:2px solid #86e7b1}
@media(max-width:740px){.mca-site-language-select{max-width:165px;font-size:12px}.mca-site-language{margin-left:0}}
/* Preservar uma linha em branco entre parágrafos explicativos em todos os idiomas. */
#moveExplanation{white-space:pre-line!important;overflow-wrap:anywhere}

/* O próprio cavalo já visível é o botão Home; sem ícones duplicados. */
.mca-home-brand-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;color:inherit;text-decoration:none;border-radius:8px;cursor:pointer}
.mca-home-brand-icon:focus-visible{outline:2px solid #86e7b1;outline-offset:3px}
.mca-home-brand-icon:hover{filter:brightness(1.14)}

/* AAB52 R2 — shared Home-style public header proportions.
   The functional analyzer/game toolbars retain their own responsive layout. */
.edu-header:not(.academy-header){
  max-width:1350px;margin-left:auto;margin-right:auto;
  display:flex;justify-content:space-between;align-items:center;
  gap:20px;padding:19px 20px;min-height:78px;
}
.edu-header:not(.academy-header) .edu-brand{
  font-size:1.17rem;letter-spacing:.055em;font-weight:900;gap:10px;
}
.edu-header:not(.academy-header) .edu-brand img{
  width:42px;height:42px;object-fit:contain;
}
.edu-header:not(.academy-header) nav:not(.edu-langs):not(.edu-tabs){gap:18px;align-items:center}
.edu-header:not(.academy-header) nav:not(.edu-langs):not(.edu-tabs) a{font-size:.93rem;font-weight:500;line-height:1.45}
.mca-editorial-bar{width:min(1350px,calc(100% - 40px));min-height:78px;gap:20px}
.mca-editorial-brand{font-weight:900;font-size:1.17rem;letter-spacing:.055em;gap:10px}
.mca-editorial-brand img{width:42px;height:42px;object-fit:contain}
.mca-editorial-nav{gap:14px}
.mca-editorial-nav a{font-size:.93rem;line-height:1.4;padding:5px 7px}
.mca-editorial-language select{max-width:185px}
/* Four language links including the active language, with an accessible highlight. */
.home-langs,.edu-langs{align-items:center;flex-wrap:wrap;column-gap:8px;row-gap:5px}
.home-langs .mca-lang-active,.edu-langs .mca-lang-active{
 display:inline-flex;align-items:center;padding:4px 9px;
 border:1px solid #88e2b3;border-radius:7px;
 background:#24483c;color:#e6fff0;font-weight:800;
 text-decoration:none;white-space:nowrap;
}
.home-langs a,.edu-langs a{display:inline-flex;align-items:center;padding:4px 7px;border-radius:7px;white-space:nowrap}
.home-langs a:hover,.edu-langs a:hover{background:#143a2d}
.home-langs a:focus-visible,.edu-langs a:focus-visible{outline:2px solid #91e9b4;outline-offset:2px}
.edu-langs .mca-lang-separator{color:#6f9d89}
/* Academy lessons use warm palette but preserve the same active-language signal. */
.academy-study-page .edu-langs .mca-lang-active{background:#58402b;border-color:#dfbb79;color:#fff3d9}
/* Bot / Friend: use exactly the analyzer's image mark, never font glyph or emoji. */
body > .app > .topbar .brand img.brand-icon{
 width:42px!important;height:42px!important;min-width:42px!important;
 object-fit:contain!important;object-position:center!important;
 padding:0!important;border:0!important;border-radius:8px!important;
 background:transparent!important;box-shadow:none!important;
 display:block!important;overflow:visible!important;transform:none!important;
}
body > .app > .topbar .brand img.brand-icon::before{content:none!important;display:none!important}
@media(max-width:800px){
 .edu-header:not(.academy-header),.mca-editorial-bar{
  display:flex;align-items:flex-start;flex-direction:column;
  gap:10px;min-height:0;padding:12px 16px;
 }
 .edu-header:not(.academy-header) nav:not(.edu-langs):not(.edu-tabs),.mca-editorial-nav{gap:7px 17px;justify-content:flex-start}
 .edu-header:not(.academy-header) nav:not(.edu-langs):not(.edu-tabs) a,.mca-editorial-nav a{font-size:.85rem}
 .mca-editorial-bar{width:calc(100% - 24px)}
}
@media(max-width:760px){
 body > .app > .topbar .brand img.brand-icon{
  width:36px!important;height:36px!important;min-width:36px!important;
 }
}
/* Align Bot/Friend top action typography and tap targets with the analyzer. */
body > .app > header.topbar .top-actions > a.top-button,
body > .app > header.topbar .top-actions > button.top-button,
body > .app > header.topbar .top-actions > .game-actions-menu > summary.top-button{
  min-height:38px!important;height:38px!important;
  font-size:12px!important;line-height:1.2!important;
}
@media(max-width:760px){
 body > .app > header.topbar .top-actions > a.top-button,
 body > .app > header.topbar .top-actions > button.top-button,
 body > .app > header.topbar .top-actions > .game-actions-menu > summary.top-button{
  min-height:39px!important;height:39px!important;
  font-size:clamp(10px,2.7vw,11.5px)!important;
  padding-left:4px!important;padding-right:4px!important;
 }
}
