/* =========================================================
   Office of the Governor — Washington State (mockup)
   Palette inspired by wa.gov: deep evergreen + gold + cream
   ========================================================= */

:root {
  --green-900: #003a25;
  --green-800: #0a4a32;
  --green-700: #1d6048;
  --green-500: #5b8c5a;
  --gold-600:  #b8860b;
  --gold-500:  #c89211;
  --gold-300:  #e5c66b;
  --cream:     #f5f3ed;
  --paper:     #fbfaf6;
  --ink:       #1c1c1c;
  --muted:     #5f6b66;
  --line:      #d8d4c8;
  --danger:    #8b1e1e;
  --info:      #2b5d8a;
  --shadow:    0 1px 2px rgba(0,0,0,.04), 0 4px 18px rgba(0,0,0,.06);
  --serif: "Georgia", "Times New Roman", "Cambria", serif;
  --sans:  "Helvetica Neue", "Helvetica", "Arial", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--green-800); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--gold-600); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--green-900);
  margin: 0 0 .5em;
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

/* ---------- Top utility / nav bar ---------- */

.utility-bar {
  background: var(--green-900);
  color: #cfe5d6;
  font-size: .82rem;
  padding: .35rem 0;
}
.utility-bar .container { display: flex; justify-content: space-between; gap: 1rem; }
.utility-bar a { color: #cfe5d6; text-decoration: none; }
.utility-bar a:hover { color: var(--gold-300); }

.site-header {
  background: #fff;
  border-bottom: 4px solid var(--gold-500);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 1440px;
  padding: .85rem 1.5rem;
}

.site-header .seal {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.site-header .seal img,
.site-header .seal svg { width: 100%; height: 100%; }

.site-header .titles { line-height: 1.15; }
.site-header .titles .top {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--green-900);
  font-weight: 600;
  letter-spacing: .01em;
}
.site-header .titles .sub {
  font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: .25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  text-decoration: none;
  color: var(--green-900);
  font-size: .92rem;
  padding: .55rem .85rem;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--cream); }
.site-nav a.active {
  background: var(--green-900);
  color: #fff;
}

