:root {
  --green-900: #003d24;
  --green-700: #00703c;
  --green-600: #00843f;
  --green-50: #eef7f1;
  --gold: #f2b705;
  --ink: #1c2421;
  --muted: #5d6b64;
  --line: #dde5e0;
  --bg: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 16px rgba(0, 0, 0, .04);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h3 { font-size: 1.1rem; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding-block: 40px; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  background: var(--green-900);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; }
/* The emblem is dark green, so it sits on a white disc against the green header. */
.brand-logo { background: #fff; border-radius: 50%; padding: 3px; object-fit: contain; }
.brand small { opacity: .8; font-size: .8rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { color: #fff; text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); }
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 860px) {
  .nav-toggle-label { display: block; width: 32px; height: 24px; position: relative; cursor: pointer; }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    content: ""; position: absolute; left: 0; right: 0; height: 3px; background: #fff; border-radius: 2px;
  }
  .nav-toggle-label span { top: 10px; }
  .nav-toggle-label span::before { top: -9px; }
  .nav-toggle-label span::after { top: 9px; }
  .site-nav { display: none; width: 100%; flex-direction: column; padding-bottom: 8px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--green-900), var(--green-600));
  background-size: cover;
  background-position: center;
  color: #fff;
  padding-block: 88px;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 18ch; }
.hero .lead { max-width: 60ch; font-size: 1.1rem; opacity: .95; }
.eyebrow { color: var(--gold); font-weight: 600; margin: 0 0 8px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.page-head { background: var(--green-50); padding-block: 32px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; color: var(--green-900); }

/* Buttons */
.button {
  display: inline-block;
  background: var(--green-600);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--green-700); }
.hero .button { background: var(--gold); color: var(--green-900); }
.hero .button-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -32px; }
.stats div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
}
.stats strong { display: block; font-size: 1.8rem; color: var(--green-700); }
.stats span { color: var(--muted); }

/* Grid & cards */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.grid { display: grid; gap: 20px; margin-bottom: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 16px; }
.card-body p { margin: 0 0 .5em; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--green-700); }
.leader { text-align: center; }
.leader-photo { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Events */
.event-list, .doc-list { list-style: none; margin: 0 0 24px; padding: 0; }
.event-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.event-list p { margin: 0 0 4px; }
.event-date {
  flex: 0 0 72px;
  height: 72px;
  background: var(--green-50);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--green-900);
}
.event-date strong { font-size: 1.5rem; line-height: 1; }
.event-date span { font-size: .75rem; }

.doc-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.doc-list h3, .doc-list p { margin: 0; }

/* Prose */
.prose { max-width: 760px; }
.prose blockquote { margin: 0; padding: 16px 20px; background: var(--green-50); border-left: 4px solid var(--green-600); border-radius: 0 var(--radius) var(--radius) 0; }
.post-cover { border-radius: var(--radius); margin-bottom: 24px; width: 100%; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th, .status-table th { background: var(--green-50); color: var(--green-900); }
code { font-size: .9em; word-break: break-all; }
.level-badge {
  display: inline-block;
  background: var(--green-600);
  color: #fff;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
}

/* Forms */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--green-600); border-color: transparent; }
.field-error { color: #b42318; margin: 4px 0 0; font-size: .9rem; }
.alert { padding: 12px 16px; border-radius: 8px; margin-top: 16px; background: var(--green-50); border: 1px solid var(--green-600); }

.pagination { display: flex; gap: 16px; justify-content: center; align-items: center; }

/* Footer */
.site-footer { background: var(--green-900); color: #e3efe8; padding-block: 32px; margin-top: 40px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 4px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-meta { font-size: .9rem; opacity: .85; }
.footer-links ul { list-style: none; margin: 4px 0 0; padding: 0; }
.footer-links li { margin: 4px 0; }
.site-footer .footer-credit { font-size: .8rem; opacity: .7; margin: 24px auto 0; }
