﻿:root {
  --red: #b0181a;
  --red-dark: #7f1012;
  --red-darker: #5f0a0d;
  --black: #111111;
  --white: #ffffff;
  --gray: #f3f3f3;
  --header-bg-top: #eef3f7;
  --header-bg-bottom: #dfe9f2;
  --header-ink: #172f45;
  --focus-ring: #0a5a9f;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", "Calibri", sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  background: linear-gradient(180deg, var(--header-bg-top) 0%, var(--header-bg-bottom) 100%);
  color: var(--header-ink);
  border-bottom: 4px solid var(--red);
  box-shadow: 0 10px 24px rgba(23, 47, 69, 0.16);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 6vw 18px;
  gap: 16px;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid rgba(23, 47, 69, 0.16);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
}

.brand-image {
  width: min(94vw, 720px);
  height: auto;
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.12));
}

.brand-text {
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
}

.brand-text .city {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.brand-text .tagline {
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: #555;
}

.nav-toggle {
  background: var(--red);
  border: 0;
  width: 48px;
  height: 44px;
  border-radius: 6px;
  box-shadow: inset 0 -4px 0 var(--red-dark);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.nav-toggle .bar {
  width: 24px;
  height: 3px;
  background: var(--white);
  display: block;
}

.main-nav {
  padding: 14px 6vw 16px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.nav-link {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--white);
  background: linear-gradient(180deg, var(--red) 0%, #9f1416 100%);
  border: 1px solid var(--red-darker);
  height: 46px;
  min-width: 160px;
  padding: 0 18px;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  box-shadow: inset 0 -4px 0 var(--red-dark), var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus {
  transform: translateY(-2px);
  box-shadow: inset 0 -2px 0 var(--red-darker), 0 14px 22px rgba(0, 0, 0, 0.2);
}

.nav-link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.nav-item {
  position: relative;
}

.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: none;
  z-index: 10;
}

.submenu li a {
  display: block;
  padding: 10px 12px;
  color: var(--black);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
}

.submenu li a:hover,
.submenu li a:focus {
  background: var(--gray);
}

.submenu li a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 1px;
}

.nav-item.open > .submenu {
  display: block;
}

@media (hover: hover) and (min-width: 981px) {
  .nav-item.has-submenu:hover > .submenu,
  .nav-item.has-submenu:focus-within > .submenu {
    display: block;
  }
}

.content {
  padding: 40px 6vw 60px;
}

.intro {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 30px;
}

.intro-text h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  color: var(--black);
}

.intro-text {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 10px;
  padding: 24px 28px;
}

.intro-text p {
  margin-bottom: 16px;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.7;
}

.intro-text .lead {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.officials h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  text-align: center;
}

.ordinances h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
}

.ordinances-lead {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: #333;
}

.ordinance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.ordinance-card {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 10px;
  padding: 18px;
  min-height: 120px;
  text-align: center;
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.ordinance-card h3 {
  font-size: 1.05rem;
  color: #222;
}

.ordinance-card:hover,
.ordinance-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
}

.ordinance-card:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.codes h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
}

.codes-lead {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: #333;
}

.codes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
}

.codes-card {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 10px;
  padding: 18px;
  min-height: 120px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.codes-card:hover,
.codes-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
}

.codes-card:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.elections h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
}

.elections-lead {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: #333;
}

.elections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.elections-card {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 10px;
  padding: 18px;
  min-height: 120px;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.elections-card:hover,
.elections-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
}

.elections-card:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.meetings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.meetings h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.meetings-lead {
  font-size: 1.05rem;
  color: #333;
}

.year-selector {
  position: relative;
}

.year-toggle {
  background: var(--red);
  color: var(--white);
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 var(--red-dark);
}

.year-menu {
  position: absolute;
  right: 0;
  margin-top: 8px;
  background: var(--white);
  border: 2px solid #d2d2d2;
  border-radius: 10px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
  padding: 8px;
  min-width: 140px;
  display: none;
  z-index: 20;
}

