/* ─── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  --green:        #4a7c59;
  --green-light:  #8faa8b;
  --green-dark:   #2e5239;
  --cream:        #faf6ef;
  --cream-dark:   #f0e9dc;
  --rose:         #c9897a;
  --rose-light:   #e8c4bc;
  --text:         #2c2c2c;
  --muted:        #6b6b6b;
  --white:        #ffffff;
  --border:       #ddd5c8;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', system-ui, sans-serif;
  --radius:    6px;
  --shadow:    0 2px 12px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --max-w:     1200px;

  /* Kids palette — used by .badge--kids, .tag--kids, .summer-banner */
  --kids-yellow: #FFD600;
  --kids-coral:  #FF5252;
  --kids-sky:    #29B6F6;
  --kids-green:  #66BB6A;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Base ───────────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.prose { font-size: 1rem; line-height: 1.8; }
.prose p { margin-bottom: 1rem; }
.prose p:last-child { margin-bottom: 0; }

/* ─── Site Header / Nav ──────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem;
}

.site-nav__logo {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--green-dark);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 1rem;
}
.site-nav__logo:hover { text-decoration: none; }

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.site-nav__link {
  font-family: var(--font-body);
  font-size: clamp(0.65rem, 1.2vw, 0.85rem);
  color: var(--text);
  padding: clamp(0.3rem, 0.8vw, 0.5rem) clamp(0.35rem, 0.8vw, 0.65rem);
  border-radius: var(--radius);
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.15s;
}
.site-nav__link:hover,
.site-nav__link.active {
  background: var(--cream-dark);
  color: var(--green-dark);
  text-decoration: none;
}
.site-nav__link.active { font-weight: 700; }

/* Summer banner */
.summer-banner {
  background: var(--kids-yellow);
  color: var(--text);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}
.summer-banner a { color: var(--green-dark); font-weight: 700; }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--green-dark);
}

/* ── Hero scroll strip ── */
.hero-strip {
  width: 100%;
  overflow: hidden;
  height: 420px;
  position: relative;
}

.hero-track {
  display: flex;
  width: max-content;
  animation: heroScroll 80s linear infinite;
}

.hero-slide {
  flex-shrink: 0;
  width: 600px;
  height: 420px;
  margin-right: 12px;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes heroScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-strip:hover .hero-track { animation-play-state: paused; }

.hero-placeholder {
  width: 100%;
  height: 420px;
  background: linear-gradient(135deg, var(--green-dark) 0%, #3d6b50 60%, var(--green) 100%);
}

/* Gradient fallback section */
.hero--gradient { background: linear-gradient(135deg, var(--green-dark) 0%, #3d6b50 60%, var(--green) 100%); }

@media (max-width: 1023px) {
  .hero-strip  { height: 300px; }
  .hero-slide  { width: 440px; height: 300px; }
  .hero-placeholder { height: 300px; }
}

@media (max-width: 767px) {
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 1rem;
    gap: 0.4rem;
  }
  .site-nav__logo {
    font-size: 1.4rem;
    font-weight: 700;
    white-space: normal;
    margin-right: 0;
    flex-shrink: unset;
  }
  .site-nav__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    width: 100%;
  }
  .site-nav__link {
    font-size: 0.75rem;
    padding: 5px 8px;
    white-space: nowrap;
    min-height: unset;
  }
}

@media (max-width: 767px) {
  .hero-strip  { height: 220px; }
  .hero-slide  { width: 300px; height: 220px; }
  .hero-placeholder { height: 220px; }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  z-index: 2;
}

.hero--gradient .hero__overlay { background: linear-gradient(135deg, var(--green-dark) 0%, #3d6b50 50%, var(--green) 100%); }

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  margin-bottom: 0.5rem;
}

.hero__tagline {
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
  white-space: nowrap;
}
@media (max-width: 1023px) {
  .hero__tagline { white-space: normal; font-size: 0.88rem; }
}
@media (max-width: 480px) {
  .hero__tagline { font-size: 0.82rem; }
}

/* ─── Hours Widget ───────────────────────────────────────────────────────── */
.hours-widget {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.hours-widget__time { color: var(--text); font-weight: 600; }
.hours-widget__link { color: var(--green); margin-left: auto; font-size: 0.85rem; }

/* ─── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge--open   { background: #d4edda; color: #1a5c2a; }
.badge--closed { background: #fde8e8; color: #8b1a1a; }
.badge--kids   { background: var(--kids-yellow); color: #5a3e00; }
.badge--lg     { font-size: 0.9rem; padding: 0.35rem 1rem; }

.tag {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--muted);
  border-radius: 20px;
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tag--kids { background: var(--kids-yellow); color: #5a3e00; }

/* ─── Sections ───────────────────────────────────────────────────────────── */
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--compact { padding: 2rem 0 0 0; }

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--green-dark);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  padding-bottom: 0.75rem;
}
.section__title::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--rose);
  border-radius: 2px;
}

