
/* Sudoku Pro single sitewide header & footer. Keep legacy templates in DOM
   for old listeners, but prevent them from painting additional toolbars. */
body > header:not(#sp-site-header-v190),
body > .global-site-header,
body > .topbar,
body > .top,
body > footer:not(#sp-site-footer-v190),
body > main.shell > .brand,
body > main.shell > .top-install-prompt,
body > main.shell > .footer,
body > main.shell .page > .brand,
body .sp-unified-footer-v177,
body .global-site-header {display:none!important}
#sp-site-header-v190{
  position:relative!important;z-index:300!important;
  display:block!important;width:100%!important;margin:0!important;
  background:#fff!important;color:#233b58!important;
  border-bottom:1px solid #d6e3f2!important;box-shadow:0 2px 9px #233a5b0b!important;
  font:600 14px/1.5 system-ui,"Segoe UI",Arial,sans-serif!important;
  box-sizing:border-box!important;
}
#sp-site-header-v190 *,#sp-site-footer-v190 *{box-sizing:border-box!important}
#sp-site-header-v190 .sp-v190-header-inner{
  display:flex;align-items:center;gap:14px;justify-content:space-between;
  width:min(1460px,calc(100% - 26px));min-height:68px;margin:0 auto;
  padding:10px 2px;
}
#sp-site-header-v190 .sp-v190-brand{font-size:20px!important;letter-spacing:-.04em;font-weight:900!important;color:#1762b0!important;white-space:nowrap;text-decoration:none!important}
#sp-site-header-v190 .sp-v190-main-nav{display:flex;align-items:center;gap:2px;flex-wrap:wrap;justify-content:center}
#sp-site-header-v190 .sp-v190-main-nav a{
 display:inline-flex;align-items:center;justify-content:center;
 white-space:nowrap;text-decoration:none!important;border-radius:10px!important;
 padding:9px 10px!important;font-size:13px!important;font-weight:750!important;color:#415776!important;
 background:transparent!important;line-height:1.3!important
}
#sp-site-header-v190 .sp-v190-main-nav a:hover,#sp-site-header-v190 .sp-v190-main-nav a[aria-current=page]{background:#edf5ff!important;color:#173e75!important}
#sp-site-header-v190 .sp-v190-main-nav a.sp-site-cross-rubik{border:1px solid #d1e2f6!important;color:#24558f!important}
#sp-site-header-v190 .sp-v190-actions{display:flex;gap:7px;align-items:center}
#sp-site-header-v190 .sp-v190-actions a{display:inline-flex;white-space:nowrap;text-decoration:none!important;padding:9px 11px!important;border-radius:10px!important;background:#10192b!important;color:white!important;font-size:12px!important;font-weight:750!important}
#sp-site-header-v190 .sp-v190-actions button{background:#fff!important;border:1px solid #cedce9!important;border-radius:10px!important;font-size:13px!important;min-height:38px!important;padding:7px 10px!important;cursor:pointer;color:#234a70!important}
#sp-site-footer-v190{display:block!important;position:relative!important;clear:both!important;margin:35px 0 0!important;background:#f9fbfe!important;color:#25476e!important;border-top:1px solid #d4e2ef!important;padding:22px 17px!important;font:500 13px/1.7 system-ui,"Segoe UI",Arial,sans-serif!important;width:100%!important;box-sizing:border-box!important}
#sp-site-footer-v190 .sp-v190-footer-inner{display:flex;align-items:center;gap:16px 25px;flex-wrap:wrap;max-width:1230px;margin:0 auto}
#sp-site-footer-v190 strong{font-size:17px!important;color:#1b5c9a!important}
#sp-site-footer-v190 .sp-v190-footer-nav{display:flex;gap:8px 18px;align-items:center;flex-wrap:wrap}
#sp-site-footer-v190 .sp-v190-footer-nav a{text-decoration:none!important;color:#295b8b!important;font-weight:650!important;font-size:13px!important}
#sp-site-footer-v190 .sp-v190-footer-nav a:hover{text-decoration:underline!important}
#sp-site-footer-v190 small{margin-inline-start:auto;color:#57768f!important}
/* Restore the original Rubik Academy card in the Sudoku Academy hero,
   linking only to independent rubikpro.web.app. */
body .academy-dual-heroes{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:18px!important}
body .academy-dual-heroes .academy-welcome{max-width:none!important;width:100%!important;min-width:0!important}
body .academy-dual-heroes>a.academy-rubik-welcome{display:flex!important;max-width:none!important;width:100%!important;min-width:0!important}
body .academy-dual-heroes .academy-rubik-hero-copy{max-width:100%}
@media(max-width:1200px){#sp-site-header-v190 .sp-v190-header-inner{flex-wrap:wrap;justify-content:center}#sp-site-header-v190 .sp-v190-brand{margin-right:auto}}
@media(max-width:780px){#sp-site-header-v190 .sp-v190-header-inner{gap:8px}#sp-site-header-v190 .sp-v190-main-nav{order:3;width:100%;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;padding:4px 0}#sp-site-header-v190 .sp-v190-main-nav a{font-size:12px!important;padding:7px 10px!important}#sp-site-header-v190 .sp-v190-actions a.sp-v190-windows{display:none}body .academy-dual-heroes{grid-template-columns:1fr!important}#sp-site-footer-v190 .sp-v190-footer-inner{flex-direction:column;align-items:flex-start}}

/* Restore the original compact flag language control seen on Sudoku.
   The existing language-change action remains unchanged. */
#sp-site-header-v190 .sp-v190-actions button.sp-v192-language-btn{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 gap:7px!important;min-width:76px!important;min-height:39px!important;
 padding:7px 10px!important;border:1px solid #cedce9!important;
 background:#fff!important;color:#183c68!important;border-radius:10px!important;
 font:800 13px/1.2 system-ui,"Segoe UI",Arial,sans-serif!important;
 direction:ltr!important;white-space:nowrap!important;
}
#sp-site-header-v190 .sp-v192-language-flag{
 display:block!important;width:28px!important;height:20px!important;
 object-fit:cover!important;border-radius:3px!important;flex:0 0 28px!important;
}
#sp-site-header-v190 .sp-v192-language-code{color:#183c68!important;font-weight:850!important}
#sp-site-header-v190 .sp-v190-actions button.sp-v192-language-btn:hover{
 border-color:#8cb7e2!important;background:#edf5ff!important;
}