.year-selector.open .year-menu {
  display: block;
}

.year-option {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--black);
  border-radius: 6px;
  font-weight: 600;
}

.year-option:hover,
.year-option:focus {
  background: var(--gray);
}

.year-option.is-active {
  background: var(--red);
  color: var(--white);
}

.meetings-list {
  display: grid;
  gap: 14px;
}

.meeting-month {
  font-size: 1.4rem;
  margin: 10px 0 4px;
  text-align: left;
}

.meeting-row {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.meeting-date {
  font-weight: 700;
}

.meeting-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meeting-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 var(--red-dark);
}

.meeting-link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.meeting-link.is-disabled {
  background: #cfcfcf;
  color: #6b6b6b;
  cursor: not-allowed;
  box-shadow: none;
}

.finances-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.finances h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.finances-lead {
  font-size: 1.05rem;
  color: #333;
}

.finance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.finance-card {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 10px;
  padding: 18px;
  min-height: 120px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.finance-card:hover,
.finance-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
}

.finance-card:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.finance-card.is-disabled {
  background: #e1e1e1;
  color: #6b6b6b;
  cursor: not-allowed;
  box-shadow: none;
}

.water-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.water h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.water-lead {
  font-size: 1.05rem;
  color: #333;
}

.water-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 560px;
  margin: 0 auto;
}

.water-card {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 10px;
  padding: 18px;
  min-height: 140px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.water-card:hover,
.water-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
}

.water-card:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.water-card.is-disabled {
  background: #e1e1e1;
  color: #6b6b6b;
  cursor: not-allowed;
  box-shadow: none;
}

.water-title {
  font-size: 1.1rem;
}

.water-doc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: #444;
}

.water-icon {
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 0.7px;
  font-weight: 700;
  border: 1px solid #bcbcbc;
  border-radius: 999px;
  padding: 4px 8px;
}

.document-viewer {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.document-viewer h1 {
  font-size: 2.2rem;
  margin-bottom: 4px;
}

.document-lead {
  font-size: 1.05rem;
  color: #2b2b2b;
}

.document-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.document-action,
.document-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.document-action {
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red-darker);
  box-shadow: inset 0 -3px 0 var(--red-dark);
}

.document-action.document-action-secondary {
  background: #fff4f4;
  color: #7c1112;
  border: 2px solid #cf6768;
  box-shadow: none;
}

.document-back-link {
  background: var(--white);
  color: var(--black);
  border: 2px solid #d2d2d2;
}

.document-action:hover,
.document-back-link:hover {
  transform: translateY(-1px);
}

.document-action:focus-visible,
.document-back-link:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.document-frame-wrap {
  border: 2px solid #cfd8e0;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
  padding: 12px;
}

.document-frame {
  width: 100%;
  min-height: 72vh;
  border: 1px solid #cfd8e0;
  border-radius: 8px;
  background: #fff;
}

.document-note {
  color: #333;
  font-size: 0.95rem;
}

.businesses h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
}

.businesses-lead {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: #333;
}

.businesses-grid {
  display: grid;
  gap: 22px;
}

.category-selector {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
}

.category-toggle {
  background: var(--white);
  color: var(--black);
  border: 2px solid #d2d2d2;
  border-radius: 8px;
  padding: 10px 40px 10px 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  position: relative;
}

.category-toggle::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 1rem;
}

.category-menu {
  position: absolute;
  left: 0;
  margin-top: 8px;
  background: var(--white);
  border: 2px solid #d2d2d2;
  border-radius: 10px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.15);
  padding: 8px;
  min-width: 420px;
  max-height: none;
  columns: 2;
  column-gap: 12px;
  display: none;
  z-index: 20;
}

.category-selector.open .category-menu {
  display: block;
}

.category-option {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--black);
  border-radius: 6px;
  font-weight: 600;
  break-inside: avoid;
}

.category-option:hover,
.category-option:focus {
  background: var(--gray);
}

.category-top {
  position: fixed;
  right: 24px;
  bottom: 110px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  border: 2px solid var(--red);
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
  z-index: 50;
}

