/* =========================================================
   Linneus, Missouri — community site stylesheet
   Warm, small-town heritage feel. Shared across all pages.
   To restyle the whole site, edit the variables below.
   ========================================================= */

:root {
  /* Color palette */
  --green-deep:   #2f4a3c;   /* headers, nav — like a pine windbreak */
  --green-mid:    #496f57;
  --gold:         #c08a2d;   /* accent — wheat / harvest */
  --barn:         #9c4a37;   /* secondary accent — barn red */
  --cream:        #f7f3ea;   /* page background */
  --paper:        #fffdf8;   /* cards / panels */
  --ink:          #2b2b28;   /* body text */
  --ink-soft:     #5e5b53;   /* muted text */
  --line:         #e2dccb;   /* hairlines / borders */

  --radius: 10px;
  --shadow: 0 1px 3px rgba(47,74,60,.10), 0 6px 18px rgba(47,74,60,.06);
  --maxw: 1060px;
  --font-head: "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--green-mid); }
a:hover { color: var(--barn); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green-deep);
  color: #f4efe2;
  font-size: 14px;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.topbar a { color: #f0e6c8; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

/* ---------- Masthead ---------- */
.masthead {
  background:
    linear-gradient(rgba(47,74,60,.78), rgba(47,74,60,.86)),
    url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 64px 20px 56px;
}
.masthead .kicker {
  font-family: var(--font-body);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--gold);
  margin: 0 0 10px;
}
.masthead h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0;
  letter-spacing: .01em;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.masthead p.tagline {
  margin: 14px auto 0;
  max-width: 640px;
  font-size: 1.12rem;
  color: #ece6d6;
}

/* ---------- Navigation ---------- */
nav.mainnav {
  background: var(--green-mid);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
nav.mainnav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
nav.mainnav a {
  display: block;
  color: #f1ecde;
  text-decoration: none;
  padding: 13px 16px;
  font-size: 15px;
  letter-spacing: .02em;
  white-space: nowrap;
}
nav.mainnav a:hover,
nav.mainnav a.active {
  background: var(--green-deep);
  color: #fff;
}

/* ---------- Sections ---------- */
section { padding: 44px 0; }
section.alt { background: #efe9da; }

h2.section-title {
  font-family: var(--font-head);
  font-size: 1.9rem;
  text-align: center;
  margin: 0 0 6px;
  color: var(--green-deep);
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 auto 30px;
  max-width: 620px;
}

/* ---------- Card grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 24px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(47,74,60,.14), 0 14px 30px rgba(47,74,60,.10);
  border-color: var(--gold);
  color: var(--ink);
}
.card .ico { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.card h3 {
  font-family: var(--font-head);
  margin: 0 0 6px;
  font-size: 1.18rem;
  color: var(--green-deep);
}
.card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Bulletin / what's new ---------- */
.notice-list { max-width: 760px; margin: 0 auto; }
.notice {
  background: var(--paper);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 16px 20px;
  margin-bottom: 14px;
}
.notice .date {
  display: inline-block;
  font-size: 13px;
  color: var(--barn);
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 4px;
}
.notice h4 { margin: 0 0 4px; font-family: var(--font-head); color: var(--green-deep); }
.notice p { margin: 0; color: var(--ink-soft); }
.notice p + p,
.notice ul { margin-top: 10px; }
.notice ul {
  margin-bottom: 0;
  padding-left: 20px;
  color: var(--ink-soft);
}
.notice li { margin-bottom: 7px; line-height: 1.55; }
.notice li:last-child { margin-bottom: 0; }
.notice li strong { color: var(--green-deep); }

/* ---------- Quick facts strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  text-align: center;
}
.fact { padding: 6px; }
.fact .num {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--gold);
  display: block;
}
.fact .lbl { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Placeholder flag ---------- */
.todo {
  background: #fff6df;
  border: 1px dashed var(--gold);
  color: #7a5a12;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: .82rem;
  font-style: italic;
}

/* ---------- Compact page header (inner pages) ---------- */
.masthead.compact { padding: 44px 20px 38px; }
.masthead.compact h1 { font-size: clamp(2rem, 5vw, 3rem); }

/* ---------- Readable prose column ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose p { margin: 0 0 18px; }
.prose h3 {
  font-family: var(--font-head);
  color: var(--green-deep);
  font-size: 1.45rem;
  margin: 34px 0 10px;
  padding-top: 6px;
  border-top: 2px solid var(--line);
}
.prose .lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  font-style: italic;
}
.prose blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  background: var(--paper);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  color: var(--ink-soft);
  font-style: italic;
}
.source-note {
  max-width: 760px;
  margin: 30px auto 0;
  font-size: .9rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ---------- Timeline ---------- */
.timeline {
  max-width: 760px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  border-left: 3px solid var(--gold);
}
.timeline li {
  position: relative;
  padding: 0 0 22px 26px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -9px; top: 4px;
  width: 14px; height: 14px;
  background: var(--barn);
  border: 3px solid var(--cream);
  border-radius: 50%;
}
.timeline .yr {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green-deep);
  margin-right: 8px;
}

/* ---------- "Coming later" callout ---------- */
.callout {
  max-width: 760px;
  margin: 36px auto 0;
  background: #f1ece0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.callout h4 {
  font-family: var(--font-head);
  color: var(--green-deep);
  margin: 0 0 8px;
}
.callout p { margin: 0; color: var(--ink-soft); }

/* ---------- Download / action button ---------- */
.btn {
  display: inline-block;
  background: var(--green-mid);
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: background .12s ease, transform .12s ease;
}
.btn:hover { background: var(--green-deep); color: #fff; transform: translateY(-2px); }
.btn .sub { display:block; font-weight: 400; font-size: .8rem; opacity: .85; }

/* ---------- Ordinance topic block ---------- */
.ord {
  max-width: 800px;
  margin: 0 auto 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px 24px;
}
.ord h3 {
  font-family: var(--font-head);
  color: var(--green-deep);
  margin: 0 0 4px;
  font-size: 1.3rem;
}
.ord .meta {
  font-size: .85rem;
  color: var(--barn);
  font-weight: 600;
  margin: 0 0 12px;
}
.ord ul { margin: 10px 0 0; padding-left: 20px; }
.ord li { margin-bottom: 7px; }
.ord .penalty {
  margin-top: 14px;
  font-size: .92rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.ord .oldnote {
  background: #f4efe2;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .82rem;
  color: #6a6252;
  font-style: italic;
}

/* ---------- Photos ---------- */
.photo-figure {
  max-width: 820px;
  margin: 0 auto 24px;
}
.photo-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.photo-figure figcaption {
  font-size: .85rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}
.photo-duo {
  max-width: 900px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.photo-duo figure { margin: 0; }
.photo-duo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.photo-duo figcaption {
  font-size: .82rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 6px;
  font-style: italic;
}

/* ---------- Footer ---------- */
footer {
  background: var(--green-deep);
  color: #d9d2bf;
  padding: 40px 20px 28px;
  margin-top: 10px;
}
footer .cols {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
footer h4 {
  font-family: var(--font-head);
  color: #fff;
  margin: 0 0 10px;
  font-size: 1.1rem;
}
footer a { color: #ecd9a8; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 6px; font-size: .95rem; }
footer .legal {
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: .85rem;
  color: #b3ab95;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .masthead { padding: 46px 16px 40px; }
  nav.mainnav a { padding: 11px 12px; font-size: 14px; }
}


/* ---------- Financial / data tables ---------- */
.tablewrap { overflow-x: auto; margin: 18px 0 10px; }
table.fintable {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: .95rem;
  overflow: hidden;
}
table.fintable caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-head);
  color: var(--green-deep);
  font-size: 1.05rem;
  padding: 0 0 8px;
}
table.fintable th,
table.fintable td { padding: 9px 14px; text-align: right; }
table.fintable th:first-child,
table.fintable td:first-child { text-align: left; }
table.fintable thead th {
  background: var(--green-deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .84rem;
  letter-spacing: .02em;
  vertical-align: bottom;
}
table.fintable tbody tr + tr { border-top: 1px solid var(--line); }
table.fintable tbody tr:nth-child(even) { background: rgba(226,220,203,.28); }
table.fintable tfoot td {
  border-top: 2px solid var(--green-mid);
  font-weight: 700;
  color: var(--green-deep);
  background: rgba(192,138,45,.10);
}
table.fintable td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Bulletin board ---------- */
.bulletin { max-width: 780px; margin: 0 auto; }
.post {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 5px solid var(--gold);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.post.health { border-top-color: var(--barn); }
.post.county { border-top-color: var(--green-mid); }
.post .when {
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--barn); text-transform: uppercase;
}
.post h3 { margin: 4px 0 8px; font-family: var(--font-head); color: var(--green-deep); font-size: 1.35rem; }
.post p { margin: 0 0 10px; color: var(--ink); }
.post .posted { font-size: .84rem; color: var(--ink-soft); margin: 10px 0 0; }
.addr-list { columns: 2 220px; column-gap: 28px; padding-left: 18px; margin: 8px 0 10px; }
.addr-list li { break-inside: avoid; margin-bottom: 4px; }
.addr-list .multi { font-size: .82rem; color: var(--barn); font-weight: 600; }

/* ---------- Links directory ---------- */
.linkgroup { max-width: 860px; margin: 0 auto 30px; }
.linkgroup h3 {
  font-family: var(--font-head); color: var(--green-deep);
  border-bottom: 2px solid var(--line); padding-bottom: 6px; margin-bottom: 4px;
}
.linkgroup .groupnote { color: var(--ink-soft); font-size: .92rem; margin: 0 0 8px; }
.linkrow {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 6px 16px; padding: 10px 2px; border-bottom: 1px solid var(--line);
}
.linkrow:last-child { border-bottom: 0; }
.linkrow .name { font-weight: 600; color: var(--ink); }
.linkrow .desc { display: block; font-weight: 400; font-size: .88rem; color: var(--ink-soft); }
.linkrow .go { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-block; font-size: .82rem; font-weight: 600; text-decoration: none;
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--green-mid);
  color: var(--green-deep); background: var(--paper); white-space: nowrap;
}
.pill:hover { background: var(--green-deep); color: #fff; }
.pill.fb { border-color: #3b5998; color: #2d4373; }
.pill.fb:hover { background: #3b5998; color: #fff; }
