/* Weber County EM — shared portal theme for the Contact System pages.
   Mirrors the design system used on the home page (index.html):
   IBM Plex type, navy/gold/cream palette, accent strip, gridded masthead. */

:root {
  --navy:       #1A365D;
  --navy-dark:  #0F2440;
  --gold:       #C99C3E;
  --gold-dark:  #8F6F22;
  --cream:      #F7F4ED;
  --ink:        #1F2937;
  --muted:      #6B7280;
  --muted-2:    #9AA3AD;
  --border:     #D6D3CD;
  --green:      #2F8A4E;
  --card-line:  #DAD5CA;
}

/* ---- Base typography to match the portal ---- */
.wcem-themed, .wcem-themed * { box-sizing: border-box; }
body.wcem-themed {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;   /* full-bleed masthead; inner content keeps its own padding */
}
.wcem-themed h1, .wcem-themed h2, .wcem-themed h3 {
  font-family: 'IBM Plex Serif', Georgia, serif;
}

/* ---- Accent strip (navy → gold) ---- */
.wcem-accent-strip {
  height: 3px;
  background: linear-gradient(to right,
    var(--navy) 0%, var(--navy) 60%, var(--gold) 60%, var(--gold) 100%);
}

/* ---- Masthead (white, faint grid, seal + titles) ---- */
.wcem-mast {
  background-color: #fff;
  background-image:
    linear-gradient(#EDEFF2 1px, transparent 1px),
    linear-gradient(90deg, #EDEFF2 1px, transparent 1px);
  background-size: 26px 26px;
  border-bottom: 1px solid #E7E3DA;
  margin-bottom: 28px;
}
.wcem-mast-inner {
  max-width: 980px; margin: 0 auto; padding: 26px 32px;
  display: flex; align-items: center; gap: 22px;
}
.wcem-mast .seal { width: 92px; height: 92px; flex-shrink: 0; }
.wcem-mast .seal img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(15,36,64,0.22));
}
.wcem-mast .seal .fallback {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Serif', serif; font-weight: 600; font-size: 1.1rem;
}
.wcem-mast .eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 5px;
}
.wcem-mast h1 {
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-size: 1.85rem; font-weight: 700; color: var(--navy);
  margin: 0 0 6px; letter-spacing: -0.015em; line-height: 1.08;
}
.wcem-mast .tagline { color: var(--muted); font-size: 0.95rem; margin: 0; max-width: 60ch; }
@media (max-width: 640px) {
  .wcem-mast-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 22px; }
  .wcem-mast h1 { font-size: 1.45rem; }
}