.category-top.is-visible {
  display: inline-flex;
}

.business-card {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 12px;
  padding: 18px;
}

.business-card h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.business-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.business-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.business-table th,
.business-table td {
  text-align: left;
  padding: 10px 12px;
  vertical-align: top;
  border-bottom: 1px solid #d6d6d6;
  word-break: break-word;
}

.business-table th:nth-child(1),
.business-table td:nth-child(1) {
  width: 34%;
}

.business-table th:nth-child(2),
.business-table td:nth-child(2) {
  width: 44%;
}

.business-table th:nth-child(3),
.business-table td:nth-child(3) {
  width: 22%;
}

.business-table thead th {
  background: #e6e6e6;
  font-weight: 700;
}

.business-table tbody tr:last-child td {
  border-bottom: 0;
}

.business-table a {
  color: var(--black);
  font-weight: 600;
  white-space: nowrap;
}

.churches h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
}

.churches-lead {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: #333;
}

.churches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.church-card {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 12px;
  padding: 18px;
}

.church-card h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.church-details p {
  margin-bottom: 8px;
}

.church-details p:last-child {
  margin-bottom: 0;
}

.organizations h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
}

.organizations-lead {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: #333;
}

.organizations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.organization-card {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 12px;
  padding: 18px;
}

.organization-card h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.organization-detail {
  color: #444;
}

.community h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
}

.community-lead {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: #333;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.community-card {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 12px;
  padding: 18px;
}

.community-card h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.community-text p {
  margin-bottom: 12px;
  color: #333;
  font-size: 1.02rem;
  line-height: 1.7;
}

.community-text p:last-child {
  margin-bottom: 0;
}

.projects h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
}

.projects-lead {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: #333;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.projects-card {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 12px;
  padding: 18px;
}

.projects-card h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.projects-text p {
  margin-bottom: 12px;
  color: #333;
  font-size: 1.02rem;
  line-height: 1.7;
}

.projects-text p:last-child {
  margin-bottom: 0;
}

.attractions h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
}

.attractions-lead {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: #333;
}

.attractions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.attractions-card {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 12px;
  padding: 18px;
}

.attractions-card h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.attractions-text p {
  margin-bottom: 12px;
  color: #333;
  font-size: 1.02rem;
  line-height: 1.7;
}

.attractions-text p:last-child {
  margin-bottom: 0;
}

.filmfriendly h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 16px;
}

.film-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-bottom: 24px;
}

.film-card {
  flex: 1 1 calc(25% - 22px);
  max-width: 320px;
}

.film-card {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 12px;
  padding: 18px;
}

.film-card h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.film-card ul {
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #333;
  line-height: 1.6;
}

.history h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 16px;
}

.history-panel {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 12px;
  padding: 22px;
}

.history-panel p {
  margin-bottom: 12px;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #333;
}

.history-panel p:last-child {
  margin-bottom: 0;
}

.contact h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
}

.contact-lead {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: #333;
}

.contact-status {
  max-width: 760px;
  margin: 0 auto 20px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid #d2d2d2;
  background: #f7f7f7;
  font-weight: 600;
  text-align: center;
}

.contact-status.is-success {
  border-color: #3b8a3b;
  background: #e7f6e7;
  color: #1f5a1f;
}

.contact-status.is-error {
  border-color: #b0181a;
  background: #fdecec;
  color: #7f1012;
}

.contact-form {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 12px;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  font-weight: 600;
  display: grid;
  gap: 8px;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  border: 2px solid #d2d2d2;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .full-width {
  grid-column: 1 / -1;
}

.contact-submit {
  justify-self: start;
  padding: 10px 18px;
  border-radius: 8px;
  border: 0;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 var(--red-dark);
}

.required {
  color: var(--red);
}

.cottonfest {
  display: grid;
  gap: 24px;
}

