/* Additions follow the society's cream, Welsh red and green palette. */
.newsletter-signup:not(:empty) { margin-top: 22px; }
.join-copy .newsletter-signup p { font-size: 15px; margin: 0 0 12px; white-space: normal; }
.newsletter-signup .button { white-space: normal; text-align: center; }
.card-grid { gap: 22px; }
.community-card { background: #fff; }
.card-body { padding: 20px; gap: 10px; }
.card-body strong { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.25; }
.card-body > span { font-size: 16px; line-height: 1.4; }
.card-body .card-photo-count { color: #536259; font-size: 12px; }
.card-body .card-arrow { padding-top: 4px; }
.section-eyebrow { font-size: 11px; letter-spacing: .16em; font-weight: 700; color: var(--green); }
.sponsors { text-align: center; padding: 36px 0 48px; border-top: 1px solid #dce2d8; }
.sponsors h2 { font: normal clamp(34px, 4vw, 50px)/1.15 var(--serif); margin: 8px 0 16px; letter-spacing: -.04em; }
.sponsors > p:not(.section-eyebrow) { color: #516055; font-size: 16px; }
.sponsor-logos { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; margin: 28px auto 0; max-width: 640px; }
.sponsor-logo { display: flex; align-items: center; justify-content: center; min-height: 124px; padding: 20px; border: 1px solid #dce2d8; border-radius: 10px; background: #fff; }
.sponsor-logo img { height: 80px; width: 100%; max-width: 260px; object-fit: contain; }
.directory-list { display: grid; gap: 16px; margin-top: 24px; }
.directory-entry { padding: 22px; background: #fff; border: 1px solid #dde3d8; border-radius: 10px; }
#dialog-content .directory-entry h3 { margin: 10px 0; }
#dialog-content .directory-entry p { margin: 10px 0; }
.directory-entry .text-link { color: var(--green); min-height: 44px; }
.constitution-dialog { width: min(880px, 95vw); }
.constitution-subtitle { color: var(--green); max-width: 60ch; }
.constitution-contents { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; padding: 16px 0 28px; }
.constitution-contents a { white-space: normal; text-transform: none; font-size: 13px; border: 1px solid #d0dac9; border-radius: 20px; padding: 9px 13px; }
.constitution-contents a:hover { background: var(--mint); }
.constitution-section { border-top: 1px solid #d6ded0; padding: 12px 0 16px; scroll-margin-top: 20px; }
#dialog-content .constitution-section h3 { color: var(--green); line-height: 1.25; }
.constitution-section p, .constitution-section li { font-size: 16px; line-height: 1.75; }
.constitution-section li { padding: 0 0 10px 4px; }
.constitution-section li::marker { color: var(--red); }
.gallery-dialog { width: min(1020px, 96vw); padding: 36px; }
.gallery-dialog #dialog-content h2 { margin-bottom: 12px; }
.gallery-dialog #dialog-content > p { margin-top: 8px; }
.gallery-stage { position: relative; width: 100%; aspect-ratio: 16 / 10; background: #12251f; overflow: hidden; border-radius: 10px; touch-action: pan-y; }
.gallery-stage > img { width: 100%; height: 100%; object-fit: contain; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 1px solid #ffffff80; border-radius: 50%; background: #f7f7eff2; color: var(--ink); font-size: 25px; box-shadow: 0 3px 15px #0002; }
.gallery-arrow:hover { background: #fff; }
.gallery-previous { left: 14px; }
.gallery-next { right: 14px; }
.gallery-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; min-height: 58px; }
.gallery-caption p { font-size: 15px; margin: 14px 0; }
.gallery-caption span { color: var(--green); font-size: 13px; white-space: nowrap; }
.gallery-thumbnails { display: flex; gap: 8px; overflow-x: auto; padding: 5px 3px 12px; }
.gallery-thumbnails button { flex: 0 0 72px; padding: 0; border: 3px solid transparent; border-radius: 6px; overflow: hidden; background: var(--mint); }
.gallery-thumbnails button[aria-current="true"] { border-color: var(--red); }
.gallery-thumbnails img { width: 72px; height: 54px; object-fit: cover; }
#dialog-content .gallery-hint { margin-bottom: 0; font-size: 12px; color: #516055; }
@media (max-width: 760px) {
  .sponsor-logos { gap: 12px; }
  .sponsor-logo { padding: 12px; min-height: 100px; }
  .sponsor-logo img { height: 64px; }
  .gallery-dialog { padding: 48px 16px 20px; }
  .gallery-stage { aspect-ratio: 4 / 3; }
  .gallery-arrow { width: 44px; height: 44px; }
  .gallery-previous { left: 8px; }
  .gallery-next { right: 8px; }
}
@media (max-width: 480px) {
  .sponsor-logos { grid-template-columns: 1fr; max-width: 300px; }
  .sponsor-logo img { height: 80px; }
  .card-grid { gap: 18px; }
}
