/* Careers-only home shell parity — no changes to job application or admin styling. */
body.cr-site{--cr-ink:#4a3458;background:#faf8fc;color:#4a3458;}
body.cr-site .site-header{position:relative;z-index:100;min-height:93px;border-bottom:1px solid rgba(109,75,136,.12);background:rgba(250,249,253,.97);font-family:'DM Sans',system-ui,sans-serif;}
body.cr-site .site-header .header-inner{max-width:1750px;width:calc(100% - 80px);margin:auto;min-height:92px;display:flex;gap:22px;align-items:center;justify-content:space-between;}
body.cr-site .site-header .brand,body.cr-site .cr-home-bottom footer.footer .brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:#4c375b;font-weight:700;font-size:15px;letter-spacing:.08em;white-space:nowrap;}
body.cr-site .site-header .brand svg{color:#8455aa;width:32px;height:32px;}
body.cr-site .brand-dot{font-size:9px;vertical-align:super;margin-left:1px;}
body.cr-site .desktop-nav{display:flex;align-items:center;gap:clamp(16px,2.2vw,34px);margin-left:auto;}
body.cr-site .desktop-nav a,body.cr-site .account-menu summary{font-size:13px;color:#796986;text-decoration:none;white-space:nowrap;font-weight:400;}
body.cr-site .desktop-nav a:hover,body.cr-site .desktop-nav a[aria-current="page"]{color:#6d4991;}
body.cr-site .account-menu{position:relative;flex-shrink:0;}
body.cr-site .account-menu summary{list-style:none;padding:12px 21px;border:1px solid #e4dbe9;border-radius:6px;cursor:pointer;min-width:92px;text-align:center;background:rgba(255,255,255,.42);}
body.cr-site .account-menu summary::-webkit-details-marker{display:none;}
body.cr-site .account-menu summary:before{content:'›';font-size:13px;margin-right:9px;}
body.cr-site .account-menu[open]{z-index:101;}
body.cr-site .account-menu[open] > a,body.cr-site .account-menu[open] > #nav-user{display:block;min-width:165px;padding:10px 15px;background:#fff;border:1px solid #eee5f1;text-decoration:none;color:#694d7e;font-size:12px;}
body.cr-site .account-menu[open] > a:first-of-type,body.cr-site .account-menu[open] > #nav-user{margin-top:9px;border-radius:8px 8px 0 0;}
body.cr-site .account-menu[open] > a:last-child{border-radius:0 0 8px 8px;}
body.cr-site .menu-toggle{display:none;border:1px solid #e4dbe9;background:#fff;border-radius:7px;padding:11px 13px;color:#6e4b83;font-size:12px;}
body.cr-site .mobile-nav[hidden]{display:none!important;}
body.cr-site .mobile-nav{background:#fff;padding:12px 22px 22px;border-top:1px solid #ede3f1;display:grid;gap:0;box-shadow:0 16px 22px #3c245a11;}
body.cr-site .mobile-nav a{display:flex;align-items:center;gap:12px;text-decoration:none;color:#634c73;border-bottom:1px solid #f1eaf5;padding:11px 4px;font-size:13px;}
body.cr-site .mobile-nav a span{color:#a289ae;font-size:11px;}
body.cr-site .mobile-nav a svg{margin-left:auto;width:16px;}
/* Shared bottom background matches the Home lilac depth gradient. */
body.cr-site .cr-home-bottom{position:relative;isolation:isolate;padding-top:45px;overflow:hidden;background:radial-gradient(ellipse 55% 75% at 84% 23%,rgba(213,192,238,.38),transparent 78%),linear-gradient(145deg,#fcfafe 0%,#f4eaf9 50%,#eef1fc 100%);}
body.cr-site .cr-home-bottom::before{content:'';position:absolute;width:900px;height:800px;left:-380px;top:30px;transform:rotate(28deg);background:linear-gradient(100deg,rgba(255,255,255,.65),rgba(245,232,251,.16));border-radius:50%;z-index:-1;pointer-events:none;}
body.cr-site .cr-home-bottom footer.footer{position:relative;z-index:1;background:transparent!important;}
body.cr-site .cr-home-bottom .newsletter{position:relative;z-index:1;}
body.cr-site footer.footer .footer-top .brand{font-size:16px;letter-spacing:.07em;}
body.cr-site footer.footer .footer-top .brand svg{width:32px;height:32px;color:#855ca7;}
body.cr-site footer.footer .qworld-careers-connect-link{color:#75538d;font-weight:550;}
@media(max-width:900px){body.cr-site .site-header .header-inner{width:calc(100% - 40px);min-height:76px;}body.cr-site .site-header{min-height:76px;}body.cr-site .desktop-nav{display:none;}body.cr-site .menu-toggle{display:inline-flex;margin-left:auto;}body.cr-site .account-menu{margin-left:0;}}
@media(max-width:560px){body.cr-site .site-header .header-inner{width:calc(100% - 30px);gap:10px;min-height:72px;}body.cr-site .site-header{min-height:72px;}body.cr-site .site-header .brand{font-size:12px;}body.cr-site .site-header .brand svg{width:27px;height:27px;}body.cr-site .account-menu summary{min-width:0;padding:9px 11px;font-size:11px;}body.cr-site .menu-toggle{padding:9px 10px;font-size:11px;}body.cr-site .cr-home-bottom{padding-top:25px;}}

/* V14: Careers header Account menu parity with Home. The global Home stylesheet
   makes .account-menu[open] absolute; undo that ONLY on Careers. */
body.cr-site .site-header{overflow:visible!important;z-index:300;}
body.cr-site .site-header .header-inner{position:relative;}
body.cr-site .site-header .header-inner > details.account-menu,
body.cr-site .site-header .header-inner > details.account-menu[open]{
  position:relative!important;inset:auto!important;top:auto!important;right:auto!important;
  left:auto!important;bottom:auto!important;flex:0 0 auto!important;
  margin:0!important;padding:0!important;min-width:0!important;width:auto!important;
  transform:none!important;background:transparent!important;border:0!important;
  box-shadow:none!important;border-radius:0!important;overflow:visible!important;
  z-index:310!important;align-self:center;
}
body.cr-site .site-header details.account-menu > summary{
  box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  min-width:104px;min-height:39px;padding:9px 14px;
  border:1px solid #e5dced;border-radius:6px;background:rgba(255,255,255,.54);
  color:#6d567e;font:500 12px/1.3 'DM Sans',system-ui,sans-serif;
  cursor:pointer;white-space:nowrap;list-style:none;user-select:none;
}
body.cr-site .site-header details.account-menu > summary::-webkit-details-marker{display:none;}
body.cr-site .site-header details.account-menu > summary::marker{content:'';}
body.cr-site .site-header details.account-menu > summary::before{
  content:'›';font-size:13px;margin-right:9px;
}
body.cr-site .site-header details.account-menu > summary:hover,
body.cr-site .site-header details.account-menu > summary:focus-visible{
  background:#fff;border-color:#cbb6db;color:#503562;
}
body.cr-site .site-header details.account-menu .cr-account-popover{
  display:none;box-sizing:border-box;position:absolute!important;
  top:calc(100% + 10px)!important;right:0!important;left:auto!important;
  bottom:auto!important;min-width:188px;width:max-content;max-width:min(250px,calc(100vw - 26px));
  padding:8px;background:#fffafd;border:1px solid #e9def0;border-radius:13px;
  box-shadow:0 18px 40px rgba(67,39,87,.16),0 3px 10px rgba(67,39,87,.06);
  z-index:320!important;
}
body.cr-site .site-header details.account-menu[open] .cr-account-popover{display:block!important;}
body.cr-site .site-header details.account-menu .cr-account-popover > a,
body.cr-site .site-header details.account-menu .cr-account-popover > #nav-user:not(:empty){
  box-sizing:border-box;display:block;min-width:0;width:100%;margin:0;
  padding:11px 13px;background:transparent;border:0;border-radius:8px;
  color:#674a7a;text-align:left;text-decoration:none;font:500 12px/1.35 'DM Sans',system-ui,sans-serif;
}
body.cr-site .site-header details.account-menu .cr-account-popover > a:hover,
body.cr-site .site-header details.account-menu .cr-account-popover > a:focus-visible{
  background:#f4ebfb;color:#553368;
}
body.cr-site .site-header .desktop-nav{min-width:0;}
@media(max-width:950px){
  body.cr-site .site-header .desktop-nav{display:none;}
  body.cr-site .site-header .menu-toggle{display:inline-flex;margin-left:auto;}
}
@media(max-width:560px){
  body.cr-site .site-header details.account-menu > summary{min-width:78px;min-height:36px;padding:8px 10px;font-size:11px;}
  body.cr-site .site-header details.account-menu .cr-account-popover{right:0!important;}
}
/* Keep Account and mobile Menu paired at the right edge, like the homepage. */
@media(max-width:950px){
 body.cr-site .site-header .header-inner > details.account-menu,
 body.cr-site .site-header .header-inner > details.account-menu[open]{margin-left:auto!important;}
 body.cr-site .site-header .header-inner > .menu-toggle{margin-left:0!important;}
}


/* V15: style QAuth's Login/Sign up or Hi/Logout rows like Home.
   Preserve V14's correctly anchored dropdown and Careers page styling. */
body.cr-site .site-header details.account-menu .cr-account-popover > #nav-user:not(:empty){
  box-sizing:border-box;display:block;width:100%;min-width:0;
  padding:0;margin:0 0 4px;border:0;background:transparent;
}
body.cr-site .site-header .cr-account-popover #nav-user .nav-login,
body.cr-site .site-header .cr-account-popover #nav-user .nav-signup,
body.cr-site .site-header .cr-account-popover #nav-user .nav-logout{
  box-sizing:border-box;display:block;width:100%;padding:11px 13px;
  border:0;border-radius:8px;color:#674a7a;text-align:left;
  text-decoration:none;background:transparent;
  font:500 12px/1.35 'DM Sans',system-ui,sans-serif;
}
body.cr-site .site-header .cr-account-popover #nav-user .nav-login:hover,
body.cr-site .site-header .cr-account-popover #nav-user .nav-signup:hover,
body.cr-site .site-header .cr-account-popover #nav-user .nav-logout:hover,
body.cr-site .site-header .cr-account-popover #nav-user a:focus-visible{
  background:#f4ebfb;color:#553368;outline-offset:2px;
}
body.cr-site .site-header .cr-account-popover #nav-user .nav-hello{
  display:block;padding:10px 13px 6px;color:#4e355e;
  font:600 12px/1.4 'DM Sans',system-ui,sans-serif;
  overflow-wrap:anywhere;
}
