/* ---------- THEME: Hollow Creek (warm, small-town professional) ---------- */
:root {
  --bg: oklch(98% 0.012 80); --surface: oklch(100% 0 0); --sunken: oklch(95% 0.02 85);
  --ink: oklch(22% 0.02 75); --ink-soft: oklch(40% 0.02 75); --line: oklch(90% 0.015 75);
  --accent: oklch(58% 0.13 45); --accent-dark: oklch(46% 0.13 42); --accent-tint: oklch(95% 0.03 45);
  --support: oklch(50% 0.09 152); --support-dark: oklch(40% 0.08 152); --support-tint: oklch(95% 0.03 152);
  --bar: oklch(26% 0.02 75);
  --font-display: 'Spectral', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --radius: 10px; --radius-lg: 14px;
}

/* ---------- SYSTEM: spacing, type, layout ---------- */
:root {
  --s1: 4px;  --s2: 8px;   --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 40px;  --s8: 56px; --s9: 72px; --s10: 96px;

  /* fluid type: hits the low value at 360px, the high value at 1200px */
  --step-000: clamp(0.75rem, 0.73rem + 0.10vw, 0.81rem);
  --step-00:  clamp(0.83rem, 0.80rem + 0.14vw, 0.91rem);
  --step-0:   clamp(0.94rem, 0.91rem + 0.16vw, 1.03rem);
  --step-1:   clamp(1.06rem, 1.00rem + 0.27vw, 1.22rem);
  --step-2:   clamp(1.19rem, 1.09rem + 0.45vw, 1.46rem);
  --step-3:   clamp(1.34rem, 1.18rem + 0.71vw, 1.76rem);
  --step-4:   clamp(1.51rem, 1.26rem + 1.09vw, 2.11rem);
  --step-5:   clamp(1.70rem, 1.33rem + 1.63vw, 2.53rem);
  --step-6:   clamp(1.91rem, 1.38rem + 2.37vw, 3.05rem);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --measure: 68ch;
  --nav-breakpoint: 60rem;    /* documented; media queries use 960px */
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
  font-weight: 600;
}
h1 { font-size: var(--step-6); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--surface); color: var(--ink);
  padding: var(--s3) var(--s4); border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(40px, 7vw, 80px); }
.section--tight { padding-block: clamp(28px, 5vw, 52px); }
.stack > * + * { margin-top: var(--flow, var(--s4)); }
.measure { max-width: var(--measure); }

/* Column counts are chosen so tiles divide evenly and never leave an orphan:
   6 quick links -> 2 then 3 across; 8 departments -> 2 then 4 across. */
.grid { display: grid; gap: var(--s4); }
/* grid children stretch so cards in a row share a height regardless of
   how many lines their label runs to */
.grid > li { display: flex; }
.grid > li > * { width: 100%; }
.grid--2-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--2-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--1-2 { grid-template-columns: minmax(0, 1fr); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }

@media (min-width: 40em) {
  .grid { gap: var(--s5); }
  .grid--2-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--1-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 60em) {
  .grid--2-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--sidebar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: var(--s3); margin-bottom: var(--s5);
}
.section-head h2 { font-size: var(--step-3); }
.eyebrow {
  font-family: var(--font-body); font-size: var(--step-000); font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-dark);
}

/* ---------- Utility bar ---------- */
.utility {
  background: var(--bar); color: oklch(94% 0.01 75);
  font-size: var(--step-00);
}
.utility .container {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  padding-block: var(--s2);
}
.utility a { color: inherit; }

