:root { --site-header-height: 100px; }
html { scroll-padding-top: calc(var(--site-header-height) + 12px); }
body .site-header { position: sticky; top: 0; z-index: 1100; background: var(--paper); }
/* Keep the navigation drawer above its backdrop despite the header's stacking context. */
body.mobile-nav-open .site-header { z-index: 1800; }
.test-database-header { position: sticky; top: 0; z-index: 1100; background: var(--paper); }
body.mobile-nav-open .test-database-header { z-index: 1800; }
body .test-database-header .site-header { position: static; }
.test-database-banner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 16px; padding: 8px 16px; background: #ffdc65; color: #332600; border-bottom: 2px solid #997000; font-size: 13px; line-height: 1.4; text-align: center; }
.test-database-banner strong { font-weight: 800; }
.test-database-banner span { min-width: 0; overflow-wrap: anywhere; }
.skip-link { position: fixed; z-index: 1900; }
body .help-sidebar { top: calc(var(--site-header-height) + 20px); max-height: calc(100dvh - var(--site-header-height) - 40px); }
body .help-topic-nav { max-height: calc(100dvh - var(--site-header-height) - 68px); }
body .admin-mobile-toolbar { top: var(--site-header-height); }
body .editorial-save { top: calc(var(--site-header-height) + 25px); }
@media(min-width:1200px) {
  body .admin-sidebar { top: calc(var(--site-header-height) + 16px); max-height: calc(100dvh - var(--site-header-height) - 32px); }
}
@media(max-width:991px) {
  body .help-sidebar { top: calc(var(--site-header-height) + 8px); max-height: none; }
  body .help-topic-nav { max-height: calc(100dvh - var(--site-header-height) - 180px); }
}
@media(max-width:760px) { :root { --site-header-height: 84px; } }
.site-header .brand { min-width: 0; }
.site-header .brand img.brand-logo { width: 240px; height: auto; }
.footer-brand { display: inline-block; max-width: 100%; }
.footer-brand img { width: 200px; height: auto; }
.more-menu { position: relative; }
.more-menu summary { cursor: pointer; white-space: nowrap; padding: 10px 0; }
.more-menu summary.is-current { color: var(--wine); }
.more-menu > div { position: absolute; right: 0; top: 100%; min-width: 235px; max-width: calc(100vw - 40px); padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 8px 24px #2222; z-index: 1500; }
.site-header .more-menu a { display: block; padding: 10px; font-size: 13px; white-space: normal; }
.more-menu a:hover { background: #eee9df; }
.more-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.site-footer nav { flex-wrap: wrap; gap: 14px 24px; }
.site-footer > div { flex: 0 1 320px; }
.site-footer nav { flex: 1 1 430px; }
/* Make room for the complete navigation, including signed-in users. */
@media (min-width: 761px) and (max-width: 1440px) {
  .site-header { flex-wrap: wrap; gap: 16px; }
  .site-header .brand { margin-right: auto; }
  .header-actions { order: 2; }
  .site-header #main-nav { order: 3; width: 100%; justify-content: center; gap: 26px; margin-top: 4px; }
}
@media (max-width: 760px) {
  .site-header .brand img.brand-logo { width: 200px; }
  .more-menu summary { padding: 12px 5px; }
  .more-menu > div { position: static; min-width: 0; max-width: none; box-shadow: none; margin-bottom: 10px; }
}
