/* WordPress integration layer (unlayered): admin bar offsets and WP markup fixes. Owned by the globals rank. */

/*
 * Admin bar: the header is position:fixed and the menu panel is absolutely positioned inside it,
 * so shifting the header shifts the menu; the menu's max-height loses the admin bar height too.
 * Admin bar height: 32px above 782px, 46px at 782px and below (where WP makes it absolute
 * under 600px; it is kept fixed here so the offset stays valid while scrolling).
 */
.admin-bar.redesign .rd-header { top:calc(50px + 32px); }
.admin-bar.redesign .rd-header .rd-menu { max-height:calc(100dvh - 128px - 32px); }

@media (max-width:1180px) and (min-width:701px) {
  .admin-bar.redesign .rd-header { top:calc(30px + 32px); }
}

@media screen and (max-width:782px) {
  .admin-bar.redesign .rd-header { top:calc(30px + 46px); }
  .admin-bar.redesign .rd-header .rd-menu { max-height:calc(100dvh - 128px - 46px); }
}

@media (max-width:700px) {
  .admin-bar.redesign .rd-header { top:calc(16px + 46px); }
  .admin-bar.redesign .rd-header .rd-menu { max-height:calc(100dvh - 95px - 46px); }
}

@media screen and (max-width:600px) {
  .admin-bar #wpadminbar { position:fixed; }
}

