/*
 * Catholic Diocese of Ngong — consolidated stylesheet
 * Order preserved from the original file so all overrides still apply.
 * Palette is controlled from :root.
 */
:root {
  --burgundy: #7A1F1F;
  --burgundy-dark: #4E1111;
  --burgundy-soft: #A05454;
  --gold: #C8A24A;
  --ivory: #F8F5EE;
  --charcoal: #333333;
  --line: #E6DED1;
  --muted: #6C655C;
  --white: #FFFFFF;
  --navy: var(--burgundy);
  --navy-deep: var(--burgundy-dark);
  --blue: var(--burgundy);
  --blue-dark: #651919;
  --blue-pale: #F4E7E3;
  --red: var(--burgundy-soft);
  --ink: var(--charcoal);
  --paper: var(--white);
  --soft: var(--ivory);
  --shadow: 0 20px 54px rgba(58,12,12,.18);
  --radius: 18px;
  --container: 1220px;
  --serif: Georgia,"Times New Roman",serif;
  --sans: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --content-narrow: 760px;
  --shadow-soft: 0 12px 34px rgba(78,17,17,.09);
  --shadow-float: 0 28px 72px rgba(78,17,17,.20);
  --live: #A8444B;
  --live-soft: #F8E9EA;
  --surface: #FFFFFF;
  --surface-alt: #F8F5EE;
  --purple: #A05454;
  --purple-soft: #F0EBE4;
  --font-display: Georgia,"Times New Roman",serif;
  --font-body: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --space-1: .35rem;
  --space-2: .6rem;
  --space-3: .9rem;
  --space-4: 1.25rem;
  --space-5: 1.75rem;
  --space-6: 2.5rem;
  --space-7: 3.5rem;
  --space-8: 5rem;
  --text-measure: 68ch;
  --touch: 46px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --header-height: 92px;
  --ngd-logo-holder-width: 304px;
  --ngd-logo-holder-height: 116px;
  --quick-access-height: 34px;
  --ngd-quick-height: 30px;
  --ngd-quick-label-gap: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.nav-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid #C8A24A;
  outline-offset: 3px;
}

.container {
  width: min(var(--container),calc(100% - 2rem));
  margin: auto;
}

