/* Header only: retain existing cards and page content. */
.dbae-header {
  width: 100%;
  max-width: none;
  margin-block: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e7e7e7;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
}
body.admin-bar .dbae-header { top: 32px; }
.dbae-header *, .dbae-header *::before, .dbae-header *::after { box-sizing: border-box; }
.dbae-header .dbae-header-inner { max-width: 1260px; width: calc(100% - 32px); min-height: 82px; margin-inline: auto; }
.dbae-header .dbae-brand { flex-shrink: 0; }
.dbae-header .dbae-brand-name { font: 700 1.45rem/1.2 Georgia, serif; }
.dbae-header .dbae-brand-sub { font-size: .72rem; line-height: 1.5; }
.dbae-header .dbae-nav { min-width: 0; }
.dbae-header .dbae-nav > a { white-space: nowrap; }
.dbae-header .dbae-nav a, .dbae-header button { min-height: 44px; }
.dbae-header .dbae-nav > a { display: inline-flex; align-items: center; }
.dbae-header button:focus-visible, .dbae-header a:focus-visible { outline: 3px solid #ad7629; outline-offset: 4px; }
.dbae-header .dbae-mega-panel { max-width: calc(100vw - 32px); }
html { scroll-padding-top: 110px; }
/* Collapse early enough for all ten top-level items. */
@media (max-width: 1280px) {
  .dbae-header .dbae-menu-toggle { display: block !important; }
  .dbae-header #dbae-primary-nav {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 130px);
    overflow-y: auto;
    padding: 18px;
    margin: 0;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
  }
  .dbae-header #dbae-primary-nav.is-open { display: flex !important; }
  .dbae-header #dbae-primary-nav .dbae-mega { position: static; }
  .dbae-header #dbae-primary-nav .dbae-mega-panel {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    transform: none !important;
    margin-top: 8px;
    max-height: none;
  }
  .dbae-header .dbae-mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .dbae-header .dbae-mega-grid a { white-space: normal; overflow-wrap: break-word; }
}
@media (max-width: 600px) {
  .dbae-header .dbae-mega-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .dbae-header .dbae-brand-sub { font-size: .64rem; letter-spacing: .08em; }
  .dbnl-reader .dbnl-hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .dbnl-reader .dbnl-faq summary { padding: 16px; overflow-wrap: anywhere; }
  .dbnl-reader .dbnl-faq > div { padding-inline: 16px; overflow-wrap: anywhere; }
}
@media (max-width: 782px) { body.admin-bar .dbae-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .dbae-header { top: 0; } }
