/* ==========================================================================
   MSA 2026 Child — patterns.css
   Pattern-scoped layout/element styling for block patterns in /patterns.
   Classes here are NOT brand-signature components (those live in
   brand-signatures.css); these are layout wrappers and element modifiers
   referenced in pattern markup but otherwise undefined.
   Depends on tokens.css (--color-*, --space-*, --type-*, --transition,
   --leading-*, --tracking-*, --font-*, --width-*).
   Mobile-first; responsive at DESIGN.md §4 breakpoints.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared section headings (events-list) — DESIGN.md §4
   -------------------------------------------------------------------------- */
.msa-section-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--type-h2);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-display);
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
}
.msa-section-intro {
  font-size: var(--type-body);
  line-height: var(--leading-body);
  color: var(--color-ink-muted);
  margin: 0 0 var(--space-5);
  max-width: var(--width-text);
}

/* --------------------------------------------------------------------------
   Home hero (home-hero.php) — DESIGN.md §4 page-header pattern.
   Relative-positioned section with corner ornaments pinned to corners.
   -------------------------------------------------------------------------- */
.msa-home-hero {
  position: relative;
  overflow: hidden;
}
.msa-home-hero__corner {
  position: absolute;
  z-index: 0;
  width: 96px;
  height: auto;
  pointer-events: none;
  opacity: 0.85;
}
.msa-home-hero__corner--tl {
  top: 0;
  left: 0;
}
.msa-home-hero__corner--br {
  bottom: 0;
  right: 0;
}
@media (min-width: 48rem) {
  .msa-home-hero__corner {
    width: 160px;
  }
}
/* Keep hero content above the ornaments. */
.msa-home-hero__intro,
.msa-home-hero__panels {
  position: relative;
  z-index: 1;
}
.msa-home-hero__intro {
  text-align: center;
}
.msa-home-hero__ornament {
  margin-inline: auto;
}
.msa-home-hero__bismillah-gloss {
  color: var(--color-ink-muted);
  margin-top: var(--space-2);
}
/* Wider measure for the hero headline only (the intro column is 38rem, which
   wrapped the display-size title to ~8 lines); 64rem keeps it to ~4. */
.msa-home-hero__intro > .msa-home-hero__title {
  max-width: min(100%, 64rem);
}
.msa-home-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--type-display-1);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  color: var(--color-primary);
}
.msa-home-hero__subtitle {
  font-family: var(--font-script);
  font-weight: 500;
  font-size: var(--type-script-display);
  line-height: var(--leading-script);
  color: var(--color-ink-muted);
}
.msa-home-hero__ctas,
.msa-home-hero__event-cta {
  justify-content: center;
}
/* Two-panel zone: stacked on mobile, side-by-side at lg. */
.msa-home-hero__panels {
  gap: var(--space-5);
}
.msa-home-hero__next-event {
  height: 100%;
}

/* --------------------------------------------------------------------------
   Page header ornaments (page-header.php) — corners pinned to header.
   Header itself is styled in brand-signatures.css (.msa-page-header).
   -------------------------------------------------------------------------- */
.msa-page-header {
  position: relative;
  overflow: hidden;
}
.msa-page-header__ornament {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
  line-height: 0;
}
.msa-page-header__ornament img {
  width: 72px;
  height: auto;
}
.msa-page-header__ornament--tl {
  top: 0;
  left: 0;
}
.msa-page-header__ornament--br {
  bottom: 0;
  right: 0;
}
@media (min-width: 48rem) {
  .msa-page-header__ornament img {
    width: 120px;
  }
}
.msa-page-header__title,
.msa-page-header .msa-divider,
.msa-page-header__subtitle {
  position: relative;
  z-index: 1;
}
/* Kadence's .single-content hr (0,1,1) gives the first divider line a bottom
   margin, which lifts it above the star and the second line. */