.skip {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 6000;
  padding: .75rem 1rem;
  background: #fff;
  color: var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.skip:focus { top: 1rem; }

.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3, h4 {
  line-height: 1.12;
  color: var(--navy-deep);
  margin-top: 0;
}
h1 { font-size: clamp(2.7rem,6vw,5.25rem); }
h2 { font-size: clamp(2rem,4vw,3.25rem); }
h3 { font-size: 1.38rem; }
p { margin: 0 0 1rem; }

.lead { font-size: clamp(1.05rem,2vw,1.25rem); }
.muted { color: var(--muted); }

.eyebrow {
  margin: 0 0 .45rem;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.soft { background: var(--soft); }

.grid { display: grid; gap: 1.4rem; }
.grid2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid4 { grid-template-columns: repeat(4,minmax(0,1fr)); }

.flex { display: flex; align-items: center; gap: .8rem; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: .79rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.btn:hover { color: #fff; }
.btn-red:hover { background: #9d222a; }

.btn-light {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.btn-light:hover {
  background: var(--soft);
  color: var(--navy);
}

.btn-sm {
  min-height: 37px;
  padding: .47rem .82rem;
  font-size: .7rem;
}

.tag {
  display: inline-flex;
  padding: .24rem .58rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  justify-content: space-between;
}
.brand {
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--navy);
}
.brand img {
  width: 54px;
  height: 66px;
}
.primary-nav {
  display: flex;
  align-items: center;
}
.nav-item {
  position: relative;
  align-items: center;
}
.nav-link {
  padding: .72rem .44rem .72rem .7rem;
  color: var(--navy-deep);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 850;
  border-radius: 6px 0 0 6px;
}
.nav-item:hover>.nav-link,
.nav-item.open>.nav-link,
.nav-link.active {
  background: var(--blue-pale);
  color: var(--blue);
}
.header-actions {
  display: flex;
  align-items: center;
}
.circle {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
}
.menu-toggle { display: none; }

.mega-menu {
  display: none;
  position: fixed;
  z-index: 2400;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid var(--line);
}
.nav-item.open .mega-menu,
.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu { display: block; }

.mega-grid { display: grid; }
.mega-group h3 {
  font: 900 .72rem/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.mega-links { display: grid; }
.mega-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 760;
}
.mega-links a:hover { color: var(--blue); }

.quick-access { color: #fff; }
.quick-inner { display: flex; }
.quick-title {
  flex: 0 0 auto;
  color: #E8DCC2;
  font-weight: 900;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,.18);
}
.quick-links {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-links::-webkit-scrollbar { display: none; }
.quick-links a {
  white-space: nowrap;
  border-radius: 6px;
  color: #F8F5EE;
  text-decoration: none;
  font-weight: 800;
}
.quick-links a:hover,
.quick-links a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--navy);
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(58,12,12,.78),rgba(58,12,12,.46) 37%,rgba(58,12,12,.07) 72%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 4.5rem 0 8.1rem;
  color: #fff;
}
.hero-copy h1 {
  max-width: 11ch;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,.3);
  margin-bottom: .8rem;
}
.hero-copy p {
  max-width: 48ch;
  color: #f2f7fa;
}
.hero-copy .btn {
  margin-top: .6rem;
  background: #7A1F1F;
}

.pastoral-wrap {
  position: relative;
  z-index: 10;
  margin-top: -58px;
}
.pastoral-links {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pastoral-links a {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.2rem;
  padding: .8rem;
  border-right: 1px solid rgba(255,255,255,.32);
  color: #fff;
  text-decoration: none;
  text-align: center;
}
.pastoral-links a:last-child { border-right: 0; }
.pastoral-links a:hover { background: var(--blue-dark); }
.pastoral-icon { font-size: 1.5rem; }
.pastoral-label {
  max-width: 44ch;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.2;
}

.page-hero { color: #fff; }
.page-hero h1 { color: #fff; margin-bottom: .7rem; }
.page-hero p { color: #F8F5EE; font-size: 1.1rem; }

.breadcrumb {
  margin-bottom: .9rem;
  color: #F8F5EE;
  font-size: .84rem;
}
.breadcrumb a { color: #fff; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.section-head p { color: var(--muted); }

.panel {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(58,12,12,.06);
}
.card-body { padding: 1.35rem; }
.visual {
  aspect-ratio: 16/9;
  display: grid;
  place-items: end start;
  padding: 1rem;
  color: #fff;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  color: var(--muted);
  font-size: .8rem;
  margin-bottom: .65rem;
}
.text-link { font-weight: 850; text-decoration: none; }
.text-link:after { content: " →"; }

.feature {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-deep);
  color: #fff;
  box-shadow: var(--shadow);
}
.feature-art {
  min-height: 420px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 28%,rgba(255,255,255,.35),transparent 17%),linear-gradient(135deg,#C8A24A,#79672F);
}
.feature-copy {
  align-self: center;
  padding: clamp(2rem,5vw,4.2rem);
}
.feature-copy h2 { color: #fff; }
.feature-copy .eyebrow { color: #C8A24A; }

.event {
  display: flex;
  gap: 1rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}
.event:first-child {
  border-top: 0;
  padding-top: 0;
}
.date {
  width: 70px;
  flex: 0 0 70px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
}
.date b {
  display: block;
  padding: .25rem;
  color: #fff;
  font-size: .7rem;
  letter-spacing: .08em;
}
.date span {
  display: block;
  padding: .35rem;
  font: 700 1.5rem var(--serif);
}

.directory {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.1rem;
}
.directory-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.directory-card dl { margin: 1rem 0; }
.directory-card dt {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.directory-card dd { margin: 0 0 .65rem; }

.toolbar {
  display: grid;
  grid-template-columns: 1.35fr .8fr auto;
  gap: .75rem;
  margin-bottom: 1.4rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(58,12,12,.05);
}

.input, .select, .textarea {
  width: 100%;
  padding: .76rem .84rem;
  border: 1px solid #B8C8BC;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.textarea { min-height: 140px; resize: vertical; }

.form-group { margin-bottom: 1rem; }
.form-group label {
  margin-bottom: .3rem;
  color: var(--navy-deep);
  font-weight: 850;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1rem;
}
.form-status {
  display: none;
  margin-top: 1rem;
  padding: .9rem;
  border: 1px solid #9BC9A8;
  background: #E8F5EB;
  color: #651919;
}
.empty {
  display: none;
  padding: 2rem;
  border: 1px dashed #AABAAF;
  border-radius: 14px;
  text-align: center;
  background: var(--soft);
}
.callout {
  padding: 2rem;
  border: 1px solid #E4D7A2;
  border-radius: var(--radius);
  background: #F5EFCF;
}

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 190px;
  gap: 1rem;
}
.gallery figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 14px;
}
.gallery figure:first-child { grid-row: span 2; }
.gallery figure:nth-child(2) { background: linear-gradient(135deg,#A78C3F,#E6D89E); }
.gallery figure:nth-child(3) { background: linear-gradient(135deg,#A05454,#E2C8A0); }
.gallery figure:nth-child(4) { background: linear-gradient(135deg,#A05454,#E4CC93); }
.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .8rem;
  color: #fff;
  font-size: .83rem;
}

.map {
  min-height: 370px;
  display: grid;
  place-items: center;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  color: #fff;
}
.notice {
  padding: 1rem;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: #F5EFCF;
}

.site-footer {
  padding: 4rem 0 1.4rem;
  color: #F4EDE6;
}
.site-footer h3 {
  color: #fff;
  font-size: 1.08rem;
}
.footer-grid { display: grid; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li+li { margin-top: .4rem; }
.footer-links a { color: #F8F5EE; text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.6rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: .83rem;
}

.search-dialog {
  padding: 0;
  border: 0;
  box-shadow: var(--shadow);
}
.search-dialog::backdrop {
  background: rgba(58,12,12,.74);
  backdrop-filter: blur(4px);
}
.search-results { max-height: 55vh; overflow: auto; }
.search-result {
  padding: .85rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.search-result strong { display: block; color: var(--navy); }

.back {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1600;
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}
.back.visible { display: grid; place-items: center; }

/* ---------- Responsive (base) ---------- */
@media (max-width:1080px) {
  .primary-nav { display: none; }
  .menu-toggle { display: grid; }
  .primary-nav.mobile {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    top: 92px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem;
    background: #fff;
    overflow: auto;
  }
  .primary-nav.mobile .nav-item {
    display: grid;
    grid-template-columns: 1fr 46px;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav.mobile .nav-link { padding: 1rem; }
  .primary-nav.mobile .mega-menu {
    position: static;
    grid-column: 1/-1;
    transform: none;
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: .7rem;
  }
  .primary-nav.mobile .mega-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .nav-item:hover .mega-menu { display: none; }
  .nav-item.open .mega-menu { display: block; }
  .quick-access { top: 92px; }
  .pastoral-links { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .pastoral-links a:nth-child(3) { border-right: 0; }
  .pastoral-links a:nth-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,.3); }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .directory { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width:790px) {
  .grid4, .grid3, .grid2, .feature, .form-grid { grid-template-columns: 1fr; }
  .feature-art { min-height: 340px; }
  .section { padding: 4rem 0; }
  .toolbar { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .hero { min-height: 560px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: 1/-1; grid-row: auto; }
}

@media (max-width:620px) {
  .header-inner { min-height: 78px; }
  .brand { min-width: auto; }
  .brand img { width: 43px; height: 52px; }
  .header-actions .btn-red { display: none; }
  .primary-nav.mobile { top: 78px; }
  .quick-access { top: 78px; }
  .quick-title { display: none; }
  .hero { min-height: 530px; }
  .hero-copy { padding: 3.5rem 0 7.6rem; }
  .pastoral-links {
    grid-template-columns: repeat(2,minmax(0,1fr));
    border-radius: 22px 22px 0 0;
  }
  .pastoral-links a { border-bottom: 1px solid rgba(255,255,255,.3); }
  .pastoral-links a:nth-child(2n) { border-right: 0; }
  .pastoral-links a:nth-last-child(-n+2) { border-bottom: 0; }
  .pastoral-links a:nth-child(3) { border-right: 1px solid rgba(255,255,255,.3); }
  .directory, .footer-grid, .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .primary-nav.mobile .mega-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Additions (logos, fact strip, timeline, etc.) ---------- */
.brand-logo { display: block; }
.footer-logo { display: block; }

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(58,12,12,.06);
}
.fact {
  padding: 1.25rem;
  text-align: center;
  border-right: 1px solid var(--line);
}
.fact:last-child { border-right: 0; }
.fact strong {
  display: block;
  color: var(--blue);
  font: 700 clamp(1.65rem,3vw,2.35rem)/1 var(--serif);
}
.fact span {
  display: block;
  margin-top: .35rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.timeline { display: grid; gap: 1rem; }
.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.timeline-year {
  color: var(--blue);
  font: 700 1.5rem/1 var(--serif);
}

.value-list {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: .8rem;
}
.value-item {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.value-item strong {
  display: block;
  color: var(--navy-deep);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.source-note {
  padding: .8rem 1rem;
  border-radius: 8px;
  background: #F0EBE4;
  color: #6A5F52;
  font-size: .82rem;
}

.profile-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .8rem 1.4rem;
  margin: 1.2rem 0;
}
.profile-list div {
  padding-bottom: .7rem;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.profile-list strong {
  display: block;
  color: #C8A24A;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.news-feature {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-deep);
  color: #fff;
  box-shadow: var(--shadow);
}
.news-feature-copy { align-self: center; padding: clamp(2rem,5vw,4rem); }
.news-feature h2 { color: #fff; }
.news-feature-art {
  min-height: 400px;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: radial-gradient(circle at 50% 45%,rgba(255,255,255,.3),transparent 20%),linear-gradient(135deg,#c99a2b,#76591b);
}

.contact-card {
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.contact-card strong {
  display: block;
  color: var(--blue);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width:900px) {
  .fact-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .value-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .news-feature { grid-template-columns: 1fr; }
}

@media (max-width:620px) {
  .brand-logo {
    width: 185px !important;
    height: 58px !important;
    max-width: 55vw;
  }
  .fact-strip, .value-list, .profile-list { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .timeline-item { grid-template-columns: 1fr; }
}

/* ---------- Nav triggers + mobile specifics ---------- */
.nav-item { display: block; }
.nav-menu-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--navy-deep);
  font-weight: 850;
  white-space: nowrap;
}
.nav-menu-trigger:hover,
.nav-menu-trigger.active,
.nav-item.open>.nav-menu-trigger {
  background: var(--blue-pale);
  color: var(--blue);
}
.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu { display: none; }
.nav-item.open .mega-menu { display: block; }
.mega-menu { pointer-events: auto; }
.mega-menu a { position: relative; z-index: 1; }

@media (max-width:1080px) {
  .primary-nav.mobile .nav-item {
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav.mobile .nav-menu-trigger {
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: 1rem;
    text-align: left;
  }
  .primary-nav.mobile .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: .7rem;
  }
}

/* ---------- Colour & visual refinements ---------- */
.site-footer { background: #4E1111; }

.page-hero {
  background: radial-gradient(circle at 78% 24%,rgba(182,155,72,.28),transparent 20%),linear-gradient(120deg,#4E1111,#7A1F1F);
}
.feature, .news-feature { background: #4E1111; }
.date b { background: #7A1F1F; }
.tag { background: #F4E7E3; color: #651919; }

.visual {
  background: linear-gradient(0deg,rgba(78,17,17,.72),rgba(78,17,17,.08)),
              linear-gradient(135deg,#7A1F1F,#E2C8A0);
}
.visual.gold {
  background: linear-gradient(0deg,rgba(78,17,17,.72),rgba(78,17,17,.08)),
              linear-gradient(135deg,#A78C3F,#E6D89E);
}
.visual.green {
  background: linear-gradient(0deg,rgba(78,17,17,.72),rgba(78,17,17,.08)),
              linear-gradient(135deg,#A05454,#E2C8A0);
}

.site-header { box-shadow: 0 1px 0 var(--line); }
.primary-nav { gap: .92rem; }
.nav-menu-trigger { min-height: 46px; padding: .75rem .76rem; }
.header-actions { gap: .6rem; }
.circle { width: 42px; height: 42px; }
.btn { padding: .74rem 1.15rem; }
.btn-red { box-shadow: 0 8px 22px rgba(143,75,79,.20); }

.quick-access {
  position: relative;
  top: auto;
  z-index: 900;
  background: #4E1111;
}
.quick-links a {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
}
.qa-icon { font-size: .9rem; opacity: .9; }

.nav-backdrop {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 1850;
  background: rgba(20,31,24,.38);
  backdrop-filter: blur(2px);
}
.nav-backdrop[hidden] { display: none; }

.mega-menu {
  top: var(--header-height);
  overflow: hidden;
  border-color: #d3e0d6;
  box-shadow: var(--shadow-float);
}
.mega-shell { grid-template-columns: 285px 1fr; }
.mega-group h3 { padding-bottom: .55rem; }
.mega-links a {
  display: block;
  border: 1px solid transparent;
}
.mega-links a span {
  display: block;
  font-weight: 850;
  color: #333333;
}
.mega-links a small {
  display: block;
  color: #6C655C;
  line-height: 1.38;
  font-weight: 500;
}
.mega-close {
  position: absolute;
  z-index: 3;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #4E1111;
  font-size: 1.3rem;
}
body.mega-open { overflow: hidden; }

html { scrollbar-gutter: stable; }

/* ---------- Page hero + on-page nav ---------- */
.page-hero { padding: 3.8rem 0 3.4rem; }
.page-hero h1 {
  font-size: clamp(2.35rem,4.5vw,4rem);
  max-width: 14ch;
}
.page-hero p { max-width: 64ch; }

.on-page-nav {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.on-page-nav .container {
  display: flex;
  gap: .45rem;
  overflow: auto;
  padding: .7rem 0;
  scrollbar-width: none;
}
.on-page-nav .container::-webkit-scrollbar { display: none; }
.on-page-nav a {
  white-space: nowrap;
  padding: .5rem .75rem;
  border-radius: 999px;
  background: #F8F5EE;
  color: #4E1111;
  text-decoration: none;
  font-size: .76rem;
  font-weight: 800;
}
.on-page-nav a:hover {
  background: #F4E7E3;
  color: #651919;
}

.section { padding: 4.5rem 0; }
.section-head h2 { margin-bottom: .55rem; }

.card, .panel, .directory-card, .callout { box-shadow: var(--shadow-soft); }
.card, .panel, .directory-card {
  transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.card:hover, .panel:hover, .directory-card:hover {
  box-shadow: 0 18px 40px rgba(78,17,17,.12);
  border-color: #bfd2c4;
}
.text-link { display: inline-flex; align-items: center; gap: .2rem; }

.verified {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .8rem;
  color: #6C655C;
  font-size: .74rem;
}
.verified::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #F4E7E3;
  color: #651919;
  font-weight: 900;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding: .42rem .7rem;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  background: rgba(78,17,17,.38);
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.45rem;
}
.btn-ghost {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.58);
  color: #fff;
}
.btn-ghost:hover {
  background: #fff;
  color: #4E1111;
}

.pastoral-links { border-radius: 22px; }
.pastoral-links a {
  min-height: 108px;
  transition: background .18s ease,transform .18s ease;
}
.pastoral-links a:hover { transform: translateY(-2px); }
.pastoral-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
}

.compact-facts { margin-top: 1.2rem; }
.compact-facts .fact { padding: 1rem; }
.compact-facts .fact strong { font-size: 1.85rem; }

/* ---------- Bishop editorial ---------- */
.bishop-editorial {
  display: grid;
  grid-template-columns: 360px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.bishop-photo {
  min-height: 440px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg,#F4E7E3,#F5EFCF);
}
.bishop-copy {
  align-self: center;
  padding: clamp(2rem,5vw,4.2rem);
}
.bishop-quote {
  padding-left: 1.2rem;
  border-left: 4px solid #C8A24A;
  color: #33483a;
  font-family: var(--serif);
  font-size: 1.3rem;
}

/* ---------- Editorial news ---------- */
.editorial-news {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 1.3rem;
}
.feature-story {
  min-height: 520px;
  display: flex;
  align-items: end;
  padding: 2rem;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(0deg,rgba(78,17,17,.92),rgba(78,17,17,.06)),
              linear-gradient(135deg,#7A1F1F,#A05454);
}
.feature-story h2 {
  color: #fff;
  font-size: clamp(2rem,4vw,3.2rem);
  max-width: 13ch;
}
.feature-story p {
  max-width: 54ch;
  color: #F8F5EE;
}
.story-stack { display: grid; gap: 1.3rem; }
.story-compact {
  display: grid;
  grid-template-columns: 130px 1fr;
  min-height: 150px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.story-thumb { background: linear-gradient(135deg,#C8A24A,#E6D89E); }
.story-thumb.alt { background: linear-gradient(135deg,#A05454,#E4CC93); }
.story-copy { padding: 1.15rem; }
.story-copy h3 { font-size: 1.15rem; margin-bottom: .4rem; }

/* ---------- Home services / finders ---------- */
.home-service-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1rem;
}
.home-service {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: #333333;
  box-shadow: var(--shadow-soft);
}
.home-service:hover {
  transform: translateY(-2px);
  color: #4E1111;
}
.home-service-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #F4E7E3;
  color: #651919;
  font-size: 1.15rem;
}
.home-service strong { display: block; color: #4E1111; }
.home-service span:last-child {
  display: block;
  color: #6C655C;
  font-size: .78rem;
  line-height: 1.45;
}

.event-finder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.mass-finder-card {
  padding: 2rem;
  border-radius: 22px;
  background: radial-gradient(circle at 88% 14%,rgba(182,155,72,.28),transparent 24%),
              linear-gradient(145deg,#4E1111,#295F40);
  color: #fff;
}
.mass-finder-card h2 { color: #fff; }
.mass-finder-card p { color: #dbe9df; }

.home-final-cta {
  padding: 2.3rem;
  border-radius: 22px;
  background: #F5EFCF;
  border: 1px solid #E4D7A2;
}

/* ---------- Search ---------- */
.search-dialog {
  width: min(820px,calc(100% - 2rem));
  border-radius: 20px;
}
.search-box { padding: 1.5rem; }
.search-popular {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}
.search-popular a {
  padding: .45rem .68rem;
  border-radius: 999px;
  background: #F4E7E3;
  color: #651919;
  text-decoration: none;
  font-size: .75rem;
  font-weight: 800;
}
.clear-filters {
  border: 0;
  background: transparent;
  color: #651919;
  font-weight: 850;
  text-decoration: underline;
}

.directory-card { position: relative; }
.directory-card .text-link { margin-top: .4rem; }
.directory-card::after {
  content: "Last verified: prototype";
  display: block;
  margin-top: .8rem;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
  color: #6C655C;
  font-size: .72rem;
}

.site-footer { padding-top: 3.4rem; }
.footer-newsletter {
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.05);
}
.footer-newsletter .input { margin-bottom: .55rem; }

@media (max-width:1080px) {
  .mega-shell { grid-template-columns: 1fr; }
  .mega-groups { padding: 1rem; }
  .nav-backdrop { top: var(--header-height); }
  .quick-links { justify-content: flex-start; }
}

@media (max-width:880px) {
  .editorial-news,
  .event-finder,
  .bishop-editorial { grid-template-columns: 1fr; }
  .bishop-photo { min-height: 340px; }
  .home-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width:620px) {
  :root { --header-height: 78px; }
  .brand-logo {
    width: 180px !important;
    height: 58px !important;
    max-width: 54vw;
  }
  .quick-title { display: none; }
  .quick-links a { padding: .5rem .62rem; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-close { top: .7rem; right: .7rem; }
  .home-hero { min-height: 580px; }
  .home-hero .hero-copy { padding: 4rem 0 8.5rem; }
  .home-service-grid { grid-template-columns: 1fr; }
  .editorial-news { gap: 1rem; }
  .feature-story { min-height: 430px; padding: 1.4rem; }
  .story-compact { grid-template-columns: 100px 1fr; }
  .event-finder { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width:1080px) {
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Mega menu final layout ---------- */
.mega-menu {
  width: min(1120px,calc(100vw - 2rem));
  padding: 0;
  background: #fff;
  border-radius: 0 0 18px 18px;
}
.mega-shell {
  display: block;
  min-height: 0;
}
.mega-groups {
  padding: 1.45rem 1.55rem 1.65rem;
  background: #fff;
  max-height: min(68vh,620px);
  overflow: auto;
}
.mega-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.3rem 1.6rem;
}
.mega-group { min-width: 0; }
.mega-group h3 {
  margin: 0 0 .55rem;
  padding: 0 0 .55rem;
  border-bottom: 2px solid #F4E7E3;
  color: #651919;
}
.mega-links { gap: .18rem; }
.mega-links a {
  padding: .62rem .66rem;
  border-radius: 8px;
}
.mega-links a:hover {
  transform: none;
  background: #F8F5EE;
  border-color: #E6DED1;
}
.mega-links a span { font-size: .88rem; }
.mega-links a small {
  margin-top: .08rem;
  font-size: .73rem;
}
.mega-close {
  top: .72rem;
  right: .78rem;
  width: 36px;
  height: 36px;
  box-shadow: 0 4px 12px rgba(78,17,17,.08);
}
.mega-links a[href$="about.html"],
.mega-links a[href$="bishop.html"],
.mega-links a[href$="the-bishop/"],
.mega-links a[href$="the-bishop.html"],
.mega-links a[href$="offices-ministries.html"],
.mega-links a[href$="parishes.html"],
.mega-links a[href$="clergy-vocations.html"],
.mega-links a[href$="institutions.html"] {
  background: transparent;
}
@media (max-width:1080px) {
  .mega-groups { padding: .9rem; max-height: none; }
  .mega-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px) {
  .mega-grid { grid-template-columns: 1fr; }
  .mega-close {
    position: sticky;
    top: .35rem;
    margin-left: auto;
    display: grid;
  }
}

/* ---------- Icon cards, details, schedules ---------- */
.icon-card-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1rem;
}
.icon-card {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.icon-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #F4E7E3;
  color: #651919;
  font-size: 1.15rem;
}
.icon-card h3 { margin-bottom: .35rem; }
.icon-card p {
  margin-bottom: .4rem;
  color: #6C655C;
  font-size: .88rem;
}

.section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
}

.detail-hero {
  padding: 4.6rem 0;
  background: radial-gradient(circle at 80% 20%,rgba(182,155,72,.28),transparent 22%),
              linear-gradient(130deg,#4E1111,#7A1F1F);
  color: #fff;
}
.detail-hero h1 { color: #fff; max-width: 15ch; }
.detail-hero p { max-width: 66ch; color: #F8F5EE; }
.detail-hero .breadcrumb { color: #F8F5EE; }
.detail-hero .breadcrumb a { color: #fff; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(280px,.7fr);
  gap: 1.5rem;
  align-items: start;
}
.detail-sidebar {
  position: sticky;
  display: grid;
  gap: 1rem;
}

.info-list { margin: 0; }
.info-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: .8rem;
  padding: .72rem 0;
  border-top: 1px solid var(--line);
}
.info-list div:first-child { border-top: 0; }
.info-list dt {
  color: #6C655C;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.info-list dd { margin: 0; color: #333333; }

.profile-banner {
  display: grid;
  place-items: end start;
  padding: 1.4rem;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(0deg,rgba(78,17,17,.88),rgba(78,17,17,.06)),
              linear-gradient(135deg,#A05454,#E2C8A0);
}
.profile-banner h2 { color: #fff; margin: 0; }
.profile-banner p { color: #eaf2ec; margin: .35rem 0 0; }

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .8rem;
}
.schedule-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.schedule-card strong { display: block; color: #651919; }
.schedule-card span { color: #6C655C; font-size: .82rem; }

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.download-card strong { display: block; color: #4E1111; }
.download-card span { display: block; color: #6C655C; font-size: .77rem; }
.file-badge {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #F5EFCF;
  color: #79672F;
  font-weight: 900;
}

/* ---------- Publications & filters ---------- */
.publication-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1rem;
}
.publication-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.publication-cover {
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(145deg,#4E1111,#7A1F1F);
}
.publication-cover.gold { background: linear-gradient(145deg,#79672F,#C8A24A); }
.publication-cover.purple { background: linear-gradient(145deg,#7A1F1F,#A05454); }
.publication-body { padding: 1rem; }
.publication-body h3 { font-size: 1.17rem; margin-bottom: .4rem; }

.filter-pills { display: flex; gap: .45rem; flex-wrap: wrap; }
.filter-pill {
  padding: .5rem .72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4E1111;
  font-size: .75rem;
  font-weight: 850;
}
.filter-pill.active,
.filter-pill:hover {
  background: #F4E7E3;
  border-color: #BFD2C4;
}

/* ---------- School / programs ---------- */
.school-hero-panel {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  overflow: hidden;
  border-radius: 22px;
  background: #4E1111;
  color: #fff;
  box-shadow: var(--shadow-float);
}
.school-hero-copy {
  align-self: center;
  padding: clamp(2rem,5vw,4rem);
}
.school-hero-copy h2 { color: #fff; }
.school-hero-visual {
  min-height: 390px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 30%,rgba(255,255,255,.28),transparent 20%),
              linear-gradient(145deg,#A05454,#E2C8A0);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1rem;
}
.program-card {
  padding: 1.1rem;
  border-top: 4px solid #7A1F1F;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.program-card:nth-child(2) { border-color: #C8A24A; }
.program-card:nth-child(3) { border-color: #A05454; }
.program-card:nth-child(4) { border-color: #7A1F1F; }

/* ---------- Calendar ---------- */
.event-view-controls { display: flex; gap: .4rem; }
.view-button {
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #4E1111;
  font-weight: 850;
}
.view-button.active {
  background: #4E1111;
  color: #fff;
  border-color: #4E1111;
}

.calendar-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.calendar-head {
  display: grid;
  grid-template-columns: repeat(7,minmax(120px,1fr));
  background: #4E1111;
  color: #fff;
}
.calendar-head span {
  padding: .7rem;
  text-align: center;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7,minmax(120px,1fr));
}
.calendar-day {
  min-height: 128px;
  padding: .6rem;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: #fff;
}
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.muted { background: #FAF7F1; color: #9AA39D; }
.calendar-number {
  display: block;
  margin-bottom: .4rem;
  font-weight: 900;
}
.calendar-event {
  display: block;
  margin-top: .35rem;
  padding: .4rem .45rem;
  border-radius: 7px;
  background: #F4E7E3;
  color: #651919;
  text-decoration: none;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.25;
}
.calendar-event.gold { background: #F5EFCF; color: #79672F; }
.calendar-event.purple { background: #F0EBE4; color: #7A1F1F; }

.event-list-card {
  display: grid;
  grid-template-columns: 105px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.event-list-card + .event-list-card { margin-top: .8rem; }
.event-date-large {
  text-align: center;
  padding: .7rem;
  border-radius: 12px;
  background: #F4E7E3;
  color: #4E1111;
}
.event-date-large strong { display: block; font: 700 2rem/1 var(--serif); }
.event-date-large span {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-badge {
  display: inline-flex;
  padding: .26rem .55rem;
  border-radius: 999px;
  background: #F4E7E3;
  color: #651919;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}
.status-badge.gold { background: #F5EFCF; color: #79672F; }

/* ---------- Giving / trust / safeguarding ---------- */
.giving-trust {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  overflow: hidden;
  border-radius: 22px;
  background: #4E1111;
  color: #fff;
}
.giving-copy { padding: clamp(2rem,5vw,4rem); }
.giving-copy h2 { color: #fff; }
.giving-visual {
  min-height: 360px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%,rgba(255,255,255,.3),transparent 20%),
              linear-gradient(145deg,#C8A24A,#79672F);
}

.giving-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1rem;
}
.giving-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.giving-card .icon-card-icon { margin-bottom: .8rem; }

.trust-points {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1rem;
}
.trust-point {
  text-align: center;
  padding: 1.2rem;
  border-radius: 14px;
  background: #F8F5EE;
}
.trust-point strong {
  display: block;
  color: #4E1111;
  margin-top: .5rem;
}

.safeguarding-alert {
  padding: 1.1rem 1.2rem;
  border-left: 5px solid #7A1F1F;
  border-radius: 10px;
  background: #F8E9EA;
}
.safeguarding-alert strong { color: #71383C; }
.safeguarding-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1rem;
}
.safeguarding-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.safeguarding-card.urgent {
  border-color: #D8AEB2;
  background: #FFF9F9;
}
.safeguarding-card h2 { font-size: 1.8rem; }

/* ---------- Social & article ---------- */
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .8rem;
}
.social-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 .65rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 900;
}
.social-chip:hover { background: rgba(255,255,255,.1); color: #fff; }
.social-chip.disabled { opacity: .62; cursor: default; }

.article-header {
  max-width: 900px;
  margin: auto;
  text-align: center;
}
.article-header h1 { max-width: none; }
.article-meta {
  display: flex;
  justify-content: center;
  gap: .75rem 1.2rem;
  flex-wrap: wrap;
  color: #6C655C;
  font-size: .8rem;
}
.article-lead { font-size: 1.2rem; color: #5A4C45; }

@media (max-width:980px) {
  .detail-layout,
  .school-hero-panel,
  .giving-trust { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .icon-card-grid,
  .giving-grid,
  .publication-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .program-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .detail-layout,
  .safeguarding-actions { grid-template-columns: 1fr; }
  .schedule-grid,
  .trust-points { grid-template-columns: 1fr; }
  .event-list-card { grid-template-columns: 80px 1fr; }
  .event-list-card > .btn {
    grid-column: 1/-1;
    justify-self: start;
  }
}
@media (max-width:620px) {
  .icon-card-grid,
  .giving-grid,
  .publication-grid,
  .program-grid { grid-template-columns: 1fr; }
  .info-list div { grid-template-columns: 1fr; gap: .2rem; }
  .calendar-head,
  .calendar-grid { grid-template-columns: repeat(7,minmax(100px,1fr)); }
}

/* ---------- Radio site card ---------- */
.radio-site-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.radio-site-card-copy {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.radio-site-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #F4E7E3;
  color: #651919;
  font-size: 1.2rem;
}
.radio-site-card h2 { font-size: 1.65rem; margin-bottom: .35rem; }
.radio-site-card p { margin: 0; color: #6C655C; }
.radio-quick-link { font-weight: 800; }
@media (max-width:700px) {
  .radio-site-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---------- Typography pass (fonts, measure, page hero images) ---------- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -.012em;
}
h1 { line-height: 1.02; }
h2 { line-height: 1.08; }
h3 { line-height: 1.18; }
p, li { max-width: var(--text-measure); }
main { overflow: hidden; }
.section { scroll-margin-top: 96px; }

.page-hero, .detail-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero .container,
.detail-hero .container {
  position: relative;
  z-index: 2;
}
.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-hero-image {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(52%,760px);
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .8;
  z-index: 0;
}
.detail-hero .page-hero-image { width: min(50%,720px); }

.page-hero .breadcrumb,
.page-hero h1,
.page-hero p,
.detail-hero .breadcrumb,
.detail-hero h1,
.detail-hero p,
.detail-hero .tag,
.detail-hero .status-badge {
  position: relative;
  z-index: 3;
}

.site-header { backdrop-filter: blur(12px); }
.header-inner { gap: 0.0rem; }
.nav-menu-trigger {
  font-size: .8rem;
  letter-spacing: .005em;
}

.quick-access { border-top: 1px solid rgba(255,255,255,.08); }
.quick-inner { position: relative; }
.quick-links { scroll-snap-type: x proximity; }
.quick-links a { scroll-snap-align: start; }
.quick-links a.active { box-shadow: inset 0 -3px 0 #C8A24A; }
.qa-icon { place-items: center; width: 20px; height: 20px; }

.mega-menu { max-height: calc(100vh - var(--header-height) - 1rem); }
.mega-groups { padding-right: 3.4rem; }
.mega-links a small { max-width: 34ch; }
.mobile-menu-label { display: none; }

.dummy-frame {
  position: relative;
  overflow: hidden;
  background: #F3EEE4;
}
.dummy-frame > img,
.card-media img,
.portrait-image,
.cover-image,
.page-hero-image,
.gallery img,
.profile-banner > img,
.school-hero-visual > img,
.giving-visual > img,
.feature-art > img,
.bishop-photo > img,
.story-thumb > img,
.visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dummy-frame::after {
  content: "Layout preview";
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  z-index: 4;
  padding: .22rem .48rem;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #59665d;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.card-media {
  position: relative;
  aspect-ratio: 16/8;
  border-radius: 12px;
  overflow: hidden;
  margin: -.25rem -.25rem 1rem;
  background: #F3EEE4;
}
.directory-card .card-media { aspect-ratio: 16/8; }
.directory-card.has-portrait .card-media { aspect-ratio: 4/3; }

.visual {
  position: relative;
  overflow: hidden;
}
.visual > img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg,rgba(78,17,17,.8),rgba(78,17,17,.04) 68%);
}
.visual > *:not(img) {
  position: relative;
  z-index: 2;
}

.feature-story {
  position: relative;
  overflow: hidden;
}
.feature-story > .cover-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.feature-story::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.feature-story > div {
  position: relative;
  z-index: 2;
}
.story-thumb { position: relative; overflow: hidden; }
.bishop-photo { overflow: hidden; }
.bishop-photo > img { object-position: center top; }
.feature-art { overflow: hidden; }
.feature-art > img { object-position: center top; }

.profile-banner {
  position: relative;
  overflow: hidden;
  min-height: 370px;
}
.profile-banner > img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.profile-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg,rgba(78,17,17,.88),rgba(78,17,17,.05) 70%);
}
.profile-banner > div {
  position: relative;
  z-index: 2;
}

.school-hero-visual, .giving-visual {
  overflow: hidden;
  padding: 0;
}
.school-hero-visual > img,
.giving-visual > img { object-position: center; }

.gallery figure { background: #F3EEE4; }
.gallery figure img {
  position: absolute;
  inset: 0;
}
.gallery figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg,rgba(78,17,17,.8),transparent 65%);
}
.gallery figcaption { z-index: 2; }

.image-panel {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.image-panel img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.image-panel figcaption {
  padding: .65rem .85rem;
  color: var(--muted);
  font-size: .76rem;
  background: #fff;
}

.map {
  overflow: hidden;
  position: relative;
}
.map > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.map > div {
  position: relative;
  z-index: 2;
}
.map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(78,17,17,.38);
  z-index: 1;
}

/* ---------- Section head / cards hover / on-page nav / forms ---------- */
.section-head { margin-bottom: 1.7rem; }
.section-head > div { max-width: 780px; }
.section-head p { margin-bottom: 0; }

.card-body h3,
.directory-card h3,
.panel h3 { margin-bottom: .45rem; }
.panel, .card, .directory-card, .callout { border-radius: var(--radius-md); }
.card:hover, .panel:hover, .directory-card:hover { transform: translateY(-2px); }

.on-page-nav {
  position: sticky;
  top: 0;
  z-index: 800;
  box-shadow: 0 5px 16px rgba(78,17,17,.06);
}
.on-page-nav a[aria-current="location"] {
  background: #4E1111;
  color: #fff;
}
.detail-sidebar { top: 1.5rem; }
.detail-sidebar .panel { box-shadow: 0 10px 24px rgba(78,17,17,.08); }
.tag, .status-badge { letter-spacing: .045em; }
.btn { min-height: var(--touch); }
.form-group label {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.required-mark { color: #7A1F1F; font-weight: 900; }
.field-error {
  display: none;
  margin-top: .3rem;
  color: #7A1F1F;
  font-size: .76rem;
  font-weight: 700;
}
.form-group.has-error .field-error { display: block; }
.form-group.has-error .input,
.form-group.has-error .select,
.form-group.has-error .textarea {
  border-color: #7A1F1F;
  background: #FFF9F9;
  box-shadow: 0 0 0 3px rgba(143,75,79,.1);
}

.input, .select, .textarea {
  min-height: var(--touch);
  transition: border-color .16s ease,box-shadow .16s ease;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: #7A1F1F;
  box-shadow: 0 0 0 3px rgba(53,132,84,.13);
  outline: 0;
}
.form-status { border-radius: 10px; }

.btn.is-loading { opacity: .72; pointer-events: none; }
.btn.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes spin { to{transform:rotate(360deg)} }

.search-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .35rem .8rem;
}
.search-result span { grid-column: 1/2; }
.search-result-category {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  padding: .25rem .5rem;
  border-radius: 999px;
  background: #F4E7E3;
  color: #651919;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* ---------- Footer refinement ---------- */
.footer-grid {
  grid-template-columns: 1.25fr .72fr .72fr .95fr .9fr;
  gap: 1.6rem;
}
.site-footer p,
.site-footer li { font-size: .87rem; }
.footer-logo { margin-bottom: .7rem; }
.footer-bottom a { color: #fff; }
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.social-chip { min-height: 38px; }

@media (max-width:1120px) {
  .footer-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .mega-groups { padding-right: 1rem; }
}
@media (max-width:880px) {
  .page-hero-image,
  .detail-hero .page-hero-image {
    width: 65%;
    opacity: .52;
  }
  .bishop-editorial { grid-template-columns: 1fr; }
  .bishop-photo { min-height: 380px; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px) {
  body { font-size: 15.5px; }
  .section { padding: 3.5rem 0; }
  .page-hero, .detail-hero { padding: 3.25rem 0; }
  .page-hero-image,
  .detail-hero .page-hero-image {
    width: 100%;
    opacity: .28;
  }
  .page-hero::before,
  .detail-hero::before { background: rgba(78,17,17,.9); }
  .site-header { position: sticky; }
  .mobile-menu-label {
    display: block;
    padding: 1rem;
    color: #6C655C;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav.mobile { padding: 0; }
  .primary-nav.mobile .nav-menu-trigger { min-height: 58px; }
  .mega-menu { max-height: none; }
  .mega-groups { padding: .75rem; }
  .mega-links a small { font-size: .75rem; }
  .on-page-nav { top: 78px; }
  .on-page-nav .container { padding: .55rem 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-media { aspect-ratio: 16/9; }
  .story-compact { grid-template-columns: 95px 1fr; }
}

@media (max-width:1080px) {
  .site-header { backdrop-filter: none; }
  .primary-nav.mobile {
    z-index: 3000;
    bottom: auto;
    height: calc(100dvh - 92px);
    min-height: calc(100vh - 92px);
  }
}
@media (max-width:620px) {
  .primary-nav.mobile {
    height: calc(100dvh - 78px);
    min-height: calc(100vh - 78px);
  }
}

/* ---------- Image / hero positioning overrides ---------- */
.dummy-frame::after { display: none !important; }
.remote-preview-image { background: #edf3ef; }
.home-hero .hero-art { object-position: center 35%; }
.bishop-photo > img,
.feature-art > img[src*="1784897714144"] { object-position: center top; }
.page-hero-image[src*="1784898120700"],
.card-media img[src*="1784898120700"] { object-position: center; }
@media (max-width:620px) {
  .home-hero .hero-art { object-position: 58% center; }
}

/* ---------- Home hero final layout ---------- */
.home-hero {
  min-height: clamp(500px,calc(100svh - var(--header-height) - var(--quick-access-height)),680px);
  isolation: isolate;
}
.home-hero .hero-copy {
  max-width: 900px;
  padding: clamp(2rem,5.5vh,4.4rem) 0 7.55rem;
}
.home-hero .hero-copy h1 {
  max-width: 16ch;
  font-size: clamp(3.35rem,5.8vw,5.25rem);
  line-height: .96;
}
.home-hero .hero-copy .lead { max-width: 66ch; }
.home-hero .pastoral-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  margin: 0;
}
.home-hero .pastoral-links {
  border-radius: 24px 24px 0 0;
  box-shadow: 0 18px 45px rgba(58,12,12,.24);
}
.home-hero .pastoral-links a { min-height: 108px; }

@media (min-width:1081px) and (max-height:740px) {
  .home-hero {
    min-height: calc(100svh - var(--header-height) - var(--quick-access-height));
  }
  .home-hero .hero-copy {
    padding-top: 1.55rem;
    padding-bottom: 7rem;
  }
  .home-hero .hero-copy h1 {
    max-width: 18ch;
    margin-bottom: .45rem;
    font-size: clamp(3.35rem,4.8vw,4.15rem);
  }
  .home-hero .hero-copy .lead {
    max-width: 70ch;
    margin-bottom: .35rem;
    font-size: 1rem;
    line-height: 1.48;
  }
  .hero-badge { margin-bottom: .45rem; }
  .home-hero .eyebrow { margin-bottom: .2rem; }
  .hero-actions { margin-top: .55rem; }
  .home-hero .pastoral-links a { min-height: 102px; }
}

@media (max-width:1080px) {
  .brand {
    flex-basis: 132px;
    min-width: 132px;
  }
  .brand-logo {
    width: 112px !important;
    height: 104px !important;
  }
  .home-hero {
    min-height: auto;
    padding-bottom: 0;
  }
  .home-hero .hero-copy { padding: 3.5rem 0 2.5rem; }
  .home-hero .pastoral-wrap {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
  }
  .home-hero .pastoral-links { border-radius: 0; }
}

@media (max-width:620px) {
  .brand {
    flex-basis: 88px;
    min-width: 88px;
  }
  .brand-logo {
    width: 78px !important;
    height: 76px !important;
    padding: .35rem;
    border-radius: 0 0 16px 16px;
  }
  .home-hero .hero-copy { padding: 2.5rem 0 2rem; }
  .home-hero .hero-copy h1 {
    font-size: clamp(2.7rem,13vw,4rem);
    max-width: 13ch;
  }
  .home-hero .pastoral-links {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .home-hero .pastoral-links a {
    min-height: 94px;
    padding: .6rem .35rem;
  }
  .home-hero .pastoral-links a:nth-child(3) { border-right: 0; }
  .home-hero .pastoral-links a:nth-child(4) { border-right: 1px solid rgba(255,255,255,.3); }
  .home-hero .pastoral-links a:nth-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,.3); }
  .home-hero .pastoral-links a:nth-child(n+4) { border-bottom: 0; }
  .pastoral-label { font-size: .6rem; }
}

/* ---------- Footer logo (final) ---------- */
.site-footer .footer-logo {
  display: block;
  width: 112px !important;
  height: auto !important;
  max-height: 118px !important;
  margin: 0 0 .9rem !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain !important;
  object-position: left center !important;
  filter: drop-shadow(0 1px 1px rgba(255,255,255,.72)) drop-shadow(0 3px 5px rgba(0,0,0,.24));
}
@media (max-width:720px) {
  .site-footer .footer-logo {
    width: 96px !important;
    max-height: 104px !important;
  }
}

.fact strong[data-counter] {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Header / brand lockup (final) ---------- */
.header-inner {
  position: relative !important;
  height: 80px !important;
  align-items: left !important;
}
.brand {
  position: relative !important;
  z-index: 2050 !important;
  flex: 0 0 290px !important;
  min-width: 290px !important;
  align-self: stretch !important;
  display: block !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.brand-logo {
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  transform: translateY(-50%) !important;
  width: 290px !important;
  height: 84px !important;
  max-width: none !important;
  max-height: none !important;
  padding: .45rem .8rem !important;
  object-fit: contain !important;
  object-position: center !important;
}
.quick-inner { padding-left: 245px !important; }
.primary-nav { flex: 1; }

.footer-logo {
  width: 270px !important;
  height: auto !important;
  max-height: 100px !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ---------- Final colour lock-in ---------- */
body {
  background: #F8F5EE;
  color: #333333;
}
.site-header { background: #F8F5EE; }
.quick-access, .site-footer { background: #4E1111 !important; }
.btn, .hero-copy .btn { background: #7A1F1F; }
.btn:hover { background: #4E1111; }
.btn-red { background: #C8A24A; color: #2B2110; }
.pastoral-links { background: #8E3C3C; }

.hero::after {
  background: linear-gradient(90deg,rgba(78,17,17,.80),rgba(78,17,17,.48) 40%,rgba(78,17,17,.07) 76%) !important;
}
.page-hero::before,
.home-hero h1,
.hero-copy h1,
.hero-copy p {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important; 
}
.detail-hero::before {
  background: linear-gradient(90deg,rgba(78,17,17,.97) 0%,rgba(78,17,17,.86) 52%,rgba(78,17,17,.38) 100%) !important;
}
.visual::before,
.feature-story::before,
.profile-banner::before,
.gallery figure::before {
  background: linear-gradient(0deg,rgba(78,17,17,.86),rgba(78,17,17,.06) 70%) !important;
}
.gallery figcaption {
  background: linear-gradient(transparent,rgba(78,17,17,.88)) !important;
}
.map {
  background: linear-gradient(rgba(78,17,17,.82),rgba(78,17,17,.82)),
              repeating-linear-gradient(35deg,#925454 0 16px,#D0B272 16px 32px) !important;
}
.page-hero p,
.detail-hero p,
.breadcrumb { color: #F8F5EE !important; }
.qa-icon { display: none !important; }

@media (min-width:1081px) and (max-width:1280px) {
  .brand {
    flex-basis: 270px !important;
    min-width: 270px !important;
  }
  .brand-logo {
    width: 252px !important;
    height: 108px !important;
    padding: .55rem .8rem !important;
  }
  .nav-menu-trigger {
    font-size: .73rem !important;
    padding-inline: .42rem !important;
  }
}
@media (max-width:1080px) {
  .brand {
    flex-basis: 238px !important;
    min-width: 238px !important;
  }
  .brand-logo {
    width: 222px !important;
    height: 100px !important;
    padding: .5rem .7rem !important;
  }
  .quick-inner { padding-left: 226px !important; }
}
@media (max-width:620px) {
  .header-inner { min-height: 78px !important; }
  .brand {
    flex-basis: 180px !important;
    min-width: 180px !important;
    max-width: calc(100% - 96px) !important;
  }
  .brand-logo {
    width: 10px !important;
    height: 84px !important;
    padding: .4rem .55rem !important;
    border-radius: 0 0 16px 16px !important;
  }
  .quick-inner { padding-left: 0 !important; }
  .footer-logo { width: min(240px,82vw) !important; }
}

/* ---------- Nav trigger states (final) ---------- */
.nav-menu-trigger {
  border-radius: 9px !important;
  transition: background-color .18s ease,color .18s ease,box-shadow .18s ease !important;
}
.nav-menu-trigger:hover,
.nav-menu-trigger:focus-visible,
.nav-item.open>.nav-menu-trigger,
.nav-menu-trigger.active {
  background: #F4E7E3 !important;
  color: #7A1F1F !important;
  box-shadow: inset 0 -2px 0 #C8A24A !important;
}

.header-actions .btn-red {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 112px !important;
  min-height: 46px !important;
  padding: 0 1.35rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-align: center !important;
  box-shadow: 0 9px 22px rgba(78,17,17,.15) !important;
  margin-left: 1rem;
  margin-right: 1rem;
}

.site-footer a,
.site-footer .footer-links a,
.site-footer .footer-bottom a {
  color: #F8F5EE !important;
  text-decoration-color: rgba(248,245,238,.52) !important;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  color: #E7C86F !important;
  text-decoration-color: #E7C86F !important;
}
.site-footer .footer-grid>div:nth-child(4) a {
  color: #E7C86F !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
}

/* ---------- Feature story text contrast ---------- */
.feature-story::before {
  background: linear-gradient(0deg,rgba(54,8,8,.98) 0%,rgba(78,17,17,.86) 42%,rgba(78,17,17,.30) 72%,rgba(78,17,17,.10) 100%) !important;
}
.feature-story>div { color: #FFFFFF !important; }
.feature-story h1,
.feature-story h2,
.feature-story h3,
.feature-story p,
.feature-story .meta,
.feature-story .meta span {
  color: #FFFFFF !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.72) !important;
}
.feature-story .tag {
  background: #F8F5EE !important;
  color: #7A1F1F !important;
  text-shadow: none !important;
}
.feature-story .btn.btn-light,
.feature-story a.btn.btn-light {
  background: #FFFFFF !important;
  color: #4E1111 !important;
  border-color: #FFFFFF !important;
  text-shadow: none !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.24) !important;
}
.feature-story .btn.btn-light:hover,
.feature-story a.btn.btn-light:hover {
  background: #C8A24A !important;
  color: #2B2110 !important;
  border-color: #C8A24A !important;
}

.story-copy h3,
.story-copy h3 a { color: #4E1111 !important; }
.story-copy .text-link {
  color: #7A1F1F !important;
  font-weight: 900 !important;
}

@media (max-width:620px) {
  .header-actions .btn-red { display: none !important; }
}

[hidden] { display: none !important; }

:where(.grid,.detail-layout,.communication-intro,.communication-news-grid,.communication-contact-grid,.footer-grid,.directory,.icon-card-grid,.story-stack,.editorial-news)>* {
  min-width: 0;
}
:where(h1,h2,h3,h4,p,a,span,dd,dt) { overflow-wrap: anywhere; }
img { height: auto; }
section[id], article[id], div[id] { scroll-margin-top: 170px; }

/* ---------- Home hero buttons ---------- */
.home-hero .btn-ghost,
.home-hero a.btn-ghost {
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.72) !important;
}
.home-hero .btn-ghost:hover,
.home-hero .btn-ghost:focus-visible,
.home-hero a.btn-ghost:hover,
.home-hero a.btn-ghost:focus-visible {
  background: #fff !important;
  color: #4E1111 !important;
  -webkit-text-fill-color: #4E1111 !important;
  border-color: #fff !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.2) !important;
}

/* ---------- Communication page ---------- */
.communication-page { padding-top: 4.8rem; }
.communication-intro {
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr);
  gap: clamp(2rem,5vw,5rem);
  align-items: center;
}
.communication-image { margin: 0; }
.communication-image img {
  aspect-ratio: 16/10;
  min-height: 420px;
}
.communication-copy h2 {
  max-width: 13ch;
  margin-bottom: 1.2rem;
}
.communication-copy .lead { color: #4B4540; }
.communication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}
.communication-services,
.communication-radio,
.communication-newsroom,
.communication-contact-grid { margin-top: 4.5rem; }
.communication-service-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.communication-service-grid .icon-card { min-height: 190px; }
.communication-radio .radio-site-card { padding: clamp(1.4rem,3vw,2.2rem); }
.communication-news-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1.25rem;
}
.communication-news-card {
  display: grid;
  grid-template-columns: minmax(180px,.8fr) minmax(0,1.2fr);
  min-height: 260px;
}
.communication-news-card .card-media {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 260px;
  margin: 0 !important;
  border-radius: 0 !important;
  aspect-ratio: auto !important;
  overflow: hidden;
}
.communication-news-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.communication-news-card .card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.communication-news-card .text-link { margin-top: auto; }
.communication-contact-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1.25rem;
}
.communication-contact-grid .panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 230px;
}
.communication-contact-grid .btn { margin-top: auto; }

.btn { max-width: 100%; line-height: 1.2; }
.btn:hover, .btn:focus-visible { color: #fff; }
.btn-light:hover,
.btn-light:focus-visible {
  background: #F4E7E3 !important;
  color: #4E1111 !important;
  -webkit-text-fill-color: #4E1111 !important;
  border-color: #C8A24A !important;
}
.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.input, .select, textarea { max-width: 100%; }
.search-dialog {
  max-height: calc(100dvh - 2rem);
  overflow: auto;
}
.mega-links a:focus-visible,
.quick-links a:focus-visible,
.footer-links a:focus-visible {
  outline-color: #C8A24A;
}

@media (hover:none) {
  .card:hover,
  .panel:hover,
  .directory-card:hover,
  .pastoral-links a:hover { transform: none; }
}
@media (max-width:980px) {
  .communication-intro { grid-template-columns: 1fr; }
  .communication-image img { min-height: 0; }
  .communication-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .communication-news-card { grid-template-columns: 1fr; }
  .communication-news-card .card-media { min-height: 220px; }
}
@media (max-width:680px) {
  .communication-page { padding-top: 3.4rem; }
  .communication-services,
  .communication-radio,
  .communication-newsroom,
  .communication-contact-grid { margin-top: 3.2rem; }
  .communication-service-grid,
  .communication-news-grid,
  .communication-contact-grid { grid-template-columns: 1fr; }
  .communication-service-grid .icon-card,
  .communication-contact-grid .panel { min-height: 0; }
  .communication-news-card { display: block; }
  .communication-news-card .card-media { min-height: 190px; }
}

/* ---------- Button .btn-light (final lock) ---------- */
.btn.btn-light,
a.btn.btn-light,
button.btn.btn-light {
  background: #FFFFFF !important;
  color: #4E1111 !important;
  -webkit-text-fill-color: #4E1111 !important;
  border-color: #D9CFC0 !important;
}
.btn.btn-light:hover,
.btn.btn-light:focus-visible,
a.btn.btn-light:hover,
a.btn.btn-light:focus-visible,
button.btn.btn-light:hover,
button.btn.btn-light:focus-visible {
  background: #F4E7E3 !important;
  color: #4E1111 !important;
  -webkit-text-fill-color: #4E1111 !important;
  border-color: #C8A24A !important;
}
.feature-story .btn.btn-light:hover,
.feature-story .btn.btn-light:focus-visible,
.feature-story a.btn.btn-light:hover,
.feature-story a.btn.btn-light:focus-visible {
  background: #C8A24A !important;
  color: #2B2110 !important;
  -webkit-text-fill-color: #2B2110 !important;
  border-color: #C8A24A !important;
}

/* ---------- Hero copy clean variant ---------- */
.home-hero .hero-copy-clean {
  max-width: 1800px;
  padding-top: clamp(1.4rem,6.5vh,5rem);
}
.home-hero .hero-copy-clean h1 {
  max-width: 50ch;
  margin: 0;
  font-size: clamp(2.2rem,3vw,2.2rem);
  line-height: 1.02;
  text-wrap: balance;
}
.home-hero .hero-copy-clean .hero-badge { margin-bottom: 18.15rem; }
.home-hero .hero-actions-single { margin-top: 1.35rem; }
.home-hero .hero-actions-single .btn { min-width: 180px; }

@media (min-width:1081px) and (max-height:740px) {
  .home-hero .hero-copy-clean { padding-top: 1.65rem; }
  .home-hero .hero-copy-clean h1 {
    max-width: 15ch;
    font-size: clamp(3.25rem,4.9vw,4.3rem);
  }
  .home-hero .hero-actions-single { margin-top: .9rem; }
}
@media (max-width:1080px) {
  .home-hero .hero-copy-clean {
    padding-top: 3.25rem;
    padding-bottom: 2.75rem;
  }
}
@media (max-width:620px) {
  .home-hero .hero-copy-clean h1 {
    max-width: 12ch;
    font-size: clamp(2.75rem,12vw,4rem);
  }
  .home-hero .hero-copy-clean .hero-badge { margin-bottom: .85rem; }
}

/* ---------- Quick access final sizing ---------- */
.quick-access {
  min-height: var(--ngd-quick-height) !important;
  box-shadow: 0 4px 12px rgba(58,12,12,.12) !important;
}
.quick-inner {
  min-height: var(--ngd-quick-height) !important;
  gap: var(--ngd-quick-label-gap) !important;
  align-items: center !important;
}
.quick-title {
  padding-right: .62rem !important;
  margin: 0 !important;
  line-height: 1 !important;
  font-size: .66rem !important;
  letter-spacing: .105em !important;
}
.quick-links {
  flex: 0 1 auto !important;
  justify-content: flex-start !important;
  gap: 1.62rem !important;
  flex-wrap: nowrap !important;
}
.quick-links a {
  min-height: 26px !important;
  padding: .24rem .22rem !important;
  font-size: .71rem !important;
  line-height: 1 !important;
}
@media (width:1081px) {
  .brand-logo {
    height: calc(var(--header-height) - 8px) !important;
    max-height: calc(var(--header-height) - 8px) !important;
    width: auto !important;
    object-fit: contain;
  }
}
@media (max-width:1080px) {
  .quick-inner { gap: .4rem !important; }
  .quick-links {
    gap: .8rem !important;
    overflow-x: auto !important;
  }
}
@media (max-width:620px) {
  .quick-access, .quick-inner { min-height: 38px !important; }
  .quick-links a {
    min-height: 30px !important;
    font-size: .72rem !important;
  }
}

/* ---------- Logo containment in header ---------- */
@media (min-width: 1081px) {
  .header-inner {
    height: 80px !important;
    min-height: 80px !important;
  }
  .brand {
    height: 80px !important;
    max-height: 80px !important;
    overflow: hidden !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
  }
  .brand-logo {
    width: 290px !important;
    height: 76px !important;
    max-width: 304px !important;
    max-height: 80px !important;
    padding: .15rem 1rem !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}

/* ---------- Clean Footer Logo (No blending) ---------- */
.site-footer .footer-logo {
  position: relative;
  z-index: 1;
  background: transparent !important; /* Removes the radial gradient */
  padding: 0 !important;              /* Removes extra padding */
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* ---------- Shift logo and main menu left ---------- */
@media (min-width: 1081px) {
  .header-inner { transform: translateX(-50px) !important; }
}


/* ==========================================================================
   FIX: Restore perfect left-aligned hero and fix stretched badge
   ========================================================================== */

/* 1. Restore the left-aligned block layout (removes the stretching) */
.home-hero .hero-copy,
.home-hero .hero-copy-clean {
  display: block !important;
  max-width: 1000px !important;
  margin-left: 150px !important;       
  margin-right: auto !important;  
  text-align: left !important;    
  padding-top: clamp(8.5rem, 6vh, 4.5rem) !important;
  padding-bottom: clamp(5rem, 10vh, 8rem) !important;
}

/* 2. Put the Golden Jubilee badge back to a normal pill shape */
.home-hero .hero-badge {
  display: inline-flex !important;
  width: auto !important; 
  margin-bottom: 1.5rem !important;
}

/* 3. Keep the headline perfectly sized like Image 2, scaling smoothly */
.home-hero .hero-copy-clean h1,
.home-hero .hero-copy h1 {
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3.5rem) !important;
  max-width: 100% !important; /* Allows it to sit on one line if possible */
  line-height: 1.1 !important;
  margin-bottom: 1.5rem !important;
}

/* 4. Fix the button spacing so it sits neatly under the text */
.home-hero .hero-actions,
.home-hero .hero-actions-single {
  margin-top: 0 !important;
}

/* 5. Ensure mobile stays clean */
@media (max-width: 768px) {
  .home-hero .hero-copy-clean h1 {
    font-size: clamp(2rem, 6vw, 2.8rem) !important;
  }
}

/* ==========================================================================
   SAFE LAPTOP HERO HEIGHT (Reveals the bottom strip without touching text)
   ========================================================================== */
@media (min-width: 1081px) {
  .home-hero {
    /* Limits the height to exactly what fits on the screen, minus the header */
    height: calc(100svh - 115px) !important; 
    min-height: 450px !important;  /* Prevents it from squishing too small */
    max-height: 720px !important;  /* Prevents it from getting too tall on big monitors */
  }
}

/* ==========================================================================
   MOBILE HERO & HEADER FIX (For phones and small tablets)
   ========================================================================== */

@media (max-width: 768px) {
  
  /* 1. FIX THE MISSING LOGO */
  .brand-logo {
    width: 170px !important; /* Restores the logo size */
    height: auto !important;
    max-height: 60px !important;
    padding: 0 !important;
  }

  /* 2. FIX THE CUT-OFF TEXT & LEFT ALIGN IT */
  .home-hero .hero-copy,
  .home-hero .hero-copy-clean {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-top: 3rem !important;
    padding-bottom: 4rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .home-hero h1 {
    font-size: clamp(2rem, 7vw, 2.8rem) !important; /* Scales perfectly for phones */
    line-height: 1.15 !important;
    word-wrap: break-word !important; 
    overflow-wrap: break-word !important; /* Forces long words like "community" to wrap */
    max-width: 100% !important;
    margin-bottom: 1.5rem !important;
  }

  /* 3. ALIGN BADGE AND BUTTON TO THE LEFT */
  .home-hero .hero-badge {
    margin-left: 0 !important;
    margin-bottom: 1rem !important;
  }

  .home-hero .hero-actions,
  .home-hero .hero-actions-single {
    justify-content: flex-start !important;
    width: 100% !important;
  }

  /* 4. FIX THE BOTTOM STRIP (THE BISHOP, ETC.) */
  .home-hero .pastoral-links {
    grid-template-columns: repeat(2, 1fr) !important; /* Forces a neat 2-column grid on phones */
  }

  .pastoral-links a {
    border-right: 1px solid rgba(255,255,255,.3) !important;
    border-bottom: 1px solid rgba(255,255,255,.3) !important;
    min-height: 90px !important;
    padding: .5rem !important;
  }

  /* Remove the right border for the 2nd, 4th, 6th items so it looks clean */
  .pastoral-links a:nth-child(2n) {
    border-right: 0 !important;
  }
  
  .pastoral-links a:nth-last-child(-n+2) {
    border-bottom: 0 !important;
  }

  /* 5. ADD A SUBTLE TEXT SHADOW */
  /* Since you removed the color overlay, this ensures the white text stays readable against the bright photo */
  .home-hero h1,
  .home-hero p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
  }
}

/* ==========================================================================
   TYPOGRAPHY & SPACING TWEAKS (Unbold & Add Breathing Room)
   ========================================================================== */

/* 1. Unbold the text and increase space between the lines */
.home-hero h1,
.home-hero .hero-copy-clean h1,
.home-hero .hero-copy h1 {
  font-weight: 400 !important; /* 👈 Unbolds the headline */
  line-height: 1.35 !important; /* 👈 Adds space between the lines of text */
  margin-bottom: 2.5rem !important; /* 👈 Adds space between the headline and the button */
  letter-spacing: -0.01em !important; 
}

/* 2. Space between the Golden Jubilee badge and the headline */
.home-hero .hero-badge {
  margin-bottom: 1.8rem !important; /* 👈 Increases space below the badge */
}

/* 3. Fine-tune the button spacing just in case */
.home-hero .hero-actions,
.home-hero .hero-actions-single {
  margin-top: 0 !important; 
  padding-top: 0.5rem !important; /* Extra nudge of space above the button */
}

/* ==========================================================================
   MODERN HERO FONTS (All 3 Options)
   ========================================================================== */

.home-hero h1,
.hero-copy h1,
.home-hero .hero-copy-clean h1 {
  
  /* --- SWAP THE FONT BY UNCOMMENTING ONE OF THESE 3 LINES --- */
  
  /* Option 1: Playfair Display (Dramatic & Classic) 
  font-family: "Playfair Display", Georgia, serif !important;
  
  /* Option 2: Cormorant (Delicate & Elegant) */
  font-family: "Cormorant", Georgia, serif !important;
  
  /* Option 3: DM Serif Display (Crisp & Modern) */
  /* font-family: "DM Serif Display", Georgia, serif !important; */
  

  /* Keep these styling rules for that Arlington look */
  font-weight: 400 !important; /* Keeps it un-bolded */
  letter-spacing: -0.02em !important; 
  line-height: 1.25 !important; 
  margin-bottom: 2.5rem !important; 
}

/* ==========================================================================
   ARLINGTON-STYLE TEXT WRAPPING
   ========================================================================== */

.home-hero h1,
.hero-copy h1,
.home-hero .hero-copy-clean h1 {
  max-width: 24ch !important; /* 👈 Forces the wrap after ~14 characters/words */
  text-wrap: balance !important; /* Keeps the lines perfectly even */
}

/* ---------- Footer Logo (1.25x Larger Rectangular White Splash) ---------- */
.site-footer .footer-grid > div:first-child {
  position: relative;
  isolation: isolate;
}

.site-footer .footer-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 140px !important;       /* 1.25x larger */
  height: auto !important;
  max-height: 148px !important;  /* 1.25x larger */
  margin: 0 0 1.1rem !important;
  
  /* The rectangular white splash */
  background: radial-gradient(
    ellipse at center,
    #fff 0%,
    #fff 48%,
    rgba(255, 255, 255, 0.75) 68%,
    transparent 100%
  ) !important;
  padding: 10px 15px !important; /* 1.25x larger padding */
  
  /* Keeps it rectangular */
  border-radius: 0 !important; 
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  
  filter: drop-shadow(0 1px 1px rgba(255,255,255,.72)) drop-shadow(0 3px 5px rgba(0,0,0,.24)) !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 720px) {
  .site-footer .footer-logo {
    width: 120px !important;       /* 1.25x larger mobile size */
    max-height: 130px !important;
    padding: 8px 12px !important;
  }
}

/* ==========================================================================
   OFFICIAL SOCIAL MEDIA (Equal Squares & Brand Colors)
   ========================================================================== */

/* 1. Shape, Size & Base Layout */
.site-footer .social-chip,
.site-footer .social-chip.disabled {
  width: 38px !important;        /* Fixed width */
  height: 34px !important;       /* Fixed height */
  min-width: 34px !important;    /* Prevents shrinking */
  padding: 0 !important;         /* Removes padding to keep it perfectly square */
  border-radius: 8px !important; /* Modern rounded square (use 0 for sharp corners) */
  margin-left: 10px;
  
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  
  /* Base resets for the disabled state */
  opacity: 1 !important;         /* Brings back full color */
  cursor: default;
  border: 1px solid transparent !important;
  color: #fff !important;
}

/* 2. Ensure the SVG icons inside are perfectly centered and sized */
.site-footer .social-chip svg {
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
}

/* 3. Brand Colors */
/* Facebook */
.site-footer .social-chip:nth-child(1) {
  background-color: #1877F2 !important;
}

/* YouTube */
.site-footer .social-chip:nth-child(2) {
  background-color: #FF0000 !important;
}

/* X / Twitter */
.site-footer .social-chip:nth-child(3) {
  background-color: #000000 !important;
  border-color: #444 !important; /* Subtle border so black doesn't disappear into the footer */
}

/* 4. Hover Effects (Ready for when you make them clickable) */
.site-footer .social-chip:nth-child(1):hover { background-color: #1155cc !important; }
.site-footer .social-chip:nth-child(2):hover { background-color: #cc0000 !important; }
.site-footer .social-chip:nth-child(3):hover { background-color: #222222 !important; }


/* Project 400 v2.1.14 — shared precise close-circle centering (no font glyph offsets).
   Scoped to known close buttons; no site-wide button or decorative icon changes. */
:is(.mega-close,button.circle[data-close-search],.ngong-dev-close,.dcal-dialog-close,
 button[data-parish-close],button[data-p400-video-close],button[data-p400-event-close],
 .p400-reader-close,.p400-photo-close){
 position:relative;display:grid!important;place-items:center!important;
 padding:0!important;text-indent:0!important;font-size:0!important;line-height:0!important;
 flex-shrink:0;box-sizing:border-box;vertical-align:middle;
}
:is(.mega-close,button.circle[data-close-search],.ngong-dev-close,.dcal-dialog-close,
 button[data-parish-close],button[data-p400-video-close],button[data-p400-event-close],
 .p400-reader-close,.p400-photo-close)::before,
:is(.mega-close,button.circle[data-close-search],.ngong-dev-close,.dcal-dialog-close,
 button[data-parish-close],button[data-p400-video-close],button[data-p400-event-close],
 .p400-reader-close,.p400-photo-close)::after{
 content:""!important;position:absolute!important;left:50%!important;top:50%!important;
 width:15px!important;height:2px!important;border-radius:2px;background:currentColor!important;
 transform:translate(-50%,-50%) rotate(45deg)!important;pointer-events:none!important;
}
:is(.mega-close,button.circle[data-close-search],.ngong-dev-close,.dcal-dialog-close,
 button[data-parish-close],button[data-p400-video-close],button[data-p400-event-close],
 .p400-reader-close,.p400-photo-close)::after{
 transform:translate(-50%,-50%) rotate(-45deg)!important;
}
