/* Mar Abraham Chaldean Catholic Church — inner pages (matches the new homepage look)
   Palette: maroon #7a2e2e, sand #e4c9a0, ink #2e2422, cream. Fonts: Playfair Display + Lora.
   Header / nav / footer / modal come from the homepage design (home.css);
   page layouts, forms, calendar, give and gallery styles are carried over
   and re-colored. Legacy variable names (--rose, --dark ...) are aliased
   to the new palette so every older rule picks up the new colors. */


@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --maroon: #7a2e2e;
  --maroon-dark: #5c2020;
  --maroon-light: rgba(122, 46, 46, 0.08);
  --sand: #e4c9a0;
  --sand-light: #f6ecda;
  --gold: #b98a3e;
  --ink: #2e2422;
  --muted: #6b5d55;
  --cream: #fbf6ef;
  --border: #e8dcc8;
  --heading-font: 'Playfair Display', 'Georgia', serif;
  --body-font: 'Lora', 'Georgia', serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.08rem;
}

p { text-align: left; }

a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--maroon-dark); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 6px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 28px;
}

.btn, .btn-outline, .btn-outline-light {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 4px;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
}
.btn {
  background: var(--maroon);
  color: #fff;
  border: 2px solid var(--maroon);
}
.btn:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--maroon);
  border: 2px solid var(--maroon);
}
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.85);
}
.btn-outline-light:hover { background: #fff; color: var(--maroon-dark); }

/* (preview banner styles retained harmlessly) */
.preview-banner {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  padding: 8px 16px;
}
.preview-banner a { color: var(--sand); text-decoration: underline; }

/* Floating utility elements */
.social-rail {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.social-rail a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--maroon);
  color: #fff;
}
.social-rail a:hover { background: var(--ink); }

