/* ============================================================
   Diocese of Rivermede — Design System
   Display: Fraunces (high-contrast, ecclesiastical serif) — titles only
   Body: Poppins — all other content
   Signature: the Gothic arch — used as frame, divider, underline
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Poppins:wght@400;500;600;700&display=swap');

:root{
  --ink:        #1B2430;
  --ink-soft:   #3C4655;
  --parchment:  #EFE9DC;
  --parchment-2:#E4DCC9;
  --card:       #FAF8F2;
  --maroon:     #7A2331;
  --maroon-dark:#5A1723;
  --gold:       #A8842E;
  --gold-light: #C7A64F;
  --forest:     #2F4538;
  --line:       #D8CFB8;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --arch-radius: 120px 120px 0 0;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--sans);
  background:var(--parchment);
  color:var(--ink);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }

.wrap{ max-width:1180px; margin:0 auto; padding:0 32px; }

h1,h2,h3,h4{ font-family:var(--serif); font-weight:600; color:var(--ink); line-height:1.15; }
h1{ font-size:clamp(2.4rem, 5vw, 4.2rem); font-weight:500; }
h2{ font-size:clamp(1.7rem, 3vw, 2.5rem); }
h3{ font-size:1.3rem; }
p{ color:var(--ink-soft); }

.eyebrow{
  font-family:var(--sans);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.75rem;
  font-weight:600;
  color:var(--maroon);
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.sub_title{
  font-family:var(--sans);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.75rem;
  font-weight:600;
  color:var(--maroon);
  display:inline-flex;
  align-items:center;
  gap:10px;
}


.eyebrow::before{
  content:"";
  width:22px; height:2px;
  background:var(--gold);
  display:inline-block;
}

/* ---------- Arch motif (signature element) ---------- */
.arch{
  border-radius: var(--arch-radius);
  overflow:hidden;
}
.arch-frame{
  position:relative;
  border-radius: var(--arch-radius);
  border:2px solid var(--gold);
  padding:6px;
}

/* Fixed-ratio, cropped variant for photos of unpredictable size (e.g. parish photos) */
.arch-frame.photo-frame{
  position:relative;
  border:none;
  border-radius: var(--arch-radius);
  overflow:hidden;
  padding:0;
  aspect-ratio: 4 / 3;
  box-shadow: inset 0 0 0 3px var(--gold);
}
.arch-frame.photo-frame img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position: center 12%;
  display:block;
}

/* Parish detail page photo — shows the FULL image at its own natural aspect
   ratio (portrait or landscape), instead of forcing a fixed 4:3 crop that
   would cut off parts of the photo depending on how it was taken. */
.parish-detail-photo{
  position:relative;
  border:3px solid var(--gold);
  border-radius: var(--arch-radius);
  overflow:hidden;
  padding:0;
  box-sizing:border-box;
}
.parish-detail-photo img{
  width:100%;
  height:auto;
  display:block;
}

/* Floated version — small portrait photo with text (History, starting with
   Name/Place) wrapping around it, used on the parish detail page. */
.parish-history-column{ overflow:hidden; } /* clearfix: lets this column's height account for the float */
.parish-detail-photo-float{
  float:left;
  width:300px;
  margin:4px 24px 16px 0;
  position:relative;
  border:3px solid var(--gold) !important;
  border-radius: var(--arch-radius);
  overflow:hidden;
  padding:0;
  box-sizing:border-box;
}
.parish-detail-photo-float img{
  width:100%;
  height:auto;
  display:block;
}
@media (max-width:640px){
  .parish-detail-photo-float{ float:none !important; width:100% !important; max-width:240px; margin:0 auto 20px !important; }

  /* Show Parish Details before History on mobile only — desktop keeps
     History (wider column) on the left, Details sidebar on the right. */
  .parish-history-column{ order:2; }
  .parish-sidebar-column{ order:1; }
}

/* Priest headshots: portrait ratio instead of the landscape parish-photo default */
.priest-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:6px;
  padding:18px;
}

/* Simple name-only priest card, used on the Serving list, with alternating shades */
/* Institute visiting cards (institutions.php) */
.institute-subcategory{ margin-bottom:10px; }

/* Parish cards on parishes.php — same institute-card base, plus a photo */
.parish-forane-group{ margin-bottom:36px; }
.parish-forane-group:last-child{ margin-bottom:0; }
.parish-card-photo{
  aspect-ratio: 16 / 10;
  overflow:hidden;
  border-radius:4px 4px 0 0;
  margin:-16px -18px 14px;
}
.parish-card-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position: center 20%;
  display:block;
}

/* Wide horizontal parish card (Directory listing) */
.parish-wide-list{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.parish-wide-card{
  display:flex;
  gap:22px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  padding:18px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.parish-wide-card:hover{
  box-shadow:0 14px 28px -18px rgba(27,36,48,.3);
  border-color:var(--gold);
}
.parish-wide-photo{
  flex:none;
  width:150px;
  height:150px;
  border-radius:12px;
  overflow:hidden;
  border:3px solid var(--gold);
  display:block;
}
.parish-wide-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position: center 20%;
  display:block;
}
.parish-wide-photo-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--parchment-2);
}
.parish-wide-photo-placeholder span{
  font-family:var(--serif);
  font-size:2.4rem;
  color:var(--maroon);
  opacity:.5;
}
.parish-wide-content{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  position:relative;
  padding-bottom:26px;
}
.parish-wide-content h3{
  font-family:var(--serif);
  font-size:1.35rem;
  font-weight:600;
  color:var(--ink);
  margin-bottom:12px;
  padding-bottom:12px;
  border-bottom:1px dashed var(--line);
}
.parish-wide-content h3 a{ color:inherit; }
.parish-wide-content h3 a:hover{ color:var(--maroon); }
.parish-wide-content h3 .parish-place-link{
  font-family:var(--sans);
  font-size:.85rem;
  font-weight:700;
  color:var(--maroon);
}
.parish-wide-rows{ display:flex; flex-direction:column; }
.pw-row{
  display:grid;
  grid-template-columns:110px 1fr;
  align-items:center;
  gap:14px;
  padding:9px 0;
  border-bottom:1px dashed var(--line);
}
.pw-row:last-child{ border-bottom:none; }
.pw-label{
  font-family:var(--sans);
  font-size:.72rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--ink);
  background:var(--parchment);
  padding:6px 10px;
  border-radius:4px;
  text-align:center;
}
.pw-value{
  font-family:var(--sans);
  font-size:.95rem;
  color:var(--ink);
}

