/* Approved two-row header and original-menu sidebar. Both read the same Janeway data. */
.scx-header-brandband{background:var(--scx-brand);color:var(--scx-brand-ink,#fff);}
.scx-header-primary{min-height:54px;display:flex;align-items:center;gap:24px;}
.scx-theme .scx-header .scx-header-primary .scx-brand{padding:0;}
.scx-theme .scx-header .scx-header-primary .scx-brand img{width:165px;max-height:48px;object-fit:contain;}
.scx-theme .scx-header .scx-header-primary .scx-journal-name{font-size:24px;font-weight:600;padding-left:24px;border-color:currentColor;min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis;}
.scx-theme .scx-header .scx-header-primary .scx-tools{margin-left:auto;gap:24px;padding-left:24px;border-color:currentColor;flex-shrink:0;}
.scx-theme .scx-header .scx-header-primary .scx-tools a,.scx-theme .scx-header .scx-header-primary .scx-tools button{color:inherit;font-size:18px;padding:0;text-decoration:none;}
.scx-header-secondary{background:var(--scx-paper);}
.scx-site-menu{display:flex;align-items:stretch;gap:30px;min-height:52px;flex-wrap:wrap;}
.scx-site-menu>.scx-top-link,.scx-nav-group>summary{font-size:20px;line-height:28px;padding:10px 4px 11px;color:var(--scx-ink);text-decoration:none;border-bottom:3px solid transparent;}
.scx-site-menu>.scx-nav-action{color:var(--scx-brand);}
.scx-site-menu>.scx-top-link[aria-current],.scx-nav-group[data-current]>summary{color:var(--scx-brand);border-bottom-color:var(--scx-brand);}
.scx-nav-group{position:relative;}
.scx-nav-group>summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;}
.scx-nav-group>summary::-webkit-details-marker,.scx-sidebar-group>summary::-webkit-details-marker,.scx-introduction-more>summary::-webkit-details-marker{display:none;}
.scx-nav-group[open]>summary{color:var(--scx-brand);}
.scx-nav-group[open]>summary>.bi,.scx-introduction-more[open]>summary>.bi{transform:rotate(180deg);}
.scx-nav-dropdown{position:absolute;z-index:60;top:100%;left:0;width:350px;max-width:calc(100vw - 40px);margin:0;padding:8px;list-style:none;background:var(--scx-paper);border:1px solid var(--scx-rule);box-shadow:0 3px 8px #0002;}
.scx-nav-dropdown li{margin:0;}
.scx-nav-dropdown a{display:flex;gap:18px;justify-content:space-between;align-items:baseline;color:var(--scx-ink);font-size:20px;line-height:26px;padding:8px 12px;text-decoration:none;border-bottom:1px solid var(--scx-rule);white-space:normal;}
.scx-nav-dropdown li:last-child a{border-bottom:0;}
.scx-nav-dropdown .bi,.scx-journal-menu .bi{color:var(--scx-brand);flex-shrink:0;font-size:.88em;}
.scx-nav-dropdown a:hover,.scx-nav-dropdown a:focus-visible{background:var(--scx-quiet);text-decoration:none;}
.scx-nav-dropdown a[aria-current]{color:var(--scx-brand);font-weight:600;}
.scx-journal-menu{margin-top:18px;border-top:1px solid var(--scx-rule);}
.scx-sidebar-group{padding:12px 0;border-bottom:1px solid var(--scx-rule);}
.scx-sidebar-group>summary{display:flex;justify-content:space-between;align-items:center;gap:18px;cursor:pointer;list-style:none;background:#faf8f3;padding:4px 6px;font-size:24px;font-weight:700;line-height:1.3;}
.scx-sidebar-group ul{list-style:none;margin:0;padding:0;}
.scx-sidebar-group li{margin:0;}
.scx-sidebar-group a{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:8px 6px;color:var(--scx-brand);font-size:19px;line-height:1.3;text-decoration:none;border-bottom:1px solid var(--scx-rule);}
.scx-sidebar-group li:last-child a{border-bottom:0;}
.scx-sidebar-group a:hover span,.scx-side-action:hover span{text-decoration:underline;text-underline-offset:4px;}
.scx-side-action{display:flex;align-items:center;justify-content:center;gap:14px;border:1px solid var(--scx-brand);border-radius:5px;padding:7px 12px;margin-top:12px;text-decoration:none;font-size:20px;line-height:1.35;}
.scx-side-action.scx-button-primary{color:#fff;}
@media(max-width:1200px){
 .scx-site-menu{gap:20px;}
 .scx-site-menu>.scx-top-link,.scx-nav-group>summary{font-size:18px;}
 .scx-theme .scx-header .scx-header-primary .scx-journal-name{font-size:21px;}
 .scx-theme .scx-header .scx-header-primary .scx-tools{gap:16px;padding-left:16px;}
 .scx-theme .scx-header .scx-header-primary .scx-tools a{font-size:16px;}
}
@media(max-width:900px){
 .scx-header-primary{flex-wrap:wrap;gap:12px;padding-block:10px;}
 .scx-theme .scx-header .scx-header-primary .scx-brand img{width:120px;}
 .scx-theme .scx-header .scx-header-primary .scx-journal-name{font-size:18px;max-width:calc(100% - 190px);padding-left:12px;}
 .scx-theme .scx-header .scx-header-primary .scx-tools{width:100%;justify-content:flex-end;gap:18px;border:0;padding:0;margin:0;}
 .scx-theme .scx-header .scx-header-primary .scx-tools a{padding:6px;min-width:36px;text-align:center;}
 .scx-site-menu{display:none;min-height:0;padding-block:8px;gap:0;}
 .scx-site-menu[data-open="true"]{display:flex;flex-direction:column;}
 .scx-nav-group>summary,.scx-site-menu>.scx-top-link{padding:10px 0;font-size:18px;}
 .scx-nav-dropdown{position:static;width:auto;max-width:none;box-shadow:none;margin-bottom:10px;border:0;border-left:2px solid var(--scx-brand);}
 .scx-nav-dropdown a{font-size:18px;}
}

.scx-sidebar-group>summary>.bi{transform:rotate(-90deg);}
.scx-sidebar-group[open]>summary>.bi{transform:none;}

.scx-header-brandband :focus-visible{outline-color:var(--scx-brand-ink,#fff);}

/* Keep the approved header at two rows on compact desktop screens. */
@media(min-width:901px) and (max-width:1100px){.scx-site-menu{gap:14px;flex-wrap:nowrap}.scx-site-menu>.scx-top-link,.scx-nav-group>summary{font-size:16px;line-height:26px;padding-inline:0;white-space:nowrap}.scx-nav-group>summary{gap:8px}.scx-theme .scx-header .scx-header-primary .scx-tools{gap:16px}}
