:root {
  color-scheme: light;
  --bg: #f2fbf4;
  --panel: #ffffff;
  --text: #073b2a;
  --muted: #4f6f61;
  --accent: #00a85a;
  --accent-strong: #00684a;
  --accent-soft: #dff8e8;
  --accent-glow: rgba(0, 168, 90, 0.18);
  --forest: #001e2b;
  --leaf: #00ed64;
  --border: rgba(0, 104, 74, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 237, 100, 0.22), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(0, 104, 74, 0.14), transparent 28rem),
    linear-gradient(180deg, #fbfff8 0%, var(--bg) 48%, #e7f7ec 100%);
  color: var(--text);
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--accent); }

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-160%);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.page {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3rem);
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  padding: clamp(2rem, 6vw, 4rem);
  background:
    linear-gradient(135deg, rgba(0, 30, 43, 0.96), rgba(0, 104, 74, 0.92)),
    var(--forest);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(0, 30, 43, 0.22), 0 0 0 1px rgba(0, 237, 100, 0.12) inset;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1, h2, h3 { color: var(--text); }

.site-header h1 { color: #ffffff; }

.site-header .site-title {
  max-width: 12ch;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

h3 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.25;
}

.tagline {
  margin: 1.4rem 0 0;
  color: var(--leaf);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 750;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(0, 237, 100, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 30, 43, 0.18);
}

.social-links a:hover {
  border-color: var(--leaf);
  transform: translateY(-1px);
}

.social-links .social-link-icon {
  width: 2.9rem;
  min-width: 2.9rem;
  height: 2.9rem;
  min-height: 2.9rem;
  padding: 0;
  justify-content: center;
}

.social-icon {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
}

.lookup-panel {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.25rem, 4vw, 3rem); margin-top: 1.5rem; padding: clamp(1.4rem, 4vw, 2.4rem);
  background: #fff; border: 1px solid var(--border); border-radius: 28px; box-shadow: 0 18px 54px rgba(0, 104, 74, .1);
}
.lookup-panel .kicker { margin: 0 0 .4rem; color: var(--accent-strong); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.lookup-panel h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.lookup-panel p { line-height: 1.6; }
.city-search-panel {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.25rem, 4vw, 3rem); margin-top: 1.5rem; padding: clamp(1.4rem, 4vw, 2.4rem);
  background: #fff; border: 1px solid var(--border); border-radius: 28px; box-shadow: 0 18px 54px rgba(0, 104, 74, .1);
}
.city-search-panel .kicker { margin: 0 0 .4rem; color: var(--accent-strong); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.city-search-panel h2 { margin-top: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.city-search-panel p { line-height: 1.6; }
.city-search-form label { display: block; margin-bottom: .45rem; font-weight: 800; }
.city-search-control { display: flex; gap: .65rem; position: relative; }
.city-search-control input { min-width: 0; flex: 1; padding: .85rem 1rem; border: 2px solid var(--border); border-radius: 12px; font: inherit; }
.city-search-control button { border: 0; border-radius: 12px; padding: .85rem 1.15rem; background: var(--accent); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.city-search-help { margin: .65rem 0 0; color: var(--muted); font-size: .86rem; }
.city-search-suggestions { position: absolute; z-index: 30; top: calc(100% + .25rem); left: 0; right: 0; max-height: 340px; overflow: auto; background: #fff; border: 2px solid var(--border); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 61, 44, .2); }
.city-search-suggestions[hidden] { display: none; }
.city-search-suggestions a { display: block; padding: .72rem 1rem; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-search-suggestions a:last-child { border-bottom: 0; }
.city-search-suggestions a:hover, .city-search-suggestions a[aria-selected="true"] { background: var(--accent-soft); box-shadow: inset 5px 0 var(--accent); }
.alderman-form label { display: block; margin-bottom: .45rem; font-weight: 800; }
.lookup-controls { display: flex; gap: .65rem; }
.lookup-controls input { min-width: 0; flex: 1; padding: .85rem 1rem; border: 2px solid var(--border); border-radius: 12px; font: inherit; }
.lookup-controls button { padding: .85rem 1rem; border: 0; border-radius: 12px; background: var(--accent-strong); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.lookup-controls button:disabled { opacity: .65; cursor: wait; }
.form-help { margin: .65rem 0 0; color: var(--muted); font-size: .88rem; }
.alderman-status { min-height: 1.5em; margin-top: .65rem; color: var(--muted); font-weight: 700; }
.alderman-result { margin-top: .65rem; padding: 1rem; border-radius: 14px; background: var(--accent-soft); }
.alderman-result h3, .alderman-result p { margin: 0 0 .45rem; }
.alderman-result ul { margin: .35rem 0 .75rem; padding-left: 1.25rem; }
.lookup-contact-list li { margin-bottom: .75rem; }
.lookup-contact-list li > strong, .lookup-contact-list li > span, .lookup-contact-list li > span > span { display: block; }
.lookup-contact-list li > span { margin-top: .2rem; }
.lookup-contact-list a { overflow-wrap: anywhere; }

.events-section {
  margin-top: 1.5rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 18px 54px rgba(0, 104, 74, 0.1);
}

.section-heading {
  margin-bottom: 1.25rem;
}

.body-copy {
  max-width: 62ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 1rem;
}

.event-card {
  padding: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fff9 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(0, 104, 74, 0.1);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0.75rem 0 0;
  color: var(--accent-strong);
  font-weight: 800;
  line-height: 1.45;
}

.event-place { color: var(--muted); }

.event-description-details {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.event-description-details summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 700;
}

.event-description-details p {
  margin: 0.6rem 0 0;
}

.event-description {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.weekend-image-card {
  margin: 0 0 1.25rem;
  padding: clamp(0.8rem, 3vw, 1.25rem);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 54px rgba(0, 104, 74, 0.1);
}

.weekend-image-card img {
  display: block;
  width: min(100%, 720px);
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 30, 43, 0.16);
}

.weekend-image-card figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.weekend-copy-card {
  margin: 1rem 0 1.5rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: linear-gradient(180deg, #ffffff 0%, #f7fff9 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(0, 104, 74, 0.1);
}

.weekend-copy-card pre {
  margin: 0.9rem 0 0;
  white-space: pre-wrap;
  color: var(--text);
  font: 500 1rem/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.weekend-events-heading {
  margin-top: 1.75rem;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(0, 104, 74, 0.08);
}

.agenda-summary-image {
  width: min(100%, 760px);
  margin: 2rem auto 0;
}

.agenda-summary-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(0, 104, 74, 0.12);
}

.sources-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(0, 104, 74, .08);
}

.all-sources-heading { margin-top: 2.5rem; }

.sources-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.sources-table caption {
  padding: 1rem;
  text-align: left;
  color: var(--muted);
  font-weight: 700;
}

.sources-table th,
.sources-table td {
  padding: .85rem 1rem;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.sources-table thead th {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sources-table tbody tr:nth-child(even) { background: #f7fff9; }
.sources-table tbody th { font-weight: 800; }

.agenda-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.agenda-table th,
.agenda-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.agenda-table th {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.agenda-details {
  margin-top: 2rem;
}

.agenda-details .section-heading {
  margin-bottom: 1rem;
}

.agenda-details h2 {
  font-size: clamp(1.75rem, 4vw, 2.7rem);
}

.agenda-detail-card {
  margin-top: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: linear-gradient(180deg, #ffffff 0%, #f7fff9 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(0, 104, 74, 0.08);
}

.agenda-detail-card p,
.agenda-detail-card li {
  color: var(--muted);
  line-height: 1.65;
}

.agenda-detail-card p {
  margin: 0.85rem 0 0;
}

.agenda-detail-card ul {
  margin: 0.85rem 0 0;
  padding-left: 1.35rem;
}

.agenda-table td:first-child {
  width: 8rem;
  color: var(--accent-strong);
  font-weight: 800;
}

.agenda-table td:nth-child(3) {
  width: 18rem;
  font-weight: 650;
}

.updated {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  padding: 1rem 0 0;
  text-align: center;
}

.footer-links {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

@media (max-width: 720px) {
  .site-header {
    display: block;
    padding: 2rem 1.5rem;
  }

  .site-header .site-title {
    max-width: none;
    font-size: clamp(2rem, 8.8vw, 2.5rem);
    white-space: nowrap;
  }

  .tagline {
    margin-top: 1rem;
    font-size: 1.15rem;
    line-height: 1.35;
  }

  .social-links {
    justify-content: flex-start;
    align-items: center;
    margin-top: 1.25rem;
    gap: .6rem;
  }

  .social-links a:first-child {
    min-height: 2.9rem;
    padding: .65rem .95rem;
  }

  .home-page .social-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.9rem 2.9rem;
    width: 100%;
    flex-wrap: nowrap;
  }

  .home-page .social-links .home-link { display: none; }

  .home-page .social-links .alderperson-link {
    min-width: 0;
    min-height: 2.9rem;
    padding: .65rem .75rem;
    justify-content: center;
    font-size: .95rem;
    white-space: nowrap;
  }
  .lookup-panel, .city-search-panel { grid-template-columns: 1fr; }
  .lookup-controls, .city-search-control { flex-direction: column; }
  .lookup-controls input, .lookup-controls button, .city-search-control input, .city-search-control button { width: 100%; }
}
