/* Town of Herkimer test site - shared styles.
   Every color, font, radius, shadow and easing lives in :root. Change tokens, not components. */

:root {
  /* Structural tones, sampled from the town seal */
  --c-seal: #182f18;          /* seal ring green - dark surfaces */
  --c-seal-2: #23422a;        /* raised surface on dark */
  --c-seal-3: #2f5236;        /* borders on dark */
  --c-green: #2e5b36;         /* links, buttons, icons on light */
  --c-green-hover: #1d3f24;
  --c-green-tint: #e4ecdf;    /* soft green fill on light */

  /* The rationed accent: seal gold. Light weight on dark, bronze weight on light */
  --c-gold: #ffd56a;          /* on dark only */
  --c-gold-soft: #f7e6b0;     /* alert band fill */
  --c-bronze: #7a5a12;        /* gold voice on light surfaces */

  /* Paper surfaces */
  --c-paper: #fbf8f0;
  --c-paper-2: #f3ecdc;
  --c-card: #ffffff;
  --c-line: #dcd2bd;
  --c-line-strong: #8f8262;

  /* Ink */
  --c-ink: #1a221b;
  --c-ink-2: #4a5348;
  --c-on-dark: #f6f1e3;
  --c-on-dark-2: #c6d2c2;

  /* Focus */
  --c-focus: #1d3f24;
  --c-focus-on-dark: #ffd56a;

  /* Type */
  --f-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --f-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --f-sans: "Public Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --fs-xs: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --fs-sm: clamp(0.88rem, 0.86rem + 0.12vw, 0.95rem);
  --fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-lg: clamp(1.1rem, 1.04rem + 0.3vw, 1.25rem);
  --fs-h4: clamp(1.15rem, 1.08rem + 0.35vw, 1.3rem);
  --fs-h3: clamp(1.3rem, 1.18rem + 0.6vw, 1.6rem);
  --fs-h2: clamp(1.85rem, 1.5rem + 1.6vw, 2.75rem);
  --fs-h1: clamp(2.3rem, 1.7rem + 3vw, 4.1rem);
  --fs-hero: clamp(2.6rem, 1.6rem + 4.6vw, 5.2rem);

  --lh-tight: 1.12;
  --lh-body: 1.65;

  /* Space and shape */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --maxw-prose: 70ch;
  --sec-pad: clamp(64px, 5vw + 40px, 104px);
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(24, 47, 24, 0.08), 0 2px 8px rgba(24, 47, 24, 0.06);
  --shadow-2: 0 4px 14px rgba(24, 47, 24, 0.12), 0 18px 40px rgba(24, 47, 24, 0.10);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.5s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: var(--lh-tight); font-weight: 400; color: inherit; }
h1 { font-family: var(--f-display); font-size: var(--fs-h1); letter-spacing: -0.01em; }
h2 { font-family: var(--f-display); font-size: var(--fs-h2); letter-spacing: -0.005em; }
h3 { font-family: var(--f-serif); font-size: var(--fs-h3); font-weight: 700; }
h4 { font-family: var(--f-sans); font-size: var(--fs-h4); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--c-green); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--c-green-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .section--dark :focus-visible, .site-footer :focus-visible, .page-hero :focus-visible, .hero :focus-visible { outline-color: var(--c-focus-on-dark); }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 2rem 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: var(--maxw-prose); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--c-gold); color: var(--c-seal); padding: 10px 16px;
  border-radius: var(--r-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Motif: seal dots and seal ring ---------- */
/* The seal separates its two lines of lettering with dots. Eyebrows reuse that device. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--f-sans); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-bronze);
  margin: 0 0 0.9rem;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none;
}
.section--dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow, .on-dark .eyebrow { color: var(--c-gold); }

/* Double ring rule - the seal's outer ring drawn flat */
.ring-rule {
  display: flex; align-items: center; gap: 14px; margin: 0 auto; max-width: var(--maxw);
  padding-inline: var(--gutter); color: var(--c-line-strong);
}
.ring-rule::before, .ring-rule::after { content: ""; flex: 1; border-top: 1px solid currentColor; box-shadow: 0 3px 0 -2px currentColor; height: 4px; }
.ring-rule span {
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--c-bronze);
  box-shadow: 0 0 0 3px var(--c-paper), 0 0 0 4px var(--c-line-strong);
}

