/* Portland.gov-style masthead */
:root{
  --pg-navy: #0f2a44;        /* dark banner */
  --pg-navy-600:#0c2237;
  --pg-link:#0b5ed7;         /* civic blue for links */
  --pg-text:#0b1220;
  --pg-bg:#f5f7fa;
  --pg-white:#fff;
  --pg-border:#e5e7eb;
  --pg-radius:12px;
}

/* Ensure page background matches Portland.gov feel */
html, body { background: var(--pg-bg); color: var(--pg-text); }

/* Masthead frame */
.pg-header{
  background: var(--pg-navy);
  color: var(--pg-white);
  width: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.pg-header__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

/* Brand */
.pg-brand{ display:flex; align-items:center; gap:12px; color:#fff; text-decoration:none; }
.pg-brand:focus{ outline:2px solid #fff; outline-offset:2px; }
.pg-brand__seal{ height:36px; width:auto; display:block; }
.pg-brand__text{ display:flex; flex-direction:column; line-height:1.1; }
.pg-brand__text strong{ font-weight:800; font-size:1.05rem; }
.pg-brand__text em{ font-style:normal; opacity:.85; font-size:.9rem; }

/* Primary nav */
.pg-nav{ justify-self: center; }
.pg-nav__list{
  display:flex; gap:22px; list-style:none; margin:0; padding:0;
}
.pg-nav a{
  color:#fff; text-decoration:none; font-weight:600; padding:8px 2px; display:inline-block;
}
.pg-nav a:hover{ text-decoration:underline; text-underline-offset: 3px; }

/* Utils area (e.g., Locale switcher) */
.pg-utils{ justify-self:end; display:flex; align-items:center; gap:10px; }

/* Mobile toggle */
.pg-nav-toggle{
  display:none;
  background: transparent; color:#fff; border:1px solid rgba(255,255,255,.35);
  border-radius: 999px; padding:6px 12px; font-weight:700;
}
.pg-nav-toggle:hover{ background: rgba(255,255,255,.08); }

/* Responsive behavior */
@media (max-width: 960px){
  .pg-header__inner{ grid-template-columns: 1fr auto; }
  .pg-nav-toggle{ display:inline-block; }
  .pg-nav{ grid-column: 1 / -1; display:none; }
  .pg-nav.is-open{ display:block; }
  .pg-nav__list{ flex-direction:column; gap:8px; padding:8px 0 12px; }
  .pg-nav a{ padding:8px 0; }
}

/* --- Optional: visually demote duplicated legacy header links --- */
#header #headlinks { display:none; }           /* hide old CONTACT/PRIVACY row */
#header { border-radius: var(--pg-radius) !important; } /* keep legacy header tidy */

/* Keep your main area as a white card (if you used my earlier overrides) */
#main{
  background: var(--pg-white);
  border:1px solid var(--pg-border);
  border-radius: var(--pg-radius);
}