@media (max-width:640px){
  .parish-wide-card{ flex-direction:column; }
  .parish-wide-photo{ width:100%; height:180px; }
  .pw-row{ grid-template-columns:90px 1fr; }
}

/* Compact parish card (Directory listing) — institute-card base, no image,
   with a "More Details" link in a light shade, bottom-right. */
.parish-card{ padding-bottom:38px; position:relative; }
.parish-card h3{ font-size:1rem; }
.parish-card h3 a{ color:inherit; }
.parish-card h3 a:hover{ color:var(--maroon); }
.parish-card h3 .parish-place-link{
  font-family:var(--serif);
  font-size:1rem;
  font-weight:600;
  color:var(--maroon);
}
.parish-card h3 .parish-place-link:hover{ text-decoration:underline; }
.parish-card .institute-contact{
  border-top:none;
  padding-top:0;
}
.parish-more-details{
  position:absolute;
  right:16px;
  bottom:14px;
  font-family:var(--sans);
  font-size:11.5px;
  font-weight:600;
  color:#9AA2AF;
}
.parish-more-details:hover{ color:var(--maroon); text-decoration:underline; }

.parish-directory-grid{
  grid-template-columns:repeat(3, 1fr);
}
@media (max-width:980px){
  .parish-directory-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:640px){
  .parish-directory-grid{ grid-template-columns:1fr; }
}

/* Small bottom-left thumbnail on parish directory cards */
.institute-subcategory:last-child{ margin-bottom:0; }
.institute-subheading{
  font-family:var(--serif);
  font-size:.9rem;
  color:var(--maroon);
  margin-bottom:4px;
  padding-bottom:3px;
  border-bottom:2px solid var(--gold);
  display:inline-block;
}
.institute-subcount{
  font-family:var(--sans);
  font-size:.78rem;
  font-weight:600;
  color:var(--ink-soft);
}


/* Pre-Cana Course page (precana.php) — content sections, notice banner, contact card */
.precana-notice-banner{
  background:var(--maroon);
  color:#fff;
  text-align:center;
  font-weight:700;
  font-size:.95rem;
  letter-spacing:.02em;
  padding:14px 20px;
  border-radius:8px;
  margin-bottom:32px;
}
.precana-info-block{
  max-width:720px;
  margin:0 auto 32px;
}
.precana-info-block h3{
  font-family:var(--serif);
  font-size:1.1rem;
  color:var(--maroon);
  margin-bottom:12px;
}
.precana-info-block p{
  margin-bottom:10px;
  line-height:1.7;
}
.precana-list{
  margin:12px 0 14px 0;
  padding-left:22px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.precana-list li{ line-height:1.6; }
.precana-contact-card{
  max-width:560px;
  margin:0 auto 32px;
  text-align:center;
  border-top-color:var(--gold);
}
.precana-contact-card p{ margin-bottom:8px; line-height:1.6; }

.precana-form-card{
  margin-top:26px;
  background:var(--card);
  border:1px solid var(--line);
  border-top:4px solid var(--gold);
  border-radius:14px;
  padding:32px;
}
.precana-notice{ margin-top:26px; }
.precana-error{
  color:var(--maroon);
  background:var(--parchment-2);
  padding:14px 18px;
  border-radius:6px;
  font-size:.88rem;
  margin-top:20px;
  border:1px solid rgba(122,35,49,.25);
}
@media (max-width:640px){
  .precana-form-card{ padding:22px; }
}

/* PreCana upcoming dates — small 5-column tile grid, above the notice banner */
.precana-tile-grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:10px;
  margin-bottom:32px;
}
.precana-tile{
  background:var(--card);
  border:1px solid var(--line);
  border-top:3px solid var(--gold);
  border-radius:6px;
  padding:5px 8px;
  text-align:center;
}
.precana-tile-date{
  font-family:var(--serif);
  font-weight:700;
  font-size:.78rem;
  color:var(--maroon);
  margin-bottom:4px;
  line-height:1.2;
}
.precana-tile-title{
  font-size:.7rem;
  color:var(--ink-soft);
  line-height:1.3;
}
@media (max-width:768px){
  .precana-tile-grid{ grid-template-columns:repeat(3, 1fr); }
}
@media (max-width:480px){
  .precana-tile-grid{ grid-template-columns:repeat(2, 1fr); }
}


/* Clickable category cards on institutions.php (category-index/directory page) */
.category-card{
  display:block;
  text-decoration:none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.category-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 24px -14px rgba(27,36,48,.3);
  border-top-color:var(--maroon);
}
.category-card h3{ color:var(--ink); }
.category-card p{ color:var(--maroon); font-weight:600; font-size:.85rem; margin-top:6px; }

.institute-card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
  gap:18px;
}
.institute-card{
  position:relative;
  background:var(--card);
  border:1px solid var(--line);
  border-top:3px solid var(--gold);
  border-radius:6px;
  padding:16px 18px;
}
.dept-edit-fields{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed var(--line);
}
.dept-edit-label{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:.7rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--ink-soft);
}
.dept-edit-input{
  font-family:var(--sans);
  font-size:.85rem;
  font-weight:400;
  text-transform:none;
  letter-spacing:normal;
  color:var(--ink);
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:4px;
  resize:vertical;
}
.dept-edit-controls{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
  padding-top:10px;
  border-top:1px dashed var(--line);
}
.dept-edit-controls .btn{ padding:7px 16px; font-size:.76rem; }
.dept-save-status{ font-size:.76rem; font-weight:600; }

.org-title-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
  padding-bottom:10px;
  border-bottom:1px dashed var(--line);
}
.org-logo{
  flex:none;
  width:30px;
  height:30px;
  object-fit:contain;
}
.institute-card h3.org-title-text{
  margin:0; padding:0; border:none; /* the single divider lives on .org-title-row instead */
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
  flex:1;
}
.institute-card h3{
  font-family:var(--serif);
  font-size:1rem;
  margin-bottom:10px;        /* Increased spacing before the line */
  padding-bottom:10px;       /* Space between text and the line */
  border-bottom:1px dashed var(--line); /* Creates the line break */
  line-height:1.25;
}

.institute-place{
  font-size:.7rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--maroon);
  margin-bottom:10px;
  
}