/* Seal medallion */
.medallion {
  border-radius: 50%; background: var(--c-seal);
  box-shadow: 0 0 0 4px var(--c-gold), 0 0 0 9px var(--c-seal), var(--shadow-2);
  padding: 0; overflow: hidden; flex: none;
}
.medallion img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 46px; padding: 0.7em 1.3em; border-radius: var(--r-pill);
  font-family: var(--f-sans); font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.02em;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn--primary { background: var(--c-green); color: #fff; }
.btn--primary:hover { background: var(--c-green-hover); color: #fff; }
.btn--gold { background: var(--c-gold); color: var(--c-seal); }
.btn--gold:hover { background: #ffe08f; color: var(--c-seal); }
.btn--ghost { border-color: currentColor; color: var(--c-green); background: transparent; }
.btn--ghost:hover { background: var(--c-green-tint); color: var(--c-green-hover); }
.on-dark .btn--ghost, .section--dark .btn--ghost, .hero .btn--ghost, .page-hero .btn--ghost { color: var(--c-on-dark); }
.on-dark .btn--ghost:hover, .section--dark .btn--ghost:hover, .hero .btn--ghost:hover, .page-hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-1px); } }

/* ---------- Alert bar ---------- */
.alertbar { background: var(--c-gold-soft); color: var(--c-seal); border-bottom: 1px solid #e3cd86; font-size: var(--fs-sm); }
.alertbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 28px; padding-block: 9px; align-items: center; }
.alertbar p { margin: 0; display: flex; gap: 0.6em; align-items: baseline; }
.alertbar .tag {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--c-seal); color: var(--c-gold); padding: 2px 8px; border-radius: var(--r-sm); flex: none;
}
.alertbar a { color: var(--c-seal); font-weight: 600; }

