/* Village of Marvin — municipal palette echoing marvinnc.gov (forest green +
   warm cream + deep navy accents). */
:root {
  --green: #1f513f;
  --green-dark: #163b2e;
  --green-light: #2e7457;
  --navy: #1c2a3a;
  --cream: #f6f4ee;
  --paper: #ffffff;
  --ink: #222a26;
  --muted: #5f6b64;
  --line: #d8e0da;
  --gold: #b08b3e;
  --danger: #b3261e;
  --shadow: 0 2px 10px rgba(28, 42, 58, 0.08);
}

* { box-sizing: border-box; }

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

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--green-dark); }

a { color: var(--green-light); }

/* Header / masthead */
.masthead {
  background: var(--green);
  color: #fff;
  border-bottom: 4px solid var(--gold);
}
.masthead-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
}
.masthead img.seal { width: 64px; height: 64px; flex: 0 0 auto; }
.masthead .titles { line-height: 1.2; }
.masthead .titles h1 { color: #fff; margin: 0; font-size: 1.5rem; }
.masthead .titles .sub { color: #d7e4dc; font-size: 0.9rem; letter-spacing: 0.03em; }

.wrap { max-width: 920px; margin: 0 auto; padding: 26px 20px 60px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 26px;
  margin-bottom: 22px;
}

.lede { color: var(--muted); font-size: 1.02rem; margin-top: 4px; }

/* Form */
label { display: block; font-weight: 600; margin: 16px 0 6px; color: var(--navy); }
input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--green-light); border-color: var(--green-light); }

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--green-dark); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--green-dark); border: 1px solid var(--green); }
.btn.secondary:hover { background: var(--cream); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 7px 12px; font-size: 0.86rem; }

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

.notice { padding: 12px 14px; border-radius: 7px; margin: 14px 0; font-weight: 500; }
.notice.ok { background: #e7f3ec; color: #1f513f; border: 1px solid #b9dcc7; }
.notice.err { background: #fbe9e7; color: #8c1d16; border: 1px solid #f0c1bc; }
.hidden { display: none; }

.cf-turnstile { margin: 18px 0; }

/* Tables */
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data th, table.data td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--green); color: #fff; position: sticky; top: 0; }
table.data tr:nth-child(even) td { background: #f3f7f4; }
.table-scroll { max-height: 60vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }

/* Admin tabs */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tab { padding: 10px 16px; cursor: pointer; border: none; background: none; font-size: 1rem; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; }
.tab.active { color: var(--green-dark); border-bottom-color: var(--gold); }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.row > div { flex: 1 1 160px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.tag { display: inline-block; font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; background: #e7eee9; color: var(--green-dark); }
.tag.manual { background: #efe4cb; color: #6c521d; }
footer.site { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 24px; }