.msa-divider > .msa-divider__line {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Site footer (site-footer.php) — navy footer, surface text.
   Background/text colors come from the block's backgroundColor/textColor.
   -------------------------------------------------------------------------- */
.msa-footer {
  color: var(--color-surface);
}
/* Kadence's footer area centers its text; the footer columns read cleaner
   left-aligned (the signup card and copyright keep their own centering). */
.msa-footer.msa-footer {
  text-align: left;
}
/* Tablets: four columns are too narrow, so show them as a 2 x 2 grid. */
@media (min-width: 782px) and (max-width: 1023.98px) {
  .msa-footer__main.msa-footer__main {
    flex-wrap: wrap !important;
  }
  .msa-footer__main > .wp-block-column {
    flex-basis: calc(50% - var(--wp--preset--spacing--space-7, 3rem) / 2) !important;
  }
}
/* Doubled class: the footer sits in a Kadence widget area, whose
   `.widget-area a` rule loads later and would otherwise win the tie.
   :where() skips buttons and social icons without adding specificity. */
.msa-footer.msa-footer a:where(:not(.wp-block-button__link):not(.wp-block-social-link-anchor)) {
  color: var(--color-surface);
}
.msa-footer.msa-footer a:where(:not(.wp-block-button__link):not(.wp-block-social-link-anchor)):hover,
.msa-footer.msa-footer a:where(:not(.wp-block-button__link):not(.wp-block-social-link-anchor)):focus-visible {
  color: var(--color-accent);
}
/* Signup card sits on warm off-white; restore dark text inside it. */
.msa-footer__signup {
  color: var(--color-ink);
}
/* Fluent Forms' "hide label" uses display:none, which also hides the email
   label from screen readers. Keep it readable but off-screen. */
.msa-footer__signup .fluentform div.ff-el-form-hide_label > .ff-el-input--label {
  display: block;
  visibility: visible;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.msa-footer.msa-footer .msa-footer__signup a {
  color: var(--color-primary);
}
.msa-footer.msa-footer .msa-footer__signup a:hover,
.msa-footer.msa-footer .msa-footer__signup a:focus-visible {
  color: var(--color-accent-text);
}
.msa-footer__signup-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--type-h3);
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
}
.msa-footer__signup-text,
.msa-footer__signup-fallback {
  color: var(--color-ink-muted);
}
.msa-footer__logo {
  margin: 0 0 var(--space-4);
}
.msa-footer__tagline {
  font-size: var(--type-small);
  line-height: var(--leading-body);
  color: var(--color-surface);
  opacity: 0.85;
  margin: 0 0 var(--space-4);
}
.msa-footer__social {
  margin-top: var(--space-4);
}
.msa-footer__col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--type-h4);
  color: var(--color-surface);
  margin: 0 0 var(--space-3);
}
.msa-footer__address {
  font-size: var(--type-small);
  line-height: var(--leading-body);
  margin: 0 0 var(--space-4);
}
/* Footer prayer-hours table inherits .msa-prayer-times; recolor for navy bg. */
.msa-footer__hours caption {
  color: var(--color-surface);
  font-size: var(--type-h4); /* same size as the other footer column titles */
  padding: 0 0 var(--space-3);
}
.msa-footer__hours th {
  color: var(--color-surface);
}
.msa-footer__hours td {
  color: var(--color-surface);
  opacity: 0.85;
  text-align: right;
}
.msa-footer__hours th,
.msa-footer__hours td {
  padding: var(--space-2) 0;
  border-bottom-color: rgba(255, 255, 255, 0.18);
}
.msa-footer__hours .wp-element-caption {
  color: var(--color-surface);
  opacity: 0.85;
}
.msa-footer__visit-cta {
  margin-top: 0; /* the address above already leaves the gap */
}
/* WordPress wraps the prayer-times shortcode in blank, class-less <p>s; their
   margins pushed the iqamah table below the other column titles. */
