/* 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: 100; font-style: normal; font-display: swap; src: url(/fonts/lato-latin-100-normal.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 100; font-style: italic; font-display: swap; src: url(/fonts/lato-latin-100-italic.woff2) format("woff2"); }
@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); }
/* Page titles are centered, as on most Wix pages (posts keep theirs left). */
.page > h1 { text-align: center; }
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; }
/* Sized, spaced and smoothed as on Wix. Grayscale smoothing (antialiased)
   draws the script's strokes thinner on a Mac than the default does. */
.tagline { font: 400 19px/1.2 "Sacramento", cursive; letter-spacing: 0.08em; margin-top: 6px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.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; }
/* The lines under ACALANES are a lighter weight than it (Lato Thin, 100). */
.name-sub { font-size: clamp(1.5rem, 4.5vw, 3rem); font-weight: 100; line-height: 1.15; }
.name-place { font-size: 1.2rem; font-weight: 100; 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; }
/* Instagram icon at the right end of the nav bar, as on Wix (the handle is
   its alt text; spelled out it pushes "Store" onto a second line). Phones
   have no room beside the Menu button; the footer link covers them. */
.nav-bar .nav-social { padding: 0 0 0 6px; }
.nav-social img { width: 28px; height: 28px; }

.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; }
/* With a mouse, a section's menu opens on hover, as on Wix; click and keyboard
   (Enter on the section name) still open it as before. A menu opened by a
   click closes once the mouse has left it and focus has moved off it, so a
   mouse user who clicks a section name does not leave its menu stuck open. */
@media (hover: hover) and (min-width: 768px) {
  .nav-desktop li:hover > details::details-content { content-visibility: visible; }
  .nav-desktop li:not(:hover) > details[open]:not(:focus-within)::details-content { content-visibility: hidden; }
  .nav-desktop > ul:hover > li:not(:hover) > details[open]::details-content { content-visibility: hidden; }
}

@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; }
  /* Pinned to the right of the Menu row (absolute, so an open menu does not
     move it), centered in that 44px row and short enough to stay inside its rules. */
  .nav-pinned { position: absolute; right: 0; top: 0; display: flex; align-items: center; height: 44px; padding: 0; }
  .nav-pinned .button { min-height: 34px; }
  .nav-bar .nav-social { display: none; }
  .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 { display: flex; align-items: center; gap: 14px; font-size: 0.95rem; }
.boosters-logo img { display: block; width: 72px; height: 72px; }

/* ---------- 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; }
/* PDF links (file shortcode) as an icon tile with the label under it, as on Wix. */
.file-link:has(.file-icon) { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; text-align: center; vertical-align: top; }
.prose .file-icon { display: block; width: 48px; height: 56px; margin: 0 0 4px; }
.file-link:has(.file-icon) .file-size { display: block; }
/* In a list item the tile would leave the bullet on an empty line: icon small, inline. */
li > .file-link:has(.file-icon) { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; padding: 0; text-align: left; vertical-align: middle; }
.prose li > .file-link .file-icon { width: 20px; height: 24px; margin: 0; }
li > .file-link:has(.file-icon) .file-size { display: inline; }
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 { display: block; overflow-x: auto; }
  th, td { padding: 8px 6px; }
}

.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 cards as on Wix: dark navy, square photo, four to a row, under a
   centered heading with a double rule above it. */
.staff-coaches { margin-top: 40px; padding-top: 8px; border-top: 4px double var(--rule); }
.staff-coaches > h2 { text-align: center; }
.staff-coaches > p { max-width: 72ch; margin: 0 auto 24px; font-size: 0.95rem; }
.coach-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 30px; grid-template-columns: repeat(auto-fill, 185px); justify-content: center; }
.coach-grid li { text-align: center; background: rgb(21, 47, 81); padding: 24px 8px 16px; }
.coach-grid img { width: 136px; height: 136px; object-fit: cover; margin: 0 auto; }
.coach-grid h3 { font-size: 1.15rem; margin: 10px 0 0; min-height: 44px; display: flex; align-items: center; justify-content: center; line-height: 1.2; }
.coach-grid h3 a { display: flex; align-items: center; min-height: 44px; }
.coach-grid p { margin: 0; font-size: 0.9rem; opacity: 0.9; }
@media (max-width: 440px) { .coach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .coach-grid img { width: 100%; height: auto; aspect-ratio: 1; } }
@media (max-width: 767px) {
  .staff-director { grid-template-columns: 1fr; gap: 12px; }
  .staff-director-photo { max-width: 60vw; }
}

