:root {
  --ivory: #F4F1EA;
  --white: #FFFFFF;
  --navy: #0D233A;
  --maroon: #8B1E2E;
  --gold: #D0B27A;
  --gold-tint: #FBF6E8;
  --text: #1F2933;
  --muted: #5B6470;
  --border: #E4DED3;

  --st-ann-tint: #F8E9EC;
  --olph-tint: #EAF0F7;
  --mos-tint: #FBF6E8;
}

/* Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.6;
}

a {
  color: var(--navy);
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--white);
  color: var(--navy);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
}

/* Parish color system */
.parish-st-ann {
  --parish-color: var(--maroon);
  --parish-tint: var(--st-ann-tint);
}

.parish-olph {
  --parish-color: var(--navy);
  --parish-tint: var(--olph-tint);
}

.parish-mos {
  --parish-color: var(--gold);
  --parish-tint: var(--mos-tint);
}

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
}

.utility-bar {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.18);
  flex-wrap: wrap;
}

.utility-bar a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.utility-bar .utility-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 700;
}

.main-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.site-logo {
  color: var(--white);
  text-decoration: none;
}

.logo-title {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
}

.logo-subtitle {
  display: block;
  font-size: 0.9rem;
  color: #E9EEF5;
}

.main-nav nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.main-nav nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
}

.main-nav nav a:hover,
.main-nav nav a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Parish selector */
.parish-selector {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem 1rem;
  display: grid;
  gap: 0.65rem;
}

.parish-select-link {
  display: grid;
  gap: 0.15rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-left: 6px solid var(--parish-color);
  border-radius: 0.85rem;
  padding: 0.75rem 0.9rem;
  color: var(--white);
}

.parish-select-link strong {
  color: var(--white);
  font-size: 0.98rem;
  line-height: 1.15;
}

.parish-select-link span {
  color: #E9EEF5;
  font-size: 0.85rem;
}

.parish-select-link.parish-olph {
  border-color: rgba(255, 255, 255, 0.34);
  border-left-color: #B9C8D8;
  box-shadow:
    inset 5px 0 0 var(--navy),
    0 0 0 1px rgba(255, 255, 255, 0.18);
}

.parish-select-link.parish-olph:hover,
.parish-select-link.parish-olph:focus-visible {
  border-left-color: var(--gold);
  box-shadow:
    inset 5px 0 0 var(--gold),
    0 10px 24px rgba(0, 0, 0, 0.22);
}

/* Hero */
.hero {
  background: linear-gradient(rgba(13, 35, 58, 0.78), rgba(13, 35, 58, 0.78)), var(--navy);
  color: var(--white);
  padding: 5rem 1rem;
}

.hero-content {
  max-width: 960px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero p {
  max-width: 680px;
  font-size: 1.2rem;
}

.eyebrow {
  color: var(--maroon);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.hero .eyebrow {
  color: var(--gold);
}

/* Buttons */
.hero-actions,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button,
.quick-links a {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.button-secondary,
.quick-links a {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border);
}

.button-small {
  background: var(--navy);
  color: var(--white);
  padding: 0.65rem 0.9rem;
}

.button-small-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
}

/* Global motion and interaction */
.button,
.quick-links a,
.utility-bar a,
.parish-select-link,
.main-nav nav a,
.mass-card,
.daily-row,
.schedule-mini-row {
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.button:hover,
.button:focus-visible,
.quick-links a:hover,
.quick-links a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(13, 35, 58, 0.16);
}

.button-primary:hover,
.button-primary:focus-visible,
.button-small:hover,
.button-small:focus-visible,
.utility-bar .utility-primary:hover,
.utility-bar .utility-primary:focus-visible {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.quick-links a:hover,
.quick-links a:focus-visible {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.utility-bar a:hover,
.utility-bar a:focus-visible {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-1px);
}

.parish-select-link:hover,
.parish-select-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

/* Sections */
.quick-start {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 2rem 1rem;
}

.quick-start h2,
.quick-links {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.section-light {
  max-width: none;
  background: var(--white);
}

.section-light > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2,
.card h2 {
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin: 0.25rem 0;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(13, 35, 58, 0.08);
}

.card h3 {
  color: var(--maroon);
  margin-top: 0;
}

.schedule-grid,
.parish-cards,
.two-column,
.three-column {
  display: grid;
  gap: 1rem;
}

/* Parish cards */
.parish-image-fallback {
  min-height: 180px;
  border-radius: 0.75rem;
  background: var(--ivory);
  border: 1px dashed var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  margin-bottom: 1rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Interior pages */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 1rem;
}

.page-header-with-image {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 22rem;
  display: grid;
  align-items: center;
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(10, 31, 52, 0.98) 0%, rgba(10, 31, 52, 0.90) 40%, rgba(10, 31, 52, 0.38) 72%, rgba(10, 31, 52, 0.18) 100%),
    var(--page-header-image);
  background-position: center;
  background-size: cover;
}

.page-header > div {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.page-header-with-image > div {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0;
}

.page-intro {
  max-width: 680px;
  color: #E9EEF5;
  font-size: 1.15rem;
}

@media (max-width: 720px) {
  .page-header-with-image {
    min-height: 19rem;
    background-image:
      linear-gradient(90deg, rgba(10, 31, 52, 0.97) 0%, rgba(10, 31, 52, 0.86) 72%, rgba(10, 31, 52, 0.58) 100%),
      var(--page-header-image);
    background-position: center, var(--page-header-mobile-position, 64% center);
    background-size: 100% 100%, var(--page-header-mobile-size, cover);
  }
}

.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 1rem;
  background: var(--ivory);
}

.page-content h2 {
  color: var(--navy);
  margin-top: 2rem;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--white);
}

.page-content th,
.page-content td {
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
}

.page-content th {
  background: var(--navy);
  color: var(--white);
}

.page-content a {
  font-weight: 700;
}

/* Mass page */
.source-note {
  background: var(--white);
  border-left: 6px solid var(--gold);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(13, 35, 58, 0.06);
}

.mass-card-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mass-card {
  background: linear-gradient(180deg, var(--parish-tint), var(--white) 52%);
  border: 2px solid var(--parish-color);
  border-top-width: 10px;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 28px rgba(13, 35, 58, 0.10);
}

.mass-card.parish-mos {
  border-color: var(--gold);
  box-shadow:
    inset 0 0 0 1px rgba(13, 35, 58, 0.12),
    0 10px 28px rgba(13, 35, 58, 0.10);
}

.mass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(13, 35, 58, 0.14);
}

.mass-card.parish-olph:hover,
.mass-card.parish-olph:focus-within {
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-tint), var(--white) 52%);
}

.mass-day {
  color: var(--parish-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}

.mass-card.parish-mos .mass-day {
  color: var(--navy);
}

.mass-time {
  color: var(--navy);
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1;
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.mass-card h3 {
  color: var(--navy);
  font-size: 1.35rem;
  margin: 0;
}

.mass-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

/* Daily Mass schedule */
.daily-schedule {
  display: grid;
  gap: 0.85rem;
  max-width: 1080px;
}

.daily-row {
  background: linear-gradient(90deg, var(--parish-tint), var(--white) 38%);
  border: 2px solid var(--border);
  border-left: 10px solid var(--parish-color);
  border-radius: 0.85rem;
  padding: 1.1rem 1.25rem;
  display: grid;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(13, 35, 58, 0.06);
}

.daily-row.parish-mos {
  border-left-color: var(--gold);
}

.daily-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(13, 35, 58, 0.10);
}

.daily-row.parish-olph:hover {
  border-left-color: var(--gold);
  background: linear-gradient(90deg, var(--gold-tint), var(--white) 42%);
}

.daily-day {
  color: var(--parish-color);
  font-weight: 800;
  font-size: 1.1rem;
}

.daily-row.parish-mos .daily-day {
  color: var(--navy);
}

.daily-time {
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 900;
}

.daily-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-weight: 700;
}

.location-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: var(--parish-color);
  flex: 0 0 auto;
}

.parish-mos .location-dot {
  background: var(--gold);
  border: 1px solid var(--navy);
}

/* Confession, Adoration, Rosary */
.schedule-card-grid {
  align-items: stretch;
}

.clean-schedule-card {
  border: 2px solid var(--border);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(13, 35, 58, 0.08);
}

.clean-schedule-card h3 {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--navy);
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
}

.schedule-mini-list {
  display: grid;
  gap: 0.75rem;
}

.schedule-mini-row {
  background: linear-gradient(90deg, var(--parish-tint), var(--white) 42%);
  border: 2px solid var(--border);
  border-left: 10px solid var(--parish-color);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.5rem;
}

.schedule-mini-row.parish-mos {
  border-left-color: var(--gold);
}

.schedule-mini-row.parish-olph:hover {
  border-left-color: var(--gold);
  background: linear-gradient(90deg, var(--gold-tint), var(--white) 42%);
}

.schedule-mini-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(13, 35, 58, 0.08);
}

.schedule-mini-row strong {
  color: var(--text);
  font-size: 1rem;
}

