/* =====================================================================
   DIOCESE OF KUMBAKONAM — PREMIUM LAYER
   Intro emblem • snowfall • church backdrops • shepherd messages
   • scroll-driven bishops timeline
   Loaded after style.css. Tokens reuse the site's maroon + gold.
   ===================================================================== */

:root {
  --dk-maroon: #5c0a1e;
  --dk-maroon-2: #7a0f28;
  --dk-deep: #2a040d;
  --dk-night: #1d0309;
  --dk-gold: #e8c860;
  --dk-gold-2: #c9a227;
  --dk-gold-3: #8c6e0a;
  --dk-cream: #fbf5e9;
  --dk-ink: #3a1a20;
  --dk-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------------------------------------------------------------------
   1. INTRO — round emblem that opens like an iris onto the site
   --------------------------------------------------------------------- */
html.has-intro,
html.has-intro body { overflow: hidden; }

.intro { display: none; }
html.has-intro .intro {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 10000;
  cursor: pointer;
  --r: -4px;            /* no hole until the iris opens */
  /* failsafe: never trap a visitor if scripts fail */
  animation: introFailsafe 0s linear 9s forwards;
}
@keyframes introFailsafe { to { visibility: hidden; pointer-events: none; } }

.intro-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, #6a0d25 0%, #3f0615 40%, var(--dk-night) 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 1px));
          mask-image: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 1px));
  will-change: mask-image;
}
.intro-veil::after {                 /* faint rose window behind the emblem */
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: min(135vmin, 980px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23e8c860' stroke-width='.5' opacity='.5'%3E%3Ccircle cx='100' cy='100' r='96'/%3E%3Ccircle cx='100' cy='100' r='70'/%3E%3Ccircle cx='100' cy='100' r='44'/%3E%3Cpath d='M100 4v192M4 100h192M32 32l136 136M168 32L32 168'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .14;
  animation: introSlowSpin 40s linear infinite;
}
@keyframes introSlowSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.intro-edge {                         /* gold rim that travels with the opening */
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--dk-gold);
  box-shadow: 0 0 40px rgba(232, 200, 96, .55), inset 0 0 40px rgba(232, 200, 96, .25);
  opacity: 0;
  pointer-events: none;
}
.intro.is-opening .intro-edge { opacity: 1; transition: opacity .25s ease; }

.intro-emblem {
  position: relative;
  width: min(62vmin, 360px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: emblemIn 1.1s var(--dk-ease) both;
}
@keyframes emblemIn { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }

.intro-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.intro-svg .ring {
  fill: none;
  stroke: var(--dk-gold);
  stroke-linecap: round;
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  transform-origin: 120px 120px;
  transform: rotate(-90deg);
}
.intro-svg .ring-outer { stroke-width: 2.2; animation: ringDraw 1.5s var(--dk-ease) .15s forwards; }
.intro-svg .ring-mid   { stroke-width: .8; opacity: .7; animation: ringDraw 1.6s var(--dk-ease) .45s forwards; }
.intro-svg .ring-inner { stroke-width: 1.6; animation: ringDraw 1.4s var(--dk-ease) .7s forwards; }
@keyframes ringDraw { to { stroke-dashoffset: 0; } }

.intro-svg .arc-text {
  font-family: "Cinzel", serif;
  font-size: 12.5px;
  font-weight: 600;
  fill: var(--dk-gold);
  opacity: 0;
  animation: fadeIn 1s ease 1.1s forwards;
}
.intro-svg .arc-group { transform-origin: 120px 120px; animation: arcSpin 26s linear infinite; }
@keyframes arcSpin { to { transform: rotate(360deg); } }
@keyframes fadeIn { to { opacity: 1; } }

.intro-svg .cross {
  fill: none;
  stroke: var(--dk-gold);
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  filter: drop-shadow(0 0 6px rgba(232, 200, 96, .8));
  animation: crossDraw 1s var(--dk-ease) 1.05s forwards;
}
.intro-svg .cross-dot { fill: var(--dk-gold); opacity: 0; animation: fadeIn .5s ease 1.9s forwards; filter: drop-shadow(0 0 6px rgba(232, 200, 96, .9)); }
@keyframes crossDraw { to { stroke-dashoffset: 0; } }

.intro-year {
  position: absolute;
  left: 0; right: 0;
  top: 63%;
  text-align: center;
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: .22em;
  font-size: clamp(15px, 3.6vmin, 22px);
  color: #fff4cf;
  opacity: 0;
  transform: translateY(6px);
  animation: yearIn .9s ease 1.7s forwards;
}
@keyframes yearIn { to { opacity: 1; transform: none; } }

.intro-tag {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(14vh + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-family: var(--fd, "Playfair Display", serif);
  font-style: italic;
  font-size: clamp(15px, 2.6vmin, 19px);
  color: rgba(255, 244, 207, .82);
  opacity: 0;
  animation: fadeIn 1s ease 2.2s forwards;
}
.intro-skip {
  position: absolute;
  right: 18px; top: calc(16px + env(safe-area-inset-top, 0px));
  background: transparent;
  color: rgba(255, 244, 207, .7);
  border: 1px solid rgba(232, 200, 96, .4);
  border-radius: 999px;
  padding: 7px 15px;
  font: 600 12px/1 var(--fb, Inter, sans-serif);
  cursor: pointer;
  opacity: 0;
  animation: fadeIn .6s ease 1s forwards;
}
.intro-skip:hover, .intro-skip:focus-visible { color: #fff; border-color: var(--dk-gold); outline: none; }

.intro.is-opening .intro-emblem { animation: emblemOut 1.15s cubic-bezier(.55, 0, .8, .4) forwards; }
.intro.is-opening .intro-tag,
.intro.is-opening .intro-skip { animation: none; opacity: 0; transition: opacity .35s ease; }
@keyframes emblemOut { to { opacity: 0; transform: scale(1.7); } }

/* hero settles in as the iris opens */
html.intro-done .hero-stage { animation: heroSettle 1.8s var(--dk-ease) both; }
@keyframes heroSettle { from { transform: scale(1.05); filter: brightness(.7); } to { transform: none; filter: none; } }

/* ---------------------------------------------------------------------
   2. SNOWFALL canvas + scroll progress
   --------------------------------------------------------------------- */
.dk-snow {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 45;
  pointer-events: none;
}
.dk-progress {
  position: fixed;
  left: 0; top: 0;
  height: 3px; width: 100%;
  z-index: 60;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--dk-gold-2), var(--dk-gold), #fff4cf);
  box-shadow: 0 0 10px rgba(232, 200, 96, .7);
  pointer-events: none;
}

/* ---------------------------------------------------------------------
   3. CHURCH SKYLINE (injected into existing sections by premium.js)
   --------------------------------------------------------------------- */
.dk-has-skyline { position: relative; }
.dk-has-skyline > .container { position: relative; z-index: 1; }
.dk-skyline {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: clamp(90px, 15vw, 210px);
  z-index: 0;
  pointer-events: none;
  color: var(--dk-maroon);
  opacity: .075;
}
.dk-skyline svg { display: block; width: 100%; height: 100%; }

/* ---------------------------------------------------------------------
   4. MESSAGES FROM OUR SHEPHERDS
   Pope first, then our Bishop. Photo left / copy right, then flipped.
   --------------------------------------------------------------------- */
.shep {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 9vw, 130px) 0 clamp(150px, 20vw, 260px);
  color: #f6e9d0;
  background:
    linear-gradient(180deg, rgba(29, 3, 9, .93) 0%, rgba(58, 6, 18, .88) 45%, rgba(29, 3, 9, .96) 100%),
    url("../img/opt/church-bg.jpg") center 30% / cover no-repeat;
  background-color: var(--dk-night);
}
@media (min-width: 900px) and (hover: hover) { .shep { background-attachment: scroll, fixed; } }

.shep::before {                       /* rose window, drifting slowly */
  content: "";
  position: absolute;
  z-index: -1;
  width: min(80vw, 760px); aspect-ratio: 1;
  right: -14%; top: 4%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23e8c860' stroke-width='.6'%3E%3Ccircle cx='100' cy='100' r='96'/%3E%3Ccircle cx='100' cy='100' r='86'/%3E%3Ccircle cx='100' cy='100' r='22'/%3E%3Cg%3E%3Ccircle cx='100' cy='46' r='17'/%3E%3Ccircle cx='146.8' cy='73' r='17'/%3E%3Ccircle cx='146.8' cy='127' r='17'/%3E%3Ccircle cx='100' cy='154' r='17'/%3E%3Ccircle cx='53.2' cy='127' r='17'/%3E%3Ccircle cx='53.2' cy='73' r='17'/%3E%3C/g%3E%3Cpath d='M100 14v172M14 100h172M39 39l122 122M161 39L39 161'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .11;
  animation: introSlowSpin 120s linear infinite;
  transform-origin: 50% 50%;
}
.shep .dk-skyline { color: #0f0206; opacity: 1; height: clamp(110px, 17vw, 240px); }
.shep .dk-skyline::before {           /* warm glow behind the skyline */
  content: "";
  position: absolute;
  inset: -40% 0 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(232, 200, 96, .22), transparent 60%);
}
.shep .dk-skyline svg { position: relative; }

.shep-head { text-align: center; max-width: 720px; margin: 0 auto clamp(48px, 7vw, 92px); padding-inline: 1rem; }
.shep-head h2 {
  font-family: var(--fd, "Playfair Display", serif);
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.12;
  font-weight: 700;
  color: #fff4cf;
  text-wrap: balance;
}
.shep-head p { margin-top: 14px; font-size: clamp(15px, 1.7vw, 17px); color: rgba(246, 233, 208, .78); line-height: 1.7; }
.shep-rule {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 26px;
}
.shep-rule::before, .shep-rule::after {
  content: ""; height: 1px; width: 0;
  background: linear-gradient(90deg, transparent, var(--dk-gold));
  transition: width 1.1s var(--dk-ease) .2s;
}
.shep-rule::after { background: linear-gradient(270deg, transparent, var(--dk-gold)); }
.shep-rule svg { width: 22px; height: 22px; color: var(--dk-gold); }
.in-view .shep-rule::before, .in-view .shep-rule::after { width: min(90px, 18vw); }

.shep-stack { max-width: 1120px; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2rem); position: relative; }

