/* BGP Project Attribution — shared header component. */
:root{--bgp-project-green:#76c043;--bgp-project-green-dark:#5f9f32;--bgp-project-ink:#fff}
.bgp-project,.bgp-project-button,.bgp-return{position:static!important;inset:auto!important;z-index:auto;display:inline-flex;align-items:center;justify-content:center;gap:.45rem;flex:0 0 auto;min-height:40px;max-width:100%;box-sizing:border-box;padding:.58rem .9rem;border:1px solid rgba(70,116,35,.25);border-radius:999px;background:var(--bgp-project-green)!important;color:#fff!important;text-decoration:none!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:clamp(.68rem,1.6vw,.78rem);line-height:1;font-weight:850;letter-spacing:.01em;white-space:nowrap;box-shadow:0 2px 8px rgba(45,82,24,.14);-webkit-tap-highlight-color:transparent;transition:transform .16s ease,background-color .16s ease,box-shadow .16s ease}
.bgp-project:hover,.bgp-project-button:hover,.bgp-return:hover{background:var(--bgp-project-green-dark)!important;transform:translateY(-1px);box-shadow:0 4px 12px rgba(45,82,24,.2)}
.bgp-project:focus-visible,.bgp-project-button:focus-visible,.bgp-return:focus-visible{outline:3px solid rgba(118,192,67,.42);outline-offset:3px}
.bgp-project .bgp-dot{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#fff;display:inline-block}
header .bgp-project,header .bgp-project-button,header .bgp-return{margin-left:auto;position:static!important;transform:none}
header .header-right,header .header-tools,header .auth-nav,header .auth-links{align-items:center}
@media(max-width:700px){.bgp-project,.bgp-project-button,.bgp-return{min-height:36px;padding:.5rem .72rem;font-size:.68rem;gap:.35rem}.bgp-project .bgp-dot{width:6px;height:6px;flex-basis:6px}header{gap:10px}header .bgp-project,header .bgp-project-button,header .bgp-return{margin-left:auto;position:static!important;transform:none}}
@media(max-width:460px){header{overflow:visible}.bgp-project,.bgp-project-button,.bgp-return{min-height:34px;padding:.45rem .62rem;font-size:.64rem}header{flex-wrap:wrap}header .bgp-project,header .bgp-project-button,header .bgp-return{margin-left:auto;position:static!important;transform:none}}
@media(prefers-reduced-motion:reduce){.bgp-project,.bgp-project-button,.bgp-return{transition:none}}

/* Structural rule: the attribution must be a child of the header's flex/nav row.
   It is never positioned against the viewport and never allowed to cover content. */
.site-header > .header-inner > .bgp-project,.site-header > .nav > .bgp-project,.top > .nav > .bgp-project,.navin > .bgp-project{position:static!important;align-self:center;flex:0 1 auto;margin-left:auto;}
@media(max-width:700px){.site-header > .header-inner > .bgp-project,.site-header > .nav > .bgp-project,.top > .nav > .bgp-project,.navin > .bgp-project{max-width:45vw;overflow:hidden;text-overflow:ellipsis;}}


/* ImpactScout v5.0.2 header hardening — 2026-09-04 */
.site-header .header-inner{
  width:min(1380px,100%);
  min-height:68px;
  padding:10px clamp(14px,2.5vw,28px);
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:10px;
}
.site-header .brand{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;min-width:0;}
.site-header .brand img{width:32px;height:32px;flex:0 0 32px;}
.site-header .brand>span{font-size:20px;line-height:1;white-space:nowrap;}
.site-header .main-nav{flex:1 1 auto;min-width:0;display:flex;align-items:center;justify-content:center;gap:1px;overflow-x:auto;scrollbar-width:none;}
.site-header .main-nav::-webkit-scrollbar{display:none;}
.site-header .main-nav a{padding:7px 7px;font-size:12px;}
.site-header>.header-inner>.bgp-project{
  order:4;
  margin-left:auto!important;
  flex:0 0 auto!important;
  min-height:38px;
  padding:.54rem .78rem;
  font-size:.68rem;
  position:static!important;
  transform:none!important;
}
@media (max-width:1180px){
  .site-header .main-nav{justify-content:flex-start;}
  .site-header .main-nav a{font-size:11.5px;padding:7px 6px;}
}
@media (max-width:900px){
  .site-header .header-inner{flex-wrap:wrap;row-gap:7px;}
  .site-header .brand{order:1;}
  .site-header .mobile-nav-toggle{order:2;margin-left:auto;}
  .site-header>.header-inner>.bgp-project{order:3;margin-left:0!important;}
  .site-header .main-nav{order:4;flex:1 0 100%;width:100%;justify-content:flex-start;overflow-x:auto;padding-bottom:2px;}
  .site-header .main-nav a{font-size:12px;}
  .site-header .header-tools{order:5;flex:1 0 100%;width:100%;}
}
@media (max-width:520px){
  .site-header .header-inner{padding:9px 12px;}
  .site-header .brand>span{font-size:17px;}
  .site-header .brand img{width:30px;height:30px;flex-basis:30px;}
  .site-header>.header-inner>.bgp-project{min-height:35px;padding:.5rem .62rem;font-size:.6rem;}
  .site-header .mobile-nav-toggle{padding:6px 9px;}
}


/* ImpactScout V5.1.17 — first-class Health page. */
.health-hero{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px;border-color:#d7e7f0;background:linear-gradient(135deg,#f7fcff,#eef8fd)}
.health-hero.health-ok{border-color:#c9e6d8}.health-hero.health-attention{border-color:#ead9b8}
.health-hero h2{margin:4px 0 6px}.health-status-badge{display:flex;align-items:center;gap:9px;padding:10px 13px;border:1px solid var(--line);border-radius:999px;background:#fff;font-weight:800;white-space:nowrap}
.health-dashboard-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
.health-dashboard-stats .stat-card strong{font-size:24px;line-height:1.15;word-break:break-word}
.health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:20px}
.health-grid .card h2{margin:4px 0 10px}.health-grid .card p{margin:7px 0}.health-check-list{display:grid;gap:7px;margin-top:12px}.health-check-list>div{display:grid;grid-template-columns:12px 1fr auto;gap:9px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
.health-warning{padding:10px 12px;border-radius:9px;background:#fff8e8;color:#74530d}.health-good{padding:10px 12px;border-radius:9px;background:#eef9f3;color:#216a49}.health-warning-card{border-color:#ead9b8;background:#fffaf0}.health-meter{height:10px;background:#edf1f4;border-radius:99px;overflow:hidden;margin:14px 0 9px}.health-meter span{display:block;height:100%;background:#1a9a68;border-radius:99px;min-width:0}
@media(max-width:720px){.health-hero{display:block}.health-status-badge{display:inline-flex;margin-top:12px}.health-dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.health-grid{grid-template-columns:1fr}.health-dashboard-stats .stat-card strong{font-size:21px}}

/* ImpactScout V5.1.17 — compact mobile navigation.
   Keep the header compact on phones: the menu opens as a readable grid
   instead of a tall single-column list that pushes the dashboard far below. */
@media (max-width:720px){
  .site-header .header-inner{
    flex-direction:row;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    padding:10px 16px;
  }
  .site-header .brand{
    flex:1 1 auto;
    min-width:0;
  }
  .site-header .mobile-nav-toggle{
    display:inline-flex;
    order:2;
    align-items:center;
    justify-content:center;
    width:46px;
    height:42px;
    margin-left:auto;
    padding:0;
    border:1px solid rgba(255,255,255,.12);
    border-radius:10px;
    line-height:1;
  }
  .site-header > .header-inner > .bgp-project{
    order:3;
    margin-left:0;
    max-width:none;
  }
  .site-header .main-nav,
  .site-header .main-nav.is-open{
    order:4;
    flex:1 0 100%;
    width:100%;
    display:none;
    box-sizing:border-box;
    overflow:visible;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:stretch;
    justify-content:stretch;
    gap:6px;
    padding:8px 0 2px;
    border-top:1px solid rgba(255,255,255,.10);
  }
  .site-header .main-nav.is-open{display:grid;}
  .site-header .main-nav a{
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:8px 7px;
    border-radius:9px;
    background:rgba(255,255,255,.055);
    text-align:center;
    font-size:13px;
    line-height:1.15;
    white-space:normal;
  }
  .site-header .main-nav a:hover,
  .site-header .main-nav a.active{
    background:rgba(255,255,255,.13);
  }
  .site-header .main-nav{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media (max-width:430px){
  .site-header .header-inner{padding-left:12px;padding-right:12px;}
  .site-header .mobile-nav-toggle{width:42px;height:40px;}
  .site-header .main-nav{gap:5px;padding-top:7px;}
  .site-header .main-nav a{min-height:38px;font-size:12px;padding:7px 5px;}
  .site-header > .header-inner > .bgp-project{
    min-height:34px;
    padding:.45rem .58rem;
    font-size:.63rem;
  }
}


/* ImpactScout V5.1.19 — production dashboard and responsive hardening. */
.dashboard-hero-modern,
.dashboard-welcome,
.dashboard-top-grid,
.dashboard-grid,
.funding-radar-modern,
.dashboard-stats-modern,
.scout-status-modern,
.dashboard-health,
#tracked {
  min-width: 0;
}
.dashboard-hero-modern { overflow: hidden; }
.dashboard-hero-modern .hero-copy { min-width: 0; }
.dashboard-hero-modern h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: .98;
}
.dashboard-hero-modern p { max-width: 58ch; }
.dashboard-welcome {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(260px,.9fr);
  gap:18px;
  margin:18px 0;
}
.dashboard-welcome-card,
.dashboard-next {
  min-width:0;
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
  box-sizing:border-box;
  background:#fff;
}
.dashboard-welcome-card {
  background:linear-gradient(135deg,#f4fbf6,#ffffff);
}
.dashboard-welcome-card h2 { margin:5px 0 8px; }
.dashboard-welcome-card p { max-width:70ch; margin:0 0 15px; }
.dashboard-welcome-actions { display:flex; flex-wrap:wrap; gap:8px; }
.dashboard-next { background:#f8fafb; }
.dashboard-next h3 { margin:5px 0 7px; }
.dashboard-next p { margin:0 0 8px; }
.dashboard-next ul { margin:0; padding-left:19px; }
.dashboard-next li { margin:5px 0; }
.scout-status-modern { min-width:0; }
.scout-status-modern .scout-status-main { min-width:0; }
.scout-status-modern .scout-status-main > div { min-width:0; }
.scout-status-modern .small-text { overflow-wrap:anywhere; }
@media (max-width:900px) {
  .dashboard-welcome { grid-template-columns:1fr; }
  .dashboard-hero-modern { grid-template-columns:1fr; }
}
@media (max-width:720px) {
  .dashboard-hero-modern { padding:22px 18px; }
  .dashboard-hero-modern h1 { font-size:clamp(2rem,10vw,3rem); }
  .dashboard-welcome { gap:12px; margin:12px 0; }
  .dashboard-welcome-card, .dashboard-next { padding:16px; border-radius:13px; }
  .dashboard-welcome-actions .button { flex:1 1 auto; text-align:center; }
  .scout-status-modern { align-items:flex-start; }
  .scout-status-modern .scout-status-metrics { flex-wrap:wrap; }
}
@media (max-width:430px) {
  .dashboard-hero-modern { padding:19px 15px; }
  .dashboard-hero-modern h1 { font-size:clamp(1.85rem,9.5vw,2.55rem); }
  .dashboard-hero-modern .hero-actions { flex-direction:column; align-items:stretch; }
  .dashboard-hero-modern .hero-actions .button { width:100%; box-sizing:border-box; text-align:center; }
  .dashboard-welcome-card, .dashboard-next { padding:14px; }
}

/* ImpactScout V5.1.26 — simplified navigation + actionable Quick View. */
.site-header .main-nav{overflow:visible;justify-content:center;gap:3px}
.site-header .main-nav > a{white-space:nowrap}
.nav-more{position:relative;flex:0 0 auto}
.nav-more summary{list-style:none;cursor:pointer;display:flex;align-items:center;min-height:34px;padding:7px 9px;border-radius:8px;font-size:12px;font-weight:700;color:inherit;white-space:nowrap}
.nav-more summary::-webkit-details-marker{display:none}
.nav-more summary::after{content:'⌄';font-size:11px;margin-left:5px;opacity:.7}
.nav-more[open] summary{background:rgba(255,255,255,.10)}
.nav-more-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:50;display:grid;grid-template-columns:1fr 1fr;gap:4px;min-width:260px;padding:8px;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:#102a43;box-shadow:0 12px 30px rgba(0,0,0,.22)}
.nav-more-menu a{display:flex;align-items:center;min-height:36px;padding:7px 9px;border-radius:8px;color:#fff!important;text-decoration:none;font-size:12px;white-space:nowrap}
.nav-more-menu a:hover{background:rgba(255,255,255,.10)}
.brief-item-link{display:flex;align-items:center;gap:10px;padding:10px 8px;border-radius:10px;color:inherit;text-decoration:none;transition:background-color .15s ease,transform .15s ease}
.brief-item-link:hover{background:#f5f8fa;transform:translateX(2px)}
.brief-item-link p{margin:0}
.brief-item-link small{display:block}
@media(max-width:900px){
  .site-header .main-nav{justify-content:flex-start}
  .nav-more-menu{right:auto;left:0}
}
@media(max-width:720px){
  .site-header .main-nav{display:none;overflow:visible}
  .site-header .main-nav.is-open{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));}
  .site-header .main-nav > a{min-height:40px}
  .nav-more{display:block}
  .nav-more summary{justify-content:center;min-height:40px;background:rgba(255,255,255,.055);font-size:13px}
  .nav-more-menu{position:static;grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;margin-top:2px;box-shadow:none;background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.08)}
  .nav-more-menu a{justify-content:center;white-space:normal;text-align:center}
}
@media(max-width:430px){
  .site-header .main-nav.is-open{grid-template-columns:repeat(2,minmax(0,1fr));}
  .nav-more-menu{grid-template-columns:1fr 1fr}
}

/* ImpactScout V5.1.27 — concise review UX + forwarding */
.scout-brief-detail{
  border-left:4px solid #2f855a;
  padding-left:20px;
}
.scout-brief-detail h2{margin-bottom:8px}
.scout-brief-detail h3{font-size:1rem;margin:22px 0 6px}
.scout-brief-detail p{max-width:78ch}
.source-description{margin-top:14px}
.source-description summary{cursor:pointer;font-weight:700;padding:4px 0}
.source-description summary:hover{text-decoration:underline}
.forward-card{max-width:760px;margin:0 auto}
.forward-preview{margin:22px 0;padding:18px;border:1px solid var(--border,#d9e2ec);border-radius:12px;background:var(--surface-muted,#f7f9fb)}
.forward-preview strong,.forward-preview span{display:block}
.forward-preview span{margin-top:5px;color:var(--muted,#5b6775);font-size:.92rem}
.forward-preview p{margin:12px 0 0}
.stack-form p{margin:0 0 16px}
.stack-form label{display:block;font-weight:700}
.stack-form input,.stack-form textarea{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:11px 12px;border:1px solid #cbd5e1;border-radius:9px;font:inherit}
.stack-form textarea{resize:vertical}
@media (max-width:640px){
  .scout-brief-detail{padding-left:14px}
  .forward-card{margin:0}
  .forward-preview{padding:14px}
}

/* ImpactScout V5.1.31 — Funding filter alignment and visual hierarchy. */
.funding-filter-card{padding:20px 22px}
.filter-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:16px}
.filter-heading h2{margin:4px 0 0;font-size:1.2rem}
.filter-result-hint{font-size:.88rem;color:var(--muted,#5b6775);white-space:nowrap}
.funding-filters{margin:0}
.funding-filter-grid{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(280px,1.45fr);gap:14px;align-items:end}
.funding-filter-grid label{display:flex;flex-direction:column;gap:7px;margin:0;font-weight:750;min-width:0}
.funding-filter-grid label>span{display:block;min-height:20px;font-size:.9rem;line-height:1.2;color:#294b6a}
.funding-filter-grid select{width:100%;height:42px;box-sizing:border-box;margin:0;padding:0 12px;border:1px solid #b9cbe0;border-radius:9px;background:#fff;color:#263f59;font:inherit}
.funding-filter-grid select:focus{outline:3px solid rgba(31,112,145,.16);border-color:#5b87a8}
.filter-help{margin-top:8px;font-size:.78rem;line-height:1.4;color:var(--muted,#5b6775)}
.filter-actions{display:flex;align-items:center;gap:8px;margin-top:14px}
.filter-actions .button{min-height:40px}
@media(max-width:760px){
  .funding-filter-card{padding:17px}
  .filter-heading{display:block}
  .filter-result-hint{display:block;margin-top:5px;white-space:normal}
  .funding-filter-grid{grid-template-columns:1fr;gap:12px}
  .funding-filter-grid label>span{min-height:0}
  .filter-actions{margin-top:12px}
  .filter-actions .button{flex:1 1 auto;text-align:center}
}


/* V8.5.28 — final header/navigation QA. Five primary links remain visible;
   secondary tools live behind one reliable hamburger menu. The organization
   logo is a real external link and is kept inside the header flow so it can
   never overlap the navigation or page content. */
.site-header { position:sticky; top:0; z-index:1000; }
.site-header > .header-inner {
  width:min(1380px,100%);
  min-height:72px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:14px;
  padding:10px clamp(12px,2.2vw,28px);
  position:relative;
}
.site-header .brand { flex:0 0 auto; min-width:0; display:inline-flex; align-items:center; gap:8px; }
.site-header .brand img { width:34px; height:34px; flex:0 0 34px; }
.site-header .brand > span { white-space:nowrap; font-size:20px; line-height:1; }
.site-header .main-nav {
  flex:1 1 auto; min-width:0; display:flex; align-items:center; justify-content:center;
  gap:2px; overflow:visible;
}
.site-header .main-nav a {
  flex:0 0 auto; min-width:0; padding:9px 10px; border-radius:9px;
  font-size:12px; line-height:1.15; white-space:nowrap; text-decoration:none;
}
.site-header .mobile-nav-toggle {
  display:inline-flex; flex:0 0 42px; width:42px; height:40px;
  align-items:center; justify-content:center; flex-direction:column; gap:5px;
  margin:0; padding:0; border:1px solid rgba(255,255,255,.16);
  border-radius:10px; background:rgba(255,255,255,.08); color:#fff; cursor:pointer;
}
.site-header .mobile-nav-toggle span { display:block; width:18px; height:2px; border-radius:99px; background:currentColor; }
.site-header .org-logo-link {
  position:relative !important; inset:auto !important; transform:none !important;
  order:4; flex:0 0 auto; width:148px; height:52px; padding:3px; box-sizing:border-box;
  display:flex !important; align-items:center; justify-content:center; gap:3px;
  margin:0 !important; border:1px solid rgba(255,255,255,.25); border-radius:12px;
  background:#fff; text-decoration:none !important; overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,.14);
}
.site-header .org-logo-link img { width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain; display:block; }
.site-header .org-logo-link .external-link-icon {
  position:absolute; right:6px; top:5px; width:18px; height:18px; border-radius:5px;
  display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.94);
  color:#17324d; font-size:15px; font-weight:900; line-height:1; box-shadow:0 1px 3px rgba(0,0,0,.18);
}
.site-header .bgp-org-logo img { background:#fff; }
.site-header .idic-org-logo img { background:#0b78ad; }
.site-header .nav-menu {
  position:absolute; right:clamp(12px,2.2vw,28px); top:calc(100% + 8px); width:min(620px,calc(100vw - 24px));
  padding:14px; box-sizing:border-box; border:1px solid rgba(255,255,255,.14);
  border-radius:14px; background:rgba(13,31,53,.98); color:#fff;
  box-shadow:0 18px 40px rgba(0,0,0,.24);
}
.site-header .nav-menu[hidden] { display:none !important; }
.site-header .nav-menu-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:2px 2px 11px; border-bottom:1px solid rgba(255,255,255,.12); }
.site-header .nav-menu-head strong { font-size:12px; letter-spacing:.05em; text-transform:uppercase; }
.site-header .nav-menu-close { width:32px; height:32px; border:0; border-radius:8px; background:rgba(255,255,255,.08); color:#fff; font-size:22px; line-height:1; cursor:pointer; }
.site-header .nav-menu-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; padding-top:11px; }
.site-header .nav-menu-grid a { min-height:42px; display:flex; align-items:center; justify-content:center; padding:8px 9px; box-sizing:border-box; border-radius:9px; background:rgba(255,255,255,.055); color:#fff; text-align:center; font-size:12px; line-height:1.2; text-decoration:none; }
.site-header .nav-menu-grid a:hover,.site-header .nav-menu-grid a:focus-visible { background:rgba(255,255,255,.13); }
@media (max-width:1100px) {
  .site-header > .header-inner { min-height:64px; gap:9px; }
  .site-header .main-nav { display:none; }
  .site-header .brand { flex:1 1 auto; }
  .site-header .org-logo-link { order:2; width:118px; height:44px; }
  .site-header .nav-menu-toggle { order:3; }
  .site-header .nav-menu { right:12px; }
  .site-header .nav-menu-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:620px) {
  .site-header > .header-inner { padding:8px 10px; }
  .site-header .brand > span { font-size:17px; }
  .site-header .brand img { width:30px; height:30px; flex-basis:30px; }
  .site-header .org-logo-link { width:96px; height:40px; border-radius:9px; }
  .site-header .org-logo-link .external-link-icon { right:3px; top:3px; transform:scale(.8); transform-origin:top right; }
  .site-header .nav-menu { left:10px; right:10px; width:auto; top:calc(100% + 6px); padding:11px; }
  .site-header .nav-menu-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:390px) {
  .site-header .brand > span { font-size:16px; }
  .site-header .org-logo-link { width:82px; height:36px; }
  .site-header .nav-menu-grid { grid-template-columns:1fr; }
}
@media (min-width:1101px) {
  .site-header .nav-menu-toggle { order:3; }
  .site-header .org-logo-link { order:4; }
}

/* V8.5.28: hamburger is a primary command menu on every screen size. */
.site-header .mobile-nav-toggle{display:inline-flex!important;flex:0 0 42px;width:42px;height:40px;align-items:center;justify-content:center;flex-direction:column;gap:5px;margin:0;padding:0;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:rgba(255,255,255,.08);color:#fff;cursor:pointer;order:3;}
.site-header .mobile-nav-toggle span{display:block!important;width:18px;height:2px;border-radius:99px;background:currentColor;}
@media(max-width:1100px){.site-header .mobile-nav-toggle{order:3;margin-left:auto!important;}}
@media(max-width:620px){.site-header .mobile-nav-toggle{order:3;flex-basis:40px;width:40px;height:38px;}}

/* V8.5.63 mobile header: one stable control row plus a full-width alert row. */
@media (max-width:720px){
  .site-header>.header-inner{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto auto;
    grid-auto-rows:auto;
    align-items:center!important;
    gap:7px!important;
    padding:8px max(10px,env(safe-area-inset-right)) 8px max(10px,env(safe-area-inset-left))!important;
    min-height:0!important;
    overflow:visible!important;
  }
  .site-header .brand{grid-column:1;grid-row:1;min-width:0!important;overflow:hidden;order:initial!important;}
  .site-header .brand>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .site-header .main-nav{display:none!important;}
  .site-header .org-logo-link{grid-column:2;grid-row:1;order:initial!important;margin:0!important;width:88px!important;height:38px!important;}
  .site-header .nav-menu-toggle{grid-column:3;grid-row:1;order:initial!important;margin:0!important;width:40px!important;height:38px!important;flex-basis:40px!important;}
  .site-header .draft-alerts-button{grid-column:1/-1;grid-row:2;order:initial!important;width:100%;min-width:0;min-height:40px;margin:0!important;padding:8px 10px!important;white-space:normal;text-align:center;}
  .site-header>.header-inner>.alert{grid-column:1/-1;grid-row:3;width:100%;box-sizing:border-box;margin:0!important;}
  .site-header .nav-menu{position:absolute!important;left:max(8px,env(safe-area-inset-left))!important;right:max(8px,env(safe-area-inset-right))!important;top:calc(100% + 6px)!important;width:auto!important;max-height:calc(100dvh - 84px);overflow:auto;overscroll-behavior:contain;}
}
@media (max-width:360px){
  .site-header .brand>span{display:none;}
  .site-header .brand{flex:0 0 32px;}
  .site-header .org-logo-link{width:78px!important;height:36px!important;}
  .site-header .nav-menu-grid{grid-template-columns:1fr!important;}
}

/* V8.5.66 release header: status lives below the header and phone controls stay on one row. */
.ai-status-banner{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;box-sizing:border-box;padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));background:#fff4d6;color:#674600;border-bottom:1px solid #ead28f;font-size:12px;line-height:1.35;text-align:center;}
.ai-status-banner strong{white-space:nowrap;}
@media(max-width:720px){
  .site-header>.header-inner{grid-template-columns:minmax(0,1fr) auto auto auto!important;grid-auto-rows:1fr!important;}
  .site-header .draft-alerts-button{grid-column:3!important;grid-row:1!important;width:40px!important;min-width:40px!important;height:38px!important;min-height:38px!important;padding:0!important;margin:0!important;font-size:0!important;white-space:nowrap!important;overflow:hidden;}
  .site-header .draft-alerts-button::before{content:'🔔';font-size:17px;line-height:1;}
  .site-header .nav-menu-toggle{grid-column:4!important;grid-row:1!important;}
  .site-header .org-logo-link{grid-column:2!important;grid-row:1!important;}
  .ai-status-banner{align-items:flex-start;flex-direction:column;gap:2px;text-align:left;padding-top:7px;padding-bottom:7px;}
  .ai-status-banner strong{white-space:normal;}
}
@media(max-width:430px){
  .site-header>.header-inner{grid-template-columns:minmax(0,1fr) auto auto!important;}
  .site-header .org-logo-link{display:none!important;}
  .site-header .draft-alerts-button{grid-column:2!important;}
  .site-header .nav-menu-toggle{grid-column:3!important;}
}