.mobile-call-btn {
  display: none;
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 45;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.mobile-call-btn:hover { background: var(--maroon-dark); }

.floating-cta {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 45;
  background: var(--ink);
  color: #fff;
  padding: 13px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.floating-cta:hover { background: var(--maroon-dark); color: #fff; }

@media (max-width: 900px) {
  .social-rail { display: none; }
  .mobile-call-btn { display: flex; }
  .floating-cta { padding: 11px 16px; font-size: 0.82rem; }
}

/* Header */
header.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.site-title { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; }
.site-title::before,
.site-title::after {
  content: "";
  flex: 1;
  max-width: 160px;
  height: 1px;
  background: var(--border);
  align-self: center;
}
.site-title a { color: inherit; display: block; }
.site-title h1 {
  font-size: 1.9rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--maroon-dark);
  white-space: nowrap;
}

/* Nav */
nav.main-nav {
  background: var(--maroon);
}
nav.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
nav.main-nav > .container > ul > li { position: relative; }
nav.main-nav a,
nav.main-nav .nav-label {
  display: block;
  padding: 15px 20px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
/* The dropdown headings (About Us, Sacraments, Faith Formation) aren't
   links on desktop — they just open the menu on hover — so show a normal
   arrow there. Real links keep the pointer. Mobile re-enables the pointer
   below because tapping the heading expands the section. */
nav.main-nav .nav-label { cursor: default; }
nav.main-nav a:hover { background: var(--maroon-dark); color: #fff; }
nav.main-nav a.active { background: var(--maroon-dark); }
nav.main-nav .nav-give { background: var(--gold); }
nav.main-nav .nav-give:hover { background: #a3782f; }

nav.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  display: none;
  z-index: 30;
  padding: 6px 0;
}
nav.main-nav .has-sub-sub { position: relative; }

@media (min-width: 901px) {
  /* A little extra room between top-level items on desktop. */
  nav.main-nav > .container > ul > li > a,
  nav.main-nav > .container > ul > li > .nav-label { padding-left: 28px; padding-right: 28px; }

  /* Hover-based dropdowns only apply on desktop — see mobile click-toggle
     rules below. iOS Safari keeps a tapped element's :hover state active
     until a tap elsewhere, which would otherwise fight the mobile
     accordion toggle. */
  nav.main-nav .has-sub:hover .sub-menu { display: block; }
  nav.main-nav .has-sub-sub:hover .sub-sub-menu { display: block; }
}

nav.main-nav .sub-sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  display: none;
  z-index: 31;
  padding: 6px 0;
}
nav.main-nav .sub-sub-menu a { color: var(--ink); padding: 10px 18px; font-weight: 500; }
nav.main-nav .sub-sub-menu a:hover { background: var(--sand-light); color: var(--maroon-dark); }

nav.main-nav .sub-menu a {
  color: var(--ink);
  padding: 10px 18px;
  font-weight: 500;
  font-size: 0.9rem;
}
nav.main-nav .sub-menu a:hover { background: var(--sand-light); color: var(--maroon-dark); }

.nav-toggle {
  display: none;
  width: 100%;
  background: var(--maroon-dark);
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 900px) {
  header.site-header { padding: 14px 0; }
  .site-title h1 { font-size: 1.3rem; }
  .site-title::before,
  .site-title::after { display: none; }

  .nav-toggle { display: block; }
  nav.main-nav .container > ul { display: none; flex-direction: column; }
  nav.main-nav .container > ul.open { display: flex; }
  nav.main-nav > .container > ul > li { width: 100%; }
  nav.main-nav .has-sub .sub-menu { position: static; display: none; box-shadow: none; border: none; background: var(--maroon-dark); }
  nav.main-nav .has-sub.sub-open > .sub-menu { display: block; }
  nav.main-nav .has-sub-sub .sub-sub-menu { position: static; display: none; box-shadow: none; padding-left: 14px; background: var(--maroon-dark); }
  nav.main-nav .has-sub-sub.sub-open > .sub-sub-menu { display: block; }
  nav.main-nav .sub-menu a,
  nav.main-nav .sub-sub-menu a { color: #fff; }
  nav.main-nav .sub-menu a:hover,
  nav.main-nav .sub-sub-menu a:hover { background: var(--maroon); color: #fff; }
  nav.main-nav .nav-label {
    position: relative;
    padding-right: 46px;
    cursor: pointer;
  }
  nav.main-nav .nav-label::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
  }
  nav.main-nav .has-sub.sub-open > .nav-label::after { content: '\2212'; }
}


/* Legacy aliases -> new palette */
:root {
  --rose: var(--maroon);
  --rose-dark: var(--maroon-dark);
  --rose-light: var(--maroon-light);
  --dark: var(--maroon-dark);
  --text: var(--ink);
  --bg: var(--cream);
  --footer-maroon: var(--maroon-dark);
}
.spotify-embed { display:block; width:100%; border-radius:12px; margin-top:6px; }

.schedule-row {
  display: flex;
  flex-direction: column;
  row-gap: 4px;
  margin: 0 0 14px;
  text-align: left;
}
.schedule-line {
  display: grid;
  grid-template-columns: 160px 105px 1fr;
  column-gap: 8px;
  align-items: baseline;
}
.schedule-row .day-label {
  font-weight: 700;
  white-space: nowrap;
}
.schedule-row .time {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.schedule-row .detail {
  color: var(--muted);
}
.schedule-row .detail.full {
  grid-column: 2 / 4;
}

/* Page title (plain, matches live site's simple underlined heading) */

/* Page banner */
.page-banner { background: var(--sand-light); padding: 44px 0 38px; text-align: center; border-bottom: 1px solid var(--border); }
.page-banner h2 { margin: 0; font-size: 2.6rem; padding: 0; border: 0; }
.page-banner h2::after { content:''; display:block; width:64px; height:3px; background: var(--gold); margin: 16px auto 0; }
.page-banner .container { max-width: 1140px; }


section.block { padding: 52px 0; }
section.block.alt { background: var(--sand-light); }
.section-title { margin-top: 0; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
@media (max-width: 800px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.social-embeds { margin-top: 24px; }
.social-embed-title {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  color: var(--dark);
  margin: 0 0 14px;
}
.social-embed-box {
  background: #fff;
  border: 2px solid var(--rose);
  border-radius: 4px;
  padding: 16px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-embed-box .fb-page,
.social-embed-box iframe { max-width: 100%; }

/* Instagram's embed script doesn't always successfully hydrate the
   blockquote into a rich post card (common for visitors with ad blockers,
   tracking protection, or who aren't logged into Instagram) — when it
   doesn't, it leaves just a plain text link. These rules override
   Instagram's inline styles on that fallback so it reads as an
   intentional, branded button instead of a bare, broken-looking link.
   They have no effect once the embed successfully hydrates, since
   Instagram replaces the blockquote's contents with its own iframe. */
.instagram-media {
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
}
.instagram-media a {
  display: inline-block;
  background: var(--dark);
  color: #fff !important;
  text-decoration: none !important;
  padding: 13px 28px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.95rem;
}
.instagram-media a:hover { background: var(--rose); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 24px;
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-card h4 {
  margin: 14px 0 10px;
  font-family: var(--heading-font);
  font-size: 1.05rem;
  color: var(--dark);
}
.video-card .btn-outline { margin: 4px 6px 4px 0; }

.lesson-slider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.lesson-slider-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.lesson-slider-track::-webkit-scrollbar { display: none; }
.lesson-slider-track .video-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
}
.lesson-slider-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--dark);
  background: #fff;
  color: var(--dark);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lesson-slider-btn:hover { background: var(--dark); color: #fff; }
.video-slider-status { color: var(--muted); padding: 20px 0; }
.playlist-embed {
  width: 100%;
  max-width: 640px;
  margin-top: 24px;
}
.playlist-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 4px;
  display: block;
}
@media (max-width: 700px) {
  .playlist-embed iframe { height: 280px; }
}
@media (max-width: 700px) {
  .lesson-slider-track .video-card { flex-basis: 260px; }
}

.sacraments-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  border: 1px solid var(--border);
  background: #fff;
}
.sacraments-sidebar {
  background: #eee;
  border-right: 1px solid var(--border);
}
.sac-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 22px 24px;
  background: #eee;
  border: none;
  border-bottom: 1px solid #ddd;
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 1rem;
  cursor: pointer;
}
.sac-tab.active {
  background: #fff;
  color: var(--dark);
  font-weight: 600;
}
.sacraments-content {
  padding: 36px;
}
.sac-panel p { margin: 0 0 18px; }
.sac-panel .btn { display: inline-block; margin-bottom: 24px; }
.sac-doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
}
.sac-doc-links .btn-outline,
.sac-doc-links .btn { margin: 0; align-self: center; }
.sac-panel img {
  width: 100%;
  max-width: 640px;
  border-radius: 4px;
  display: block;
  margin-top: 8px;
}
@media (max-width: 800px) {
  .sacraments-layout { grid-template-columns: 1fr; }
  .sacraments-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .sacraments-content { padding: 24px; }
}

.about-img {
  max-width: 100%;
  border-radius: 4px;
  margin: 0 0 20px;
  display: block;
}
.about-img-float {
  max-width: 220px;
  float: left;
  margin: 4px 24px 16px 0;
}
@media (max-width: 700px) {
  .about-img-float { float: none; max-width: 100%; margin: 0 0 20px; }
}
#fb-embed-placeholder {
  display: block;
  height: 500px;
  overflow-y: auto;
  align-items: stretch;
}
/* Instagram's embed, unlike Facebook's, often only renders a plain
   fallback button (see .instagram-media rules above) instead of a full
   post card. A fixed height here left a large empty gap below the
   button, since block/stretch layout doesn't center short content
   vertically. Auto height + centering lets the box fit whatever it
   actually renders — a short fallback button or a full hydrated post. */
#ig-embed-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 200px;
  max-height: 500px;
  overflow-y: auto;
}

/* Cards - flattened to match the site's plain, borderless content blocks */
.card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  padding: 22px 0 0;
}
.card h3 {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  margin-top: 0;
}
.card p { text-align: left; }
.card ul { padding-left: 20px; margin: 10px 0; }
.card li { margin-bottom: 8px; }

.card-image {
  position: relative;
  height: 220px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-image img { transform: scale(1.05); }
.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(54,31,40,0.85) 0%, rgba(54,31,40,0.25) 50%, rgba(54,31,40,0) 70%);
}
.card-image-label {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.35rem;
}
.card-image.tall {
  height: 420px;
  margin-bottom: 0;
}
a.card.image-card {
  display: block;
  padding: 0;
  border: none;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.link-list li {
  border-bottom: 1px solid var(--border);
}
.link-list a {
  display: block;
  padding: 14px 4px;
  color: var(--dark);
  font-weight: 600;
}
.link-list a:hover { color: var(--rose); }

.event-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  flex-wrap: wrap;
}
.event-date {
  min-width: 210px;
  font-weight: 700;
  color: var(--dark);
  font-family: var(--body-font);
}