/* ---------- Header + navigation ---------- */
.header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .container {
  display: flex; align-items: center; gap: var(--s4);
  min-height: 68px; padding-block: var(--s3);
}
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.1; }
.brand-sub  { font-size: var(--step-000); color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 44px; padding: var(--s2) var(--s3);
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: var(--step-00); font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover { background: var(--sunken); }
.nav-toggle-bars { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }
[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
[aria-expanded="true"] .nav-toggle-bars::after  { top: 0; transform: rotate(-45deg); }

.nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 500;
  display: flex; align-items: center;
}
.nav a[aria-current="page"]:not(.btn) { color: var(--accent-dark); }
.nav a:not(.btn):hover { color: var(--accent-dark); }

/* Mobile: a real panel, not a scrolling strip */
@media (max-width: 59.99em) {
  /* the icon carries the meaning; the word costs a row of header space */
  .nav-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nav-toggle { padding: var(--s3); min-width: 44px; justify-content: center; }
  /* keep the utility bar to one narrow line */
  .utility [data-mobile="hide"] { display: none; }
  .nav {
    position: fixed; inset: var(--header-bottom, 68px) 0 0 auto; width: min(320px, 84vw);
    background: var(--surface); border-left: 1px solid var(--line);
    padding: var(--s5) var(--gutter) var(--s8);
    transform: translateX(100%); transition: transform 220ms ease;
    overflow-y: auto; z-index: 45;
    display: flex; flex-direction: column; gap: var(--s1);
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav a:not(.btn) { min-height: 48px; padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: var(--step-1); }
  .nav .btn { margin-top: var(--s4); justify-content: center; }
  .nav-scrim {
    position: fixed; inset: var(--header-bottom, 68px) 0 0 0; background: oklch(20% 0.02 75 / 0.4);
    opacity: 0; pointer-events: none; transition: opacity 220ms ease; z-index: 44;
  }
  .nav-scrim[data-open="true"] { opacity: 1; pointer-events: auto; }
  body[data-nav-open="true"] { overflow: hidden; }
}
@media (min-width: 60em) {
  .nav-toggle, .nav-scrim { display: none; }
  .nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
  .nav a:not(.btn) { font-size: var(--step-00); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: var(--s3) var(--s5);
  border-radius: var(--radius); border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: var(--step-0);
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: oklch(100% 0 0); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn--ghost-light { border-color: oklch(100% 0 0 / 0.55); color: oklch(100% 0 0); background: oklch(100% 0 0 / 0.12); }
.btn--ghost-light:hover { background: oklch(100% 0 0 / 0.2); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--support-dark); color: oklch(100% 0 0); overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-art + .hero-body { position: relative; }
.hero-body {
  padding-block: clamp(40px, 9vw, 96px);
  display: grid; gap: var(--s5); max-width: 42rem;
}
.hero h1 { color: oklch(100% 0 0); }
.hero p { font-size: var(--step-1); color: oklch(97% 0.01 80); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------- Tiles (quick links) ---------- */
/* Icon sits above its label, so a long label wraps as a block and never
   reflows underneath the icon. */
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s5) var(--s4); text-decoration: none; color: var(--ink);
  min-height: 100%;
}
.tile { height: 100%; }
.tile:hover { border-color: var(--accent); text-decoration: none; }
.tile:hover .tile-label { color: var(--accent-dark); }
.tile-icon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent-dark);
}
.tile-label { font-weight: 600; font-size: var(--step-0); line-height: 1.3; }
.tile-note { font-size: var(--step-00); color: var(--ink-soft); }

/* ---------- Cards, lists, panels ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--s5);
}
.panel { background: var(--sunken); border-radius: var(--radius-lg); padding: var(--s5); }

.rows { border-top: 1px solid var(--line); }
.row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s4);
  padding-block: var(--s3); border-bottom: 1px solid var(--line);
}
.row-main { flex: 1 1 12rem; font-weight: 500; }
.row-meta { font-size: var(--step-00); color: var(--ink-soft); }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: var(--step-000); font-weight: 600;
  background: var(--support-tint); color: var(--support-dark);
}
.badge--muted { background: var(--sunken); color: var(--ink-soft); }

/* Meeting date chip: fixed width, label beside it, never wraps under */
.meeting { display: flex; gap: var(--s4); align-items: flex-start; padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.meeting:last-child { border-bottom: 0; }
.date-chip {
  flex: none; width: 56px; text-align: center; border-radius: var(--radius);
  background: var(--accent-tint); color: var(--accent-dark); padding: var(--s2) 0;
  font-family: var(--font-body); line-height: 1.1;
}
.date-chip .m { display: block; font-size: var(--step-000); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.date-chip .d { display: block; font-size: var(--step-2); font-weight: 700; }
.meeting-body { flex: 1 1 auto; }

.dept-list { display: grid; gap: var(--s2); }
.dept {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); text-decoration: none; color: var(--ink); min-height: 48px;
}
.dept { height: 100%; }
.dept:hover { border-color: var(--accent); text-decoration: none; }
.dept-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--support-tint); color: var(--support-dark); }
.dept span:last-child { flex: 1 1 auto; font-weight: 500; font-size: var(--step-00); }