.msa-footer__iqamah > p:not([class]) {
  margin: 0;
}
/* The divider lines are navy by default, invisible on the navy footer. */
.msa-footer .msa-divider__line {
  border-top-color: rgba(255, 255, 255, 0.18);
}
/* Scoped under .msa-footer to beat Kadence's `.widget-area ul` indent. */
.msa-footer .msa-footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.msa-footer__legal {
  color: var(--color-surface);
  opacity: 0.8;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Committee grid (committee-grid.php) — board cards with circular photos.
   -------------------------------------------------------------------------- */
.msa-committee__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--type-h2);
  line-height: var(--leading-heading);
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
}
.msa-committee__group-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--type-h3);
  color: var(--color-primary);
  margin: var(--space-7) 0 var(--space-2);
}
.msa-committee__group-note {
  font-size: var(--type-small);
  color: var(--color-ink-muted);
  margin: 0 0 var(--space-5);
  max-width: var(--width-text);
}
.msa-committee__card {
  text-align: center;
  align-items: center;
  height: 100%;
  gap: var(--space-2);
}
/* Circular member photos. */
.msa-committee__photo img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
}
.msa-committee__photo {
  margin: 0 auto var(--space-2);
}
.msa-committee__role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--type-caption);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caption);
  color: var(--color-accent-text);
  margin: 0;
}
.msa-committee__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--type-h4);
  color: var(--color-primary);
  margin: var(--space-1) 0 0;
}
.msa-committee__role-desc {
  font-size: var(--type-small);
  line-height: var(--leading-body);
  color: var(--color-ink-muted);
  margin: var(--space-2) 0 0;
  flex: 1 1 auto;
}
.msa-committee__contact {
  font-size: var(--type-small);
  color: var(--color-ink-muted);
  margin: var(--space-1) 0 0;
  word-break: break-word;
}
.msa-committee__endmark {
  margin: var(--space-7) auto var(--space-3);
}
.msa-committee__footnote {
  font-size: var(--type-small);
  color: var(--color-ink-muted);
  margin: 0;
}
/* Single-member row (advisor) stays centered, not full-width. */
.msa-committee__grid--single {
  max-width: 18rem;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Contact section (contact-section.php)
   -------------------------------------------------------------------------- */
.msa-contact-section__header {
  text-align: center;
}
.msa-contact-section__emails {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--type-body);
}
.msa-contact-section__map {
  margin-top: var(--space-7);
}
.msa-contact-section__map iframe {
  display: block;
  width: 100%;
  min-height: 22rem;
  border: 0;
}

/* --------------------------------------------------------------------------
   Prayer-times section (prayer-times-table.php)
   -------------------------------------------------------------------------- */
.msa-prayer-times-section {
  padding-block: var(--space-7);
}
@media (min-width: 64rem) {
  .msa-prayer-times-section {
    padding-block: var(--space-9);
  }
}
.msa-prayer-times-section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--type-h2);
  line-height: var(--leading-heading);
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
}
.msa-prayer-times-section__subtitle {
  font-size: var(--type-body);
  line-height: var(--leading-body);
  color: var(--color-ink-muted);
  margin: 0 0 var(--space-5);
  max-width: var(--width-text);
}
.msa-prayer-times-section__note {
  color: var(--color-ink-muted);
  margin: var(--space-4) 0 0;
  max-width: var(--width-text);
}
.msa-prayer-times-section__embed,
.msa-prayer-times-section__jumuah {
  margin-top: var(--space-6);
}
.msa-prayer-times-section__location {
  margin: var(--space-4) 0;
}
.msa-mawaqeet-embed {
  width: 100%;
  min-height: 18rem;
}

/* --------------------------------------------------------------------------
   Documents table (documents-list.php) — readable downloads table.
   -------------------------------------------------------------------------- */
.msa-documents-table {
  margin: var(--space-4) 0 0;
}
.msa-documents-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: var(--type-body);
}
.msa-documents-table th,
.msa-documents-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.msa-documents-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--type-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caption);
  color: var(--color-ink);
}
.msa-documents-table tbody th {
  font-weight: 600;
  color: var(--color-ink);
}
.msa-documents-table tbody td {
  color: var(--color-ink-muted);
}
/* Phones: the 3-column table is wider than the card, which hid the
   download links. Stack each row: name on top, type + link below. */
