/* County Brief site header — shared by every page that uses includes/layout-header.php,
   whichever main stylesheet the page loads (dashboard.css, style.css, government.css). Self-contained;
   selectors are scoped under .cb-header so they win over the older header rules in those sheets
   (dashboard.css stacks .header-inner into a column on phones). */
.cb-header{background:#fff;border-top:4px solid #1a365d;border-bottom:1px solid #e2e8f0;}
.cb-header .header-inner{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;width:auto;max-width:1180px;margin:0 auto;padding:18px 20px;box-sizing:border-box;text-align:left;}
.cb-header .header-brand{min-width:0;}
.cb-header .site-title{margin:0;font-family:"Libre Baskerville",Georgia,serif;font-size:clamp(1.5rem,3vw,2.2rem);line-height:1.1;font-weight:700;letter-spacing:0;}
.cb-header .site-title a{color:#1a365d;text-decoration:none;}
.cb-county{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:6px 0 0;color:#4a5568;font:500 .95rem/1.3 Inter,-apple-system,sans-serif;font-style:normal;}
.cb-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border:1px solid #cbd5e0;border-radius:999px;color:#2b6cb0;font-size:.8rem;font-weight:600;text-decoration:none;line-height:1.4;}
.cb-chip:hover{background:#ebf4ff;text-decoration:none;}
.cb-header .header-actions{display:flex;align-items:center;gap:10px;width:auto;flex-wrap:nowrap;justify-content:flex-end;}
.cb-header .header-date{color:#718096;font:500 .85rem Inter,-apple-system,sans-serif;white-space:nowrap;margin-right:4px;}

/* Round Search button, and the menu toggle as a pill: "Menu" signed out, avatar + email/"Account" signed in. */
.cb-icon-btn,.cb-header .account-menu-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;box-sizing:border-box;border:1px solid #cbd5e0;border-radius:999px;background:#fff;color:#1a365d;font:600 .92rem Inter,-apple-system,sans-serif;cursor:pointer;white-space:nowrap;text-decoration:none;-webkit-tap-highlight-color:transparent;}
.cb-icon-btn{width:40px;padding:0;}
.cb-header .account-menu-toggle{padding:0 12px 0 10px;}
.cb-icon-btn:hover,.cb-header .account-menu-toggle:hover{background:#f7fafc;border-color:#a0aec0;text-decoration:none;}
.cb-icon-btn svg,.cb-header .cb-menu-icon,.cb-header .account-menu-list svg{width:18px;height:18px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.cb-avatar{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#1a365d;color:#fff;font:700 .8rem Inter,-apple-system,sans-serif;flex:0 0 auto;text-transform:uppercase;}
.cb-header .account-menu{position:relative;}
.cb-header .account-menu-list[hidden]{display:none;}
.cb-header .account-menu:not(.is-signed-in) .cb-signed-in-only{display:none;}
.cb-header .account-menu.is-signed-in .cb-signed-out-only{display:none;}
.cb-header .account-menu-toggle span#header-account-email{max-width:200px;overflow:hidden;text-overflow:ellipsis;}
.cb-header .account-menu.is-signed-in .cb-account-label{display:none;}
.cb-header .account-menu-toggle svg.cb-chevron{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s;}
.cb-header .account-menu-toggle[aria-expanded="true"] svg.cb-chevron{transform:rotate(180deg);}
.cb-header .account-menu-list{position:absolute;right:0;left:auto;top:calc(100% + 8px);z-index:60;min-width:220px;display:flex;flex-direction:column;padding:6px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;box-shadow:0 12px 32px rgba(26,54,93,.16);}
.cb-menu-email{padding:10px 12px 8px;margin-bottom:4px;border-bottom:1px solid #edf2f7;color:#718096;font:500 .82rem Inter,-apple-system,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.cb-menu-email:empty{display:none;}
.cb-header .account-menu-list button,.cb-header .account-menu-list a{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;border:0;border-radius:9px;background:none;color:#1a365d;font:600 .95rem Inter,-apple-system,sans-serif;text-align:left;text-decoration:none;padding:11px 12px;cursor:pointer;}
.cb-header .account-menu-list button:hover,.cb-header .account-menu-list a:hover,.cb-header .account-menu-list button:focus-visible,.cb-header .account-menu-list a:focus-visible{background:#ebf4ff;text-decoration:none;}
.cb-header .account-menu-list svg{color:#4a6b94;}

@media (max-width:760px){
    .cb-header .header-inner{padding:14px 16px;gap:10px;}
    .cb-header .site-title{font-size:1.55rem;white-space:nowrap;}
    .cb-header .header-date{display:none;}
    .cb-header .account-menu-toggle span#header-account-email{display:none;}
    .cb-header .account-menu.is-signed-in .cb-account-label{display:inline;}
}
@media (max-width:360px){
    .cb-header .account-menu-toggle .cb-account-label{display:none !important;}
}
