.atlas-reading-mode{display:flex;flex:0 0 auto;align-items:center;padding:3px;border:1px solid var(--gray-neutral-300,#d6d6d6);border-radius:8px;gap:2px;letter-spacing:0}
.atlas-reading-mode a{display:flex;align-items:center;justify-content:center;min-height:36px;padding:0 11px;font-family:inherit;font-size:13px;font-weight:600;line-height:1.3;white-space:nowrap;color:var(--brown-950,#250c01);text-decoration:none;border-radius:5px}
.atlas-reading-mode a[aria-current]{background:var(--brand-200,#fdefdc);color:var(--brown-950,#250c01);box-shadow:inset 0 0 0 1px rgba(244,82,0,.14)}
.atlas-reading-mode a:not([aria-current]):hover{background:var(--brand-200,#fdefdc)}
.atlas-reading-mode a:focus-visible{outline:2px solid #f45200;outline-offset:3px}
.dark-theme .atlas-reading-mode{border-color:#555}
.dark-theme .atlas-reading-mode a[aria-current]{background:#4a2b1b;color:#ffe1bf;box-shadow:inset 0 0 0 1px rgba(255,166,80,.24)}
.dark-theme .atlas-reading-mode a:not([aria-current]){color:#f5f5f5}
.dark-theme .atlas-reading-mode a:not([aria-current]):hover{background:#292929}

@media(min-width:1439px){
 .header__wrapper:has(.atlas-reading-mode){gap:18px}
 .header__wrapper:has(.atlas-reading-mode) .header-menu__list{gap:20px;padding-left:18px}
 .header__wrapper:has(.atlas-reading-mode) .header__wrap{min-width:0}
}
@media(max-width:1024px){
 .header__wrapper:has(.atlas-reading-mode){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;position:static}
 .header__wrapper:has(.atlas-reading-mode) .header__wrap{width:auto;min-width:0}
 .atlas-reading-mode{order:3;grid-column:1/-1;justify-content:center}
 .atlas-reading-mode a{flex:1}
 .header:has(.atlas-reading-mode) .header__panel{position:absolute;top:100%;height:calc(100dvh - 100% - var(--wp-admin--admin-bar--height,0px))}
 body.admin-bar .header:has(.atlas-reading-mode) .header__nav{max-height:none}
 body:has(.atlas-reading-mode) .page-builder{padding-top:calc(101px + var(--wp-admin--admin-bar--height,33px))}
}
@media(max-width:680px){
 .header__wrapper:has(.atlas-reading-mode) .header__logo{width:100%;max-width:153px;min-width:0}
 .header__wrapper:has(.atlas-reading-mode) .header__logo img{width:100%;object-fit:contain}
 body:has(.atlas-reading-mode) .page-builder{padding-top:calc(63px + var(--wp-admin--admin-bar--height,49px))}
}

/* At the top the absolute header already follows the admin-bar body offset. */
body.admin-bar .header:has(.atlas-reading-mode):not(.active){top:0}

/* On tablets the adjacent Detailed link already provides the Atlas-site action. */
@media(min-width:681px) and (max-width:1024px){
 .header:has(.atlas-reading-mode) .header__group .header__buttons > .b-btn--primary{display:none}
}
