/* ==========================================================================
   Clawhammer Municipal — public site styles
   Colors come from CSS variables set per-site by the theme editor
   (see includes/functions.php theme_css_vars()). Never hardcode brand
   colors below — that's the whole point of the theme system.
   ========================================================================== */

:root {
  --ink: #1b1b1b;
  --slate-700: #3f3f3f;
  --slate-500: #6b6b6b;
  --slate-300: #c7c7c7;
  --slate-200: #e2e2e2;
  --slate-100: #f2f1ee;
  --paper: #faf9f6;
  --white: #ffffff;
  --success: #1e7a3c;
  --success-bg: #e7f5ec;
  --warn: #8a5a00;
  --warn-bg: #fdf3dd;
  --danger: #b3261e;
  --danger-bg: #fbe9e7;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.07), 0 1px 1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 22px -10px rgba(0, 0, 0, 0.22);
  --max-width: 1180px;
}

* , *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--t-font-body, system-ui, sans-serif);
  color: var(--t-text, var(--ink));
  background: var(--t-bg, var(--white));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--t-font-heading, Georgia, serif);
  color: var(--t-primary-dark, var(--ink));
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }
a { color: var(--t-primary, #1d3557); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.4rem; }

*:focus-visible {
  outline: 3px solid var(--t-accent, #b5651d);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; flex-shrink: 0; }

.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;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--t-primary-dark, #122238); color: #fff;
  padding: 0.85rem 1.25rem; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--t-accent, #b5651d); color: #fff; }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-outline { border-color: currentColor; color: var(--t-primary, #1d3557); background: transparent; }
.btn-outline-light { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.875rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700;
  color: var(--t-primary, #1d3557); text-decoration: none; border-bottom: 2px solid var(--t-accent, #b5651d);
}
.text-link:hover { gap: 0.6rem; }

/* Alert banner
   ========================================================================== */

.alert-banner { padding: 0.75rem 0; font-size: 0.9rem; font-weight: 600; }
.alert-banner .wrap { display: flex; align-items: center; gap: 0.6rem; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.alert-banner--info { background: #e7eef5; color: #0d2b4e; }
.alert-banner--warning { background: var(--warn-bg); color: var(--warn); }
.alert-banner--emergency { background: var(--danger-bg); color: var(--danger); }

/* Header
   ========================================================================== */

.header-top { background: var(--t-primary-dark, #122238); color: #fff; font-size: 0.82rem; }
.header-top .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 0.4rem; padding-bottom: 0.4rem; gap: 1rem; flex-wrap: wrap; }
.header-contact, .header-tools { display: flex; gap: 1.25rem; }
.header-top a { color: #fff; opacity: 0.92; display: inline-flex; align-items: center; gap: 0.35rem; text-decoration: none; }
.header-top a:hover { opacity: 1; text-decoration: underline; }
.header-top .icon { width: 14px; height: 14px; }

.header-main { background: var(--t-primary, #1d3557); color: #fff; }
.header-main .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  padding-top: 0.9rem; padding-bottom: 0.9rem;
  flex-wrap: wrap; /* a growing menu drops to its own row instead of squeezing the logo */
}

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand-logo { height: 48px; width: auto; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; background: rgba(255,255,255,0.14); }
.brand-mark .icon { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--t-font-heading, Georgia, serif); font-size: 1.2rem; }
.brand-text small { font-size: 0.8rem; opacity: 0.85; font-weight: 500; }

.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 6px; border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); color: #fff;
}
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* flex-wrap here is the actual fix for a growing nav: extra items (or the
   search box) flow onto a new line instead of squeezing everything down
   to unreadable widths. This scales to however many items the CMS's
   navigation editor ends up with — nobody has to remember a limit. */
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.main-nav > ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; flex-shrink: 0; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 0.3rem; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 0.9rem; padding: 0.6rem 0.7rem; border-radius: 6px;
  white-space: nowrap;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li:hover > a { background: rgba(255,255,255,0.12); }
.main-nav .chev { width: 14px; height: 14px; flex-shrink: 0; }
.main-nav > .btn { flex-shrink: 0; }

.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; color: var(--ink);
  list-style: none; margin: 0; padding: 0.4rem; border-radius: 10px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 50;
}
.has-children:hover .dropdown, .has-children:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 0.6rem 0.75rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.dropdown a:hover { background: var(--slate-100); }

@media (max-width: 960px) {
  .header-top .header-contact { display: none; }
  /* Sits above the drawer (z-index 500) so the button that opens it can
     also close it — otherwise it's the one thing the drawer covers. */
  .nav-toggle { display: inline-flex; position: relative; z-index: 600; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 88vw); z-index: 500;
    background: var(--t-primary, #1d3557); flex-direction: column; align-items: stretch;
    padding: 5rem 1.25rem 2rem; gap: 1rem; transform: translateX(100%); transition: transform 0.25s ease;
    overflow-y: auto; box-shadow: -8px 0 24px rgba(0,0,0,0.25);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; width: 100%; }
  .main-nav > ul > li > a { padding: 0.85rem 0.5rem; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; background: rgba(255,255,255,0.08); box-shadow: none; display: none; }
  .has-children.is-open .dropdown { display: block; }
  .dropdown a { color: #fff; }
  .dropdown a:hover { background: rgba(255,255,255,0.14); }
  /* flex-basis in a column flex container sizes HEIGHT, not width — using
     100% here (instead of width:100%) is what was blowing this up to fill
     the whole drawer. flex-shrink:0 + width:100% keeps it compact. */
  .site-search-form { flex: 0 0 auto; width: 100%; order: -1; margin-bottom: 0.5rem; }
}

/* Site search — header combobox
   ========================================================================== */

.site-search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  flex: 0 0 200px; /* fixed size — if there's no room, it wraps to its own line rather than getting squeezed thin */
}
.site-search-form:focus-within { background: rgba(255, 255, 255, 0.95); border-color: #fff; }
.site-search-form > .icon { width: 16px; height: 16px; color: rgba(255, 255, 255, 0.85); flex-shrink: 0; }
.site-search-form:focus-within > .icon { color: var(--t-primary, #1d3557); }
.site-search-form input[type="search"] {
  -webkit-appearance: none; appearance: none; /* stops iOS/Safari from adding its own native rounded search bubble on top of ours */
  border: none; border-radius: 0; background: transparent; outline: none; width: 100%; min-width: 0;
  font-size: 0.875rem; line-height: 1.3; color: #fff; font-family: inherit;
}
.site-search-form:focus-within input[type="search"] { color: var(--ink); }
.site-search-form input[type="search"]::placeholder { color: rgba(255, 255, 255, 0.75); }
.site-search-form:focus-within input[type="search"]::placeholder { color: var(--slate-500); }
.site-search-form input[type="search"]::-webkit-search-cancel-button { filter: none; }

.site-search-listbox {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; color: var(--ink);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md); list-style: none; margin: 0; padding: 0.4rem;
  max-height: 340px; overflow-y: auto; z-index: 80; border: 1px solid var(--slate-200);
}
.site-search-option {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.6rem 0.75rem;
  border-radius: 8px; cursor: pointer; font-size: 0.9rem;
}
.site-search-option.is-active, .site-search-option:hover { background: var(--slate-100); }
.site-search-option-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-search-option-cat { font-size: 0.72rem; color: var(--slate-500); flex-shrink: 0; }

/* Search results page */
.site-search-form--page { background: var(--paper); border: 1.5px solid var(--slate-300); flex: 1 1 auto; max-width: 520px; margin-top: 1.5rem; padding: 0.6rem 1rem; }
.site-search-form--page > .icon { color: var(--slate-500); }
.site-search-form--page input[type="search"] { color: var(--ink); font-size: 1rem; }
.site-search-form--page input[type="search"]::placeholder { color: var(--slate-500); }
.site-search-form--page .btn { flex-shrink: 0; }

.search-meta p { margin: 0 0 0.3rem; color: var(--slate-700); }
.search-suggestion { font-size: 0.9rem; }

.search-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 1.75rem; }
.tag-chip-link {
  display: inline-flex; padding: 0.35rem 0.9rem; border-radius: 999px; border: 1.5px solid var(--slate-300);
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.82rem;
}
.tag-chip-link:hover { border-color: var(--t-primary, #1d3557); }
.tag-chip-link.is-active { background: var(--t-primary, #1d3557); border-color: var(--t-primary, #1d3557); color: #fff; }

.search-results-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.search-result-type {
  display: inline-block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--t-accent, #b5651d); margin-bottom: 0.25rem;
}
.search-result-title { display: block; font-size: 1.1rem; font-weight: 700; color: var(--t-primary, #1d3557); text-decoration: none; }
.search-result-title:hover { text-decoration: underline; }
.search-result-snippet { margin: 0.3rem 0 0; color: var(--slate-700); font-size: 0.92rem; }
.search-result-snippet mark, .search-result-title mark { background: #fff3b0; color: inherit; padding: 0 0.1em; border-radius: 2px; }

/* Grouped results (Pages / Documents / Meetings / News / Staff) */
.search-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; align-items: start; }
.search-group { background: var(--paper); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 1.5rem 1.5rem 1.25rem; }
.search-group-heading {
  display: flex; align-items: center; gap: 0.55rem; font-size: 1.05rem; margin-bottom: 1.1rem;
  color: var(--t-primary-dark, var(--ink)); padding-bottom: 0.75rem; border-bottom: 1px solid var(--slate-200);
}
.search-group-heading .icon { width: 18px; height: 18px; color: var(--t-accent, #b5651d); }
.search-group-count {
  margin-left: auto; font-size: 0.72rem; font-weight: 700; color: var(--slate-500); background: var(--slate-200);
  border-radius: 999px; padding: 0.15rem 0.55rem;
}
.search-group .search-results-list { gap: 1.1rem; }
.search-group .search-result-title { font-size: 0.98rem; }
.search-group .search-result-snippet { font-size: 0.87rem; }
.search-group-more { display: inline-flex; margin-top: 1rem; font-size: 0.85rem; }

/* Blocks — shared layout
   ========================================================================== */

.block { padding: 3.25rem 0; }
.block-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.block-inner.narrow { max-width: 760px; }
.block-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-hero-simple { background: var(--slate-100); padding: 2.75rem 0; }
.page-hero-simple .lede { color: var(--slate-700); font-size: 1.05rem; max-width: 700px; margin: 0; }
.empty-note { color: var(--slate-500); font-style: italic; }
.muted { color: var(--slate-500); }

/* Hero block */
.block-hero { position: relative; padding: 0; color: #fff; overflow: hidden; }
.hero-block-media { position: absolute; inset: 0; }
.hero-block-media img, .hero-block-img, .hero-block-media video { width: 100%; height: 100%; object-fit: cover; }
.block-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.72) 10%, rgba(0,0,0,0.35) 65%, rgba(0,0,0,0.15)); }
.hero-block-content { position: relative; max-width: var(--max-width); margin: 0 auto; padding: 5rem 1.5rem; }
.hero-block-content h1 { color: #fff; max-width: 640px; }
.hero-block-content .lede { font-size: 1.15rem; max-width: 560px; opacity: 0.95; }
.hero-block-actions { display: flex; gap: 0.9rem; margin-top: 1.75rem; flex-wrap: wrap; }
@media (max-width: 640px) { .hero-block-content { padding: 3rem 1.25rem; } }

/* Rich text */
.prose :is(h3, h4) { margin-top: 1.4rem; }
.prose p:last-child { margin-bottom: 0; }
.prose a { text-decoration-line: underline; text-underline-offset: 2px; }

/* Image + text split */
.block-image-text .split, .block-contact-form .split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-media img, .split-media video { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
@media (max-width: 800px) {
  .block-image-text .split, .block-contact-form .split { grid-template-columns: 1fr; gap: 2rem; }
  .block-image-text.pos-left .split-media { order: -1; }
}

/* Standalone video block */
.block-video { text-align: center; }
.block-video .lede { color: var(--slate-700); max-width: 620px; margin: 0 auto 1.5rem; }
.video-block-wrap { margin-top: 1.5rem; }
.video-block-media { width: 100%; max-height: 520px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background: #000; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.info-card { background: var(--paper); border: 1px solid var(--slate-200); border-radius: var(--radius-md); padding: 1.5rem; }
.info-card-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--t-primary, #1d3557); color: #fff; margin-bottom: 0.9rem; }
.info-card-icon .icon { width: 22px; height: 22px; }
.info-card p { color: var(--slate-700); font-size: 0.925rem; }

/* Quicklinks */
.quicklink-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.quicklink-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center;
  padding: 1.5rem 1rem; border-radius: var(--radius-md); background: var(--paper); border: 1px solid var(--slate-200);
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.9rem; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.quicklink-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.quicklink-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--t-accent, #b5651d); color: #fff; }
.quicklink-icon .icon { width: 24px; height: 24px; }

/* Accordion */
.accordion-item { border-bottom: 1px solid var(--slate-200); }
.accordion-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer;
  padding: 1.1rem 0.25rem; font-weight: 700; list-style: none; font-size: 1.02rem;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item[open] summary .chev { transform: rotate(180deg); }
.accordion-item .chev { transition: transform 0.15s ease; flex-shrink: 0; }
.accordion-body { padding: 0 0.25rem 1.2rem; color: var(--slate-700); }

/* File list */
.file-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.file-list a {
  display: flex; align-items: flex-start; gap: 0.85rem; padding: 1rem 1.1rem; border: 1px solid var(--slate-200);
  border-radius: var(--radius-md); text-decoration: none; color: var(--ink); background: var(--white);
}
.file-list a:hover { border-color: var(--t-primary, #1d3557); }
.file-list .icon { width: 20px; height: 20px; color: var(--t-primary, #1d3557); margin-top: 0.15rem; }
.file-info { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.file-summary { font-size: 0.85rem; color: var(--slate-500); font-weight: 400; }
.file-ext { font-size: 0.7rem; font-weight: 800; color: var(--slate-500); border: 1px solid var(--slate-300); border-radius: 4px; padding: 0.15rem 0.4rem; align-self: center; }

/* Staff */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.5rem; }
.staff-card { text-align: center; }
.staff-photo { width: 130px; height: 130px; margin: 0 auto 0.9rem; border-radius: 50%; overflow: hidden; }
.staff-photo img, .staff-photo .avatar-generated { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.staff-card h3 { margin-bottom: 0.15rem; font-size: 1.05rem; }
.staff-title { font-weight: 700; color: var(--t-primary, #1d3557); margin: 0; font-size: 0.9rem; }
.staff-dept { color: var(--slate-500); font-size: 0.85rem; margin: 0.15rem 0 0.5rem; }
.staff-contact { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; margin: 0; }
.staff-contact a { display: inline-flex; align-items: center; gap: 0.35rem; justify-content: center; text-decoration: none; color: var(--slate-700); }
.staff-contact .icon { width: 14px; height: 14px; }

.directory-controls { margin-bottom: 1.75rem; max-width: 420px; }
.directory-controls label { display: block; font-weight: 700; margin-bottom: 0.4rem; font-size: 0.9rem; }
.directory-controls input { width: 100%; padding: 0.7rem 0.9rem; border: 1.5px solid var(--slate-300); border-radius: var(--radius-sm); font-size: 1rem; }

/* Announcements / news */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.news-card { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--slate-200); border-radius: var(--radius-md); overflow: hidden; background: #fff; transition: box-shadow 0.15s ease; }
.news-card:hover { box-shadow: var(--shadow-md); }
.news-card-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card-body { padding: 1.1rem 1.25rem 1.4rem; }
.news-date { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--t-accent, #b5651d); }
.news-card h3 { margin: 0.3rem 0 0.4rem; font-size: 1.05rem; }
.news-card p { font-size: 0.9rem; color: var(--slate-700); margin: 0; }
.block-article .news-date { display: block; margin-bottom: 0.5rem; }
.article-hero-img { margin: 1.25rem 0; border-radius: var(--radius-lg); overflow: hidden; }

/* Meetings preview + page */
.meeting-callout {
  display: flex; align-items: center; gap: 1.25rem; background: var(--slate-100); border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; flex-wrap: wrap;
}
.meeting-callout > .icon { width: 32px; height: 32px; color: var(--t-primary, #1d3557); flex-shrink: 0; }
.meeting-callout > div { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; min-width: 200px; }
.meeting-callout strong { font-size: 1.05rem; }
.meeting-callout span { color: var(--slate-700); font-size: 0.9rem; }

.meeting-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.meeting-tab { padding: 0.5rem 1rem; border-radius: 999px; border: 1.5px solid var(--slate-300); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.875rem; }
.meeting-tab.is-active, .meeting-tab:hover { background: var(--t-primary, #1d3557); border-color: var(--t-primary, #1d3557); color: #fff; }

/* Each board gets its own clearly bounded card — previously these were
   just headings with a margin between them and ran together visually. */
.meeting-body-list { display: flex; flex-direction: column; gap: 1.75rem; }
.meeting-body-section {
  background: var(--paper); border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  padding: 1.75rem 2rem 2rem; border-top: 4px solid var(--t-accent, #b5651d);
}
.meeting-body-heading { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.meeting-body-icon {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 8px; background: var(--t-primary, #1d3557); color: #fff;
}
.meeting-body-icon .icon { width: 17px; height: 17px; }
.meeting-body-heading h2 { margin: 0; font-size: 1.2rem; }
.meeting-body-count {
  margin-left: auto; font-size: 0.72rem; font-weight: 700; color: var(--slate-600); background: var(--slate-200);
  border-radius: 999px; padding: 0.2rem 0.6rem; white-space: nowrap;
}
.meeting-body-section .body-desc { color: var(--slate-700); font-size: 0.9rem; max-width: 700px; margin-top: 0.6rem; margin-left: calc(34px + 0.65rem); }
@media (max-width: 480px) { .meeting-body-section .body-desc { margin-left: 0; } }

.meeting-table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; background: var(--white); border-radius: var(--radius-md); overflow: hidden; }
.meeting-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--slate-500); padding: 0.7rem 0.9rem; background: var(--slate-100); border-bottom: 2px solid var(--slate-200); }
.meeting-table td { padding: 0.9rem 0.9rem; border-bottom: 1px solid var(--slate-200); vertical-align: top; font-size: 0.9rem; }
.meeting-table tr:last-child td { border-bottom: none; }
.meeting-table a { display: inline-flex; align-items: center; gap: 0.35rem; text-decoration: none; font-weight: 700; }
.meeting-table .icon { width: 15px; height: 15px; }
.meeting-table .file-summary { margin: 0.3rem 0 0; font-weight: 400; }

@media (max-width: 720px) {
  .meeting-table thead { display: none; }
  .meeting-table, .meeting-table tbody, .meeting-table tr, .meeting-table td { display: block; width: 100%; }
  .meeting-table tr { border-bottom: 2px solid var(--slate-200); padding: 0.75rem 0; }
  .meeting-table td { border-bottom: none; padding: 0.35rem 0; }
  .meeting-table td::before { content: attr(data-label); display: block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: var(--slate-500); margin-bottom: 0.15rem; }
}

/* Contact info block */
.contact-info-grid { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-grid > div { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-info-grid .icon { width: 20px; height: 20px; color: var(--t-primary, #1d3557); margin-top: 0.15rem; }
.contact-info-grid a { text-decoration: none; }

/* Contact form */
.contact-form-wrap { background: var(--paper); border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: 2rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; font-size: 0.9rem; }
.field .req { font-weight: 500; color: var(--danger); font-size: 0.8rem; }
.field .opt { font-weight: 500; color: var(--slate-500); font-size: 0.8rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7rem 0.9rem; border: 1.5px solid var(--slate-300); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit; background: #fff;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.85rem; margin-top: 0.3rem; font-weight: 600; }
.field-hp { position: absolute; left: -9999px; }
.form-success { display: flex; gap: 0.85rem; align-items: flex-start; background: var(--success-bg); color: var(--success); padding: 1.25rem; border-radius: var(--radius-md); }
.form-success .icon { width: 22px; height: 22px; margin-top: 0.1rem; flex-shrink: 0; }

/* CTA banner */
.block-cta-banner { text-align: center; }
.block-cta-banner .block-inner { max-width: 640px; }
.block-cta-banner { background: var(--t-primary, #1d3557); color: #fff; }
.block-cta-banner h2 { color: #fff; }
.block-cta-banner p { color: rgba(255,255,255,0.88); }

/* Footer
   ========================================================================== */

.site-footer { background: var(--t-primary-dark, #122238); color: rgba(255,255,255,0.85); padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; color: #fff; margin-bottom: 0.75rem; }
.footer-brand .icon { width: 20px; height: 20px; }
.footer-about p { margin: 0 0 0.3rem; font-size: 0.875rem; }
.footer-about a { color: rgba(255,255,255,0.85); }
.footer-col h2 { color: #fff; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; padding-top: 1.25rem; font-size: 0.8rem; }
.footer-bottom a { color: rgba(255,255,255,0.85); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