/* Events page: stacked list + calendar toggle (matches live site) */
.page-banner-flex {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--dark);
}
.page-banner-flex h2 {
  margin: 0;
  padding: 0;
  border: none;
}
.calendar-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  color: var(--rose-dark);
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
}
.calendar-toggle-btn:hover { color: var(--dark); }

.event-list {
  max-width: 760px;
}
.event-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.event-row:last-child { border-bottom: none; }
.event-when {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.event-title {
  font-family: var(--body-font);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
}

.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--dark);
  color: #fff;
  padding: 14px 20px;
  border-radius: 6px 6px 0 0;
}
.cal-toolbar h3 {
  margin: 0;
  color: #fff;
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  min-width: 220px;
  text-align: center;
}
.cal-nav {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
}
.cal-nav:hover { color: var(--rose); }
.cal-nav:disabled { opacity: 0.35; cursor: default; }
.cal-nav:disabled:hover { color: #fff; }

.cal-month-table {
  border: 1px solid var(--border);
  border-top: none;
}
.cal-dow-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--rose-light);
}
.cal-dow-row span {
  text-align: center;
  padding: 10px 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  border-right: 1px solid var(--border);
}
.cal-dow-row span:last-child { border-right: none; }

.cal-cells {
  display: grid;
  /* minmax(0, 1fr) rather than a bare 1fr: a plain 1fr track has an
     automatic MINIMUM width equal to its widest cell's min-content (e.g.
     an unbreakable string like "10:00 AM–12:00 PM" — browsers won't break
     a line at an unspaced en dash). With 7 equal fr columns, that one
     wide cell forced its whole column past its fair share, throwing every
     week's row out of alignment and pushing the grid past the edge of the
     phone screen. minmax(0, 1fr) removes that automatic minimum so
     columns actually shrink to fit, and the overflow-wrap additions below
     let the long strings wrap instead of forcing the column wider. */
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.cal-cell {
  min-height: 110px;
  min-width: 0; /* grid items also default to a content-based minimum; without this they can refuse to shrink even once their track can */
  padding: 8px;
  overflow: hidden;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell-num {
  display: block;
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.cal-cell.other-month .cal-cell-num { color: #c9c1ba; font-weight: 400; }
.cal-cell-events {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cal-event {
  display: block;
  font-size: 0.78rem;
  color: var(--rose-dark);
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.cal-event-time { font-weight: 700; }
.cal-event-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.cal-event-note {
  display: block;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .cal-cell { min-height: 70px; font-size: 0.85rem; padding: 5px 4px; }
  .cal-cell-num { font-size: 0.8rem; margin-bottom: 2px; }
  .cal-event, .cal-event-title, .cal-event-note { font-size: 0.66rem; line-height: 1.25; }
  .cal-toolbar h3 { min-width: 0; font-size: 0.85rem; }
}

/* Mass Times & Directions modal (triggered by the floating pill on every page) */
.figure {
  margin: 0 0 20px;
}
.figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 8px;
}

.parish-form {
  max-width: 780px;
  margin-top: 30px;
}
.parish-form h3 {
  margin: 34px 0 14px;
  font-size: 1.3rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.parish-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 18px;
}
.parish-form legend {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  padding: 0;
}
.req { color: var(--rose-dark); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--body-font);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--rose);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}
.form-grid-2 .form-row,
.form-grid-3 .form-row {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
@media (max-width: 700px) {
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}
.radio-label, .checkbox-label {
  display: block;
  font-weight: 400;
  margin-bottom: 8px;
  cursor: pointer;
}
.radio-label.inline, .checkbox-label.inline {
  display: inline-block;
  margin-right: 18px;
}
.radio-label input, .checkbox-label input { margin-right: 6px; }
.dependent-row {
  display: grid;
  grid-template-columns: 1fr 1fr 140px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 700px) {
  .dependent-row { grid-template-columns: 1fr; }
}
.dependent-row .form-row { margin-bottom: 0; }
.remove-dependent-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--rose-dark);
  padding: 9px 12px;
  cursor: pointer;
  font-family: var(--body-font);
}
.remove-dependent-btn:hover { background: var(--rose-light); }
.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 20px 0 4px;
}
.fc-schedule {
  margin: 8px 0 4px;
  border-top: 1px solid var(--border);
}
.fc-schedule-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.fc-schedule-center {
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rose-dark);
  font-size: 0.8rem;
  flex: 0 0 120px;
}
.fc-schedule-time { font-weight: 700; color: var(--text); white-space: nowrap; }
.fc-schedule-detail { color: var(--muted); font-style: italic; }
.parish-form button[type="submit"] { margin-top: 10px; }
.form-status {
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 4px;
  margin: 16px 0 0;
}
.form-status.success { background: #e9f3e9; color: #2b6b2b; }
.form-status.error { background: #fbe9e9; color: #a3312c; }

.callout {
  background: #faf3f1;
  border-left: 3px solid var(--rose);
  padding: 20px 24px;
  margin: 26px 0;
}
.callout p { text-align: left; }
.callout-list {
  margin: 0 0 14px;
  padding-left: 20px;
}
.callout-list:last-child { margin-bottom: 0; }
.callout-list li {
  text-align: left;
  margin-bottom: 8px;
  line-height: 1.55;
}
.callout-list li:last-child { margin-bottom: 0; }

table.schedule {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-family: var(--body-font);
}
table.schedule th, table.schedule td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}
table.schedule th {
  background: var(--dark);
  color: #fff;
  font-weight: 600;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--dark);
  font-family: var(--body-font);
  font-size: 1.1rem;
}
.faq p { margin: 12px 0 0; text-align: left; }