.cotton-banner {
  background: linear-gradient(135deg, #ffffff, #f3f3f3);
  border: 3px solid var(--red);
  border-radius: 16px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.cotton-banner::before,
.cotton-banner::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(176, 24, 26, 0.08);
  top: -40px;
  right: -40px;
}

.cotton-banner::after {
  top: auto;
  right: auto;
  bottom: -50px;
  left: -50px;
}

.cotton-badge {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: inset 0 -4px 0 var(--red-dark);
}

.cotton-date {
  margin-top: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
}

.cotton-info {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 12px;
  padding: 18px;
  font-size: 1.05rem;
}

.cotton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cotton-card {
  background: linear-gradient(155deg, #ffffff 0%, #eef2f7 100%);
  border: 1px solid #cfd8e2;
  border-radius: 14px;
  padding: 20px;
  min-height: 126px;
  font-size: 1.02rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(12, 24, 38, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: grid;
  align-content: center;
  gap: 8px;
}

.cotton-card-title {
  line-height: 1.35;
}

.cotton-card-meta {
  font-size: 0.78rem;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: #54677a;
}

.cotton-card--primary {
  background: linear-gradient(150deg, #fff8f8 0%, #f9ecec 52%, #f2f7ff 100%);
  border-color: #cfa0a2;
}

.cotton-card--primary .cotton-card-meta {
  color: #8f1b1f;
}

.cotton-card.is-active {
  border-color: var(--red);
  box-shadow: 0 12px 24px rgba(127, 16, 18, 0.2);
}

.cotton-card:hover,
.cotton-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(8, 16, 28, 0.16);
}

.cotton-card:focus-visible {
  outline: 3px solid #78b9ff;
  outline-offset: 2px;
}

.cotton-application[hidden] {
  display: none;
}

.cotton-application {
  background: linear-gradient(145deg, #ffffff 0%, #f1f6fb 100%);
  border: 1px solid #c9d4e0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 14px 28px rgba(8, 16, 28, 0.12);
}

.cotton-application.is-open {
  animation: cotton-form-reveal 220ms ease-out;
}

@keyframes cotton-form-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cotton-application-header h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.cotton-application-header p {
  color: #3c4a59;
  margin-bottom: 18px;
}

.cotton-form {
  display: grid;
  gap: 16px;
}

.cotton-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.cotton-field {
  display: grid;
  gap: 8px;
}

.cotton-field.full-width {
  grid-column: 1 / -1;
}

.cotton-field label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #243447;
}

.cotton-required {
  color: var(--red);
}

.cotton-field input,
.cotton-field textarea,
.cotton-field select {
  width: 100%;
  border: 2px solid #d4dee9;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: #13202c;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cotton-field textarea {
  resize: vertical;
  min-height: 140px;
}

.cotton-field select {
  cursor: pointer;
}

.cotton-field input:focus,
.cotton-field textarea:focus,
.cotton-field select:focus {
  outline: 0;
  border-color: #7fb3ea;
  box-shadow: 0 0 0 3px rgba(120, 185, 255, 0.28);
}

.cotton-form-actions {
  display: grid;
  gap: 10px;
}

.cotton-submit {
  justify-self: start;
  background: linear-gradient(180deg, #cf3d40 0%, #a62629 100%);
  color: var(--white);
  border: 0;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: inset 0 -3px 0 var(--red-dark), 0 10px 16px rgba(127, 16, 18, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cotton-submit:hover,
.cotton-submit:focus {
  transform: translateY(-2px);
  box-shadow: inset 0 -2px 0 var(--red-dark), 0 14px 20px rgba(127, 16, 18, 0.28);
}

.cotton-submit:focus-visible {
  outline: 3px solid #78b9ff;
  outline-offset: 2px;
}

.cotton-form-status {
  min-height: 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.cotton-form-status.is-success {
  color: #1f6b2e;
}

.cotton-form-status.is-error {
  color: #8e1a1d;
}

.events-header {
  text-align: center;
  margin-bottom: 20px;
}

.events h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.events-lead {
  font-size: 1.05rem;
  color: #333;
}

.events-controls {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.month-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  border: 2px solid #d2d2d2;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.month-nav.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.month-selector {
  position: relative;
}

.month-select {
  background: var(--white);
  color: var(--black);
  border: 2px solid #d2d2d2;
  border-radius: 8px;
  padding: 8px 36px 8px 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.month-nav.prev::before {
  content: "←";
  margin-right: 6px;
}

.month-nav.next::after {
  content: "→";
  margin-left: 6px;
}

.events-calendar {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.calendar-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  margin-bottom: 8px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-cell {
  background: var(--white);
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  min-height: 70px;
  padding: 6px;
  font-weight: 600;
  color: #333;
  overflow: hidden;
}

.calendar-cell span {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.calendar-cell.has-event {
  border-color: var(--red);
  box-shadow: inset 0 0 0 2px rgba(176, 24, 26, 0.2);
}

.calendar-cell.has-event span {
  background: var(--red);
  color: var(--white);
}

.calendar-title {
  margin-top: 6px;
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 600;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.calendar-more {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #555;
  font-weight: 600;
}


.calendar-cell.is-empty {
  background: transparent;
  border: 0;
}

.events-list {
  display: grid;
  gap: 16px;
}

.event-card {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 12px;
  padding: 16px;
}

.event-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #d6d6d6;
}

.event-row:last-child {
  border-bottom: 0;
}

.event-label {
  font-weight: 700;
  color: #444;
}

.event-title {
  font-weight: 700;
}

@media (max-width: 640px) {
  .calendar-grid,
  .calendar-head {
    grid-template-columns: repeat(7, minmax(32px, 1fr));
  }

  .event-row {
    grid-template-columns: 1fr;
  }
}
.finance-title {
  font-size: 1.1rem;
}

.finance-doc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: #444;
}

.finance-icon {
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 0.7px;
  font-weight: 700;
  border: 1px solid #bcbcbc;
  border-radius: 999px;
  padding: 4px 8px;
}

.events-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 130;
  padding: 24px;
}

.events-modal.open {
  display: flex;
}

.events-panel {
  position: relative;
  background: var(--white);
  padding: 18px;
  border-radius: 12px;
  border: 6px solid var(--red);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  width: min(92vw, 900px);
  max-height: 88vh;
  overflow-y: auto;
}

.events-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--black);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.events-modal-body {
  margin-top: 12px;
  display: grid;
  gap: 16px;
}

.events-modal-card {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 10px;
  padding: 14px;
}

.events-modal-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.events-modal-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #d6d6d6;
}

.events-modal-row:last-child {
  border-bottom: 0;
}

.events-modal-label {
  font-weight: 700;
  color: #444;
}

.section-title {
  font-size: 1.6rem;
  margin: 28px 0 16px;
  text-align: center;
}

.section-subtitle {
  font-size: 1.25rem;
  margin: 20px 0 14px;
  text-align: center;
}

.info-panel {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 16px;
  max-width: 920px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.info-panel p {
  margin-bottom: 8px;
  font-size: 1.02rem;
  color: #333;
}

.info-panel p:last-child {
  margin-bottom: 0;
}

.info-spacer {
  margin-top: 12px;
  font-weight: 600;
}

.info-panel-spaced {
  margin-top: 22px;
}

.info-button {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: inset 0 -3px 0 var(--red-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-button:hover,
.info-button:focus {
  transform: translateY(-2px);
  box-shadow: inset 0 -2px 0 var(--red-dark), 0 8px 14px rgba(0, 0, 0, 0.2);
}

.official-table-wrap {
  max-width: 920px;
  width: 100%;
  margin: 0 auto 20px;
  border: 2px solid #c7ced8;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f9fb 0%, #edf1f5 100%);
  box-shadow: 0 10px 22px rgba(22, 35, 50, 0.08);
}

.official-table {
  width: 100%;
  border-collapse: collapse;
}

.official-table td {
  padding: 14px 18px;
  border-top: 1px solid #d8dde4;
}

.official-table tr:first-child td {
  border-top: 0;
}

.official-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.55);
}

.official-name {
  display: block;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2a36;
}

.official-role {
  display: block;
  margin-top: 3px;
  font-size: 0.93rem;
  color: #4b5a6a;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.officials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.official-card {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
}

.official-photo {
  background: #e6e6e6;
  border: 2px solid #d2d2d2;
  border-radius: 8px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-weight: 600;
  margin-bottom: 14px;
}

.official-card h2,
.official-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.official-title {
  font-size: 0.95rem;
  color: #444;
}

@media (max-width: 640px) {
  .official-table td {
    padding: 12px 14px;
  }

  .official-name {
    font-size: 1rem;
  }

  .official-role {
    font-size: 0.86rem;
  }
}

.intro-media {
  display: grid;
  gap: 16px;
}

.photo-card {
  background: var(--gray);
  border: 2px solid #d2d2d2;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  color: #777;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-panel {
  position: relative;
  background: var(--white);
  padding: 18px;
  border-radius: 12px;
  border: 6px solid var(--red);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  max-width: min(90vw, 960px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-image {
  max-width: 100%;
  max-height: 65vh;
  display: block;
  border-radius: 6px;
}

.lightbox-caption {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--black);
  text-align: center;
  max-width: 720px;
  line-height: 1.5;
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--black);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 30px 6vw;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  font-size: 0.95rem;
}

.footer-powered {
  margin-top: 18px;
  display: flex;
  justify-content: flex-start;
}

.powered-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 2px solid var(--red-dark);
  box-shadow: inset 0 -3px 0 var(--red-dark), 0 8px 16px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.powered-badge:hover,
.powered-badge:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.32);
}

@media (max-width: 980px) {
  .intro {
    grid-template-columns: 1fr;
  }

  .intro-media {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    padding-bottom: 24px;
  }

  .main-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link {
    width: 100%;
    min-width: 0;
  }

  .submenu {
    position: static;
    margin-top: 8px;
  }

  .ordinance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .codes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .elections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meetings-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .finances-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .finance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .water-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .document-frame {
    min-height: 66vh;
  }
}

@media (max-width: 640px) {
  .top-bar {
    flex-direction: column;
    align-items: center;
  }

  .brand {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .brand-image {
    width: min(96vw, 560px);
    max-height: 210px;
  }

  .nav-toggle {
    align-self: center;
  }

  .document-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .document-action,
  .document-back-link {
    width: 100%;
  }

  .document-frame {
    min-height: 62vh;
  }

  .ordinance-grid {
    grid-template-columns: 1fr;
  }

  .codes-grid {
    grid-template-columns: 1fr;
  }

  .elections-grid {
    grid-template-columns: 1fr;
  }

  .finance-grid {
    grid-template-columns: 1fr;
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .cotton-grid {
    grid-template-columns: 1fr;
  }

  .cotton-form-grid {
    grid-template-columns: 1fr;
  }

  .cotton-submit {
    width: 100%;
    justify-self: stretch;
  }

  .business-table thead {
    display: none;
  }

  .business-table,
  .business-table tbody,
  .business-table tr,
  .business-table td {
    display: block;
    width: 100%;
  }

  .business-table tr {
    border-bottom: 1px solid #d6d6d6;
    margin-bottom: 10px;
  }

  .business-table td {
    border: none;
    padding: 8px 0;
  }

  .year-selector {
    width: 100%;
  }

  .year-toggle {
    width: 100%;
    text-align: center;
  }

  .year-menu {
    right: auto;
    left: 0;
    width: 100%;
    min-width: 0;
  }

  .events-controls {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .month-nav {
    padding: 6px 10px;
  }

  .month-nav-text {
    display: none;
  }

  .month-select {
    padding: 6px 30px 6px 10px;
  }

  .calendar-title {
    display: none;
  }

  .calendar-cell.has-event {
    background: #fdecec;
  }

  .calendar-cell.has-event span {
    background: var(--red);
    color: var(--white);
  }

  .calendar-more {
    display: none;
  }

}