/* Ensemble cards (partials/ensembles-list.njk), as on Wix: fixed-width cards,
   as many across as the window holds (2 on a laptop, 4 on a wide monitor), so
   the grid runs wider than the 1000px page column: it is sized to the window
   (less 24px a side, which also covers the scrollbar that 100vw counts, so
   the page never scrolls sideways) and centered on the page. Each photo fills its card
   behind a dark tint so the white text stays readable over any photo. */
.ensembles {
  display: grid; grid-template-columns: repeat(auto-fill, 420px); justify-content: center; gap: 40px 48px;
  width: min(100vw - 48px, 4 * 420px + 3 * 48px); margin: 24px 0 0 50%; transform: translateX(-50%);
}
.ensemble { position: relative; isolation: isolate; overflow: hidden; min-height: 560px; padding: 28px 26px; background: #263142; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); }
.prose .ensemble picture, .prose .ensemble img { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; }
.ensemble::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(26, 36, 54, 0.66); }
.ensemble h2 { margin: 0 0 14px; font-size: 1.75rem; }
.prose .ensemble p { max-width: none; margin: 0; font-size: 1rem; }
.ensemble em { font-style: normal; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 935px) { .ensembles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 767px) {
  .ensembles { grid-template-columns: minmax(0, 1fr); width: auto; margin-left: 0; transform: none; }
  .ensemble { min-height: 0; }
}

/* Concert Attire, as on Wix: a black panel with the title and quote centered
   and the three ensembles side by side. Each ensemble starts at its h3, so the
   page flows into three columns with a column break before each h3; the quote
   and the thrift-stop section (from its h2 on) span the full width. The thrift
   text sits in a light box under the flyer. */