@media (max-width: 47.99rem) {
  .msa-documents-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .msa-documents-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-1) var(--space-3);
    padding: var(--space-3) var(--space-2);
    border-bottom: 1px solid var(--color-border);
  }
  .msa-documents-table tbody th {
    grid-column: 1 / -1;
  }
  .msa-documents-table tbody th,
  .msa-documents-table tbody td {
    padding: 0;
    border-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   Announcements list (announcements-list.php)
   -------------------------------------------------------------------------- */
.msa-announcements {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* --------------------------------------------------------------------------
   Donate section element modifiers (donate-methods.php).
   Grid + method cards themselves live in brand-signatures.css.
   -------------------------------------------------------------------------- */
.msa-donate-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--type-h2);
  line-height: var(--leading-heading);
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
}
.msa-donate-note {
  color: var(--color-ink-muted);
  margin-top: var(--space-6);
  max-width: var(--width-text);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Events grid + list element modifiers (events-list.php, event-card.php).
   Event card itself lives in brand-signatures.css.
   -------------------------------------------------------------------------- */
.msa-events-grid {
  gap: var(--space-5);
}
/* Donate page "Where your gift goes" (donate-impact.php): equal-height 2 x 2 cards. */
.wp-block-columns.msa-impact__grid {
  gap: var(--space-5);
}
.msa-impact__grid + .msa-impact__grid {
  margin-top: var(--space-5);
}
.msa-impact__grid > .wp-block-column > .msa-card {
  height: 100%;
}
/* Cards rendered by [msa_events]: two per row from tablet up, like the old column rows. */
.msa-events-grid--auto {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 782px) {
  .msa-events-grid--auto {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.msa-events-grid--auto + .msa-section-heading {
  margin-top: var(--space-7);
}
.msa-events-note {
  color: var(--color-ink-muted);
  margin-top: var(--space-6);
}
.msa-event-card__footer-text {
  margin: 0;
}
.msa-event-card__illustration {
  margin: 0 0 var(--space-3);
}
.msa-event-card__illustration img {
  border-radius: 8px;
}

/* Cards rendered by [msa_events]: cover photo across the top (bleeds past the
   card padding), and the title link covers the whole card. */
.msa-events-grid--auto .msa-event-card {
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.msa-events-grid--auto .msa-event-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(26, 35, 50, 0.08);
}
/* Selectors at (0,3,0) to beat Kadence's .single-content figure (0,1,1) and
   WordPress's flow-layout child margins (:root :where(.is-layout-flow) > *). */
.msa-events-grid--auto .msa-event-card > .msa-event-card__image {
  grid-column: 1 / -1;
  margin: calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) 0;
}
@media (min-width: 48rem) {
  .msa-events-grid--auto .msa-event-card > .msa-event-card__image {
    margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) 0;
  }
}
.msa-events-grid--auto .msa-event-card > .msa-event-card__date {
  margin: 0;
}
.msa-event-card__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px 7px 0 0;
}
.msa-event-card__title a.msa-event-card__link {
  color: inherit;
  text-decoration: none;
}
.msa-event-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
}
.msa-event-card:hover .msa-event-card__title a.msa-event-card__link {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
.msa-event-card__link:focus-visible {
  outline: none;
}
.msa-event-card__link:focus-visible::after {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* "Recent gatherings" page numbers ([msa_events], ?gatherings=2). The class is
   doubled to beat Kadence's content link rules; the current page is gold. */
#recent-gatherings {
  scroll-margin-top: var(--space-6);
}
.msa-events-pagination.msa-events-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.msa-events-pagination.msa-events-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: background-color var(--transition), color var(--transition);
}
.msa-events-pagination.msa-events-pagination a.page-numbers:hover,
.msa-events-pagination.msa-events-pagination a.page-numbers:focus-visible {
  background-color: var(--color-primary);
  color: var(--color-surface);
}
.msa-events-pagination.msa-events-pagination a.page-numbers:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.msa-events-pagination.msa-events-pagination .page-numbers.current {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Event page (single-msa_event.php): back link, header with the date, time
   and place, cover photo, story, photo gallery. The page sits inside
   Kadence's .single-content, whose p/ul/figure/h1/.wp-block-buttons margins
   reach (0,2,1), so the rules that set margins are scoped to beat them.
   -------------------------------------------------------------------------- */
.msa-event-page__back,
.msa-event-page__body,
.msa-event-page__photos {
  box-sizing: border-box;
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.msa-event-page__back {
  max-width: var(--width-content);
  padding-top: var(--space-5);
  font-size: var(--type-small);
}
.msa-event-page__header {
  padding-top: var(--space-6);
  padding-inline: var(--space-5);
}
.msa-event-page .msa-event-page__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 var(--space-3);
}
.msa-event-page .msa-event-page__header .msa-page-header__title {
  margin: 0 0 0.5em; /* same gap above the divider as Kadence gives the other pages' titles */
}
.msa-event-page .msa-event-page__facts {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  color: var(--color-ink-muted);
}
.msa-event-page .msa-event-page__facts li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
}
.msa-event-page__body {
  max-width: 48rem;
  padding-bottom: var(--space-7);
}
.msa-event-page .msa-event-page__cover {
  margin: 0 0 var(--space-6);
}
.msa-event-page__cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
}
.msa-event-page .msa-event-page__lead {
  margin: 0 0 var(--space-5);
  font-size: var(--type-h4);
  line-height: var(--leading-body);
  color: var(--color-ink);
}
.msa-event-page__story > :first-child {
  margin-top: 0;
}
.msa-event-page__story h2 {
  font-size: var(--type-h3);
}
.msa-event-page__body > .wp-block-buttons.msa-event-page__link {
  margin-top: var(--space-6);
}
.msa-event-page__photos {
  max-width: var(--width-content);
  padding-bottom: var(--space-7);
}
.msa-event-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}
@media (min-width: 48rem) {
  .msa-event-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
  }
}
.msa-event-page__photos .msa-event-gallery figure.wp-block-image {
  margin: 0;
}
.msa-event-gallery .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.msa-event-page__more {
  justify-content: center;
  padding: 0 var(--space-5) var(--space-9);
}