/* Footer */
.give-dots {
  text-align: center;
  color: var(--rose);
  letter-spacing: 10px;
  font-size: 0.8rem;
  margin-bottom: 22px;
}
.scripture-quote {
  border-left: 3px solid var(--rose);
  padding: 4px 24px;
  margin: 24px 0;
}
.scripture-quote p {
  font-style: italic;
  color: var(--muted);
  margin: 0 0 8px;
}
.scripture-quote cite {
  display: block;
  text-align: right;
  font-style: normal;
  font-weight: 600;
  color: var(--rose-dark);
}

.membership-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  margin: 32px 0 0;
  padding: 28px 32px;
  border: 1px solid var(--dark);
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
}
.membership-info h3 {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  color: #fff;
  margin: 0 0 8px;
}
.membership-info p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 480px;
}
.membership-action {
  text-align: center;
  flex-shrink: 0;
}
.membership-price {
  font-family: var(--heading-font);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}
.membership-price span { font-size: 1rem; font-weight: 400; color: rgba(255, 255, 255, 0.7); }
.membership-submit-btn {
  background: #fff;
  color: var(--dark);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.membership-submit-btn:hover { background: var(--rose); color: #fff; }
.membership-submit-btn:disabled { opacity: 0.6; cursor: default; }
#membershipStatus { margin-top: 10px; text-align: left; }
@media (max-width: 700px) {
  .membership-box { flex-direction: column; align-items: stretch; text-align: center; }
  .membership-info p { max-width: none; }
}

.donate-box {
  width: 100%;
  margin: 32px 0;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--sand-light);
  box-shadow: 0 2px 10px rgba(54, 31, 40, 0.06);
}
.donate-box h3 {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  margin: 0 0 6px;
}
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
}
.donate-col { min-width: 0; }
@media (max-width: 700px) {
  .donate-grid { grid-template-columns: 1fr; gap: 0; }
  .donate-col:first-child { margin-bottom: 20px; }
}
.donate-toggle {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
}
.donate-toggle-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: 40px;
  border: 1.5px solid var(--dark);
  background: none;
  color: var(--dark);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.donate-toggle-btn.active { background: var(--dark); color: #fff; }
.donate-frequency {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 18px;
}
.donate-frequency[hidden] { display: none; }
.donate-freq-btn {
  padding: 9px 6px;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}
.donate-freq-btn:hover { border-color: var(--rose); }
.donate-freq-btn.active { border-color: var(--dark); background: var(--dark); color: #fff; }
@media (max-width: 480px) {
  .donate-frequency { grid-template-columns: repeat(2, 1fr); }
}
.donate-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.donate-amount-btn {
  padding: 12px 8px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--dark);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.donate-amount-btn:hover { border-color: var(--rose); }
.donate-amount-btn.active { border-color: var(--dark); background: var(--dark); color: #fff; }
.donate-custom-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.donate-custom-row {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0 12px;
  margin-bottom: 6px;
}
.donate-dollar { color: var(--muted); font-weight: 700; margin-right: 4px; }
.donate-custom-row input {
  border: none;
  outline: none;
  padding: 12px 0;
  font-size: 1rem;
  width: 100%;
  background: none;
}
.donate-submit-btn {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  cursor: pointer;
  margin-top: 16px;
}
.donate-submit-btn:disabled { opacity: 0.6; cursor: default; }
.donate-secure-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 14px 0 0;
}

/* "Cover the processing fee" checkbox, used in both the light donate box
   and the dark membership box — base styles target the light context,
   the .membership-box override below adjusts colors for the dark one. */
.fee-cover-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  margin-top: 16px;
  cursor: pointer;
  background: #fff;
}
.fee-cover-box:hover { border-color: var(--rose); }
.fee-cover-box:has(input:checked) {
  border-color: var(--rose);
  background: #faf3f1;
}
.fee-cover-box input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--rose-dark);
  cursor: pointer;
}
.fee-cover-text { display: flex; flex-direction: column; gap: 2px; }
.fee-cover-label { font-weight: 700; font-size: 0.92rem; color: var(--dark); }
.fee-cover-note { font-size: 0.8rem; color: var(--muted); }

