/* Narrow desktop header only; existing mobile navigation and other content stay. */
@media screen and (700px < width <= 1090px) {
  :is(html.landing-page #main>.hero>header.header,html body>header.journal-header[data-pc-shared-header][data-pc-c13-header])[data-pc-mid-ready] {
    position:relative; z-index:12;
  }
  :is(html.landing-page #main>.hero>header.header,html body>header.journal-header[data-pc-shared-header][data-pc-c13-header])[data-pc-mid-ready] > .pc-mid-toggle {
    display:inline-flex;align-items:center;justify-content:center;gap:.6em;flex:none;min-width:94px;min-height:44px;padding:0 .85em;
    color:#153b3e;background:#faf8f1;border:1px solid #324f4b;border-radius:10px;font:600 15px/1.25 system-ui,sans-serif;cursor:pointer;
  }
  :is(html.landing-page #main>.hero>header.header,html body>header.journal-header[data-pc-shared-header][data-pc-c13-header])[data-pc-mid-ready] > nav[data-pc-mid-nav][aria-label="Main navigation"] {
    display:none!important;
  }
  :is(html.landing-page #main>.hero>header.header,html body>header.journal-header[data-pc-shared-header][data-pc-c13-header])[data-pc-mid-ready][data-pc-mid-open] > nav[data-pc-mid-nav][aria-label="Main navigation"] {
    display:flex!important;position:absolute!important;inset:100% 12px auto auto!important;z-index:13;box-sizing:border-box;margin:0!important;padding:8px!important;
    width:min(320px,90%)!important;max-width:90%;max-height:min(65vh,520px);min-height:0;overflow:auto;flex-flow:column nowrap!important;
    align-items:stretch!important;justify-content:flex-start!important;gap:0!important;background:#faf8f1;color:#153b3e;border:1px solid #324f4b;border-radius:12px;
    box-shadow:0 12px 30px #243b3640;
  }
  :is(html.landing-page #main>.hero>header.header,html body>header.journal-header[data-pc-shared-header][data-pc-c13-header])[data-pc-mid-ready][data-pc-mid-open] > nav[data-pc-mid-nav] > :is(a,button):not([hidden]):not([data-pc-desktop-duplicate]):not([data-pc-desktop-current]) {
    box-sizing:border-box;min-block-size:42px;height:auto;min-width:0;width:100%;white-space:nowrap!important;justify-content:flex-start!important;align-items:center;margin:0!important;padding:10px 12px!important;
    color:#153b3e!important;border:0!important;border-radius:6px;background:transparent!important;text-align:start;box-shadow:none!important;flex:0 0 auto;
  }
  html [data-pc-mid-open][data-pc-mid-ready]>nav[data-pc-mid-nav]>:is(a,button)[hidden]:not([data-pc-c13-extra]) {display:none!important}
  html [data-pc-mid-open][data-pc-mid-ready]>nav[data-pc-mid-nav]>:is(a,button)[data-pc-desktop-current],
  html [data-pc-mid-open][data-pc-mid-ready]>nav[data-pc-mid-nav]>:is(a,button)[data-pc-desktop-duplicate] {display:none!important}
  [data-pc-mid-open] > nav[data-pc-mid-nav] > :is(a,button):is(:hover,:focus-visible) {background:#e7eee7!important}
  [data-pc-mid-ready] :focus-visible {outline:2px solid #584483;outline-offset:2px}
}
/* The trigger is inserted only in its desktop width range. No print control. */
@media print {.pc-mid-toggle{display:none!important}}

/* Just above the fixed disclosure cutoff, fit the same full desktop items
   on one line, including the signed-in Your Space and Sign out pair. */
@media screen and (1090px < width <= 1280px) {
 :is(html.landing-page #main>.hero>header.header>nav#nav, html body>header.journal-header[data-pc-shared-header]>nav[aria-label="Main navigation"]) {
  display:flex!important;flex-flow:row nowrap!important;align-items:center!important;column-gap:clamp(9px,1vw,13px)!important;
 }
 :is(html.landing-page #main>.hero>header.header>nav#nav, html body>header.journal-header[data-pc-shared-header]>nav[aria-label="Main navigation"]) > :is(a,button) {
  white-space:nowrap!important;flex-shrink:0!important;font-size:clamp(14px,1.17vw,15px)!important;
 }
}
