/* A continuous neutral masthead, not a white badge on a dark header.
   Original seal/calligraphy colors and all application surfaces are preserved. */
body[data-site-ui="academic"][data-portal-theme] :is(.oa-topbar,.mail-topbar,.dp-top) {
  --academic-ink:#172b3e;--academic-muted:#506579;--academic-blue:#17467e;
  background:#fff !important;color:#172b3e;border-bottom:1px solid #d7e1eb;
  padding:20px 32px;gap:20px 32px;align-items:center;
}
body[data-site-ui="academic"][data-portal-theme] :is(.oa-topbar,.mail-topbar,.dp-top) .capest-identity {
  width:400px;flex:0 1 400px;grid-template-columns:44px minmax(0,1fr);
  column-gap:16px;row-gap:7px;background:transparent !important;color:#17467e;
}
body[data-site-ui="academic"][data-portal-theme] :is(.oa-topbar,.mail-topbar,.dp-top) .capest-identity__seal { width:44px; }
body[data-site-ui="academic"][data-portal-theme] :is(.oa-topbar,.mail-topbar,.dp-top) .capest-identity img { filter:none !important;mix-blend-mode:normal !important; }
body[data-site-ui="academic"][data-portal-theme] :is(.oa-topbar,.mail-topbar,.dp-top) .capest-identity__label { color:#506579;opacity:1; }
body[data-site-ui="academic"][data-portal-theme] :is(.oa-topbar,.mail-topbar,.dp-top) :is(.nav a,.right a) { color:#17467e; }
body[data-site-ui="academic"][data-portal-theme] .dp-top .nav a.on { color:#123f73;border-bottom:2px solid #17467e; }
body[data-site-ui="academic"][data-portal-theme] :is(.oa-topbar,.mail-topbar,.dp-top) :is(.nav a,.right a):hover { color:#0b4c92;text-decoration:underline; }
@media(max-width:767px) {
  body[data-site-ui="academic"][data-portal-theme] :is(.oa-topbar,.mail-topbar,.dp-top) .capest-identity {
    width:min(100%,400px);flex:0 1 100%;grid-template-columns:38px minmax(0,1fr);column-gap:12px;
  }
  body[data-site-ui="academic"][data-portal-theme] :is(.oa-topbar,.mail-topbar,.dp-top) .capest-identity__seal { width:38px; }
}
