/* ==========================================================================
   joeforarlington.org — site stylesheet
   Merged from the two inline <style> blocks on the live site and deduplicated.
   Every colour, radius and measure comes from tokens.css.
   Section order: base → nav → hero → interior pages → components → footer.
   ========================================================================== */

/* ── BASE ─────────────────────────────────────────────────────────────── */

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;   /* clears the fixed header on anchor jumps */
  overflow-x: hidden;
  /* Stop iOS Safari from enlarging text in some blocks and not others. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* Visible focus for keyboard users — absent on the live site. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Hidden until a keyboard user tabs to it; jumps past the menu. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 3000;
  padding: 10px 16px;
  background: #fff;
  color: var(--burgundy);
  font-weight: 600;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Read by screen readers, not shown. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── NAV ──────────────────────────────────────────────────────────────── */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  background: var(--burgundy);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

nav {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.nav-link:hover,
.nav-link.active { background: rgba(255, 255, 255, 0.15); color: #fff; }

.nav-link.donate {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-weight: 600;
}
.nav-link.donate:hover { background: rgba(255, 255, 255, 0.25); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
}
.hamburger { display: flex; flex-direction: column; gap: 5px; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: white; border-radius: 2px;
}

/* ── HERO (home only) ─────────────────────────────────────────────────── */

/* Was min-height:100vh when this was a one-page site, which pushed
   everything else below the fold. Now sized to what it holds. */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  /* Same proportions as the photo, so none of it is cropped and the
     family stays below the headline and button. */
  aspect-ratio: 1800 / 1116;
  padding: 112px var(--gutter) 96px;
  text-align: center;
  /* Family on the bikeway footbridge. The text sits over the tree
     canopy at the top; the tint fades out before it reaches the family. */
  background:
    linear-gradient(to bottom, rgba(20, 8, 8, 0.62) 0%, rgba(20, 8, 8, 0.35) 45%, rgba(20, 8, 8, 0) 70%),
    url(../img/hero-bridge.jpg) center bottom / cover no-repeat,
    var(--cream);
  position: relative;
  overflow: hidden;
}
.hero .hero-headline { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.hero .hero-divider { background: #fff; }
@media (max-width: 768px) {
  /* Phones: taller than the photo's proportions, so it crops at the
     sides; keep the family in view. */
  .hero { aspect-ratio: auto; min-height: 640px; padding-top: 100px; background-position: center, 58% bottom, center; }
}

/* Soft radial bloom behind the headline. */
.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(700px, 90vw);
  height: min(700px, 90vw);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(94, 19, 21, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 128px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--burgundy);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.1s forwards;
}
.hero-divider {
  width: 60px; height: 2px;
  background: var(--burgundy);
  margin: 0 auto 48px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.5s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--burgundy);
  color: white;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: var(--radius-xs);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.75s forwards;
}
.hero-cta:hover {
  background: var(--burgundy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(94, 19, 21, 0.25);
}
.hero-cta .arrow { transition: transform 0.2s; }
.hero-cta:hover .arrow { transform: translateX(4px); }

/* ── INTERIOR PAGE HEADER ─────────────────────────────────────────────── */

.page-header {
  padding: 112px var(--gutter) 48px;
  max-width: var(--container-width);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 16px;
}
.page-title em,
.section-title em { font-style: italic; color: var(--burgundy); }

.page-desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
}
.notfound-main {
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--nav-height) 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.notfound-img {
  height: min(50vh, 420px);
  width: auto;
  margin-bottom: 16px;
  /* The painting's paper is slightly darker than the page, so feather all
     four edges into the background instead of showing a hard box. */
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 18%, #000 82%, transparent),
    linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 18%, #000 82%, transparent),
    linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect;
}
.notfound-quip {
  max-width: 640px;
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 36px);
  font-style: italic;
  line-height: 1.35;
  color: var(--burgundy);
}

.content-wrap {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── SECTION HEADINGS ─────────────────────────────────────────────────── */

.section-heading { padding: 56px 0 32px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
}

.section-subtitle { font-size: 16px; color: var(--muted); margin-top: 8px; }

/* ── BIO ──────────────────────────────────────────────────────────────── */

.bio-section { padding: 60px 0 48px; border-bottom: 1px solid var(--border); }

.bio-text p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 760px;
}
.bio-text p:last-child { margin-bottom: 0; }
.bio-text strong { color: var(--ink); font-weight: 600; }

/* ── VALUES (two-column rule grid) ────────────────────────────────────── */

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 60px;
}

.value-item { padding: 32px 36px 32px 0; border-bottom: 1px solid var(--border); }
.value-item:nth-child(odd)  { padding-right: 48px; border-right: 1px solid var(--border); }
.value-item:nth-child(even) { padding-left: 48px; padding-right: 0; }

