:root {
  --hom-ink: #172033;
  --hom-muted: #667085;
  --hom-line: rgba(23, 32, 51, 0.12);
  --hom-gold: #d9a441;
  --hom-wine: #8a1f1f;
  --hom-teal: #0f766e;
  --hom-panel: #ffffff;
  --hom-soft: #f8fafc;
}

html {
  scroll-behavior: smooth;
}

body.page-id-1944,
body.page-id-220,
body.page-id-2571 {
  background: #ffffff !important;
}

body.page-id-1944 #content,
body.page-id-220 #content,
body.page-id-2571 #content {
  overflow-x: hidden;
  background: #ffffff !important;
}

body.page-id-1944 #content > .ast-container,
body.page-id-220 #content > .ast-container,
body.page-id-2571 #content > .ast-container {
  max-width: none !important;
  padding-inline: 0 !important;
}

/* Keep the WordPress/Astra export intact; only polish the sections we own. */
body.home .site-header,
body.home .main-header-bar,
body.home .ast-primary-header-bar,
body.home .ast-builder-grid-row-container {
  background: #ffffff !important;
}

body.home .site-header {
  position: relative;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.08);
}

body.home .site-primary-header-wrap,
body.home .ast-builder-grid-row {
  min-height: 86px;
}

body.home .site-primary-header-wrap.ast-container {
  max-width: 1180px;
  padding-inline: 22px;
}

body.home .custom-logo-link {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  color: var(--hom-ink);
  text-decoration: none;
}

body.home .custom-logo-link::before {
  content: "";
  display: inline-block;
  width: 210px;
  height: 58px;
  border-radius: 0;
  background: url("../img/rccghouseofmercy-logo-transparent.png") left center / contain no-repeat;
}

body.home .custom-logo-link::after {
  content: none;
}

body.home .ast-builder-menu-1,
body.home .ast-main-header-bar-alignment,
body.home .main-header-bar-navigation,
body.home .site-navigation,
body.home .main-navigation,
body.home .main-header-menu {
  background: transparent !important;
}

body.home .main-header-menu {
  gap: 4px;
  align-items: center;
}

body.home .main-header-menu .menu-link,
body.home .ast-builder-menu-1 .menu-item > .menu-link {
  background: transparent !important;
  color: var(--hom-ink) !important;
  min-height: 42px;
  padding: 11px 13px !important;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  transition: background 160ms ease, color 160ms ease;
}

body.home .main-header-menu .menu-link:hover,
body.home .ast-builder-menu-1 .menu-item:hover > .menu-link,
body.home .ast-builder-menu-1 .current-menu-item > .menu-link {
  background: #fff7e0 !important;
  color: #8a5a00 !important;
}

body.home .ast-desktop-header .menu-item-3070 > .menu-link {
  background: #102747 !important;
  color: #ffffff !important;
  padding-inline: 17px !important;
}

body.home .ast-desktop-header .menu-item-3074 > .menu-link,
body:not(.home) .ast-desktop-header .menu-item-3074 > .menu-link {
  border: 1px solid rgba(16, 39, 71, 0.18);
}

body.home .ast-desktop-header .menu-item-3070:hover > .menu-link {
  background: #d9a441 !important;
  color: #102747 !important;
}

body.home .ast-desktop-header .ast-menu-toggle {
  display: none !important;
}

body.home .main-header-menu .sub-menu {
  border: 1px solid var(--hom-line) !important;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff !important;
  box-shadow: 0 18px 36px rgba(23, 32, 51, 0.14);
}

body.home .main-header-menu .sub-menu .menu-link {
  border-radius: 0;
  color: var(--hom-ink) !important;
}

body.home .home-hero,
body.home .join-online-banner {
  display: none !important;
}

body:not(.home) .site-header,
body:not(.home) .main-header-bar,
body:not(.home) .ast-primary-header-bar,
body:not(.home) .ast-builder-grid-row-container,
body:not(.home) .ast-builder-menu-1,
body:not(.home) .main-header-bar-navigation,
body:not(.home) .site-navigation,
body:not(.home) .main-navigation,
body:not(.home) .main-header-menu {
  background: #ffffff !important;
}

body:not(.home) .site-header {
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.08);
}

body:not(.home) .site-primary-header-wrap,
body:not(.home) .ast-builder-grid-row {
  min-height: 82px;
}

