body header:has(> [data-language-switch]) {
  position: relative;
  padding-top: 76px !important;
}
[data-language-switch] {
  position: absolute;
  right: 16px;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  color: #183042;
  font:
    600 14px/1.6 Inter,
    system-ui,
    sans-serif;
  white-space: nowrap;
  z-index: 3;
}
[data-language-switch] a {
  color: inherit;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
}
[data-language-switch] [aria-current] {
  font-weight: 800;
  text-decoration: none;
}
[data-language-switch] [aria-disabled] {
  opacity: 0.55;
}
[data-language-switch] a:focus-visible {
  outline: 3px solid #b91c1c;
  outline-offset: 3px;
}
/* Reviewed translations may be longer; keep every footer link inside the viewport. */
html[lang="es"] body footer[data-anna-footer] {
  flex-wrap: wrap !important;
}
html[lang="es"] body footer[data-anna-footer] > nav {
  flex-wrap: wrap !important;
  white-space: normal !important;
  min-width: 0;
}

/* Journal Anna follow links: existing footer colors and type; no new request. */
.aps-anna-follow{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;vertical-align:middle}
.aps-anna-follow>span:first-child{margin-right:4px}
.aps-anna-follow a{display:inline-flex!important;align-items:center;justify-content:center;min-width:24px;min-height:24px;line-height:1;text-decoration:none!important}
.aps-anna-follow svg{display:block;width:16px;height:16px;fill:currentColor}
.aps-social-in{font-family:Arial,sans-serif;font-size:15px;font-weight:700}
.aps-anna-follow a:focus-visible{outline:2px solid currentColor;outline-offset:2px}
@media(min-width:1400px){
 :is(body.journal-surface,body.member-shell,body) footer[data-anna-footer]{font-size:clamp(9px,.67vw,12px)!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:12px!important;padding-block:16px!important}
 :is(body.journal-surface,body.member-shell,body) footer[data-anna-footer] .family button{font:inherit!important;line-height:1.4!important;padding:2px 6px!important}
 :is(body.journal-surface,body.member-shell,body) footer[data-anna-footer]>nav{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;white-space:nowrap!important;font-size:inherit!important;gap:3px!important}
 :is(body.journal-surface,body.member-shell,body) footer[data-anna-footer]>.aps-footer-copyright,:is(body.journal-surface,body.member-shell,body) footer[data-anna-footer]>small{font:inherit!important;margin-left:0!important;white-space:nowrap!important}
}
@media(max-width:1399px){
 :is(body.journal-surface,body.member-shell,body) footer[data-anna-footer]{flex-wrap:wrap!important}
 :is(body.journal-surface,body.member-shell,body) footer[data-anna-footer]>nav{flex-wrap:wrap!important;white-space:normal!important}
 :is(body.journal-surface,body.member-shell,body) footer[data-anna-footer] .aps-journal-picker{min-width:0;max-width:100%;flex-shrink:1!important}
 :is(body.journal-surface,body.member-shell,body) footer[data-anna-footer] .aps-journal-trigger{max-width:100%;box-sizing:border-box;white-space:normal}
 .aps-anna-follow{max-width:100%;white-space:nowrap}
}

/* Long citations must wrap rather than push the Journal and its footer sideways. */
body .sources a:not([data-related-article]){overflow-wrap:anywhere}