/* standalone arrow links are navigation, not inline prose — give them a
   44px target rather than a 20px line of text */
.link-more {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 44px; font-weight: 600; font-size: var(--step-00);
}

/* ---------- News ---------- */
/* Mobile shows all six stacked; desktop becomes a horizontal scroller so the
   section stays a readable height on a wide screen. */
.news { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); list-style: none; margin: 0; padding: 0; }
@media (min-width: 34em) { .news { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60em) {
  .news {
    display: flex; gap: var(--s5); overflow-x: auto; padding-bottom: var(--s4);
    scroll-snap-type: x proximity; scroll-padding-left: var(--gutter);
  }
  .news > li { flex: 0 0 clamp(260px, 31%, 340px); scroll-snap-align: start; }
  .news::-webkit-scrollbar { height: 8px; }
  .news::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
  .news::-webkit-scrollbar-thumb:hover { background: var(--ink-soft); }
}
.news > li { display: flex; }
/* With images each card is tall, so a phone shows three and links on to the
   rest. Tablet shows four to keep the two-column rows even. */
.news > li:nth-child(n+4) { display: none; }
@media (min-width: 34em) { .news > li:nth-child(4) { display: flex; } }
@media (min-width: 60em) { .news > li:nth-child(n+4) { display: flex; } }
.news-card {
  display: flex; flex-direction: column; width: 100%; height: 100%;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit;
}
.news-card:hover { border-color: var(--accent); text-decoration: none; }
.news-card:hover .news-title { color: var(--accent-dark); }
.news-media { aspect-ratio: 16 / 9; width: 100%; display: block; background: var(--sunken); }
.news-body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); }
.news-title { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.25; }

/* ---------- About media ---------- */
.about-media {
  width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line);
  aspect-ratio: 3 / 2; display: block; background: var(--sunken);
}

details.faq { border-bottom: 1px solid var(--line); }
details.faq summary {
  list-style: none; cursor: pointer; padding-block: var(--s4);
  font-weight: 600; font-size: var(--step-1); font-family: var(--font-display);
  display: flex; align-items: center; gap: var(--s3); min-height: 48px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; margin-left: auto; font-size: 1.4em; color: var(--accent); font-family: var(--font-body); }
details.faq[open] summary::after { content: "\2212"; }
details.faq .faq-body { padding-bottom: var(--s4); color: var(--ink-soft); max-width: var(--measure); }

.editable-flag {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: var(--step-000); color: var(--support-dark);
  background: var(--support-tint); padding: 4px 10px; border-radius: 999px;
}