body:not(.home) .custom-logo-link::before {
  content: "";
  display: inline-block;
  width: 210px;
  height: 58px;
  border-radius: 0;
  background: url("../img/rccghouseofmercy-logo-transparent.png") left center / contain no-repeat;
}

body:not(.home) .custom-logo-link::after {
  content: none;
}

body:not(.home) .main-header-menu .menu-link,
body:not(.home) .ast-builder-menu-1 .menu-item > .menu-link {
  background: transparent !important;
  color: var(--hom-ink) !important;
  min-height: 42px;
  padding: 11px 13px !important;
  border-radius: 999px;
  font-weight: 800;
  text-transform: none;
}

body:not(.home) .main-header-menu .menu-link:hover,
body:not(.home) .ast-builder-menu-1 .menu-item:hover > .menu-link {
  background: #fff7e0 !important;
  color: #8a5a00 !important;
}

body:not(.home) .ast-desktop-header .menu-item-3070 > .menu-link {
  background: #102747 !important;
  color: #ffffff !important;
  padding-inline: 17px !important;
}

body.home .ast-desktop-header .menu-item-3075 > .menu-link,
body:not(.home) .ast-desktop-header .menu-item-3075 > .menu-link {
  background: #f4c75f !important;
  color: #102747 !important;
  padding-inline: 17px !important;
}

body:not(.home) .ast-desktop-header .ast-menu-toggle {
  display: none !important;
}

.hom-modern-hero {
  position: relative;
  display: grid;
  width: 100vw;
  min-height: clamp(560px, 76vh, 760px);
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  place-items: center start;
  isolation: isolate;
  background: #102747;
}

.hom-modern-hero__video,
.hom-modern-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hom-modern-hero__video {
  z-index: -2;
  object-fit: cover;
}

.hom-modern-hero__overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 19, 38, 0.88) 0%, rgba(8, 19, 38, 0.7) 42%, rgba(8, 19, 38, 0.28) 100%),
    linear-gradient(180deg, rgba(8, 19, 38, 0.22), rgba(8, 19, 38, 0.58));
}

.hom-modern-hero__content {
  max-width: 760px;
  padding: clamp(54px, 8vw, 110px) clamp(22px, 7vw, 96px);
  color: #ffffff;
}

.hom-modern-hero__eyebrow {
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 12px;
  border: 1px solid rgba(217, 164, 65, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f4c75f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.hom-modern-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: none !important;
}

.hom-modern-hero p:not(.hom-modern-hero__eyebrow) {
  max-width: 660px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
}

.hom-modern-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hom-modern-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.hom-modern-hero__button:hover {
  transform: translateY(-2px);
  background: #ffffff;
  color: #102747;
}

.hom-modern-hero__button--primary {
  border-color: #f4c75f;
  background: #f4c75f;
  color: #102747;
}

.hom-page-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: #102747;
  color: #ffffff;
}

.hom-page-hero::before,
.hom-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hom-page-hero::before {
  z-index: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.56;
}

.hom-page-hero::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 19, 38, 0.92), rgba(8, 19, 38, 0.66) 48%, rgba(8, 19, 38, 0.28)),
    linear-gradient(180deg, rgba(8, 19, 38, 0.14), rgba(8, 19, 38, 0.72));
}

.hom-page-hero--about::before {
  background-image: url("../../wp-content/uploads/2025/09/You-are-Welcome-4.jpg");
}

.hom-page-hero--services::before {
  background-image: url("../../wp-content/uploads/2025/09/You-are-Welcome-13.jpg");
}

.hom-page-hero--parishes::before {
  background-image: url("../../wp-content/uploads/2025/09/Our-Parishes-1-1024x576.png");
}

.hom-page-hero--contact::before {
  background-image: url("../../wp-content/uploads/2025/07/Prayer.jpg");
}

.hom-page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: clamp(74px, 10vw, 132px) clamp(22px, 8vw, 104px);
}

.hom-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 12px;
  border: 1px solid rgba(217, 164, 65, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f4c75f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.hom-page-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: none !important;
}

