/* Same look as the Wix site: Lato Light (300) on Acalanes blue, a faint
   "A / INSTRUMENTAL" watermark, Poppins for buttons, Sacramento for the tagline.
   Lato Light is the signature face; body text stays >= 16px because the thin
   weight gets hard to read below that. */

@font-face { font-family: "Lato"; font-weight: 300; font-style: normal; font-display: swap; src: url(/fonts/lato-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 300; font-style: italic; font-display: swap; src: url(/fonts/lato-latin-300-italic.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/lato-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/lato-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 200; font-style: normal; font-display: swap; src: url(/fonts/poppins-latin-200-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/poppins-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Sacramento"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/sacramento-latin-400-normal.woff2) format("woff2"); }

:root {
  --blue: #1b5faa;
  --blue-dark: #134a87;
  --grey: #626262;
  --card: #bdd8fb;
  --ink: #f6f6f6;
  --ink-dark: #1a1a1a;
  --rule: rgba(246, 246, 246, 0.85);
  --max: 1000px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--blue) url(/img/bg-watermark.webp) center 0 / 1280px auto no-repeat;
  color: var(--ink);
  font: 300 17px/1.5 "Lato", "Avenir", "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--ink); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-weight: 300; line-height: 1.2; margin: 1.2em 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.35rem; }
strong, b { font-weight: 700; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--blue); padding: 12px; z-index: 10; }
.skip-link:focus { left: 8px; top: 8px; }

.button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  background: #fff; color: var(--blue); border: 1px solid #fff;
  font: 400 15px/1 "Poppins", sans-serif; letter-spacing: 0.08em; text-decoration: none;
}
.button:hover { background: var(--card); }

/* ---------- Header ---------- */
.site-header { max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter) 0; }
.brand { display: flex; align-items: flex-start; gap: 24px; }
.brand a { text-decoration: none; }
.brand-logo { display: flex; flex-direction: column; flex: 0 0 auto; width: 190px; }
.brand-logo img { width: 190px; }
.tagline { font: 400 22px/1.2 "Sacramento", cursive; margin-top: 6px; }
.brand-name { display: flex; flex-direction: column; align-items: center; flex: 1; text-align: center; }
.name-big { font-size: clamp(3rem, 11vw, 7.6rem); line-height: 0.95; letter-spacing: 0.02em; }
.name-sub { font-size: clamp(1.5rem, 4.5vw, 3rem); line-height: 1.15; }
.name-place { font-size: 1.2rem; font-style: italic; }

.nav-bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.nav-bar ul { list-style: none; margin: 0; padding: 0; }
.nav-bar summary { list-style: none; cursor: pointer; }
.nav-bar summary::-webkit-details-marker { display: none; }
.nav-bar a, .nav-bar summary { display: flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 1.2rem; text-decoration: none; }
.nav-bar a:hover, .nav-bar summary:hover { text-decoration: underline; }
.nav-pinned { margin-left: auto; padding: 6px 0; }
.nav-pinned .button { font-size: 14px; }

.nav-desktop { flex: 1; }
.nav-desktop > ul { display: flex; justify-content: center; flex-wrap: wrap; }
.nav-desktop li { position: relative; }
.nav-desktop details > ul {
  position: absolute; left: 0; top: 100%; z-index: 5; min-width: 230px; padding: 6px 0;
  background: var(--blue-dark); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.nav-desktop details > ul a { font-size: 1.05rem; }
.nav-phone { display: none; }

@media (max-width: 767px) {
  .brand { gap: 12px; align-items: center; }
  .brand-logo, .brand-logo img { width: 96px; }
  .tagline { font-size: 13px; white-space: nowrap; }
  .name-big { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  .name-sub { font-size: 1.4rem; }
  .name-place { font-size: 1rem; }
  .nav-desktop { display: none; }
  .nav-bar { position: relative; }
  .nav-phone { display: block; flex: 1; }
  .nav-pinned { position: absolute; right: 0; top: 0; }
  .nav-phone summary { font-size: 1.15rem; }
  .nav-phone summary::before { content: "\2630"; margin-right: 10px; }
  .nav-phone[open] > ul { padding: 4px 0 12px; }
  .nav-phone .nav-heading { padding: 14px 14px 2px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
  .nav-phone li a { padding-left: 28px; }
  .nav-phone li.nav-top a { padding-left: 14px; }
  .nav-phone li + .nav-heading, .nav-phone li + .nav-top { border-top: 1px solid rgba(246, 246, 246, 0.25); margin-top: 6px; }
}

/* ---------- Main content ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter) 48px; }
.prose { font-size: 1.0625rem; }
.prose p, .prose li { max-width: 72ch; }
.prose img { display: block; margin: 16px 0; }
.post-date { opacity: 0.9; margin-top: -0.3em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 40px; }
.site-footer h2 { margin-top: 0; font-size: 1.5rem; }
.contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.contact li { display: flex; flex-direction: column; }
.contact a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.contact-label { font-weight: 400; }
.social a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.social img { width: 32px; height: 32px; }
.boosters { font-size: 0.95rem; }

/* ---------- Components ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prose a { overflow-wrap: anywhere; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: 0.25em 0; }
.file-size { opacity: 0.85; font-size: 0.95em; }
figure { margin: 16px 0; }
figcaption { font-size: 0.95rem; opacity: 0.9; margin-top: 6px; }
picture img { display: block; }

.expired-banner { background: #fff4d6; color: var(--ink-dark); border-left: 6px solid #e0a800; padding: 12px 16px; margin: 16px 0 0; }
.expired-banner p { margin: 0; }
.expired-banner a { color: var(--blue-dark); }
.reviewed-stamp { margin-top: 32px; font-size: 0.95rem; opacity: 0.85; }

table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(246, 246, 246, 0.35); }
thead th { font-weight: 400; border-bottom: 2px solid var(--rule); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding-bottom: 6px; font-weight: 400; }
@media (max-width: 600px) {
  .prose table:not(.fairshare) { display: block; overflow-x: auto; }
  th, td { padding: 8px 6px; }
}
/* Donation tiles (partials/fairshare-table.njk): two per line, each ensemble
   beside its "+ Jazz" combination, as on the old Wix page. */
.fairshare { margin: 24px 0; }
.nowrap { white-space: nowrap; }
.fairshare-heading { font-size: 1.25rem; font-weight: 400; text-align: center; margin: 0 0 12px; }
.fairshare-open { text-align: center; margin: 0 0 16px; }
.fairshare-tiles { list-style: none; padding: 0; margin: 0 auto; max-width: 480px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prose .fairshare-tiles { padding: 0; }
.prose .fairshare p { max-width: none; }
.prose .fairshare-tiles li { max-width: none; margin: 0; }
.fairshare-tile { background: #e9ecea; color: #12403a; text-align: center; padding: 16px 8px; display: flex; flex-direction: column; align-items: center; }
.fairshare-icons { display: flex; gap: 4px; min-height: 44px; }
.fairshare-icons img { width: 44px; height: 44px; margin: 0; }
.fairshare-tile h3 { font-size: 1.15rem; font-weight: 400; margin: 8px 0 2px; color: #12403a; line-height: 1.25; flex-grow: 1; display: flex; align-items: center; }
.fairshare-amount { margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.button-outline { background: transparent; color: #c8442e; border: 2px solid #c8442e; border-radius: 999px; }
.button-outline:hover { background: #c8442e; color: #fff; }
.fairshare-open .button-outline { background: #fff; }
.fairshare-open .button-outline:hover { background: #c8442e; }
.fairshare-credit { font-size: 0.8rem; opacity: 0.75; text-align: center; margin-top: 12px; }

.staff-director { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; margin-top: 24px; }
.staff-director h2 { margin-top: 0; font-size: clamp(2rem, 5vw, 2.6rem); }
.staff-title { margin-top: -0.3em; font-size: 1.1rem; }
.staff-contact a { display: inline-block; min-height: 44px; line-height: 44px; }
.coach-grid { list-style: none; padding: 0; display: grid; gap: 24px 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.coach-grid li { text-align: center; }
.coach-grid img { width: 136px; height: 136px; object-fit: cover; border-radius: 50%; margin: 0 auto; }
.coach-grid h3 { font-size: 1.15rem; margin: 6px 0 0; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.coach-grid h3 a { display: flex; align-items: center; min-height: 44px; }
.coach-grid p { margin: 0; opacity: 0.9; }
@media (max-width: 767px) {
  .staff-director { grid-template-columns: 1fr; gap: 12px; }
  .staff-director-photo { max-width: 60vw; }
}

.ensemble img { margin: 8px 0 12px; }

.home { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .home { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); align-items: start; }
  /* With a live homepage section, Recent Events spans below; without one it sits beside Next up. */
  .home-sections ~ .home-recent, .home > .prose { grid-column: 1 / -1; }
  .home-recent h2 { margin-top: 0; }
}
.home-sections { display: grid; gap: 24px; justify-items: center; }
.home-section { max-width: 600px; width: 100%; text-align: center; }
.home-section img { margin: 0 auto; }
.home-section .button { margin-top: 12px; }
@media (max-width: 767px) {
  /* Next up comes first on phones; the poster stays small so it does not push it away. */
  .home-section img { max-height: 30vh; width: auto; }
}

.calendar-embed { width: 100%; height: 600px; border: 0; background: #fff; }

/* ---------- Posts ---------- */
.video-link a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.video { width: 100%; max-width: 960px; background: #000; }
.post-back { margin-top: 32px; }
.gallery ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .gallery ul { grid-template-columns: repeat(2, 1fr); } }
.gallery li a { display: block; aspect-ratio: 1; overflow: hidden; }
.gallery li picture { display: block; height: 100%; }
.gallery li img { width: 100%; height: 100%; object-fit: cover; }
.post-cards { list-style: none; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.post-cards li { background: rgba(0, 0, 0, 0.15); padding: 0 0 14px; }
.post-cards a { display: block; text-decoration: none; }
.post-cards img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-card-title { display: block; padding: 12px 14px 4px; font-size: 1.25rem; line-height: 1.3; text-decoration: underline; text-decoration-thickness: 1px; }
.post-cards time, .post-cards p { display: block; padding: 0 14px; margin: 4px 0 0; font-size: 0.95rem; }
.home-recent { width: 100%; }
.prose .post-cards { padding: 0; }
.prose .post-cards li { max-width: none; margin: 0; }
.prose .post-cards img { margin: 0; }

/* ---------- Next up, calendar ---------- */
.next-up { background: var(--card); color: var(--ink-dark); padding: 16px; }
.next-up a { color: var(--blue-dark); }
.next-up h2 { margin: 0 0 8px; font-size: 1.6rem; }
.next-up .button { background: var(--blue); color: #fff; border-color: var(--blue); }
.next-up .button:hover { background: var(--blue-dark); }
.next-lead .event-title { font-size: 1.4rem; font-weight: 400; }
.next-later { font-size: 1.15rem; margin: 20px 0 4px; font-weight: 400; }
.event-when { margin: 0; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; }
.event-title { margin: 2px 0; font-size: 1.15rem; font-weight: 400; line-height: 1.3; }
.event-where { margin: 0; font-size: 0.95rem; }
.event-details summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; text-decoration: underline; }
.event-desc { white-space: pre-line; overflow-wrap: anywhere; font-size: 0.98rem; padding-bottom: 8px; }
.event-list { list-style: none; padding: 0; margin: 0; }
.event-list > li { padding: 10px 0; border-top: 1px solid rgba(0, 0, 0, 0.12); }
.calendar-list .event-list > li { border-top-color: rgba(246, 246, 246, 0.3); }
.prose .event-list { padding: 0; }
.prose .event-list li { max-width: none; }
.add-to-calendar { margin: 12px 0 0; }
.add-heading { margin: 0 0 6px; font-weight: 400; }
.add-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.add-buttons .button { min-height: 36px; padding: 0 12px; font-size: 13px; letter-spacing: 0.04em; }
.add-note { font-size: 0.92rem; margin: 6px 0 0; }
.add-other summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; text-decoration: underline; }
.add-other input { width: 100%; font: inherit; font-size: 0.85rem; padding: 8px; margin-top: 4px; }
.add-other label { display: block; font-size: 0.92rem; }
