
/* WordPress conversion: responsive safeguards without changing the supplied desktop composition. */
html{overflow-x:hidden}
body{overflow-x:hidden}
img{height:auto;max-width:100%}
iframe{max-width:100%}
@media(max-width:950px){
  .navbar{padding-left:30px;padding-right:25px;gap:18px;flex-wrap:wrap;height:auto;min-height:72px}
  .nav-logo{position:static;width:220px;height:56px}
  .navbar .nav-link{display:none}
  .navbar .donate{margin-left:auto}
  .hero{height:auto;min-height:560px}
  .hero-photo{width:58%;opacity:.75}
  .hero-copy{left:7%;top:70px;width:min(52%,420px)}
  .welcome-grid{grid-template-columns:1fr!important}
  .quick{width:92%}
}
@media(max-width:700px){
  .topbar{height:auto;min-height:39px;padding:9px 18px}
  .top-info{flex-wrap:wrap;gap:6px 14px;font-size:8px}
  .hero{min-height:650px}
  .hero-photo{position:relative;width:100%;height:330px;opacity:1}
  .hero-copy{position:relative;left:auto;top:auto;width:auto;padding:45px 25px 20px;background:#faf8f2}
  .hero h1{font-size:39px}
  .hero p{width:auto}
  .hero-dot{display:none}
  .quick,.flyer-quick{width:92%;margin:-25px auto 18px;grid-template-columns:repeat(2,1fr)}
  .quick a,.flyer-quick a{border-bottom:1px solid var(--line)}
  .flyer-events{padding-left:18px;padding-right:18px}
  .flyer-event-grid{grid-template-columns:1fr}
  .welcome{padding:55px 22px}
  .welcome-grid{grid-template-columns:1fr!important}
  .footer-a{padding-left:22px;padding-right:22px}
}
@media(max-width:480px){
  .nav-logo{width:185px}
  .navbar{padding-left:16px;padding-right:16px}
  .navbar .donate{font-size:9px;padding:10px 12px}
  .hero h1{font-size:34px}
  .quick{grid-template-columns:1fr 1fr}
  .flyer-quick{grid-template-columns:1fr 1fr}
  .flyer-quick a{min-height:155px}
}

/* Professional responsive layer - final overrides */
*,*::before,*::after{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}
body{line-height:1.5}
img,svg,video,canvas,iframe{max-width:100%;height:auto}
iframe{width:100%}
button,a,input,select,textarea{max-width:100%}
.container{width:min(1180px,calc(100% - 40px));margin-inline:auto}

/* Header / navigation */
.nav{min-height:76px}
.nav-inner{min-width:0;gap:18px}
.brand{min-width:0;flex:0 1 auto}
.site-header-logo{width:min(270px,28vw);min-width:150px}
.nav-links{min-width:0;flex-wrap:wrap}
.mobile-menu{flex:0 0 auto;min-width:44px;min-height:44px;padding:8px}
.mobile-nav{box-shadow:0 8px 20px rgba(0,0,0,.06)}
.mobile-nav .nav-links a{min-height:44px;display:flex;align-items:center;width:100%}

/* Prevent long content from breaking layouts */
.page-layout,.grid-2,.grid-3,.contact-grid,.events-grid,.news-grid,.gallery,.gallery-grid,.form-grid,.footer-grid,.footer-grid-a,.event-grid,.flyer-event-grid,.values,.values-list,.news-feature{min-width:0}
.page-layout>* , .grid-2>* , .grid-3>* , .contact-grid>* , .news-feature>*{min-width:0}
.page-content,.page-content p,.page-content li,.card,.event,.news-card,.faq,.banner{overflow-wrap:anywhere}

/* Tables and embedded content */
.table-wrap,.schedule-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.schedule-table{min-width:560px}

/* Home/hero compositions */
.hero,.hero-photo,.hero-copy,.welcome,.values,.events,.flyer-events,.footer-a,footer{max-width:100%}
.hero-photo img,.hero-ai .hero-image,.photo,.gallery img,.gallery-grid img,.news-card img,.news-feature img{max-width:100%}

@media (max-width:1100px){
  .nav-links{gap:14px}
  .nav-links a{font-size:11px}
  .site-header-logo{width:220px}
  .footer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .footer-grid-a{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-3,.news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gallery,.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .flyer-quick{width:min(92%,1100px)}
}

@media (max-width:900px){
  .container{width:min(100% - 32px,760px)}
  .nav{min-height:70px}
  .nav .nav-links{display:none}
  .mobile-menu{display:inline-flex;align-items:center;justify-content:center}
  .mobile-nav{position:relative;top:auto}
  .mobile-nav .nav-links{display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:4px 0 8px}
  .page-hero h1{font-size:clamp(34px,6vw,48px)}
  .section h2{font-size:clamp(30px,5vw,40px)}
  .grid-2,.contact-grid,.page-layout{grid-template-columns:1fr}
  .page-side{position:static}
  .photo{height:auto;max-height:500px}
  .hero{min-height:0;height:auto}
  .hero-photo{width:100%;height:auto;min-height:300px;position:relative}
  .hero-copy{position:relative;inset:auto;width:auto;padding:42px 28px}
  .hero-copy h1{font-size:clamp(36px,7vw,58px)}
  .quick,.flyer-quick{width:calc(100% - 32px);margin:0 auto 20px}
  .quick{grid-template-columns:repeat(3,minmax(0,1fr))}
  .flyer-quick{grid-template-columns:repeat(3,minmax(0,1fr))}
  .welcome{grid-template-columns:1fr!important;padding:28px 20px}
  .welcome-copy{padding:30px 0}
  .church{height:auto;max-height:420px}
  .schedule{min-height:0}
  .event-grid,.flyer-event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .values,.values-list{grid-template-columns:1fr}
  .rosary{display:none}
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-grid-a{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:700px){
  .container{width:calc(100% - 28px)}
  .topbar{padding:7px 0}
  .topbar-inner{display:block}
  .topbar .left{font-size:15px;text-align:center}
  .topbar .right{display:none}
  .nav{min-height:64px}
  .site-header-logo{width:190px;min-width:0;height:52px}
  .page-hero{padding:45px 0 36px}
  .page-hero h1{font-size:clamp(30px,9vw,40px);line-height:1.08}
  .section{padding:48px 0}
  .section h2{font-size:clamp(28px,8vw,34px)}
  .form-grid{grid-template-columns:1fr}
  .field.full{grid-column:auto}
  .events-grid,.grid-3,.news-grid,.gallery,.gallery-grid{grid-template-columns:1fr}
  .event-grid,.flyer-event-grid{grid-template-columns:1fr}
  .event,.flyer-event{align-items:flex-start}
  .news-feature{grid-template-columns:1fr}
  .news-feature img{height:auto;aspect-ratio:16/9}
  .banner{padding:25px 22px;flex-direction:column;align-items:flex-start}
  .amounts{grid-template-columns:1fr 1fr}
  .footer-grid,.footer-grid-a{grid-template-columns:1fr}
  .footer,.footer-a{padding-left:20px;padding-right:20px}
  .fcol{padding-right:0!important;padding-left:0!important;border-right:0;border-bottom:1px solid rgba(255,255,255,.18);padding-bottom:18px}
  .fcol:last-child{border-bottom:0}
  .copyright,.copyright-a{display:block;line-height:1.8}
  .copyright span{display:block;margin:4px 0 0}
  .hero-photo{min-height:240px}
  .hero-copy{padding:32px 20px}
  .hero h1{font-size:clamp(32px,10vw,42px)}
  .quick,.flyer-quick{width:calc(100% - 24px);grid-template-columns:repeat(2,minmax(0,1fr));margin:0 auto 16px}
  .quick a,.flyer-quick a{min-height:130px;padding:18px 10px}
  .flyer-quick .flyer-icon{width:58px;height:58px;flex-basis:58px}
  .events,.flyer-events{padding-left:14px;padding-right:14px}
  .welcome{padding:20px 14px}
  .church{border-radius:0 0 70px 70px}
  .church:after{border-radius:0 0 70px 70px}
  .footer-logo{max-width:260px;height:auto}
  .map,.map-wrap{min-height:320px;height:320px}
}

@media (max-width:420px){
  .container{width:calc(100% - 22px)}
  .site-header-logo{width:165px;height:48px}
  .nav-inner{gap:8px}
  .mobile-menu{font-size:22px}
  .btn{padding:11px 14px;font-size:11px}
  .hero-copy{padding:28px 16px}
  .hero h1{font-size:32px}
  .hero-buttons{width:100%}
  .hero-buttons .btn{flex:1 1 auto}
  .quick,.flyer-quick{grid-template-columns:1fr 1fr}
  .quick a,.flyer-quick a{min-height:120px}
  .amounts{grid-template-columns:1fr}
  .schedule-table{min-width:500px}
  .card{padding:20px}
  .section{padding:40px 0}
  .page-hero{padding:38px 0 30px}
}

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


/* Reference footer layout — final responsive override */
.site-footer{
  background:#17382e !important;
  color:#fff;
  padding:26px 42px 10px !important;
  position:relative;
  overflow:hidden;
}
.site-footer-inner{
  width:min(1180px,100%);
  max-width:1180px;
  margin:0 auto;
  display:grid !important;
  grid-template-columns:minmax(230px,1.45fr) minmax(105px,.72fr) minmax(105px,.78fr) minmax(185px,1.05fr) 145px !important;
  gap:0 !important;
  align-items:stretch;
}
.site-footer .footer-brand,
.site-footer .footer-column,
.site-footer .footer-stained-glass{
  min-width:0;
  min-height:118px;
  padding:2px 24px;
  border-right:1px solid rgba(255,255,255,.18);
}
.site-footer .footer-brand{
  padding-left:0;
  padding-right:30px;
}
.site-footer .footer-column + .footer-column{
  padding-left:24px;
}
.site-footer .footer-stained-glass{
  border-right:0;
  padding:0 0 0 24px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  overflow:hidden;
}
.site-footer .footer-brand-link{
  display:block;
  margin:0 0 7px;
}
.site-footer .footer-brand-logo{
  display:block;
  width:min(220px,100%);
  height:auto;
  max-height:52px;
  object-fit:contain;
  object-position:left center;
}
.site-footer .footer-tagline{
  max-width:255px;
  margin:0 0 8px;
  color:#dbe7e0;
  font-size:9px;
  line-height:1.55;
}
.site-footer h3{
  color:#fff;
  font-size:9px;
  line-height:1.2;
  letter-spacing:.55px;
  margin:2px 0 8px;
  font-weight:700;
}
.site-footer p,
.site-footer li,
.site-footer a{
  color:#e8f0eb;
  font-size:8px;
  line-height:1.55;
}
.site-footer p{margin:0 0 8px}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin:0 0 3px}
.site-footer a{text-decoration:none}
.site-footer a:hover{color:#fff;text-decoration:underline}
.footer-socials{
  display:flex;
  gap:6px;
  align-items:center;
}
.footer-socials a{
  width:18px;
  height:18px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:8px !important;
  line-height:1;
  text-decoration:none !important;
}
.footer-contact-line{
  display:flex !important;
  gap:7px;
  align-items:flex-start;
  margin-bottom:5px !important;
}
.footer-contact-line > span:first-child{
  flex:0 0 10px;
  color:#d9b66b;
  font-size:10px;
  line-height:1.3;
  text-align:center;
}
.footer-contact-line > span:last-child{min-width:0}
.footer-office{margin-top:6px !important}
.footer-office strong{font-weight:700;color:#fff}
.footer-stained-glass-image{
  display:block;
  width:112px;
  height:122px;
  object-fit:cover;
  object-position:center top;
  border-radius:0;
}
.site-footer-bottom{
  width:min(1180px,100%);
  max-width:1180px;
  margin:9px auto 0 !important;
  padding:7px 0 0 !important;
  border-top:1px solid rgba(255,255,255,.18) !important;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
}
.site-footer-bottom p,
.site-footer-bottom a,
.site-footer-bottom span{
  font-size:7px !important;
  line-height:1.4;
  color:#cbd9d1 !important;
  margin:0;
}
.footer-bottom-links{
  display:flex;
  align-items:center;
  gap:9px;
  white-space:nowrap;
}

@media(max-width:1000px){
  .site-footer{padding:30px 28px 12px !important}
  .site-footer-inner{
    grid-template-columns:minmax(220px,1.5fr) minmax(110px,.8fr) minmax(110px,.8fr) minmax(190px,1.1fr) 110px !important;
  }
  .site-footer .footer-brand,
  .site-footer .footer-column,
  .site-footer .footer-stained-glass{padding-left:16px;padding-right:16px}
  .site-footer .footer-brand{padding-left:0}
  .site-footer .footer-stained-glass{padding-right:0}
}
@media(max-width:760px){
  .site-footer{padding:34px 22px 14px !important}
  .site-footer-inner{
    grid-template-columns:1fr 1fr !important;
    gap:0 !important;
  }
  .site-footer .footer-brand{
    grid-column:1/-1;
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.18);
    padding:0 0 18px;
    margin-bottom:18px;
  }
  .site-footer .footer-column{
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.18);
    padding:0 18px 18px 0;
    margin-bottom:18px;
  }
  .site-footer .footer-column:nth-of-type(3){
    padding-left:18px;
    padding-right:0;
  }
  .site-footer .footer-contact{
    grid-column:1/-1;
    padding-left:0 !important;
    border-bottom:0;
  }
  .site-footer .footer-stained-glass{
    grid-column:1/-1;
    border-right:0;
    border-top:1px solid rgba(255,255,255,.18);
    padding:18px 0 0;
    justify-content:center;
    min-height:135px;
  }
  .footer-stained-glass-image{width:120px;height:130px}
  .site-footer-bottom{
    margin-top:3px !important;
    display:block;
  }
  .footer-bottom-links{
    margin-top:5px;
    white-space:normal;
  }
}
@media(max-width:430px){
  .site-footer-inner{grid-template-columns:1fr !important}
  .site-footer .footer-column,
  .site-footer .footer-column:nth-of-type(3){
    grid-column:1/-1;
    padding:0 0 16px;
    border-bottom:1px solid rgba(255,255,255,.18);
  }
  .site-footer .footer-contact{border-bottom:0}
  .site-footer .footer-stained-glass{min-height:140px}
}


/* ================================================================
   RESPONSIVE HARDENING — mobile, tablet and wide-screen stability
   ================================================================ */
html,body{max-width:100%;overflow-x:hidden}
img,svg,video,iframe{max-width:100%}
button,input,select,textarea{max-width:100%}
.container,.wrap{width:min(1180px,calc(100% - 32px));}
.page-content,.page-layout,.grid-2,.grid-3,.news-grid,.gallery-grid,.gallery,.events-grid,.event-grid,.flyer-event-grid,.sample-hero-grid,.sample-feature-grid,.sample-intro-grid,.contact-sample-grid,.ministry-grid,.values-list{min-width:0}
.page-content>*{max-width:100%}
.page-content img{height:auto}
.page-content table,.schedule-table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.page-content pre,.page-content code{max-width:100%;overflow-x:auto}

/* Front-page header */
.navbar{min-width:0}
.navbar .mobile-menu{display:none;margin-left:auto;border:0;background:transparent;color:var(--green);font-size:25px;line-height:1;padding:8px;cursor:pointer}
.navbar .mobile-menu:focus-visible,.mobile-menu:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.home .mobile-nav{display:none}
.home .mobile-nav[hidden]{display:none}
.home .mobile-nav .nav-links{display:flex}

/* Large desktop: keep the original proportions but let content breathe. */
@media (min-width:1200px){
  .site-footer-inner,.site-footer-bottom{max-width:1180px}
  .page-layout{grid-template-columns:minmax(0,1.8fr) minmax(280px,.75fr)}
}

/* Tablet */
@media (max-width:1100px){
  .navbar{padding-left:245px;padding-right:22px;gap:18px}
  .nav-logo{left:24px;width:205px}
  .nav-link{font-size:8px}
  .navbar .nav-link:nth-of-type(n+5){display:none}
  .navbar .donate{display:none}
  .navbar .mobile-menu{display:block}

  .hero-copy{left:6%;max-width:390px;width:42%}
  .hero h1{font-size:clamp(38px,4.3vw,48px)}
  .quick{width:min(94%,900px)}
  .welcome{padding-left:24px;padding-right:24px}
  .events{padding-left:28px;padding-right:28px}
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:900px){
  .nav{min-height:66px}
  .site-header-logo{width:205px;height:52px}
  .mobile-nav{top:66px}

  .page-layout{grid-template-columns:1fr;gap:28px}
  .page-side{position:static}
  .page-side>img{height:auto;max-height:360px}
  .contact-grid{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .grid-3,.news-grid,.gallery,.gallery-grid,.events-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

  .hero{height:auto;min-height:540px}
  .hero-photo{width:100%;opacity:.34}
  .hero-photo:before{width:70%;background:linear-gradient(90deg,#faf8f2 0%,rgba(250,248,242,.95) 60%,rgba(250,248,242,0) 100%)}
  .hero-copy{position:relative;left:auto;top:auto;width:min(600px,88%);padding:72px 0 80px;margin-left:6%;}
  .hero p{width:auto;max-width:520px}
  .quick{margin:0 auto 20px;width:calc(100% - 32px)}
  .welcome{grid-template-columns:1fr}
  .church{height:360px;max-width:720px;margin:auto}
  .welcome-copy{padding:32px 0}
  .schedule{margin-top:8px}

  .values{grid-template-columns:1fr}
  .values .rosary{display:none}
  .values-list{grid-template-columns:repeat(3,minmax(0,1fr))}

  .site-footer{padding:32px 28px 14px !important}
  .site-footer-inner{grid-template-columns:1fr 1fr !important}
  .site-footer .footer-brand{grid-column:1/-1;border-right:0;border-bottom:1px solid rgba(255,255,255,.18);padding:0 0 20px;margin-bottom:20px}
  .site-footer .footer-column{border-right:0;border-bottom:1px solid rgba(255,255,255,.18);padding:0 18px 20px 0;margin-bottom:20px}
  .site-footer .footer-column:nth-of-type(3){padding-left:18px;padding-right:0}
  .site-footer .footer-contact{grid-column:1/-1;padding-left:0 !important;border-bottom:0}
  .site-footer .footer-stained-glass{grid-column:1/-1;border-right:0;border-top:1px solid rgba(255,255,255,.18);padding:20px 0 0;justify-content:center;min-height:150px}
  .footer-stained-glass-image{width:130px;height:140px}
}

@media (max-width:700px){
  .container,.wrap{width:calc(100% - 28px)}
  .topbar{min-height:36px;padding:6px 0}
  .topbar .left{font-size:14px;text-align:center;white-space:normal;line-height:1.2}

  /* Front page mobile navigation */
  .navbar{height:64px;min-height:64px;padding:0 14px 0 190px;gap:0}
  .nav-logo{left:14px;top:6px;width:165px;height:52px}
  .navbar .nav-link,.navbar .donate{display:none !important}
  .navbar .mobile-menu{display:block;font-size:24px}
  .home .mobile-nav{display:block;background:#fff;border-bottom:1px solid var(--line);padding:12px 0;position:relative;z-index:20}
  .home .mobile-nav .nav-links{display:flex;flex-direction:column;align-items:stretch;gap:0}
  .home .mobile-nav .nav-links a{padding:11px 2px;border-bottom:1px solid #ece9df;font-size:12px;font-weight:700}
  .home .mobile-nav .nav-links a:last-child{border-bottom:0}
  .home .mobile-nav .btn{width:100%;margin-top:8px;color:#fff;border-color:var(--gold)}

  .page-hero{padding:42px 0 34px}
  .page-hero h1{font-size:clamp(30px,9vw,40px)}
  .section{padding:44px 0}
  .section h2{font-size:clamp(28px,8vw,34px)}
  .form-grid{grid-template-columns:1fr}
  .field.full{grid-column:auto}
  .grid-3,.news-grid,.gallery,.gallery-grid,.events-grid,.event-grid,.flyer-event-grid{grid-template-columns:1fr}
  .card{padding:22px}
  .banner{padding:24px 20px}
  .photo{height:auto;aspect-ratio:4/3;border-radius:28px 0 28px 0}
  .news-feature{grid-template-columns:1fr}
  .news-feature img{height:auto;aspect-ratio:16/9}
  .gallery img,.gallery-grid img{height:auto;aspect-ratio:4/3}
  .map,.map-wrap{min-height:300px;height:300px}
  .amounts{grid-template-columns:1fr 1fr}
  .schedule-table{min-width:560px}

  .hero{min-height:560px}
  .hero-copy{width:calc(100% - 36px);margin-left:18px;padding:58px 0 68px}
  .hero h1{font-size:clamp(32px,10vw,42px);letter-spacing:-1px}
  .hero p{font-size:12px}
  .hero-buttons{flex-wrap:wrap;gap:9px}
  .hero-buttons .btn{min-height:42px}
  .quick{grid-template-columns:repeat(2,minmax(0,1fr));width:calc(100% - 24px)}
  .quick a,.flyer-quick a{min-height:125px;padding:18px 10px}
  .welcome{padding:20px 14px}
  .church{height:auto;aspect-ratio:1.15/1}
  .values-list{grid-template-columns:1fr}
  .value{border-right:0;border-bottom:1px dotted #bbc4bd}
  .value:last-child{border-bottom:0}

  .site-footer{padding:30px 20px 12px !important}
  .site-footer-inner{grid-template-columns:1fr !important}
  .site-footer .footer-brand{grid-column:1;padding:0 0 18px;margin-bottom:18px}
  .site-footer .footer-column,.site-footer .footer-column:nth-of-type(3){grid-column:1;padding:0 0 16px;margin-bottom:16px;border-right:0;border-bottom:1px solid rgba(255,255,255,.18)}
  .site-footer .footer-contact{border-bottom:0;padding-bottom:8px !important}
  .site-footer .footer-stained-glass{grid-column:1;min-height:145px;padding-top:18px}
  .footer-stained-glass-image{width:120px;height:130px}
  .site-footer-bottom{display:block;margin-top:8px !important;padding-top:9px !important}
  .site-footer-bottom p{margin-bottom:5px}
  .footer-bottom-links{white-space:normal}
}

@media (max-width:430px){
  .container,.wrap{width:calc(100% - 22px)}
  .site-header-logo{width:165px;height:48px}
  .nav-inner{gap:8px}
  .mobile-menu{font-size:22px}
  .btn{padding:11px 14px;font-size:11px}
  .amounts{grid-template-columns:1fr}
  .hero-copy{padding-top:48px}
  .hero h1{font-size:31px}
  .hero-buttons .btn{width:100%;flex:1 1 100%}
  .quick,.flyer-quick{grid-template-columns:1fr 1fr}
  .quick a,.flyer-quick a{min-height:116px}
  .footer-stained-glass-image{width:108px;height:120px}
  .site-footer .footer-brand-logo{width:min(220px,100%)}
}

@media (max-width:360px){
  .navbar{padding-left:168px}
  .nav-logo{width:150px}
  .hero h1{font-size:29px}
  .quick a,.flyer-quick a{padding-left:7px;padding-right:7px}
}

/* =========================================================
   ULTRA RESPONSIVE PASS — v5
   Designed for 320px phones through large desktop screens.
   ========================================================= */

:root{--mobile-gutter:clamp(14px,4vw,42px)}
html{scroll-behavior:smooth;overflow-x:hidden}
body{width:100%;min-width:0;overflow-x:hidden}
main,section,header,footer,article,aside,nav,div{min-width:0}
.container{width:min(1180px,calc(100% - 2*var(--mobile-gutter)));margin-inline:auto}

/* Make all media/content scale without creating horizontal scrolling. */
img,video,svg,canvas,iframe{max-width:100%}
pre,code{max-width:100%;overflow:auto}
.page-content a,.card a,.event a,.news-card a{overflow-wrap:anywhere}

/* Header: never allow the logo and navigation to squeeze each other. */
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0}
.brand{flex:0 1 auto;min-width:0}
.site-header-logo{display:block;width:clamp(165px,22vw,270px);height:auto;max-height:64px;object-fit:contain}
.nav-links{min-width:0}
.nav-links a{white-space:nowrap}
.mobile-menu{border:0;background:transparent;color:inherit;cursor:pointer;line-height:1}
.mobile-nav{width:100%;background:#fff;z-index:50}
.mobile-nav .container{padding-block:4px 10px}
.mobile-nav .nav-links a{padding:12px 4px;border-bottom:1px solid rgba(0,0,0,.07)}
.mobile-nav .nav-links a:last-child{border-bottom:0}

/* Fluid typography and spacing. */
.page-hero h1,.hero-copy h1,.sample-hero-copy h1{font-size:clamp(2rem,6vw,4.7rem)}
.section h2,.sample-section-head h2,.sample-intro-copy h2{font-size:clamp(1.8rem,4vw,2.65rem)}
.section,.sample-section,.welcome{scroll-margin-top:20px}

/* Responsive grids: use minmax so cards never become unusably narrow. */
.grid-3,.news-grid,.gallery,.gallery-grid,.ministry-grid,.sample-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.quick-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.event-sample-grid,.events-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Forms: controls must remain inside their columns. */
.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.field input,.field select,.field textarea,
.parish-form input,.parish-form textarea{min-width:0;max-width:100%;box-sizing:border-box}

/* Tables stay usable on phones instead of forcing the page wider. */
.schedule-wrap,.table-wrap{max-width:100%;overflow-x:auto}
.schedule-table{min-width:620px}

/* Maps/embeds and media retain a sensible aspect ratio. */
.map,.map-frame,.map-wrap iframe{max-width:100%}
.map-wrap{max-width:100%;overflow:hidden}

/* Footer — five columns on desktop, two-column tablet, one-column phone. */
.site-footer{padding-inline:var(--mobile-gutter)!important}
.site-footer-inner{grid-template-columns:minmax(0,1.45fr) minmax(0,.8fr) minmax(0,.8fr) minmax(0,1.05fr) minmax(105px,.55fr)!important;gap:0!important}
.site-footer .footer-brand,.site-footer .footer-column,.site-footer .footer-stained-glass{min-width:0}
.footer-stained-glass-image{display:block;max-width:100%;height:auto;object-fit:contain}

@media (max-width:1080px){
  .nav-links{gap:10px}
  .nav-links a{font-size:10px}
  .site-header-logo{width:205px}
  .site-footer-inner{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .site-footer .footer-stained-glass{grid-column:auto}
}

@media (max-width:900px){
  .nav .nav-links{display:none}
  .mobile-menu{display:inline-flex!important;align-items:center;justify-content:center;width:46px;height:46px;font-size:25px}
  .mobile-nav .nav-links{display:flex;flex-direction:column;align-items:stretch;gap:0}

  .hero-ai .hero-inner,.sample-hero-grid,.sample-intro-grid,.sample-band,
  .contact-sample-grid,.welcome-grid,.contact-grid,.page-layout,.news-feature{grid-template-columns:1fr}
  .hero-ai .hero-image{min-height:clamp(260px,55vw,430px);order:-1}
  .sample-hero-image{min-height:clamp(260px,55vw,400px);border-radius:0}
  .sample-intro-image{height:clamp(280px,65vw,430px)}
  .sample-band{min-height:0}
  .sample-band-image{min-height:300px}
  .page-side{position:static}

  .grid-3,.news-grid,.gallery,.gallery-grid,.ministry-grid,.sample-cards,
  .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .event-sample-grid,.events-grid{grid-template-columns:1fr}

  .site-footer-inner{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important}
  .site-footer .footer-brand{grid-column:1/-1;border-right:0;border-bottom:1px solid rgba(255,255,255,.18);padding:0 0 20px;margin-bottom:20px}
  .site-footer .footer-column{border-right:1px solid rgba(255,255,255,.18);padding:2px 20px}
  .site-footer .footer-column:nth-of-type(3){border-right:0}
  .site-footer .footer-stained-glass{grid-column:1/-1;border-right:0;border-top:1px solid rgba(255,255,255,.18);margin-top:22px;padding:22px 0 0;justify-content:center}
  .site-footer .footer-stained-glass-image{width:min(180px,55vw);max-height:190px}
}

@media (max-width:640px){
  .container{width:calc(100% - 28px)}
  .topbar .left{font-size:13px;line-height:1.35}
  .nav{min-height:64px}
  .site-header-logo{width:clamp(155px,55vw,205px);max-height:54px}
  .mobile-menu{width:44px;height:44px;font-size:23px}
  .page-hero{padding:40px 0 32px}
  .section,.sample-section{padding:44px 0}
  .card,.sample-card,.contact-form-card{padding:20px}
  .actions{display:flex;flex-wrap:wrap;gap:10px}
  .actions .btn{flex:1 1 150px;text-align:center}
  .banner{padding:24px 20px}
  .photo{height:auto;aspect-ratio:4/3;max-height:none}
  .hero-ai .hero-image{min-height:280px}
  .sample-hero-image{min-height:280px}
  .sample-feature{margin-top:0}
  .sample-feature-grid{grid-template-columns:1fr 1fr}
  .sample-feature-card{min-height:145px;padding:20px 12px}
  .sample-feature-card p{font-size:11px}
  .grid-3,.news-grid,.gallery,.gallery-grid,.ministry-grid,.sample-cards,
  .quick-grid{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .field.full{grid-column:auto}
  .event,.event-list .event{display:grid;grid-template-columns:auto 1fr;align-items:start;gap:12px;padding:16px}
  .event p{overflow-wrap:anywhere}
  .event-date-large{min-width:55px}
  .schedule{padding:18px}
  .schedule-table{min-width:560px}
  .gallery img,.gallery-grid img{height:auto;aspect-ratio:4/3}
  .news-card img,.news-feature img{height:auto;aspect-ratio:16/10}
  .map,.map-frame,.map-wrap{min-height:280px;height:280px}

  .site-footer{padding:32px 18px 14px!important}
  .site-footer-inner{grid-template-columns:1fr!important}
  .site-footer .footer-brand,.site-footer .footer-column,.site-footer .footer-stained-glass{grid-column:auto;border-right:0}
  .site-footer .footer-brand{padding:0 0 18px;margin-bottom:4px}
  .site-footer .footer-column{padding:18px 0;border-bottom:1px solid rgba(255,255,255,.15)}
  .site-footer .footer-column:nth-of-type(3){border-right:0}
  .site-footer .footer-stained-glass{padding:22px 0 0;margin-top:0;border-top:0}
  .site-footer .footer-brand-logo{width:min(250px,85vw);max-height:62px}
  .site-footer-bottom{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px}
  .footer-bottom-links{justify-content:center}
}

@media (max-width:380px){
  .container{width:calc(100% - 20px)}
  .site-header-logo{width:150px}
  .topbar .left{font-size:12px}
  .mobile-menu{width:40px;height:40px}
  .page-hero h1{font-size:32px}
  .section h2,.sample-section-head h2,.sample-intro-copy h2{font-size:29px}
  .hero-copy,.sample-hero-copy{padding:28px 16px}
  .quick a,.flyer-quick a{min-height:110px;padding:14px 8px}
  .amounts{grid-template-columns:1fr}
  .site-footer{padding-inline:15px!important}
  .footer-bottom-links a{font-size:10px}
}


/* Contact form feedback and anti-spam field */
.contact-form-notice {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.contact-form-notice.success {
  border: 1px solid rgba(33, 118, 71, .25);
  background: rgba(33, 118, 71, .08);
}
.contact-form-notice.error {
  border: 1px solid rgba(160, 55, 55, .25);
  background: rgba(160, 55, 55, .08);
}
.field-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   Final high-responsiveness pass
   ========================================================= */
html { overflow-x: hidden; }
body { overflow-x: hidden; }
img, video, iframe, svg { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { max-width: 100%; }
button, a.btn, .mobile-menu { min-height: 44px; }
.container, .site-footer-inner, .site-footer-bottom { width: min(1180px, calc(100% - 32px)); }

/* Prevent long words/URLs from creating horizontal scroll. */
.page-content, .page-content p, .page-content li, .footer, .site-footer,
.footer-column, .footer-contact, .contact-item, .card, .event, .news-card,
.parish-form, .field { overflow-wrap: anywhere; word-break: normal; }

/* Modern responsive grids: avoid cramped columns before stacking. */
.page-layout { grid-template-columns: minmax(0, 1.7fr) minmax(240px, .8fr); }
.grid-2 > *, .grid-3 > *, .news-grid > *, .gallery > *, .gallery-grid > *,
.contact-grid > *, .events-grid > *, .event-grid > *, .flyer-event-grid > * { min-width: 0; }

/* Header / navigation */
.nav { min-height: 72px; }
.nav-inner { min-width: 0; }
.brand { min-width: 0; }
.site-header-logo { max-width: min(270px, 58vw); }
.nav-links { flex-wrap: nowrap; }
.mobile-menu { flex: 0 0 44px; width: 44px; padding: 0; display: none; align-items: center; justify-content: center; }
.mobile-nav { top: 72px; max-height: calc(100vh - 72px); overflow-y: auto; }
.mobile-nav .nav-links a { min-height: 44px; display: flex; align-items: center; width: 100%; }

/* Footer from the reference design */
.site-footer-inner { margin: 0 auto; display: grid; grid-template-columns: 1.45fr 1fr 1fr 1.25fr .55fr; gap: 28px; align-items: start; }
.site-footer-bottom { margin: 24px auto 0; }
.footer-brand-logo { display: block; max-width: 100%; height: auto; }
.footer-stained-glass { min-width: 0; display: flex; align-items: flex-end; justify-content: flex-end; }
.footer-stained-glass-image { display: block; width: min(150px, 100%); max-width: 100%; height: auto; object-fit: contain; }
.footer-contact-line { display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: start; gap: 7px; }
.footer-contact-line > span:last-child { min-width: 0; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Contact form */
.parish-form, .contact-form { width: 100%; max-width: 100%; }
.parish-form input, .parish-form select, .parish-form textarea,
.contact-form input, .contact-form select, .contact-form textarea { min-height: 44px; box-sizing: border-box; }
.parish-form textarea, .contact-form textarea { min-height: 150px; }
.parish-form button, .contact-form button { min-height: 46px; }

@media (max-width: 1100px) {
  .container, .site-footer-inner, .site-footer-bottom { width: min(100% - 40px, 1040px); }
  .nav-links { gap: 16px; }
  .nav-links .btn { padding-inline: 15px; }
  .site-header-logo { width: 235px; }
  .footer-grid { gap: 20px; }
  .site-footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1.25fr .45fr; gap: 20px; }
  .footer-stained-glass-image { width: 120px; }
}

@media (max-width: 950px) {
  .nav { min-height: 64px; }
  .nav-links { display: none; }
  .mobile-menu { display: inline-flex; }
  .mobile-nav { top: 64px; }
  .mobile-nav .nav-links { display: flex; }
  .site-header-logo { width: min(235px, 64vw); height: 52px; }
  .page-layout { grid-template-columns: 1fr; }
  .page-side { position: static; }
  .page-side > img { height: auto; max-height: 420px; }
  .hero-ai .hero-image { min-height: 360px; }
  .site-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-stained-glass { grid-column: 1 / -1; justify-content: center; }
  .footer-stained-glass-image { width: 130px; }
}

@media (max-width: 768px) {
  .container, .site-footer-inner, .site-footer-bottom { width: calc(100% - 30px); }
  .topbar { min-height: 38px; }
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar .left { font-size: 15px; }
  .topbar .right { display: none; }
  .page-hero { padding: 48px 0 38px; }
  .page-hero h1 { font-size: clamp(34px, 8vw, 46px); }
  .section { padding: 52px 0; }
  .section h2 { font-size: clamp(30px, 7vw, 40px); }
  .grid-2, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid-3, .news-grid, .gallery, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo { height: clamp(260px, 55vw, 390px); border-radius: 36px 0 36px 0; }
  .banner { padding: 28px 24px; }
  .banner .btn { width: 100%; }
  .events-grid { grid-template-columns: 1fr; }
  .news-feature { grid-template-columns: 1fr; }
  .news-feature img { height: clamp(170px, 42vw, 270px); }
  .map, .map-wrap { min-height: 300px; height: 320px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .amounts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .site-footer { padding: 38px 0 12px; }
  .site-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
  .footer-a { padding-left: 0; padding-right: 0; }
  .footer-a .footer-grid-a { width: 100%; }
  .copyright { flex-direction: column; gap: 8px; align-items: flex-start; }
  .copyright span { margin-left: 0; }
  .flyer-quick { width: calc(100% - 30px); margin-top: -40px; }
  .flyer-events { padding-left: 15px; padding-right: 15px; }
}

@media (max-width: 600px) {
  .container, .site-footer-inner, .site-footer-bottom { width: calc(100% - 24px); }
  .nav { min-height: 58px; }
  .site-header-logo { width: min(220px, 68vw); height: 48px; }
  .mobile-nav { top: 58px; }
  .mobile-nav .container { width: calc(100% - 24px); }
  .mobile-nav .nav-links { gap: 4px; }
  .mobile-nav .nav-links a { padding: 8px 2px; }
  .page-hero { padding: 40px 0 32px; }
  .breadcrumb { font-size: 10px; }
  .section { padding: 42px 0; }
  .card { padding: 22px; }
  .grid-3, .news-grid, .gallery, .gallery-grid { grid-template-columns: 1fr; }
  .gallery img, .gallery-grid img { height: auto; max-height: 320px; }
  .hero-copy { left: 20px; right: 20px; width: auto; }
  .hero h1 { font-size: clamp(34px, 10vw, 42px); letter-spacing: -1px; }
  .hero p { width: 100%; }
  .hero-buttons { width: 100%; }
  .hero-buttons .btn { flex: 1 1 160px; }
  .quick, .flyer-quick { width: calc(100% - 24px); grid-template-columns: 1fr 1fr; }
  .quick a { min-height: 110px; padding: 18px 12px; }
  .flyer-quick a { min-height: 145px; }
  .event { align-items: flex-start; }
  .date { flex-basis: 56px; min-width: 56px; }
  .site-footer-inner { grid-template-columns: 1fr; gap: 22px; }
  .footer-column { min-width: 0; }
  .footer-stained-glass { grid-column: auto; justify-content: center; margin-top: 4px; }
  .footer-stained-glass-image { width: min(150px, 45vw); }
  .footer-brand-logo { width: min(320px, 100%); }
  .site-footer-bottom { text-align: center; }
  .site-footer-bottom p { line-height: 1.6; }
  .footer-bottom-links { justify-content: center; }
  .amounts { grid-template-columns: 1fr 1fr; }
  .map, .map-wrap { min-height: 260px; height: 280px; }
  .hero-ai .hero-image { min-height: 280px; }
  .news-feature img { height: 190px; }
  .page-content h2 { font-size: 1.8rem; }
  .page-content h3 { font-size: 1.3rem; }
}

@media (max-width: 400px) {
  .container, .site-footer-inner, .site-footer-bottom { width: calc(100% - 20px); }
  .site-header-logo { width: min(190px, 65vw); }
  .hero { min-height: 540px; height: auto; }
  .hero-copy { top: 54px; }
  .hero h1 { font-size: 32px; }
  .hero-buttons .btn { flex-basis: 100%; width: 100%; }
  .quick, .flyer-quick { grid-template-columns: 1fr; }
  .quick a, .flyer-quick a { border-right: 0; border-bottom: 1px solid var(--line); }
  .quick a:last-child, .flyer-quick a:last-child { border-bottom: 0; }
  .amounts { grid-template-columns: 1fr; }
  .event { flex-direction: column; }
  .date { width: 56px; }
  .field input, .field select, .field textarea, .parish-form input, .parish-form textarea { font-size: 16px; }
  .btn, .parish-form button, .contact-form button { width: 100%; }
  .footer-stained-glass-image { width: 125px; }
}

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

/* Keep Admin login visually consistent with RESOURCES on every screen size. */
.site-footer .footer-bottom-links a{
  font-size:11px !important;
  line-height:1.2;
  font-weight:700;
  letter-spacing:.8px;
}

/* =========================================================
   FINAL RESPONSIVE POLISH — PRESERVE ORIGINAL DESIGN
   This layer only changes sizing/flow at smaller widths.
   ========================================================= */

/* Keep the original desktop composition intact above 1200px. */
@media (max-width: 1200px) {
  .navbar {
    padding-left: 275px;
    padding-right: 28px;
    gap: 20px;
  }
  .nav-logo { left: 32px; width: 220px; }
  .nav-link { font-size: 8.5px; }
}

@media (max-width: 1050px) {
  .navbar {
    padding-left: 245px;
    gap: 15px;
  }
  .nav-logo { left: 24px; width: 205px; }
  .navbar .donate { padding: 11px 14px; }
}

/* Tablet and below: switch the original navigation to the compact menu. */
@media (max-width: 950px) {
  .topbar { padding: 0 24px; }
  .top-info { gap: 10px 18px; }
  .navbar {
    height: 68px;
    min-height: 68px;
    padding: 0 20px;
    gap: 0;
  }
  .nav-logo {
    position: static;
    width: min(220px, 58vw);
    height: 56px;
  }
  .navbar .nav-link,
  .navbar > .donate { display: none; }
  .navbar .mobile-menu {
    display: inline-flex;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--green);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
  }
  .mobile-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 107px;
    z-index: 20;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 12px 25px rgba(0,0,0,.10);
  }
  .mobile-nav .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 14px;
  }
  .mobile-nav .nav-links a {
    min-height: 46px;
    padding: 12px 4px;
    border-bottom: 1px solid #edf0ed;
    font-size: 11px;
    font-weight: 700;
  }
  .mobile-nav .nav-links a:last-child { border-bottom: 0; }
  .mobile-nav .nav-links .btn { width: 100%; margin-top: 8px; }

  /* Hero keeps the original visual order: image first, copy second. */
  .hero {
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-photo {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: clamp(300px, 48vw, 450px);
    order: 1;
  }
  .hero-photo:before { width: 35%; }
  .hero-copy {
    position: relative;
    left: auto;
    top: auto;
    width: min(100%, 620px);
    padding: 42px 32px 46px;
    order: 2;
  }
  .hero-copy:before { left: 18px; top: 18px; }
  .hero h1 { font-size: clamp(38px, 6vw, 48px); }
  .hero p { width: min(100%, 560px); }
  .hero-dot { display: none; }

  .flyer-quick {
    width: calc(100% - 40px);
    margin: -34px auto 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .flyer-quick a { min-height: 155px; }

  .welcome {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 0 24px 22px;
  }
  .church { height: clamp(300px, 42vw, 390px); }
  .welcome-copy { padding: 34px 26px; }
  .schedule { grid-column: 1 / -1; margin-top: 22px; }

  .flyer-events { padding-left: 28px; padding-right: 28px; }
  .flyer-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .values { grid-template-columns: 1fr 1fr; }
  .values .rosary { min-height: 180px; }
  .values-list { display: grid; grid-template-columns: 1fr 1fr; }
  .values-list .value:last-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .topbar {
    height: auto;
    min-height: 38px;
    padding: 8px 14px;
  }
  .top-info {
    justify-content: center;
    text-align: center;
    font-size: 8px;
    line-height: 1.4;
  }

  .navbar { height: 62px; min-height: 62px; padding: 0 15px; }
  .nav-logo { width: min(195px, 66vw); height: 50px; }
  .mobile-nav { top: 100px; }

  .hero-photo { height: clamp(235px, 68vw, 340px); }
  .hero-copy { padding: 34px 20px 38px; }
  .eyebrow { font-size: 11px; gap: 9px; }
  .eyebrow:after { width: 35px; }
  .hero h1 {
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.06;
    letter-spacing: -1px;
    margin: 17px 0 18px;
  }
  .hero p { font-size: 12px; line-height: 1.7; margin-bottom: 22px; }
  .hero-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-buttons .btn { width: 100%; padding-inline: 10px; }

  .flyer-quick {
    width: calc(100% - 24px);
    margin: -18px auto 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flyer-quick a {
    min-height: 150px;
    padding: 18px 9px 13px;
  }
  .flyer-quick a:nth-child(2n) { border-right: 0; }
  .flyer-quick a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .flyer-quick .flyer-icon { width: 60px; height: 64px; flex-basis: 64px; }
  .flyer-quick h3 { font-size: 10px; }
  .flyer-quick p { font-size: 8px; max-width: 145px; }

  .welcome {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0 14px 18px;
  }
  .church { height: clamp(240px, 65vw, 330px); border-radius: 0 0 76px 76px; }
  .church:after { border-radius: 0 0 76px 76px; }
  .welcome-copy { padding: 28px 10px 30px; }
  .welcome h2 { font-size: clamp(26px, 7vw, 32px); line-height: 1.08; }
  .checks li { font-size: 10px; }
  .script { font-size: 25px; }
  .schedule { grid-column: auto; margin-top: 0; padding: 20px 15px; }
  .schedule .srow { gap: 12px; align-items: flex-start; }
  .schedule .srow > * { min-width: 0; overflow-wrap: anywhere; }
  .schedule .srow span { text-align: right; }

  .flyer-events { padding: 16px 16px 18px; }
  .flyer-events .events-head { gap: 14px; align-items: flex-start; }
  .flyer-events .events-head a { white-space: nowrap; }
  .flyer-event-grid { grid-template-columns: 1fr; gap: 0; }
  .flyer-event { padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .flyer-event:last-child { border-bottom: 0; }

  .values { grid-template-columns: 1fr; }
  .values .rosary { min-height: 180px; }
  .values-list { grid-template-columns: 1fr; }
  .values-list .value:last-child { grid-column: auto; }
}

@media (max-width: 420px) {
  .top-info span { display: block; width: 100%; }
  .navbar { padding-inline: 12px; }
  .nav-logo { width: min(175px, 62vw); }
  .hero-copy { padding-inline: 16px; }
  .hero h1 { font-size: 31px; }
  .hero-buttons { grid-template-columns: 1fr; }
  .hero-buttons .btn { min-height: 44px; }
  .flyer-quick { grid-template-columns: 1fr 1fr; }
  .flyer-quick a { min-height: 138px; }
  .flyer-quick .flyer-icon { width: 52px; height: 56px; flex-basis: 56px; }
  .flyer-quick p { font-size: 7.5px; }
  .schedule-title { margin-bottom: 15px; }
  .schedule .srow { flex-direction: column; gap: 2px; }
  .schedule .srow span { text-align: left; }
  .flyer-events .events-head { flex-direction: column; }
  .flyer-events .events-head a { align-self: flex-start; }
  .site-footer .footer-bottom-links a { font-size: 13px !important; }
}

@media (max-width: 340px) {
  .nav-logo { width: 155px; }
  .mobile-menu { width: 42px; flex-basis: 42px; }
  .flyer-quick { grid-template-columns: 1fr; }
  .flyer-quick a:nth-child(n) { border-right: 0; border-top: 1px solid var(--line); }
  .flyer-quick a:first-child { border-top: 0; }
}

/* =========================================================
   HIGH-RESPONSIVE FINAL PASS — ORIGINAL DESIGN PRESERVED
   Desktop styling is intentionally untouched. These rules only
   improve layout, wrapping, touch targets and small-screen flow.
   ========================================================= */

@media (max-width: 1000px) {
  .navbar .nav-link,
  .navbar > .donate,
  .nav > .nav-inner > .nav-links { display:none; }

  .navbar .mobile-menu,
  .nav .mobile-menu { display:inline-flex; align-items:center; justify-content:center; }

  .navbar { padding-left:20px; padding-right:20px; }
  .nav-logo { position:static; width:min(220px,58vw); height:56px; }
  .nav-inner { min-height:68px; }

  .mobile-nav {
    position:relative;
    top:auto;
    left:auto;
    right:auto;
    width:100%;
    z-index:50;
  }

  .page-layout,
  .contact-grid,
  .grid-2,
  .sample-intro-grid,
  .sample-band,
  .contact-sample-grid,
  .hero-ai .hero-inner {
    grid-template-columns:1fr;
  }

  .page-side { position:static; }
  .hero-ai .hero-image { min-height:360px; }
  .sample-hero-image { min-height:400px; }
  .news-feature { grid-template-columns:1fr; }
  .news-feature img { height:auto; max-height:420px; }
  .ministry-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .container { width:calc(100% - 28px); }

  .topbar { padding:8px 14px; }
  .top-info { justify-content:center; text-align:center; gap:5px 12px; }
  .topbar .left,
  .topbar .right { width:100%; }
  .topbar .right { display:flex; flex-wrap:wrap; justify-content:center; gap:4px 12px; }

  .navbar { min-height:62px; height:62px; padding:0 14px; }
  .nav-logo { width:min(190px,64vw); height:50px; }
  .mobile-menu { min-width:44px; min-height:44px; padding:8px; }

  .page-hero { padding:42px 0 34px; }
  .page-hero h1 { font-size:clamp(30px,8.5vw,42px); overflow-wrap:anywhere; }
  .section { padding:46px 0; }
  .section h2 { font-size:clamp(27px,7vw,35px); }

  .hero-ai .hero-inner { padding:0; gap:0; }
  .hero-ai .hero-copy { padding:42px 22px; }
  .hero-ai .hero-image { min-height:280px; border-radius:0; }
  .actions { flex-wrap:wrap; }
  .actions .btn { flex:1 1 180px; }

  .sample-hero-grid { grid-template-columns:1fr; }
  .sample-hero-copy { padding:48px 22px 38px; }
  .sample-hero-copy h1 { font-size:clamp(36px,10vw,48px); }
  .sample-hero-image { min-height:300px; border-radius:0; }
  .sample-feature { padding-top:14px; }
  .sample-feature-grid { grid-template-columns:1fr 1fr; }
  .sample-feature-card { min-height:145px; padding:20px 12px; }
  .sample-section-head h2,
  .sample-intro-copy h2,
  .sample-band-copy h2 { font-size:clamp(29px,8vw,38px); }

  .quick-grid { grid-template-columns:1fr 1fr; }
  .quick-card { padding:20px 16px; }
  .events-grid,
  .grid-3,
  .news-grid,
  .gallery-grid,
  .ministry-grid { grid-template-columns:1fr; }
  .event-list .event { flex-direction:column; gap:12px; }
  .event-sample-grid { grid-template-columns:1fr; }
  .event-sample-card { grid-template-columns:58px 1fr; }

  .form-grid { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .contact-form-card { padding:22px 18px; }
  .parish-form input,
  .parish-form textarea,
  .parish-form select { font-size:16px; }
  .map-wrap,
  .map-frame { height:320px; min-height:280px; }

  .footer-grid,
  .footer-grid-a { grid-template-columns:1fr; }
  .site-footer { padding-left:20px !important; padding-right:20px !important; }
  .site-footer-inner { grid-template-columns:1fr !important; gap:22px !important; }
  .site-footer .footer-brand,
  .site-footer .footer-column,
  .site-footer .footer-stained-glass {
    min-height:0;
    padding:18px 0 !important;
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.18);
  }
  .site-footer .footer-stained-glass { justify-content:center; border-bottom:0; }
  .site-footer .footer-stained-glass-image { max-width:180px; width:100%; height:auto; }
  .site-footer-bottom { flex-direction:column; align-items:flex-start; gap:10px; margin-top:18px; }
  .site-footer-bottom p { font-size:10px; line-height:1.6; }
  .footer-bottom-links { white-space:normal; }

  /* Keep every control comfortably tappable on phones. */
  a.btn,
  button,
  input[type="submit"],
  input[type="button"],
  .learn,
  .footer-bottom-links a { min-height:44px; }
  .footer-bottom-links a { display:inline-flex; align-items:center; }
}

@media (max-width: 520px) {
  .container { width:calc(100% - 22px); }
  .top-info span { width:100%; }
  .topbar .right { display:none; }

  .navbar { padding:0 10px; }
  .nav-logo { width:min(175px,62vw); }

  .hero-photo { height:clamp(220px,70vw,320px); min-height:220px; }
  .hero-copy { padding:30px 16px 34px; }
  .hero h1 { font-size:clamp(31px,10vw,40px); }
  .hero p { font-size:12px; line-height:1.7; }
  .hero-buttons { grid-template-columns:1fr; }

  .flyer-quick { width:calc(100% - 16px); grid-template-columns:1fr 1fr; }
  .flyer-quick a { min-height:128px; padding:16px 8px 12px; }
  .flyer-quick .flyer-icon { width:52px; height:56px; flex-basis:56px; }
  .flyer-quick h3 { font-size:9px; }
  .flyer-quick p { font-size:8px; line-height:1.45; }

  .welcome { padding-left:10px; padding-right:10px; }
  .church { height:clamp(220px,65vw,300px); }
  .welcome-copy { padding:26px 6px 28px; }
  .schedule { padding:18px 14px; }
  .schedule .srow { flex-direction:column; gap:3px; }
  .schedule .srow span { text-align:left; }

  .sample-feature-grid { grid-template-columns:1fr; }
  .sample-feature-card { min-height:0; border-right:0; border-bottom:1px solid var(--line); }
  .sample-feature-card:last-child { border-bottom:0; }
  .sample-band-copy { padding:38px 22px; }
  .quick-grid { grid-template-columns:1fr; }

  .amounts { grid-template-columns:1fr; }
  .actions .btn { width:100%; }
  .contact-panel { padding:24px 18px; }
  .map-wrap,
  .map-frame { height:280px; min-height:250px; }

  .site-footer .footer-brand-logo { width:min(220px,100%); }
  .site-footer .footer-stained-glass-image { max-width:150px; }
}

@media (max-width: 360px) {
  .nav-logo { width:150px; }
  .flyer-quick { grid-template-columns:1fr; }
  .flyer-quick a { min-height:118px; }
  .hero-copy { padding-left:14px; padding-right:14px; }
  .hero h1 { font-size:30px; }
  .card,
  .contact-form-card { padding:18px 14px; }
}

/* =========================================================
   FINAL HIGH-RESPONSIVENESS LAYER
   Preserves the original desktop design and only changes
   layout/flow at tablet and mobile widths.
   ========================================================= */

/* Keep every page inside the viewport. */
html, body { width:100%; max-width:100%; overflow-x:hidden; }
*, *::before, *::after { box-sizing:border-box; }
img, video, svg, iframe { max-width:100%; }

/* Front-page navigation: never allow links to squeeze or overflow. */
@media (max-width:1100px){
  body.home .navbar{
    padding-left:250px;
    padding-right:24px;
    gap:18px;
  }
  body.home .nav-link{font-size:8px;}
  body.home .donate{padding:11px 14px;font-size:9px;}
}

/* Switch cleanly to the existing hamburger menu before the nav can wrap. */
@media (max-width:1000px){
  .navbar .nav-link,
  .navbar > .donate{display:none;}
  .navbar .mobile-menu{display:inline-flex;align-items:center;justify-content:center;margin-left:auto;}
  body.home .navbar{
    height:68px;
    min-height:68px;
    padding:0 24px 0 220px;
  }
  body.home .nav-logo{
    left:24px;
    top:6px;
    width:185px;
    height:56px;
  }
  .mobile-nav .nav-links{display:flex;}
}

/* Tablet: preserve the visual hierarchy while stacking only where necessary. */
@media (max-width:900px){
  body.home .topbar{height:auto;min-height:38px;padding:8px 20px;}
  body.home .top-info{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px 16px;font-size:8px;line-height:1.4;}

  body.home .hero{height:auto;min-height:0;display:grid;grid-template-columns:1fr;}
  body.home .hero-photo{position:relative;inset:auto;width:100%;height:360px;min-height:0;order:1;}
  body.home .hero-photo:before{width:35%;}
  body.home .hero-copy{position:relative;left:auto;top:auto;width:auto;max-width:100%;padding:48px 7% 42px;order:2;background:#faf8f2;}
  body.home .hero-copy:before{left:0;top:22px;}
  body.home .hero h1{font-size:clamp(38px,7vw,48px);letter-spacing:-1.4px;}
  body.home .hero p{width:auto;max-width:560px;font-size:13px;}
  body.home .hero-buttons{flex-wrap:wrap;}
  body.home .hero-dot{display:none;}

  body.home .flyer-quick{width:calc(100% - 32px);margin:0 auto 20px;grid-template-columns:repeat(3,minmax(0,1fr));}
  body.home .flyer-quick a{min-height:160px;padding:18px 10px;}

  body.home .welcome{grid-template-columns:1fr;padding:0 24px 24px;gap:24px;}
  body.home .church{height:360px;border-radius:0 0 90px 90px;}
  body.home .welcome-copy{padding:10px 8px;}
  body.home .welcome h2{font-size:clamp(28px,5vw,34px);line-height:1.08;}
  body.home .schedule{min-height:0;padding:22px 20px;}
  body.home .srow{display:grid;grid-template-columns:minmax(120px,34%) minmax(0,1fr);gap:18px;align-items:start;}
  body.home .srow > *{min-width:0;overflow-wrap:anywhere;}
  body.home .full{line-height:1.55;}

  body.home .flyer-events{padding:18px 24px;}
  body.home .flyer-event-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  body.home .values{grid-template-columns:1fr;min-height:0;}
  body.home .rosary{min-height:240px;}
  body.home .value{border-right:0;border-bottom:1px dotted #bbc4bd;}
  body.home .value:last-child{border-bottom:0;}

  .container{width:calc(100% - 32px);}
  .page-layout{grid-template-columns:1fr;}
  .page-side{position:static;}
  .grid-2,.contact-grid,.news-feature,.sample-hero-grid,.sample-intro-grid,.sample-band,.contact-sample-grid{grid-template-columns:1fr;}
  .grid-3,.news-grid,.gallery,.gallery-grid,.ministry-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .events-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

/* Phone: make every major component single-column and touch-friendly. */
@media (max-width:700px){
  .container{width:calc(100% - 28px);}
  body.home .topbar{padding:8px 14px;}
  body.home .top-info{justify-content:flex-start;font-size:8px;}
  body.home .top-info span:nth-child(n+2){display:none;}

  body.home .navbar{height:62px;min-height:62px;padding:0 14px 0 178px;}
  body.home .nav-logo{left:14px;top:5px;width:150px;height:52px;}
  body.home .navbar .mobile-menu{font-size:24px;min-width:44px;min-height:44px;padding:8px;}
  body.home .mobile-nav{top:62px;}
  body.home .mobile-nav .nav-links{gap:0;padding:4px 0 10px;}
  body.home .mobile-nav .nav-links a{width:100%;min-height:46px;padding:12px 4px;display:flex;align-items:center;}
  body.home .mobile-nav .nav-links .btn{justify-content:center;margin-top:6px;}

  body.home .hero-photo{height:260px;}
  body.home .hero-copy{padding:34px 20px 30px;}
  body.home .hero h1{font-size:clamp(32px,10vw,42px);line-height:1.04;}
  body.home .hero p{font-size:12px;line-height:1.7;}
  body.home .hero-buttons{gap:10px;}
  body.home .hero-buttons .btn{flex:1 1 145px;min-height:42px;padding:0 12px;}

  body.home .flyer-quick{width:calc(100% - 20px);grid-template-columns:repeat(2,minmax(0,1fr));margin:0 auto 16px;border-radius:7px;}
  body.home .flyer-quick a{min-height:145px;padding:16px 8px;border-right:0;border-bottom:1px solid var(--line);}
  body.home .flyer-quick a:nth-child(odd){border-right:1px solid var(--line);}
  body.home .flyer-quick a:nth-last-child(-n+2){border-bottom:0;}
  body.home .flyer-quick .flyer-icon{width:58px;height:62px;flex-basis:62px;}
  body.home .flyer-quick h3{font-size:10px;}
  body.home .flyer-quick p{font-size:8px;max-width:135px;}

  body.home .welcome{padding:0 14px 18px;gap:18px;}
  body.home .church{height:270px;border-radius:0 0 70px 70px;}
  body.home .welcome-copy{padding:8px 4px;}
  body.home .welcome h2{font-size:28px;}
  body.home .checks li{align-items:flex-start;line-height:1.5;}
  body.home .script{font-size:26px;}
  body.home .schedule{padding:20px 14px;border-radius:7px;}
  body.home .srow{grid-template-columns:minmax(105px,42%) minmax(0,1fr);gap:12px;font-size:9px;}
  body.home .schedule h4{margin-top:15px;}
  body.home .schedule .full{font-size:8px;}

  body.home .flyer-events{padding:18px 14px;}
  body.home .flyer-events .events-head{gap:12px;align-items:flex-start;}
  body.home .flyer-event-grid{grid-template-columns:1fr;gap:10px;}
  body.home .flyer-event{min-height:76px;}
  body.home .values{grid-template-columns:1fr;}
  body.home .rosary{min-height:190px;}
  body.home .value{grid-template-columns:40px minmax(0,1fr);padding:14px;}

  .page-hero{padding:42px 0 34px;}
  .page-hero h1{font-size:clamp(30px,9vw,40px);}
  .section{padding:44px 0;}
  .section h2{font-size:clamp(28px,8vw,34px);}
  .grid-3,.news-grid,.gallery,.gallery-grid,.ministry-grid,.footer-grid,.footer-grid-a{grid-template-columns:1fr;}
  .form-grid{grid-template-columns:1fr;}
  .field.full{grid-column:auto;}
  .banner{padding:24px 20px;flex-direction:column;align-items:flex-start;}
  .amounts{grid-template-columns:1fr 1fr;}
  .news-feature{padding:16px;}
  .news-feature img{height:auto;aspect-ratio:16/9;}
  .event{flex-wrap:wrap;}
  .event-list .event{gap:12px;}
  .map,.map-wrap,.map-frame{min-height:300px;height:300px;}
  .site-footer{padding-left:20px!important;padding-right:20px!important;}
  .site-footer-inner{grid-template-columns:1fr!important;gap:22px!important;}
  .site-footer .footer-brand,.site-footer .footer-column,.site-footer .footer-stained-glass{padding-left:0;padding-right:0;border-right:0;min-height:0;}
  .site-footer-bottom{flex-direction:column;align-items:flex-start;gap:8px;}
  .footer-bottom-links{white-space:normal;}
}

/* Very small phones: prevent cramped buttons/text while retaining the design. */
@media (max-width:380px){
  body.home .navbar{padding-left:158px;}
  body.home .nav-logo{width:132px;}
  body.home .hero-copy{padding-left:16px;padding-right:16px;}
  body.home .hero h1{font-size:30px;}
  body.home .hero-buttons .btn{flex-basis:100%;}
  body.home .flyer-quick{grid-template-columns:1fr;}
  body.home .flyer-quick a,
  body.home .flyer-quick a:nth-child(odd){border-right:0;border-bottom:1px solid var(--line);}
  body.home .flyer-quick a:last-child{border-bottom:0;}
  body.home .srow{grid-template-columns:1fr;gap:4px;}
  .amounts{grid-template-columns:1fr;}
  .site-footer-bottom p{font-size:9px;}
}


/* Index THIS WEEK grouping: keep the requested section order and separators intact. */
body.home .schedule-main .srow,
body.home .schedule-raffle .srow,
body.home .schedule-news .srow{
  margin:4px 0;
}
body.home .schedule-main .srow + .srow{
  margin-top:5px;
}
body.home .schedule-raffle .srow,
body.home .schedule-news .srow{
  align-items:flex-start;
}
body.home .schedule-raffle .srow b,
body.home .schedule-news .srow b{
  max-width:42%;
}
body.home .schedule-raffle .srow span,
body.home .schedule-news .srow span{
  max-width:58%;
}
@media (max-width:700px){
  body.home .schedule-raffle .srow,
  body.home .schedule-news .srow{
    grid-template-columns:minmax(105px,42%) minmax(0,1fr);
  }
  body.home .schedule-raffle .srow b,
  body.home .schedule-news .srow b,
  body.home .schedule-raffle .srow span,
  body.home .schedule-news .srow span{
    max-width:none;
  }
}
@media (max-width:520px){
  body.home .schedule-raffle .srow,
  body.home .schedule-news .srow{
    grid-template-columns:1fr;
    gap:4px;
  }
}

/* =========================================================
   THIS WEEK — RESPONSIVE POLISH
   Keeps the requested desktop arrangement while allowing the
   content to wrap cleanly on tablets and phones.
   ========================================================= */
body.home .schedule,
body.home .schedule-main,
body.home .schedule-raffle,
body.home .schedule-news{min-width:0;max-width:100%;}

body.home .schedule .srow{min-width:0;}
body.home .schedule .srow > b,
body.home .schedule .srow > span{min-width:0;overflow-wrap:break-word;word-break:normal;}

/* Main details: label on the left, value on the right. */
body.home .schedule-main .srow{
  grid-template-columns:minmax(0,1fr) minmax(88px,auto);
  align-items:start;
}

/* Raffle: message begins directly under the location/value column. */
body.home .schedule-raffle .srow{
  grid-template-columns:minmax(0,42%) minmax(0,58%);
  align-items:start;
}

/* News heading/link and description/READ NEWS stay in two flexible columns. */
body.home .schedule-news .srow{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
}
body.home .schedule-news .srow:last-child{
  grid-template-columns:minmax(0,1fr) minmax(68px,auto);
}
body.home .schedule-news .srow b{max-width:none;}
body.home .schedule-news .srow span{max-width:none;}

@media (max-width:600px){
  body.home .schedule{padding:18px 14px;}
  body.home .schedule-main .srow{
    grid-template-columns:minmax(0,1fr) minmax(82px,auto);
    gap:10px;
  }
  body.home .schedule-raffle .srow{
    grid-template-columns:minmax(105px,42%) minmax(0,1fr);
    gap:10px;
  }
  body.home .schedule-news .srow{
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
  }
  body.home .schedule-news .srow:last-child{
    grid-template-columns:minmax(0,1fr) minmax(64px,auto);
  }
}

@media (max-width:420px){
  body.home .schedule{padding-left:12px;padding-right:12px;}
  body.home .schedule .srow{font-size:9px;}
  body.home .schedule-main .srow{
    grid-template-columns:minmax(0,1fr) minmax(76px,auto);
    gap:8px;
  }
  body.home .schedule-raffle .srow{
    grid-template-columns:minmax(96px,40%) minmax(0,1fr);
    gap:8px;
  }
  body.home .schedule-news .srow{
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
  }
  body.home .schedule-news .srow:last-child{
    grid-template-columns:minmax(0,1fr) minmax(58px,auto);
  }
}

@media (max-width:360px){
  body.home .schedule-main .srow,
  body.home .schedule-raffle .srow,
  body.home .schedule-news .srow,
  body.home .schedule-news .srow:last-child{
    grid-template-columns:minmax(0,1fr) auto;
  }
  body.home .schedule-raffle .srow span{padding-right:2px;}
}

/* Requested THIS WEEK highlight color. */
body.home .schedule-raffle .srow > b,
body.home .schedule-news .srow > b{
  color:#d1841d;
}

/* Requested THIS WEEK highlight color: headings and worship-times link. */
body.home .schedule-raffle .srow > b,
body.home .schedule-news .srow > b,
body.home .schedule .full,
body.home .schedule a.full,
body.home .schedule a[href*="mass-times"]{
  color:#d1841d !important;
}

/* Requested THIS WEEK emphasis: yellow, uppercase and bold. */
body.home .schedule-raffle .srow > b,
body.home .schedule-news .srow > b,
body.home .schedule .full,
body.home .schedule a.full,
body.home .schedule a[href*="mass-times"],
body.home .schedule a[href*="worship"] {
  color:#d1841d !important;
  text-transform:uppercase !important;
  font-weight:700 !important;
}

/* =========================================================
   FINAL HIGH-RESPONSIVENESS PASS
   Preserves the desktop design; only changes layout/flow on
   smaller screens and prevents horizontal overflow.
   ========================================================= */
html{width:100%;overflow-x:hidden}
body{width:100%;min-width:0;overflow-x:hidden}
*,*::before,*::after{max-width:100%}

/* Keep text and controls from forcing the page wider. */
h1,h2,h3,h4,h5,h6,p,li,a,span,b,strong{overflow-wrap:anywhere}
input,select,textarea{width:100%;min-width:0}
button,.btn{white-space:normal}

/* Home sections stay fluid at every viewport width. */
body.home .welcome-grid,
body.home .quick,
body.home .flyer-quick,
body.home .flyer-event-grid,
body.home .schedule{width:100%;max-width:100%;min-width:0}
body.home .welcome-copy,
body.home .schedule-main,
body.home .schedule-raffle,
body.home .schedule-news{min-width:0}

/* Phones: stack content where two columns become cramped. */
@media (max-width:600px){
  .navbar,.nav-inner,.topbar-inner{width:100%;min-width:0}
  .navbar{padding-left:12px;padding-right:12px}
  .nav-logo,.site-header-logo{max-width:62vw}
  .navbar .donate{flex:0 1 auto;white-space:normal}

  .hero-copy h1,.page-hero h1{max-width:100%;word-break:normal}
  .hero-copy p{max-width:100%}

  body.home .schedule{padding-left:12px;padding-right:12px}
  body.home .schedule-main .srow,
  body.home .schedule-raffle .srow,
  body.home .schedule-news .srow,
  body.home .schedule-news .srow:last-child{
    grid-template-columns:1fr;
    gap:4px;
  }
  body.home .schedule-main .srow > span,
  body.home .schedule-raffle .srow > span,
  body.home .schedule-news .srow > span{
    justify-self:start;
  }
  body.home .schedule hr{margin:14px 0}

  .quick,.flyer-quick{grid-template-columns:1fr 1fr;gap:0}
  .quick a,.flyer-quick a{min-width:0}
  .flyer-event-grid,.event-grid,.events-grid,.grid-3,.news-grid,.gallery-grid,.gallery{grid-template-columns:1fr}
  .flyer-event{min-width:0}

  .site-footer{padding-left:16px!important;padding-right:16px!important}
  .site-footer-inner{grid-template-columns:1fr!important;gap:0!important}
  .site-footer .footer-brand,
  .site-footer .footer-column,
  .site-footer .footer-stained-glass{
    border-right:0!important;
    border-bottom:1px solid rgba(255,255,255,.18);
    padding:16px 0!important;
    min-height:0;
  }
  .site-footer .footer-stained-glass{justify-content:center}
  .site-footer .footer-stained-glass img{max-width:180px;height:auto}
  .site-footer .footer-column:last-of-type{border-bottom:0}
}

@media (max-width:380px){
  .quick,.flyer-quick{grid-template-columns:1fr}
  .quick a,.flyer-quick a{min-height:105px}
  .hero h1,.hero-copy h1{font-size:30px}
  .container{width:calc(100% - 18px)}
  body.home .schedule{padding-left:10px;padding-right:10px}
}

/* Final requested text colors on the home page. */
body.home .schedule-title{
  color:#d1841d !important;
  text-transform:uppercase !important;
  font-weight:700 !important;
}
body.home .schedule-news .srow:last-child > b,
body.home .schedule .full,
body.home .schedule a.full{
  color:#000 !important;
}

/* =========================================================
   HIGHLY RESPONSIVE FINAL POLISH
   Preserve the original desktop composition; improve only
   tablet/mobile flow, sizing and overflow behaviour.
   ========================================================= */

html, body { max-width:100%; }
img, video, iframe, svg { max-width:100%; height:auto; }

/* Tablet: give the existing layout more breathing room without changing desktop styling. */
@media (max-width: 900px) {
  .container { width: min(100% - 32px, 1180px); }
  .navbar { gap:14px; }
  .nav-logo { max-width:280px; height:auto; }
  .nav-link { white-space:nowrap; }

  .hero-copy, .welcome-copy, .schedule, .flyer-event, .content-section,
  .page-content, .contact-grid, .contact-form { min-width:0; }

  .welcome-grid,
  .flyer-event-grid,
  .event-grid,
  .events-grid,
  .news-grid,
  .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }

  .quick, .flyer-quick { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Phones: collapse columns and keep every section inside the viewport. */
@media (max-width: 700px) {
  .container { width:calc(100% - 24px); max-width:none; }

  .nav-logo { max-width:60vw; }
  .navbar { padding-left:12px; padding-right:12px; }
  .nav-link { display:none; }
  .mobile-menu { display:inline-flex; align-items:center; justify-content:center; }
  .mobile-nav .nav-links { display:flex; flex-direction:column; align-items:stretch; gap:0; }
  .mobile-nav .nav-links a { display:block; width:100%; }

  .hero-copy h1, .page-hero h1 { font-size:clamp(30px,8vw,48px); line-height:1.08; }
  .hero-copy p, .page-hero p { font-size:clamp(15px,4vw,18px); }

  .welcome-grid,
  .flyer-event-grid,
  .event-grid,
  .events-grid,
  .news-grid,
  .gallery-grid,
  .gallery,
  .grid-3,
  .contact-grid { grid-template-columns:1fr; }

  .quick, .flyer-quick { grid-template-columns:1fr 1fr; }

  .schedule { width:100%; }
  .schedule-main .srow,
  .schedule-raffle .srow,
  .schedule-news .srow { grid-template-columns:1fr; }
  .schedule-main .srow > span,
  .schedule-raffle .srow > span,
  .schedule-news .srow > span { justify-self:start; }

  .site-footer-inner { grid-template-columns:1fr !important; }
  .site-footer-bottom { flex-direction:column; align-items:flex-start; gap:10px; }
  .footer-bottom-links { width:100%; }
}

@media (max-width: 480px) {
  .container { width:calc(100% - 20px); }
  .quick, .flyer-quick { grid-template-columns:1fr; }
  .quick a, .flyer-quick a { min-height:96px; }

  .hero-copy h1, .page-hero h1 { font-size:clamp(28px,9vw,38px); }
  .hero-copy p, .page-hero p { font-size:15px; }

  .schedule { padding-left:10px !important; padding-right:10px !important; }
  .schedule-title { font-size:clamp(20px,6vw,28px); }
  .schedule .srow { padding-left:0; padding-right:0; }

  input, select, textarea, button, .btn { max-width:100%; box-sizing:border-box; }
  textarea { min-height:120px; }
}

@media (max-width: 360px) {
  .container { width:calc(100% - 16px); }
  .nav-logo { max-width:55vw; }
  .quick a, .flyer-quick a { min-height:88px; }
  .schedule-title { font-size:22px; }
}

/* =========================================================
   FINAL V11 RESPONSIVE SAFETY LAYER
   Preserve the existing visual design; only improve sizing,
   wrapping, stacking and viewport safety on smaller screens.
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { width:100%; max-width:100%; overflow-x:hidden; }
body { width:100%; max-width:100%; overflow-x:hidden; }
main, header, footer, section, article, aside, nav, .container { max-width:100%; }
img, video, iframe, embed, object { max-width:100%; }

/* Prevent long URLs/text from creating a horizontal scrollbar. */
p, li, td, th, a, h1, h2, h3, h4, h5, h6, span, b, strong {
  overflow-wrap:anywhere;
}

/* Make all major grids flexible instead of allowing fixed-width children to overflow. */
.flyer-quick,
.flyer-event-grid,
.welcome,
.events-head,
.values,
.site-footer-inner,
.footer-grid,
.footer-grid-a,
.contact-grid,
.form-grid,
.news-grid,
.gallery-grid,
.event-grid,
.events-grid,
.grid-3 {
  min-width:0;
}

.flyer-quick > *,
.flyer-event-grid > *,
.welcome > *,
.news-grid > *,
.gallery-grid > *,
.event-grid > *,
.events-grid > *,
.grid-3 > *,
.site-footer-inner > * { min-width:0; }

/* Tablet: keep the original look but give columns enough room to shrink. */
@media (max-width: 1000px) {
  .topbar .top-info { flex-wrap:wrap; gap:8px 18px; }
  .navbar { width:100%; max-width:100%; }
  .nav-logo { height:auto; }

  .welcome { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .welcome .schedule { grid-column:1 / -1; }
  .flyer-event-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .flyer-quick { grid-template-columns:repeat(3,minmax(0,1fr)); }

  .site-footer-inner { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .site-footer .footer-stained-glass { justify-content:center; border-right:0; }
}

/* Phones: stack content cleanly and make every interactive target touch friendly. */
@media (max-width: 700px) {
  .topbar { height:auto; min-height:0; }
  .topbar .top-info { display:block; text-align:center; line-height:1.5; }
  .topbar .top-info > span { display:block; margin:2px 0; }

  .navbar { min-height:64px; height:auto; padding-left:14px !important; padding-right:14px !important; }
  .navbar .nav-link,
  .navbar .donate { display:none !important; }
  .navbar .mobile-menu { display:inline-flex !important; margin-left:auto; }
  .nav-logo { width:auto; max-width:68vw; max-height:54px; }

  /* The HTML uses the hidden attribute; JS removes it when the menu opens. */
  .mobile-nav[hidden] { display:none !important; }
  .mobile-nav:not([hidden]) { display:block !important; }
  .mobile-nav .nav-links a { min-height:46px; padding:12px 4px; }

  .hero { min-height:0; }
  .hero-copy { width:100%; max-width:none; }
  .hero-buttons { flex-wrap:wrap; }
  .hero-buttons .btn { min-width:0; }

  .flyer-quick { grid-template-columns:repeat(2,minmax(0,1fr)) !important; width:calc(100% - 20px); }
  .flyer-quick > a { width:100%; min-width:0; }

  .welcome { display:grid; grid-template-columns:1fr !important; }
  .welcome .church,
  .welcome .welcome-copy,
  .welcome .schedule { width:100%; min-width:0; grid-column:auto; }

  .schedule { overflow:hidden; }
  .schedule .srow { min-width:0; }
  .schedule .srow > * { min-width:0; }
  .schedule-news .srow,
  .schedule-raffle .srow { grid-template-columns:1fr; gap:6px; }
  .schedule-news .srow > span,
  .schedule-raffle .srow > span { justify-self:start; }

  .flyer-event-grid,
  .event-grid,
  .events-grid,
  .news-grid,
  .gallery-grid,
  .grid-3 { grid-template-columns:1fr !important; }

  .events-head { display:flex; flex-wrap:wrap; gap:10px; }
  .events-head > * { min-width:0; }

  .contact-grid,
  .form-grid { grid-template-columns:1fr !important; }
  .field.full { grid-column:auto !important; }
  input, select, textarea { width:100%; max-width:100%; }

  .site-footer { padding-left:18px !important; padding-right:18px !important; }
  .site-footer-inner { grid-template-columns:1fr !important; }
  .site-footer .footer-brand,
  .site-footer .footer-column,
  .site-footer .footer-stained-glass {
    width:100%; min-height:0; border-right:0; border-bottom:1px solid rgba(255,255,255,.18);
    padding:16px 0 !important;
  }
  .site-footer .footer-stained-glass { border-bottom:0; justify-content:center; }
  .site-footer-bottom { flex-wrap:wrap; }
}

@media (max-width: 480px) {
  .container { width:calc(100% - 18px) !important; }
  .nav-logo { max-width:62vw; max-height:50px; }
  .flyer-quick { grid-template-columns:1fr !important; width:calc(100% - 12px); }
  .flyer-quick > a { min-height:105px; }
  .hero-copy { padding-left:16px; padding-right:16px; }
  .hero-buttons .btn { width:100%; }
  .schedule { padding-left:10px !important; padding-right:10px !important; }
  .schedule .srow { padding-left:0 !important; padding-right:0 !important; }
  .schedule-news .srow > b { display:block; }
  .schedule-news .srow > span { display:block; }
  .site-footer-bottom { align-items:flex-start; }
  .footer-bottom-links { width:auto; }
}

@media (max-width: 360px) {
  .container { width:calc(100% - 14px) !important; }
  .nav-logo { max-width:58vw; }
  .navbar { padding-left:8px !important; padding-right:8px !important; }
  .flyer-quick { width:100%; }
  .schedule-title { font-size:21px; }
}

/* Keep the parish-news description in normal sentence case. */
body.home .schedule-news .srow:last-child > b{
  text-transform:none !important;
}

/* =========================================================
   FINAL HIGH-RESPONSIVE PASS — v12
   Preserve the existing desktop composition; improve only
   tablet/mobile flow, sizing and overflow protection.
   ========================================================= */

/* Tablet navigation: never leave a hamburger button without its menu. */
@media (min-width:701px) and (max-width:1080px){
  .navbar{
    min-height:64px;
    height:auto;
    padding-left:245px !important;
    padding-right:18px !important;
  }
  .navbar .nav-link,
  .navbar .donate{display:none !important;}
  .navbar .mobile-menu{display:inline-flex !important;align-items:center;justify-content:center;margin-left:auto;}
  .nav-logo{max-width:205px;width:205px;}
  .mobile-nav[hidden]{display:none !important;}
  .mobile-nav:not([hidden]){
    display:block !important;
    position:relative;
    z-index:50;
    background:#fff;
    border-bottom:1px solid var(--line);
    padding:10px 0 14px;
  }
  .mobile-nav .nav-links{display:flex !important;flex-direction:column;align-items:stretch;gap:0;}
  .mobile-nav .nav-links a{
    display:block;
    padding:12px 4px;
    border-bottom:1px solid #ece9df;
    font-size:12px;
    font-weight:700;
    white-space:normal;
  }
  .mobile-nav .nav-links a:last-child{border-bottom:0;}
  .mobile-nav .btn{margin-top:8px;width:100%;}
}

/* Tablet front page: keep the original visual hierarchy while preventing crowding. */
@media (min-width:701px) and (max-width:900px){
  .hero-copy{width:min(560px,88%);margin-left:6%;}
  .flyer-quick{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
  .flyer-event-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  .welcome{grid-template-columns:minmax(0,1fr) !important;}
  .church{max-width:720px;margin-inline:auto;}
  .schedule{margin-top:12px;}
}

/* Avoid cramped two-column quick links on very narrow phones. */
@media (max-width:420px){
  .flyer-quick,.quick{grid-template-columns:1fr !important;}
  .flyer-quick a,.quick a{min-height:105px;}
  .hero-buttons .btn{width:100%;}
  .schedule .srow{grid-template-columns:1fr !important;}
  .schedule .srow > *{justify-self:start !important;}
}

/* Long headings and labels should wrap without ever widening the viewport. */
@media (max-width:700px){
  .hero h1,.hero-copy h1,.page-hero h1,.section h2,.schedule-title,
  .events-title,.flyer-event h4,.schedule b,.schedule span{
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:normal;
  }
  .schedule hr{margin:16px 0;}
  .schedule-news .srow:last-child > b{line-height:1.55;}
  .schedule-raffle .srow > span{line-height:1.55;}
  .site-footer-bottom p{max-width:100%;overflow-wrap:anywhere;}
}

/* Prevent flex/grid children from creating accidental horizontal overflow. */
.flyer-quick > a,.flyer-event,.schedule,.welcome-copy,.church,
.footer-column,.footer-brand,.footer-contact{min-width:0;max-width:100%;}

/* =========================================================
   EASY-EDIT + RESPONSIVE POLISH
   Keeps the original desktop design while improving small screens.
   ========================================================= */
@media (max-width: 1024px) {
  .top-info { flex-wrap: wrap; gap: 8px 18px; }
  .flyer-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .welcome { grid-template-columns: minmax(0, 1fr); }
  .schedule { width: 100%; }
  .flyer-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .topbar { padding: 8px 16px; }
  .top-info { font-size: 12px; }
  .navbar { min-height: 72px; padding: 10px 16px; }
  .nav-logo { max-width: 180px; height: auto; }
  .mobile-menu { display: inline-flex; align-items: center; justify-content: center; }
  .navbar > .nav-link, .navbar > .donate { display: none; }
  .mobile-nav .nav-links { display: flex; flex-direction: column; gap: 10px; padding: 16px 0 20px; }
  .mobile-nav .nav-links a { width: 100%; box-sizing: border-box; }
  .hero { min-height: 600px; }
  .hero-copy { width: min(100%, 92vw); }
  .hero-copy h1 { font-size: clamp(34px, 9vw, 54px); line-height: 1.05; }
  .hero-buttons { flex-wrap: wrap; }
  .flyer-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-main, .schedule-raffle .srow, .schedule-news .srow { gap: 12px; }
  .schedule .srow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .schedule .srow > span { text-align: right; }
  .flyer-event-grid { grid-template-columns: 1fr; }
  .events-head { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 420px) {
  .flyer-quick { grid-template-columns: 1fr; }
  .schedule .srow { grid-template-columns: 1fr; }
  .schedule .srow > span { text-align: left; }
  .hero-buttons .btn { width: 100%; text-align: center; }
}