/* ---------- Header and nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--c-paper);
  border-bottom: 1px solid var(--c-line); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-seal); }
.brand img { width: 54px; height: 54px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); }
.brand-name small { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-ink-2); font-weight: 600; margin-top: 4px; }
.brand:hover { color: var(--c-seal); }

.nav-toggle-menu {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: var(--c-seal); color: var(--c-on-dark); border: 0; border-radius: var(--r-pill);
  font: 700 var(--fs-sm) var(--f-sans); cursor: pointer;
}
.nav-toggle-menu svg { width: 20px; height: 20px; }

.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav li { position: relative; }
.site-nav a, .site-nav button.nav-group {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  font: 600 var(--fs-sm) var(--f-sans); color: var(--c-ink); text-decoration: none;
  background: none; border: 0; border-radius: var(--r-pill); cursor: pointer;
}
.site-nav button.nav-group svg { width: 12px; height: 12px; transition: transform 0.2s var(--ease); }
.site-nav button.nav-group[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav a:hover, .site-nav button.nav-group:hover { background: var(--c-green-tint); color: var(--c-green-hover); }
.site-nav a[aria-current="page"], .site-nav .is-current > button.nav-group { color: var(--c-green); box-shadow: inset 0 -3px 0 var(--c-bronze); border-radius: 0; }
.site-nav .nav-cta { background: var(--c-green); color: #fff; margin-left: 6px; }
.site-nav .nav-cta:hover { background: var(--c-green-hover); color: #fff; }
.site-nav .nav-cta[aria-current="page"] { box-shadow: none; border-radius: var(--r-pill); color: #fff; }

.nav-sub {
  list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 260px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-md);
  box-shadow: var(--shadow-2); display: none;
}
.nav-sub.is-open { display: block; }
.nav-sub a { border-radius: var(--r-sm); padding: 8px 12px; min-height: 40px; font-weight: 500; }
.nav-sub a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--c-bronze); background: var(--c-green-tint); }
.nav-sub .nav-sub-head a { font-weight: 700; color: var(--c-green); }
.nav-sub .nav-sub-head { border-bottom: 1px solid var(--c-line); margin-bottom: 6px; padding-bottom: 6px; }

@media (max-width: 1020px) {
  .nav-toggle-menu { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--c-paper); border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow-2); max-height: calc(100vh - 76px); overflow-y: auto; }
  .site-nav.is-open { display: block; }
  .no-js .site-nav { display: block; position: static; box-shadow: none; }
  .site-nav > ul { flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 20px; gap: 0; }
  .site-nav a, .site-nav button.nav-group { width: 100%; justify-content: space-between; border-radius: var(--r-sm); min-height: 48px; font-size: var(--fs-base); }
  .site-nav a[aria-current="page"], .site-nav .is-current > button.nav-group { box-shadow: inset 3px 0 0 var(--c-bronze); border-radius: var(--r-sm); }
  .nav-sub { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--c-line); border-radius: 0; margin: 0 0 8px 12px; padding: 0 0 0 8px; min-width: 0; }
  .site-nav .nav-cta { margin: 10px 0 0; justify-content: center; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; color: var(--c-on-dark); background: var(--c-seal); overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 40%; }
@media (min-width: 1021px) {
  /* Desktop: the photo sits right of the copy so the General Herkimer statue stays visible */
  .hero-photo { left: 36%; }
  .hero-photo img { object-position: 30% 40%; }
  .hero::before {
    background:
      linear-gradient(90deg, var(--c-seal) 0%, var(--c-seal) 36%, rgba(24, 47, 24, 0.55) 46%, rgba(24, 47, 24, 0.05) 70%, rgba(24, 47, 24, 0) 100%),
      linear-gradient(0deg, rgba(16, 32, 16, 0.9) 0%, rgba(16, 32, 16, 0) 40%);
  }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 32, 16, 0.94) 0%, rgba(16, 32, 16, 0.86) 38%, rgba(16, 32, 16, 0.45) 70%, rgba(16, 32, 16, 0.25) 100%),
    linear-gradient(0deg, rgba(16, 32, 16, 0.85) 0%, rgba(16, 32, 16, 0) 45%);
}
.hero .wrap { padding-block: clamp(56px, 6vw + 32px, 120px) clamp(40px, 4vw + 24px, 72px); display: grid; gap: 40px; }
.hero-copy { max-width: 640px; }
.hero h1 { font-size: var(--fs-hero); margin-bottom: 0.3em; }
.hero h1 em { font-style: italic; color: var(--c-gold); }
.hero .lead { font-size: var(--fs-lg); color: var(--c-on-dark); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-medallion { width: clamp(96px, 8vw + 60px, 150px); height: clamp(96px, 8vw + 60px, 150px); margin-bottom: 28px; }

/* Quick tasks under the hero */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: rgba(255, 213, 106, 0.28); border: 1px solid rgba(255, 213, 106, 0.28); border-radius: var(--r-md); overflow: hidden; }
.quick a {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: rgba(16, 32, 16, 0.82);
  color: var(--c-on-dark); text-decoration: none; min-height: 88px;
  transition: background-color 0.2s var(--ease);
}
.quick a b { font-weight: 700; font-size: var(--fs-base); color: #fff; }
.quick a span { font-size: var(--fs-sm); color: var(--c-on-dark-2); }
.quick a:hover { background: var(--c-seal-2); }
.quick a:hover b { color: var(--c-gold); }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--c-seal); color: var(--c-on-dark); position: relative; overflow: hidden; }
.page-hero::after {
  /* faint seal ring watermark */
  content: ""; position: absolute; right: -120px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%);
  border-radius: 50%; border: 2px solid rgba(255, 213, 106, 0.16); box-shadow: 0 0 0 26px rgba(255, 213, 106, 0.05), inset 0 0 0 26px rgba(255, 213, 106, 0.05);
  pointer-events: none;
}
.page-hero .wrap { padding-block: clamp(36px, 3vw + 24px, 64px) clamp(40px, 3vw + 28px, 72px); position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 0.25em; }
.page-hero .lead { font-size: var(--fs-lg); color: var(--c-on-dark-2); max-width: 60ch; margin: 0; }
.breadcrumb ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-sm); color: var(--c-on-dark-2); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--c-on-dark-2); }
.breadcrumb a { color: var(--c-on-dark); }
.breadcrumb a:hover { color: var(--c-gold); }
.breadcrumb [aria-current="page"] { color: var(--c-on-dark-2); }

/* ---------- Sections ---------- */
.section { padding-block: var(--sec-pad); }
.section--alt { background: var(--c-paper-2); }
.section--dark { background: var(--c-seal); color: var(--c-on-dark); }
.section--dark a:not(.btn) { color: var(--c-gold); }
.section--dark p { color: var(--c-on-dark); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 3vw, 48px); }
.section-head p { color: var(--c-ink-2); font-size: var(--fs-lg); margin: 0; }
.section--dark .section-head p { color: var(--c-on-dark-2); }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; }
.section-head--split > div { max-width: 700px; }

/* ---------- Task cards ---------- */
.tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.task {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 20px;
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-md);
  box-shadow: var(--shadow-1); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.task:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow-2); }