.value-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 12px;
}
.value-text { font-size: 16px; line-height: 1.75; color: var(--text-secondary); }

/* ── TESTIMONIALS ─────────────────────────────────────────────────────── */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.testimonial-header {
  background: var(--burgundy);
  padding: 20px 24px 16px;
  position: relative;
}
/* Oversized decorative quote mark, bled off the top-right corner. */
.testimonial-header::after {
  content: '\201C';
  position: absolute;
  right: 18px; top: 4px;
  font-size: 72px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
  pointer-events: none;
  font-family: var(--font-display);
}

.testimonial-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}
.testimonial-role {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.testimonial-body { padding: 20px 24px 24px; flex: 1; }
.testimonial-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}
.testimonial-body p + p { margin-top: 10px; }

/* ── EXPERIENCE ───────────────────────────────────────────────────────── */

.experience-list { margin-bottom: 60px; }

.experience-item { padding: 32px 0; border-bottom: 1px solid var(--border); }
.experience-item:first-child { border-top: 1px solid var(--border); }

.experience-role {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--burgundy);
  line-height: 1.3;
  margin-bottom: 14px;
}

.detail-list { list-style: none; }
.detail-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}
.detail-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--burgundy);
  font-weight: 600;
}
.detail-list li a {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── FOOTER ───────────────────────────────────────────────────────────── */

footer {
  background: var(--burgundy);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px var(--gutter);
  text-align: center;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
}
.footer-sub { font-size: 13px; margin-bottom: 24px; opacity: 0.7; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }

.footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}
.footer-contact { margin-bottom: 32px; }
.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-contact a:hover { color: white; }

/* Opacity raised from 0.5 to 0.65. At 0.5 this sat at 4.27:1 against the
   burgundy, below the 4.5:1 accessibility floor — and it is the campaign
   finance disclaimer, the one line with a legal reason to be legible.
   0.65 clears it at 6.29:1 and looks materially the same. */
.footer-legal {
  font-size: 12px;
  opacity: 0.65;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 8px;
}

/* ── ANIMATION ────────────────────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* The hero starts at opacity:0 and is revealed by animation. If animation
   never runs the page reads as blank, so force the resting state. This rule
   does not exist on the live site. */
@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;
  }
  .hero-headline, .hero-divider, .hero-cta { opacity: 1; }
}

/* ── PDF VIEWER ───────────────────────────────────────────────────────── */

/* The viewer fills the screen below the header like an app: title bar,
   toolbar, then one scrolling area that pans both ways when zoomed. The
   footer is still there, one scroll further down. */
.viewer-main {
  height: 100vh;
  height: 100dvh;
  padding-top: var(--nav-height);
  display: flex;
  flex-direction: column;
}
.viewer-bar {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px var(--gutter) 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.viewer-title {
  flex: 1 1 100%;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.viewer-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.viewer-actions { margin-left: auto; display: flex; gap: 8px; }

.viewer-tools {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--gutter) 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.viewer-tools[hidden] { display: none; }
.find { display: flex; gap: 6px; flex: 1 1 260px; min-width: 0; }
.find input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  background: white;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;               /* 16px stops iOS zooming in on focus */
}
.find-status { font-size: 13px; color: var(--muted); }
.zoom { display: flex; gap: 4px; margin-left: auto; }
.tool {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  background: white;
  color: var(--burgundy);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.tool:hover:not(:disabled) { background: rgba(94, 19, 21, 0.07); }
.tool:disabled { color: var(--muted); opacity: 0.5; cursor: default; }
.zoom-level { min-width: 64px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; }

.viewer-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px var(--gutter) 24px;
  border-top: 1px solid var(--border);
  background: rgba(94, 19, 21, 0.03);
  -webkit-overflow-scrolling: touch;
}
.viewer-scroll:focus-visible { outline: 2px solid var(--burgundy); outline-offset: -2px; }
.viewer-pages { max-width: 1000px; margin: 0 auto; }
.viewer-pages.zoomed { max-width: none; }
.pdf-page {
  position: relative;
  background: #fff;
  box-shadow: var(--shadow);
  margin-top: 16px;
}
.pdf-page canvas { display: block; width: 100%; height: 100%; }

/* Invisible text laid over each page so it can be selected, copied and
   highlighted. Positions and sizes are set by PDF.js. */
.textLayer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  line-height: 1;
  text-align: initial;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  forced-color-adjust: none;
  transform-origin: 0 0;
}
.textLayer span,
.textLayer br {
  color: transparent;
  position: absolute;
  white-space: pre;
  cursor: text;
  transform-origin: 0% 0%;
}
.textLayer span.markedContent { top: 0; height: 0; }
.textLayer .hit { background: rgba(255, 196, 0, 0.45); border-radius: 2px; }
.textLayer ::selection { background: rgba(0, 96, 223, 0.3); }
.textLayer br::selection { background: transparent; }
.textLayer .endOfContent {
  display: block;
  position: absolute;
  inset: 100% 0 0;
  z-index: -1;
  cursor: default;
  user-select: none;
}
.textLayer .endOfContent.active { top: 0; }