.schedule-mini-row span {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.schedule-mini-row p {
  color: var(--navy);
  font-weight: 800;
  margin: 0;
}

.before-you-go-card {
  border: 2px solid var(--gold);
  box-shadow:
    inset 0 0 0 1px rgba(13, 35, 58, 0.12),
    0 10px 28px rgba(13, 35, 58, 0.09);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 2rem 1rem;
  text-align: center;
}

/* Accessibility */
.button:focus-visible,
.quick-links a:focus-visible,
.utility-bar a:focus-visible,
.parish-select-link:focus-visible,
.main-nav nav a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Responsive */
@media (min-width: 760px) {
  .main-nav {
    grid-template-columns: minmax(300px, 0.95fr) minmax(520px, 1.6fr);
    align-items: center;
  }

  .main-nav nav ul {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .parish-selector,
  .mass-card-grid,
  .parish-cards,
  .three-column {
    grid-template-columns: repeat(3, 1fr);
  }

  .two-column {
    grid-template-columns: repeat(2, 1fr);
  }

  .daily-row {
    grid-template-columns: minmax(160px, 1fr) 150px minmax(320px, 1.4fr);
    align-items: center;
    gap: 1.5rem;
  }

  .daily-time {
    justify-self: center;
    text-align: center;
    min-width: 120px;
  }

  .daily-location {
    justify-self: end;
    min-width: 300px;
  }

  .schedule-mini-row {
    grid-template-columns: 1fr minmax(135px, auto);
    align-items: center;
  }

  .schedule-mini-row p {
    text-align: right;
  }
}

@media (min-width: 1100px) {
  .main-nav nav ul {
    gap: 1.25rem;
  }

  .schedule-mini-row {
    grid-template-columns: 1fr 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .quick-links a,
  .utility-bar a,
  .parish-select-link,
  .main-nav nav a,
  .mass-card,
  .daily-row,
  .schedule-mini-row {
    transition: none;
  }

  .button:hover,
  .button:focus-visible,
  .quick-links a:hover,
  .quick-links a:focus-visible,
  .utility-bar a:hover,
  .utility-bar a:focus-visible,
  .parish-select-link:hover,
  .parish-select-link:focus-visible,
  .main-nav nav a:hover,
  .main-nav nav a:focus-visible,
  .mass-card:hover,
  .daily-row:hover,
  .schedule-mini-row:hover {
    transform: none;
  }
}

/* Contact page */
.contact-layout {
  display: grid;
  gap: 1rem;
}

.contact-card h2 {
  margin-top: 0;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-list p {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-left: 6px solid var(--gold);
  border-radius: 0.75rem;
  margin: 0;
  padding: 1rem;
}

.contact-list strong,
.contact-list span,
.contact-list a {
  display: block;
}

.contact-list strong {
  color: var(--navy);
}

.contact-list a {
  font-weight: 800;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 1rem;
  text-align: left;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  margin-top: 0;
}

.site-footer a {
  color: var(--gold);
  font-weight: 800;
}

.footer-note {
  color: #E9EEF5;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 760px) {
  .contact-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

/* Footer refinement: smaller text, cleaner wrapping */
.site-footer {
  font-size: 0.92rem;
  line-height: 1.45;
}

.site-footer h2 {
  font-size: 1.15rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.site-footer h3 {
  font-size: 0.95rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer p {
  margin: 0 0 0.65rem;
}

.footer-note {
  font-size: 0.88rem;
  max-width: 32rem;
}

.footer-links a {
  display: inline-block;
  padding: 0.15rem 0;
}

.footer-grid {
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1020px) {
  .footer-grid {
    grid-template-columns: 1.25fr 1fr 1fr 0.9fr;
    gap: 2rem;
  }
}

/* Parish pages */
.parish-page-card {
  border: 2px solid var(--border);
  border-top: 10px solid var(--parish-color);
  background: linear-gradient(180deg, var(--parish-tint), var(--white) 42%);
}

.parish-page-card.parish-mos {
  border-top-color: var(--gold);
}

.parish-page-card h2 {
  color: var(--navy);
  margin-top: 0;
}

.parish-page-header {
  background:
    linear-gradient(rgba(13, 35, 58, 0.86), rgba(13, 35, 58, 0.86)),
    var(--navy);
  border-bottom: 8px solid var(--parish-color);
}

.parish-page-header.parish-mos {
  border-bottom-color: var(--gold);
}

.parish-address-box {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-left: 6px solid var(--gold);
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 1rem 0;
}

.parish-address-box strong,
.parish-address-box span {
  display: block;
}

.parish-address-box strong {
  color: var(--navy);
}

.parish-schedule-list {
  display: grid;
  gap: 0.75rem;
}

.parish-schedule-row {
  display: grid;
  gap: 0.25rem;
  background: linear-gradient(90deg, var(--parish-tint), var(--white) 42%);
  border: 2px solid var(--border);
  border-left: 10px solid var(--parish-color);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
}

.parish-schedule-row.parish-mos {
  border-left-color: var(--gold);
}

.parish-schedule-row strong {
  color: var(--text);
}

.parish-schedule-row span {
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 900;
}

@media (min-width: 760px) {
  .parish-detail-layout {
    align-items: start;
  }

  .parish-schedule-row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* Parish selector heading link */
.parish-selector-heading {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}

.parish-selector-heading a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.parish-selector-heading a:hover,
.parish-selector-heading a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.parish-selector-heading span {
  color: #E9EEF5;
  font-size: 0.9rem;
}

/* Make Our Parishes cards line up better */
.parish-page-card {
  display: flex;
  flex-direction: column;
}

.parish-page-card .parish-image-fallback {
  min-height: 190px;
}

.parish-page-card h2 {
  min-height: 2.4em;
  display: flex;
  align-items: flex-end;
}

.parish-page-card > p:not(.eyebrow) {
  min-height: 4.75rem;
}

.parish-page-card .parish-address-box {
  margin-top: 0;
}

.parish-page-card .card-actions {
  margin-top: auto;
}

/* Keep buttons consistent on parish cards */
.parish-page-card .card-actions .button {
  text-align: center;
}

@media (max-width: 759px) {
  .parish-page-card h2,
  .parish-page-card > p:not(.eyebrow) {
    min-height: auto;
  }
}

/* Parish page cards: stack action buttons for cleaner spacing */
.parish-page-card .card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: auto;
}

.parish-page-card .card-actions .button {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Keep homepage parish card buttons flexible unless they become crowded */
@media (min-width: 760px) {
  .parish-page-card .card-actions {
    grid-template-columns: 1fr;
  }
}

/* Color-code address boxes by parish */
.parish-page-card .parish-address-box,
.parish-detail-card .parish-address-box {
  border-left-color: var(--parish-color);
  background: linear-gradient(90deg, var(--parish-tint), var(--ivory) 42%);
}

.parish-page-card.parish-mos .parish-address-box,
.parish-detail-card.parish-mos .parish-address-box {
  border-left-color: var(--gold);
}

.parish-page-card .parish-address-box strong,
.parish-detail-card .parish-address-box strong {
  color: var(--navy);
}

/* Color-code parish city labels */
.parish-page-card .eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  background: var(--parish-tint);
  border: 1px solid var(--parish-color);
  color: var(--parish-color);
}

/* Gold text on ivory is too low contrast, so Mother of Sorrows uses navy text with gold accent */
.parish-page-card.parish-mos .eyebrow {
  color: var(--navy);
  border-color: var(--gold);
  background: var(--gold-tint);
}

/* OLPH city label needs a slightly clearer edge */
.parish-page-card.parish-olph .eyebrow {
  border-color: var(--navy);
  color: var(--navy);
}

/* Bulletins page */
.bulletin-feature-card {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, var(--gold-tint), var(--white) 48%);
}

.office-note {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-left: 6px solid var(--gold);
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 1rem 0;
}

.office-note code {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--navy);
  overflow-wrap: anywhere;
}

/* Balanced two-column cards */
.two-column {
  align-items: stretch;
}

.two-column > .card {
  display: flex;
  flex-direction: column;
}

.two-column > .card .button {
  margin-top: auto;
  width: fit-content;
}

/* Bulletin page card balance */
.bulletin-feature-card,
.before-you-go-card {
  min-height: 320px;
}

.bulletin-feature-card h2,
.before-you-go-card h2 {
  margin-bottom: 1rem;
}

.bulletin-feature-card p,
.before-you-go-card p {
  max-width: 38rem;
}

/* Keep mobile natural */
@media (max-width: 759px) {
  .bulletin-feature-card,
  .before-you-go-card {
    min-height: auto;
  }

  .two-column > .card .button {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
  }
}

/* Card title row with date chip */
.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-title-row h2 {
  margin-bottom: 0;
}

.date-chip {
  flex: 0 0 auto;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.55rem 0.75rem;
  white-space: nowrap;
}

@media (max-width: 759px) {
  .card-title-row {
    display: grid;
    gap: 0.75rem;
  }

  .date-chip {
    width: fit-content;
  }
}

/* New Here page */
.welcome-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.welcome-card .button {
  margin-top: auto;
  width: fit-content;
}

.info-grid {
  display: grid;
  gap: 1rem;
}

.info-card {
  border-left: 8px solid var(--gold);
}

.info-card h3 {
  margin-top: 0;
  color: var(--navy);
}

.info-card p {
  margin-bottom: 0;
}

@media (min-width: 760px) {
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .welcome-card {
    min-height: auto;
  }

  .welcome-card .button {
    width: 100%;
    text-align: center;
  }
}

/* New Here: visitor-friendly weekend Mass cards */
.visit-location-grid {
  display: grid;
  gap: 1rem;
}

.visit-location-card {
  display: grid;
  gap: 1rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-left: 10px solid var(--parish-color);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
}

.visit-location-card.parish-mos {
  border-left-color: var(--gold);
}

.visit-day {
  margin: 0 0 0.35rem;
  color: var(--maroon);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visit-location-card.parish-olph .visit-day {
  color: var(--navy);
}

.visit-location-card.parish-mos .visit-day {
  color: var(--navy);
}

.visit-location-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1;
}

.visit-location-details {
  background: var(--parish-tint);
  border-radius: 0.85rem;
  padding: 0.85rem;
}

.visit-location-card.parish-mos .visit-location-details {
  background: var(--gold-tint);
}

.visit-parish {
  margin: 0 0 0.2rem;
  color: var(--navy);
  font-weight: 900;
}

.visit-location-details p:last-child {
  margin: 0;
}

@media (min-width: 760px) {
  .visit-location-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .visit-location-card {
    align-content: space-between;
    min-height: 220px;
  }
}

/* Becoming Catholic page */
.before-you-go-card {
  display: flex;
  flex-direction: column;
}

.before-you-go-card .button {
  margin-top: auto;
  width: fit-content;
}

@media (max-width: 759px) {
  .before-you-go-card .button {
    width: 100%;
    text-align: center;
  }
}

/* Sacraments page */
.sacrament-feature-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.sacrament-feature-card .button {
  margin-top: auto;
  width: fit-content;
}

.sacrament-grid {
  display: grid;
  gap: 1rem;
}

.sacrament-card {
  display: flex;
  flex-direction: column;
  border-left: 8px solid var(--gold);
}

.sacrament-card:nth-child(3n + 1) {
  border-left-color: var(--maroon);
  background: linear-gradient(180deg, var(--st-ann-tint), var(--white) 38%);
}

.sacrament-card:nth-child(3n + 2) {
  border-left-color: var(--navy);
  background: linear-gradient(180deg, var(--olph-tint), var(--white) 38%);
}

.sacrament-card:nth-child(3n + 3) {
  border-left-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-tint), var(--white) 38%);
}

.sacrament-card .button {
  margin-top: auto;
  width: fit-content;
}

@media (min-width: 760px) {
  .sacrament-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .sacrament-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .sacrament-feature-card {
    min-height: auto;
  }

  .sacrament-feature-card .button,
  .sacrament-card .button {
    width: 100%;
    text-align: center;
  }
}

/* Center the final Sacrament card when the last row is incomplete */
@media (min-width: 1100px) {
  .sacrament-grid .sacrament-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

@media (min-width: 760px) and (max-width: 1099px) {
  .sacrament-grid .sacrament-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 1rem) / 2);
    justify-self: center;
  }
}

/* Sacraments: Anointing of the Sick should use the blue/navy treatment */
.sacrament-grid .sacrament-card:last-child {
  border-left-color: var(--navy);
  background: linear-gradient(180deg, var(--olph-tint), var(--white) 38%);
}

/* Faith Formation page */
.faith-feature-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.faith-feature-card .button {
  margin-top: auto;
  width: fit-content;
}

.formation-grid {
  display: grid;
  gap: 1rem;
}

.formation-card {
  display: flex;
  flex-direction: column;
  border-left: 8px solid var(--gold);
}

.formation-card:nth-child(4n + 1) {
  border-left-color: var(--maroon);
  background: linear-gradient(180deg, var(--st-ann-tint), var(--white) 38%);
}

.formation-card:nth-child(4n + 2) {
  border-left-color: var(--navy);
  background: linear-gradient(180deg, var(--olph-tint), var(--white) 38%);
}

.formation-card:nth-child(4n + 3) {
  border-left-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-tint), var(--white) 38%);
}

.formation-card:nth-child(4n + 4) {
  border-left-color: var(--maroon);
}

.formation-card .button {
  margin-top: auto;
  width: fit-content;
}

@media (min-width: 760px) {
  .formation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .faith-feature-card {
    min-height: auto;
  }

  .faith-feature-card .button,
  .formation-card .button {
    width: 100%;
    text-align: center;
  }
}

/* Parish Life page */
.parish-life-feature-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.parish-life-feature-card .button {
  margin-top: auto;
  width: fit-content;
}

.parish-life-grid {
  display: grid;
  gap: 1rem;
}

.parish-life-card {
  display: flex;
  flex-direction: column;
  border-left: 8px solid var(--gold);
}

.parish-life-card:nth-child(4n + 1) {
  border-left-color: var(--maroon);
  background: linear-gradient(180deg, var(--st-ann-tint), var(--white) 38%);
}

.parish-life-card:nth-child(4n + 2) {
  border-left-color: var(--navy);
  background: linear-gradient(180deg, var(--olph-tint), var(--white) 38%);
}

.parish-life-card:nth-child(4n + 3) {
  border-left-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-tint), var(--white) 38%);
}

.parish-life-card:nth-child(4n + 4) {
  border-left-color: var(--maroon);
}