@media (prefers-reduced-motion: no-preference) { .task:hover { transform: translateY(-2px); } }
.task-icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px;
  background: var(--c-seal); color: var(--c-gold); box-shadow: 0 0 0 2px var(--c-card), 0 0 0 3px var(--c-bronze);
}
.task-icon svg { width: 22px; height: 22px; }
.task h3 { font-size: var(--fs-h4); margin: 0; }
.task h3 a { color: var(--c-ink); text-decoration: none; }
.task h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
.task h3 a:hover { color: var(--c-green); }
.task p { margin: 0; color: var(--c-ink-2); font-size: var(--fs-sm); }
.task .task-meta { margin-top: auto; padding-top: 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--c-green); }

/* ---------- Meetings band ---------- */
.meet { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.meet-card { background: var(--c-seal-2); border: 1px solid var(--c-seal-3); border-radius: var(--r-lg); padding: clamp(22px, 2.5vw, 32px); }
.meet-date { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.date-disc {
  width: 86px; height: 86px; border-radius: 50%; flex: none; display: grid; place-content: center; text-align: center;
  background: var(--c-gold); color: var(--c-seal); box-shadow: 0 0 0 4px var(--c-seal-2), 0 0 0 6px var(--c-gold);
  line-height: 1;
}
.date-disc b { font-family: var(--f-display); font-size: 2rem; font-weight: 400; display: block; }
.date-disc span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.meet-card h3 { margin: 0 0 4px; color: #fff; }
.meet-card p { color: var(--c-on-dark-2); margin: 0; }
.meet-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-seal-3); }
.meet-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--c-seal-3); }
.meet-list b { color: #fff; font-weight: 700; }
.meet-list span { color: var(--c-on-dark-2); font-size: var(--fs-sm); grid-column: 1 / -1; }

/* ---------- Notices ---------- */
.notices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.notice { background: var(--c-card); border: 1px solid var(--c-line); border-top: 4px solid var(--c-green); border-radius: var(--r-md); padding: 22px; display: flex; flex-direction: column; }
.notice .kind { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-bronze); margin-bottom: 8px; }
.notice h3 { font-size: var(--fs-h4); }
.notice p { color: var(--c-ink-2); font-size: var(--fs-sm); }
.notice .more { margin-top: auto; font-weight: 600; font-size: var(--fs-sm); }

/* ---------- Story / history ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.story-figure { position: relative; }
.story-figure img { border-radius: var(--r-lg); box-shadow: var(--shadow-2); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.story-figure figcaption { font-size: var(--fs-sm); color: var(--c-ink-2); margin-top: 10px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin-top: 28px; border-top: 1px solid var(--c-line); }
.fact { padding: 18px 16px 0 0; }
.fact b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.7rem); color: var(--c-seal); line-height: 1; }
.fact span { display: block; font-size: var(--fs-sm); color: var(--c-ink-2); margin-top: 6px; }
.pullquote { font-family: var(--f-serif); font-style: italic; font-size: var(--fs-lg); color: var(--c-seal); border-left: 3px solid var(--c-bronze); padding-left: 18px; margin: 24px 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--c-seal); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 8 / 5; transition: transform 0.6s var(--ease); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; font-size: var(--fs-sm); color: #fff;
  background: linear-gradient(0deg, rgba(16, 32, 16, 0.92), rgba(16, 32, 16, 0));
}
.gallery .g-wide { grid-column: span 6; }
.gallery .g-third { grid-column: span 4; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .gallery figure:hover img { transform: scale(1.03); } }
@media (max-width: 760px) { .gallery .g-wide, .gallery .g-third { grid-column: span 12; } }

/* ---------- Directory table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-card); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 620px; }
table.data th, table.data td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
table.data thead th { background: var(--c-paper-2); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-ink-2); }
table.data tbody tr:last-child > * { border-bottom: 0; }
table.data tbody th { font-weight: 700; }
table.data a { white-space: nowrap; }

/* ---------- Office / department page layout ---------- */
.office { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.office-main > * + h2 { margin-top: 1.6em; }
.office-main h2 { font-size: clamp(1.6rem, 1.35rem + 1vw, 2.1rem); }
.office-main ul.checks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.office-main ul.checks li { position: relative; padding-left: 30px; }
.office-main ul.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--c-bronze); box-shadow: inset 0 0 0 3px var(--c-paper), inset 0 0 0 10px var(--c-green);
}
.callout { background: var(--c-gold-soft); border-left: 4px solid var(--c-bronze); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 16px 20px; margin: 0 0 1.4em; color: var(--c-seal); }
.callout p:last-child { margin: 0; }
.callout strong { display: block; margin-bottom: 4px; }
.contact-card { position: sticky; top: 100px; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.contact-card header { background: var(--c-seal); color: var(--c-on-dark); padding: 20px 22px; }
.contact-card header p { margin: 0; font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-gold); font-weight: 700; }
.contact-card header h2 { font-family: var(--f-serif); font-weight: 700; font-size: var(--fs-h3); margin: 4px 0 0; color: #fff; }
.contact-card dl { margin: 0; padding: 8px 22px 18px; }
.contact-card dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-ink-2); margin-top: 14px; }
.contact-card dd { margin: 2px 0 0; }
.contact-card .hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: var(--fs-sm); }
@media (max-width: 900px) { .office { grid-template-columns: 1fr; } .contact-card { position: static; } }