/* ---------- Footer ---------- */
.footer { background: var(--bar); color: oklch(92% 0.01 75); margin-top: clamp(40px, 7vw, 80px); }
.footer .container { padding-block: clamp(32px, 5vw, 56px); }
.footer a { color: oklch(92% 0.01 75); }
.footer h3 { font-size: var(--step-0); font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--s3); color: oklch(80% 0.02 75); }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40em) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60em) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-links { display: grid; gap: var(--s2); }
.footer-links a { min-height: 44px; display: flex; align-items: center; font-size: var(--step-00); }
.footer-base {
  border-top: 1px solid oklch(100% 0 0 / 0.15); margin-top: var(--s6); padding-top: var(--s4);
  font-size: var(--step-00); color: oklch(78% 0.02 75);
  display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Interior page components ---------- */
.crumb { border-bottom: 1px solid var(--line); background: var(--surface); }
.crumb .container { padding-block: var(--s3); font-size: var(--step-00); color: var(--ink-soft); }
.crumb a { color: var(--ink-soft); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip {
  font: inherit; font-size: var(--step-00); font-weight: 500;
  min-height: 40px; padding: var(--s2) var(--s4);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink); cursor: pointer;
}
.chip:hover { border-color: var(--accent); }
.chip--on { background: var(--accent); border-color: var(--accent); color: oklch(100% 0 0); }

.rows-list { display: block; }
.rows-list .meeting { align-items: flex-start; flex-wrap: wrap; }
.meeting-docs { display: flex; gap: var(--s2); flex: 0 0 auto; margin-left: auto; padding-top: var(--s1); }
.doc {
  display: inline-flex; align-items: center; min-height: 36px;
  padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: var(--step-00); font-weight: 600; text-decoration: none; color: var(--accent-dark);
  background: var(--surface);
}
.doc:hover { border-color: var(--accent); text-decoration: none; }
@media (max-width: 34em) {
  .meeting-docs { margin-left: 0; width: 100%; }
}

.plain { display: grid; gap: var(--s2); font-size: var(--step-00); color: var(--ink-soft); }

/* Month grid is desktop-only — seven columns is unusable on a phone, and the
   same meetings are always listed underneath. */
.cal-wrap { display: none; }
@media (min-width: 48em) {
  .cal-wrap { display: block; }
  .cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .cal-dow { background: var(--sunken); padding: var(--s2); font-size: var(--step-000); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
  .cal-cell { background: var(--surface); min-height: 84px; padding: var(--s2); display: flex; flex-direction: column; gap: 4px; }
  .cal-n { font-size: var(--step-00); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
  .cal-ev { font-size: var(--step-000); font-weight: 600; background: var(--accent-tint); color: var(--accent-dark); border-radius: 4px; padding: 2px 6px; }
}

.dept-card {
  display: flex; flex-direction: column; gap: 2px; width: 100%; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s4); text-decoration: none; color: inherit;
}
.dept-card:hover { border-color: var(--accent); text-decoration: none; }
.dept-name { font-weight: 600; }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
@media (min-width: 40em) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
label { font-size: var(--step-00); font-weight: 600; }
input, select, textarea {
  font: inherit; font-size: var(--step-0); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 12px; min-height: 44px; width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-soft); opacity: 0.75; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent); outline-offset: 1px; }
.notice { background: var(--support-tint); color: var(--support-dark); border-radius: var(--radius-lg); padding: var(--s5); }

/* ---------- Homepage variants ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Marsh Bend: search-first, no hero image */
.hero--search { background: var(--bar); }
.hero--search .hero-body { max-width: 46rem; }
.hero--search h1 { font-size: var(--step-4); }
.hero-note { font-size: var(--step-00); color: oklch(88% 0.01 250); }
.searchbar { display: flex; flex-wrap: wrap; gap: var(--s2); }
.searchbar input { flex: 1 1 14rem; min-height: 48px; border-color: transparent; }
.searchbar .btn { flex: 0 0 auto; min-height: 48px; }

/* Ashford Corners: masthead and lead story */
.masthead { background: var(--surface); border-bottom: 2px solid var(--ink); text-align: center; }
.masthead .container { padding-block: clamp(20px, 4vw, 36px); }
.masthead-kicker, .masthead-sub {
  font-size: var(--step-000); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
}
.masthead h1 { font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.2rem); margin-block: var(--s2); }
.lead-story .lead-head { font-size: var(--step-4); line-height: 1.15; }
.lead-story .about-media { aspect-ratio: 16 / 9; }