.parish-life-card .button {
  margin-top: auto;
  width: fit-content;
}

@media (min-width: 760px) {
  .parish-life-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .parish-life-feature-card {
    min-height: auto;
  }

  .parish-life-feature-card .button,
  .parish-life-card .button {
    width: 100%;
    text-align: center;
  }
}

/* Parish Life spacing refinement */
.parish-life-update-section {
  padding-top: 1.5rem;
}

.parish-life-update-card {
  min-height: auto;
}

.parish-life-update-card .button {
  margin-top: 1rem;
}

/* Faith Formation card on Parish Life should use the red treatment */
.parish-life-card:nth-child(4n + 4) {
  border-left-color: var(--maroon);
  background: linear-gradient(180deg, var(--st-ann-tint), var(--white) 38%);
}

/* Catholic Links page */
.catholic-links-section {
  padding-bottom: 1.5rem;
}

.catholic-links-grid {
  display: grid;
  gap: 1rem;
}

.catholic-link-card {
  display: flex;
  flex-direction: column;
  border-left: 8px solid var(--gold);
}

.catholic-link-card:nth-child(3n + 1) {
  border-left-color: var(--maroon);
  background: linear-gradient(180deg, var(--st-ann-tint), var(--white) 38%);
}

.catholic-link-card:nth-child(3n + 2) {
  border-left-color: var(--navy);
  background: linear-gradient(180deg, var(--olph-tint), var(--white) 38%);
}

.catholic-link-card:nth-child(3n + 3) {
  border-left-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-tint), var(--white) 38%);
}

.catholic-link-card h3 {
  margin-top: 0;
  color: var(--navy);
}

.catholic-link-card .button {
  margin-top: auto;
  width: fit-content;
}

@media (min-width: 760px) {
  .catholic-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .catholic-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .catholic-link-card .button {
    width: 100%;
    text-align: center;
  }
}

/* Giving page */
.giving-feature-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
}

.giving-feature-card .button {
  margin-top: auto;
  width: fit-content;
}

.giving-grid {
  display: grid;
  gap: 1rem;
}

.giving-card {
  display: flex;
  flex-direction: column;
  border-left: 8px solid var(--gold);
}

.giving-card:nth-child(3n + 1) {
  border-left-color: var(--maroon);
  background: linear-gradient(180deg, var(--st-ann-tint), var(--white) 38%);
}

.giving-card:nth-child(3n + 2) {
  border-left-color: var(--navy);
  background: linear-gradient(180deg, var(--olph-tint), var(--white) 38%);
}

.giving-card:nth-child(3n + 3) {
  border-left-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-tint), var(--white) 38%);
}

.giving-card .button {
  margin-top: auto;
  width: fit-content;
}

.giving-note-card {
  min-height: auto;
}

.giving-note-card .button {
  margin-top: 1rem;
}

.giving-primary-grid .parish-st-ann {
  border-left-color: var(--maroon);
  background: linear-gradient(180deg, var(--st-ann-tint), var(--white) 42%);
}

.giving-appeal-action {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.giving-appeal-action .button {
  text-align: center;
}

@media (min-width: 760px) {
  .giving-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .giving-feature-card {
    min-height: auto;
  }

  .giving-feature-card .button,
  .giving-card .button,
  .giving-appeal-action .button {
    width: 100%;
    text-align: center;
  }
}

/* Fix bottom note cards: let text use the available card width */
.before-you-go-card p {
  max-width: none;
}

.before-you-go-card h2 {
  max-width: none;
}

/* Parish history */
.established-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: var(--parish-tint);
  border: 1px solid var(--parish-color);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 900;
}

.parish-mos .established-chip {
  background: var(--gold-tint);
  border-color: var(--gold);
}

.parish-history {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.parish-history h2 {
  margin-top: 0;
}

.history-source-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* Parish history */
.established-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: var(--parish-tint);
  border: 1px solid var(--parish-color);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 900;
}

.parish-mos .established-chip {
  background: var(--gold-tint);
  border-color: var(--gold);
}

.parish-history {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.parish-history h2 {
  margin-top: 0;
}

.history-source-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* Restore parish detail Mass/prayer schedule formatting */
.parish-detail-card .simple-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.parish-detail-card .simple-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--parish-tint);
  border: 1px solid var(--border);
  border-left: 5px solid var(--parish-color);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
}

.parish-detail-card.parish-mos .simple-list-row {
  background: var(--gold-tint);
  border-left-color: var(--gold);
}

.parish-detail-card .simple-list-row strong {
  color: var(--navy);
  font-weight: 900;
}

.parish-detail-card .simple-list-row span {
  color: var(--navy);
  font-weight: 900;
  white-space: nowrap;
}

/* Keep parish detail buttons from floating awkwardly */
.parish-detail-card > .button {
  margin-top: 0.25rem;
  width: fit-content;
}

@media (max-width: 759px) {
  .parish-detail-card .simple-list-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .parish-detail-card .simple-list-row span {
    white-space: normal;
  }

  .parish-detail-card > .button {
    width: 100%;
    text-align: center;
  }
}

/* Parish photos */
.parish-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.95rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.25rem;
  background: var(--ivory);
}

.parish-detail-card.parish-st-ann .parish-photo {
  border-left: 8px solid var(--maroon);
}

.parish-detail-card.parish-olph .parish-photo {
  border-left: 8px solid var(--navy);
}

.parish-detail-card.parish-mos .parish-photo {
  border-left: 8px solid var(--gold);
}

/* Parish photos */
.parish-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.95rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.25rem;
  background: var(--ivory);
}

.parish-detail-card.parish-st-ann .parish-photo {
  border-left: 8px solid var(--maroon);
}

.parish-detail-card.parish-olph .parish-photo {
  border-left: 8px solid var(--navy);
}

.parish-detail-card.parish-mos .parish-photo {
  border-left: 8px solid var(--gold);
}

/* Individual parish pages */
.parish-page-hero {
  min-height: auto;
  padding: 3.25rem 1rem;
}

.parish-page-hero > div {
  max-width: 1180px;
}

.parish-exterior-section {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.parish-exterior-photo {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 70rem;
  aspect-ratio: 3 / 2;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--ivory);
  box-shadow: var(--shadow-soft);
}

.parish-exterior-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.parish-programs-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.parish-program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.parish-program-grid-single {
  grid-template-columns: 1fr;
}

.parish-program-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.parish-program-card h3 {
  margin-bottom: 0.5rem;
}

.parish-program-time {
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--navy);
}

.parish-program-card .cms-rich-text {
  flex: 1;
}

.parish-program-card .card-actions {
  margin-top: auto;
  padding-top: 0.75rem;
}

.parish-program-card .button {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.parish-program-grid-single .parish-program-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 18rem);
  column-gap: 2rem;
  align-items: center;
}

.parish-program-grid-single .parish-program-card > :not(.card-actions) {
  grid-column: 1;
}

.parish-program-grid-single .parish-program-card .card-actions {
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: center;
  margin-top: 0;
  padding-top: 0;
}

.parish-overview-grid {
  align-items: start;
}

.parish-story-section {
  padding-top: 2rem;
}

.parish-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(16rem, 0.7fr);
  gap: 1.25rem;
}

.parish-story-photo {
  margin: 0;
}

.parish-story-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 35rem;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}

.parish-story-photo-wide img {
  aspect-ratio: 16 / 9;
}

.parish-story-photo-detail img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.parish-story-photo figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.parish-prayer-section {
  position: relative;
  overflow: hidden;
}

.parish-prayer-section::before {
  content: "";
  position: absolute;
  inset: 2.5rem auto 2.5rem max(1rem, calc((100% - 1180px) / 2));
  width: 0.3rem;
  border-radius: 999px;
  background: var(--parish-color);
}

.parish-prayer-section.parish-mos::before {
  background: var(--gold);
}

.parish-prayer-layout,
.parish-history-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.parish-prayer-layout {
  padding-left: 1.5rem;
}

.parish-prayer-heading,
.parish-prayer-text,
.parish-history-text {
  min-width: 0;
}

.parish-prayer-heading h2,
.parish-history-layout h2 {
  margin-top: 0.25rem;
}

.parish-prayer-invitation {
  max-width: 28rem;
  color: var(--muted);
}

.parish-prayer-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.8;
}

.parish-prayer-text p:first-child,
.parish-history-text p:first-child {
  margin-top: 0;
}

.parish-prayer-amen {
  margin-bottom: 0;
  font-weight: 800;
}

.parish-history-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.parish-history-text {
  font-size: 1.05rem;
  line-height: 1.75;
}

@media (max-width: 800px) {
  .parish-page-hero {
    min-height: auto;
    padding: 2.5rem 1rem;
  }

  .parish-story-grid,
  .parish-prayer-layout,
  .parish-history-layout,
  .parish-program-grid {
    grid-template-columns: 1fr;
  }

  .parish-program-grid-single .parish-program-card {
    display: flex;
  }

  .parish-program-grid-single .parish-program-card .card-actions {
    margin-top: auto;
    padding-top: 0.75rem;
  }

  .parish-story-photo img {
    max-height: none;
  }

  .parish-story-photo-detail {
    max-width: 28rem;
  }

  .parish-prayer-section::before {
    inset: 2rem auto 2rem 1rem;
  }
}

/* Our Parishes overview photos */
.parish-card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.95rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.1rem;
  background: var(--ivory);
}

.parish-page-card.parish-st-ann .parish-card-photo {
  border-left: 8px solid var(--maroon);
}

.parish-page-card.parish-olph .parish-card-photo {
  border-left: 8px solid var(--navy);
}

.parish-page-card.parish-mos .parish-card-photo {
  border-left: 8px solid var(--gold);
}

/* Compact Our Parishes overview */
.parish-overview-section {
  padding-top: 2rem;
}

.parish-page-grid-compact {
  display: grid;
  gap: 1rem;
}

.parish-page-card-compact {
  padding: 0;
  overflow: hidden;
  min-height: auto;
}

.parish-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

.parish-card-photo-compact {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: none;
  object-fit: contain;
  background: var(--ivory);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  background: var(--ivory);
}

.parish-page-card-compact h2 {
  margin: 0;
  font-size: 1.35rem;
}

.parish-page-card-compact .eyebrow {
  margin: 0;
}

.parish-page-card-compact .established-chip {
  margin: 0;
  font-size: 0.82rem;
  padding: 0.3rem 0.6rem;
}

.parish-page-card-compact .parish-address-box {
  margin: 0;
  padding: 0.75rem;
  font-size: 0.95rem;
}

.parish-page-card-compact .card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.parish-page-card-compact .button {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
}

@media (min-width: 900px) {
  .parish-page-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 760px) and (max-width: 899px) {
  .parish-page-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .parish-card-photo-compact {
    max-height: none;
  }
}

/* Contact page */
.contact-feature-card,
.contact-person-card,
.contact-location-card {
  display: flex;
  flex-direction: column;
}

.contact-feature-card {
  min-height: 310px;
}

.contact-list {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
}

.contact-list p {
  margin: 0;
}