/* ---------- Document library ---------- */
.lib-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; margin-bottom: 24px; }
.lib-tools label { display: block; font-weight: 700; font-size: var(--fs-sm); margin-bottom: 6px; }
.lib-tools input[type="search"] {
  width: min(460px, 100%); min-height: 48px; padding: 0 16px; font: inherit; color: var(--c-ink);
  background: var(--c-card); border: 2px solid var(--c-line-strong); border-radius: var(--r-pill);
}
.lib-tools input[type="search"]:focus-visible { border-color: var(--c-green); outline-offset: 2px; }
.lib-count { font-size: var(--fs-sm); color: var(--c-ink-2); margin: 0; }
.lib-jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; }
.lib-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--c-line-strong); background: var(--c-card); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.lib-jump a:hover { background: var(--c-green-tint); }
.lib-group { margin-bottom: 40px; }
.lib-group > h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.95rem); display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--c-seal); }
.lib-group > h2 small { font-family: var(--f-sans); font-size: var(--fs-sm); color: var(--c-ink-2); }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--c-line); }
.doc-row .doc-title { font-weight: 600; }
.doc-row .doc-title a { color: var(--c-ink); text-decoration: none; }
.doc-row .doc-title a:hover { color: var(--c-green); text-decoration: underline; }
.doc-row .doc-sub { display: block; font-size: var(--fs-xs); color: var(--c-ink-2); font-weight: 400; margin-top: 2px; }
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; text-decoration: none; border: 1px solid var(--c-line-strong);
  color: var(--c-green); background: var(--c-card);
}
.chip:hover { background: var(--c-green-tint); color: var(--c-green-hover); }
.chip--solid { background: var(--c-green); border-color: var(--c-green); color: #fff; }
.chip--solid:hover { background: var(--c-green-hover); color: #fff; }
.chip svg { width: 14px; height: 14px; }
.badge { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--r-sm); background: var(--c-green-tint); color: var(--c-green-hover); vertical-align: middle; }
.badge--warn { background: var(--c-gold-soft); color: var(--c-seal); }
[hidden] { display: none !important; }
@media (max-width: 560px) { .doc-row { grid-template-columns: 1fr; } }

/* ---------- Document page ---------- */
.doc-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 26px 0 0; border-top: 1px solid var(--c-seal-3); }
.doc-meta div { padding: 14px 18px 0 0; }
.doc-meta dt { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-gold); font-weight: 700; }
.doc-meta dd { margin: 4px 0 0; color: var(--c-on-dark); }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.doc-body {
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--shadow-1);
  padding: clamp(22px, 4vw, 52px); font-size: var(--fs-base);
}
.doc-body .letterhead { text-align: center; border-bottom: 1px solid var(--c-line); padding-bottom: 18px; margin-bottom: 22px; }
.doc-body .letterhead p { margin: 0; font-size: var(--fs-sm); color: var(--c-ink-2); }
.doc-body .letterhead .lh-name { font-family: var(--f-display); font-size: var(--fs-h3); color: var(--c-seal); }
.doc-body .lh-officers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; font-size: var(--fs-xs); color: var(--c-ink-2); margin-bottom: 22px; }
.doc-body .lh-officers ul { list-style: none; margin: 0; padding: 0; }
.doc-body h2 { font-family: var(--f-serif); font-weight: 700; font-size: var(--fs-h4); margin-top: 1.4em; }
.doc-body ol, .doc-body ul { padding-left: 1.4em; margin: 0 0 1em; }
.doc-body li { margin-bottom: 0.35em; }
.doc-body ol.agenda { padding-left: 0; list-style: none; counter-reset: none; }
.doc-body ol.agenda > li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); margin-bottom: 0.6em; }
.doc-body ol.agenda > li > .num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--c-bronze); }
.doc-body ol.agenda ul, .doc-body ol.agenda ol { margin: 0.3em 0 0; }
.doc-body .heading-list { list-style: none; padding: 0; columns: 2 220px; column-gap: 24px; }
.doc-body .heading-list li { text-decoration: underline; text-underline-offset: 0.2em; break-inside: avoid; }
.doc-body .doc-footnote { border-top: 1px solid var(--c-line); margin-top: 28px; padding-top: 14px; font-size: var(--fs-sm); color: var(--c-ink-2); }
.doc-aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.doc-aside .panel { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 18px 20px; }
.doc-aside .panel h2 { font-family: var(--f-sans); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-ink-2); margin: 0 0 10px; }
.doc-aside .panel p { font-size: var(--fs-sm); color: var(--c-ink-2); margin: 0 0 10px; }
.doc-aside .panel .btn { width: 100%; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } .doc-aside { position: static; } }