.section__cta { margin-top: 2rem; text-align: center; }

/* ─── Card Grid ──────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (min-width: 640px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* ─── Event Cards ────────────────────────────────────────────────────────── */
.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  padding: 0.9rem 1rem;
  transition: box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.event-card:hover {
  box-shadow: var(--shadow-md);
  background: var(--cream);
}

.event-card__date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  min-width: 56px;
  flex-shrink: 0;
  align-self: flex-start;
}

.date-badge__month { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.date-badge__day   { font-size: 1.6rem; font-family: var(--font-heading); line-height: 1; }

.event-card__body { flex: 1; }
.event-card__title { font-size: 1.05rem; margin-bottom: 0.25rem; }
.event-card__time  { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.4rem; }
.event-card__place { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.4rem; }
.event-card__desc  { font-size: 0.88rem; color: var(--muted); }
.event-card__desc p { margin: 0 0 0.4rem; }

/* ─── Events List (events page) ──────────────────────────────────────────── */
.events-list { display: flex; flex-direction: column; gap: 1.5rem; }

.event-row {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.event-row__inner {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  align-items: flex-start;
}
.event-row__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  min-width: 60px;
  flex-shrink: 0;
}
.event-row__tags { margin-bottom: 0.4rem; }
.event-row__body { flex: 1; min-width: 0; }
.event-row__title { font-size: 1.2rem; margin-bottom: 0.25rem; }
.event-row__meta  { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.event-row__place { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.event-row__desc  { font-size: 0.95rem; }
.event-row__desc p { margin: 0 0 0.5rem; }
.event-row__photo {
  width: 220px;
  flex-shrink: 0;
  cursor: pointer;
}
.event-row__photo img {
  display: block;
  width: 220px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: opacity 0.2s ease;
}
.event-row__photo:hover img { opacity: 0.88; }
.event-row__photo-caption {
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  margin: 0.3rem 0 0;
}

@media (max-width: 768px) {
  .event-row__photo { width: 180px; }
  .event-row__photo img { width: 180px; height: 130px; }
}

@media (max-width: 560px) {
  .event-row__inner { flex-wrap: wrap; }
  .event-row__photo { width: 100%; order: 3; }
  .event-row__photo img { width: 100%; height: 200px; }
}

/* ─── Lightbox ────────────────────────────────────────────────────────────── */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay__img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius);
  cursor: default;
  box-shadow: 0 4px 48px rgba(0,0,0,0.5);
}
.lightbox-overlay__close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  background: rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lightbox-overlay__close:hover { background: rgba(0,0,0,0.75); }

/* ─── Book Cards ─────────────────────────────────────────────────────────── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1024px) { .books-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px)  { .books-grid { grid-template-columns: repeat(2, 1fr); } }

.books-grid--home { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 600px)  { .books-grid--home { grid-template-columns: repeat(2, 1fr); } }

.book-card {
  background: var(--white);
  border-radius: 5px;
  box-shadow: 3px 4px 12px rgba(0,0,0,0.15), 1px 1px 0 rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  box-shadow: 5px 8px 22px rgba(0,0,0,0.22);
  transform: translateY(-3px) rotate(-0.4deg);
}

.book-card__cover-wrap {
  position: relative;
  width: 100%;
  padding-top: 150%;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  flex-shrink: 0;
}
.book-card__cover-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.book-card__cover-placeholder {
  position: absolute;
  inset: 0;
  background: #7a9e7e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 600;
  color: #fff;
}

.book-card__body {
  padding: 0.55rem 0.55rem 0.7rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.book-card__title {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-card__author {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book-card__genre {
  display: inline-block;
  font-size: 0.65rem;
  color: var(--muted);
  background: var(--cream-dark);
  border-radius: 20px;
  padding: 0.1rem 0.45rem;
  align-self: flex-start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.book-card__link {
  font-size: 0.75rem;
  color: var(--green);
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.3rem;
  cursor: pointer;
  background: none;
  border: none;
  padding-left: 0;
  text-align: left;
  font-family: inherit;
}
.book-card__link:hover { text-decoration: underline; }

/* ─── Home page book shelf — .home-books-grid ────────────────────────────── */
.section--books-home { padding: 1.25rem 0; }

.home-books-grid {
  display: grid;
  grid-template-columns: repeat(4, 100px);
  gap: 12px;
  justify-content: center;
}

.home-books-grid .book-card {
  width: 100px !important;
}

.home-books-grid .book-card__cover-wrap {
  padding-top: 150px !important;
}

.home-books-grid .book-card__body {
  padding: 4px !important;
  gap: 2px !important;
}

.home-books-grid .book-card__title {
  font-size: 0.65rem !important;
  line-height: 1.2 !important;
}

.home-books-grid .book-card__author {
  font-size: 0.6rem !important;
}

.home-books-grid .book-card__genre {
  font-size: 0.55rem !important;
}

.home-books-grid .book-card__link {
  font-size: 0.6rem !important;
}

@media (max-width: 767px) {
  .home-books-grid {
    grid-template-columns: repeat(2, 100px);
  }
}

/* ─── DVD Cards ──────────────────────────────────────────────────────────── */
.dvds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .dvds-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dvds-grid { grid-template-columns: 1fr; } }