.contact-list a,
.contact-person-card a {
  color: var(--maroon);
  font-weight: 900;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

.contact-list a:hover,
.contact-person-card a:hover {
  color: var(--navy);
}

.mailing-address {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-left: 6px solid var(--gold);
  border-radius: 0.85rem;
  color: var(--navy);
  font-style: normal;
  font-weight: 800;
  line-height: 1.5;
  margin: 1rem 0;
  padding: 1rem;
}

.contact-note {
  margin-top: auto;
}

.contact-card-grid,
.contact-location-grid {
  display: grid;
  gap: 1rem;
}

.contact-person-card:nth-child(3n + 1),
.contact-location-card.parish-st-ann {
  border-left: 8px solid var(--maroon);
  background: linear-gradient(180deg, var(--st-ann-tint), var(--white) 38%);
}

.contact-person-card:nth-child(3n + 2),
.contact-location-card.parish-olph {
  border-left: 8px solid var(--navy);
  background: linear-gradient(180deg, var(--olph-tint), var(--white) 38%);
}

.contact-person-card:nth-child(3n + 3),
.contact-location-card.parish-mos {
  border-left: 8px solid var(--gold);
  background: linear-gradient(180deg, var(--gold-tint), var(--white) 38%);
}

.contact-person-card h2,
.contact-location-card h2 {
  margin-top: 0;
}

.contact-person-card p:last-child {
  margin-bottom: 0;
}

.contact-location-card .card-actions,
.contact-feature-card .card-actions {
  margin-top: auto;
}

.contact-urgent-card {
  border-left: 10px solid var(--maroon);
  min-height: auto;
}

.contact-urgent-card .button {
  margin-top: 1rem;
}

@media (min-width: 760px) {
  .contact-card-grid,
  .contact-location-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .contact-feature-card {
    min-height: auto;
  }

  .contact-feature-card .button,
  .contact-location-card .button,
  .contact-urgent-card .button {
    width: 100%;
    text-align: center;
  }
}

/* Contact page: compact parish location cards */
.contact-location-section {
  overflow: hidden;
}

.contact-location-grid-compact {
  display: grid;
  gap: 1rem;
}

.contact-location-card-compact {
  min-width: 0;
  padding: 1.25rem;
}

.contact-location-card-compact h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  line-height: 1.05;
}

.contact-location-card-compact .eyebrow {
  margin-bottom: 0.55rem;
}

.contact-location-card-compact .parish-address-box {
  margin: 1rem 0;
  padding: 0.85rem;
  font-size: 0.95rem;
}

.contact-location-card-compact .card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: auto;
}

.contact-location-card-compact .button {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
}

@media (min-width: 980px) {
  .contact-location-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 760px) and (max-width: 979px) {
  .contact-location-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .contact-location-grid-compact {
    grid-template-columns: 1fr;
  }
}

/* Contact page: even out parish location card spacing */
.contact-location-card-compact {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  gap: 0.85rem;
}

.contact-location-card-compact h2 {
  min-height: 4.6rem;
  display: flex;
  align-items: flex-start;
}

.contact-location-card-compact .parish-address-box {
  min-height: 7.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-location-card-compact .card-actions {
  margin-top: auto;
}

/* Reduce the big gap before the urgent card */
.contact-urgent-card {
  margin-top: 0;
}

.contact-location-section + .section {
  padding-top: 1.5rem;
}

/* Events page */
.events-feature-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.events-feature-card .button {
  margin-top: auto;
  width: fit-content;
}

.events-grid {
  display: grid;
  gap: 1rem;
}

.events-card {
  display: flex;
  flex-direction: column;
  border-left: 8px solid var(--gold);
}

.events-card:nth-child(3n + 1) {
  border-left-color: var(--maroon);
  background: linear-gradient(180deg, var(--st-ann-tint), var(--white) 38%);
}

.events-card:nth-child(3n + 2) {
  border-left-color: var(--navy);
  background: linear-gradient(180deg, var(--olph-tint), var(--white) 38%);
}

.events-card:nth-child(3n + 3) {
  border-left-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-tint), var(--white) 38%);
}

.events-card .button {
  margin-top: auto;
  width: fit-content;
}

.events-office-card {
  min-height: auto;
}

.events-office-card .button {
  margin-top: 1rem;
}

@media (min-width: 760px) {
  .events-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .events-feature-card {
    min-height: auto;
  }

  .events-feature-card .button,
  .events-card .button,
  .events-office-card .button {
    width: 100%;
    text-align: center;
  }
}

/* Header nav cleanup */
.header-inner {
  align-items: flex-start;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.35rem;
  max-width: 720px;
}

.main-nav a {
  white-space: nowrap;
}

@media (min-width: 980px) {
  .main-nav {
    row-gap: 0.65rem;
  }
}

@media (max-width: 979px) {
  .main-nav {
    justify-content: flex-start;
    max-width: none;
  }
}

/* Resources page cleanup */
.compact-page-header {
  padding-bottom: 3.5rem;
}

.resource-jump-section {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.resource-jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.resource-jump-list a {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 900;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.resource-jump-list a:hover,
.resource-jump-list a:focus-visible {
  background: var(--gold);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.compact-section-heading {
  margin-bottom: 1rem;
}

.catholic-links-section {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.resources-note-card {
  min-height: auto;
}

.resources-note-card .button {
  margin-top: 1rem;
}

/* Header correction: restore clean brand-left / nav-right layout */
.header-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  grid-template-areas:
    "brand nav"
    "parishes parishes";
  align-items: center;
  gap: 1.25rem 2rem;
}

.site-brand,
.brand,
.site-title {
  grid-area: brand;
  text-align: left;
}

.main-nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.85rem 1.35rem;
  max-width: none;
  text-align: right;
}

.main-nav a {
  white-space: nowrap;
}

.parish-selector,
.parish-select-wrap,
.parish-select-section {
  grid-area: parishes;
}

/* Keep parish selector from crowding the main nav */
.parish-selector {
  margin-top: 0.75rem;
}

/* Tablet/mobile: stack cleanly instead of forcing awkward rows */
@media (max-width: 979px) {
  .header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "parishes";
  }

  .site-brand,
  .brand,
  .site-title {
    text-align: left;
  }

  .main-nav {
    justify-content: flex-start;
    text-align: left;
  }
}

/* Clean rebuilt header */
.tp-header {
  background: var(--navy);
  color: var(--white);
}

.tp-utility-wrap {
  background: rgba(0, 0, 0, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-utility-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tp-utility-nav a {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.tp-utility-nav a:hover,
.tp-utility-nav a:focus-visible {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-1px);
}

.tp-utility-nav .tp-utility-highlight {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.tp-header-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1rem 1.6rem;
}

.tp-main-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 1.25rem 2rem;
  align-items: center;
}

.tp-brand {
  color: var(--white);
  text-decoration: none;
}

.tp-brand-title {
  display: block;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 900;
  line-height: 1.1;
}

.tp-brand-subtitle {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0.94;
}

.tp-main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.25rem;
}

.tp-main-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.tp-main-nav a:hover,
.tp-main-nav a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
  transform: translateY(-1px);
}

.tp-parish-row {
  margin-top: 1.35rem;
}

.tp-parish-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: baseline;
  margin-bottom: 0.7rem;
}

.tp-parish-heading a {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
}

.tp-parish-heading a:hover,
.tp-parish-heading a:focus-visible {
  text-decoration: underline;
}

.tp-parish-heading span {
  color: var(--white);
  font-weight: 700;
  opacity: 0.92;
}

.tp-parish-grid {
  display: grid;
  gap: 0.7rem;
}

.tp-parish-card {
  display: block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-left: 6px solid var(--parish-color);
  border-radius: 0.8rem;
  color: var(--white);
  padding: 0.8rem 1rem;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tp-parish-card.parish-mos {
  border-left-color: var(--gold);
}

.tp-parish-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.tp-parish-card span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.9;
}

.tp-parish-card:hover,
.tp-parish-card:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

@media (min-width: 900px) {
  .tp-parish-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .tp-main-row {
    grid-template-columns: 1fr;
  }

  .tp-main-nav,
  .tp-utility-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .tp-utility-nav a,
  .tp-main-nav a {
    font-size: 0.92rem;
  }

  .tp-header-wrap {
    padding-bottom: 1.25rem;
  }
}

/* Final header tightening */
.tp-header-wrap {
  padding-top: 1.1rem;
  padding-bottom: 1.15rem;
}

.tp-main-row {
  grid-template-columns: minmax(390px, 0.85fr) minmax(0, 1.15fr);
  gap: 1.25rem 2rem;
}

.tp-brand-title {
  max-width: none;
  font-size: clamp(1.35rem, 1.7vw, 1.7rem);
}

.tp-brand-subtitle {
  max-width: 34rem;
}

.tp-main-nav {
  gap: 0.75rem 1.1rem;
}

.tp-main-nav a {
  font-size: 0.98rem;
}

.tp-parish-row {
  margin-top: 1.1rem;
}

.tp-parish-card {
  padding: 0.7rem 0.9rem;
}

.tp-parish-card strong {
  font-size: 0.98rem;
}

.tp-parish-card span {
  font-size: 0.86rem;
}

/* Reduce the big empty space between header and homepage hero */
.hero {
  padding-top: 3.25rem;
}

@media (max-width: 899px) {
  .tp-main-row {
    grid-template-columns: 1fr;
  }

  .tp-brand-title {
    white-space: normal;
  }

  .hero {
    padding-top: 2.5rem;
  }
}

/* Final simple header: no parish selector in global header */
.tp-header {
  background: var(--navy);
  color: var(--white);
}