.institute-fields{
  display:flex;
  flex-direction:column;
  gap:5px;
}
.institute-contact{
  display:flex;
  flex-direction:column;
  gap:5px;
  margin-top:10px;
  padding-top:9px;
  border-top:1px dashed var(--line);
}
.ifield{
  display:flex;
  gap:8px;
  font-size:.78rem;
  line-height:1.35;
}
.ifield-label{
  flex:none;
  width:78px;
  font-weight:700;
  color:var(--ink-soft);
  font-size:.68rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  padding-top:1px;
}
.ifield-value{ color:var(--ink); }
.ifield-value a{ color:var(--maroon); text-decoration:underline; }
.ifield-value a:hover{ color:var(--gold); }

.priest-simple-card{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height:88px;
  padding:18px 20px;
  border-radius:10px;
  font-family:var(--serif);
  font-weight:600;
  font-size:1rem;
  color:var(--ink);
  border:1px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease;
}
.priest-simple-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 20px -12px rgba(27,36,48,.25);
  color:var(--maroon);
}
.priest-simple-card.shade-a{ background:var(--parchment); }
#serving .priest-simple-card,
#retired .priest-simple-card{
  min-height:59px;
  padding:12px 20px;
}
.priest-simple-card.shade-b{ background:var(--card); }
.priest-simple-card.shade-c{ background:var(--parchment-2); }

/* Category cards on institutions.php reuse the priest-simple-card look,
   but need two lines (name + institute count) instead of one. */
.category-simple-card{
  flex-direction:column;
  gap:4px;
}
.category-card-icon{
  font-family:var(--serif);
  font-size:1.3rem;
  color:var(--maroon);
  display:block;
}
.category-card-name{
  font-family:var(--serif);
  font-weight:600;
  font-size:1rem;
  color:inherit;
}
.category-card-count{
  font-family:var(--sans);
  font-weight:500;
  font-size:.78rem;
  color:var(--maroon);
}

.priest-photo{ aspect-ratio: 3 / 4; }
.priest-photo img{ object-position: center 15%; }
.priest-photo-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--parchment-2);
}
.priest-photo-placeholder span{
  display:flex;
  align-items:center;
  justify-content:center;
  width:84px;
  height:84px;
  border-radius:50%;
  background:var(--card);
  border:2px solid var(--gold);
  font-family:var(--serif);
  font-size:2.2rem;
  color:var(--maroon);
  opacity:1;
}

/* Priest detail page: passport-photo-sized headshot inline with the card header */
.priest-detail-header{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:18px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
}
.priest-passport-photo{
  flex:none;
  width:90px;
  height:112px;
  border-radius:4px;
  overflow:hidden;
  background:var(--parchment-2);
  border:2px solid var(--gold);
  box-shadow: 0 4px 10px -6px rgba(27,36,48,.35);
}
.priest-passport-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position: center 18%;
  display:block;
}
.priest-passport-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
}
.priest-passport-placeholder span{
  font-family:var(--serif);
  font-size:1.8rem;
  color:var(--maroon);
  opacity:.6;
}

/* Deceased Priests cards (priests.php) — photo + name + ordained/died, clickable */
.deceased-priest-card{
  display:flex;
  gap:12px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.deceased-priest-card .priest-passport-photo{ width:52px; height:65px; flex:none; }
.deceased-priest-card.shade-a{ background:var(--parchment); }
.deceased-priest-card.shade-b{ background:var(--card); }
.deceased-priest-card.shade-c{ background:var(--parchment-2); }
.deceased-priest-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 24px -14px rgba(27,36,48,.3);
}
.deceased-priest-info{ min-width:0; flex:1; }
.deceased-priest-info h4{
  font-family:var(--serif);
  font-size:.9rem;
  color:var(--ink);
  margin-bottom:10px;
  line-height:1.3;
}
.deceased-priest-info .ifield-value{ font-size:.76rem; color:var(--ink-soft); display:block; line-height:1.4; }
.deceased-priest-info .ifield{ margin-bottom:2px; }
.deceased-priest-info .ifield:first-of-type{ padding-top:6px; }
@media (max-width:480px){
  .priest-detail-header{ gap:14px; }
  .priest-passport-photo{ width:72px; height:90px; }
}
.priest-card-name{
  margin:16px 0 12px;
  font-size:1.02rem;
  text-align:center;
  line-height:1.3;
}
.priest-card .detail-list{ border-top:1px solid var(--line); padding-top:4px; }
.arch-divider{
  width:100%;
  height:44px;
  display:flex;
  justify-content:center;
  margin: 8px 0 0;
}
.arch-divider svg{ height:100%; }

/* ---------- Top utility bar ---------- */
.utility-bar{
  background:var(--ink);
  color:#D9D2C2;
  font-size:.78rem;
}
.utility-bar .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:9px; padding-bottom:9px;
  gap:16px; flex-wrap:wrap;
}
.utility-bar a{ color:#D9D2C2; opacity:.85; }
.utility-bar a:hover{ opacity:1; color:var(--gold-light); }
.utility-links{ display:flex; gap:22px; flex-wrap:wrap; }

/* ---------- Header / nav ---------- */
header.site-header{
  background:var(--card);
  border-bottom:1px solid var(--line);
  position:sticky; top:0; z-index:50;
}
.brand-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 0;
  gap:24px;
}
.brand{
  display:flex; align-items:center; gap:14px;
}


.brand-mark{
  width:56px;height:56px;
  display:flex; align-items:center; justify-content:center;
  flex:none;
}
.brand-mark img{
  width:100%; height:100%; object-fit:contain;
}
.brand-text .name{ font-family:var(--serif); font-size:1.25rem; font-weight:600; color:var(--ink); }
.brand-text .tag{ font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:var(--maroon); }

