/* Town site styles. All colours and fonts come from custom properties set
   inline on <html>: --primary, --accent, --font-heading, --font-body,
   --font-ui, --btn-radius. Only neutral white/black/grey are fixed here. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  color: #1a1a1a; background: #fff; overflow-wrap: break-word;
}
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.25; }
a { color: var(--primary); }
img, iframe { max-width: 100%; }
.skip-link {
  position: absolute; left: 0.5rem; top: -4rem; background: #fff; color: #000;
  padding: 0.5rem 1rem; z-index: 100; border: 2px solid #000;
}
.skip-link:focus { top: 0.5rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.preview-banner {
  background: var(--accent); color: #000; text-align: center; padding: 0.5rem 1rem;
  font-family: var(--font-ui); font-weight: 600;
}
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1rem; padding: 0.75rem 1rem; background: var(--primary); color: #fff;
  font-family: var(--font-ui);
}
.site-header a { color: #fff; text-decoration: none; }
.brand { display: inline-flex; align-items: center; font-size: 1.35rem; font-weight: 700; }
.logo { max-height: 3rem; width: auto; }
.nav-toggle summary {
  cursor: pointer; padding: 0.5rem 1rem; border: 2px solid #fff;
  border-radius: var(--btn-radius); list-style: none;
}
.nav-toggle summary::-webkit-details-marker { display: none; }
.menu, .submenu { list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 0.5rem 0; }
.submenu { padding-left: 1rem; font-size: 0.95em; }
.nav-toggle[open] { flex-basis: 100%; }
.nav-wide { display: none; }
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-wide { display: block; }
  .nav-wide .menu { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
  .nav-wide .menu > li { position: relative; }
  .nav-wide .submenu {
    position: absolute; right: 0; top: 100%; min-width: 12rem;
    background: var(--primary); padding: 0.5rem 1rem; z-index: 10;
    /* Stays open briefly after the pointer leaves, so a diagonal move reaches it. */
    visibility: hidden; transition: visibility 0s 0.4s;
  }
  .nav-wide .menu > li:hover > .submenu,
  .nav-wide .menu > li:focus-within > .submenu { visibility: visible; transition-delay: 0s; }
}
main { display: block; }
.page { max-width: 46rem; margin: 0 auto; padding: 1rem; }
.breadcrumbs { max-width: 46rem; margin: 0 auto; padding: 0.75rem 1rem 0; font-size: 0.9rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.25rem; color: #595959; }
figure { margin: 1rem 0; }
figure img { display: block; height: auto; }
figcaption { font-size: 0.9rem; color: #595959; }
.callout { border-left: 6px solid var(--accent); background: #f5f5f5; padding: 0.75rem 1rem; margin: 1rem 0; }
.callout-warning { border-left-width: 10px; }
.callout > :first-child { margin-top: 0; }
.video-card a {
  display: block; padding: 1rem; border: 2px solid var(--primary);
  border-radius: 0.5rem; text-decoration: none; word-break: break-all;
}
.video-card-label { font-weight: 700; font-family: var(--font-ui); }
.map-block { display: block; width: 100%; border: 0; margin: 1rem 0; }
.home-layout { display: flex; flex-direction: column; }
.home-map { display: block; width: 100%; height: 70vh; min-height: 300px; border: 0; }
.home-panel { padding: 1rem; }
@media (min-width: 768px) {
  .home-layout { flex-direction: row; }
  .home-map { flex: 1 1 auto; width: auto; }
  .home-panel { flex: 0 0 22rem; max-height: 70vh; overflow-y: auto; }
}
.quick-links ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.quick-links a {
  display: block; padding: 0.6rem 1rem; background: var(--primary); color: #fff;
  text-decoration: none; text-align: center; font-family: var(--font-ui);
  border-radius: var(--btn-radius);
}
.site-footer { padding: 1.5rem 1rem; border-top: 4px solid var(--accent); background: #f5f5f5; font-size: 0.95rem; }
.site-footer .contact h2 { font-size: 1.1rem; margin-top: 0; }
.social { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.land-ack { font-style: italic; }