.dvd-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.dvd-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.dvd-card__cover-wrap {
  position: relative;
  width: 100%;
  padding-top: 66.67%;
  overflow: hidden;
  flex-shrink: 0;
}
.dvd-card__cover-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dvd-card__cover-placeholder {
  position: absolute;
  inset: 0;
  background: #2d2d4e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #aaa;
}

.dvd-card__body {
  padding: 0.75rem 0.9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.dvd-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dvd-card__year {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}
.dvd-card__link {
  font-size: 0.75rem;
  color: var(--green);
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.3rem;
  cursor: pointer;
  background: none;
  border: none;
  padding-left: 0;
  text-align: left;
  font-family: inherit;
}
.dvd-card__link:hover { text-decoration: underline; }

/* ─── Book / DVD Modal ───────────────────────────────────────────────────── */
.book-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.book-modal-overlay.active { display: flex; }

.book-modal {
  position: relative;
  background: var(--white);
  border-radius: 10px;
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.book-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 34px;
  height: 34px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.book-modal__close:hover { background: rgba(0,0,0,0.9); }

.book-modal__body { flex: 1; overflow: auto; min-height: 0; }

.book-modal__iframe {
  width: 100%;
  min-height: 600px;
  border: none;
  display: block;
}

.book-modal__fallback {
  display: none;
  padding: 2.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text);
}
.book-modal__fallback a { color: var(--green); text-decoration: underline; }

/* ─── Museum Pass Cards ──────────────────────────────────────────────────── */
.pass-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pass-card__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.pass-card__photo--placeholder {
  aspect-ratio: 4 / 3;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.pass-card__body     { padding: 1.25rem; }
.pass-card__name     { font-size: 1.15rem; margin-bottom: 0.5rem; }
.pass-card__desc     { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.75rem; }
.pass-card__how      { background: var(--cream); border-radius: var(--radius); padding: 0.75rem; font-size: 0.88rem; }
.pass-card__how strong { display: block; margin-bottom: 0.25rem; }

/* ─── Museum Passes — smaller grid ──────────────────────────────────────── */
.passes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
}

.passes-grid .pass-card {
  max-width: 200px !important;
}

.passes-grid img.pass-card__photo {
  height: 130px !important;
  aspect-ratio: unset !important;
}

.passes-grid .pass-card__photo--placeholder {
  height: 130px !important;
  aspect-ratio: unset !important;
}

.passes-grid .pass-card__body {
  padding: 0.6rem !important;
}

.passes-grid .pass-card__name {
  font-size: 0.85rem !important;
}

.passes-grid .pass-card__desc {
  font-size: 0.75rem !important;
}

.passes-grid .pass-card__how {
  font-size: 0.7rem !important;
  padding: 0.4rem !important;
}

.passes-grid .btn {
  font-size: 0.7rem !important;
  padding: 4px 10px !important;
}

@media (max-width: 767px) {
  .passes-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Catalog Cards ──────────────────────────────────────────────────────── */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 700px)  { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }

.catalog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: box-shadow 0.2s;
}
.catalog-card:hover { box-shadow: var(--shadow-md); }

.catalog-card__icon { font-size: 2.5rem; }
.catalog-card__name { font-size: 1.1rem; }
.catalog-card__desc { font-size: 0.88rem; color: var(--muted); flex: 1; }