.shep-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 5.5vw, 76px);
}
.shep-row--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.shep-row--flip .shep-photo { order: 2; }
.shep-row--flip .shep-copy { order: 1; }

/* the thread that joins the Holy Father to our own shepherd */
.shep-link {
  position: relative;
  height: clamp(70px, 9vw, 120px);
  margin: clamp(20px, 3vw, 40px) 0;
}
.shep-link::before {
  content: "";
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--dk-gold), rgba(232, 200, 96, .15));
  transform-origin: top; transform: translateX(-50%) scaleY(0);
  transition: transform 1.2s var(--dk-ease);
}
.shep-link.in-view::before { transform: translateX(-50%) scaleY(1); }
.shep-link::after {
  content: "";
  position: absolute; left: 50%; bottom: -6px;
  width: 11px; height: 11px;
  background: var(--dk-gold);
  transform: translateX(-50%) rotate(45deg) scale(0);
  box-shadow: 0 0 18px rgba(232, 200, 96, .8);
  transition: transform .6s var(--dk-ease) 1s;
}
.shep-link.in-view::after { transform: translateX(-50%) rotate(45deg) scale(1); }

/* portrait in a gothic arch */
.shep-photo { position: relative; justify-self: center; width: min(100%, 380px); margin: 0; }
.shep-arch {
  position: relative;
  aspect-ratio: 4 / 5.2;
  border-radius: 999px 999px 18px 18px;
  padding: 9px;
  background: linear-gradient(160deg, #f3dd95, #b8902a 48%, #7a5a0a);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(232, 200, 96, .35);
  clip-path: inset(100% 0 0 0 round 999px 999px 18px 18px);
  transition: clip-path 1.3s var(--dk-ease);
}
.in-view .shep-arch { clip-path: inset(0 0 0 0 round 999px 999px 18px 18px); }
.shep-arch::after {                   /* inner hairline */
  content: ""; position: absolute; inset: 15px;
  border-radius: 999px 999px 12px 12px;
  border: 1px solid rgba(255, 244, 207, .55);
  pointer-events: none;
}
.shep-frame {
  position: relative; width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 999px 999px 11px 11px;
  background: #1d0309;
}
.shep-frame img {
  position: absolute; inset: -9% 0;
  width: 100%; height: 118%;
  object-fit: cover; object-position: 50% 18%;
  transform: translate3d(0, calc((var(--p, .5) - .5) * -46px), 0) scale(1.04);
  will-change: transform;
}
.shep-plaque {
  position: relative;
  margin: -26px auto 0;
  width: max-content; max-width: 92%;
  padding: 11px 26px;
  text-align: center;
  border-radius: 6px;
  color: #fff4cf;
  background: linear-gradient(180deg, var(--dk-maroon-2), var(--dk-maroon));
  border: 1px solid rgba(232, 200, 96, .6);
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(14px);
  transition: opacity .8s ease .9s, transform .8s var(--dk-ease) .9s;
}
.in-view .shep-plaque { opacity: 1; transform: none; }
.shep-plaque strong { display: block; font-family: var(--fd, serif); font-size: clamp(16px, 2vw, 19px); font-weight: 700; letter-spacing: .01em; }
.shep-plaque span { display: block; margin-top: 2px; font-size: 12px; color: rgba(246, 233, 208, .75); }

/* copy */
.shep-copy { position: relative; }
.shep-copy > * { opacity: 0; transform: translateX(var(--shift, 34px)); transition: opacity .9s ease, transform .9s var(--dk-ease); }
.shep-row .shep-copy { --shift: 34px; }
.shep-row--flip .shep-copy { --shift: -34px; }
.in-view .shep-copy > * { opacity: 1; transform: none; }
.in-view .shep-copy > *:nth-child(1) { transition-delay: .25s; }
.in-view .shep-copy > *:nth-child(2) { transition-delay: .4s; }
.in-view .shep-copy > *:nth-child(3) { transition-delay: .55s; }
.in-view .shep-copy > *:nth-child(4) { transition-delay: .7s; }
.in-view .shep-copy > *:nth-child(5) { transition-delay: .85s; }

.shep-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13.5px; color: var(--dk-gold); }
.shep-meta span { display: inline-flex; align-items: center; gap: 6px; }
.shep-meta svg { width: 15px; height: 15px; }
.shep-copy h3 {
  margin-top: 10px;
  font-family: var(--fd, "Playfair Display", serif);
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.15;
  color: #fff4cf;
  font-weight: 700;
}
.shep-name { margin-top: 6px; font-family: var(--fd, serif); font-style: italic; font-size: clamp(16px, 1.9vw, 19px); color: rgba(246, 233, 208, .8); }

