:root {
  --pnw-primary: #1f4d2e;
  --pnw-primary-light: #2f6940;
  --pnw-accent: #8bbf4d;
  --pnw-bg: #f5f6f8;
  --pnw-text: #1a1a1a;
  --pnw-muted: #6b7280;
  --pnw-border: #d1d5db;
  --pnw-success: #16794a;
  --pnw-warn: #b45309;
  --pnw-danger: #b91c1c;
  --pnw-card: #ffffff;
  --pnw-radius: 8px;
  --pnw-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--pnw-bg);
  color: var(--pnw-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pnw-primary-light); }
a:hover { color: var(--pnw-primary); }

header.site-header {
  background: var(--pnw-primary);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--pnw-shadow);
}

header.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
}

header.site-header .brand img {
  height: 36px;
  width: auto;
}

header.site-header nav a {
  color: #fff;
  margin-left: 18px;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.9;
}
header.site-header nav a:hover { opacity: 1; text-decoration: underline; }

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

main.wide { max-width: 1200px; }

h1 { font-size: 1.8rem; margin: 0 0 12px; color: var(--pnw-primary); }
h2 { font-size: 1.3rem; margin: 28px 0 12px; color: var(--pnw-primary); }
h3 { font-size: 1.05rem; margin: 20px 0 8px; }

.card {
  background: var(--pnw-card);
  border-radius: var(--pnw-radius);
  box-shadow: var(--pnw-shadow);
  padding: 24px;
  margin-bottom: 20px;
}

.muted { color: var(--pnw-muted); font-size: 0.92rem; }

.field {
  display: block;
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="date"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--pnw-border);
  border-radius: 6px;
  font-size: 0.98rem;
  font-family: inherit;
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--pnw-primary-light);
  outline-offset: -1px;
  border-color: var(--pnw-primary-light);
}
.field .hint { font-size: 0.85rem; color: var(--pnw-muted); margin-top: 4px; }
.field .error { color: var(--pnw-danger); font-size: 0.88rem; margin-top: 4px; }

.row { display: flex; gap: 12px; }
.row .field { flex: 1; }
@media (max-width: 600px) { .row { flex-direction: column; gap: 0; } }

button, .btn {
  display: inline-block;
  background: var(--pnw-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 0.98rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
button:hover, .btn:hover { background: var(--pnw-primary-light); }
button:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-secondary {
  background: #fff;
  color: var(--pnw-primary);
  border: 1px solid var(--pnw-border);
}
.btn-secondary:hover { background: var(--pnw-bg); }

.btn-danger { background: var(--pnw-danger); }
.btn-danger:hover { background: #991919; }

.btn-success { background: var(--pnw-success); }
.btn-success:hover { background: #105d38; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.alert {
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.alert-info    { background: #e8f0fb; color: #1c3766; }
.alert-success { background: #dcf3e8; color: #105d38; }
.alert-warn    { background: #fff4dc; color: #7a4b08; }
.alert-error   { background: #fbe3e3; color: #911818; }

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-pending  { background: #fff4dc; color: #7a4b08; }
.badge-active   { background: #dcf3e8; color: #105d38; }
.badge-rejected { background: #fbe3e3; color: #911818; }
.badge-paid     { background: #dcf3e8; color: #105d38; }
.badge-unpaid   { background: #fbe3e3; color: #911818; }

table.data {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--pnw-radius);
  overflow: hidden;
  box-shadow: var(--pnw-shadow);
}
table.data th, table.data td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--pnw-border);
  font-size: 0.93rem;
}
table.data th {
  background: #f0f2f5;
  font-weight: 600;
  color: var(--pnw-primary);
}
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #fafbfc; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}
.filter-bar input, .filter-bar select {
  padding: 7px 10px;
  border: 1px solid var(--pnw-border);
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: inherit;
}

footer.site-footer {
  text-align: center;
  color: var(--pnw-muted);
  font-size: 0.85rem;
  padding: 32px 24px;
}

.repeater-item {
  border: 1px solid var(--pnw-border);
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 10px;
  background: #fafbfc;
  position: relative;
}
.repeater-item .remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  color: var(--pnw-danger);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px 8px;
}

.section-divider {
  height: 1px;
  background: var(--pnw-border);
  margin: 24px 0;
}

.consent-block {
  background: #fafbfc;
  border: 1px solid var(--pnw-border);
  border-radius: 6px;
  padding: 14px;
  font-size: 0.9rem;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.hidden { display: none !important; }

/* Home page ---------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 62vh;
  background-image: url('/assets/hero.png');
  background-size: cover;
  background-position: center 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,34,21,0.35) 0%, rgba(13,34,21,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.hero-content img.hero-logo {
  height: 64px;
  width: auto;
  margin-bottom: 18px;
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  margin: 0 0 10px;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.hero-content .tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  opacity: 0.95;
  margin: 0 0 28px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.hero-content .btn-row {
  justify-content: center;
  gap: 12px;
}
.hero-content .btn {
  padding: 12px 22px;
  font-size: 1rem;
}
.hero-content .btn-secondary {
  background: rgba(255,255,255,0.92);
  color: var(--pnw-primary);
  border-color: transparent;
}
.hero-content .btn-secondary:hover {
  background: #fff;
}

.emergency-card {
  border-left: 4px solid var(--pnw-danger);
}
.emergency-primary-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 10px 0 6px;
}
.emergency-primary-row .label {
  font-size: 0.95rem;
  color: var(--pnw-muted);
}
.emergency-primary {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pnw-danger);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.emergency-primary:hover { text-decoration: underline; }
.emergency-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.emergency-list li {
  padding: 10px 0;
  border-top: 1px solid var(--pnw-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.95rem;
}
.emergency-list li:first-child {
  border-top: none;
  padding-top: 4px;
}
.emergency-list .label {
  color: var(--pnw-text);
  flex: 1;
  min-width: 200px;
}
.emergency-list a {
  color: var(--pnw-primary);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.emergency-list a:hover { text-decoration: underline; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.value-item {
  background: #fafbfc;
  border: 1px solid var(--pnw-border);
  border-radius: 6px;
  padding: 14px;
}
.value-item h3 {
  margin: 0 0 6px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pnw-primary);
}
.value-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--pnw-text);
  line-height: 1.4;
}
@media (max-width: 900px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .values-grid { grid-template-columns: 1fr; }
}

.area-map {
  margin-top: 12px;
}
.area-map img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--pnw-border);
  display: block;
}
.area-map figcaption {
  font-size: 0.88rem;
  color: var(--pnw-muted);
  margin-top: 8px;
}

.committee-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.committee-list li {
  padding: 10px 0;
  border-top: 1px solid var(--pnw-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.committee-list li:first-child {
  border-top: none;
}
.committee-list .role {
  color: var(--pnw-muted);
  font-size: 0.92rem;
}

.full-bleed { max-width: none; padding-left: 0; padding-right: 0; }