.catalog-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  background: var(--cream-dark);
  border-radius: var(--radius);
}

/* ─── Al Scaia ───────────────────────────────────────────────────────────── */
.page-hero--sepia {
  background: linear-gradient(135deg, #6b5a44 0%, #8a7055 100%);
}

.scaia-list { display: flex; flex-direction: column; gap: 2rem; }

.scaia-entry {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  gap: 0;
}
@media (min-width: 700px) { .scaia-entry { flex-direction: row; } }
@media (max-width: 699px) { .scaia-entry { flex-direction: column; } }

.scaia-entry__photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  filter: sepia(25%);
  cursor: pointer;
  transition: filter 0.2s ease;
}
.scaia-entry__photo:hover { filter: sepia(0%); }
@media (min-width: 700px) { .scaia-entry__photo { width: 260px; height: auto; } }

.scaia-entry__body  { padding: 1.5rem; flex: 1; }
.scaia-entry__title { font-size: 1.2rem; margin-bottom: 0.25rem; }
.scaia-entry__era   { font-size: 0.85rem; color: var(--muted); font-style: italic; margin-bottom: 0.75rem; }
.scaia-entry__desc  { font-size: 0.95rem; line-height: 1.7; }

/* ─── Staff Picks ────────────────────────────────────────────────────────── */
.pick-card {
  background: var(--white);
  border-left: 4px solid var(--rose);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pick-card__blurb  { font-family: var(--font-heading); font-style: italic; font-size: 1rem; color: var(--text); flex: 1; }
.pick-card__credit { font-size: 0.85rem; color: var(--muted); }
.pick-card--kids   { border-left-color: var(--kids-coral); }

/* ─── Community Bulletin ──────────────────────────────────────────────────── */
.bulletin-list  { display: flex; flex-direction: column; gap: 1.25rem; }
.bulletin-item  { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.bulletin-item__date  { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.04em; }
.bulletin-item__title { font-size: 1.05rem; margin-bottom: 0.4rem; }
.bulletin-item__body  { font-size: 0.92rem; color: var(--text); }
.bulletin-item__photo {
  width: 100%;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
  cursor: pointer;
}
.bulletin-item__photo-wrap {
  margin: -1.25rem -1.25rem 1rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.bulletin-item__photo-caption {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
  margin: 0.3rem 0 0.75rem;
}
.bulletin-item__link { margin-top: 0.85rem; }
.bookclub-photo-wrap {
  margin-bottom: 1.25rem;
  cursor: pointer;
}
.bookclub-photo-wrap img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}
.bookclub-photo-caption {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  margin-top: 0.3rem;
}

/* ─── Quick Links ────────────────────────────────────────────────────────── */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1rem 0;
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-dark);
  min-width: 110px;
  min-height: 44px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, transform 0.15s;
}
.quick-link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.quick-link__icon { font-size: 1.75rem; }

/* ─── Hours Table (contact page) ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.open-status  { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.open-status__hours { font-size: 1rem; font-weight: 700; }
.contact-detail strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.2rem; }
.contact-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }

.hours-block__title { font-size: 1.2rem; margin-bottom: 1rem; }

.hours-table { width: 100%; border-collapse: collapse; font-family: var(--font-body); }
.hours-table__row td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--cream-dark); font-size: 0.9rem; }
.hours-table__row--today td { background: var(--cream-dark); font-weight: 700; }
.hours-table__day  { color: var(--text); }
.hours-table__time { color: var(--muted); }
.closed-text       { color: #c44; }

.maps-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ─── Page Heroes (interior) ─────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  padding: clamp(2rem, 5vw, 3.5rem) 1.25rem;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.6rem, 4vw, 2.8rem); text-shadow: 0 2px 6px rgba(0,0,0,0.25); }

/* ─── Site Main ──────────────────────────────────────────────────────────── */
.site-main { padding: clamp(2rem, 5vw, 4rem) 0; }

.page-section { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--green-dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cream-dark);
}

.page-intro { font-size: 1.05rem; color: var(--muted); max-width: 680px; margin-bottom: 2rem; }
.page-intro-prose { max-width: 760px; margin: 0 auto 2.5rem; }

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-style: italic;
  background: var(--cream-dark);
  border-radius: var(--radius);
}

/* ─── About Page ─────────────────────────────────────────────────────────── */

