/* Shared screen header for the hub and every tool. Keep report/print branding local. */
.tool-header {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 16px clamp(18px, 3vw, 36px);
  border-bottom: 6px solid #f7bd23;
  background: linear-gradient(135deg, #003f66, #005f99);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 63, 102, .18);
  font-family: Calibri, Arial, sans-serif;
  position: relative;
  z-index: 10;
}
.tool-header__brand { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 28px); min-width: 0; }
.tool-header__logo-link { display: block; flex: 0 0 auto; max-width: 100%; }
.tool-header__logo-link:focus-visible { outline: 3px solid #f7bd23; outline-offset: 3px; }
.tool-header__logo { display: block; flex: 0 0 auto; width: clamp(210px, 27vw, 370px); height: auto; max-height: 72px; object-fit: contain; }
.tool-header__copy { display: grid; gap: 5px; min-width: 0; padding-left: clamp(14px, 2vw, 22px); border-left: 1px solid rgba(255,255,255,.38); }
.tool-header__eyebrow { margin: 0; color: #ffe7a3; font-size: .76rem; font-weight: 900; letter-spacing: 0; line-height: 1.2; text-transform: uppercase; }
.tool-header h1 { margin: 0; max-width: none; color: #fff; font: 700 clamp(1.35rem, 2vw, 1.9rem)/1.15 Calibri, Arial, sans-serif; letter-spacing: 0; text-transform: none; }
.tool-header p { margin: 0; color: rgba(255,255,255,.86); font-size: .94rem; line-height: 1.35; }
.tool-header p:empty { display: none; }
.tool-header__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.tool-header__button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; font: 700 .94rem/1.2 Calibri, Arial, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; }
.tool-header__button:hover:not(:disabled) { background: rgba(255,255,255,.16); }
.tool-header__button:disabled { opacity: .55; cursor: not-allowed; }
.tool-header__button:focus-visible { outline: 3px solid #f7bd23; outline-offset: 3px; }
.tool-header__button svg { flex: 0 0 auto; }
html { scroll-padding-top: 16px; }
main:focus { outline: none; }
@media (max-width: 1100px) { .tool-header { flex-wrap: wrap; } .tool-header__actions { flex-wrap: wrap; } }
@media (max-width: 820px) {
  .tool-header { display: grid; gap: 16px; position: static; }
  .tool-header__brand { display: grid; gap: 12px; }
  .tool-header__logo { width: min(100%, 320px); max-height: 62px; }
  .tool-header__copy { padding-left: 0; border-left: 0; }
  .tool-header__actions { flex-wrap: wrap; }
}
@media (max-width: 520px) { .tool-header { padding: 14px 16px; } .tool-header__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .tool-header__button { white-space: normal; } }
@media print { .tool-header { display: none !important; } }

/* Use the user's high-contrast palette for text on colored callouts. */
@media (forced-colors: active) {
  .tool-header { background: Canvas; color: CanvasText; border-color: CanvasText; box-shadow: none; }
  .tool-header__copy { border-color: CanvasText; }
  .tool-header__eyebrow, .tool-header h1, .tool-header p { color: CanvasText; }
  .tool-header__button { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
  .tool-header__button:focus-visible, .tool-header__logo-link:focus-visible { outline-color: Highlight; }
  button[aria-pressed="true"] { border-style: double !important; border-width: 3px !important; border-color: ButtonText !important; }
  .tool-header__logo, .brand-logo-white { forced-color-adjust: none; background: #003f66; }
  #status, #aeriesQuery, .d-sub, .site-footer, .footer-inner, .footer-copy, .footer-copy > span {
    color: CanvasText !important;
    background-color: Canvas !important;
    opacity: 1;
    box-shadow: none;
  }
}