.hom-page-hero p:not(.hom-kicker) {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

body.page-id-1944 .hom-page-hero,
body.page-id-2571 .hom-page-hero {
  width: min(1180px, calc(100vw - 40px)) !important;
  max-width: min(1180px, calc(100vw - 40px)) !important;
  min-height: clamp(520px, 62vh, 660px);
  margin: 18px auto 0 !important;
  border-radius: 0;
}

body.page-id-1944 .hom-page-hero::before,
body.page-id-2571 .hom-page-hero::before {
  background-position: center top;
  opacity: 0.68;
}

body.page-id-1944 .hom-page-hero__content,
body.page-id-2571 .hom-page-hero__content {
  max-width: min(820px, calc(100vw - 72px));
  padding-inline: clamp(28px, 8vw, 96px);
}

.hom-value-band,
.hom-service-grid,
.hom-parish-jump,
.hom-visit-panel {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-inline: clamp(18px, 4vw, 48px);
}

.hom-value-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-block: clamp(36px, 6vw, 72px);
  background: #ffffff;
}

.hom-value-band article,
.hom-service-grid article {
  border: 1px solid var(--hom-line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(23, 32, 51, 0.08);
}

.hom-value-band article {
  padding: 24px;
}

.hom-value-band span,
.hom-service-grid span {
  color: var(--hom-gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hom-value-band strong {
  display: block;
  margin-top: 18px;
  color: var(--hom-ink);
  font-size: 1.18rem;
}

.hom-value-band p,
.hom-service-grid p,
.hom-visit-panel p {
  color: var(--hom-muted);
  line-height: 1.65;
}

.hom-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-block: clamp(38px, 6vw, 76px);
  background: #f8fafc;
}

.hom-service-grid article {
  padding: 24px;
}

.hom-service-grid h2 {
  margin: 16px 0 8px;
  color: var(--hom-ink);
  font-size: 1.35rem;
  line-height: 1.15;
  text-transform: none !important;
}

.hom-visit-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 34px;
  background: #102747;
  color: #ffffff;
}

.hom-visit-panel h2 {
  margin: 0;
  color: #ffffff;
  text-transform: none !important;
}

.hom-visit-panel p {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.78);
}

.hom-visit-panel a,
.hom-site-footer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #f4c75f;
  color: #102747;
  font-weight: 900;
  text-decoration: none;
}

.hom-parish-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 28px;
  background: #ffffff;
}

.hom-parish-jump a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--hom-line);
  border-radius: 999px;
  color: var(--hom-ink);
  font-weight: 900;
  text-decoration: none;
}

.hom-parish-jump a:hover {
  background: #102747;
  color: #ffffff;
}

.hom-home-contact {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(42px, 6vw, 78px) clamp(18px, 4vw, 48px);
  background: #102747;
  color: #ffffff;
}

.hom-home-contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.hom-home-contact h2 {
  max-width: 920px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.8rem, 3.4vw, 3.2rem);
  line-height: 1.08;
  text-transform: none !important;
}

.hom-home-contact p {
  max-width: 720px;
  margin: 16px 0 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
}

.hom-home-contact a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  background: #f4c75f;
  color: #102747;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.join-online-banner {
  padding: 22px 18px !important;
  background: linear-gradient(90deg, #123d74, #2e9be8) !important;
}

.join-online-banner > .uagb-container-inner-blocks-wrap {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
}