/* Person cards (staff + trustees) */
.person-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
}
@media (max-width: 767px) { .person-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  { .person-grid { grid-template-columns: 1fr; } }

.person-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.person-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.person-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.person-card__info { flex: 1; min-width: 0; }
.person-card__name { font-weight: 700; font-size: 0.95rem; color: var(--charcoal); line-height: 1.3; }
.person-card__role { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }

/* Keep old trustee classes as no-ops (don't break if any stray references exist) */
.trustee-list { list-style: none; }
.trustee-item { }

.minutes-list  { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.minutes-item  { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 1rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); flex-wrap: wrap; }
.minutes-item__link { color: var(--green); font-weight: 600; }
.minutes-item__date { font-size: 0.82rem; color: var(--muted); }

/* ─── Forms (public site) ────────────────────────────────────────────────── */
.site-form { max-width: 600px; }
.site-form--compact { max-width: 480px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1rem;
}
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  min-height: 44px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(74,124,89,0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  min-height: 44px;
  white-space: nowrap;
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); text-decoration: none; transform: translateY(-1px); }

.btn--outline { background: transparent; color: var(--green-dark); border: 2px solid var(--green); }
.btn--outline:hover { background: var(--green); color: var(--white); text-decoration: none; }

.btn--sm { padding: 0.35rem 0.85rem; font-size: 0.82rem; min-height: 36px; }

.footer-donate { display: inline-flex; min-height: 40px; }

/* ─── Alerts ─────────────────────────────────────────────────────────────── */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  font-family: var(--font-body);
}
.alert--success { background: #eef5ee; color: #1a5c2a; border: 1px solid #8ab88a; }
.alert--error   { background: #fdf0ef; color: #8b2a2a; border: 1px solid #d4938c; }

/* ─── DVD/Books tab bar ──────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s;
  min-height: 44px;
}
.tab-btn:hover      { color: var(--green-dark); }
.tab-btn--active    { color: var(--green-dark); border-bottom-color: var(--green); }

.empty-state-inline {
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
  padding: 0.75rem 0;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.85);
  padding: clamp(2rem, 5vw, 3rem) 0 0;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
@media (min-width: 600px) { .site-footer__inner { grid-template-columns: repeat(3, 1fr); } }

.site-footer__name { font-family: var(--font-heading); font-size: 1.1rem; color: var(--white); margin-bottom: 0.4rem; }
.site-footer__addr { font-size: 0.88rem; line-height: 1.5; }
.site-footer__col p { margin-bottom: 0.3rem; font-size: 0.88rem; }
.site-footer__col a { color: rgba(255,255,255,0.75); }
.site-footer__col a:hover { color: var(--white); }

.site-footer__section-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green-light); font-weight: 700; margin-bottom: 0.75rem; }

.site-footer__link { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.75); margin-bottom: 0.3rem; }
.site-footer__link:hover { color: var(--white); }
.site-footer__link--admin { color: rgba(255,255,255,0.4); font-size: 0.78rem; margin-top: 0.5rem; }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ── Public Feedback page ──────────────────────────────────────────────── */
.page-divider { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }
.field-optional { font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.empty-pub { color: var(--muted); font-style: italic; }

/* Quill editor sizing */
.quill-editor-box { background: #fff; border-radius: 6px; }
.ql-container.ql-snow { min-height: 120px; font-family: Lato, sans-serif; font-size: 1rem; }

/* Survey cards */
.survey-cards { display: flex; flex-direction: column; gap: 2rem; }

.survey-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem 2rem;
  max-width: 640px;
}

.survey-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--forest);
  margin: 0 0 0.5rem;
}
.survey-card__desc { color: var(--muted); margin-bottom: 1.25rem; }

/* Star rating */
.star-row { display: flex; gap: 0.4rem; margin-bottom: 0.4rem; }

.star-btn {
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #ccc;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.12s, transform 0.1s;
}
.star-btn:hover,
.star-btn.hovered { color: #FDD835; transform: scale(1.15); }
.star-btn:disabled { cursor: default; }

.star-labels {
  display: flex;
  justify-content: space-between;
  max-width: 220px;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* Vote result display */
.vote-result {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  font-family: Lato, sans-serif;
}
.result-star { font-size: 1.5rem; color: #ddd; }
.result-star.filled { color: #FDD835; }
.vote-count { color: var(--muted); font-size: 0.85rem; }
.vote-thanks { color: var(--forest); font-weight: 600; margin-bottom: 0.4rem; }
.vote-error  { color: #8b2a2a; }
.already-voted-msg { font-size: 0.82rem; color: var(--muted); margin-top: 0.3rem; }
.already-voted { flex-direction: column; align-items: flex-start; }
