/* Shared header alignment and touch targets. Load after the brand layer. */
body header .header-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0;
  padding-inline: max(var(--site-gutter, 24px), calc((100% - var(--site-max-width, 1480px)) / 2));
  padding-block: 12px !important;
  min-height: 76px !important;
  gap: 16px;
  flex-wrap: nowrap;
}

body header .header-main > .brand {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  gap: 10px;
  font-size: 27px;
  line-height: 1;
}

.brand .brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 36px;
  height: 28px;
  margin: 0;
}

.brand .brand-word { display: block; }
body header .header-scope { flex: 0 0 auto; min-height: 44px; margin: 0; }
body header .situation-chip {
  flex: 0 1 280px;
  max-width: 280px;
  min-height: 44px !important;
  margin-left: auto;
}
body header .situation-text { flex: 1; }
body header .header-main .nav-actions {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  gap: 10px;
}
body header .header-search,
body header .header-button,
body header .mobile-menu {
  min-height: 44px !important;
  padding: 9px 13px !important;
  font-size: 15px;
  line-height: 1.25;
}

body header .utility-inner { min-height: 44px; gap: 12px; }
body header .utility-links { min-height: 44px; width: auto; }
body header .utility-links a { min-height: 44px !important; }

body header .header-nav nav { min-height: 52px !important; }
body header .header-nav nav > a,
body header .header-nav nav > a:first-child {
  min-height: 52px !important;
  padding: 12px 18px !important;
}

@media (min-width: 1200px) {
  body header .header-scope { display: inline-flex; }
}

@media (max-width: 1199px) {
  body header .header-main { flex-wrap: wrap; gap: 10px 16px; }
  body header .header-scope { display: none; }
  body header .header-main .nav-actions { margin-left: auto; }
  body header .situation-chip {
    order: 5;
    flex: 1 1 100%;
    max-width: none;
    margin-left: 0;
  }
  body header .situation-label { display: none; }
}

@media (max-width: 900px) {
  body header .mobile-menu { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
  body header .header-nav nav { display: none; min-height: 0 !important; padding-block: 8px; }
  body header .header-nav nav.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  body header .header-nav nav > a,
  body header .header-nav nav > a:first-child {
    min-width: 0;
    min-height: 48px !important;
    padding: 12px !important;
    margin: 0;
    border-bottom: 0;
    font-size: 16px;
  }
}

@media (max-width: 720px) {
  body header .header-main { padding-block: 10px !important; gap: 8px; min-height: 0 !important; }
  body header .header-main > .brand { font-size: 24px; gap: 8px; }
  body header .brand .brand-mark { width: 32px; height: 25px; }
  body header .header-main .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    flex: 1 1 100%;
    width: 100%;
    gap: 8px;
    margin: 0;
    order: 4;
  }
  body header .header-main .nav-actions > * {
    min-width: 0;
    justify-content: center;
    grid-row: auto;
    grid-column: auto;
  }
  body header .header-search,
  body header .header-button,
  body header .mobile-menu { padding-inline: 8px !important; gap: 6px; font-size: 14px; }
  body header .header-search span,
  body header .header-button span { font-size: 14px; }
  body header .header-search .icon,
  body header .header-button .icon { width: 18px; height: 18px; }
  /* My checklist opens the same situation dialog; avoid a duplicate full row. */
  body header .situation-chip { display: none; }
  body header .utility-inner { justify-content: space-between; }
  body header .utility-claim { display: flex; min-width: 0; font-size: 12px; line-height: 1.35; gap: 6px; }
  body header .utility-claim .icon { width: 16px; height: 16px; }
  body header .utility-links { flex: 0 0 auto; width: auto; }
  body header .utility-extra { display: none; }
  body header .utility-links .u-long { display: none; }
  body header .utility-links .u-short { display: inline; }
}

@media print {
  body header { display: none !important; }
}