.join-online-banner .wp-block-uagb-container,
.join-online-banner .uagb-buttons__wrap,
.join-online-banner .uagb-button__wrapper {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.join-online-banner .wp-block-button__link,
.join-online-banner .uagb-buttons-repeater {
  min-width: 168px;
  padding: 12px 18px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #0d3f85 !important;
  box-shadow: 0 10px 24px rgba(10, 28, 56, 0.18);
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  text-align: center;
  text-transform: uppercase;
}

.hom-live-updates {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(34px, 5vw, 62px) clamp(18px, 4vw, 48px);
  background: #ffffff;
}

.hom-live-updates__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.hom-live-updates__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.hom-live-updates__eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 10px;
  padding: 6px 11px;
  border: 1px solid rgba(138, 31, 31, 0.18);
  border-radius: 999px;
  background: #fff7ed;
  color: var(--hom-wine);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.hom-live-updates h2 {
  max-width: 700px;
  margin: 0;
  color: var(--hom-ink);
  font-size: clamp(2rem, 3.5vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none !important;
}

.hom-live-updates__intro {
  margin: 0;
  color: var(--hom-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hom-updates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hom-update-card {
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--hom-line);
  border-radius: 12px;
  background: var(--hom-panel);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hom-update-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(23, 32, 51, 0.12);
}

.hom-update-card__image {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top center;
  background: var(--hom-soft);
}

.hom-update-card__body {
  padding: 16px;
}

.hom-update-card__date {
  margin: 0 0 8px;
  color: var(--hom-teal);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hom-update-card h3 {
  margin: 0;
  color: var(--hom-ink);
  font-size: 1.05rem;
  line-height: 1.3;
  text-transform: none !important;
}

.hom-update-card h3 a,
.hom-update-card__link {
  color: inherit;
  text-decoration: none;
}

.hom-update-card__link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--hom-wine);
  font-weight: 800;
}

.hom-updates-state {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px dashed var(--hom-line);
  border-radius: 12px;
  color: var(--hom-muted);
  text-align: center;
  background: var(--hom-soft);
}

body.home .events-section,
body.home .home-parishes,
body.home .uagb-block-a1136e67,
body.home .entry-content > hr.wp-block-separator {
  display: none !important;
}

body.page-id-219 .entry-content > .wp-block-uagb-container,
body .entry-content > .wp-block-uagb-container.site-footer,
body .entry-content > .wp-block-group.alignfull.has-midnight-gradient-background.has-background.has-link-color,
footer.site-footer {
  display: none !important;
}

body.page-id-2571 .parishes-section > .wp-block-uagb-image,
body.page-id-2571 .parishes-section > p {
  display: none !important;
}

body.page-id-2571 .parishes-section > .wp-block-uagb-image {
  display: block !important;
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto 22px !important;
}

body.page-id-2571 .parishes-section > .wp-block-uagb-image img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.14);
}

body.page-id-2571 .parishes-section > .wp-block-uagb-advanced-heading {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto 18px !important;
}

body.page-id-2571 .parishes-section > .wp-block-uagb-advanced-heading h2 {
  color: var(--hom-ink);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  text-align: left;
  text-transform: none !important;
}

body.page-id-2571 .parishes-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(18px, 4vw, 48px) clamp(18px, 4vw, 48px) clamp(42px, 6vw, 76px);
  background: #f8fafc;
}

body.page-id-2571 .parishes-section > .wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto 24px !important;
}

body.page-id-2571 .parishes-section > .wp-block-columns > .wp-block-column {
  min-width: 0;
}

body.page-id-2571 .parish-card {
  display: grid;
  gap: 16px;
  height: 100%;
  padding: 18px;
  border-radius: 14px !important;
  background: #ffffff;
}

body.page-id-2571 .parish-card h3 {
  margin: 0;
  color: #114aa0;
  font-size: 1.2rem;
  line-height: 1.25;
  text-align: left;
  text-transform: none !important;
}

body.page-id-2571 .parish-card details {
  overflow: hidden;
  border: 1px solid var(--hom-line) !important;
  border-radius: 12px;
  background: #f8fafc !important;
  color: var(--hom-ink) !important;
}

body.page-id-2571 .parish-card summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 13px 44px 13px 16px;
  cursor: pointer;
  color: var(--hom-ink);
  font-size: 0.96rem;
  font-weight: 900;
  list-style: none;
}

body.page-id-2571 .parish-card summary::-webkit-details-marker {
  display: none;
}

body.page-id-2571 .parish-card summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #102747;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
}

body.page-id-2571 .parish-card details[open] summary::after {
  content: "-";
}

body.page-id-2571 .parish-card .uagb-icon-list__wrap {
  display: grid;
  gap: 0;
  padding: 0 16px 16px;
}

body.page-id-2571 .parish-card .wp-block-uagb-icon-list-child {
  padding: 11px 0;
  border-top: 1px solid rgba(23, 32, 51, 0.08);
}

body.page-id-2571 .parish-card .uagb-icon-list__label {
  display: block;
  color: #344054;
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: left;
}

body.page-id-2571 .parish-card .uagb-icon-list__label strong {
  display: block;
  margin-bottom: 2px;
  color: var(--hom-ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.page-id-2571 .parish-card svg {
  width: 18px !important;
  height: 18px !important;
}

body.page-id-2571 .parish-card .uagb-icon-list__source-wrap {
  width: 22px !important;
  min-width: 22px !important;
}

.hom-parish-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto 22px;
  padding: 16px;
  border: 1px solid var(--hom-line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.06);
}

.hom-parish-tools input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--hom-line);
  border-radius: 999px;
  color: var(--hom-ink);
}