/* --------------------------------------------------------------------------
   Home-hero / prayer-times inline element modifiers used in markup.
   -------------------------------------------------------------------------- */
.msa-prayer-times__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--type-h3);
  color: var(--color-primary);
  margin: 0 0 var(--space-2);
}
.msa-prayer-times__date {
  font-size: var(--type-small);
  color: var(--color-ink-muted);
}
.msa-prayer-times__cta {
  margin-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   Photo gallery (home-gallery.php) — centered header + responsive image grid.
   -------------------------------------------------------------------------- */
.msa-gallery__header {
  text-align: center;
}
.msa-gallery__header .msa-divider {
  max-width: 18rem;
  margin-inline: auto;
}
.msa-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-7);
}
@media (min-width: 48rem) {
  .msa-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64rem) {
  .msa-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}
.msa-gallery__item {
  margin: 0;
}
.msa-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.msa-gallery__caption {
  margin: var(--space-2) 0 0;
  font-size: var(--type-small);
  color: var(--color-ink-muted);
}

/* --------------------------------------------------------------------------
   Weekly / ongoing gatherings list (events-list.php).
   -------------------------------------------------------------------------- */
.msa-events-weekly {
  max-width: var(--width-text);
  margin: var(--space-5) 0 0;
  line-height: var(--leading-body);
}
.msa-events-weekly li {
  margin-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   Prayer-times monthly schedule (rendered by the [msa_prayer_schedule]
   shortcode) — scroll horizontally on narrow screens; footer note color.
   -------------------------------------------------------------------------- */
.msa-prayer-schedule {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.msa-prayer-schedule table {
  min-width: 34rem;
}
.msa-footer__hours-note {
  color: var(--color-surface);
  opacity: 0.85;
  margin: var(--space-3) 0 0;
}
/* The "not posted yet" prayer note sits on the navy footer: keep it light. */
.msa-footer .msa-prayer-times-section__note {
  color: var(--color-surface);
  opacity: 0.85;
}
/* On the navy footer the button focus ring is gold, not navy. */
.msa-footer .wp-block-buttons > .wp-block-button.msa-btn > .wp-block-button__link.wp-element-button:focus-visible {
  outline-color: var(--color-accent);
}