nav.main-nav{
  border-top:1px solid var(--line);
}
nav.main-nav .wrap{ display:flex; }
nav.main-nav ul.top-level{
  display:flex; flex-wrap:wrap;
}
nav.main-nav > .wrap > ul.top-level > li{
  position:relative;
}
nav.main-nav > .wrap > ul.top-level > li > a{
  display:block;
  padding:14px 16px;
  font-size:.86rem;
  font-weight:600;
  color:var(--ink-soft);
  border-bottom:3px solid transparent;
}
nav.main-nav > .wrap > ul.top-level > li > a:hover,
nav.main-nav > .wrap > ul.top-level > li.active > a{
  color:var(--maroon);
  border-bottom-color:var(--gold);
}
nav.main-nav li.has-children:hover > .dropdown{
  display:block;
}
.dropdown{
  display:none;
  position:absolute; top:100%; left:0;
  background:var(--card);
  border:1px solid var(--line);
  min-width:250px;
  box-shadow:0 18px 30px -14px rgba(27,36,48,.25);
  z-index:60;
  padding:8px 0;
}
.dropdown li a{
  display:block; padding:10px 18px;
  font-size:.85rem; color:var(--ink-soft); font-weight:500;
}
.dropdown li a:hover{ background:var(--parchment); color:var(--maroon); }

/* Nested flyout submenu (e.g. Institutions > Educational > Colleges) — slides out to the right */
.dropdown li.submenu-parent{ position:relative; }
.dropdown li.submenu-parent > a{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.dropdown li.submenu-parent > a::after{
  content:"›";
  margin-left:10px;
  color:var(--gold);
  font-weight:700;
}
.dropdown li.submenu-parent:hover > a{
  background:var(--parchment);
  color:var(--maroon);
}

/* ul.dropdown.submenu is more specific than plain .dropdown, and !important guarantees
   this always wins over the default top:100%/left:0 — this is what makes it slide
   out sideways instead of dropping down underneath. */
ul.dropdown.submenu{
  top:0 !important;
  left:100% !important;
  min-width:260px;
  max-height:70vh;
  overflow-y:auto;
}
.dropdown li.submenu-parent:hover > .submenu{
  display:block;
}

.mobile-toggle{ display:none; }

/* ---------- Image Slider ---------- */
.slider{
  position:relative;
  width:100%;
  aspect-ratio: 16/7;
  min-height:320px;
  max-height:640px;
  overflow:hidden;
  background:var(--ink);
}
.slider .slides{ position:relative; width:100%; height:100%; }
.slider .slide{
  position:absolute; inset:0;
  opacity:0;
  transition:opacity 1.1s ease;
  pointer-events:none;
}
.slider .slide.active{ opacity:1; pointer-events:auto; }
.slider .slide img{
  width:100%; height:100%; object-fit:cover;
  filter:brightness(.62);
}
.slide-caption{
  position:absolute; left:32px; right:auto; bottom:48px;
  max-width:520px;
  padding:28px 32px;
  background:rgba(20,24,32,.42);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,.18);
  border-radius:18px;
  box-shadow:0 12px 36px -8px rgba(0,0,0,.45);
}
.slide-caption .eyebrow{ color:var(--gold-light); }
.slide-caption .eyebrow::before{ background:var(--gold-light); }
.slide-caption h2{ color:#fff; margin-top:12px; max-width:16ch; font-size:clamp(1.5rem,3.4vw,2.4rem); }

.slider-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:46px; height:46px;
  border-radius:50%;
  background:rgba(250,248,242,.16);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.4);
  color:#fff;
  font-size:1rem;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  z-index:5;
  transition:background .2s ease;
}
.slider-arrow:hover{ background:rgba(168,132,46,.85); border-color:var(--gold); }
.slider-arrow.prev{ left:22px; }
.slider-arrow.next{ right:22px; }

.slider-dots{
  position:absolute; bottom:20px; left:0; right:0;
  display:flex; justify-content:center; gap:10px;
  z-index:5;
}
.slider-dots .dot{
  width:9px; height:9px; border-radius:50%;
  background:rgba(255,255,255,.45);
  border:none; cursor:pointer;
  transition:background .2s ease, width .2s ease;
}
.slider-dots .dot.active{ background:var(--gold-light); width:22px; border-radius:5px; }

@media (max-width:640px){
  .slider{ aspect-ratio:4/5; max-height:520px; }
  .slide-caption{ left:16px; right:16px; bottom:24px; max-width:none; padding:22px 20px; }
  .slider-arrow{ width:38px; height:38px; }
}