.hom-parish-tools span {
  color: var(--hom-muted);
  font-weight: 800;
}

.hom-parish-empty {
  display: none;
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto 24px;
  padding: 22px;
  border: 1px dashed var(--hom-line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--hom-muted);
  text-align: center;
}

.hom-parish-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto 42px;
}

.hom-parish-pagination button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--hom-line);
  border-radius: 999px;
  background: #102747;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.hom-parish-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.hom-parish-pagination span {
  color: var(--hom-muted);
  font-weight: 800;
}

body.page-id-1944 .entry-content > .wp-block-group:first-of-type {
  display: none !important;
}

body.page-id-1944 .entry-content > .wp-block-columns {
  width: min(1120px, calc(100vw - 36px)) !important;
  max-width: min(1120px, calc(100vw - 36px)) !important;
  margin: 28px auto !important;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff !important;
  color: var(--hom-ink) !important;
  box-shadow: 0 16px 42px rgba(23, 32, 51, 0.12);
}

body.page-id-1944 .entry-content > .wp-block-columns img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 0;
}

body.page-id-1944 .entry-content details {
  padding: 16px 18px;
  border: 1px solid var(--hom-line);
  border-radius: 12px;
  background: #f8fafc;
}

body.page-id-1944 .entry-content summary {
  cursor: pointer;
  color: var(--hom-ink);
  font-weight: 800;
  line-height: 1.5;
}

body.page-id-1944 .entry-content details p,
body.page-id-1944 .entry-content > .wp-block-columns p {
  color: #475467;
}

body.page-id-1944 .uagb-tabs__wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

body.page-id-1944 .entry-content > .wp-block-columns:nth-of-type(1),
body.page-id-1944 .entry-content > .wp-block-columns:nth-of-type(2) {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: stretch;
}

body.page-id-1944 .entry-content > .wp-block-columns:nth-of-type(2) {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
}

body.page-id-1944 .entry-content > .wp-block-columns > .wp-block-column {
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
}

body.page-id-1944 .entry-content > .wp-block-columns > .wp-block-column:has(img) {
  padding: 0;
}

body.page-id-1944 .entry-content > .wp-block-columns img {
  display: block;
}

body.page-id-1944 .entry-content > .wp-block-columns p:first-of-type {
  color: #8a5a00;
  font-size: 1.05rem;
  font-weight: 900;
}

body.page-id-1944 .uagb-tabs__wrap {
  overflow: hidden;
  margin-bottom: 42px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(16, 39, 71, 0.08);
  box-shadow: 0 24px 70px rgba(16, 39, 71, 0.1);
}

body.page-id-1944 .uagb-tabs__wrap,
body.page-id-1944 .uagb-tabs__wrap * {
  box-sizing: border-box;
}

body.page-id-1944 .uagb-tabs__panel {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 16px !important;
  background: #eef4fb;
  list-style: none !important;
}

body.page-id-1944 .uagb-tabs__panel li {
  list-style: none !important;
}

body.page-id-1944 .uagb-tab,
body.page-id-1944 .uagb-tabs-list {
  max-width: 100%;
}

body.page-id-1944 .uagb-tabs-list {
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #102747 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  text-decoration: none !important;
  padding: 11px 18px !important;
  border: 1px solid rgba(16, 39, 71, 0.12) !important;
  box-shadow: 0 8px 18px rgba(16, 39, 71, 0.06);
  font-weight: 900 !important;
  line-height: 1.1 !important;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.page-id-1944 .uagb-tabs-list:hover {
  background: #fff8e6 !important;
  border-color: rgba(246, 183, 55, 0.55) !important;
  color: #102747 !important;
  transform: translateY(-1px);
}

body.page-id-1944 .uagb-tab.hom-tab-active .uagb-tabs-list,
body.page-id-1944 .uagb-tab.uagb-tabs__active .uagb-tabs-list,
body.page-id-1944 .uagb-tabs-list[aria-selected="true"],
body.page-id-1944 .uagb-tabs-list.uagb-tabs__active {
  background: linear-gradient(135deg, #102747 0%, #0b5fb8 100%) !important;
  color: #ffffff !important;
  border-color: rgba(246, 183, 55, 0.7) !important;
  box-shadow: 0 12px 26px rgba(16, 39, 71, 0.22);
}

body.page-id-1944 .uagb-tab.hom-tab-active .uagb-tabs-list *,
body.page-id-1944 .uagb-tab.uagb-tabs__active .uagb-tabs-list *,
body.page-id-1944 .uagb-tabs-list[aria-selected="true"] * {
  color: #ffffff !important;
}

body.page-id-1944 .uagb-tabs__body-wrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  padding: clamp(16px, 2.4vw, 28px) !important;
  background: #ffffff !important;
  color: var(--hom-ink) !important;
}

body.page-id-1944 .uagb-tabs__body-container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  display: none !important;
}