.membership-box .fee-cover-box {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  margin-top: 14px;
  text-align: left;
}
.membership-box .fee-cover-box:hover { border-color: #fff; }
.membership-box .fee-cover-box:has(input:checked) {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.membership-box .fee-cover-label { color: #fff; }
.membership-box .fee-cover-note { color: rgba(255, 255, 255, 0.7); }
.give-secondary-grid { margin-top: 8px; }
.mail-address {
  line-height: 1.7;
  border-left: 2px solid var(--rose);
  padding-left: 14px;
  margin-top: 12px;
}
.mail-address strong {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  color: var(--dark);
}
.card-phone-link {
  display: inline-block;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--rose-dark);
  margin-top: 4px;
}
@media (max-width: 640px) {
  .donate-amounts { grid-template-columns: repeat(2, 1fr); }
}
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.gallery-grid-item {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.gallery-grid-item:hover img { transform: scale(1.05); }
#viewAlbumBtn { margin-top: 20px; }
@media (max-width: 900px) {
  .gallery-preview { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .gallery-preview { grid-template-columns: repeat(2, 1fr); }
}

.gallery-slideshow {
  max-width: 820px;
  margin: 24px auto 0;
}
.gallery-slideshow-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f0ece4;
}
.gallery-slideshow-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
}
.gallery-slideshow-arrow:hover { background: rgba(0, 0, 0, 0.55); }
.gallery-slideshow-prev { left: 12px; }
.gallery-slideshow-next { right: 12px; }
.gallery-cta { text-align: center; margin-top: 20px; }
@media (max-width: 640px) {
  .gallery-slideshow-arrow { width: 36px; height: 36px; font-size: 1.6rem; }
}

.gallery-grid-full {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 20px 0;
}
@media (max-width: 1000px) {
  .gallery-grid-full { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .gallery-grid-full { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

.gallery-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 14, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox-overlay[hidden] { display: none; }
.gallery-lightbox-content {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gallery-lightbox-content img {
  max-width: 90vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 4px;
}
.gallery-lightbox-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
  color: #fff;
}
.gallery-lightbox-bar .btn { padding: 8px 18px; font-size: 0.9rem; }
.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}
.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
}
.gallery-lightbox-nav:hover { background: rgba(255, 255, 255, 0.25); }
.gallery-lightbox-prev { left: 18px; }
.gallery-lightbox-next { right: 18px; }
@media (max-width: 640px) {
  .gallery-lightbox-nav { width: 42px; height: 42px; font-size: 2rem; }
  .gallery-lightbox-prev { left: 6px; }
  .gallery-lightbox-next { right: 6px; }
  .gallery-lightbox-close { top: 10px; right: 14px; }
}


@media (max-width: 900px) { .page-banner h2 { font-size: 1.9rem; } }

/* Footer */
footer.site-footer {
  background: var(--maroon-dark);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 0;
}
footer.site-footer a { color: rgba(255,255,255,0.85); }
footer.site-footer a:hover { color: #fff; }
footer.site-footer p { text-align: left; }
.footer-logo { width: 60px; height: 60px; margin-bottom: 12px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
}
footer.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 18px 0;
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Mass Times & Directions modal */
.mt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46,36,34,0.6);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.mt-modal-overlay[hidden] { display: none; }
.mt-modal {
  background: #fff;
  border-radius: 10px;
  max-width: 900px;
  width: 100%;
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mt-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.mt-modal-header h3 { margin: 0; font-size: 1.3rem; color: var(--maroon-dark); }
.mt-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}
.mt-modal-close:hover { color: var(--maroon); }
.mt-modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.mt-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 3px solid transparent;
}
.mt-tab.active { color: var(--maroon-dark); border-bottom-color: var(--maroon); }
.mt-modal-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  overflow-y: auto;
}
.mt-modal-content { padding: 20px 24px; }
.mt-modal-content h4 { font-size: 1rem; color: var(--maroon-dark); margin: 18px 0 10px; }
.mt-modal-content h4:first-child { margin-top: 0; }
.mt-row {
  display: grid;
  grid-template-columns: 110px 110px 1fr;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.92rem;
  align-items: baseline;
}
.mt-day { font-weight: 600; }
.mt-time { color: var(--maroon-dark); font-weight: 600; }
.mt-detail { color: var(--muted); }
.mt-event-name { font-weight: 700; margin: 0 0 6px; }
.mt-note { font-size: 0.88rem; color: var(--muted); }
.mt-schedule-btn { margin-top: 8px; }
.mt-modal-side {
  background: var(--sand-light);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mt-modal-actions { display: flex; flex-direction: column; gap: 10px; }
.mt-modal-note { font-size: 0.85rem; color: var(--muted); margin: 0; }

@media (max-width: 700px) {
  .mt-modal-body { grid-template-columns: 1fr; }
  .mt-row { grid-template-columns: 90px 90px 1fr; font-size: 0.85rem; }
}

/* About page */
.about-hero-img { width: 100%; aspect-ratio: 1919 / 480; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); margin: 0 0 40px; }
.about-text { max-width: 820px; margin: 0 auto; }
.saint-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 36px; display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.saint-img { width: 100%; border-radius: 8px; border: 1px solid var(--border); }
.saint-more summary { cursor: pointer; color: var(--maroon); font-weight: 600; margin: 4px 0 12px; }
.source-note { font-size: 0.85rem; color: var(--muted); }
.visit-block { background: var(--sand-light); }
.visit-grid .card { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--gold); border-radius: 8px; padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 4px; }
.visit-grid .card .btn, .visit-grid .card .btn-outline { margin-top: auto; align-self: flex-start; }
.visit-grid .card p, .visit-grid .card ul { margin: 6px 0 18px; }
@media (max-width: 900px) {
  .saint-card { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .saint-img { max-width: 260px; }
  .about-hero-img { aspect-ratio: 16 / 9; }
}

/* Keep the fixed social bar from covering content on narrower screens */
@media (max-width: 1280px) { .social-rail { display: none; } }
section.block.saint-block { padding-top: 0; }
.about-text p:last-child { margin-bottom: 0; }
.visit-row { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.visit-row:first-of-type { padding-top: 4px; }
.v-day { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--gold); }
.v-time { font-family: var(--heading-font); font-size: 1.2rem; font-weight: 600; color: var(--maroon-dark); }
.v-note { font-size: 0.95rem; color: var(--muted); line-height: 1.4; }
.visit-grid .card .btn, .visit-grid .card .btn-outline { margin-top: 22px; }

/* Tighter schedule rows: day and time share one line */
.visit-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; row-gap: 0; padding: 9px 0; }
.visit-row:first-of-type { padding-top: 2px; }
.visit-row:last-of-type { border-bottom: 0; }
.v-day { font-size: 0.7rem; }
.v-time { font-size: 1.05rem; text-align: right; }
.v-note { grid-column: 1 / -1; font-size: 0.88rem; line-height: 1.35; margin-top: 1px; }
.visit-grid .card { padding: 22px 22px 24px; }
.visit-grid .card h3 { margin-bottom: 8px; }
.visit-grid .card .btn, .visit-grid .card .btn-outline { margin-top: 14px; padding: 10px 22px; }
.visit-grid .card .btn { margin-top: auto; }
.visit-grid .card .visit-row:last-of-type { margin-bottom: 16px; }

/* Footer: line the Quick Links / Connect headings up with the church name (below the seal) */
@media (min-width: 901px) {
  .footer-grid > div:not(:first-child) { padding-top: 60px; }
}

/* Page title sits directly on the cream page, no colored band */
.page-banner { background: none; border-bottom: 0; padding: 44px 0 8px; }
.page-banner h2::after { margin-bottom: 0; }

/* One continuous cream page: no alternating colored bands between sections.
   (The About page's "Plan Your Visit" band uses .visit-block, so it keeps its color.) */
section.block.alt, .block.alt { background: none; }
section.block + section.block:not(.visit-block):not(.saint-block) { padding-top: 12px; }