/* ---------- Hero ---------- */
.hero--slim .wrap{ grid-template-columns:1fr; padding-bottom:64px; }
.hero{
  position:relative;
  background:
    radial-gradient(120% 140% at 50% -10%, rgba(122,35,49,.14), transparent 55%),
    var(--ink);
  color:#fff;
  overflow:hidden;
}
.hero .wrap{
  padding:96px 32px 0;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:48px;
  align-items:end;
}
.hero-copy .eyebrow{ color:var(--gold-light); }
.hero-copy .eyebrow::before{ background:var(--gold-light); }
.hero-copy h1{ color:#fff; margin-top:16px; }
.hero-copy p{ color:#C9C3B3; max-width:44ch; margin-top:18px; font-size:1.05rem; }
.hero-actions{ display:flex; gap:14px; margin-top:30px; flex-wrap:wrap; }

.hero-arch-img{
  border-radius: 200px 200px 0 0;
  overflow:hidden;
  aspect-ratio: 3/4;
  border:2px solid rgba(199,166,79,.5);
  border-bottom:none;
  justify-self:end;
  width:100%;
  max-width:340px;
}
.hero-arch-img img{ width:100%; height:100%; object-fit:cover; }

.hero-strip{
  height:34px;
  background:repeating-linear-gradient(90deg, var(--gold) 0 26px, var(--gold-light) 26px 52px);
  opacity:.9;
  margin-top:48px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 26px;
  font-weight:600; font-size:.88rem;
  border-radius:3px;
  border:1.5px solid transparent;
  cursor:pointer;
}
.btn-primary{ background:var(--gold); color:var(--ink); }
.btn-primary:hover{ background:var(--gold-light); }
.btn-outline{ border-color:rgba(255,255,255,.4); color:#fff; }
.btn-outline:hover{ border-color:#fff; }
.btn-outline.dark{ border-color:var(--maroon); color:var(--maroon); }
.btn-outline.dark:hover{ background:var(--maroon); color:#fff; }

/* ---------- Sections ---------- */
section{ padding:80px 0; }
.section-head{ max-width:640px; margin-bottom:44px; }
.section-head p{ margin-top:14px; }
.bg-card{ background:var(--card); }
.bg-ink{ background:var(--ink); color:#fff; }
.bg-ink h2, .bg-ink h3{ color:#fff; }
.bg-ink p{ color:#C9C3B3; }
.bg-maroon{ background:var(--maroon); color:#fff; }
.bg-maroon h2{ color:#fff; }
.bg-maroon p{ color:#E7CBCF; }

/* ---------- Cards / grids ---------- */
.grid{ display:grid; gap:28px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }

.card{
  background:var(--card);
  border:1px solid var(--line);
  padding:30px 26px;
  border-radius:6px 6px 0 0;
  border-top:3px solid var(--gold);
}
.card h3{ margin-bottom:10px; }
.card p{ font-size:.94rem; }

/* Priest detail card — glass surface. Text stays in the site's normal dark
   ink colors (not white), so readability never depends on the blur working
   well against whatever's behind it. */
.priest-glass-card{
  background:rgba(255,255,255,.55);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(216,207,184,.7);
  border-top:3px solid var(--gold);
  border-radius:14px;
  box-shadow:0 18px 40px -20px rgba(27,36,48,.25);
}
.card .icon{
  width:48px;height:48px;
  border-radius:50% 50% 50% 6px;
  background:var(--parchment-2);
  padding-bottom:10px;
  border-bottom:1px dashed var(--line);
  color:var(--maroon);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--serif); font-size:1.3rem;
  margin-bottom:16px;
}

/* Downloads page cards — compact, icon left of the title */
.download-card{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  background:var(--card);
  border:1px solid var(--line);
  border-top:3px solid var(--gold);
  border-radius:6px;
  padding:14px 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.download-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 24px -14px rgba(27,36,48,.3);
  border-top-color:var(--maroon);
}
.download-card .icon{
  flex:none;
  width:38px; height:38px;
  margin-bottom:0;
  padding-bottom:0;
  border-bottom:none;
  font-size:1.05rem;
}
.download-card-text{ min-width:0; }
.download-card-text h3{ font-size:.92rem; margin-bottom:2px; line-height:1.25; }
.download-card-text p{ color:var(--maroon); font-weight:600; font-size:.78rem; margin:0; }
.download-card-disabled{
  cursor:default;
  opacity:.55;
}
.download-card-disabled .icon{ color:var(--ink-soft); }
.download-card-disabled .download-card-text p{ color:var(--ink-soft); font-weight:500; }

.tile-link{ display:block; text-decoration:none; transition: transform .15s ease; }
.tile-link:hover{ transform:translateY(-4px); }
.tile{
  position:relative;
  border-radius: 90px 90px 4px 4px;
  overflow:hidden;
  aspect-ratio:3/4;
  border:1px solid var(--line);
}
.tile img{ width:100%; height:100%; object-fit:cover; }
.tile figcaption{
  position:absolute; left:0; right:0; bottom:0;
  background:linear-gradient(0deg, rgba(27,36,48,.88), transparent);
  color:#fff; padding:38px 16px 14px; text-align:center;
  font-family:var(--serif); font-size:.98rem;
}
.tile figcaption span{ display:block; font-family:var(--sans); font-size:.72rem; color:var(--gold-light); letter-spacing:.08em; text-transform:uppercase; margin-top:4px;}

/* Shepherds of our Church (homepage) — same frosted-glass treatment as the
   slider caption, scoped here so bishop.php's Former Bishops tiles (which
   share the base .tile class) keep their original solid gradient overlay. */
.shepherds-tiles .tile{ border:1px solid rgba(255,255,255,.3); }
.shepherds-tiles .tile figcaption{
  left:12px; right:12px; bottom:12px;
  background:rgba(20,24,32,.5);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.18);
  border-radius:14px;
  padding:16px 14px;
  box-shadow:0 10px 28px -12px rgba(0,0,0,.5);
}

/* Current Bishop's photo — same curved-top box as the Former Bishops
   tiles, with a golden border, and no caption overlay. */
.bishop-photo-box{
  border-radius: 90px 90px 4px 4px;
  overflow:hidden;
  border:3px solid var(--gold);
  aspect-ratio:3/4;
  width:100%;
}
.bishop-photo-box img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Floated version — text (eyebrow, name, bio) wraps around it, same pattern
   used for the Former Bishop detail pages. */
.bishop-current-article{ overflow:hidden; } /* clearfix for the float */
.bishop-photo-box-float{
  float:left;
  width:320px;
  margin:4px 24px 16px 0;
  border-radius: 90px 90px 4px 4px;
  overflow:hidden;
  border:3px solid var(--gold);
  box-sizing:border-box;
}
.bishop-photo-box-float img{
  width:100%;
  height:auto;
  display:block;
}
@media (max-width:640px){
  .bishop-photo-box-float{ float:none; width:100%; max-width:220px; margin:0 auto 20px; }
}


/* Former Bishop's photo — same curved-top box as the Former Bishops
   tiles, with a golden border, and no caption overlay. */
.former-bishop-photo-box{
  border-radius: 90px 90px 4px 4px;
  overflow:hidden;
  border:3px solid var(--gold);
  aspect-ratio:3/4;
  width:320px;
  max-width:45%;
  float:left;
  margin:4px 32px 20px 0;
}
.former-bishop-photo-box img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.former-bishop-article{ overflow:hidden; } /* establishes a new block-formatting context so the wrap's own height accounts for the float */

@media (max-width:640px){
  .former-bishop-photo-box{ float:none; width:100%; max-width:280px; margin:0 auto 20px; }
}

/* ---------- Quick links strip ---------- */
.quicklinks{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.quicklinks + .quicklinks{ margin-top:24px; }
.quicklinks a{
  background:var(--card);
  padding:26px 14px;
  text-align:center;
  font-size:.82rem;
  font-weight:600;
  color:var(--ink-soft);
}
.quicklinks a:hover{ background:var(--maroon); color:#fff; }
.quicklinks .ico{ font-family:var(--serif); font-size:1.5rem; color:var(--maroon); display:block; margin-bottom:10px;}
.quicklinks .ico img{ width:62px; height:auto; max-height:56px; object-fit:contain; display:block; margin:0 auto; }
.quicklinks a:hover .ico{ color:var(--gold-light); }

/* ---------- List / directory style ---------- */
.directory{ border-top:1px solid var(--line); }

/* Bishop's Programme — scrollable container, same .directory/.directory-row
   design underneath, just capped to a fixed height with a visible scrollbar
   on the right when there are more events than fit on screen. */
.programme-scroll-container{
  max-height:420px;
  overflow-y:auto;
  padding-right:6px;
}
.programme-scroll-container::-webkit-scrollbar{ width:8px; }
.programme-scroll-container::-webkit-scrollbar-track{ background:var(--parchment); border-radius:8px; }
.programme-scroll-container::-webkit-scrollbar-thumb{ background:var(--gold); border-radius:8px; }
.programme-scroll-container::-webkit-scrollbar-thumb:hover{ background:var(--maroon); }
.directory-row{
  display:grid; grid-template-columns: 1.3fr 1fr .9fr;
  gap:20px; align-items:center;
  padding:20px 0;
  border-bottom:1px solid var(--line);
}
.directory-row h4{ font-family:var(--serif); font-size:1.1rem; }
.directory-row h4 a:hover{ color:var(--maroon); text-decoration:underline; }
.directory-row .meta{ font-size:.85rem; color:var(--ink-soft); }

/* Compact variant used by the priest-history list */
.priest-history-row{
  grid-template-columns: minmax(0, 1fr) 20px 120px;
  align-items:center;
}
.directory-row.priest-history-row{
  gap:14px;
  padding:5px 0;
  line-height:1.2;
}
.priest-history-row h4{ font-family:var(--sans); min-width:0; overflow-wrap:break-word; margin:0; }
.priest-history-role{
  text-align:right;
  white-space:nowrap;
}
.priest-history-row .tag-pill{ white-space:nowrap; justify-self:end; }

/* Two-column variant used by the Institutes list: Name (with category folded in), Telephone */

/* Parishes directory table (parishes.php) — 6-column layout matching the
   original diocese site: Place, Name, Vicar/Director, Sunday Mass, Phone, Forane */
.parish-table{ border-top:none; }
.parish-list-row{
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items:center;
  gap:18px;
}
.directory-row.parish-list-row{
  padding:14px 16px;
  line-height:1.3;
  border-bottom:none;
}
.parish-list-row.row-even{ background:var(--parchment); }
.parish-list-row.row-odd{ background:transparent; }
.parish-cell-link{
  color:var(--maroon);
  font-weight:600;
  font-size:.88rem;
  text-decoration:none;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.parish-cell-link:hover{ text-decoration:underline; }
.parish-list-row .meta{
  font-size:.85rem;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.parish-list-head{
  padding:12px 16px;
  border-bottom:1px solid var(--line);
  margin-bottom:2px;
}
.parish-list-head span{
  font-family:var(--sans);
  font-size:.82rem;
  font-weight:700;
  color:var(--ink);
}

/* Institutes list — mirrors Priests Who Have Served exactly: Name + Phone-as-pill */
.institute-row{
  grid-template-columns: minmax(0, 1fr) 1fr 150px;
  align-items:center;
  gap:14px;
}
.directory-row.institute-row{
  padding:2px 0;
  line-height:1.1;
}
.institute-row h4{
  font-family:var(--sans);
  min-width:0;
  margin:0;
  white-space:nowrap;
}
.institute-managed{
  text-align:right;
  white-space:nowrap;
}
.institute-row .tag-pill{
  font-family:var(--sans);
  white-space:nowrap;
  justify-self:end;
}
.tag-pill{
  display:inline-block; font-size:.72rem; font-weight:700;
  letter-spacing:.05em; text-transform:uppercase;
  color:var(--maroon); background:var(--parchment-2);
  padding:5px 12px; border-radius:20px;
}

/* ---------- Timeline (about page) ---------- */
.timeline{ position:relative; padding-left:34px; border-left:2px solid var(--gold); }
.timeline-item{ position:relative; padding-bottom:36px; }
.timeline-item::before{
  content:""; position:absolute; left:-42px; top:2px;
  width:14px;height:14px; border-radius:50%;
  background:var(--maroon); border:3px solid var(--parchment);
}
.timeline-item .year{ font-family:var(--serif); color:var(--maroon); font-size:1.1rem; }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.contact-item{ display:flex; gap:16px; margin-bottom:26px; }
.contact-item .icon{
  width:44px;height:44px;flex:none;
  border-radius:50% 50% 50% 6px;
  background:var(--maroon); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--serif);
}

/* ---------- Parish Details card (compact, icon-led rows) ---------- */
.detail-list{ display:flex; flex-direction:column; }
.detail-line{
  display:grid;
  grid-template-columns: 30px 92px 1fr;
  align-items:center;
  gap:12px;
  padding:9px 4px;
  border-bottom:1px solid var(--line);
  transition: background .15s ease;
}
.detail-line:last-child{ border-bottom:none; }
.detail-line:hover{ background:var(--parchment); }

/* Serving Clergy: distinct soft tint to set it apart from the rest of Parish Details */
.serving-clergy-list{
  background:var(--parchment-2);
  border-radius:8px;
  padding:4px 10px;
}
.serving-clergy-list .detail-line{ border-bottom-color:rgba(27,36,48,.08); padding:8px 2px; }
.serving-clergy-list .detail-line:hover{ background:rgba(255,255,255,.55); }
.detail-line-icon{
  width:26px; height:26px;
  border-radius:50% 50% 50% 5px;
  background:linear-gradient(160deg, var(--maroon), var(--maroon-dark));
  color:var(--gold-light);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--serif); font-size:.78rem;
  flex:none;
}
.detail-line-label{
  font-family:var(--sans); font-size:.7rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.05em;
  color:var(--maroon);
}
.detail-line-value{ font-size:.88rem; color:var(--ink); line-height:1.4; }
.detail-badge{
  display:inline-block;
  background:linear-gradient(135deg, var(--gold), var(--gold-light));
  color:var(--ink);
  font-family:var(--serif); font-weight:600;
  padding:2px 12px;
  border-radius:20px;
  font-size:.85rem;
}

@media (max-width:640px){
  .detail-line{ grid-template-columns: 26px 1fr; row-gap:2px; }
  .detail-line-value{ grid-column: 2 / 3; }
}

/* Useful Links at Download Section */

  .useful-links-section {
    padding: 40px 20px;
    font-family: inherit;
  }
  .useful-links-section .wrap {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .link-group h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: #333;
    border-left: 3px solid #0056b3;
    padding-left: 8px;
  }
  .grid-a {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 8px 16px; /* Tightens vertical space between lines */
    margin-bottom: 20px;
  }
  .grid-a a {
    color: #0056b3;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    padding: 4px 0;
    display: inline-block;
    transition: color 0.2s ease;
  }
  .grid-a a:hover {
    color: #003d82;
    text-decoration: underline;
  }
  .divider {
    border: 0;
    border-top: 1px solid #eaeaea;
    margin: 25px 0;
  }

/* Institute statistics tables (About > Diocesan Statistics) */
.stats-table-wrap{ margin-top:36px; }
.stats-table-wrap:first-of-type{ margin-top:26px; }
.stats-table-heading{
  font-family:var(--serif);
  font-size:1.1rem;
  color:var(--maroon);
  margin-bottom:12px;
  padding-bottom:8px;
  border-bottom:2px solid var(--gold);
  display:inline-block;
}
.stats-table{
  width:100%;
  border-collapse:collapse;
  font-size:.88rem;
}
.stats-table th{
  text-align:left;
  font-family:var(--sans);
  font-size:.72rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--ink-soft);
  padding:10px 12px;
  border-bottom:1px solid var(--line);
}
.stats-table th:not(:first-child), .stats-table td:not(:first-child){
  text-align:center;
}
.stats-table td{
  padding:10px 12px;
  border-bottom:1px dashed var(--line);
  color:var(--ink);
}
.stats-table tbody tr:last-child td{ border-bottom:1px solid var(--line); }
.stats-table-label{ font-weight:600; }
.stats-table-label a:hover{ color:var(--maroon); text-decoration:underline; }
.stats-table-total{ font-weight:700; color:var(--maroon); }
@media (max-width:640px){
  .stats-table{ font-size:.78rem; }
  .stats-table th, .stats-table td{ padding:8px 6px; }
}

.map-frame{
  border-radius:16px; overflow:hidden; border:1px solid var(--line);
  aspect-ratio:4/3; background:var(--parchment-2);
  display:flex; align-items:center; justify-content:center;
  color:var(--ink-soft); font-size:.85rem; text-align:center; padding:20px;
}
.parish-history-text{
  margin-top:14px;
  white-space:pre-line;
  text-align:justify;
  font-size:1rem;
  line-height:1.7;
  color:var(--ink-soft);
}
.parish-history-title{
  margin-top:22px;
  margin-bottom:2px;
  font-family:var(--serif);
  font-size:1.05rem;
  color:var(--ink);
}
.parish-history-title:first-child{ margin-top:14px; }
@media (max-width:640px){
  .parish-history-text{
    font-size:.95rem;
    line-height:1.65;
    text-align:left; /* justified text on narrow columns creates uneven word gaps */
  }
}

/* Bulletin flipbook embed — tall, full-width viewer */
.bulletin-frame{
  width:100%;
  height:80vh;
  min-height:520px;
  max-height:820px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 20px 40px -24px rgba(27,36,48,.3);
}
.bulletin-frame iframe{
  width:100%;
  height:100%;
  display:block;
  border:0;
}


@media (max-width:640px){
  .bulletin-frame{ height:65vh; min-height:420px; border-radius:10px; }
}

.parish-map-frame{
  aspect-ratio: 4 / 3;
  width:100%;
}

form.inquiry{ display:grid; gap:16px; }
form.inquiry label{ font-size:.82rem; font-weight:600; color:var(--ink); display:block; margin-bottom:6px; }
form.inquiry input, form.inquiry select, form.inquiry textarea{
  width:100%; padding:12px 14px; border:1px solid var(--line);
  background:var(--card); border-radius:4px; font-family:var(--sans); font-size:.92rem;
}
form.inquiry textarea{ min-height:120px; resize:vertical; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }

/* Contact page — hero (heading + quick lines + circular photo), then a
   shaded 3-card strip (Call / Location / Hours), matching the reference layout. */
.contact-hero{
  background:#fff;
  padding-top:64px;
  padding-bottom:56px;
}
.contact-hero-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:70px;
  align-items:center;
}
.contact-hero-title{
  font-family:var(--sans);
  font-size:2.9rem;
  font-weight:800;
  letter-spacing:.01em;
  color:var(--ink);
  margin-bottom:20px;
}
.contact-hero-intro{
  font-size:1.05rem;
  color:var(--ink-soft);
  line-height:1.6;
  max-width:40ch;
}
.contact-hero-divider{
  width:110px;
  margin:28px 0;
  border:none;
  border-top:2px solid var(--gold);
}
.contact-hero-lines p{
  font-size:1.05rem;
  margin-bottom:14px;
  color:var(--ink);
}
.contact-hero-lines strong{ font-family:var(--sans); font-weight:700; }
.contact-hero-lines a{
  color:var(--ink);
  text-decoration:underline;
  text-decoration-color:var(--line);
  text-underline-offset:3px;
}
.contact-hero-lines a:hover{ color:var(--maroon); text-decoration-color:var(--maroon); }

.contact-hero-circle{
  aspect-ratio:1/1;
  border-radius:50%;
  overflow:hidden;
  box-shadow:0 30px 50px -25px rgba(27,36,48,.35);
}
.contact-hero-circle img{
  width:100%; height:100%;
  object-fit:cover;
  object-position: center 25%;
  display:block;
}

.contact-strip{ background:#fff; padding-top:0; padding-bottom:80px; }
.contact-strip-card{
  background:var(--parchment-2);
  border-radius:0;
  padding:32px 30px;
}
.contact-strip-card h4{
  font-family:var(--sans);
  font-weight:700;
  font-size:1rem;
  letter-spacing:.02em;
  color:var(--ink);
  margin-bottom:16px;
}
.contact-strip-card p{
  font-size:.9rem;
  color:var(--ink-soft);
  line-height:1.6;
}

.contact-map-frame{
  aspect-ratio: 21 / 9;
  width:100%;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--line);
}
@media (max-width:768px){
  .contact-map-frame{ aspect-ratio: 4 / 3; }
}

@media (max-width:860px){
  .contact-hero-grid{ grid-template-columns:1fr; gap:36px; }
  .contact-hero-circle{ max-width:340px; margin:0 auto; }
  .contact-hero-title{ font-size:2.2rem; }
}

form.inquiry input:focus, form.inquiry select:focus, form.inquiry textarea:focus{
  outline:none;
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(168,132,46,.15);
}

/* ---------- Footer ---------- */
footer.site-footer{ background:var(--ink); color:#C9C3B3; padding-top:64px; }
footer.site-footer .grid-4{ padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,.1); }
footer.site-footer h4{ color:#fff; font-family:var(--serif); font-size:1.05rem; margin-bottom:16px; }
footer.site-footer ul li{ margin-bottom:9px; }
footer.site-footer a{ color:#C9C3B3; font-size:.88rem; }
footer.site-footer a:hover{ color:var(--gold-light); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding:22px 0; font-size:.8rem; color:#8B93A0; flex-wrap:wrap; gap:10px;
}

/* ---------- Page header (interior pages) ---------- */
.page-header{
  background:var(--ink); color:#fff; padding:64px 0 46px;
  position:relative;
}
.page-header .eyebrow{ color:var(--gold-light); }
.page-header .eyebrow::before{ background:var(--gold-light); }
.page-header h1{ color:#fff; margin-top:12px; font-size:clamp(2rem,4vw,3rem); }
.breadcrumb{ font-size:.8rem; color:#9AA2AF; margin-top:14px; }
.breadcrumb a:hover{ color:var(--gold-light); }

/* ---------- Utility ---------- */
.pill-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.pill{ border:1px solid var(--line); padding:8px 16px; border-radius:20px; font-size:.8rem; font-weight:600; color:var(--ink-soft); }
.pill.active, .pill:hover{ background:var(--maroon); color:#fff; border-color:var(--maroon); }
.two-col{ display:grid; grid-template-columns:1.3fr 1fr; gap:56px; align-items:start; }
.stat{ text-align:left; }
.stat .num{ font-family:var(--serif); font-size:2.6rem; color:var(--gold); }
.stat .label{ font-size:.82rem; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-soft); }

@media (max-width: 980px){
  .hero .wrap{ grid-template-columns:1fr; }
  .hero-arch-img{ justify-self:start; max-width:260px; }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .two-col, .contact-grid{ grid-template-columns:1fr; }
  .quicklinks{ grid-template-columns:repeat(3,1fr); }

  /* Full-screen takeover mobile menu, matching the old site's pattern:
     solid color, large tappable rows, chevrons on items with submenus,
     tap-to-expand accordion instead of hover flyouts. */
  nav.main-nav{ position:static; }
  nav.main-nav .wrap{
    display:none;
    position:fixed;
    top:0; left:0; right:0; bottom:0;
    background:var(--maroon);
    z-index:200;
    overflow-y:auto;
    padding:88px 0 40px;
  }
  nav.main-nav.open .wrap{ display:block; }

  nav.main-nav ul.top-level{
    display:block;
    flex-wrap:nowrap;
  }
  nav.main-nav > .wrap > ul.top-level > li{
    border-bottom:1px solid rgba(255,255,255,.18);
  }
  nav.main-nav > .wrap > ul.top-level > li > a{
    padding:18px 28px;
    font-family:var(--sans);
    font-size:1.05rem;
    font-weight:500;
    color:#fff;
    border-bottom:none;
  }
  nav.main-nav > .wrap > ul.top-level > li.active > a,
  nav.main-nav > .wrap > ul.top-level > li > a:hover{
    color:var(--gold-light);
  }

  /* Chevron indicator for items with a submenu, matching the reference screenshot */
  .has-children > a{
    display:flex !important;
    align-items:center;
    justify-content:space-between;
  }
  .has-children > a::after{
    content:"⌄";
    font-size:1.3rem;
    color:rgba(255,255,255,.6);
    transition: transform .2s ease;
  }
  .has-children.open-drop > a::after{ transform:rotate(180deg); color:#fff; }

  /* Submenu (accordion), tap-to-expand via existing JS — plain block list,
     indented, on the same dark background rather than a flyout. */
  .dropdown{
    position:static;
    box-shadow:none;
    display:none;
    border:none;
    background:rgba(0,0,0,.15);
    padding:6px 0;
  }
  .has-children.open-drop > .dropdown{ display:block; }
  .dropdown li a{
    padding:14px 28px 14px 44px;
    font-size:.92rem;
    color:rgba(255,255,255,.85);
    border-bottom:none;
  }
  .dropdown li a:hover{ color:#fff; background:rgba(255,255,255,.08); }

  /* Institutions' nested third-level flyout also needs to become a plain
     accordion block on mobile instead of a sideways flyout. */
  .dropdown .submenu{
    position:static !important;
    left:auto !important;
    box-shadow:none;
    min-width:0;
    max-height:none;
  }
  .submenu-parent > a::after{ content:"⌄"; margin-left:auto; }
  .submenu-parent.open-drop > a::after{ transform:rotate(180deg); }
  .dropdown .submenu li a{ padding-left:60px; }

  .mobile-toggle{
    display:block;
    position:relative;
    z-index:210;
    background:none;
    border:1px solid var(--line);
    padding:8px 12px;
    border-radius:4px;
  }
  nav.main-nav.open .mobile-toggle{
    background:var(--maroon);
    color:#fff;
    border-color:var(--maroon);
  }

  .directory-row{ grid-template-columns:1fr; }
  .parish-list-head{ grid-template-columns:1fr; }
  form.inquiry .form-row{ grid-template-columns:1fr; }
  section{ padding:56px 0; }
  .page-header{ padding:48px 0 34px; }
}
@media (max-width:640px){
  .grid-4, .grid-3, .grid-2{ grid-template-columns:1fr; }
  .quicklinks{ grid-template-columns:repeat(2,1fr); }
  .wrap{ padding:0 20px; }
  section{ padding:44px 0; }
  .page-header{ padding:40px 0 28px; }
  .brand-row{ padding:14px 0; gap:14px; }
  .brand-mark{ width:44px; height:44px; }
  .brand-text .name{ font-size:1.05rem; }
  .brand-text .tag{ font-size:.62rem; }
  .btn{ padding:11px 20px; font-size:.82rem; }
  .stat .num{ font-size:2rem; }
  .directory-row{ padding:14px 0; }
  .card{ padding:22px 18px; }
  .timeline{ padding-left:24px; }
  .timeline-item::before{ left:-32px; }
  .contact-item{ gap:12px; }
  .contact-item .icon{ width:38px; height:38px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
}
@media (max-width:400px){
  .wrap{ padding:0 16px; }
  h1{ font-size:1.9rem; }
  .hero-copy p{ font-size:.95rem; }
  .utility-links{ gap:12px; font-size:.72rem; }
  .brand-text .tag{ display:none; }
}