body.page-id-1944 .uagb-tabs__body-container.hom-tab-active {
  display: block !important;
}

body.page-id-1944 .uagb-tabs__body-wrap details {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  background: #f8fafc !important;
  color: var(--hom-ink) !important;
}

body.page-id-1944 .uagb-tabs__body-wrap summary,
body.page-id-1944 .uagb-tabs__body-wrap p {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  color: var(--hom-ink) !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  white-space: normal !important;
  hyphens: auto;
  box-sizing: border-box !important;
}

body.page-id-1944 .uagb-inner-tab-4,
body.page-id-1944 .uagb-tabs__panel .uagb-tab:has(a[href="#uagb-tabs__tab4"]) {
  display: none !important;
}

body.page-id-1944 .uagb-tabs__panel .uagb-tab {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
}

body.page-id-1944 .uagb-tabs-list {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.page-id-1944 .uagb-tabs-list div {
  color: inherit !important;
  white-space: nowrap !important;
}

body.page-id-1944 .uagb-tabs__body-wrap details {
  cursor: pointer;
}

body.page-id-1944 .uagb-tabs__body-wrap summary {
  list-style: none;
  position: relative;
  padding-right: 44px;
}

body.page-id-1944 .uagb-tabs__body-wrap summary::-webkit-details-marker {
  display: none;
}

body.page-id-1944 .uagb-tabs__body-wrap summary::after {
  content: "+";
  position: absolute;
  top: 0;
  right: 0;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #102747;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
}

body.page-id-1944 .uagb-tabs__body-wrap details[open] summary::after {
  content: "-";
  background: #0b5fb8;
}

body.page-id-1944 .hom-details-preview {
  display: -webkit-box;
  margin-top: 12px;
  color: #475467;
  line-height: 1.65;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.page-id-1944 .uagb-tabs__body-wrap details[open] .hom-details-preview {
  display: none;
}

body.page-id-1944 .uagb-block-4c86bb41 .uagb-tabs__panel {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
}

body.page-id-1944 .uagb-block-4c86bb41 .uagb-tabs__panel > .uagb-tab {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: max-content !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-id-1944 .uagb-block-4c86bb41 .uagb-tabs__panel > .uagb-tab > .uagb-tabs-list {
  width: auto !important;
  min-width: max-content !important;
  max-width: none !important;
  padding: 12px 18px !important;
  overflow: visible !important;
}

body.page-id-1944 .uagb-block-4c86bb41 .uagb-tabs__panel > .uagb-tab > .uagb-tabs-list,
body.page-id-1944 .uagb-block-4c86bb41 .uagb-tabs__panel > .uagb-tab > .uagb-tabs-list > div {
  white-space: nowrap !important;
}

body.page-id-1944 .uagb-tabs__body-wrap details:not([open]) > :not(summary) {
  display: none !important;
}

body.page-id-1944 .uagb-tabs__body-wrap details:not([open]) summary .hom-details-preview {
  display: -webkit-box !important;
}

.hom-activities {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(46px, 7vw, 84px) clamp(18px, 4vw, 48px);
  background: #f8fafc;
}

.hom-activities__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.hom-activities__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.75fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.hom-activities__intro h2 {
  margin: 0;
  color: var(--hom-ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  text-transform: none !important;
}

.hom-activities__intro p:not(.hom-kicker) {
  margin: 0;
  color: var(--hom-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hom-activities__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.hom-activity-card {
  overflow: hidden;
  border: 1px solid var(--hom-line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.08);
}

.hom-activity-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hom-activity-card div {
  padding: 18px;
}

.hom-activity-card span {
  color: var(--hom-gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hom-activity-card h3 {
  margin: 8px 0 8px;
  color: var(--hom-ink);
  font-size: 1.12rem;
  line-height: 1.2;
  text-transform: none !important;
}

.hom-activity-card p {
  margin: 0;
  color: var(--hom-muted);
  line-height: 1.58;
}

body.page-id-220 .entry-content > .wp-block-uagb-container:first-of-type {
  display: none !important;
}

body.page-id-220 .entry-content > .wp-block-uagb-container:not(.hom-page-hero) {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto 24px !important;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(23, 32, 51, 0.08);
}

body.page-id-220 .uagb-block-0452d32b > .uagb-container-inner-blocks-wrap,
body.page-id-220 .uagb-block-0452d32b .wp-block-group.is-nowrap {
  width: 100% !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
}

body.page-id-220 .uagb-block-0452d32b > .uagb-container-inner-blocks-wrap {
  display: grid !important;
  grid-template-columns: minmax(300px, 0.55fr) minmax(420px, 1fr);
  gap: 24px;
  align-items: start;
}

body.page-id-220 .uagb-block-0452d32b .wp-block-group.is-nowrap {
  display: block !important;
  padding: 0 !important;
}

body.page-id-220 .uagb-block-6733f2c0 {
  border-radius: 14px;
  background: #102747;
  color: #ffffff;
}

body.page-id-220 .uagb-block-6733f2c0 h2,
body.page-id-220 .uagb-block-6733f2c0 h3,
body.page-id-220 .uagb-block-6733f2c0 .uagb-icon-list__label {
  color: #ffffff !important;
}

body.page-id-220 .uagb-block-6733f2c0 svg,
body.page-id-220 .uagb-icon-list__source-wrap svg {
  width: 18px !important;
  height: 18px !important;
  fill: #f4c75f !important;
}

body.page-id-220 .uagb-icon-list__source-wrap {
  width: 24px !important;
  min-width: 24px !important;
}

body.page-id-220 .wpforms-container {
  max-width: none !important;
  margin: 0 !important;
  width: 100% !important;
}

body.page-id-220 .uagb-block-558710cf {
  overflow: hidden;
}

body.page-id-220 .uagb-block-558710cf embed {
  display: block;
  width: 100%;
  border-radius: 16px;
}

body.page-id-220 .wpforms-container,
body.page-id-220 .uagb-block-6733f2c0 {
  padding: clamp(18px, 3vw, 30px);
}

body.page-id-220 .wpforms-field input,
body.page-id-220 .wpforms-field textarea {
  min-height: 46px;
  border: 1px solid var(--hom-line) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: var(--hom-ink) !important;
  box-shadow: none !important;
}

body.page-id-220 .wpforms-field-label,
body.page-id-220 .wpforms-field-sublabel,
body.page-id-220 .wpforms-field-description,
body.page-id-220 .wpforms-field-label-inline {
  color: var(--hom-ink) !important;
}

body.page-id-220 .wpforms-field {
  padding-block: 9px !important;
}

body.page-id-220 .wpforms-submit {
  border-radius: 999px !important;
  background: #102747 !important;
  color: #ffffff !important;
}

.hom-site-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(44px, 6vw, 72px) clamp(18px, 4vw, 48px) 24px;
  background:
    linear-gradient(135deg, rgba(16,39,71,0.98), rgba(14,82,126,0.96)),
    #102747;
  color: #ffffff;
}

.hom-site-footer__inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, 0.7fr));
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.hom-site-footer__brand img {
  width: 64px;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter: none;
}

.hom-site-footer__brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hom-site-footer__brand-mark strong {
  display: block;
  color: #ffffff;
  font-size: 1.28rem;
  line-height: 1.1;
}

.hom-site-footer__brand-mark span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.74);
  font-size: 0.84rem;
  line-height: 1.35;
}

.hom-site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hom-site-footer__social a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255,255,255,0.07);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.hom-site-footer__social a:hover {
  transform: translateY(-2px);
  border-color: #f4c75f;
  color: #f4c75f;
  background: rgba(244,199,95,0.12);
}

.hom-site-footer__social a[href*="facebook.com"] {
  color: #1877f2;
  background: rgba(24, 119, 242, 0.14);
  border-color: rgba(24, 119, 242, 0.42);
}

.hom-site-footer__social a[href*="twitter.com"],
.hom-site-footer__social a[href*="x.com"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
}

.hom-site-footer__social a[href*="youtube.com"] {
  color: #ff0000;
  background: rgba(255, 0, 0, 0.14);
  border-color: rgba(255, 0, 0, 0.42);
}

.hom-site-footer__social a[href^="mailto:"] {
  color: #f4c75f;
  background: rgba(244, 199, 95, 0.14);
  border-color: rgba(244, 199, 95, 0.42);
}

.hom-site-footer__social svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.hom-site-footer__social span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hom-site-footer p {
  margin: 14px 0 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
}

.hom-site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1rem;
  text-transform: none !important;
}

.hom-site-footer__nav a {
  display: block;
  width: fit-content;
  margin-top: 10px;
  color: rgba(255,255,255,0.78);
  font-weight: 700;
  text-decoration: none;
}

.hom-site-footer__nav a:hover {
  color: #f4c75f;
}

.hom-site-footer__button {
  margin-top: 18px;
}

.hom-site-footer__bottom {
  max-width: 1180px;
  margin: 36px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.62);
  font-size: 0.9rem;
}

