/* Warm section bands and tactile cards keep the village's natural identity. */
:root {
  --ink: #1b3b2b;
  --muted: #52605c;
  --paper: #ffffff;
  --gold: #d4a359;
  --forest: #2e6f40;
  --hunter: #355e3b;
  --sage: #a8c3a0;
  --soft-border: rgba(27, 59, 43, .12);
  --grounded-band: linear-gradient(180deg, #23442bcc 0, #23442b00 110px), var(--hunter);
  --card-shadow: 0 2px 4px rgba(20, 49, 36, .04), 0 16px 32px -12px rgba(20, 49, 36, .20);
  --panel-shadow: 0 12px 36px rgba(0, 0, 0, .05);
  color: #1f2937;
  background: #e2ece5;
}
#main::before { background: #e2ece5; }
.history-gallery.history-photo-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 6px 20px; margin: 0 -6px; scrollbar-width: thin; scrollbar-color: #53765c #d3dfd4; }
.history-gallery.history-photo-track a { flex: 0 0 calc((100% - 40px) / 3); height: 240px; aspect-ratio: auto; scroll-snap-align: start; scroll-margin-inline: 6px; }
.history-photo-track img { object-fit: contain; background: #e9e6dd; }
.history-gallery-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px 24px; }
.history-gallery-footer .history-caption { margin: 0; max-width: 520px; }
.history-gallery-controls { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.history-gallery-controls[hidden] { display: none; }
.history-gallery-controls button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #355e3b; border-radius: 50%; background: #355e3b; color: #fff8eb; font-size: 24px; cursor: pointer; transition: background-color .2s ease; }
.history-gallery-controls button:hover { background: #203f30; }
.history-gallery-controls button[aria-disabled="true"] { background: #dbe3d7; border-color: #a0b09c; color: #52605c; cursor: default; }
.history-position { min-width: 86px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: #35543d; }
@media (max-width: 960px) { .history-gallery.history-photo-track a { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 560px) {
  .history-gallery.history-photo-track a { flex-basis: 88%; height: 230px; }
  .history-gallery-footer { align-items: flex-start; flex-direction: column; gap: 14px; }
  .history-gallery-controls { align-self: flex-end; }
}
.home-heading::before, .gov-heading::before, .business-directory-heading::before,
.home-soft:has(#updates-title)::before, .business-listing-band::before,
.tour-planning-intro::before, .gov-president::before,
footer.site-footer::before, footer.site-footer::after { content: none; }
.home-heading .eyebrow.dark::before, .gov-heading .eyebrow.dark::before,
.business-directory-heading .eyebrow.dark::before { content: none; }
.home-soft, .home-soft:has(#updates-title), .home-soft:has(#explore-title),
.gov-meetings, .docs-archive-band, .tour-explore-band, .tour-center-band,
.business-listing-band {
  background: #e2ece5;
  border-color: #dfe5de;
  box-shadow: none;
}
.home-soft:has(#explore-title) { background: #e2ece5; border-color: #cddacf; }
.tour-center-band { background: #e2ece5; border-color: #cdd7cd; }
.home-section:has(#history-title) { background: #e2ece5; }
.home-soft:has(#updates-title) .home-heading::after { content: none; }
.home-soft:has(#updates-title) .home-heading h2 { text-shadow: none; }
.tour-planning-intro .eyebrow { color: #765322; }
.tour-planning-intro, .gov-president { color: #1f2937; }
.tour-planning-intro h2, .gov-president h3 { color: var(--ink); }
/* Each page has a forest-green anchor, edged with gold and shaded softly at the top. */
.home-soft:has(#updates-title), .gov-meetings, .docs-archive-band,
.tour-explore-band, .business-listing-band {
  background: var(--grounded-band);
  color: #fbf9f5;
  border-top: 2px solid #d4a359;
  border-bottom: 1px solid #d4a35980;
}
.home-soft:has(#updates-title) .home-heading h2,
:is(.gov-meetings, .docs-archive-band, .tour-explore-band) .gov-heading h2,
.business-listing-band h2 { color: #fbf9f5; }
.home-soft:has(#updates-title) .home-heading p,
:is(.gov-meetings, .docs-archive-band, .tour-explore-band) .gov-heading p,
.business-listing-band p, .docs-archive-band .docs-results { color: #e1e8df; }
.home-soft:has(#updates-title) .home-heading .eyebrow,
:is(.gov-meetings, .docs-archive-band, .tour-explore-band) .gov-heading .eyebrow,
.business-listing-band .eyebrow { color: #f0d2a3; }
.gov-meetings .gov-all-documents { color: #f0d2a3; }
/* Cards keep dark text on light surfaces inside the grounding bands. */
.gov-year, .docs-row, .docs-tools, .gov-calendar, .tour-attraction,
.home-soft:has(#updates-title) .home-info { color: #1f2937; }
.tour-planning-intro, .gov-president, .gov-records-panel {
  background: #f3eee4;
  box-shadow: none;
  border-color: #dce5df;
}
.tour-planning-intro p, .gov-president .gov-term { color: #52605c; }
.gov-president .gov-role { color: #765322; }
.gov-president-contact>span { color: #52605c; }
.tour-planning-intro a, .gov-president a { color: #235944; }
.gov-president .gov-contact-call { background: white; color: #235944; border-color: #b9cbbf; }
.home-section:has(#quick-title), .home-soft:has(#updates-title) .home-info,
.gov-official, .community-card, .tour-attraction, .tour-rental-card,
.docs-row, .docs-tools, .gov-calendar, .history-details {
  background: #fff;
  border: 1px solid var(--soft-border);
  box-shadow: var(--card-shadow);
}
.home-soft:has(#updates-title) .home-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-info p { flex: 1; }
.home-soft:has(#updates-title) .home-info .info-icon,
.tour-attraction .tour-icon, .docs-feature .docs-feature-icon {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1b3b2b;
}
.home-info .info-icon .line-icon,
.tour-attraction .tour-icon svg, .docs-feature .docs-feature-icon svg { width: 34px; height: 34px; }
.home-info a, .tour-attraction>a, .tour-planning-intro>a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  max-width: 100%;
  padding: 11px 18px;
  border: 1px solid #a6b7aa;
  border-radius: 28px;
  background: #f2f4f1;
  color: #1b3b2b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.home-info a:is(:hover, :focus-visible), .tour-attraction>a:is(:hover, :focus-visible),
.tour-planning-intro>a:is(:hover, :focus-visible) {
  border-color: #1b3b2b;
  background: #e5ece5;
  color: #1b3b2b;
  text-decoration: none;
}
.home-info a span { display: inline-block; transition: transform .2s ease; }
.home-info a:is(:hover, :focus-visible) span { transform: translateX(4px); }
.home-soft:has(#updates-title) .home-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .07);
}
.explore-tile {
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  min-height: 500px;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #1b3b2b;
  color: #fff;
  border: 1px solid var(--soft-border);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.explore-tile::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 20%, rgba(9, 28, 20, .25) 42%, rgba(9, 28, 20, .94) 100%); pointer-events: none; }
.explore-tile img { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: cover; margin: 0; padding: 0; border-radius: 0; }
.explore-tile span { position: relative; inset: auto; z-index: 2; display: grid; gap: 14px; padding: 32px; }
.explore-tile .explore-kicker { color: #ffe2b3; }
.explore-tile small { color: #fff8eb; font-size: 14px; }
.explore-tile strong { color: #fff8eb; }
.explore-tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 14px 34px #00000012; }
.explore-tile:hover img { transform: scale(1.035); }
/* Frame white surfaces consistently while retaining category accent edges. */
.quick-grid a.quick-card, .business-card, .community-card, .tour-festival,
.tour-planning, .tour-center-facts>div, .gov-year, .gov-committee,
.home-section:has(#history-title) .history-details { border-color: var(--soft-border); }
/* Warm ivory framing gives the service cards a distinct sage surface. */
.home-section:has(#quick-title) { background: #f3eee4; border-color: #d8cfbc; }
.home-section:has(#quick-title) h2 { color: #1f2937; }
.quick-grid a.quick-card {
  background: linear-gradient(145deg, #fffdf8, #f0eee4);
  border-color: #c8d1c5;
  border-top: 3px solid #53765c;
  box-shadow: var(--card-shadow);
}
.quick-grid a.quick-card:is(:hover, :focus-visible) { background: #f8f5ec; border-color: var(--hunter); box-shadow: 0 18px 32px -12px #1b3b2b40; }
.quick-grid a.quick-card .quick-icon { background: var(--forest); color: #f5dfb9; border-color: var(--forest); }
.quick-grid a.quick-card .quick-arrow { color: #765322; }
/* A deep featured profile anchors the quieter ivory directory cards. */
.gov-president {
  background: radial-gradient(ellipse at top right, #53765c88, transparent 75%), #203f30;
  border: 1px solid #496a51;
  border-top: 4px solid var(--gold);
  box-shadow: inset 0 1px 0 #ffffff66, var(--card-shadow);
}
.gov-official {
  background: linear-gradient(145deg, #fffdf8, #f1f0e8);
  border: 1px solid #c4cec1;
  border-top: 3px solid var(--hunter);
  box-shadow: inset 0 1px 0 #ffffff80, var(--card-shadow);
}
.gov-official .gov-role { color: #35543d; font-weight: 700; background: #e5ebdf; padding: 6px 10px; border-radius: 5px; }
.gov-official h3 { color: #23432b; margin-top: 18px; }
.gov-president h3 { color: #fff8eb; }
.gov-president .gov-role { color: #f0d2a3; }
.gov-president .gov-term, .gov-president-contact>span { color: #e0e8df; }
.gov-president a { color: #ffe2b3; }
.gov-president-contact { border-top: 1px solid #ffffff30; padding-top: 24px; }
.gov-official .gov-contact-call, .gov-president .gov-contact-call {
  background: var(--hunter);
  border-color: var(--hunter);
  color: #fff8eb;
}
.gov-official .gov-contact-call:hover, .gov-president .gov-contact-call:hover { background: #25492d; border-color: #25492d; }
/* Shared material, edge definition and depth across the public-facing cards. */
.home-soft:has(#updates-title) .home-info,
.community-card, .tour-attraction, .tour-rental-card, .gov-committee,
.gov-calendar, .history-details, .docs-tools, .docs-row {
  background: #fbf9f3;
  border-color: #cbd2c6;
  box-shadow: var(--card-shadow);
}
.home-soft:has(#updates-title) .home-info,
.tour-attraction, .tour-rental-card { border-top: 3px solid #d4a359; }
.business-card, .community-card, .tour-festival, .docs-feature, .explore-tile {
  box-shadow: var(--card-shadow);
}
.gov-official, .gov-president, .home-info, .quick-grid a.quick-card,
.business-card, .community-card, .tour-attraction, .tour-rental-card, .docs-feature {
  border-radius: 16px;
}
.gov-official:hover, .community-card:hover, .tour-attraction:hover, .docs-feature:hover {
  border-color: #78917b;
  box-shadow: 0 4px 8px #1431240a, 0 22px 40px -16px #1431244d;
}
.home-info a, .tour-attraction>a, .tour-planning-intro>a {
  background: #e7eddf;
  border-color: #a5b79e;
}
.business-card.business-card-no-photo { border-color: var(--soft-border); border-left-color: var(--business-accent); }
.docs-feature { border-right-color: var(--soft-border); border-bottom-color: var(--soft-border); border-left-color: var(--soft-border); }
.business-card, .community-card, .tour-festival { padding: 0; overflow: hidden; border-radius: 12px; }
.business-card .business-photo, .community-card .business-photo { padding: 0; margin: 0; min-height: 220px; }
.tour-festival-visual>img { margin: 0; padding: 0; min-height: 220px; height: auto; aspect-ratio: 4 / 3; }
footer.site-footer { background: var(--grounded-band); border-top: 2px solid #d4a359; box-shadow: none; }
.footer-inner { padding-block: 64px 56px; gap: 56px; }
.footer-inner>div { gap: 8px; }
.footer-inner .footer-label { color: #e8d8c8; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: none; margin-bottom: 16px; }
.footer-inner>div>a:not(.footer-identity) { font-size: 16px; line-height: 1.7; min-height: 44px; color: #f4f7f4; }
.footer-intro p { font-size: 16px; line-height: 1.8; color: #e0e8e2; }
.footer-intro>small, .footer-brand small { font-size: 12px; line-height: 1.7; }
.footer-bottom { font-size: 12px; background: transparent; border-top: 1px solid #ffffff26; color: #e0e8e2; }
/* A slimmer mast and Hunter Green glass connect the header with the dark panels. */
.site-header .mast { padding-block: 16px; }
.site-header.is-past-hero,
.site-header.header-over-hero.nav-enhanced.is-past-hero:is(.is-scrolled, .menu-open) {
  background: var(--hunter);
  color: #fff8eb;
  border-bottom-color: rgba(240, 210, 163, .3);
  box-shadow: 0 4px 20px rgba(27, 59, 43, .12);
}
.site-header.is-past-hero::after { opacity: 0; }
.site-header.is-past-hero .mast .brand { color: #fff8eb; text-shadow: none; }
.site-header.is-past-hero .brand small { color: #ffe2b3; }
.site-header.is-past-hero .mast nav a { color: #fff8eb; text-shadow: none; }
.site-header.is-past-hero .mast nav a:is(:hover, [aria-current="page"]) { color: #ffe2b3; }
.site-header .mast nav a::after { background: #d4a359; }
.site-header.is-past-hero .nav-toggle { color: #fff8eb; border-color: #ffe2b380; background: #1b3b2b33; }
.site-header.is-past-hero .nav-toggle-icon span { background: #ffe2b3; }
.site-header.is-past-hero .mast nav { border-top-color: #ffe2b333; }
.site-header .mast nav a[aria-current="page"],
.site-header.is-past-hero .mast nav a[aria-current="page"] { background: transparent; }
@media (max-width: 960px) {
  .site-header .mast { padding-block: 14px; }
  .site-header .mast nav a::after { display: block; left: 12px; width: calc(100% - 24px); bottom: 4px; }
}
@supports (backdrop-filter: blur(12px)) {
  .site-header.is-past-hero,
  .site-header.header-over-hero.nav-enhanced.is-past-hero:is(.is-scrolled, .menu-open) {
    background: rgb(53 94 59 / .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}
@media (max-width: 760px) {
  .footer-inner { gap: 32px; padding-block: 48px 40px; }
}
@media (max-width: 560px) {
  .explore-tile { min-height: 430px; }
  .explore-tile span { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-soft:has(#updates-title) .home-info, .explore-tile, .home-info a span { transition: none; }
  .home-soft:has(#updates-title) .home-info:hover, .explore-tile:hover,
  .explore-tile:hover img, .home-info a:is(:hover, :focus-visible) span { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-past-hero,
  .site-header.header-over-hero.nav-enhanced.is-past-hero:is(.is-scrolled, .menu-open) { background: var(--hunter); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (forced-colors: active) {
  .site-header.is-past-hero,
  .site-header.header-over-hero.nav-enhanced.is-past-hero:is(.is-scrolled, .menu-open) { background: Canvas; color: CanvasText; }
  .site-header.is-past-hero .mast .brand, .site-header.is-past-hero .mast nav a,
  .site-header.is-past-hero .nav-toggle { color: LinkText; }
  .site-header.is-past-hero .nav-toggle-icon span { background: ButtonText; }
}