.shep-quote {
  position: relative;
  margin-top: 22px;
  padding: 4px 0 4px 26px;
  border-left: 2px solid rgba(232, 200, 96, .55);
  font-family: var(--fd, "Playfair Display", "Noto Serif Tamil", serif);
  font-size: clamp(16px, 1.55vw, 18px);
  line-height: 1.85;
  color: rgba(250, 240, 220, .92);
  max-width: 62ch;
}
.shep-quote p + p { margin-top: 14px; }
.shep-quote .shep-more { overflow: hidden; }
.shep-quote .shep-more[hidden] { display: none; }
.shep-quote .shep-more p:first-child { margin-top: 14px; }
.shep-quote .shep-cite { font-size: 14px; font-style: italic; color: var(--dk-gold); }
.shep-quote .shep-bless { color: #fff4cf; font-style: italic; }

.shep-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }
.shep-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--dk-gold);
  background: linear-gradient(180deg, #f3dd95, var(--dk-gold) 55%, #c9a227);
  color: var(--dk-deep);
  font: 700 14px/1 var(--fb, Inter, sans-serif);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px -10px rgba(232, 200, 96, .7);
  transition: transform .25s var(--dk-ease), box-shadow .25s ease;
}
.shep-btn:hover, .shep-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(232, 200, 96, .85); outline: none; }
.shep-btn svg { width: 16px; height: 16px; transition: transform .25s var(--dk-ease); }
.shep-btn[aria-expanded="true"] svg { transform: rotate(90deg); }
.shep-source { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(246, 233, 208, .72); text-decoration: none; border-bottom: 1px solid rgba(232, 200, 96, .35); padding-bottom: 2px; }
.shep-source:hover { color: var(--dk-gold); }
.shep-source svg { width: 13px; height: 13px; }
.shep-sign { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--dk-gold); font-style: italic; }
.shep-sign svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------------
   5. BISHOPS THROUGH THE YEARS — scroll-driven vertical timeline
   gold line + maroon dots + maroon year pills (as in Historical Milestones)
   --------------------------------------------------------------------- */
.bt {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0 0 clamp(140px, 17vw, 230px);
  background: linear-gradient(180deg, #fffdf8 0%, var(--dk-cream) 28%, #f6ead0 100%);
}
.bt-hero {                            /* cathedral photograph, fading into parchment */
  position: relative;
  padding: clamp(80px, 10vw, 140px) 1rem clamp(70px, 9vw, 120px);
  text-align: center;
  color: #fff4cf;
  overflow: hidden;
  isolation: isolate;
}
.bt-hero::before {
  content: "";
  position: absolute; inset: -12% 0;
  z-index: -2;
  background: url("../img/opt/cathedral.jpg") center 35% / cover no-repeat;
  transform: translate3d(0, calc(var(--p, .5) * 60px - 30px), 0);
  will-change: transform;
}
.bt-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(42, 4, 13, .78) 0%, rgba(74, 7, 20, .66) 55%, rgba(251, 245, 233, 0) 100%),
    linear-gradient(0deg, var(--dk-cream) 0%, transparent 34%);
}
.bt-hero h2 {
  font-family: var(--fd, "Playfair Display", serif);
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.1; font-weight: 700;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .45);
}
.bt-hero p { max-width: 620px; margin: 16px auto 0; font-size: clamp(15px, 1.7vw, 17px); line-height: 1.7; color: rgba(255, 244, 207, .9); }
.bt-hero .shep-rule { margin-top: 24px; }
.bt-hero .shep-note { display: block; margin-top: 16px; font-family: var(--fd, serif); font-style: italic; color: var(--dk-gold); font-size: 16px; }

.bt-wrap { position: relative; max-width: 1180px; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.bt-list {
  --prog: 0;
  position: relative;
  list-style: none;
  margin: 0; padding: 0;
}
.bt-list::before {                    /* the gold rail */
  content: "";
  position: absolute; z-index: 0;
  left: 50%; top: 26px; bottom: 0;
  width: 4px; margin-left: -2px;
  border-radius: 4px;
  background: linear-gradient(180deg, #d9b45a, #c9a227);
  opacity: .45;
}
.bt-progress {                        /* the maroon fill that follows your scroll */
  position: absolute; z-index: 1;
  left: 50%; top: 26px; bottom: 0;
  width: 4px; margin-left: -2px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--dk-maroon-2), var(--dk-maroon));
  transform-origin: top;
  transform: scaleY(var(--prog));
  box-shadow: 0 0 14px rgba(122, 15, 40, .35);
}
.bt-tip {                             /* glowing marker that rides the line */
  position: absolute; z-index: 3;
  left: 50%; top: calc(26px + (100% - 26px) * var(--prog));
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 25%, var(--dk-gold) 45%, rgba(232, 200, 96, 0) 72%);
  box-shadow: 0 0 22px 6px rgba(232, 200, 96, .7);
  pointer-events: none;
}