.hom-home-actions {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 clamp(18px, 4vw, 48px) clamp(44px, 6vw, 76px);
  background: #ffffff;
}

.hom-home-actions__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.hom-action-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--hom-line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: var(--hom-ink);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.hom-action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 164, 65, 0.55);
  box-shadow: 0 18px 38px rgba(23, 32, 51, 0.12);
}

.hom-action-card span {
  color: var(--hom-gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.hom-action-card strong {
  display: block;
  margin-top: 28px;
  color: var(--hom-ink);
  font-size: 1.15rem;
  line-height: 1.2;
}

.hom-action-card em {
  display: block;
  margin-top: 10px;
  color: var(--hom-muted);
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.55;
}

/* Light polish for existing editable page cards without changing layout. */
.uagb-infobox__content-wrap,
.parish-card,
.uagb-post__inner-wrap {
  border-radius: 12px !important;
}

.parish-card,
.uagb-post__inner-wrap {
  border: 1px solid var(--hom-line);
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.06);
}

.parish-card iframe,
.parish-card embed,
.uagb-google-map__iframe {
  border-radius: 10px;
}

@media (max-width: 900px) {
  .hom-live-updates__top,
  .hom-updates-grid,
  .hom-home-actions__inner,
  .hom-value-band,
  .hom-service-grid,
  .hom-activities__intro,
  .hom-activities__grid,
  .hom-site-footer__inner {
    grid-template-columns: 1fr;
  }

  .hom-live-updates__intro {
    max-width: 680px;
  }

  .hom-visit-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .hom-home-contact__inner,
  .hom-parish-tools,
  body.page-id-220 .uagb-block-0452d32b > .uagb-container-inner-blocks-wrap,
  body.page-id-220 .uagb-block-0452d32b .wp-block-group.is-nowrap,
  body.page-id-1944 .entry-content > .wp-block-columns:nth-of-type(1),
  body.page-id-1944 .entry-content > .wp-block-columns:nth-of-type(2) {
    grid-template-columns: 1fr;
  }

  body.home .custom-logo-link::before,
  body:not(.home) .custom-logo-link::before {
    width: 176px;
    height: 50px;
  }
}

@media (max-width: 544px) {
  body.home .site-primary-header-wrap,
  body:not(.home) .site-primary-header-wrap {
    padding-inline: 14px;
  }

  body.home .custom-logo-link::before,
  body:not(.home) .custom-logo-link::before {
    width: 150px;
    height: 44px;
  }

  .hom-modern-hero {
    min-height: 650px;
  }

  .hom-modern-hero__content {
    padding: 48px 18px;
  }

  .hom-modern-hero h1 {
    font-size: 2.7rem;
  }

  .hom-modern-hero__button {
    width: 100%;
  }

  .hom-live-updates {
    padding: 34px 16px;
  }

  .hom-live-updates h2 {
    font-size: 2rem;
  }

  .hom-page-hero__content {
    padding: 54px 18px;
  }

  .hom-page-hero h1 {
    font-size: 2.45rem;
  }

  .hom-value-band,
  .hom-service-grid,
  .hom-parish-jump,
  .hom-visit-panel,
  .hom-site-footer {
    padding-inline: 16px;
  }
}