/* ── MOBILE ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  nav { padding: 0 20px; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--burgundy);
    padding: 12px 16px;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-link { display: block; width: 100%; padding: 14px 12px; box-sizing: border-box; }
  .mobile-toggle { display: block; }

  .page-header { padding: 100px 20px 40px; }
  .viewer-bar { padding: 12px 16px 8px; gap: 6px 12px; }
  .viewer-title { font-size: 20px; -webkit-line-clamp: 1; }
  .viewer-tools { gap: 6px 8px; }
  .tool { min-width: 34px; height: 34px; }
  .viewer-tools { padding: 0 16px 10px; }
  .viewer-scroll { padding: 0 8px 16px; }
  .content-wrap { padding: 0 20px; }

  .values-grid { grid-template-columns: 1fr; }
  .value-item,
  .value-item:nth-child(odd),
  .value-item:nth-child(even) { padding: 24px 0; border-right: none; }

  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ── PRINT ────────────────────────────────────────────────────────────── */

@media print {
  header, .mobile-toggle, .hero-cta { display: none; }
  body { background: #fff; color: #000; }
  .hero { min-height: 0; padding: 24px 0; }
  .hero-headline, .hero-divider { opacity: 1; animation: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   ADDED SEPTEMBER 2026 — meetings index and document viewer
   ══════════════════════════════════════════════════════════════════════ */

/* ── MEETINGS INDEX ───────────────────────────────────────────────────── */

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 32px 0 20px;
}
.controls input,
.controls select {
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  background: white;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: var(--radius-xs);
}
.controls input[type=search] { flex: 1 1 220px; min-width: 0; }
.controls .count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}

.meetings { border: 1px solid var(--border); background: white; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 60px; }
.mrow {
  display: grid;
  grid-template-columns: 116px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.mrow:last-child { border-bottom: 0; }
.mrow .date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mrow .body-name { font-size: 16px; line-height: 1.4; color: var(--ink); }
.mrow .body-name .time { color: var(--muted); font-size: 13px; font-family: var(--font-mono); margin-left: 10px; }
.mrow .docs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.doc {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border: 1px solid var(--border-strong);
  color: var(--burgundy);
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.15s;
}
.doc:hover { background: rgba(94, 19, 21, 0.07); }
.doc.none { color: var(--muted); border-style: dashed; }
.mrow.upcoming { background: rgba(94, 19, 21, 0.035); }
.mrow.upcoming .date { color: var(--burgundy); font-weight: 500; }

.loading, .empty { padding: 40px 22px; color: var(--muted); text-align: center; font-size: 15px; }
.err {
  border: 1px solid var(--border-strong);
  background: rgba(94, 19, 21, 0.05);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  line-height: 1.7;
}
.err-detail { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }

/* ── MOBILE additions ─────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .mrow { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; }
  .mrow .docs { justify-content: flex-start; }
  .controls .count { margin-left: 0; width: 100%; }
}

/* ── MEETING ATTACHMENTS (expandable) ─────────────────────────────────── */

.mrow { position: relative; }
/* Grid children default to min-width:auto, so one long file name used to
   stretch the whole panel past the screen edge, where it was cut off. */
.mrow > * { min-width: 0; }
.att-toggle {
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--burgundy);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.att-toggle:hover { background: rgba(94, 19, 21, 0.07); }
.att-toggle[aria-expanded="true"] { background: var(--burgundy); color: #fff; border-color: var(--burgundy); }

.att-panel {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding: 16px 18px;
  background: rgba(94, 19, 21, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}
.att-panel .att-loading,
.att-panel .att-none { font-size: 14px; color: var(--muted); margin: 0; }

.att-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.att-item:last-child { border-bottom: 0; }
.att-item .n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-right: 8px;
}
.att-item .t { font-size: 15px; line-height: 1.45; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.att-item .sub { font-size: 14px; line-height: 1.45; color: var(--muted); display: block; margin-top: 2px; overflow-wrap: anywhere; }
.att-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.att-files a {
  font-size: 14px;
  line-height: 1.4;
  color: var(--burgundy);
  text-decoration: none;
  background: white;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 5px 10px;
  max-width: 100%;
  /* Town file names are often long_underscored_strings with no spaces;
     let them wrap anywhere rather than run off the screen. */
  overflow-wrap: anywhere;
}
.att-files a:hover { background: rgba(94, 19, 21, 0.07); text-decoration: underline; }

/* section labels and the consent-agenda disclosure inside the panel */
.att-top { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.att-top a { color: var(--burgundy); font-weight: 600; text-decoration: none; }
.att-top a:hover { text-decoration: underline; text-underline-offset: 3px; }

.att-sec {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 2px;
}
.att-item + .att-sec { margin-top: 20px; }

.att-consent { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.consent-toggle {
  background: none;
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 7px 13px;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s, border-color 0.15s;
}
.consent-toggle:hover { color: var(--burgundy); border-color: var(--burgundy); }
.consent-toggle[aria-expanded="true"] { color: var(--burgundy); border-style: solid; }
.consent-body { margin-top: 10px; }
.att-note { font-size: 14px; color: var(--muted); margin: 0 0 6px; font-style: italic; }

@media (max-width: 768px) {
  .att-panel { padding: 14px 12px; }
}

/* ── BIO PHOTO ────────────────────────────────────────────────────────── */

/* The page title lived in .page-header; about.html drops that and leads
   with the bio text instead, so this section needs its own top clearance
   for the fixed nav (--nav-height) that .page-header used to provide. */
.bio-section.lead-in { padding-top: 140px; }

/* Photo floats right and text wraps beside it at native CSS float
   behavior: while paragraph lines fall inside the photo's height they
   wrap to its left; once the text passes the photo's bottom edge, later
   lines resume the full width of .bio-text on their own, no JS needed. */
.bio-photo {
  float: right;
  width: 320px;
  max-width: 45%;
  height: auto;
  margin: 4px 0 28px 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.bio-lead {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 6px;
}
.bio-role {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--burgundy);
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .bio-section.lead-in { padding-top: 108px; }
  .bio-photo {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px;
  }
}

/* ── TAX BASE MAP (zoning-value.html) ─────────────────────────────────── */

.map-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  overflow: hidden;
  margin-bottom: 12px;
}
.map-panel .controls { margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--border); }
#map { height: min(72vh, 640px); background: #eee9e4; }
#map .basemap { filter: grayscale(1) contrast(0.85) brightness(1.08); opacity: 0.7; transition: opacity 0.2s; }
#map.filtering .basemap { opacity: 0.35; }
.map-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.legend .key { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.legend .sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.legend .sw.hatch {
  background: repeating-linear-gradient(45deg, #9c948d 0 1.5px, #f3f0ec 1.5px 4px);
  box-shadow: inset 0 0 0 1px #8a817a;
}
.map-foot .band-note { flex: 1 1 100%; margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.map-foot .band-note strong { color: var(--ink); }

/* value bands: legend and filter in one */
.bands { padding: 12px 16px 14px; border-bottom: 1px solid var(--border); }
.bands-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: 13px; }
.bands-head .ttl { font-weight: 600; color: var(--ink); }
.bands-clear { font: inherit; font-size: 13px; color: var(--burgundy); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bands-keys { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.band {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 1px 7px;
  align-items: center;
  text-align: left;
  font: inherit;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.band .sw { width: 14px; height: 14px; border-radius: 3px; grid-row: span 2; }
.band .bl { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.band .br { font-size: 12px; color: var(--muted); white-space: nowrap; }
.band .bs { grid-column: 2; font-size: 12px; font-weight: 600; color: var(--ink); }
.band:hover { border-color: var(--border-strong); }
.band[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--cream); }

/* plain headings: one font, one colour, no eyebrow label */
.section-heading.plain { padding: 48px 0 20px; }
.section-heading.plain .section-title { font-size: clamp(26px, 3vw, 34px); }
.page-intro p { font-size: 17px; line-height: 1.75; color: var(--text-secondary); margin-bottom: 14px; }
.page-intro p:last-child { margin-bottom: 0; }
.page-intro a { color: var(--burgundy); text-underline-offset: 3px; }

.leaflet-bar a.reset-view { display: flex; align-items: center; justify-content: center; color: #1a1210; }

@media (max-width: 900px) {
  .bands-keys { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .bands-keys { grid-template-columns: repeat(2, 1fr); }
}

.leaflet-tooltip.parcel-tip {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  min-width: 250px;
  max-width: 300px;
  white-space: normal;
}
.parcel-tip b { display: block; font-size: 14px; margin-bottom: 2px; }
.parcel-tip .row { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.parcel-tip .row span:first-child { color: var(--muted); white-space: nowrap; }
.parcel-tip .row span:last-child { text-align: right; }

.notes-list { list-style: none; margin: 0 0 60px; }
.notes-list li { font-size: 15px; line-height: 1.7; color: var(--text-secondary); padding: 12px 0; border-bottom: 1px solid var(--border); }
.notes-list li strong { color: var(--ink); }
.notes-list a, .src a { color: var(--burgundy); text-underline-offset: 3px; }

@media (max-width: 768px) {
  #map { height: 60vh; }
}