/* ---------- Demo note ---------- */
.demo-note { display: flex; gap: 12px; align-items: flex-start; background: var(--c-green-tint); border: 1px dashed var(--c-green); border-radius: var(--r-md); padding: 14px 18px; font-size: var(--fs-sm); color: var(--c-green-hover); }
.demo-note b { white-space: nowrap; }

/* ---------- Forms (demo only) ---------- */
.form { display: grid; gap: 16px; max-width: 620px; }
.form label { font-weight: 700; font-size: var(--fs-sm); display: block; margin-bottom: 6px; }
.form input, .form textarea { width: 100%; font: inherit; color: var(--c-ink); background: var(--c-card); border: 2px solid var(--c-line-strong); border-radius: var(--r-md); padding: 12px 14px; min-height: 48px; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { border-color: var(--c-green); }
.form .req { color: var(--c-bronze); }

/* ---------- Cards for index pages ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { position: relative; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.card img { aspect-ratio: 8 / 5; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: var(--fs-h4); margin: 0; }
.card-body h3 a { color: var(--c-ink); text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card-body h3 a:hover { color: var(--c-green); }
.card-body p { margin: 0; color: var(--c-ink-2); font-size: var(--fs-sm); }

/* ---------- Visit band ---------- */
.visit { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.visit h3 { font-family: var(--f-sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-gold); margin-bottom: 10px; }
.visit p, .visit address { font-style: normal; color: var(--c-on-dark); margin: 0 0 6px; }
.visit .big { font-family: var(--f-display); font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); color: #fff; line-height: 1.2; }
.visit .big a { color: #fff; text-decoration: none; }
.visit .big a:hover { color: var(--c-gold); }

/* ---------- Footer ---------- */
.site-footer { background: #102010; color: var(--c-on-dark-2); font-size: var(--fs-sm); }
.site-footer a { color: var(--c-on-dark); }
.site-footer a:hover { color: var(--c-gold); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 40px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { width: 72px; height: 72px; }
.footer-brand b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; color: #fff; line-height: 1.1; margin-bottom: 6px; }
.footer-brand address { font-style: normal; }
.site-footer h2 { font-family: var(--f-sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-gold); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid var(--c-seal-3); padding-block: 18px 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Layout collapses ---------- */
@media (max-width: 900px) {
  .meet, .story { grid-template-columns: 1fr; }
}

/* ---------- Reveal: animate FROM hidden only when JS runs and motion is allowed ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .alertbar, .site-footer, .doc-aside, .skip-link, .lib-tools, .lib-jump { display: none !important; }
  .page-hero { background: none; color: #000; }
  .page-hero::after { display: none; }
  .page-hero .lead, .doc-meta dd, .doc-meta dt { color: #000; }
  .doc-layout { display: block; }
  .doc-body { border: 0; box-shadow: none; padding: 0; }
  body { background: #fff; }
}

/* ---------- No-JS nav fallback: every submenu stays reachable ---------- */
.no-js .site-nav > ul { flex-wrap: wrap; }
.no-js .nav-sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 8px; min-width: 0; }
.no-js .site-nav button.nav-group svg { display: none; }