.bt-items { list-style: none; margin: 0; padding: 0; position: relative; z-index: 2; }
.bt-item {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  align-items: start;
  padding-bottom: clamp(56px, 8vw, 104px);
}
.bt-item:last-child { padding-bottom: 0; }

.bt-spine { grid-column: 2; grid-row: 1; position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 14px; }
.bt-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #f6ead0;
  border: 4px solid #c9a227;
  box-shadow: 0 0 0 6px var(--dk-cream);
  transition: background .5s ease, border-color .5s ease, transform .6s var(--dk-ease), box-shadow .6s ease;
}
.bt-item.on .bt-dot {
  background: var(--dk-maroon);
  border-color: var(--dk-maroon);
  transform: scale(1.12);
  box-shadow: 0 0 0 6px var(--dk-cream), 0 0 0 8px rgba(201, 162, 39, .9), 0 0 26px rgba(232, 200, 96, .9);
}
.bt-year {
  margin-top: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--dk-maroon);
  color: #fff;
  font: 800 15px/1 var(--fb, Inter, sans-serif);
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: 0 10px 22px -8px rgba(92, 10, 30, .6);
  opacity: .55; transform: scale(.94);
  transition: opacity .5s ease, transform .6s var(--dk-ease), background .5s ease;
}
.bt-item.on .bt-year { opacity: 1; transform: none; }
.bt-year--inline { display: none; }

.bt-photo { grid-row: 1; margin: 0; position: relative; width: min(100%, 300px); }
.bt-copy  { grid-row: 1; position: relative; padding-top: 6px; max-width: 460px; }

.bt-item:nth-child(odd)  .bt-photo { grid-column: 1; justify-self: end; }
.bt-item:nth-child(odd)  .bt-copy  { grid-column: 3; justify-self: start; }
.bt-item:nth-child(even) .bt-photo { grid-column: 3; justify-self: start; }
.bt-item:nth-child(even) .bt-copy  { grid-column: 1; justify-self: end; text-align: right; }
.bt-item:nth-child(even) .bt-meta { justify-content: flex-end; }

