/* Shared EasySquares branding; compact linked-board headers retain their own sizing. */
img.es-standard-logo {display:block;box-sizing:border-box;width:200px;max-width:100%;height:auto;max-height:47px;object-fit:contain;object-position:center;flex-shrink:1;}
@media screen and (max-width:600px){img.es-standard-logo{width:155px;height:35px;max-height:35px;object-fit:contain;}}
@media screen and (max-width:440px){img.es-standard-logo{width:clamp(100px,36vw,148px);}}
.footer-brand img.es-standard-logo{object-position:left center;}

/* Standard application and public header. Board and Manage My Squares retain their own compact headers. */
@media screen {
 header:has(img.es-standard-logo) {
   background:#064d30!important;border-bottom:3px solid #79cd31!important;
   box-shadow:0 2px 8px rgba(0,35,20,.12)!important;color:#fff;
 }
 header:has(img.es-standard-logo) > :is(.topbar-inner,.header-inner,.barinner,.topinner,.header-in,.sitebar-inner,.promo-header,.inner,.es-standard-header-inner,.es-pay-topbar-inner),
 header:has(img.es-standard-logo) > div:has(> a.brand > img.es-standard-logo):not(.topbar-inner):not(.header-inner) {
   box-sizing:border-box;width:100%;max-width:1160px!important;min-height:59px!important;height:auto!important;
   margin:0 auto!important;padding:5px 13px!important;gap:10px!important;align-items:center;
 }
 .es-standard-header-inner{display:flex;justify-content:space-between;align-items:center}
 header:has(img.es-standard-logo) :is(.logo-link,.brand,.promo-header-logo,.logo,.es-standard-header-logo,.es-pay-logo):has(> img.es-standard-logo){min-width:0;flex:0 1 auto;background:transparent!important;padding:0!important;line-height:0;text-decoration:none}
 header:has(img.es-standard-logo) img.es-standard-logo{width:clamp(142px,18vw,200px)!important;height:auto!important;max-width:100%!important;max-height:47px!important;object-fit:contain!important;object-position:left center!important;margin:0!important}
 header:has(img.es-standard-logo) :is(.back,.back-button,.logout,.dashboard-nav,.payment-profiles-nav,.header-link,.promo-nav,.link,.nav > a,.inner > nav > a){align-items:center;justify-content:center;min-height:42px!important;height:auto!important;min-width:0!important;box-sizing:border-box;border:1px solid rgba(255,255,255,.4)!important;border-radius:9px!important;background:rgba(255,255,255,.13)!important;color:#fff!important;text-decoration:none!important;font-weight:800;padding:7px 12px}
 header:has(img.es-standard-logo) :is(.back,.back-button,.logout,.dashboard-nav,.payment-profiles-nav,.header-link,.promo-nav,.link,.nav > a,.inner > nav > a):is(:hover,:focus-visible){background:rgba(255,255,255,.25)!important;color:#fff!important}
 header:has(img.es-standard-logo) :is(.desktop-nav,.nav-links) a{color:#fff!important;text-decoration:none}
 header:has(img.es-standard-logo) :is(.desktop-nav,.nav-links) a:is(:hover,[aria-current=page]){color:#c8f69f!important;text-decoration:underline}
 header:has(img.es-standard-logo) .menu-toggle span{background:#fff!important}
 header:has(img.es-standard-logo) .sitebar-note{color:#fff!important}
 header.topnav:has(img.es-standard-logo){height:auto!important;min-height:59px!important;padding-top:5px!important;padding-bottom:5px!important}
 body:has(> header.es-auth-header) > main.page{min-height:0!important;padding-top:24px}
 body:has(> header.es-verification-header){display:block!important;min-height:100vh}
 body:has(> header.es-verification-header) > main.card{margin:28px auto}
 @media(max-width:600px){
   header:has(img.es-standard-logo) > :is(.topbar-inner,.header-inner,.barinner,.topinner,.header-in,.sitebar-inner,.promo-header,.inner,.es-standard-header-inner,.es-pay-topbar-inner),
   header:has(img.es-standard-logo) > div:has(> a.brand > img.es-standard-logo):not(.topbar-inner):not(.header-inner){min-height:56px!important;padding:5px 10px!important;gap:7px!important}
   header:has(img.es-standard-logo) img.es-standard-logo{width:155px!important;height:40px!important;max-height:40px!important}
   header:has(img.es-standard-logo) :is(.back,.back-button,.logout,.dashboard-nav,.payment-profiles-nav,.header-link,.promo-nav,.link,.nav > a,.inner > nav > a){min-height:40px!important;padding:5px 8px;font-size:12px}
   header.topnav:has(img.es-standard-logo){min-height:56px!important}
 }
 @media(max-width:440px){
   header:has(img.es-standard-logo) img.es-standard-logo{width:clamp(100px,29vw,148px)!important}
   header:has(img.es-standard-logo) > :is(.topbar-inner,.header-inner,.barinner,.topinner,.header-in,.sitebar-inner,.promo-header,.inner,.es-standard-header-inner,.es-pay-topbar-inner),
   header:has(img.es-standard-logo) > div:has(> a.brand > img.es-standard-logo):not(.topbar-inner):not(.header-inner){min-height:52px!important;padding:5px 8px!important;gap:6px!important}
   header.topnav:has(img.es-standard-logo){min-height:52px!important}
 }
 /* Preserve the dashboard's existing hidden redundant create shortcut. */

}
/* Public informational page home navigation. */
@media screen {
 header .es-public-home-button{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-height:42px;padding:7px 13px;border:1px solid rgba(255,255,255,.4);border-radius:9px;background:rgba(255,255,255,.13);color:#fff!important;font:800 14px/1.2 system-ui,-apple-system,Segoe UI,Arial,sans-serif;text-decoration:none!important;white-space:nowrap;box-sizing:border-box}
 header .es-public-home-button:is(:hover,:focus-visible){background:rgba(255,255,255,.25);color:#fff!important}
 header .es-public-home-button:focus-visible{outline:2px solid #b7ed8b;outline-offset:3px}
 @media(max-width:600px){header .es-public-home-button{box-sizing:border-box!important;height:42px!important;min-height:42px!important;max-height:42px!important;padding:0 10px!important;font-size:13px;align-self:center!important;line-height:1.2!important}}
}


/* Supporting-page logos match existing navigation controls. Compact board headers do not use this class. */
@media screen and (max-width:600px){
 header:has(img.es-standard-logo) img.es-standard-logo {
   height:40px!important;min-height:40px!important;max-height:40px!important;
   object-fit:fill!important;align-self:center!important;
 }
}

/* Public Home is 42px; use the available room instead of squeezing the logo. */
@media screen and (max-width:600px){
 header:has(.es-public-home-button) :is(.header-inner,.es-standard-header-inner) > a:has(> img.es-standard-logo){height:42px!important;min-height:42px!important;max-height:42px!important;flex:0 1 auto!important;display:flex!important;align-items:center!important;}
 header:has(.es-public-home-button) :is(.header-inner,.es-standard-header-inner) > a > img.es-standard-logo{
   width:clamp(125px,43vw,198px)!important;height:42px!important;min-height:42px!important;max-height:42px!important;object-fit:fill!important;flex-shrink:0!important;
 }
 header:has(.es-public-home-button) :is(.header-inner,.es-standard-header-inner) > a.es-public-home-button{height:42px!important;min-height:42px!important;max-height:42px!important;box-sizing:border-box!important;padding:0 10px!important;}
}
/* Dashboard only: keep the wide desktop create action, with matching translucent buttons. */
@media screen {
 header.topbar:has(.header-create-board) .topbar-inner > :is(.header-create-board,.payment-profiles-nav,.logout){
   box-sizing:border-box!important;align-items:center;justify-content:center;
   background:rgba(255,255,255,.13)!important;color:#fff!important;border:1px solid rgba(255,255,255,.4)!important;
   border-radius:9px!important;text-decoration:none!important;font-weight:850;
 }
 header.topbar:has(.header-create-board) .topbar-inner > :is(.header-create-board,.payment-profiles-nav,.logout):is(:hover,:focus-visible){background:rgba(255,255,255,.25)!important;color:#fff!important;}
}
@media screen and (min-width:641px){
 header.topbar:has(.header-create-board) .topbar-inner > :is(.header-create-board,.payment-profiles-nav,.logout){height:44px!important;min-height:44px!important;max-height:44px!important;padding:0 12px!important;font-size:13px;}
 header.topbar:has(.header-create-board) .header-create-board{flex:1 1 0;min-width:0;margin:0;}
 header.topbar:has(.header-create-board) .logo-img.es-standard-logo{height:44px!important;min-height:44px!important;max-height:44px!important;object-fit:fill!important;}
}
@media screen and (max-width:640px){
 header.topbar:has(.header-create-board) .topbar-inner > :is(.payment-profiles-nav,.logout){height:40px!important;min-height:40px!important;max-height:40px!important;padding:0 8px!important;}
 header.topbar:has(.header-create-board) .logo-img.es-standard-logo{height:40px!important;min-height:40px!important;max-height:40px!important;object-fit:fill!important;}
}

/* Medium logo-matched header outlines: existing 1px border + 1px inset.
   Inset preserves compact button widths, heights, and scrolling behavior. */
@media screen {
  header:has(img.es-standard-logo) :is(.back,.back-button,.logout,.dashboard-nav,.payment-profiles-nav,.header-link,.promo-nav,.link,.nav > a,.inner > nav > a,.header-create-board,.es-public-home-button,.menu-toggle,.es-login-menu-toggle),
  header:has(img.es-standard-logo) > :is(.topbar-inner,.header-inner,.barinner,.topinner,.header-in,.sitebar-inner,.promo-header,.inner,.es-standard-header-inner,.es-pay-topbar-inner,.top) > :is(button,a.button,a.btn):not(:has(img)),
  header.topbar:has(img.es-standard-logo) .topbar-inner > .topbar-actions > :is(a.dashboard-nav,a.logout),
  header.topbar:has(.header-create-board) .topbar-inner > :is(.header-create-board,.payment-profiles-nav,.logout),
  header:has(img.es-standard-logo) :is(.topbar-actions,.credits-header-actions) > :is(a.button,a.btn,button):not(:has(img)),
  header.topbar:has(.topbar-logo-link) .topbar-actions > .es-header-share-action,
  header.topbar:has(.topbar-logo-link) .es-linked-board-list > a.es-linked-board-chip:not([aria-current=page]),
  header.page-header:has(.site-logo) .page-header-inner > a.button.secondary,
  header.page-header:has(.site-logo) .manage-board-strip > a.manage-board-chip:not([aria-current=page]) {
    border-color:#8bf52b!important;
    box-shadow:inset 0 0 0 1px #8bf52b, 0 2px 4px rgba(0,28,12,.35)!important;
  }
  header:has(img.es-standard-logo) :is(.back,.back-button,.logout,.dashboard-nav,.payment-profiles-nav,.header-link,.promo-nav,.link,.nav > a,.inner > nav > a,.header-create-board,.es-public-home-button,.menu-toggle,.es-login-menu-toggle):hover,
  header:has(img.es-standard-logo) > :is(.topbar-inner,.header-inner,.barinner,.topinner,.header-in,.sitebar-inner,.promo-header,.inner,.es-standard-header-inner,.es-pay-topbar-inner,.top) > :is(button,a.button,a.btn):not(:has(img)):hover,
  header.topbar:has(img.es-standard-logo) .topbar-inner > .topbar-actions > :is(a.dashboard-nav,a.logout):hover,
  header.topbar:has(.header-create-board) .topbar-inner > :is(.header-create-board,.payment-profiles-nav,.logout):hover,
  header:has(img.es-standard-logo) :is(.topbar-actions,.credits-header-actions) > :is(a.button,a.btn,button):not(:has(img)):hover,
  header.topbar:has(.topbar-logo-link) .topbar-actions > .es-header-share-action:hover,
  header.topbar:has(.topbar-logo-link) .es-linked-board-list > a.es-linked-board-chip:not([aria-current=page]):hover,
  header.page-header:has(.site-logo) .page-header-inner > a.button.secondary:hover,
  header.page-header:has(.site-logo) .manage-board-strip > a.manage-board-chip:not([aria-current=page]):hover {
    border-color:#b1ff6a!important;
    box-shadow:inset 0 0 0 1px #b1ff6a, 0 2px 4px rgba(0,28,12,.35)!important;
  }
  header:has(img.es-standard-logo) :is(.back,.back-button,.logout,.dashboard-nav,.payment-profiles-nav,.header-link,.promo-nav,.link,.nav > a,.inner > nav > a,.header-create-board,.es-public-home-button,.menu-toggle,.es-login-menu-toggle):focus-visible,
  header:has(img.es-standard-logo) > :is(.topbar-inner,.header-inner,.barinner,.topinner,.header-in,.sitebar-inner,.promo-header,.inner,.es-standard-header-inner,.es-pay-topbar-inner,.top) > :is(button,a.button,a.btn):not(:has(img)):focus-visible,
  header.topbar:has(img.es-standard-logo) .topbar-inner > .topbar-actions > :is(a.dashboard-nav,a.logout):focus-visible,
  header.topbar:has(.header-create-board) .topbar-inner > :is(.header-create-board,.payment-profiles-nav,.logout):focus-visible,
  header:has(img.es-standard-logo) :is(.topbar-actions,.credits-header-actions) > :is(a.button,a.btn,button):not(:has(img)):focus-visible,
  header.topbar:has(.topbar-logo-link) .topbar-actions > .es-header-share-action:focus-visible,
  header.topbar:has(.topbar-logo-link) .es-linked-board-list > a.es-linked-board-chip:not([aria-current=page]):focus-visible,
  header.page-header:has(.site-logo) .page-header-inner > a.button.secondary:focus-visible,
  header.page-header:has(.site-logo) .manage-board-strip > a.manage-board-chip:not([aria-current=page]):focus-visible {
    outline:2px solid #fff;outline-offset:2px;
  }
  header:has(img.es-standard-logo) :is(.menu-toggle,.es-login-menu-toggle) {
    box-shadow:inset 0 0 0 2px #8bf52b, 0 2px 4px rgba(0,28,12,.35)!important;
  }
  header:has(img.es-standard-logo) :is(.menu-toggle,.es-login-menu-toggle):hover {
    box-shadow:inset 0 0 0 2px #b1ff6a, 0 2px 4px rgba(0,28,12,.35)!important;
  }
}