.tp-utility-wrap {
  background: rgba(0, 0, 0, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-utility-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tp-utility-nav a {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
}

.tp-utility-nav .tp-utility-highlight {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.tp-header-simple {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
}

.tp-brand {
  color: var(--white);
  text-decoration: none;
  min-width: 0;
}

.tp-brand-title {
  display: block;
  color: var(--white);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 900;
  line-height: 1.05;
}

.tp-brand-subtitle {
  display: block;
  margin-top: 0.3rem;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.92;
}

.tp-main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.tp-main-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 900;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.tp-main-nav a:hover,
.tp-main-nav a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Hide old parish selector classes if any old header CSS still tries to show them */
.tp-parish-row,
.parish-selector,
.parish-select-wrap,
.parish-select-section {
  display: none;
}

/* Pull hero closer now that the header is simpler */
.hero {
  padding-top: 3rem;
}

@media (max-width: 980px) {
  .tp-header-simple {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .tp-main-nav,
  .tp-utility-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .tp-utility-nav a,
  .tp-main-nav a {
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 2.25rem;
  }
}

/* Homepage hero word-wrap cleanup */
.hero-content,
.hero .container,
.hero-inner {
  max-width: 1100px;
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(3.2rem, 6vw, 5.75rem);
  line-height: 1.05;
  text-wrap: balance;
}

.hero p,
.hero .hero-copy {
  max-width: 780px;
}

/* Keep the simplified header from forcing ugly nav wraps */
.tp-header-simple {
  grid-template-columns: minmax(360px, 0.75fr) minmax(0, 1.25fr);
}

.tp-main-nav {
  justify-content: flex-end;
  gap: 0.75rem 0.95rem;
}

.tp-main-nav a {
  font-size: 0.94rem;
}

@media (max-width: 980px) {
  .tp-header-simple {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 760px;
    font-size: clamp(2.7rem, 9vw, 4.5rem);
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
  }
}

/* Homepage hero word-wrap cleanup */
.hero-content,
.hero .container,
.hero-inner {
  max-width: 1100px;
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(3.2rem, 6vw, 5.75rem);
  line-height: 1.05;
  text-wrap: balance;
}

.hero p,
.hero .hero-copy {
  max-width: 780px;
}

/* Keep the simplified header from forcing ugly nav wraps */
.tp-header-simple {
  grid-template-columns: minmax(360px, 0.75fr) minmax(0, 1.25fr);
}

.tp-main-nav {
  justify-content: flex-end;
  gap: 0.75rem 0.95rem;
}

.tp-main-nav a {
  font-size: 0.94rem;
}

@media (max-width: 980px) {
  .tp-header-simple {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 760px;
    font-size: clamp(2.7rem, 9vw, 4.5rem);
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
  }
}

/* Homepage: New Here section */
.home-new-here-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.home-new-here-layout {
  display: grid;
  gap: 1rem;
}

.home-new-here-feature {
  border-left: 10px solid var(--maroon);
  background: linear-gradient(180deg, var(--st-ann-tint), var(--white) 48%);
}

.home-new-here-feature h2 {
  margin-top: 0;
}

.home-start-grid {
  display: grid;
  gap: 0.75rem;
}

.home-start-card {
  display: flex;
  align-items: center;
  min-height: 5rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-left: 8px solid var(--gold);
  border-radius: 0.95rem;
  color: var(--navy);
  font-weight: 900;
  padding: 1rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-start-card:hover,
.home-start-card:focus-visible {
  border-left-color: var(--maroon);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

/* Homepage parish cards with church photos */
.home-parish-grid {
  display: grid;
  gap: 1rem;
}

.home-parish-card {
  padding: 0;
  overflow: hidden;
}

.home-parish-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 160px;
  object-fit: cover;
  display: block;
  background: var(--ivory);
}

.home-parish-card.parish-st-ann .home-parish-photo {
  border-left: 8px solid var(--maroon);
}

.home-parish-card.parish-olph .home-parish-photo {
  border-left: 8px solid var(--navy);
}

.home-parish-card.parish-mos .home-parish-photo {
  border-left: 8px solid var(--gold);
}

.home-parish-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

.home-parish-content h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.home-parish-content .eyebrow {
  margin: 0;
}

.home-parish-content .parish-address-box {
  margin: 0;
  padding: 0.8rem;
}

.home-parish-content .card-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
}

.home-parish-content .button {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.home-bottom-section .card {
  display: flex;
  flex-direction: column;
}

.home-bottom-section .card .button {
  margin-top: auto;
  width: fit-content;
}

@media (min-width: 760px) {
  .home-new-here-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: stretch;
  }

  .home-start-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-parish-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .home-bottom-section .card .button {
    width: 100%;
    text-align: center;
  }
}

/* Homepage cleanup pass */
.hero {
  padding-top: 2.4rem;
  padding-bottom: 3rem;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(2.9rem, 5.3vw, 5.05rem);
  line-height: 1.03;
  text-wrap: balance;
}

.hero p {
  max-width: 760px;
}

/* New Here should feel like a real section, not loose buttons */
.home-new-here-layout {
  align-items: stretch;
}

.home-new-here-feature {
  display: flex;
  flex-direction: column;
}

.home-new-here-feature .button {
  margin-top: auto;
  width: fit-content;
}

.home-start-grid {
  align-content: stretch;
}

.home-start-card {
  min-height: 4.4rem;
  justify-content: center;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.15;
  padding: 0.85rem;
}

/* Make weekend Mass cards less tall and more balanced */
.schedule-card-grid .schedule-card {
  min-height: auto;
}

.schedule-card h3 {
  margin-bottom: 0.45rem;
}

/* Homepage parish cards: tighter and more even */
.home-parish-card {
  display: flex;
  flex-direction: column;
}

.home-parish-photo {
  max-height: 135px;
}

.home-parish-content {
  flex: 1;
}

.home-parish-content h3 {
  min-height: 3.2rem;
  display: flex;
  align-items: flex-start;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.home-parish-content .parish-address-box {
  min-height: 5.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-parish-content .card-actions {
  margin-top: auto;
}

/* Bottom homepage cards should align better */
.home-bottom-section > .card {
  min-height: 280px;
}

/* On wider screens, make New Here breathe better */
@media (min-width: 900px) {
  .home-new-here-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  }
}

/* On medium screens, avoid weird cramped quick-card text */
@media (min-width: 760px) and (max-width: 899px) {
  .home-new-here-layout {
    grid-template-columns: 1fr;
  }

  .home-start-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Mobile homepage cleanup */
@media (max-width: 759px) {
  .hero h1 {
    font-size: clamp(2.3rem, 10vw, 3.2rem);
  }

  .home-new-here-feature .button {
    width: 100%;
    text-align: center;
  }

  .home-parish-content h3,
  .home-parish-content .parish-address-box {
    min-height: auto;
  }

  .home-bottom-section > .card {
    min-height: auto;
  }
}

/* Homepage Mass times: compact, clear, balanced */
.home-mass-section .schedule-card-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: stretch;
}

.home-mass-section .schedule-card {
  min-height: auto !important;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem;
}

.home-mass-section .schedule-day {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-mass-section .schedule-card h3 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1;
}

.home-mass-section .schedule-card p {
  margin: 0;
}

.home-mass-section .schedule-card p:not(.schedule-day):not(.muted) {
  margin-top: 0.35rem;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 900;
}

.home-mass-section .schedule-card .muted {
  margin-top: 0.1rem;
  font-size: 0.95rem;
}

.home-mass-section .source-note {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 760px) {
  .home-mass-section .schedule-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .home-mass-section .schedule-card h3 {
    font-size: 2.25rem;
  }
}

/* Stable stacked header */
.tp-header {
  background: var(--navy);
  color: var(--white);
}

.tp-utility-wrap {
  background: rgba(0, 0, 0, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-utility-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tp-utility-nav a {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
}

.tp-utility-nav .tp-utility-highlight {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.tp-header-stacked {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 1.05rem;
  display: grid;
  gap: 0.85rem;
}

.tp-brand {
  color: var(--white);
  text-decoration: none;
  display: block;
  width: fit-content;
  max-width: 100%;
}

.tp-brand-title {
  display: block;
  color: var(--white);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 900;
  line-height: 1.05;
}

.tp-brand-subtitle {
  display: block;
  margin-top: 0.3rem;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  opacity: 0.92;
}

.tp-main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
}

.tp-main-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 900;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.tp-main-nav a:hover,
.tp-main-nav a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Keep old parish selector pieces hidden if earlier CSS still exists */
.tp-parish-row,
.parish-selector,
.parish-select-wrap,
.parish-select-section {
  display: none;
}

@media (max-width: 640px) {
  .tp-utility-nav {
    justify-content: flex-start;
  }

  .tp-main-nav {
    gap: 0.55rem 0.85rem;
  }

  .tp-main-nav a,
  .tp-utility-nav a {
    font-size: 0.9rem;
  }
}

/* Clean final header using isolated class names */
.site-header-clean {
  background: var(--navy);
  color: var(--white);
}

.utility-bar-clean {
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-nav-clean {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.utility-nav-clean a {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
}

.utility-nav-highlight-clean {
  background: var(--gold);
  border-color: var(--gold) !important;
  color: var(--navy) !important;
}

.header-main-clean {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.95rem 1rem;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
}

.brand-clean {
  color: var(--white);
  text-decoration: none;
  min-width: 0;
}

.brand-title-clean {
  display: block;
  color: var(--white);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.brand-subtitle-clean {
  display: block;
  margin-top: 0.28rem;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0.92;
}

.main-nav-clean {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.95rem;
  flex-wrap: nowrap;
}

.main-nav-clean a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 900;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.main-nav-clean a:hover,
.main-nav-clean a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

@media (max-width: 1050px) {
  .header-main-clean {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .main-nav-clean {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .utility-nav-clean {
    justify-content: flex-start;
  }

  .brand-title-clean {
    white-space: normal;
  }

  .main-nav-clean a,
  .utility-nav-clean a {
    font-size: 0.9rem;
  }
}

/* Prevent parish names from splitting awkwardly */
.nowrap {
  white-space: nowrap;
}

/* Homepage Mass cards rebuilt */
.home-mass-section {
  padding-top: 3.25rem;
  padding-bottom: 3.5rem;
}

.home-mass-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 1.25rem;
}

.home-mass-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-left: 10px solid var(--parish-color);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.home-mass-card.parish-mos {
  border-left-color: var(--gold);
}

.home-mass-day {
  margin: 0 0 0.5rem;
  color: var(--maroon);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-mass-card.parish-olph .home-mass-day,
.home-mass-card.parish-mos .home-mass-day {
  color: var(--navy);
}

.home-mass-time {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

.home-mass-parish {
  margin: 0.65rem 0 0;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.2;
}

.home-mass-city {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.home-mass-note {
  margin-top: 1.25rem;
  margin-bottom: 1rem;
}

.home-mass-button {
  width: fit-content;
}

@media (min-width: 760px) {
  .home-mass-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-mass-card {
    min-height: 190px;
  }
}

@media (max-width: 759px) {
  .home-mass-button {
    width: 100%;
    text-align: center;
  }
}

/* Fix homepage hero subline wrapping */
.hero p {
  max-width: 1100px !important;
}

@media (min-width: 1000px) {
  .hero p {
    white-space: nowrap;
  }
}

/* Fix homepage Mass section alignment */
.home-mass-section {
  padding: 3.25rem 1rem 3.5rem !important;
}

.home-mass-section .section-heading,
.home-mass-grid,
.home-mass-note,
.home-mass-button {
  max-width: 1200px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.home-mass-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  margin-top: 1.5rem !important;
  margin-bottom: 1.25rem !important;
}

.home-mass-card {
  width: 100%;
  min-width: 0;
  min-height: 180px;
  box-sizing: border-box;
}

.home-mass-button {
  display: flex;
  width: fit-content;
  margin-top: 1rem !important;
}

/* Keep Mass cards sane on smaller screens */
@media (max-width: 899px) {
  .home-mass-grid {
    grid-template-columns: 1fr !important;
  }

  .home-mass-card {
    min-height: auto;
  }

  .home-mass-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero p {
    white-space: normal;
  }
}

/* Supporting sacred images */
.page-image-feature-section {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.page-image-feature {
  margin: 0;
  max-width: 1200px;
}

.page-image-feature img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: var(--ivory);
}

.page-image-feature figcaption,
.sacrament-image-band figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: italic;
}

.sacrament-image-band-section {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.sacrament-image-band {
  display: grid;
  gap: 1rem;
}

.sacrament-image-band figure {
  margin: 0;
}

.sacrament-image-band img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 260px;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: var(--ivory);
}

/* Better crops for vertical images */
.page-image-feature img[src*="mary-statue"],
.page-image-feature img[src*="sacred-heart"],
.page-image-feature img[src*="monstrance"] {
  object-position: center 42%;
}

.sacrament-image-band img[src*="eucharist"] {
  object-position: center 45%;
}

@media (min-width: 760px) {
  .sacrament-image-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .page-image-feature img {
    max-height: 280px;
  }
}

/* New Here pew image */
.new-here-pew-section {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.new-here-pew-section .page-image-feature img {
  max-height: 320px;
  object-position: center 55%;
}

/* New Here pew image */
.new-here-pew-section {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.new-here-pew-section .page-image-feature img {
  max-height: 320px;
  object-position: center 55%;
}

/* New Here pew image */
.new-here-pew-section {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.new-here-pew-section .page-image-feature {
  margin: 0 auto;
  max-width: 1200px;
}

.new-here-pew-section .page-image-feature img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: center 55%;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.new-here-pew-section figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: italic;
}

/* New Here contained image card */
.new-here-image-card-section {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.new-here-image-card-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.new-here-image-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.new-here-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center 24%;
}

.new-here-image-card figcaption {
  padding: 0.65rem 0.85rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: italic;
}

.new-here-guidance-card {
  display: flex;
  flex-direction: column;
  border-left: 10px solid var(--gold);
  background: linear-gradient(180deg, var(--gold-tint), var(--white) 45%);
}

.new-here-guidance-card .button {
  margin-top: auto;
  width: fit-content;
}

@media (min-width: 760px) {
  .new-here-image-card-grid {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 759px) {
  .new-here-image-card img {
    min-height: 240px;
  }

  .new-here-guidance-card .button {
    width: 100%;
    text-align: center;
  }
}

/* Sacraments page: Baptism, Confession, Eucharist image band */
@media (min-width: 760px) {
  .sacrament-image-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Important This Week: callout badges */
.important-week-section .important-week-grid {
  display: grid !important;
  gap: 1rem !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.important-week-section .important-week-card {
  border-left: 8px solid var(--maroon) !important;
  padding-top: 1.35rem !important;
}

.important-week-section .important-week-date {
  display: inline-block !important;
  width: fit-content !important;
  margin: 0 0 0.85rem 0 !important;
  padding: 0.38rem 0.7rem !important;
  border-radius: 999px !important;
  background: var(--gold-tint) !important;
  border: 1px solid var(--gold) !important;
  color: var(--maroon) !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

.important-week-section .important-week-card h3 {
  margin-top: 0 !important;
}

@media (min-width: 860px) {
  .important-week-section .important-week-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Mobile-friendly header */
.mobile-menu-clean,
.mobile-quick-links {
  display: none;
}

.site-header-clean {
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.header-main-clean {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-clean {
  color: var(--white);
  text-decoration: none;
  display: grid;
  gap: 0.2rem;
}

.brand-clean span {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.05;
}

.brand-clean small {
  color: rgba(255,255,255,0.82);
  font-weight: 700;
  line-height: 1.35;
}

.main-nav-clean,
.utility-nav-clean {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.main-nav-clean a,
.utility-nav-clean a,
.mobile-nav-clean a,
.mobile-quick-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
}

.utility-nav-clean {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 0.9rem;
  justify-content: flex-end;
}

.utility-nav-clean a {
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
}

.utility-nav-clean a:last-child {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* Mobile header collapse */
@media (max-width: 820px) {
  .desktop-nav-clean,
  .desktop-utility-clean {
    display: none !important;
  }

  .header-main-clean {
    padding: 0.85rem 1rem 0.65rem;
    align-items: start;
  }

  .brand-clean {
    max-width: 70%;
  }

  .brand-clean span {
    font-size: 1.15rem;
    line-height: 1.1;
  }

  .brand-clean small {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .mobile-menu-clean {
    display: block;
    position: relative;
  }

  .mobile-menu-clean summary {
    list-style: none;
    cursor: pointer;
    min-height: 44px;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    color: var(--white);
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .mobile-menu-clean summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu-icon,
  .mobile-menu-icon::before,
  .mobile-menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    content: "";
  }

  .mobile-menu-icon {
    position: relative;
  }

  .mobile-menu-icon::before {
    position: absolute;
    top: -6px;
    left: 0;
  }

  .mobile-menu-icon::after {
    position: absolute;
    top: 6px;
    left: 0;
  }

  .mobile-nav-clean {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: min(82vw, 340px);
    z-index: 20;
    padding: 0.6rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.25rem;
  }

  .mobile-nav-clean a {
    color: var(--navy);
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
  }

  .mobile-nav-clean a:hover,
  .mobile-nav-clean a:focus {
    background: var(--gold-tint);
  }

  .mobile-quick-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0 1rem 0.85rem;
  }

  .mobile-quick-links a {
    min-height: 44px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.28);
    font-size: 0.88rem;
    line-height: 1.1;
  }

  .mobile-quick-links a:first-child {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
  }

  /* Mobile hero calm-down */
  .hero {
    padding: 2.25rem 1rem 2.5rem !important;
  }

  .hero .eyebrow {
    font-size: 0.88rem !important;
    letter-spacing: 0.12em !important;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.4rem) !important;
    line-height: 1.02 !important;
    max-width: 10ch;
  }

  .hero p {
    font-size: 1.25rem !important;
    line-height: 1.55 !important;
  }

  .hero-actions,
  .hero .button-row {
    display: grid !important;
    gap: 0.75rem !important;
    max-width: 360px;
  }

  .hero .button {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 52px;
  }
}

/* Mobile beauty pass */
.hero-title-mobile,
.brand-subtitle-mobile {
  display: none;
}

@media (max-width: 820px) {
  .brand-clean span {
    font-size: 1.18rem !important;
    line-height: 1.05 !important;
  }

  .brand-clean small {
    margin-top: 0.15rem;
    font-size: 0.82rem !important;
    line-height: 1.2 !important;
    color: rgba(255,255,255,0.76) !important;
  }

  .brand-subtitle-desktop {
    display: none !important;
  }

  .brand-subtitle-mobile {
    display: inline !important;
  }

  .mobile-menu-clean summary {
    padding: 0.48rem 0.78rem !important;
    font-size: 0.95rem !important;
    min-height: 42px !important;
  }

  .mobile-nav-clean {
    width: min(78vw, 310px) !important;
    padding: 0.55rem !important;
  }

  .mobile-nav-clean a {
    font-size: 1rem !important;
    line-height: 1.2 !important;
    padding: 0.62rem 0.75rem !important;
  }

  .mobile-quick-links {
    gap: 0.38rem !important;
    padding: 0.15rem 1rem 0.85rem !important;
  }

  .mobile-quick-links a {
    min-height: 40px !important;
    font-size: 0.86rem !important;
    padding: 0.42rem 0.5rem !important;
  }

  .hero {
    padding: 2.35rem 1rem 2.6rem !important;
  }

  .hero .eyebrow {
    font-size: 0.78rem !important;
    letter-spacing: 0.14em !important;
    margin-bottom: 0.85rem !important;
  }

  .hero-title-desktop {
    display: none !important;
  }

  .hero-title-mobile {
    display: inline !important;
  }

  .hero h1 {
    max-width: 8ch !important;
    font-size: clamp(3rem, 15vw, 4.15rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.035em !important;
    margin-bottom: 1.1rem !important;
  }

  .hero p {
    max-width: 31ch !important;
    font-size: 1.28rem !important;
    line-height: 1.42 !important;
    color: rgba(255,255,255,0.9) !important;
  }

  .hero-actions,
  .hero .button-row {
    margin-top: 1.4rem !important;
    max-width: none !important;
  }

  .hero .button {
    min-height: 48px !important;
    border-radius: 999px !important;
    font-size: 1rem !important;
  }

  /* On mobile, the quick links already cover Bulletin and Contact. */
  .hero .button-secondary {
    display: none !important;
  }
}

@media (max-width: 390px) {
  .brand-clean span {
    font-size: 1.08rem !important;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 3.7rem) !important;
  }

  .hero p {
    font-size: 1.17rem !important;
  }
}

/* Force calm mobile homepage hero */
.hero-title-mobile {
  display: none;
}

@media (max-width: 820px) {
  .hero-title-desktop {
    display: none !important;
  }

  .hero-title-mobile {
    display: inline !important;
  }

  .hero h1,
  .hero-heading {
    max-width: 9ch !important;
    font-size: clamp(3.1rem, 14vw, 4rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.035em !important;
    margin-bottom: 1rem !important;
  }

  .hero p {
    max-width: 28ch !important;
    font-size: 1.15rem !important;
    line-height: 1.42 !important;
  }

  .hero {
    padding-top: 2rem !important;
    padding-bottom: 2.2rem !important;
  }
}

/* Mobile header cleanup: remove crowded subtitle */
@media (max-width: 820px) {
  .brand-clean small,
  .brand-clean .brand-subtitle-mobile,
  .brand-clean .brand-subtitle-desktop {
    display: none !important;
  }

  .header-main-clean {
    padding: 0.95rem 1rem 0.7rem !important;
    align-items: center !important;
  }

  .brand-clean {
    max-width: 62% !important;
  }

  .brand-clean span {
    font-size: 1.22rem !important;
    line-height: 1.04 !important;
    letter-spacing: -0.01em !important;
  }

  .mobile-menu-clean summary {
    min-height: 42px !important;
    padding: 0.48rem 0.78rem !important;
  }

  .mobile-quick-links {
    padding-top: 0.25rem !important;
  }
}

/* Homepage cleanup pass */
.home-bulletin-section {
  background: var(--white);
}

.home-bulletin-card {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.home-bulletin-card > div,
.home-bulletin-note {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.home-bulletin-card > div {
  border-left: 10px solid var(--gold);
}

.home-bulletin-note {
  background: var(--gold-tint);
}

.home-bulletin-note h3 {
  margin-top: 0;
}

.bulletin-summary-list {
  margin: 1rem 0 1.25rem;
  padding-left: 1.25rem;
}

.bulletin-summary-list li + li {
  margin-top: 0.4rem;
}

.home-start-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.home-start-card {
  display: flex;
  flex-direction: column;
}

.home-start-card .button {
  margin-top: auto;
  width: fit-content;
}

@media (min-width: 860px) {
  .home-bulletin-card {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  }

  .home-start-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 859px) {
  .home-start-card .button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .home-bulletin-section,
  .home-start-section,
  .home-parishes-section,
  .important-week-section,
  .home-mass-section {
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
  }

  .home-bulletin-card > div,
  .home-bulletin-note {
    padding: 1.15rem !important;
  }

  .home-start-grid {
    gap: 0.85rem;
  }
}

/* Homepage hero repair: desktop + evangelism CTA */
@media (min-width: 821px) {
  .header-main-clean {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 1rem 1rem 0.75rem !important;
    display: grid !important;
    grid-template-columns: minmax(360px, 1fr) auto !important;
    align-items: start !important;
    gap: 2rem !important;
  }

  .brand-clean span {
    font-size: 1.55rem !important;
    line-height: 1.05 !important;
  }

  .brand-clean small {
    display: block !important;
    max-width: 620px !important;
    font-size: 1rem !important;
    line-height: 1.2 !important;
  }

  .main-nav-clean {
    justify-content: flex-end !important;
    gap: 0.65rem !important;
  }

  .main-nav-clean a {
    font-size: 0.95rem !important;
    line-height: 1.2 !important;
  }

  .utility-nav-clean {
    max-width: 1200px !important;
    padding: 0 1rem 1rem !important;
    justify-content: flex-end !important;
  }

  .hero {
    padding: 4rem 1rem 4.25rem !important;
  }

  .hero-inner {
    max-width: 1120px !important;
    margin: 0 auto !important;
  }

  .hero h1,
  .hero-heading {
    max-width: 980px !important;
    font-size: clamp(4rem, 6vw, 5.9rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.035em !important;
    margin-bottom: 1.25rem !important;
  }

  .hero p {
    max-width: 760px !important;
    font-size: 1.24rem !important;
    line-height: 1.5 !important;
  }

  .hero-actions,
  .hero .button-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.85rem !important;
    max-width: none !important;
    margin-top: 1.5rem !important;
  }

  .hero .button {
    width: auto !important;
    min-height: 48px !important;
    justify-content: center !important;
  }

  .hero .button-secondary,
  .hero .button-plan-visit {
    display: inline-flex !important;
  }
}

/* Mobile hero: show Mass Times + Plan First Visit */
@media (max-width: 820px) {
  .hero-actions,
  .hero .button-row {
    display: grid !important;
    gap: 0.7rem !important;
  }

  .hero .button-plan-visit {
    display: flex !important;
    background: var(--white) !important;
    color: var(--navy) !important;
    border-color: var(--white) !important;
  }

  .hero .button {
    width: 100% !important;
  }

  .hero {
    padding-bottom: 2.75rem !important;
  }
}

/* Desktop hero calm-down pass — keep mobile unchanged */
@media (min-width: 821px) {
  .hero {
    padding-top: 3.35rem !important;
    padding-bottom: 3.75rem !important;
  }

  .hero-inner {
    max-width: 1040px !important;
    margin: 0 auto !important;
  }

  .hero h1,
  .hero-heading {
    max-width: 820px !important;
    font-size: clamp(3.45rem, 4.8vw, 4.85rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.025em !important;
    margin-bottom: 1rem !important;
  }

  .hero p {
    max-width: 720px !important;
    font-size: 1.08rem !important;
    line-height: 1.5 !important;
  }

  .hero .eyebrow {
    font-size: 0.9rem !important;
    letter-spacing: 0.12em !important;
    margin-bottom: 0.75rem !important;
  }

  .hero-actions,
  .hero .button-row {
    margin-top: 1.25rem !important;
    gap: 0.75rem !important;
  }

  .hero .button {
    min-height: 44px !important;
    padding: 0.62rem 1.05rem !important;
    font-size: 0.95rem !important;
  }
}

@media (min-width: 1200px) {
  .hero h1,
  .hero-heading {
    font-size: 4.65rem !important;
  }
}

/* Desktop hero quiet pass — use the elegant short headline */
@media (min-width: 821px) {
  .hero-title-desktop {
    display: none !important;
  }

  .hero-title-mobile {
    display: inline !important;
  }

  .hero {
    padding-top: 3rem !important;
    padding-bottom: 3.25rem !important;
  }

  .hero-inner {
    max-width: 1040px !important;
    margin: 0 auto !important;
  }

  .hero h1,
  .hero-heading {
    max-width: 620px !important;
    font-size: clamp(3.4rem, 4.4vw, 4.25rem) !important;
    line-height: 1 !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 1rem !important;
  }

  .hero p {
    max-width: 720px !important;
    font-size: 1.08rem !important;
    line-height: 1.55 !important;
    margin-bottom: 0 !important;
  }

  .hero .eyebrow {
    font-size: 0.82rem !important;
    letter-spacing: 0.14em !important;
    margin-bottom: 0.75rem !important;
  }

  .hero-actions,
  .hero .button-row {
    margin-top: 1.35rem !important;
    gap: 0.75rem !important;
  }

  .hero .button {
    min-height: 44px !important;
    padding: 0.62rem 1.1rem !important;
    font-size: 0.95rem !important;
  }
}

/* Extra-wide screens should still stay calm */
@media (min-width: 1200px) {
  .hero h1,
  .hero-heading {
    font-size: 4.15rem !important;
  }
}

/* Desktop header brand calm-down */
@media (min-width: 821px) {
  .site-header-clean {
    background: var(--navy) !important;
  }

  .header-main-clean {
    padding-top: 0.65rem !important;
    padding-bottom: 0.35rem !important;
    grid-template-columns: minmax(260px, 0.75fr) minmax(520px, 1.25fr) !important;
    align-items: start !important;
  }

  .brand-clean {
    max-width: 430px !important;
  }

  .brand-clean span {
    font-size: 1.05rem !important;
    line-height: 1.05 !important;
    letter-spacing: -0.01em !important;
  }

  .brand-clean small {
    max-width: 430px !important;
    font-size: 0.78rem !important;
    line-height: 1.15 !important;
    font-weight: 650 !important;
    color: rgba(255,255,255,0.72) !important;
  }

  .main-nav-clean a {
    font-size: 0.82rem !important;
  }

  .utility-nav-clean {
    padding-bottom: 0.65rem !important;
  }

  .utility-nav-clean a {
    font-size: 0.78rem !important;
    padding: 0.35rem 0.62rem !important;
  }
}

/* Desktop header final polish: smaller brand, clearer links */
@media (min-width: 821px) {
  .site-header-clean {
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
  }

  .header-main-clean {
    max-width: 1200px !important;
    padding: 0.55rem 1rem 0.35rem !important;
    grid-template-columns: 330px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 1.5rem !important;
  }

  .brand-clean {
    max-width: 330px !important;
    gap: 0.1rem !important;
  }

  .brand-clean span {
    font-size: 0.92rem !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  .brand-clean small {
    max-width: none !important;
    font-size: 0.68rem !important;
    line-height: 1.1 !important;
    font-weight: 650 !important;
    color: rgba(255,255,255,0.72) !important;
    white-space: nowrap !important;
  }

  .main-nav-clean {
    justify-content: flex-end !important;
    gap: 0.4rem !important;
  }

  .main-nav-clean a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 34px !important;
    padding: 0.38rem 0.62rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
    background: rgba(255,255,255,0.055) !important;
    color: var(--white) !important;
    font-size: 0.78rem !important;
    line-height: 1 !important;
    text-decoration: none !important;
  }

  .main-nav-clean a:hover,
  .main-nav-clean a:focus {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: var(--navy) !important;
  }

  .utility-nav-clean {
    max-width: 1200px !important;
    padding: 0 1rem 0.55rem !important;
    gap: 0.4rem !important;
  }

  .utility-nav-clean a {
    min-height: 32px !important;
    padding: 0.33rem 0.6rem !important;
    font-size: 0.74rem !important;
    line-height: 1 !important;
  }
}

/* Minimal universal header */
.site-header-minimal {
  position: relative;
  z-index: 50;
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.header-shell-minimal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-minimal {
  color: var(--white);
  text-decoration: none;
  display: grid;
  gap: 0.02rem;
  line-height: 1;
}

.brand-main-minimal {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.brand-sub-minimal {
  font-family: var(--font-heading);
  font-weight: 750;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.92);
}

.brand-minimal small {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.68);
  font-weight: 700;
  white-space: nowrap;
}

.header-actions-minimal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.header-action,
.site-menu-minimal summary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  font-weight: 850;
  font-size: 0.86rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.header-action-gold {
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
}

.header-action-light {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--white);
}

.header-action-outline,
.site-menu-minimal summary {
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.055);
}

.header-action:hover,
.header-action:focus,
.site-menu-minimal summary:hover,
.site-menu-minimal summary:focus {
  transform: translateY(-1px);
}

.site-menu-minimal {
  position: relative;
}

.site-menu-minimal summary {
  list-style: none;
}

.site-menu-minimal summary::-webkit-details-marker {
  display: none;
}

.menu-lines-minimal,
.menu-lines-minimal::before,
.menu-lines-minimal::after {
  display: block;
  width: 17px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  content: "";
}

.menu-lines-minimal {
  position: relative;
}

.menu-lines-minimal::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.menu-lines-minimal::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.menu-panel-minimal {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  width: min(88vw, 360px);
  z-index: 100;
  padding: 0.65rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.25rem;
}

.menu-panel-minimal a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 850;
  padding: 0.72rem 0.85rem;
  border-radius: 0.75rem;
}

.menu-panel-minimal a:hover,
.menu-panel-minimal a:focus {
  background: var(--gold-tint);
}

@media (max-width: 760px) {
  .header-shell-minimal {
    padding: 0.85rem 1rem 0.75rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .brand-main-minimal {
    font-size: 1.08rem;
  }

  .brand-sub-minimal {
    font-size: 0.9rem;
  }

  .brand-minimal small {
    display: none;
  }

  .header-actions-minimal {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 0.45rem;
    margin-top: 0.65rem;
  }

  .header-action,
  .site-menu-minimal summary {
    min-height: 42px;
    padding: 0.48rem 0.55rem;
    font-size: 0.82rem;
    text-align: center;
  }

  .header-action-light {
    display: none;
  }

  .header-actions-minimal {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  }

  .site-menu-minimal {
    justify-self: end;
  }

  .menu-panel-minimal {
    right: 0;
    width: min(86vw, 340px);
  }
}

@media (max-width: 390px) {
  .header-action,
  .site-menu-minimal summary {
    font-size: 0.78rem;
  }
}

/* Header action update: keep Bulletin, Parishes, Contact visible */
@media (max-width: 760px) {
  .header-action-light {
    display: inline-flex !important;
  }

  .header-actions-minimal {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto !important;
  }

  .header-action,
  .site-menu-minimal summary {
    font-size: 0.76rem !important;
  }
}

/* Schedule change */
.important-week-schedule {
  border-left-color: var(--gold) !important;
  background: linear-gradient(180deg, var(--gold-tint), var(--white) 55%) !important;
}

.important-week-schedule .important-week-type {
  background: var(--gold) !important;
  border: 1px solid var(--gold) !important;
  color: var(--navy) !important;
}

.important-week-schedule h3 {
  color: var(--navy) !important;
}

/* General volunteer need */
.important-week-volunteer {
  border-left-color: var(--maroon) !important;
}

.important-week-volunteer .important-week-type {
  background: rgba(139, 30, 46, 0.1) !important;
  border: 1px solid rgba(139, 30, 46, 0.35) !important;
  color: var(--maroon) !important;
}

/* OLPH-specific need */
.important-week-olph {
  border-left-color: var(--navy) !important;
  background: linear-gradient(180deg, rgba(13, 35, 58, 0.055), var(--white) 58%) !important;
}

.important-week-olph .important-week-type {
  background: rgba(13, 35, 58, 0.08) !important;
  border: 1px solid rgba(13, 35, 58, 0.25) !important;
  color: var(--navy) !important;
}

.important-week-card h3 {
  margin-top: 0 !important;
}

@media (max-width: 820px) {
  .important-week-meta {
    gap: 0.35rem;
  }

  .important-week-type,
  .important-week-date {
    font-size: 0.68rem !important;
  }
}

/* Schedule change */
.important-week-schedule {
  border-left-color: var(--gold) !important;
  background: linear-gradient(180deg, var(--gold-tint), var(--white) 58%) !important;
}

.important-week-schedule .important-week-label {
  background: var(--gold) !important;
  border: 1px solid var(--gold) !important;
  color: var(--navy) !important;
}

/* Current need / volunteer */
.important-week-volunteer {
  border-left-color: var(--maroon) !important;
  background: var(--white) !important;
}

.important-week-volunteer .important-week-label {
  background: rgba(139, 30, 46, 0.1) !important;
  border: 1px solid rgba(139, 30, 46, 0.35) !important;
  color: var(--maroon) !important;
}

/* OLPH-specific */
.important-week-olph {
  border-left-color: var(--navy) !important;
  background: linear-gradient(180deg, rgba(13, 35, 58, 0.055), var(--white) 58%) !important;
}

.important-week-olph .important-week-label {
  background: rgba(13, 35, 58, 0.08) !important;
  border: 1px solid rgba(13, 35, 58, 0.25) !important;
  color: var(--navy) !important;
}

.important-week-olph .important-week-context {
  color: var(--navy) !important;
  border-color: rgba(13, 35, 58, 0.28) !important;
}

/* Mobile: keep labels aligned but let them stack cleanly if needed */
@media (max-width: 520px) {
  .important-week-section .important-week-card {
    padding: 1.25rem !important;
    gap: 0.9rem !important;
  }

  .important-week-card-header {
    grid-template-columns: 1fr !important;
    gap: 0.45rem !important;
  }

  .important-week-context {
    justify-self: start !important;
  }

  .important-week-label,
  .important-week-context {
    font-size: 0.68rem !important;
  }
}

/* Homepage bulletin: remove internal workflow box layout */
.home-bulletin-card {
  max-width: 1040px !important;
  display: block !important;
}

.home-bulletin-card > div {
  width: 100% !important;
}

.home-bulletin-note {
  display: none !important;
}

/* Mass schedule note: make it an intentional callout */
.home-mass-note {
  max-width: 1200px !important;
  margin: 1rem auto 1.15rem !important;
  padding: 1rem 1.15rem !important;
  background: var(--gold-tint) !important;
  border: 1px solid var(--border) !important;
  border-left: 10px solid var(--gold) !important;
  border-radius: 1rem !important;
  box-shadow: var(--shadow-soft) !important;
  color: var(--navy) !important;
  font-weight: 650 !important;
}

.home-mass-note::before {
  content: "Schedule note";
  display: block;
  margin-bottom: 0.35rem;
  color: var(--maroon);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* St. Ann / Elgin */
.home-parish-grid .parish-card.st-ann,
.home-parish-grid .parish-card.parish-st-ann,
.home-parish-grid .parish-card.elgin {
  border-left-color: var(--maroon) !important;
  background: linear-gradient(180deg, rgba(139, 30, 46, 0.045), var(--white) 42%) !important;
}

/* OLPH / Sterling */
.home-parish-grid .parish-card.olph,
.home-parish-grid .parish-card.parish-olph,
.home-parish-grid .parish-card.sterling {
  border-left-color: var(--gold) !important;
  background: linear-gradient(180deg, var(--gold-tint), var(--white) 42%) !important;
}

/* Mother of Sorrows / Apache */
.home-parish-grid .parish-card.mother-of-sorrows,
.home-parish-grid .parish-card.parish-mother-of-sorrows,
.home-parish-grid .parish-card.apache {
  border-left-color: var(--navy) !important;
  background: linear-gradient(180deg, rgba(13, 35, 58, 0.055), var(--white) 42%) !important;
}

.home-parish-grid .parish-card h3 {
  margin-top: 0.25rem;
}

/* Homepage notices: calm, consistent card styling */
.important-week-section {
  background: var(--ivory);
}

.important-week-grid {
  display: grid !important;
  gap: 1rem !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.important-week-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
  padding: 1.35rem !important;
  border: 1px solid var(--border) !important;
  border-top: 8px solid var(--gold) !important;
  border-left: 1px solid var(--border) !important;
  background: var(--white) !important;
}

.important-week-schedule {
  border-top-color: var(--gold) !important;
}

.important-week-volunteer {
  border-top-color: var(--maroon) !important;
}

.important-week-olph {
  border-top-color: var(--navy) !important;
}

.important-week-card-header {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.45rem !important;
  align-items: center !important;
  min-height: auto !important;
}

.important-week-label,
.important-week-context {
  display: inline-flex !important;
  width: fit-content !important;
  margin: 0 !important;
  padding: 0.3rem 0.58rem !important;
  border-radius: 999px !important;
  font-size: 0.68rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.052em !important;
  white-space: nowrap !important;
}

.important-week-label {
  background: var(--gold-tint) !important;
  border: 1px solid var(--gold) !important;
  color: var(--navy) !important;
}

.important-week-context {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  color: var(--muted) !important;
}

.important-week-card-body h3 {
  margin: 0 0 0.65rem !important;
  font-size: 1.15rem !important;
  line-height: 1.25 !important;
}

.important-week-card-body p {
  margin: 0 !important;
}

.important-week-link {
  margin-top: auto !important;
}

@media (min-width: 860px) {
  .important-week-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Mass schedule note: calm callout */
.home-mass-note {
  max-width: 1200px !important;
  margin: 1rem auto 1.15rem !important;
  padding: 0.9rem 1rem !important;
  background: var(--gold-tint) !important;
  border: 1px solid var(--border) !important;
  border-left: 8px solid var(--gold) !important;
  border-radius: 0.9rem !important;
  box-shadow: none !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
}

.home-mass-note::before {
  content: "Schedule note";
  display: block;
  margin-bottom: 0.25rem;
  color: var(--maroon);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Accessibility fix: eyebrow text on dark hero/header areas */
.page-header .eyebrow,
.hero .eyebrow,
.hero-section .eyebrow,
.site-hero .eyebrow,
.home-hero .eyebrow,
[class*="hero"] .eyebrow {
  color: var(--gold) !important;
}

/* Forms page */

.forms-intro-card {
  max-width: 920px;
  margin: 0 auto;
}

.forms-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.forms-card {
  display: flex;
  flex-direction: column;
}

.forms-card h3 {
  margin-top: 0;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.25;
}

.forms-card .card-actions {
  margin-top: auto;
}

@media (min-width: 820px) {
  .forms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .forms-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Grouped dropdown menu */

.menu-panel-grouped {
  min-width: min(92vw, 430px);
  padding: 0.9rem;
  display: grid;
  gap: 0.85rem;
}

.menu-panel-grouped .menu-group {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(244, 241, 234, 0.18);
}

.menu-panel-grouped .menu-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.menu-group-title {
  margin: 0 0 0.15rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-panel-grouped a {
  border-radius: 999px;
}

@media (max-width: 560px) {
  .menu-panel-grouped {
    min-width: min(90vw, 340px);
  }
}

/* Mobile-safe dropdown menu */
.site-menu-minimal {
  position: relative;
}

.menu-panel-grouped {
  right: 0;
  left: auto;
  max-height: calc(100dvh - 5.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (max-width: 640px) {
  .menu-panel-grouped {
    width: min(92vw, 360px);
    min-width: 0;
    padding: 0.75rem;
    gap: 0.65rem;
  }

  .menu-panel-grouped .menu-group {
    gap: 0.18rem;
    padding-bottom: 0.55rem;
  }

  .menu-panel-grouped a {
    padding: 0.52rem 0.7rem;
    font-size: 0.95rem;
    line-height: 1.15;
  }

  .menu-group-title {
    font-size: 0.7rem;
    margin-bottom: 0.05rem;
  }
}

/* Page title intentional line breaks */
.page-title-line {
  display: block;
}

/* Map action layout: Apple/Google side by side, contact full width */
.parish-direction-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.65rem !important;
}

.parish-direction-actions .button {
  width: 100%;
  min-width: 0;
  margin: 0;
  text-align: center;
  justify-content: center;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.parish-direction-actions .button:nth-child(3) {
  grid-column: 1 / -1;
}

@media (max-width: 420px) {
  .parish-direction-actions .button {
    font-size: 0.92rem;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
}

/* Becoming Catholic page */
.becoming-list {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.becoming-list .card h3 {
  margin-top: 0;
  color: var(--navy);
}

@media (min-width: 820px) {
  .becoming-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Guided learning resources */
.faith-learning-feature {
  max-width: 1040px;
  margin: 2rem auto 0;
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-left: 8px solid var(--gold);
}

.faith-learning-copy h3,
.faith-learning-video-card h3 {
  margin: 0.3rem 0 0.65rem;
  color: var(--navy);
}

.faith-learning-copy p:last-child,
.faith-learning-video-card p:last-child {
  margin-bottom: 0;
}

.faith-learning-meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.faith-video {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  border-radius: 0.85rem;
}

.faith-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.faith-learning-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.faith-learning-video-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.faith-resource-list {
  display: grid;
  gap: 0.85rem;
}

.faith-resource-link {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.2rem;
  color: var(--text);
  text-decoration: none;
  border-left: 6px solid var(--gold);
}

.faith-resource-link:hover,
.faith-resource-link:focus-visible {
  transform: translateY(-2px);
  border-left-color: var(--maroon);
}

.faith-resource-link strong {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.faith-resource-link .eyebrow {
  margin: 0;
}

@media (min-width: 820px) {
  .faith-learning-feature,
  .faith-learning-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* New Here consolidated visitor layout v1 */
.new-here-centered-heading {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.new-here-centered-heading > p:last-child {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.new-here-expect-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.new-here-expect-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem;
  border-top: 5px solid var(--gold);
  text-align: center;
}

.new-here-expect-card h3 {
  margin: 0.85rem 0 0.55rem;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.25;
}

.new-here-expect-card p {
  margin: 0;
}

.new-here-step-number {
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-tint);
  border: 1px solid var(--gold);
  color: var(--navy);
  font-weight: 900;
  line-height: 1;
}

.new-here-plan-section {
  padding: 4rem 1rem;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.new-here-plan-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.new-here-parish-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.new-here-parish-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 8px solid var(--parish-color);
  border-radius: 1rem;
  box-shadow: 0 10px 28px rgba(13, 35, 58, 0.1);
}

.new-here-parish-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--ivory);
}

.new-here-parish-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
}

.new-here-parish-card-body > .eyebrow {
  margin-bottom: 0.25rem;
}

.new-here-parish-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1.15;
}

.new-here-parish-address {
  margin: 0.45rem 0 1rem;
  color: var(--muted);
  line-height: 1.45;
}

.new-here-parish-mass {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1.1rem;
  padding: 0.85rem 0.95rem;
  background: var(--parish-tint);
  border-left: 6px solid var(--parish-color);
  border-radius: 0.75rem;
}

.new-here-parish-mass span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.new-here-parish-mass strong {
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.25;
}

.new-here-visit-list {
  display: grid;
  gap: 0;
  margin: 0 0 1.25rem;
}

.new-here-visit-detail {
  padding: 0.8rem 0;
  border-top: 1px solid var(--border);
}

.new-here-visit-detail:first-child {
  border-top: 0;
  padding-top: 0;
}

.new-here-visit-detail dt {
  margin-bottom: 0.18rem;
  color: var(--navy);
  font-weight: 850;
  line-height: 1.3;
}

.new-here-visit-detail dd {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.new-here-parish-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.new-here-parish-actions .button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  text-align: center;
  line-height: 1.25;
}

.new-here-schedule-note {
  max-width: 900px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.1rem;
  background: var(--gold-tint);
  border: 1px solid var(--gold);
  border-radius: 0.85rem;
  color: var(--navy);
  text-align: center;
}

.new-here-pew-break {
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--navy);
}

.new-here-pew-break img {
  width: 100%;
  height: clamp(190px, 28vw, 320px);
  display: block;
  object-fit: cover;
  object-position: center;
}

.new-here-journey-section {
  max-width: 1080px;
}

.new-here-journey-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.new-here-journey-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: none;
}

.new-here-journey-card h3 {
  margin: 0 0 0.55rem;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.new-here-journey-card .button {
  width: fit-content;
  margin-top: auto;
}

.new-here-journey-returning {
  background: var(--olph-tint);
  border-left: 8px solid var(--navy);
}

.new-here-journey-becoming {
  background: var(--gold-tint);
  border-left: 8px solid var(--maroon);
}

.new-here-contact-note {
  margin: 1.5rem auto 0;
  text-align: center;
  font-weight: 700;
}

.new-here-giving-note {
  display: grid;
  gap: 0.8rem 2rem;
  margin-top: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.new-here-giving-note h3,
.new-here-giving-note p {
  margin: 0;
}

.new-here-giving-note a {
  display: inline-block;
  margin-top: 0.65rem;
  font-weight: 700;
}

.contact-ministry-description {
  max-width: 72ch;
  margin: 0.45rem 0 0.75rem;
}

@media (min-width: 640px) {
  .new-here-expect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .new-here-parish-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .new-here-journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .new-here-giving-note {
    grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
    align-items: start;
  }
}

@media (min-width: 1020px) {
  .new-here-expect-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .new-here-parish-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .new-here-expect-section,
  .new-here-plan-section,
  .new-here-journey-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .new-here-parish-card-body {
    padding: 1.15rem;
  }

  .new-here-journey-card .button {
    width: 100%;
    text-align: center;
  }
}

/* New Here hero image */
.new-here-page-header {
  min-height: clamp(360px, 48vw, 540px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(
      90deg,
      rgba(13, 35, 58, 0.94) 0%,
      rgba(13, 35, 58, 0.84) 36%,
      rgba(13, 35, 58, 0.36) 68%,
      rgba(13, 35, 58, 0.12) 100%
    ),
    url("../images/new-here/welcoming-catholic-church-interior.webp") center 48% / cover no-repeat;
}

.new-here-page-header > div {
  width: 100%;
  max-width: 1180px;
}

.new-here-page-header .page-intro {
  max-width: 620px;
}

.new-here-journey-section {
  padding-top: clamp(3rem, 6vw, 5rem);
}

@media (max-width: 760px) {
  .new-here-page-header {
    min-height: 420px;
    align-items: flex-end;
    background:
      linear-gradient(
        180deg,
        rgba(13, 35, 58, 0.08) 0%,
        rgba(13, 35, 58, 0.42) 46%,
        rgba(13, 35, 58, 0.94) 100%
      ),
      url("../images/new-here/welcoming-catholic-church-interior.webp") 56% center / cover no-repeat;
  }

  .new-here-page-header > div {
    padding-bottom: 0.5rem;
  }
}
.cms-rich-text > :first-child {
  margin-top: 0;
}

.cms-rich-text > :last-child {
  margin-bottom: 0;
}