.page-concert-attire { background: #111; padding: 24px clamp(16px, 4vw, 48px) 40px; margin-top: 16px; }
.page-concert-attire h1, .page-concert-attire .prose > p:first-child { text-align: center; max-width: none; }
.page-concert-attire .prose > p:has(> picture) img { width: 282px; }
.page-concert-attire .prose > p:has(> picture) ~ p { max-width: none; margin: 0; padding: 0 24px 12px; background: #f3f3f3; color: var(--ink-dark); font-size: 0.95rem; }
.page-concert-attire .prose > p:has(> picture) + p { padding-top: 16px; }
.page-concert-attire .prose > p:has(> picture) ~ p a { color: var(--blue-dark); }
@media (min-width: 768px) {
  .page-concert-attire .prose { columns: 3; column-gap: 40px; }
  .page-concert-attire .prose > p:first-child, .page-concert-attire .prose > h2, .page-concert-attire .prose > h2 ~ * { column-span: all; }
  .page-concert-attire .prose > h3 { margin-top: 0.6em; font-weight: 700; font-size: 1.15rem; }
  .page-concert-attire .prose > h3 ~ h3 { break-before: column; }
}

/* Field Trips, as on Wix: a short page, everything centered under the title. */
.page-field-trips .prose { text-align: center; }
.page-field-trips .prose p { margin-inline: auto; }

/* Pep Band, as on Wix: the title in a bright-blue banner, uppercase, and the
   content in a matching panel below it. */
.page-pep-band > h1 { margin: 16px 0 14px; padding: 14px 16px; background: #2433ef; text-transform: uppercase; letter-spacing: 0.03em; }
.page-pep-band .prose { padding: 20px clamp(16px, 6vw, 72px) 36px; background: #2433ef; }

/* Honor Bands, as on Wix: each section (an h2 and what follows it) is a navy
   box. Content Markdown has no wrapper per section, so every element gets the
   same background and padding instead of margins, and they read as one box;
   the gap above each h2 separates the boxes. Two columns on desktop: the page
   flows into them with a break before the third section (Contra Costa), so
   All-State and Summer Camps stack on the left. */
.page-honor-bands .prose > * { max-width: none; margin: 0; padding: 0 24px 12px; background: #1b2d5e; break-inside: avoid; }
.page-honor-bands .prose > ul { display: flow-root; padding-left: calc(24px + 1.3em); }
.page-honor-bands .prose > ul li { margin: 0.2em 0; }
.page-honor-bands .prose > h2 { margin-top: 28px; padding-top: 20px; text-align: center; font-size: 1.5rem; }
.page-honor-bands .prose > h2:first-child { margin-top: 0; }
.page-honor-bands .prose > :has(+ h2), .page-honor-bands .prose > :last-child { padding-bottom: 22px; }
@media (min-width: 768px) {
  .page-honor-bands .prose { columns: 2; column-gap: 36px; margin-top: 16px; }
  .page-honor-bands .prose > h2:nth-of-type(3) { break-before: column; margin-top: 0; }
}

.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) {
  /* On phones the homepage sections (Pep Band) come above Next up. */
  .home-sections { order: -1; }
  .home-section img { max-height: 30vh; width: auto; }
}

/* ---------- Posts ---------- */
.video-link a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
/* YouTube links shown as thumbnails with a play button (the youtube shortcode);
   consecutive videos sit side by side, two to a line in the page column. */
.video-card { display: inline-block; vertical-align: top; width: min(100%, 460px); margin: 8px 20px 20px 0; }
/* A video on its own (no video card just before or after it) gets the width Wix's player had. */
.video-card:not(.video-card + .video-card):not(:has(+ .video-card)) { display: block; width: min(100%, 720px); }
.video-card a { display: block; text-decoration: none; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.prose .video-thumb img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.video-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); transition: background 0.15s; }
.video-play::after { content: ""; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent #fff; }
.video-card a:hover .video-play { background: #c4302b; }
.video-title { display: block; margin-top: 8px; line-height: 1.35; text-decoration: underline; text-decoration-thickness: 1px; }
.video { width: 100%; max-width: 960px; background: #000; }
/* Recent Posts strip at the end of each post, as on Wix. */
.post-more { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--rule); }
.post-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.post-more-head h2 { margin: 0.6em 0; font-size: 1.5rem; }
.post-more-head a { display: inline-flex; align-items: center; min-height: 44px; }
.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-thumb { position: relative; display: block; }
.post-cards a:hover .video-play { background: #c4302b; }
.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%; }
/* Home page cards are light blue with dark text, as on Wix and like the
   Next Concert panel beside them. */
.home-recent .post-cards li { background: var(--card); color: var(--ink-dark); }
.home-recent .post-cards a { color: var(--ink-dark); }
.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; }
.next-later { font-size: 1.15rem; margin: 20px 0 4px; font-weight: 400; }
/* Each event is a card like Wix's calendar: a date badge beside the title,
   then date, time and place lines with icons. */
.event { display: flex; gap: 18px; align-items: flex-start; }
.event-badge { flex: none; width: 50px; margin: 2px 0 0; padding: 6px 0 5px; background: #5d6b9e; color: #fff; text-align: center; line-height: 1.1; }
.event-day { display: block; font-size: 1.45rem; font-weight: 700; }
.event-month { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.event-body { flex: 1; min-width: 0; }
/* What kind of event it is, from title words (src/_lib/calendar.js KINDS). */
.event-kind { margin: 0 0 2px; color: #5d6b9e; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
/* Anything due gets a hollow badge, so deadlines read differently from things to attend. */
.event-due .event-badge { padding: 4px 0 3px; border: 2px solid #5d6b9e; background: transparent; color: #5d6b9e; }
.event-title { margin: 0 0 6px; font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.prose .event-meta, .event-meta { display: flex; gap: 8px; align-items: baseline; max-width: none; margin: 3px 0; font-size: 0.95rem; }
.event-meta svg { flex: none; width: 15px; height: 15px; position: relative; top: 2px; }
.event-details summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.event-details summary::-webkit-details-marker { display: none; }
.event-details summary { list-style: none; }
.event-details summary::before { content: ""; width: 7px; height: 7px; margin: 0 4px 3px 3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform 0.15s; }
.event-details[open] summary::before { margin-bottom: -3px; transform: rotate(-135deg); }
.event-less, .event-details[open] .event-more { display: none; }
.event-details[open] .event-less { display: inline; }
.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: 14px 0 0; }
/* The rule under each event runs under its text, not its badge, as on Wix. */
.event-list > li:not(:last-child) .event-body { padding-bottom: 6px; border-bottom: 1px solid rgba(68, 102, 224, 0.6); }
.prose .event-list { padding: 0; }
.prose .event-list li { max-width: none; margin: 0; }
/* Calendar page: the list sits on a light panel under a blue bar. */
.calendar-list { background: #f4f4f4; color: var(--ink-dark); }
.calendar-list a { color: var(--blue-dark); }
.prose .calendar-bar { margin: 0; padding: 12px 18px; background: #4466e0; color: #fff; font-size: 1.1rem; font-weight: 700; }
.calendar-list .event-list { padding: 4px 18px 14px; }
.calendar-empty { margin: 0; padding: 16px 18px; }
.calendar-more { margin-top: 24px; }
.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; }
