:root {
  --green: #1f6b3f;
  --green-dark: #134a2b;
  --accent: #8fd18f;
  --accent-soft: #e3f1e5;
  --cream: #f5f9f5;
  --ink: #1d232b;
  --muted: #55606d;
  --line: #d3ded6;
  --white: #fff;
  --alert: #8f1d1d;
  --radius: 8px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 3px; }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: #fff; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }  /* centered 1140px container; header/hero/footer bands run full width */
h1, h2, h3 { font-family: var(--serif); color: var(--green); line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 .5em; }
h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.15rem; margin: 0 0 .3em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #000; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.sample-banner { background: var(--accent-soft); border-bottom: 1px solid var(--accent); text-align: center; padding: 6px 16px; font-size: .9rem; }

/* Header */
.site-header { background: var(--green); color: var(--white); border-bottom: 4px solid var(--accent); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand-text strong { display: block; font: 700 1.3rem/1.1 var(--serif); }
.brand-text small { color: #d6e8dc; font-size: .85rem; }
.nav-toggle { display: none; background: transparent; color: var(--white); border: 1px solid #fff8; border-radius: var(--radius); padding: 8px 14px; font: inherit; cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { display: block; padding: 8px 12px; color: var(--white); text-decoration: none; border-radius: var(--radius); font-weight: 500; }
.site-nav a:hover { background: var(--green-dark); }
.site-nav a[aria-current="page"] { background: var(--green-dark); box-shadow: inset 0 -3px 0 var(--accent); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
}

/* Notice bar */
.notice { padding: 10px 0; background: var(--accent-soft); border-bottom: 1px solid var(--accent); }
.notice.alert { background: var(--alert); color: var(--white); border-color: var(--alert); }
.notice.alert a { color: var(--white); }

/* Layout */
.section { padding: 32px 0; }
.two-col { display: grid; gap: 32px; grid-template-columns: 2fr 1fr; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.page-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 32px 0 20px; }
.page-head p { color: var(--muted); margin: 0; max-width: 42rem; }
.meta { color: var(--muted); font-size: .9rem; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-plain li:last-child { border: 0; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--green); display: grid; place-items: center; font: 700 1.4rem var(--serif); margin-bottom: 10px; }

/* Buttons & forms */
.btn { display: inline-block; background: var(--green); color: var(--white); padding: 10px 18px; border: 0; border-radius: var(--radius); text-decoration: none; font: 600 1rem var(--sans); cursor: pointer; }
.btn:hover { background: var(--green-dark); color: var(--white); }
label { display: block; font-weight: 600; margin: 14px 0 4px; }
input[type=text], input[type=email], input[type=tel], textarea { width: 100%; padding: 10px; border: 1px solid #8a93a0; border-radius: var(--radius); font: inherit; background: var(--white); }
textarea { min-height: 150px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.msg.ok { background: #e3f3e6; border: 1px solid #7bb38a; }
.msg.err { background: #fbe7e7; border: 1px solid #d08a8a; }

/* Footer */
.site-footer { background: var(--green-dark); color: #d6e8dc; margin-top: 40px; padding-top: 36px; border-top: 4px solid var(--accent); }
.site-footer h2 { color: var(--white); font-size: 1.1rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-grid { display: grid; gap: 28px 40px; grid-template-columns: repeat(4, 1fr); align-items: start; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer p { margin: 0 0 .9em; }
.site-footer .sub-heading { margin-top: 1.4em; }
.site-footer li + li { margin-top: .35em; }
.site-footer .social-row { margin: 1em 0 0; }
.legal { text-align: center; margin-top: 28px; padding: 16px 0; border-top: 1px solid #ffffff22; font-size: .9rem; }

@media print {
  .site-header, .site-footer, .skip, .sample-banner, .nav-toggle { display: none; }
  body { background: #fff; }
}

/* Contact page */
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact-card h2 { margin: 0 0 .4em; font-size: 1.1rem; }
.contact-card .big { font: 600 1.2rem/1.4 var(--serif); margin: 0 0 .3em; overflow-wrap: anywhere; }
.hours { border-collapse: collapse; width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.hours th, .hours td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours td { white-space: nowrap; }
.hours th, .hours td { line-height: 1.4; }
@media (max-width: 520px) {
  .hours, .hours tbody, .hours tr, .hours th, .hours td { display: block; }
  .hours tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .hours tr:last-child { border-bottom: 0; }
  .hours th, .hours td { padding: 0; border: 0; }
  .hours td { margin-top: 2px; }
}
.card.list-plain { padding: 4px 0; }
.card.list-plain li { padding: 12px 16px; }

/* Homepage */
.icon { flex: none; }
.btn-accent { background: var(--accent); color: var(--green-dark); }
.btn-accent:hover { background: #a8dca8; color: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid #ffffff88; }
.btn-ghost:hover { background: #ffffff1a; color: var(--white); }
.phone { font: 600 1.15rem var(--serif); }
.card-alert { border-left: 4px solid var(--alert); }

.hero { position: relative; overflow: hidden; color: var(--white); padding: clamp(56px, 9vw, 104px) 0 clamp(96px, 13vw, 150px);
  background: radial-gradient(120% 140% at 85% 0%, #2f8a57 0%, var(--green) 45%, var(--green-dark) 100%); }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 14px; font: 600 .85rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 6vw, 3.9rem); line-height: 1.05; margin: 0 0 .35em; max-width: 14ch; }
.hero-lead { max-width: 36rem; color: #e0efe4; font-size: clamp(1.05rem, 2.2vw, 1.25rem); margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }
.hero-actions .btn { padding: 13px 24px; font-size: 1.05rem; }
.hero-ridge { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(70px, 11vw, 140px); display: block; }

.info-card { position: relative; z-index: 2; margin-top: clamp(-70px, -7vw, -44px); display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px #0b2a1a1f; }
.info-card > div { display: flex; gap: 14px; align-items: flex-start; padding: 24px 26px; }
.info-card > div + div { border-left: 1px solid var(--line); }
.info-card .icon { color: var(--green); background: var(--accent-soft); width: 44px; height: 44px; padding: 10px; border-radius: 50%; }
.info-card .label { display: block; font: 600 .78rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.info-card .value { font: 600 1.15rem/1.35 var(--serif); color: var(--ink); }
.info-card a.value { color: var(--green); text-decoration: none; }
.info-card a.value:hover { text-decoration: underline; }
@media (max-width: 820px) {
  .info-card { grid-template-columns: 1fr; }
  .info-card > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .info-card > div { padding: 18px 20px; }
}

.home-section { padding: clamp(40px, 6vw, 72px) 0 0; }
.home-section h2 { margin: 0 0 20px; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.links-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .links-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .links-grid { grid-template-columns: 1fr; } }
.link-tile { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); text-decoration: none; font: 600 1.05rem/1.25 var(--serif); transition: border-color .15s, box-shadow .15s, transform .15s; }
.link-tile .icon { color: var(--green); background: var(--accent-soft); width: 46px; height: 46px; padding: 11px; border-radius: 12px; }
.link-tile::after { content: "\2192"; margin-left: auto; color: var(--green); font-family: var(--sans); }
.link-tile:hover { border-color: var(--green); box-shadow: 0 6px 16px #0b2a1a1a; transform: translateY(-2px); color: var(--green-dark); }
@media (prefers-reduced-motion: reduce) { .link-tile { transition: none; } .link-tile:hover { transform: none; } }

.about-home { text-align: center; padding-bottom: clamp(40px, 6vw, 72px); }
.about-home p { max-width: 42rem; margin: 0 auto 1em; }
.stats { list-style: none; margin: 32px auto 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 0; max-width: 42rem; }
.stats li { flex: 1 1 10rem; padding: 4px 16px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { display: block; font: 700 clamp(1.8rem, 4vw, 2.4rem)/1.1 var(--serif); color: var(--green); }
.stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 520px) { .stats li + li { border-left: 0; } .stats li { flex-basis: 100%; } }
.nowrap { white-space: nowrap; }

.prose { max-width: none; }

/* Box design for content pages */
.box { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 12px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 2px 8px #0b2a1a12; }
.box h2 { margin: 0 0 .5em; font-size: 1.35rem; }
.box p { margin: 0 0 .9em; }
.box p:last-child { margin-bottom: 0; }
.box-layout { display: grid; gap: 24px; grid-template-columns: 3fr 2fr; align-items: start; }
.box-layout .box-tall { grid-row: span 2; }
@media (max-width: 860px) { .box-layout { grid-template-columns: 1fr; } .box-layout .box-tall { grid-row: auto; } }
.box-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.box-alert { border-top-color: var(--alert); }
.box-phone { font: 700 clamp(1.5rem, 3vw, 2rem)/1.2 var(--serif); }
.box-phone a { text-decoration: none; }

/* ---------- Motion & polish (all motion is disabled for prefers-reduced-motion) ---------- */
html { scroll-padding-top: 96px; }
.site-header { position: sticky; top: 0; z-index: 50; transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 4px 18px #0b2a1a40; }
.site-nav.open { max-height: calc(100vh - 96px); overflow-y: auto; }

/* Nav link: animated underline */
.site-nav a { position: relative; transition: background-color .2s ease; }
.site-nav a:not([aria-current])::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.site-nav a:not([aria-current]):hover::after, .site-nav a:not([aria-current]):focus-visible::after { transform: scaleX(1); }

/* Buttons & cards */
.btn { transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px #0b2a1a33; }
.btn:active { transform: translateY(0); box-shadow: none; }
.card, .box { transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
a.card:hover, .box:hover { box-shadow: 0 8px 22px #0b2a1a1f; border-color: #b9ccbf; }
.info-card .icon, .link-tile .icon { transition: transform .25s ease, background-color .25s ease, color .25s ease; }
.link-tile:hover .icon { background: var(--green); color: var(--white); transform: scale(1.06); }
.link-tile::after { transition: transform .2s ease; }
.link-tile:hover::after { transform: translateX(4px); }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green); color: var(--white); display: grid; place-items: center; box-shadow: 0 6px 18px #0b2a1a55; transition: background-color .2s ease, transform .2s ease; }
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--green-dark); transform: translateY(-2px); }
.to-top:focus-visible { outline-color: var(--green-dark); outline-offset: 3px; box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--green-dark); }

@media (prefers-reduced-motion: no-preference) {
  /* One-time hero entrance */
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .hero .wrap > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero .wrap > :nth-child(2) { animation-delay: .08s; }
  .hero .wrap > :nth-child(3) { animation-delay: .16s; }
  .hero .wrap > :nth-child(4) { animation-delay: .24s; }

  /* Scroll reveal: only hidden when JS is confirmed running */
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  /* hover transforms must beat the reveal transition once shown */
  .js .link-tile.reveal.in { transition: opacity .6s ease var(--d, 0ms), transform .2s ease, border-color .15s, box-shadow .15s; }

  /* Soft cross-fade between pages (supported browsers only) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .to-top:hover, .link-tile:hover { transform: none; }
}
@media print { .to-top { display: none !important; } .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- Link hover effects (underlines stay visible at rest; hover adds emphasis) ---------- */
a { text-decoration-thickness: 1px; transition: color .2s ease, background-color .2s ease, text-decoration-thickness .2s ease, text-underline-offset .2s ease; }
main a:not([class]), .info-card a.value, .box-phone a, .contact-card .big a { border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
main a:not([class]):hover, main a:not([class]):focus-visible,
.box-phone a:hover, .contact-card .big a:hover, .info-card a.value:hover {
  color: var(--green-dark); background-color: var(--accent-soft); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.box-phone a:hover { text-decoration: underline; }

/* Footer links */
.site-footer a { text-decoration-color: #ffffff66; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--accent); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Brand: no hover effect, text stays white */
.brand:hover, .brand:focus-visible { color: var(--white); text-decoration: none; }

/* Social icon links */
.site-footer a.social-link { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--white); text-decoration: none;
  transition: color .2s ease, transform .2s ease, background-color .2s ease; }
.site-footer a.social-link:hover, .site-footer a.social-link:focus-visible { color: var(--accent); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .site-footer a.social-link:hover { transform: none; } }

/* Font Awesome icons */
.icon { width: 1.25em; height: 1.25em; }
.to-top .icon { width: 20px; height: 20px; }
.site-footer a.social-link .icon { width: 36px; height: 36px; }
p > a > .icon { width: 1em; height: 1em; vertical-align: -0.15em; margin-right: .5em; }

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

/* Hero photo background (green overlay keeps white text readable) */
/* Hero photo: the picture (::before) and the green overlay (::after) are separate layers so only the picture zooms on hover */
.hero--photo { background: var(--green-dark); }
.hero--photo::before, .hero--photo::after { content: ""; position: absolute; inset: 0; }
.hero--photo::before { background: var(--hero-lg) 78% 55% / cover no-repeat; transform: scale(1); transform-origin: 78% 55%; }
.hero--photo::after { background: linear-gradient(90deg, rgba(19,74,43,.93) 0%, rgba(19,74,43,.84) 48%, rgba(19,74,43,.3) 85%, rgba(19,74,43,.22) 100%); }
.hero-ridge { z-index: 1; }
@media (max-width: 700px) {
  .hero--photo::before { background: var(--hero-sm) center / cover no-repeat; transform-origin: center; }
  .hero--photo::after { background: rgba(19,74,43,.86); }
}
/* Slow zoom on hover (mouse users only; skipped for reduced-motion) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero--photo::before { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); will-change: transform; }
  .hero--photo:hover::before { transform: scale(1.07); }
}
.hero-credit { position: absolute; z-index: 2; top: 10px; right: 12px; margin: 0; max-width: calc(100% - 24px); padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; line-height: 1.4; text-align: right; }
.hero-credit a { color: #fff; }

/* Accessibility: card headings on the Agencies page, high-contrast / forced-colors support */
.card h2 { margin: 0 0 .3em; font-size: 1.15rem; }
main:focus { outline: none; }
.btn, .to-top { border: 2px solid transparent; }
@media (forced-colors: active) {
  .card, .box, .link-tile, .info-card, .hours { border: 1px solid CanvasText; }
  .btn, .to-top { border-color: ButtonText; }
  .hero--photo::before, .hero--photo::after { display: none; }
  .site-nav a[aria-current="page"] { text-decoration: underline; }
}

.btn.btn-ghost { border-color: #fff; background: rgba(255,255,255,.08); }
.btn.btn-ghost:hover { background: rgba(255,255,255,.2); border-color: #fff; color: var(--white); }


/* Contact form */
.contact-form .field { margin-top: 18px; }
.contact-form label { margin: 0 0 6px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea { border: 2px solid #6b7a70; background: var(--white); }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--green-dark); outline-offset: 2px; border-color: var(--green-dark); }
.contact-form .hint { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.contact-form .has-error input, .contact-form .has-error textarea { border-color: var(--alert); }
.field-error { margin: 6px 0 0; color: var(--alert); font-weight: 600; font-size: .95rem; }
.msg ul { margin: .5em 0 0; padding-left: 1.2em; }
.msg a { color: inherit; }
.msg:focus { outline: 3px solid var(--green-dark); outline-offset: 2px; }
.msg.ok, .msg.err { color: var(--ink); }

/* Hero: centered on phones */
@media (max-width: 700px) {
  .hero .wrap { text-align: center; }
  .hero h1, .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; flex-direction: column; align-items: center; }
  .hero-actions .btn { width: min(100%, 280px); text-align: center; }
}

/* Footer: centered on phones */
@media (max-width: 700px) {
  .site-footer .footer-grid { text-align: center; justify-items: center; }
  .site-footer .footer-grid > div { width: 100%; }
  .site-footer .legal { padding-bottom: 80px; }   /* keeps the back-to-top button off the copyright text */
}

/* Page title bars: centered */
.page-head { text-align: center; }
.page-head p { margin-inline: auto; }
.contact-main { max-width: none; }

/* Official cards: centered content */
.person { text-align: center; }
.person .avatar { margin-inline: auto; }
@media (max-width: 700px) { .group-title { text-align: center; } }

/* Tablets: the sign sits closer to the text, so darken the overlay a bit more and narrow the intro text */
@media (min-width: 701px) and (max-width: 1100px) {
  .hero--photo::after { background: linear-gradient(90deg, rgba(19,74,43,.94) 0%, rgba(19,74,43,.88) 55%, rgba(19,74,43,.62) 100%); }
  .hero-lead { max-width: 28rem; }
}
.box h3 { margin: 0 0 .5em; font-size: 1.2rem; }

/* ---------- Stand-alone links: no underline at rest, underlined on hover and keyboard focus ----------
   (Links inside sentences and paragraphs keep their underline so they never rely on color alone.) */
.site-footer a, .contact-card a, .about-home p > a, .box a, .info-card a { text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible,
.contact-card a:hover, .contact-card a:focus-visible,
.about-home p > a:hover, .about-home p > a:focus-visible,
.box a:hover, .box a:focus-visible,
.info-card a:hover, .info-card a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Contact page map */
.map-section { margin-top: 32px; }
.map-section h2 { margin-top: 0; }
.map-frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: 0 2px 8px #0b2a1a12; }
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }
@media (max-width: 700px) { .map-frame iframe { height: 300px; } }
.map-caption { margin: 10px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
@media print { .map-frame { display: none; } }
.site-footer .legal a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.site-footer .legal a:hover, .site-footer .legal a:focus-visible { text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Footer links: light-green accent so they stand apart from the pale body text; white on hover/focus */
.site-footer a { color: var(--accent); }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; text-decoration-color: #fff; }
.site-footer a.social-link { color: var(--white); }   /* Facebook icon stays white */
.site-footer a.social-link:hover, .site-footer a.social-link:focus-visible { color: var(--accent); }
.site-footer .legal a { text-decoration-color: currentColor; }

/* ---------- Officials & Staff cards: hover effects (mouse users; motion skipped for reduced-motion) ---------- */
.person { position: relative; overflow: hidden; }
.person::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--green); transform: scaleX(0); transform-origin: left; }
.person .avatar { transition: background-color .3s ease, color .3s ease, transform .3s ease; }
.person h3 { transition: color .3s ease; }
@media (hover: hover) {
  .person { transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease; }
  .js .person.reveal.in { transition: opacity .6s ease var(--d, 0ms), transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
  .person:hover { border-color: #b9ccbf; box-shadow: 0 12px 28px #0b2a1a26; }
  .person:hover .avatar { background: var(--green); color: var(--white); }
  .person:hover h3 { color: var(--green-dark); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .person::before { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
  .person:hover::before { transform: scaleX(1); }
  .person:hover, .js .person.reveal.in:hover { transform: translateY(-5px); }
  .person:hover .avatar { transform: scale(1.1); }
}

/* Preview-site password page */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--cream); }
.gate-card { width: min(100%, 26rem); padding: clamp(24px, 5vw, 36px); border-top: 4px solid var(--green); box-shadow: 0 8px 28px #0b2a1a1f; }
.gate-card h1 { margin: 0 0 .4em; font-size: 1.9rem; }
.gate-eyebrow { color: var(--green); }
.gate-card .field label { margin-bottom: 6px; }
.gate-card input[type=password] { width: 100%; padding: 10px; border: 2px solid #6b7a70; border-radius: var(--radius); font: inherit; background: var(--white); }
.gate-card input[type=password]:focus { outline: 3px solid var(--green-dark); outline-offset: 2px; border-color: var(--green-dark); }

/* Links inside a sentence in a card note keep their underline (they sit in running text) */
.box .meta a.note-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.box .meta a.note-link:hover, .box .meta a.note-link:focus-visible { text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Community calendar: month grid on wide screens, event list everywhere (phones show only the list) */
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cal-month { margin: 0; text-align: center; flex: 1; }
.cal-btn { min-width: 7.5rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--green); border-radius: var(--radius); background: var(--white); color: var(--green); font-weight: 600; text-decoration: none; }
.cal-btn:hover { background: var(--accent-soft); color: var(--green-dark); }
.cal-btn-off { border-color: transparent; background: none; }
.cal-notice { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 4px 16px; margin-bottom: 20px; }
.cal-grid { display: none; width: 100%; table-layout: fixed; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); margin-bottom: 8px; }
.cal-grid th { background: var(--green); color: var(--white); padding: 8px 4px; font-size: .9rem; }
.cal-grid abbr { text-decoration: none; }
.cal-grid td { vertical-align: top; height: 7.5rem; padding: 4px 6px; border: 1px solid var(--line); font-size: .85rem; line-height: 1.3; }
.cal-grid td.out { background: var(--cream); color: var(--muted); }
.cal-grid td.today { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--green); }
.cal-day { display: block; font-weight: 700; margin-bottom: 2px; }
.cal-grid ul { list-style: none; margin: 0; padding: 0; }
.cal-grid li { margin-bottom: 3px; }
.cal-grid li a { display: block; min-height: 24px; padding: 3px 5px; border-left: 3px solid var(--green); background: var(--accent-soft); border-radius: 3px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.cal-grid li a:hover, .cal-grid li a:focus-visible { background: var(--accent); }
.cal-t { font-weight: 700; }
.cal-list-title { margin-top: 28px; }
.cal-date { margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--accent); }
.cal-event { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; scroll-margin-top: 90px; }
.cal-event:focus { outline: none; }
.cal-event:target, .cal-event:focus-visible { box-shadow: 0 0 0 3px var(--green); }
.cal-event h3 { margin-bottom: 6px; }
.cal-event p { margin: 0 0 6px; }
.cal-when, .cal-where { display: flex; gap: 8px; align-items: flex-start; }
.cal-when .icon, .cal-where .icon { flex: none; width: 1em; height: 1em; margin-top: .4em; color: var(--green); }
.cal-desc { overflow-wrap: anywhere; }
.cal-actions { font-size: .95rem; }
.cal-where a { display: inline-block; min-height: 24px; padding: 2px 0; }
.cal-actions a { display: inline-block; min-height: 28px; padding: 3px 0; }
.cal-earlier { margin: 16px 0; }
.cal-earlier summary { cursor: pointer; font-weight: 600; color: var(--green); padding: 8px 0; }
.cal-earlier .cal-event { opacity: .85; }
.cal-empty { color: var(--muted); }
@media (min-width: 861px) { .cal-grid { display: table; } }
@media (max-width: 520px) { .cal-btn { min-width: 0; padding-inline: 10px; } .cal-month { font-size: 1.25rem; } }
@media print { .cal-nav { display: none; } .cal-grid { display: table; } .cal-event { break-inside: avoid; } }
