:root {
  --green-deep: #2a4d1a;
  --green-mid: #3d6e28;
  --green-light: #6fa843;
  --green-pale: #e8f2e0;
  --teal: #3a8c7e;
  --teal-light: #5eb5a5;
  --teal-pale: #e0f2ef;
  --cream: #f8f5ef;
  --paper: #fdfbf8;
  --text-dark: #181c14;
  --text-mid: #4a4e42;
  --text-light: #828778;
  --border: #ddd9cf;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
}

a { color: inherit; }

/* ── FLASH ── */
.flash-notice,
.flash-alert {
  max-width: 1100px;
  margin: 12px auto 0;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: .88rem;
}
.flash-notice { background: var(--teal-pale); color: var(--teal); border: 1px solid var(--teal-light); }
.flash-alert  { background: #fde8e8; color: #8b1a1a; border: 1px solid #f5b8b8; }

/* ── HEADER ── */
header {
  background: var(--green-deep);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: white;
}

.logo-badge {
  width: 44px;
  height: 44px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.logo-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
}

.logo-text p {
  font-size: .7rem;
  opacity: .6;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.9);
  padding: 7px 18px;
  border-radius: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  text-decoration: none;
  transition: all .2s;
  display: inline-block;
}
.btn-ghost:hover { border-color: white; color: white; }

.btn-join {
  background: var(--teal);
  border: none;
  color: white;
  padding: 8px 20px;
  border-radius: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background .2s;
}
.btn-join:hover { background: var(--teal-light); }

nav {
  background: rgba(0,0,0,.15);
  border-top: 1px solid rgba(255,255,255,.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  padding: 0 32px;
}

nav a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: .76rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 11px 16px;
  border-bottom: 2.5px solid transparent;
  transition: all .2s;
  display: block;
}
nav a:hover { color: white; }
nav a.active { color: white; border-bottom-color: var(--teal-light); }

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, var(--green-deep) 0%, var(--green-mid) 100%);
  color: white;
  padding: 80px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 40px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 30px;
  padding: 6px 18px;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: rgba(255,255,255,.85);
}

.hero h2 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal-light);
}

.hero p {
  font-size: 1rem;
  opacity: .8;
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--teal);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.btn-hero-primary:hover { background: var(--teal-light); }

.btn-hero-ghost {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,.4);
  padding: 14px 32px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
}
.btn-hero-ghost:hover { border-color: white; }

/* ── MAIN LAYOUT ── */
.main-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}

.full-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px;
}

/* ── SECTION HEADERS ── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--border);
}

.section-header h2,
.section-header h3 {
  font-size: 1.25rem;
  color: var(--green-deep);
}

.section-link {
  font-size: .75rem;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── BULLETIN BOARD ── */
.bulletin-section { margin-bottom: 44px; }

.login-nudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--green-pale);
  border: 1px solid #c2dba8;
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 20px;
}

.login-nudge p {
  font-size: .85rem;
  color: var(--green-deep);
  line-height: 1.4;
}

.btn-nudge {
  background: var(--green-mid);
  color: white;
  border: none;
  padding: 7px 16px;
  border-radius: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}

.filter-row {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.chip {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .76rem;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-mid);
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  display: inline-block;
  transition: all .15s;
}
.chip:hover,
.chip.active { background: var(--green-deep); color: white; border-color: var(--green-deep); }

.bulletin-list { display: flex; flex-direction: column; gap: 10px; }

.bcard {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s;
}
.bcard:hover { border-color: var(--teal-light); }

.bcard-tag {
  display: inline-block;
  font-size: .64rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.tag-lost_found  { background: #fde8e8; color: #8b1a1a; }
.tag-for_sale    { background: #ddf0fc; color: #075985; }
.tag-free        { background: #d4f5e6; color: #065f46; }
.tag-wanted      { background: #fef5db; color: #7c5a0a; }
.tag-announcement { background: var(--green-pale); color: var(--green-deep); }

.bcard-body h4 {
  font-size: .98rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.bcard-body p { font-size: .82rem; color: var(--text-mid); line-height: 1.5; }
.bcard-meta { font-size: .72rem; color: var(--text-light); margin-top: 8px; display: flex; gap: 12px; }

/* ── EVENTS ── */
.events-section { margin-bottom: 44px; }

.event-row {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s;
}
.event-row:hover { border-color: var(--teal-light); }

.edate {
  background: var(--green-deep);
  color: white;
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  flex-shrink: 0;
  min-width: 50px;
}
.edate .mo { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.edate .dd { font-size: 1.55rem; font-weight: 700; line-height: 1; }

.einfo h4 { font-size: .98rem; margin-bottom: 3px; }
.einfo p  { font-size: .8rem; color: var(--text-mid); }

/* ── SIDEBAR ── */
.scard {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 20px;
}

.scard h3 {
  font-size: 1.1rem;
  color: var(--green-deep);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border);
}

.nl-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: .83rem;
}
.nl-item:last-child { border-bottom: none; }
.nl-item .sub { font-size: .7rem; color: var(--text-light); margin-top: 1px; }
.nl-dl { color: var(--teal); font-size: .82rem; text-decoration: none; }
.nl-dl:hover { color: var(--teal-light); }

.mn-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: .83rem;
}
.mn-item:last-child { border-bottom: none; }
.mn-item a { color: var(--teal); text-decoration: none; font-size: .75rem; }
.mn-item a:hover { color: var(--teal-light); }

.bm-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.bm-row:last-child { border-bottom: none; }
.av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}
.bm-name { font-size: .84rem; font-weight: 600; }
.bm-role { font-size: .71rem; color: var(--text-light); }

/* ── INNER PAGE HEADERS ── */
.page-header {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--border);
}
.page-header h1 {
  font-size: 2rem;
  color: var(--green-deep);
  font-weight: 800;
}
.page-header p {
  color: var(--text-mid);
  margin-top: 6px;
}

/* ── CARDS (generic) ── */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 12px;
}
.card h2 { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 6px; }
.card h2 a { text-decoration: none; color: inherit; }
.card h2 a:hover { color: var(--teal); }
.card .meta { font-size: .78rem; color: var(--text-light); margin-bottom: 8px; }
.card p { font-size: .88rem; color: var(--text-mid); }
.card .dl-link { color: var(--teal); text-decoration: none; font-size: .85rem; font-weight: 600; }
.card .dl-link:hover { color: var(--teal-light); }

.back-link {
  display: inline-block;
  color: var(--teal);
  text-decoration: none;
  font-size: .85rem;
  margin-top: 24px;
}
.back-link:hover { color: var(--teal-light); }

/* ── FOOTER ── */
footer {
  background: var(--green-deep);
  color: rgba(255,255,255,.65);
  text-align: center;
  padding: 28px 32px;
  font-size: .8rem;
  margin-top: 20px;
}
footer strong { color: white; }
footer a { color: var(--teal-light); text-decoration: none; }

/* ── ADMIN ── */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--border);
}
.admin-header h1 {
  font-size: 2rem;
  color: var(--green-deep);
  font-weight: 800;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-size: .88rem;
}
.admin-table th {
  text-align: left;
  padding: 11px 16px;
  background: var(--green-pale);
  color: var(--green-deep);
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--border);
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table td strong { color: var(--text-dark); }
.table-actions { display: flex; gap: 8px; justify-content: flex-end; }