/* ---------- Containers ---------- */

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 3rem 0; }
section.tight { padding: 1.75rem 0; }
section.alt { background: var(--cream); }
section.deep { background: var(--green-900); color: #e8efe9; }
section.deep h1, section.deep h2, section.deep h3 { color: #fff; }
section.deep a { color: var(--gold-300); }

.section-eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: .35rem;
  font-weight: 600;
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}
.gold-rule {
  border: 0;
  border-top: 3px solid var(--gold-500);
  width: 60px;
  margin: 0 0 1.25rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--green-900);
  color: #fff;
  padding: .65rem 1.1rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  border: 1px solid var(--green-900);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.btn.gold { background: var(--gold-500); border-color: var(--gold-500); color: var(--green-900); }
.btn.gold:hover { background: var(--gold-600); border-color: var(--gold-600); color: #fff; }
.btn.ghost { background: transparent; color: var(--green-900); }
.btn.ghost:hover { background: var(--cream); color: var(--green-900); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.sm { padding: .35rem .7rem; font-size: .8rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  color: #fff;
  padding: 3.5rem 0 4rem;
  border-bottom: 4px solid var(--gold-500);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/photos/seattle.webp");
  background-position: center 42%;
  background-size: cover;
  opacity: .32;
  filter: saturate(.9) contrast(1.05);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(90deg, rgba(0,58,37,.88) 0%, rgba(0,58,37,.58) 52%, rgba(0,58,37,.72) 100%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.05) 0%, transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(200,146,17,.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 2.8rem; max-width: 740px; }
.hero .lede { font-size: 1.15rem; max-width: 640px; opacity: .92; }
.hero .actions { margin-top: 1.25rem; display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- About the Governor ---------- */

.governor-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.governor-card .portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--cream);
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--gold-500);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
  position: relative;
}
.governor-card .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.governor-card .name {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--green-900);
  margin: 0 0 .15em;
}
.governor-card .role {
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 1rem;
}
.governor-card .bio { font-size: 1.02rem; color: var(--ink); }
.governor-card .bio p { margin-bottom: .9em; }

@media (max-width: 720px) {
  .governor-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .governor-card .portrait { max-width: 280px; }
}

/* ---------- Photo grid (WA-themed slots) ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.photo-slot {
  aspect-ratio: 4 / 3;
  background: var(--cream);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background-image:
    linear-gradient(135deg, rgba(0,58,37,.04) 0%, rgba(200,146,17,.04) 100%);
}
.photo-slot.tall { aspect-ratio: 3 / 4; }
.photo-slot.wide { aspect-ratio: 16 / 9; grid-column: span 2; }
@media (max-width: 720px) { .photo-slot.wide { grid-column: span 1; } }

.photo-slot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo-slot .label {
  position: relative;
  z-index: 1;
  background: linear-gradient(transparent, rgba(0,58,37,.78));
  color: #fff;
  width: 100%;
  padding: 1rem .9rem .7rem;
  font-size: .85rem;
  letter-spacing: .04em;
}
.photo-slot:not(:has(img)) .label {
  background: none;
  color: var(--muted);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-style: italic;
  font-family: var(--serif);
}

/* ---------- Cards / lists ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green-900);
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card .meta {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: .35rem;
}
.card h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.card .excerpt { color: var(--ink); font-size: .94rem; flex-grow: 1; }
.card .footer { margin-top: 1rem; font-size: .85rem; }

/* ---------- Tables ---------- */

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  background: #fff;
  box-shadow: var(--shadow);
}
table.data th {
  background: var(--green-900);
  color: #fff;
  text-align: left;
  padding: .7rem .85rem;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
table.data td {
  padding: .75rem .85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data tr:nth-child(even) td { background: var(--paper); }
table.data tr:hover td { background: #f1ede0; }

/* ---------- Status pills ---------- */

.pill {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--green-900);
  border: 1px solid var(--line);
}
.pill.green   { background: #e2efe2; color: var(--green-800); border-color: #b9d4ba; }
.pill.gold    { background: #fbf0d2; color: #7a5b06;          border-color: #e5c66b; }
.pill.red     { background: #f8e2e2; color: var(--danger);    border-color: #e3b8b8; }
.pill.blue    { background: #e0ebf5; color: var(--info);      border-color: #b9cee2; }
.pill.gray    { background: #ececec; color: #555;             border-color: #ccc; }

/* ---------- Filter bar ---------- */

.filter-bar {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.filter-bar label {
  display: flex;
  flex-direction: column;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
  gap: .25rem;
}
.filter-bar input,
.filter-bar select {
  padding: .45rem .55rem;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: .94rem;
  min-width: 180px;
  border-radius: 2px;
}
.filter-bar .grow { flex-grow: 1; }
.filter-bar .grow input { width: 100%; min-width: 0; }

/* ---------- Forms (admin) ---------- */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}
.form-row label {
  font-weight: 600;
  font-size: .92rem;
  padding-top: .4rem;
  color: var(--green-900);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: .55rem .65rem;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: .95rem;
  background: var(--paper);
  border-radius: 2px;
}
.form-row textarea { min-height: 140px; resize: vertical; font-family: var(--serif); }
.form-row .hint { color: var(--muted); font-size: .82rem; margin-top: .3rem; }
@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; gap: .35rem; }
  .form-row label { padding-top: 0; }
}

.callout {
  background: #fbf6e6;
  border: 1px solid var(--gold-300);
  padding: 1rem 1.1rem;
  font-size: .92rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--gold-500);
}
.callout.danger {
  background: #fbeeee;
  border-color: #d8b9b9;
  border-left-color: var(--danger);
}
.callout.info {
  background: #eaf2f8;
  border-color: #b9cee2;
  border-left-color: var(--info);
}

/* ---------- Budget embed ---------- */

.budget-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.budget-frame-wrap {
  min-height: 620px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green-900);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.budget-frame-wrap iframe {
  width: 100%;
  height: 72vh;
  min-height: 620px;
  border: 0;
  display: block;
}
@media (max-width: 720px) {
  .budget-toolbar {
    align-items: start;
    flex-direction: column;
  }
  .budget-frame-wrap,
  .budget-frame-wrap iframe {
    min-height: 520px;
  }
}

/* ---------- Footer ---------- */

footer.site {
  background: var(--green-900);
  color: #cfe5d6;
  padding: 2.5rem 0 1.5rem;
  font-size: .9rem;
  margin-top: 4rem;
}
footer.site h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 .75rem;
}
footer.site a { color: #cfe5d6; text-decoration: none; }
footer.site a:hover { color: var(--gold-300); }
footer.site .cols {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 1.75rem;
}
@media (max-width: 720px) {
  footer.site .cols { grid-template-columns: 1fr; gap: 1.25rem; }
}
footer.site .meta {
  border-top: 1px solid #1d4d36;
  padding-top: 1rem;
  font-size: .78rem;
  opacity: .8;
}
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site ul li { margin-bottom: .35rem; }

/* ---------- Map page ---------- */

#map {
  height: 620px;
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--line);
}
.map-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
}
@media (max-width: 900px) { .map-layout { grid-template-columns: 1fr; } }
.map-side {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  font-size: .92rem;
  max-height: 620px;
  overflow-y: auto;
}
.map-side h3 { margin-top: 0; font-size: 1.05rem; }
.legend {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .85rem;
}
.legend .swatch {
  display: inline-block;
  width: 14px; height: 14px;
  margin-right: .55rem;
  vertical-align: middle;
  border: 1px solid rgba(0,0,0,.2);
}

/* ---------- Statement / letterhead ---------- */

.letterhead {
  max-width: 800px;
  margin: 2rem auto;
  background: #fff;
  border: 1px solid var(--line);
  padding: 3rem 3.5rem;
  font-family: var(--serif);
  color: var(--ink);
  box-shadow: var(--shadow);
  position: relative;
}
.letterhead-header {
  text-align: center;
  border-bottom: 3px double var(--green-900);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}
.letterhead-header .seal-lg {
  width: 110px;
  height: 110px;
  margin: 0 auto .75rem;
}
.letterhead-header .office {
  font-size: 1.15rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-900);
  font-weight: 600;
}
.letterhead-header .state {
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-top: .2rem;
}
.letterhead .stmt-meta {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-family: var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.letterhead h1.stmt-title {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 1.75rem;
  color: var(--green-900);
}
.letterhead .stmt-body {
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: justify;
}
.letterhead .stmt-body p { margin-bottom: 1.1em; }
.letterhead .signature-block {
  margin-top: 2.5rem;
  font-family: var(--serif);
}
.letterhead .signature-block .sig-img {
  max-height: 80px;
  max-width: 280px;
  margin-bottom: .25rem;
}
.letterhead .signature-block .sig-img-placeholder {
  height: 70px;
  width: 240px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: end;
  color: var(--muted);
  font-size: .8rem;
  font-family: var(--sans);
  font-style: italic;
}
.letterhead .signature-block .sig-name { font-weight: 600; font-size: 1.05rem; }
.letterhead .signature-block .sig-title { font-size: .92rem; color: var(--muted); }

@media print {
  body * { visibility: hidden; }
  .letterhead, .letterhead * { visibility: visible; }
  .letterhead { box-shadow: none; border: 0; margin: 0; padding: 1.5rem 2rem; }
  .no-print { display: none !important; }
}

/* ---------- Misc utilities ---------- */

.muted { color: var(--muted); }
.center { text-align: center; }
.right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; gap: .75rem; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.align-center { align-items: center; }
.tag-row { display: flex; gap: .35rem; flex-wrap: wrap; }
.kicker {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--gold-600);
  font-weight: 600;
}

/* Quote / pull */
blockquote.pull {
  border-left: 4px solid var(--gold-500);
  padding: .35rem 0 .35rem 1.25rem;
  margin: 1.5rem 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--green-900);
  font-style: italic;
}

/* Skeleton loader */
.skeleton { color: var(--muted); font-style: italic; padding: 1rem 0; }
