/* Goshen Public Ledger site theme.
   Adapted from the GCIC "Goshen Public Ledger" identity (design/gcic-ledger-theme-e40745e).
   Palette, type and layout follow that snapshot; selectors are simplified for a static archive. */

:root {
  --paper: #f7f5ee;
  --white: #fffefa;
  --ink: #153334;
  --muted: #586967;
  --green: #174d4e;
  --sage: #eaf0e9;
  --line: #dce2d9;
  --gold: #a66e28;
  --gold-soft: #dfb16f;
  --navy: #06262d;
  --teal: #226562;
  --hero: #092f35;
  --shadow: 0 12px 36px #123c3510;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: #93601f; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
h1 { font-size: 46px; margin-bottom: 18px; }
h2 { font-size: 30px; margin-bottom: 18px; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.4; margin: 6px 0 10px; }

.skip { position: absolute; top: -80px; left: 20px; z-index: 1000; background: #fff; padding: 10px; }
.skip:focus { top: 10px; }

/* Band + header */
.preview-band {
  min-height: 36px;
  background: #031b21;
  color: #c7d2cd;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.025em;
  padding: 7px 16px;
  text-align: center;
}
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #d8a65f; flex-shrink: 0; }
.band-divider { opacity: 0.4; padding: 0 10px; }

.header-wrap { background: var(--navy); border-bottom: 1px solid #bd945d40; }
.site-header {
  max-width: 1240px;
  margin: auto;
  min-height: 112px;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #e7e9dc;
}
.brand { display: flex; gap: 13px; align-items: center; text-decoration: none; color: #f9f1df; }
.brand:hover { color: #f9f1df; }
.brand-mark {
  font-family: Georgia, serif;
  font-size: 40px;
  border: 1px solid #b58d55;
  background: #103c40;
  color: #f9f1df;
  border-radius: 50%;
  line-height: 54px;
  width: 58px;
  height: 58px;
  text-align: center;
  letter-spacing: -5px;
  flex-shrink: 0;
}
.brand-mark span { color: var(--gold-soft); }
.brand strong { display: block; font-family: Georgia, serif; font-weight: 400; font-size: 23px; letter-spacing: 0.01em; line-height: 1.25; }
.brand small { display: block; font-size: 11px; letter-spacing: 0.04em; color: #c0cec9; margin-top: 3px; text-transform: uppercase; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a, .header-cta { text-decoration: none; font-size: 14px; font-weight: 500; padding: 10px 0; color: #e7e9dc; }
.site-header nav a[aria-current='page'] { color: var(--gold-soft); box-shadow: inset 0 -2px 0 var(--gold-soft); }
.site-header nav a:hover, .header-cta:hover { color: #ebc58e; }
.header-cta { border: 1px solid #b58d5580; border-radius: 999px; padding: 8px 16px; white-space: nowrap; }

main { max-width: 1160px; margin: 0 auto; padding: 0 40px 80px; min-height: 60vh; }

/* Banner + hero */
.ledger-banner {
  margin: 28px -12px 0;
  border-radius: 25px 25px 0 0;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid #183e3e;
  border-bottom: 0;
}
.ledger-banner img { display: block; width: 100%; height: auto; aspect-ratio: 1672/941; object-fit: contain; }
.ledger-banner figcaption { font-size: 11px; letter-spacing: 0.035em; color: #c9d3cc; padding: 12px 25px; border-top: 1px solid #bd945d35; margin: 0; }

.hero {
  position: relative;
  background: var(--hero);
  color: #f3f0e6;
  border-radius: 0 0 25px 25px;
  margin: 0 -12px 48px;
  padding: 34px 44px 32px;
  box-shadow: 0 15px 35px #123c3510;
}
.hero.solo { border-radius: 25px; margin-top: 36px; }
.hero .eyebrow { color: #dbb579; display: flex; align-items: center; gap: 10px; }
.hero-spark { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 0 0 5px #dfb16f12; }
.hero h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 14px; color: #fffaf0; }
.hero h1 em { font-style: italic; color: #ebc58e; }
.hero-copy { font-size: 17px; color: #d6dfd5; margin-bottom: 22px; max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-block;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  background: var(--gold-soft);
  color: #102f31;
}
.button:hover { background: #edc58d; color: #102f31; }
.button.ghost { background: transparent; color: #f4e9d5; border-color: #b595604d; }
.button.ghost:hover { border-color: var(--gold-soft); color: #fff; }
.button.teal { background: #245b56; border-color: #245b56; color: #fff; }
.button.teal:hover { background: #174842; color: #fff; }

/* Sections */
.eyebrow { text-transform: uppercase; font-size: 11px; letter-spacing: 0.17em; font-weight: 600; color: #5a6552; margin-bottom: 16px; }
.section { margin-top: 56px; }
.section-bar { display: flex; align-items: baseline; gap: 20px; justify-content: space-between; margin: 0 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.section-bar h2 { margin: 0; }
.section-bar > a { font-size: 14px; color: #225b57; text-decoration: none; white-space: nowrap; }
.section-bar > a:hover { color: #93601f; }

.research-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; margin: 22px 0 10px; }
.research-card {
  --topic: #23635b;
  position: relative;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  text-decoration: none;
  display: block;
  min-width: 0;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.research-card:before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--topic), #d8ad71); }
.research-card:hover { border-color: #b69b6e; box-shadow: 0 15px 35px #123c3518; color: inherit; }
.research-card .eyebrow { margin-bottom: 12px; font-size: 10px; }
.research-card h3 { font-family: Georgia, serif; font-size: 24px; font-weight: 400; line-height: 1.3; }
.research-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 0; }
.research-card .count { font-family: Georgia, serif; font-size: 34px; color: var(--topic); line-height: 1; margin: 6px 0 8px; }
.topic-council { --topic: #23635b; }
.topic-planning { --topic: #526451; }
.topic-parks { --topic: #2f6b3f; }
.topic-analysis { --topic: #956527; }

/* Record rows */
.record-list { margin: 0; padding: 0; list-style: none; }
.record-row { display: flex; align-items: flex-start; gap: 23px; border-bottom: 1px solid var(--line); padding: 24px 0; text-decoration: none; }
.record-row:hover h3 { color: #93601f; }
.date-tile {
  min-width: 64px;
  background: #e8eee5;
  color: #265e56;
  border-radius: 3px;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.date-tile .mon { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }
.date-tile .day { font-family: Georgia, serif; font-size: 26px; }
.date-tile .yr { font-size: 10px; opacity: 0.8; }
.record-row h3 { font-family: Georgia, serif; font-weight: 400; font-size: 22px; line-height: 1.3; margin: 0 0 6px; }
.record-row p { font-size: 15px; color: var(--muted); margin: 0 0 8px; }
.meta { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; font-size: 11px; color: var(--muted); line-height: 1.5; }
.badge { display: inline-block; border: 1px solid #cbd7c0; background: #e9efe4; color: #31594c; padding: 2px 9px; border-radius: 3px; font-size: 10px; letter-spacing: 0.04em; line-height: 1.6; text-transform: uppercase; }
.badge.audio { background: #f5eddf; border-color: #e4d3b4; color: #7a5420; }

.month-label { font-family: Georgia, serif; font-size: 22px; margin: 44px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--green); }

/* Notices */
.coverage-note {
  background: #edf0e7;
  border: 1px solid #d9e1d3;
  border-radius: 5px;
  padding: 18px 22px;
  font-size: 15px;
  margin: 24px 0;
}
.coverage-note strong { color: var(--green); }

/* Article */
.article { max-width: 760px; margin: 0 auto; }
.article-head { padding-top: 56px; margin-bottom: 30px; border-bottom: 1px solid var(--line); padding-bottom: 26px; }
.article-head h1 { font-size: clamp(32px, 4.4vw, 48px); }
.article-head .dek { font-family: Georgia, serif; font-size: 21px; line-height: 1.45; color: var(--muted); margin-bottom: 18px; }
.prose { font-size: 18px; line-height: 1.75; overflow-wrap: anywhere; }
.prose h2 { font-size: 28px; margin-top: 44px; }
.prose h3 { font-size: 21px; margin-top: 34px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 26px 0; padding: 4px 0 4px 22px; border-left: 3px solid #bda16d; color: #31474a; font-family: Georgia, serif; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 38px 0; }
.prose img { border-radius: 4px; margin: 10px 0; }
.prose a { color: #225b57; }
.article-foot { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* Footer */
footer.site-footer {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid #d4dacd;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.footer-brand { font-family: Georgia, serif; font-size: 22px; letter-spacing: 0.01em; text-decoration: none; }
.footer-brand span { font-family: Arial, Helvetica, sans-serif; font-size: 11px; display: block; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; margin-top: 4px; }
.footer-tag { font-size: 14px; color: var(--muted); margin-top: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 20px; justify-content: flex-end; align-content: flex-start; font-size: 13px; }
.footer-links a { text-decoration: none; }
.footer-note { grid-column: 1/-1; font-size: 11px; line-height: 1.7; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); margin: 0; }

@media (max-width: 860px) {
  .site-header { padding: 20px 22px; gap: 14px; flex-wrap: wrap; min-height: 0; }
  .brand { flex: 1; }
  .site-header nav { order: 3; flex-basis: 100%; gap: 22px; border-top: 1px solid #ffffff1f; padding-top: 10px; overflow-x: auto; }
  .site-header nav a { font-size: 14px; }
  main { padding: 0 22px 55px; }
  footer.site-footer { grid-template-columns: 1fr; padding: 30px 22px; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .preview-band { font-size: 10px; gap: 7px; }
  .band-divider { padding: 0 3px; }
  .brand-mark { width: 46px; height: 46px; line-height: 44px; font-size: 32px; }
  .brand strong { font-size: 19px; }
  .brand small { font-size: 9px; }
  .header-cta { display: none; }
  main { padding: 0 16px 45px; }
  .ledger-banner { margin: 16px -16px 0; border-radius: 0; border-left: 0; border-right: 0; }
  .ledger-banner figcaption { font-size: 10px; padding: 10px 16px; line-height: 1.5; }
  .hero { margin: 0 -16px 36px; padding: 26px 20px; border-radius: 0 0 22px 22px; }
  .hero.solo { margin-top: 20px; border-radius: 18px; }
  .hero h1 { font-size: 32px; line-height: 1.15; }
  .hero-copy { font-size: 16px; }
  .record-row { gap: 14px; padding: 20px 0; }
  .date-tile { min-width: 54px; padding: 8px 6px; }
  .date-tile .day { font-size: 22px; }
  .record-row h3 { font-size: 19px; }
  .research-card h3 { font-size: 22px; }
  .prose { font-size: 17px; }
}
@media print {
  .preview-band, .site-header nav, .header-cta, .ledger-banner, footer.site-footer { display: none; }
  .header-wrap, .hero { background: #fff; color: #000; box-shadow: none; }
  .hero h1, .hero-copy, .hero .eyebrow { color: #000; }
}

/* ---------------------------------------------------------------------------
   Phase II components: search, record panels, tables, timeline, accessibility
   --------------------------------------------------------------------------- */
:root { --slate: #3d5156; --mark: #f6e3bf; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; letter-spacing: 0; }
.fine { font-size: 13px; color: var(--muted); }
.gap { color: #8a5a1c; font-weight: 600; }
mark { background: var(--mark); color: inherit; padding: 0 2px; border-radius: 2px; }

/* Header search */
.site-header { flex-wrap: wrap; }
.header-search { display: flex; flex: 1 1 260px; max-width: 360px; }
.header-search input, .hero-search input, .search-form input[type=search] {
  flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 10px 14px;
  border: 1px solid #cbd6c6; border-radius: 999px 0 0 999px; background: var(--white); color: var(--ink);
}
.header-search input { border-color: #b58d5566; background: #0b333a; color: #f3f0e6; }
.header-search input::placeholder { color: #a9bab4; }
.header-search button, .hero-search button, .search-form button {
  font: inherit; font-size: 14px; font-weight: 600; padding: 10px 16px; border: 1px solid var(--gold-soft);
  background: var(--gold-soft); color: #102f31; border-radius: 0 999px 999px 0; cursor: pointer;
}
.header-search button:hover, .hero-search button:hover, .search-form button:hover { background: #edc58d; }
.hero-search { display: flex; max-width: 680px; margin: 4px 0 16px; }
.hero-search input { padding: 13px 18px; font-size: 16px; }

.search-form { margin-top: 6px; }
.search-form > input[type=search] { width: 100%; border-radius: 999px; padding: 13px 18px; font-size: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-top: 14px; }
.filters label { display: flex; flex-direction: column; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: #c4d1c6; gap: 4px; }
.filters select { font: inherit; font-size: 14px; text-transform: none; letter-spacing: 0; padding: 8px 10px; border-radius: 6px; border: 1px solid #cbd6c6; background: var(--white); color: var(--ink); min-width: 140px; }
.filters button { border-radius: 999px; }
.search-results .record-row { padding: 18px 0; }

/* Breadcrumbs */
.breadcrumbs { margin: 22px 0 0; font-size: 13px; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: #9aa8a3; }
.breadcrumbs a { color: #225b57; text-decoration: none; }
.breadcrumbs [aria-current] { color: var(--ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Record panel and TOC */
.record-panel {
  display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: 8px 22px;
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 5px; padding: 18px 22px; margin: 0 0 26px; font-size: 15px;
}
.record-panel dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding-top: 2px; }
.record-panel dd { margin: 0; overflow-wrap: anywhere; }
.record-panel a { color: #225b57; }
.toc { background: #eef1e9; border: 1px solid #d9e1d3; border-radius: 5px; padding: 16px 22px; margin: 0 0 30px; font-size: 15px; }
.toc h2 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 8px; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2 240px; column-gap: 28px; }
.toc li { break-inside: avoid; margin-bottom: 3px; }
.toc a { color: #225b57; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose h3[id] { scroll-margin-top: 16px; }

/* Badges by record type */
.badge.type-packet-review { background: #f5eddf; border-color: #e4d3b4; color: #7a5420; }
.badge.type-analysis { background: #eceef3; border-color: #d3d8e2; color: #3d4a63; }
.badge.type-audio-overview { background: #f5eddf; border-color: #e4d3b4; color: #7a5420; }

/* Panels, tables, empty states */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 5px; padding: 20px 24px; margin-top: 40px; }
.panel h2 { font-size: 24px; }
.plain-list { list-style: none; padding: 0; margin: 0 0 10px; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.plain-list li:last-child { border-bottom: 0; }
.notice-list { padding-left: 1.1em; font-size: 15px; }
.transparency { background: #edf0e7; border: 1px solid #d9e1d3; border-radius: 5px; padding: 22px 26px; }
.transparency h2 { font-size: 24px; }
.transparency a { color: #225b57; font-weight: 600; }
.empty-state { border: 1px dashed #c9d2c4; border-radius: 5px; padding: 22px 24px; margin: 22px 0; background: #fbfaf6; }
.empty-state p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.table-scroll { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; }
table.data caption { text-align: left; padding: 10px 14px; font-weight: 600; }
table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: #f2f3ec; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data a { color: #225b57; }
.amount { font-variant-numeric: tabular-nums; display: block; }
.bar { display: block; height: 6px; background: var(--gold-soft); border-radius: 3px; margin-top: 4px; }
.prose-narrow { max-width: 760px; }
.prose-narrow li { margin-bottom: 6px; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 10px 0 0; border-left: 2px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0 14px 20px; position: relative; border-bottom: 1px solid var(--line); font-size: 15px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.timeline time { font-family: Georgia, serif; color: var(--green); }
.timeline a { color: #225b57; }

/* Footer columns */
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; font-size: 13px; }
.footer-cols h2 { font-family: Arial, Helvetica, sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 8px; }
.footer-cols a { display: block; text-decoration: none; padding: 3px 0; }
.footer-cols a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .header-search { order: 4; flex-basis: 100%; max-width: none; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .record-panel { grid-template-columns: 1fr; gap: 2px; padding: 16px; }
  .record-panel dd { margin-bottom: 8px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .toc ol { columns: 1; }
  .hero-search { flex-direction: column; gap: 8px; }
  .hero-search input, .hero-search button { border-radius: 999px; }
  .filters select { min-width: 0; width: 100%; }
  .filters label { flex: 1 1 45%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .badge, .record-panel, .panel { border: 1px solid CanvasText; }
}

/* Restrained banner: a cropped strip, not a full-height poster. */
.ledger-banner img { aspect-ratio: auto; height: clamp(190px, 30vw, 360px); object-fit: cover; object-position: 50% 42%; }
/* Entry headings carry their own numbers, so the TOC shows no list markers. */
.toc ol { list-style: none; padding-left: 0; }