.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.status-badge.published { background: var(--green-pale); color: var(--green-deep); }
.status-badge.draft     { background: #f3f3f3; color: var(--text-light); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--teal);
  color: white;
  border: none;
  padding: 9px 22px;
  border-radius: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background .2s;
}
.btn-primary:hover { background: var(--teal-light); }

.btn-secondary {
  background: white;
  color: var(--text-mid);
  border: 1.5px solid var(--border);
  padding: 9px 22px;
  border-radius: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: border-color .2s;
}
.btn-secondary:hover { border-color: var(--text-mid); }

.btn-sm {
  background: white;
  color: var(--teal);
  border: 1px solid var(--teal);
  padding: 4px 12px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all .15s;
}
.btn-sm:hover { background: var(--teal); color: white; }

.btn-sm.btn-danger {
  color: #8b1a1a;
  border-color: #f5b8b8;
  background: white;
}
.btn-sm.btn-danger:hover { background: #8b1a1a; color: white; border-color: #8b1a1a; }

/* ── FORMS ── */
.admin-form { max-width: 680px; }

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  color: var(--text-dark);
  background: white;
  transition: border-color .2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(58,140,126,.1);
}
textarea.form-control { resize: vertical; }

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-check label { margin-bottom: 0; font-weight: 400; }
.check-input { width: 16px; height: 16px; accent-color: var(--teal); flex-shrink: 0; }

.file-hint {
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.5;
}
.file-hint strong { color: var(--text-mid); }

.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ── MEETING NOTES BODY (Action Text) ── */
.meeting-notes-body { line-height: 1.7; }
.meeting-notes-body h1, .meeting-notes-body h2, .meeting-notes-body h3 {
  color: var(--green-deep);
  margin: 1.2em 0 .4em;
}
.meeting-notes-body p { margin-bottom: .8em; font-size: .95rem; color: var(--text-mid); }
.meeting-notes-body ul, .meeting-notes-body ol { padding-left: 1.5em; margin-bottom: .8em; }
.meeting-notes-body li { font-size: .95rem; color: var(--text-mid); margin-bottom: .25em; }
.meeting-notes-body strong { color: var(--text-dark); }

/* ── RESPONSIVE ── */

/* Tablet: collapse sidebar, scale down hero */
@media (max-width: 800px) {
  .main-container {
    grid-template-columns: 1fr;
    padding: 32px 20px;
    gap: 32px;
  }

  .full-container {
    padding: 32px 20px;
  }

  .hero {
    padding: 56px 20px 64px;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .header-inner {
    padding: 14px 20px;
  }

  .nav-inner {
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-inner::-webkit-scrollbar { display: none; }

  nav a {
    white-space: nowrap;
    padding: 10px 12px;
    font-size: .72rem;
  }
}

/* Mobile: stack header, tighten everything */
@media (max-width: 540px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn-ghost,
  .header-actions .btn-join {
    flex: 1;
    text-align: center;
  }

  .nav-inner {
    padding: 0 12px;
  }

  nav a {
    padding: 10px 10px;
    font-size: .7rem;
  }

  .hero {
    padding: 44px 16px 56px;
  }

  .hero h2 {
    font-size: 1.9rem;
  }

  .hero p {
    font-size: .92rem;
  }

  .btn-hero-primary,
  .btn-hero-ghost {
    width: 100%;
    text-align: center;
  }

  .main-container,
  .full-container {
    padding: 24px 16px;
  }

  .bcard {
    flex-direction: column;
    gap: 8px;
  }

  .event-row {
    gap: 12px;
  }

  .login-nudge {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-nudge {
    width: 100%;
    text-align: center;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }
}