.bt-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 8px;
  border-radius: 14px;
  background: linear-gradient(150deg, #f3dd95, #c9a227 50%, #8c6e0a);
  box-shadow: 0 26px 50px -22px rgba(74, 7, 20, .55);
  overflow: hidden;
  clip-path: inset(0 0 100% 0 round 14px);
  transition: clip-path 1.2s var(--dk-ease);
}
.bt-item.in .bt-frame { clip-path: inset(0 0 0 0 round 14px); }
.bt-frame-in { position: relative; width: 100%; height: 100%; border-radius: 8px; overflow: hidden; background: #e9e1d2; }
.bt-frame-in img {
  position: absolute; inset: -7% 0; width: 100%; height: 114%;
  object-fit: cover; object-position: 50% 14%;
  transform: translate3d(0, calc((var(--p, .5) - .5) * -30px), 0) scale(1.03);
  will-change: transform;
}
.bt-ord {
  position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  padding: 5px 16px 6px;
  border-radius: 10px 10px 0 0;
  background: var(--dk-maroon); color: #fff4cf;
  font: 600 12px/1 var(--fb, Inter, sans-serif);
  white-space: nowrap;
}
.bt-now {
  position: absolute; top: 18px; right: -4px; z-index: 2;
  padding: 6px 12px; border-radius: 6px 0 0 6px;
  background: var(--dk-gold); color: var(--dk-deep);
  font: 800 12px/1 var(--fb, Inter, sans-serif);
  box-shadow: 0 8px 16px -6px rgba(0, 0, 0, .35);
}

.bt-copy > * { opacity: 0; transform: translateX(var(--shift, 30px)); transition: opacity .8s ease, transform .8s var(--dk-ease); }
.bt-item:nth-child(odd) .bt-copy { --shift: 30px; }
.bt-item:nth-child(even) .bt-copy { --shift: -30px; }
.bt-item.in .bt-copy > * { opacity: 1; transform: none; }
.bt-item.in .bt-copy > *:nth-child(1) { transition-delay: .2s; }
.bt-item.in .bt-copy > *:nth-child(2) { transition-delay: .32s; }
.bt-item.in .bt-copy > *:nth-child(3) { transition-delay: .44s; }
.bt-item.in .bt-copy > *:nth-child(4) { transition-delay: .56s; }

.bt-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bt-copy h3 {
  margin-top: 12px;
  font-family: var(--fd, "Playfair Display", serif);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.2; font-weight: 700;
  color: var(--dk-maroon);
  text-wrap: balance;
}
.bt-role { margin-top: 8px; font-family: var(--fd, serif); font-style: italic; font-size: 16px; color: var(--dk-gold-3); }
.bt-text { margin-top: 12px; font-size: 15.5px; line-height: 1.75; color: #4b3a3d; }

.bt-end {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  width: 54px; height: 54px; margin: 26px auto 0;
  border-radius: 50%;
  background: var(--dk-maroon); color: var(--dk-gold);
  border: 3px solid var(--dk-gold-2);
  box-shadow: 0 0 0 7px var(--dk-cream), 0 14px 30px -8px rgba(92, 10, 30, .6);
  opacity: .35; transform: scale(.85);
  transition: opacity .6s ease, transform .7s var(--dk-ease);
}
.bt-end.on { opacity: 1; transform: none; }
.bt-end svg { width: 24px; height: 24px; }

.bt .dk-skyline { color: var(--dk-maroon); opacity: .11; }

/* ---------------------------------------------------------------------
   6. SNOW TOGGLE (re-uses the site's existing #dioceseSnowToggle skin)
   --------------------------------------------------------------------- */
#dioceseSnowToggle { z-index: 9995; }

/* ---------------------------------------------------------------------
   7. RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 860px) {
  .shep-row, .shep-row--flip { grid-template-columns: 1fr; gap: 34px; }
  .shep-row--flip .shep-photo, .shep-row .shep-photo { order: 1; }
  .shep-row--flip .shep-copy, .shep-row .shep-copy { order: 2; --shift: 0px; }
  .shep-copy > * { transform: translateY(22px); }
  .in-view .shep-copy > * { transform: none; }
  .shep-photo { width: min(78%, 320px); }
  .shep-quote { padding-left: 18px; }

  .bt-list::before, .bt-progress { left: 17px; margin-left: -2px; }
  .bt-tip { left: 17px; }
  .bt-item { grid-template-columns: 34px minmax(0, 1fr); row-gap: 22px; padding-bottom: 60px; }
  .bt-spine { grid-column: 1; grid-row: 1 / span 2; align-items: flex-start; padding-top: 6px; }
  .bt-spine .bt-year { display: none; }
  .bt-dot { width: 22px; height: 22px; margin-left: 6px; }
  .bt-item .bt-photo,
  .bt-item:nth-child(odd) .bt-photo, .bt-item:nth-child(even) .bt-photo { grid-column: 2; grid-row: 1; justify-self: start; width: min(72%, 250px); }
  .bt-item .bt-copy,
  .bt-item:nth-child(odd) .bt-copy, .bt-item:nth-child(even) .bt-copy { grid-column: 2; grid-row: 2; justify-self: start; text-align: left; --shift: 0px; padding-top: 0; }
  .bt-item:nth-child(even) .bt-meta { justify-content: flex-start; }
  .bt-copy > * { transform: translateY(20px); }
  .bt-item.in .bt-copy > * { transform: none; }
  .bt-year--inline { display: inline-block; margin-top: 0; opacity: 1; transform: none; }
  .bt-end { margin-left: -10px; }
}

/* ---------------------------------------------------------------------
   8. REDUCED MOTION
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .intro, .intro * { animation: none !important; }
  .shep::before, .intro-veil::after { animation: none !important; }
  .shep-arch, .bt-frame { clip-path: none !important; transition: none !important; }
  .shep-copy > *, .bt-copy > *, .shep-plaque { opacity: 1 !important; transform: none !important; transition: none !important; }
  .shep-frame img, .bt-frame-in img, .bt-hero::before { transform: none !important; }
  .shep-link::before, .shep-link::after { transition: none !important; transform: translateX(-50%) !important; }
  .shep-link::after { transform: translateX(-50%) rotate(45deg) !important; }
  .bt-progress { transform: scaleY(1) !important; }
  html.intro-done .hero-stage { animation: none !important; }
}

/* ---------------------------------------------------------------------
   9. FIX — scrolled navbar turned cream while its links stayed white
   --------------------------------------------------------------------- */
#navbar.scrolled {
  background: rgba(42, 4, 13, .94);
  box-shadow: 0 10px 34px -10px rgba(42, 4, 13, .55);
}

/* snow toggle sits above the mobile bottom navigation */
@media (max-width: 900px) {
  html body #dioceseSnowToggle { bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; left: 10px !important; }
}


/* =========================================================
   MOBILE NAVIGATION REFINEMENT
   Scoped only to the header and mobile drawer.
   Keeps all page content and existing visual features intact.
   ========================================================= */

.nav-in {
  min-width: 0;
}

.nav-in > .brand {
  flex: 0 1 auto;
  min-width: 0;
}

.nav-actions {
  flex: 0 0 auto;
  margin-left: auto;
  justify-content: flex-end;
}

.hamburger {
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hamburger .lucide {
  width: 23px;
  height: 23px;
}

/* Drawer structure and scrolling */
.drawer {
  width: min(90vw, 410px);
  max-width: 410px;
  height: 100vh;
  height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  overscroll-behavior: contain;
}

.drawer-head {
  flex: 0 0 auto;
  min-height: 76px;
  padding: 13px 18px;
  gap: 12px;
}

.drawer-brand {
  min-width: 0;
  gap: 12px;
}

.drawer-brand > span:last-child {
  min-width: 0;
}

.drawer-brand strong {
  font-size: 17px;
  line-height: 1.25;
}

.drawer-brand small {
  font-size: 12px;
  line-height: 1.5;
}

.drawer-head .icon-btn {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-lang {
  flex: 0 0 auto;
  gap: 10px;
  padding: 14px 18px 8px;
}

.drawer-lang .dlang {
  min-height: 48px;
  padding: 10px 12px;
  font-size: 15px;
}

.drawer-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 200, 96, .55) transparent;
  padding: 10px 18px 18px;
  gap: 2px;
}

.drawer-nav > a {
  min-height: 64px;
  padding: 12px 10px;
  gap: 12px;
  border-bottom: 1px solid rgba(232, 200, 96, .12);
  border-radius: 8px;
}

.drawer-nav > a span {
  min-width: 0;
  gap: 3px;
}

.drawer-nav strong {
  color: rgba(255, 255, 255, .96);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.drawer-nav small {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  line-height: 1.45;
}

.drawer-nav > a > .lucide {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #e8c860;
}

.drawer-dropdown {
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(232, 200, 96, .16);
}

.drawer-dropdown-toggle {
  min-height: 64px;
  padding: 12px 10px;
  gap: 12px;
}

.drawer-dropdown-toggle span {
  min-width: 0;
  gap: 3px;
}

.drawer-dropdown-toggle strong {
  color: rgba(255, 255, 255, .96);
  font-size: 15px;
  line-height: 1.45;
}

.drawer-dropdown-toggle small {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  line-height: 1.45;
}

.drawer-dropdown-toggle > .lucide {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #e8c860;
}

.drawer-submenu {
  padding: 0 0 10px 14px;
}

.drawer-submenu a {
  min-height: 42px;
  align-items: center;
  padding: 10px 12px;
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  line-height: 1.45;
}

.drawer-foot {
  flex: 0 0 auto;
  padding: 13px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  gap: 9px;
  background: linear-gradient(180deg, rgba(39, 10, 29, .98), #1b1026);
  box-shadow: 0 -8px 22px rgba(0, 0, 0, .12);
}

.drawer-foot .btn-ghost-gold,
.drawer-foot .btn-gold {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  border-radius: 14px;
  font-size: 14px;
}

.drawer-foot p {
  margin: 0;
  padding-top: 3px;
  line-height: 1.5;
  font-size: 11px;
}

/* Keep the desktop navigation from becoming cramped on smaller laptops. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-links {
    display: none !important;
  }

  .hamburger {
    display: inline-flex !important;
  }

  .nav-actions .btn-gold {
    display: inline-flex;
  }
}

/* Phone layout */
@media (max-width: 767px) {
  .nav-in {
    min-height: 76px;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand .crest {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .brand-over {
    font-size: 8px;
    letter-spacing: .2em;
  }

  .brand-name {
    font-size: clamp(15px, 4.4vw, 19px);
    line-height: 1.2;
  }

  .nav-actions {
    gap: 8px;
  }

  .drawer {
    width: min(90vw, 410px);
  }

  .drawer-nav > a,
  .drawer-dropdown-toggle {
    min-height: 60px;
  }
}

/* Compact phones */
@media (max-width: 380px) {
  .nav-in {
    gap: 7px;
  }

  .brand {
    gap: 8px;
  }

  .brand .crest {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 15px;
  }

  .hamburger {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .drawer {
    width: 92vw;
  }

  .drawer-head {
    padding-inline: 14px;
  }

  .drawer-lang {
    padding-inline: 14px;
  }

  .drawer-nav {
    padding-inline: 14px;
  }

  .drawer-foot {
    padding-inline: 14px;
  }
}


/* ==========================================================
   FINAL HEADER + TOP BANNER RESPONSIVE REFINEMENT
   Keeps the existing visual design and all page functionality.
   ========================================================== */

/* Keep the Diocese banner fully visible and proportionate. */
.site-banner {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: #2a040d;
}

.site-banner img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

/* Give the brand, navigation and action controls their own space. */
@media (min-width: 1500px) {
  .nav-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .nav-in > .brand {
    flex: 0 0 auto;
    max-width: 245px;
  }

  .nav-links {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    align-items: center;
    gap: 1px;
  }

  .nav-links a {
    white-space: nowrap;
    padding: 9px 7px;
    font-size: 11.5px;
  }

  .nav-actions {
    flex: 0 0 auto;
    gap: 7px;
  }

  .hamburger {
    display: none !important;
  }

  .nav-actions .btn-gold {
    display: inline-flex !important;
    white-space: nowrap;
  }
}

/* Medium desktop / laptop: use the drawer instead of squeezing links. */
@media (min-width: 1024px) and (max-width: 1499px) {
  .nav-in {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .nav-in > .brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  .nav-links {
    display: none !important;
  }

  .nav-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
  }

  .nav-actions .btn-gold {
    display: inline-flex !important;
    white-space: nowrap;
  }

  .hamburger {
    display: inline-flex !important;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
  }
}

/* Tablet and mobile header spacing. */
@media (max-width: 1023px) {
  .nav-in {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .nav-in > .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-txt {
    min-width: 0;
  }

  .brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-actions {
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
  }

  .hamburger {
    display: inline-flex !important;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
  }

  .nav-actions .btn-gold {
    display: none !important;
  }

  .site-banner img {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
  }
}

/* Small phones: preserve the full brand and avoid button collisions. */
@media (max-width: 420px) {
  .nav-in {
    min-height: 68px;
    padding-left: 14px;
    padding-right: 14px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand .crest {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .brand-over {
    font-size: 7px;
    letter-spacing: .16em;
  }

  .brand-name {
    font-size: clamp(14px, 4vw, 17px);
    white-space: nowrap;
  }

  .hamburger {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
  }
}

/* Keep the banner image clear and uncropped on narrow screens. */
@media (max-width: 767px) {
  .site-banner {
    background: #2a040d;
  }

  .site-banner img {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
  }
}


/* ==========================================================
   DESKTOP NAVBAR FINAL FIX
   At common laptop/desktop widths use a balanced brand + actions
   row and open the full navigation in the drawer. This prevents
   the long menu from colliding with the brand and Donate controls.
   ========================================================== */

@media screen and (min-width: 1024px) and (max-width: 1599px) {
  .navbar .nav-in {
    box-sizing: border-box;
    width: 100%;
    min-height: 78px;
    padding: 12px 30px;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
  }

  .navbar .brand {
    display: flex !important;
    flex: 0 1 auto;
    min-width: 250px;
    max-width: 360px;
    align-items: center;
    gap: 12px;
  }

  .navbar .brand-txt {
    min-width: 0;
  }

  .navbar .brand-name {
    white-space: nowrap;
    font-size: clamp(17px, 1.45vw, 22px);
  }

  .navbar .nav-links {
    display: none !important;
  }

  .navbar .nav-actions {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
  }

  .navbar .lang-toggle {
    display: inline-flex !important;
  }

  .navbar .nav-actions .btn-gold {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    white-space: nowrap;
  }

  .navbar .hamburger {
    display: inline-flex !important;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 13px;
  }
}

/* Wider monitors: full horizontal menu with a fixed, balanced layout. */
@media screen and (min-width: 1600px) {
  .navbar .nav-in {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 76px;
  }

  .navbar .brand {
    flex: 0 0 225px;
    min-width: 225px;
  }

  .navbar .nav-links {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    align-items: center;
    gap: 2px;
  }

  .navbar .nav-links > a,
  .navbar .nav-links .nav-dropdown > .nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 9px 7px;
    font-size: 12px;
    line-height: 1.25;
  }

  .navbar .nav-links .nav-dropdown-toggle i {
    width: 12px;
    height: 12px;
    margin-left: 3px;
  }

  .navbar .nav-actions {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
  }

  .navbar .lang-toggle {
    display: inline-flex !important;
  }

  .navbar .nav-actions .btn-gold {
    display: inline-flex !important;
    white-space: nowrap;
  }

  .navbar .hamburger {
    display: none !important;
  }
}

/* Do not let the brand or actions shrink into overlapping text. */
@media screen and (min-width: 1024px) {
  .navbar .brand,
  .navbar .nav-actions {
    flex-shrink: 0;
  }

  .navbar .nav-links a::after {
    left: 7px;
    right: 7px;
  }
}


/* =========================================================
   FINAL RESPONSIVE NAVIGATION FIX
   Desktop: balanced horizontal/wrapped navigation.
   Tablet & mobile: accessible slide-out navigation drawer.
   ========================================================= */
.navbar {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(110deg, #39000f 0%, #570719 48%, #39000f 100%);
  border-bottom: 1px solid rgba(232, 200, 96, .42);
}
.navbar .nav-in {
  width: min(100% - 36px, 1560px);
  min-height: 68px;
  margin-inline: auto;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-block: 8px;
}
.navbar .nav-links {
  display: flex !important;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: clamp(2px, .45vw, 9px);
  row-gap: 2px;
}
.navbar .nav-links > a,
.navbar .nav-links .nav-dropdown > .nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 34px;
  padding: 7px clamp(4px, .48vw, 9px);
  color: #f8efd9;
  font-family: Inter, sans-serif;
  font-size: clamp(10px, .76vw, 12px);
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 7px;
  transition: color .2s ease, background .2s ease;
}
.navbar .nav-links > a:hover,
.navbar .nav-links .nav-dropdown > .nav-dropdown-toggle:hover,
.navbar .nav-links > a:focus-visible,
.navbar .nav-links .nav-dropdown > .nav-dropdown-toggle:focus-visible {
  color: #f4d36d;
  background: rgba(255,255,255,.08);
}
.navbar .nav-links .nav-dropdown { position: relative; }
.navbar .nav-links .nav-dropdown-menu {
  z-index: 1200;
  top: calc(100% + 5px);
  left: 0;
  min-width: 230px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(232,200,96,.3);
  border-radius: 10px;
  background: #430515;
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
}
.navbar .nav-links .nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  color: #f8efd9;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 6px;
}
.navbar .nav-links .nav-dropdown-menu a:hover {
  color: #f4d36d;
  background: rgba(255,255,255,.08);
}
.navbar .nav-actions { display: none !important; }
.navbar .hamburger { display: none !important; }
.navbar .gold-hr { height: 2px; }

/* Wide desktops */
@media (min-width: 1500px) {
  .navbar .nav-in { min-height: 62px; }
  .navbar .nav-links { flex-wrap: nowrap; gap: 3px; }
  .navbar .nav-links > a,
  .navbar .nav-links .nav-dropdown > .nav-dropdown-toggle {
    font-size: 11.5px;
    padding-inline: 6px;
  }
}

/* Smaller laptops and all touch layouts use the same drawer,
   preventing crowded or clipped desktop links. */
@media (max-width: 1199px) {
  .navbar .nav-in {
    min-height: 62px;
    justify-content: flex-end;
    padding-block: 8px;
  }
  .navbar .nav-links { display: none !important; }
  .navbar .nav-actions {
    display: flex !important;
    margin-left: auto;
    align-items: center;
  }
  .navbar .hamburger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 44px;
    min-width: 46px;
    color: #f4d36d;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(232,200,96,.48);
    border-radius: 10px;
    cursor: pointer;
  }
  .navbar .hamburger .lucide { width: 23px; height: 23px; }
}

/* Phones */
@media (max-width: 767px) {
  .navbar .nav-in {
    width: calc(100% - 28px);
    min-height: 58px;
  }
  .navbar .hamburger { width: 44px; height: 42px; min-width: 44px; }
  .drawer { z-index: 1500; }
  .drawer-overlay { z-index: 1490; }
}

/* Prevent page-wide horizontal scrolling at every breakpoint. */
html, body { max-width: 100%; overflow-x: clip; }


/* ==========================================================
   DIOCESE BRAND + RESPONSIVE NAVIGATION — FINAL OVERRIDES
   ========================================================== */
.navbar .nav-in {
  box-sizing: border-box;
  width: min(100% - 40px, 1560px);
  min-height: 76px;
  margin-inline: auto;
  padding: 10px 0;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: space-between !important;
  gap: clamp(12px, 1.5vw, 24px);
}
.navbar .brand {
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 360px;
  text-decoration: none;
}
.navbar .brand .crest {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #710d27, #43000f);
  border: 1.5px solid #c9a227;
  box-shadow: 0 3px 10px rgba(30,0,8,.18), inset 0 1px 0 rgba(255,255,255,.18);
}
.navbar .brand .crest-cross { width: 21px; height: 25px; }
.navbar .brand-txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 2px;
}
.navbar .brand-name {
  display: block;
  color: #fff8ed;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: visible;
}
.navbar .brand-since {
  display: block;
  color: #e8c860;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.25;
}
.navbar .nav-actions {
  display: flex !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}
.navbar .nav-links {
  display: flex !important;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 1px;
}
.navbar .nav-links > a,
.navbar .nav-links .nav-dropdown > .nav-dropdown-toggle {
  white-space: nowrap;
  font-size: clamp(10px, .72vw, 12px);
  padding: 9px clamp(4px, .42vw, 8px);
}
.navbar .hamburger { display: none !important; }

/* Smaller screens: keep the identity on the left and menu on the right. */
@media (max-width: 1499px) {
  .navbar .nav-links { display: none !important; }
  .navbar .nav-actions { display: flex !important; margin-left: auto; }
  .navbar .hamburger {
    display: inline-flex !important;
    width: 44px;
    height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #f5d979;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(232,200,96,.55);
    border-radius: 11px;
  }
}
@media (max-width: 767px) {
  .navbar .nav-in {
    width: calc(100% - 28px);
    min-height: 66px;
    padding: 8px 0;
    gap: 10px;
  }
  .navbar .brand { gap: 9px; max-width: calc(100% - 58px); }
  .navbar .brand .crest {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 11px;
  }
  .navbar .brand-name {
    font-size: clamp(15px, 4.1vw, 18px);
    line-height: 1.18;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .navbar .brand-since {
    font-size: 10px;
    letter-spacing: .07em;
  }
  .navbar .hamburger {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
  .site-banner { line-height: 0; }
  .site-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 92px;
    object-fit: cover;
    object-position: center;
  }
  .ticker { margin-top: 0 !important; }
}
@media (max-width: 360px) {
  .navbar .nav-in { width: calc(100% - 22px); }
  .navbar .brand { gap: 7px; }
  .navbar .brand .crest { width: 38px; height: 38px; min-width: 38px; }
  .navbar .brand-name { font-size: 14px; }
}


/* ==========================================================
   DESKTOP HEADER ALIGNMENT — BRAND ROW + MENU ROW
   Keeps mobile styling intact; prevents brand/menu collisions.
   ========================================================== */
@media screen and (min-width: 1200px) {
  .navbar .nav-in {
    width: min(100% - 64px, 1540px) !important;
    min-height: 0 !important;
    margin-inline: auto !important;
    padding: 12px 0 8px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    column-gap: 0 !important;
    row-gap: 8px !important;
  }

  /* Dedicated first row: identity has its own full-width space. */
  .navbar .nav-in > .brand {
    order: 1;
    display: inline-flex !important;
    flex: 0 0 100% !important;
    width: 100%;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 48px;
    justify-content: flex-start;
    padding: 0 2px 8px;
    border-bottom: 1px solid rgba(232, 200, 96, .22);
  }

  .navbar .brand .crest {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .navbar .brand-name {
    font-size: 21px;
    white-space: nowrap;
  }

  .navbar .brand-since {
    font-size: 10px;
  }

  /* Dedicated second row: all links share the available width. */
  .navbar .nav-links {
    order: 2;
    display: flex !important;
    flex: 1 1 100% !important;
    width: 100%;
    min-width: 0;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 3px 5px !important;
    padding: 2px 0 1px;
  }

  .navbar .nav-links > a,
  .navbar .nav-links .nav-dropdown > .nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 8px !important;
    font-size: 11.5px !important;
    line-height: 1.25;
    white-space: nowrap;
  }

  .navbar .nav-links .nav-dropdown {
    position: relative;
    flex: 0 0 auto;
  }

  .navbar .nav-links .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1600;
    min-width: 230px;
  }

  .navbar .nav-actions {
    display: none !important;
  }

  .navbar .hamburger {
    display: none !important;
  }

  .navbar .gold-hr {
    height: 2px;
  }
}

/* Laptop / tablet / phone: keep the compact brand + drawer layout. */
@media screen and (max-width: 1199px) {
  .navbar .nav-in {
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
  }
  .navbar .brand {
    flex: 0 1 auto !important;
    max-width: calc(100% - 58px) !important;
  }
  .navbar .nav-links {
    display: none !important;
  }
  .navbar .nav-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }
  .navbar .hamburger {
    display: inline-flex !important;
  }
}

/* Keep the mobile header compact and avoid unused vertical space. */
@media screen and (max-width: 767px) {
  .navbar .nav-in {
    min-height: 66px !important;
    padding: 8px 0 !important;
  }
  .navbar .brand-name {
    font-size: clamp(15px, 4.1vw, 18px) !important;
    white-space: normal !important;
  }
}


/* ==========================================================
   CROSS CREST + PREMIUM DESKTOP DROPDOWNS
   ========================================================== */

/* Clear, consistent gold cross emblem on desktop, tablet and mobile. */
.navbar .brand .crest,
.drawer .drawer-brand .crest {
  position: relative;
  display: inline-flex !important;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.13), transparent 48%),
    linear-gradient(145deg, #760f2b 0%, #4b0618 62%, #31000c 100%) !important;
  border: 1.5px solid #d6ad45 !important;
  box-shadow:
    0 3px 10px rgba(25,0,7,.24),
    inset 0 0 0 2px rgba(232,200,96,.12),
    inset 0 1px 0 rgba(255,255,255,.2) !important;
}
.navbar .brand .crest-cross,
.drawer .drawer-brand .crest-cross {
  display: block !important;
  width: 22px !important;
  height: 26px !important;
  overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.45));
}
.navbar .brand .crest-cross path,
.drawer .drawer-brand .crest-cross path {
  stroke: #f4d36d !important;
  stroke-width: 2.8 !important;
  stroke-linecap: round !important;
}
.navbar .brand .crest-cross circle,
.drawer .drawer-brand .crest-cross circle {
  fill: #f4d36d !important;
}
.drawer .drawer-brand .crest {
  flex-basis: 40px;
  width: 40px !important;
  height: 40px !important;
}

/* Elegant ivory dropdown panels with clear burgundy text. */
@media screen and (min-width: 1200px) {
  .navbar .nav-links .nav-dropdown {
    position: relative;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
  }

  .navbar .nav-links .nav-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 2px) !important;
    left: 0 !important;
    z-index: 3000 !important;
    display: block;
    min-width: 270px !important;
    max-width: min(340px, 80vw);
    max-height: min(70vh, 520px);
    overflow-y: auto;
    padding: 9px !important;
    background: linear-gradient(180deg, #fffdf8 0%, #f7f0e4 100%) !important;
    border: 1px solid rgba(174,132,39,.62) !important;
    border-top: 3px solid #c9a227 !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 18px 42px rgba(30,0,9,.25) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .navbar .nav-links .nav-dropdown:hover > .nav-dropdown-menu,
  .navbar .nav-links .nav-dropdown:focus-within > .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .navbar .nav-links .nav-dropdown-menu a {
    display: flex !important;
    align-items: center;
    min-height: 42px;
    margin: 2px 0;
    padding: 10px 13px !important;
    color: #57091f !important;
    background: transparent !important;
    border-radius: 8px !important;
    border-bottom: 1px solid rgba(135,91,27,.10);
    font-family: Inter, sans-serif;
    font-size: 12.5px !important;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal !important;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, padding .18s ease;
  }

  .navbar .nav-links .nav-dropdown-menu a:last-child {
    border-bottom: 0;
  }

  .navbar .nav-links .nav-dropdown-menu a:hover,
  .navbar .nav-links .nav-dropdown-menu a:focus-visible {
    color: #fff9ec !important;
    background: linear-gradient(90deg, #650d28, #861c38) !important;
    padding-left: 17px !important;
    outline: none;
  }

  .navbar .nav-links .nav-dropdown-toggle {
    color: #fff8ec !important;
  }

  .navbar .nav-links .nav-dropdown-toggle:hover,
  .navbar .nav-links .nav-dropdown-toggle:focus-visible {
    color: #f4d36d !important;
  }
}

/* Touch screens use the same gold cross inside the drawer header. */
@media (max-width: 1199px) {
  .navbar .brand .crest {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px;
  }
  .navbar .brand .crest-cross {
    width: 21px !important;
    height: 25px !important;
  }
}


/* ==========================================================
   FINAL SINGLE-LINE HEADER — CREST + NAV ON ONE ROW
   Desktop: cross mark first, then every menu item in one line.
   Mobile/tablet: cross mark first, hamburger on the same row.
   ========================================================== */
@media screen and (min-width: 1200px) {
  .navbar .nav-in {
    width: min(calc(100% - 36px), 1600px) !important;
    min-height: 66px !important;
    margin-inline: auto !important;
    padding: 8px 0 !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: clamp(12px, 1.2vw, 22px) !important;
  }

  .navbar .nav-in > .brand.brand-mark-only {
    order: 0 !important;
    display: inline-flex !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .navbar .brand-mark-only .crest {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    flex-basis: 44px !important;
  }

  .navbar .nav-links {
    order: 1 !important;
    display: flex !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(1px, .18vw, 4px) !important;
    white-space: nowrap !important;
  }

  .navbar .nav-links > a,
  .navbar .nav-links .nav-dropdown > .nav-dropdown-toggle {
    display: inline-flex !important;
    flex: 0 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 8px clamp(3px, .32vw, 6px) !important;
    font-size: clamp(9.5px, .68vw, 11.5px) !important;
    line-height: 1.15 !important;
    letter-spacing: -.015em;
    white-space: nowrap !important;
  }

  .navbar .nav-links .nav-dropdown {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    position: relative !important;
  }

  .navbar .nav-actions { display: none !important; }
  .navbar .hamburger { display: none !important; }
  .navbar .gold-hr { height: 2px; }
}

/* Narrow laptop, tablet and phone: emblem + menu button in one row. */
@media screen and (max-width: 1199px) {
  .navbar .nav-in {
    width: calc(100% - 28px) !important;
    min-height: 62px !important;
    padding: 8px 0 !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .navbar .nav-in > .brand.brand-mark-only {
    display: inline-flex !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }

  .navbar .brand-mark-only .crest {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    flex-basis: 42px !important;
  }

  .navbar .nav-links { display: none !important; }

  .navbar .nav-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    align-items: center !important;
  }

  .navbar .hamburger {
    display: inline-flex !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media screen and (max-width: 767px) {
  .navbar .nav-in {
    width: calc(100% - 24px) !important;
    min-height: 58px !important;
    padding: 7px 0 !important;
  }
  .navbar .brand-mark-only .crest {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex-basis: 40px !important;
  }
  .navbar .hamburger {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }
}

/* Keep the desktop menu compact enough to remain on one line. */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
  .navbar .nav-in { gap: 9px !important; }
  .navbar .nav-links > a,
  .navbar .nav-links .nav-dropdown > .nav-dropdown-toggle {
    font-size: 9.3px !important;
    padding-inline: 2px !important;
  }
}
