/* ==========================================================================
   St Mary of the Presentation Parish, Mudgee — site stylesheet
   Ported from the approved HTML mockup. Palette, type, icon system, and
   layout patterns here are the locked design baseline — see project notes
   before changing tokens or breakpoints.
   ========================================================================== */

:root{
    --ink:#20291F;
    --ink-soft:#3C463A;
    --parchment:#F1EEE3;
    --parchment-deep:#E7E2D2;
    --bronze:#8A5A34;
    --bronze-deep:#6E4527;
    --season-green:#3B6B4A;
    --season-green-soft:#DCE7DE;
    --line:#D8D2C0;
    --white:#FFFCF6;
    --footer-bg:#20291F;
    --footer-text:#D9D5C6;
    --footer-link:#C7C2AF;
    --radius:2px;
    --tabbar-height:56px;
  }
  *{box-sizing:border-box;}
  body{margin:0;background:var(--parchment);color:var(--ink);font-family:'Source Sans 3',sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased;padding-bottom:calc(var(--tabbar-height) + env(safe-area-inset-bottom,0));}
  h1,h2,h3{font-family:'Fraunces',serif;font-weight:600;color:var(--ink);margin:0;}
  a{color:inherit;text-decoration:none;}
  img,.ph{display:block;}
  button{font-family:inherit;cursor:pointer;}
  .icon{
    width:18px;height:18px;flex-shrink:0;
    fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
  }

  /* ---------- page container ---------- */
  .site-wrap{max-width:1180px;margin:0 auto;background:var(--parchment);}

  /* ---------- site nav ---------- */
  /* Shared wrapper for .topbar + the optional devotional line — owns the
     header's one closing border-bottom, so the two elements read as a
     single unified block rather than two separately-bordered bars
     stacked on top of each other. */
  .site-header{border-bottom:1px solid var(--line);background:var(--white);}
  .topbar{
    display:flex;align-items:center;justify-content:space-between;
    padding:16px 20px 8px;background:var(--white);
  }
  .brand{
    display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;
    column-gap:8px;row-gap:2px;align-items:center;
  }
  .site-logo{grid-column:1;grid-row:1 / span 2;height:40px;width:auto;justify-self:start;}
  .brand .name{grid-column:2;grid-row:1;font-family:'Fraunces',serif;font-weight:600;font-size:14px;line-height:1.2;color:var(--ink);}
  .brand .place{grid-column:2;grid-row:2;font-size:10px;color:var(--ink-soft);letter-spacing:.03em;text-transform:uppercase;}

  /* Full-width line beneath the header, matching the subline's own
     font-size and colour exactly — italic is the one deliberate
     difference, distinguishing it from the subline's non-italic,
     uppercase, letter-spaced treatment. Centred across the full
     header width on both breakpoints, not confined to the brand
     block's own column. */
  .devotional-line{
    text-align:center;padding:4px 20px 8px;font-style:italic;
    color:var(--ink-soft);font-size:10px;
  }
  .nav-links{display:none;gap:26px;font-size:14.5px;font-weight:500;}
  .nav-links a{padding:4px 2px;border-bottom:2px solid transparent;}
  .nav-links a:hover{border-color:var(--bronze);}
  .give-btn{
    display:none;background:var(--bronze);color:var(--white);
    padding:9px 18px;border-radius:var(--radius);font-size:13.5px;font-weight:600;letter-spacing:.02em;
  }
  .give-btn.active{background:var(--bronze-deep);box-shadow:inset 0 0 0 2px rgba(255,255,255,.55);}
  .hamburger{
    display:flex;flex-direction:column;gap:4px;border:1px solid var(--line);padding:8px;
    position:fixed;top:14px;right:16px;z-index:90;
    background:var(--white);border-radius:var(--radius);box-shadow:0 2px 8px rgba(32,41,31,.15);
  }
  .hamburger span{width:22px;height:2px;background:var(--ink);display:block;}

  /* ---------- mobile nav drawer ---------- */
  .nav-backdrop{
    position:fixed;inset:0;background:rgba(15,18,13,.4);
    opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:250;
  }
  .nav-backdrop.open{opacity:1;pointer-events:auto;}
  .nav-drawer{
    position:fixed;top:0;right:0;bottom:0;width:78%;max-width:300px;
    background:var(--white);z-index:260;transform:translateX(100%);
    transition:transform .25s ease;box-shadow:-8px 0 24px rgba(0,0,0,.18);
    display:flex;flex-direction:column;overflow-y:auto;
  }
  .nav-drawer.open{transform:translateX(0);}
  .nav-drawer-head{
    display:flex;align-items:center;justify-content:space-between;
    padding:16px 18px;border-bottom:1px solid var(--line);
  }
  .nav-drawer-head span{font-family:'Fraunces',serif;font-weight:600;font-size:15.5px;}
  .nav-drawer-close{
    background:none;border:none;font-size:22px;line-height:1;color:var(--ink-soft);
    padding:4px 8px;border-radius:4px;
  }
  .nav-drawer-links{display:flex;flex-direction:column;padding:4px 0;}
  .nav-drawer-links a{
    display:flex;align-items:center;gap:12px;
    padding:9px 20px;font-size:14px;font-weight:500;color:var(--ink);
    border-left:3px solid transparent;
  }
  .nav-drawer-links a .icon{color:var(--ink-soft);width:18px;height:18px;}
  .nav-drawer-links a.give-link{
    margin-top:10px;border-top:1px solid var(--line);padding-top:16px;
    color:var(--bronze-deep);font-weight:600;
  }
  .nav-drawer-links a.give-link .icon{color:var(--bronze-deep);}
  @media (min-width:820px){
    .nav-drawer,.nav-backdrop{display:none;}
  }
  #mass-times-card{scroll-margin-top:70px;}

  /* ---------- hero ---------- */
  .universalis-banner{
    padding:6px 20px 10px 18px;text-align:center;font-family:'Fraunces',serif;
    border-bottom:1px solid var(--line);
  }
  .universalis-banner #uni-date{
    display:block;font-size:13px;font-weight:700;color:var(--season-green);
    text-transform:uppercase;letter-spacing:.06em;
  }
  .universalis-banner #uni-day{
    display:block;font-size:12px;font-style:italic;color:var(--ink-soft);margin-top:2px;
  }
  .hero{position:relative;padding:14px 20px 30px;}
  .hero-photo{
    height:220px;border-radius:var(--radius);overflow:hidden;
    margin-bottom:22px;position:relative;
  }
  .hero-slides{display:flex;height:100%;}
  .hero-slide{
    flex:0 0 100%;width:100%;height:100%;position:relative;
    display:flex;align-items:flex-end;padding:14px;box-sizing:border-box;
  }
  .hero-slide img{
    position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;
  }
  .hero-slide::after{
    content:'';position:absolute;inset:0;z-index:1;
    background:linear-gradient(160deg, rgba(32,41,31,.55), rgba(32,41,31,.1) 55%, rgba(32,41,31,.5));
  }
  .hero-slide .cap{position:relative;z-index:2;color:#fff;font-size:12.5px;opacity:.95;}
  .hero-dots{position:absolute;bottom:12px;right:14px;z-index:3;display:flex;gap:6px;}
  .hero-dot{
    width:8px;height:8px;border-radius:50%;border:none;padding:0;cursor:pointer;
    background:rgba(255,255,255,.5);
  }
  .hero-dot.active{background:#fff;}
  .hero h1{font-size:29px;line-height:1.18;margin-bottom:12px;}
  .hero h1 em{font-style:normal;color:var(--bronze-deep);}
  .hero p.sub{font-size:15.5px;color:var(--ink-soft);max-width:100%;margin-bottom:20px;}
  .cta{
    display:inline-flex;align-items:center;gap:8px;background:var(--season-green);color:var(--white);
    padding:13px 22px;border-radius:var(--radius);font-weight:600;font-size:15px;letter-spacing:.01em;
    box-shadow:0 3px 0 var(--season-green-soft);
  }
  .cta .arrow{transition:transform .15s;}

  /* ---------- mass times card (signature element) ---------- */
  .mass-card{
    margin:0 20px 30px;background:var(--white);border:1px solid var(--line);
    border-radius:var(--radius);position:relative;padding:22px 18px 18px;
  }
  .season-tab{
    position:absolute;top:-13px;left:18px;background:var(--season-green);color:#fff;
    font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
    padding:5px 12px 6px;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.15);
  }
  .season-tab::after{
    content:'';position:absolute;bottom:-5px;left:6px;width:0;height:0;
    border-left:5px solid transparent;border-right:5px solid transparent;
    border-top:5px solid var(--season-green-soft);filter:brightness(.7);
  }
  .mass-card h2{font-size:19px;margin-bottom:3px;}
  .mass-card .updated{font-size:12px;color:var(--ink-soft);margin-bottom:16px;}

  .church-row{
    display:grid;grid-template-columns:1fr;gap:0;
  }
  .church{
    display:flex;justify-content:space-between;align-items:baseline;gap:10px;
    padding:8px 0;cursor:pointer;
  }
  .church .name{font-weight:600;font-size:14.5px;}
  .church .name span{display:block;font-weight:400;font-size:12px;color:var(--ink-soft);}
  .church .name .my-parish-tag{
    display:none;font-weight:700;font-size:10px;text-transform:uppercase;letter-spacing:.04em;
    color:var(--season-green);margin-top:2px;
  }
  .church.is-my-parish{background:var(--parchment-deep);border-radius:var(--radius);padding-left:10px;padding-right:10px;margin:0 -10px;}
  .church.is-my-parish .my-parish-tag{display:block;}
  .church .times{font-size:13.5px;text-align:right;color:var(--ink-soft);}
  .church .times strong{color:var(--ink);font-weight:600;}
  .confession-line{
    margin-top:14px;padding-top:12px;border-top:1px solid var(--line);
    font-size:13px;color:var(--ink-soft);display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;
  }
  .confession-line strong{color:var(--ink);}
  .mass-card .full-link{
    display:inline-block;margin-top:14px;font-size:13.5px;font-weight:600;color:var(--bronze-deep);
    border-bottom:1px solid var(--bronze-deep);
  }

  /* ---------- announcements / calendar ---------- */
  .section{padding:0 20px 34px;}
  .section-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:14px;}
  .section-head h2{font-size:20px;}
  .section-head a{font-size:13px;font-weight:600;color:var(--bronze-deep);}
  .announce-list{display:flex;flex-direction:column;gap:12px;}
  .news-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;}
  .announce{
    background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
    padding:14px 16px;display:flex;gap:12px;align-items:flex-start;
  }
  .announce .tag{
    flex-shrink:0;width:6px;align-self:stretch;background:var(--bronze);border-radius:2px;
  }
  .announce-content{flex:1;min-width:0;}
  .announce-content::after{content:'';display:table;clear:both;}
  .home-announce-list .announce{display:block;}
  .home-announce-list .announce::after{content:'';display:table;clear:both;}
  .announce-icon{
    float:left;margin-right:12px;width:34px;height:34px;border-radius:50%;background:var(--season-green-soft);
    display:flex;align-items:center;justify-content:center;
  }
  .announce-icon .icon{width:16px;height:16px;color:var(--season-green);stroke-width:1.6;}
  .announce h3{font-size:14.5px;margin-bottom:3px;font-family:'Source Sans 3',sans-serif;font-weight:600;}
  .announce p{font-size:13px;color:var(--ink-soft);margin:0;}
  .announce .date{font-size:11.5px;color:var(--ink-soft);letter-spacing:.03em;text-transform:uppercase;margin-top:6px;display:block;}
  /* Homepage only, small screens only — the excerpt stays hidden to keep
     cards compact, restored to full on desktop below (@media min-width:820px).
     The date/source line is shown on mobile too, unlike the excerpt. */
  .home-announce-list .announce p{display:none;}

  /* ---------- bottom tab bar (mobile) ---------- */
  .tabbar{
    display:flex;align-items:center;border-top:1px solid var(--line);background:var(--white);
    position:fixed;left:0;right:0;bottom:0;z-index:100;
    min-height:var(--tabbar-height);
    padding-bottom:env(safe-area-inset-bottom,0);
  }
  .tabbar a{
    flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;padding:9px 2px 8px;font-size:10px;font-weight:600;
    color:var(--ink-soft);letter-spacing:0;border-top:2px solid transparent;
  }
  .tabbar a.active{color:var(--bronze-deep);border-color:var(--bronze-deep);}
  .tabbar.tabbar-tinted{border-top-width:3px;}
  .tabbar .tab-icon{width:20px;height:20px;margin-bottom:3px;stroke-width:1.6;}

  /* ---------- footer ---------- */
  footer{background:var(--footer-bg);color:var(--footer-text);padding:16px 20px 10px;font-size:13.5px;}
  .foot-grid{display:grid;grid-template-columns:1fr;gap:6px;}
  .foot-grid ul.foot-office-info{list-style:none;margin:0 0 4px;padding:0;font-size:12px;line-height:1.4;gap:1px;}
  .foot-contact-desktop{display:none;}
  .foot-contact-mobile a{color:inherit;text-decoration:underline;text-decoration-color:rgba(255,255,255,.4);}
  .foot-social{display:flex;gap:12px;margin:10px 0 4px;}
  .foot-social a{color:#D9D5C6;display:flex;}
  .foot-social .icon{width:18px;height:18px;}
  .foot-grid h4{color:#fff;font-family:'Fraunces',serif;font-weight:600;font-size:14.5px;margin:0;letter-spacing:.01em;}
  .foot-grid ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px;}
  .foot-grid a{color:var(--footer-link);}
  .foot-grid a:hover{color:#fff;}

  /* first (contact) column always fully visible, not part of the accordion */
  .foot-grid > div:first-child{margin-bottom:0;}
  .foot-grid > div:first-child h4{margin-bottom:6px;}
  .footer-logo{
    height:30px;width:auto;display:block;margin-bottom:12px;
    opacity:.85;
  }

  .foot-col{border-top:1px solid #3A4536;display:none;}
  .foot-col-toggle{
    width:100%;background:none;border:none;display:flex;align-items:center;justify-content:space-between;
    padding:14px 2px;text-align:left;
  }
  .foot-col-label{display:flex;align-items:center;gap:10px;}
  .foot-col-label .icon{color:var(--bronze);width:17px;height:17px;}
  .foot-col-toggle .chev{color:#9B978A;font-size:15px;transition:transform .2s ease;}
  .foot-col.open .foot-col-toggle .chev{transform:rotate(180deg);}
  .foot-col-list{
    max-height:0;overflow:hidden;transition:max-height .25s ease;padding:0 2px;
  }
  .foot-col.open .foot-col-list{max-height:260px;padding-bottom:14px;}
  /* These four now live in the mobile drawer instead — footer keeps them on desktop only, where the drawer itself isn't reachable */
  .foot-desktop-only{display:none;}
  .urgent-box{
    background:#3C2E1E;border:1px solid #5A4530;border-radius:var(--radius);
    padding:12px 14px;margin-top:8px;
  }
  .urgent-box .lbl{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#D9B98C;display:block;margin-bottom:4px;}
  .urgent-box .num{font-family:'Fraunces',serif;font-size:18px;color:#fff;font-weight:600;}
  .foot-legal-links{display:flex;gap:12px;flex-wrap:wrap;font-size:11px;margin-top:4px;padding-top:6px;}
  .foot-legal-links a{color:var(--footer-text);}
  .foot-base{
    display:flex;flex-direction:row;justify-content:space-between;align-items:baseline;gap:8px;
    font-size:11px;color:#9B978A;line-height:1.4;margin-top:6px;flex-wrap:wrap;
  }
  .powered-by{font-size:10.5px;color:#9B978A;white-space:nowrap;}
  .copyright-full{display:none;}
  .powered-by .brand-my{font-style:italic;color:#FF7A1A;font-weight:700;}

  /* ---------- desktop ---------- */
  @media (min-width:820px){
    .nav-links{display:flex;}
    .give-btn{display:inline-block;}
    .hamburger{display:none;}
    .home-announce-list .announce p,
    .home-announce-list .announce .date{display:block;}
    .topbar{padding:18px 44px 10px;}
    .site-logo{height:56px;}
    .brand .name{font-size:19px;}
    .brand .place{font-size:11px;}
    .devotional-line{font-size:11px;padding:4px 44px 10px;}
    .brand{row-gap:4px;}
    .hero{
      display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center;padding:52px 44px 44px;
    }
    .hero-photo{height:340px;order:2;margin-bottom:0;}
    .hero-text{order:1;}
    .hero h1{font-size:40px;max-width:100%;}
    .hero p.sub{font-size:17px;max-width:100%;}
    .mass-card{margin:0 44px 40px;padding:30px 34px 26px;}
    .church-row{grid-template-columns:repeat(4,1fr);gap:22px;}
    .church{flex-direction:column;align-items:flex-start;border-top:none;border-left:1px dashed var(--line);padding:0 0 0 20px;}
    .church:first-child{border-left:none;padding-left:0;}
    .church .times{text-align:left;margin-top:6px;}
    .confession-line{flex-direction:row;}
    .section{padding:0 44px 46px;}
    .announce-list{flex-direction:row;}
    .announce{flex:1;flex-direction:column;}
    .announce .tag{width:auto;height:6px;align-self:stretch;margin-bottom:8px;}
    #newsList .announce{flex-direction:row;}
    #newsList .announce .tag{width:6px;height:auto;align-self:stretch;margin-bottom:0;}
    .tabbar{display:none;}
    body{padding-bottom:0;}
    .foot-desktop-only{display:list-item;}
    footer{padding:46px 44px 26px;}
    .foot-grid{grid-template-columns:1.1fr 1fr .7fr;gap:26px;align-items:start;}
    .foot-grid > div:first-child{margin-bottom:0;}
    .foot-contact-mobile{display:none;}
    .foot-contact-desktop{display:list-item;}
    .foot-social{margin:0;gap:14px;grid-column:3;grid-row:1;align-self:start;}
    .foot-social .icon{width:22px;height:22px;}
    .footer-logo{height:36px;}
    .foot-col{border:none;display:block;}
    .foot-col-toggle{pointer-events:none;padding:0 0 10px;}
    .foot-col-toggle .chev{display:none;}
    .foot-col-list{max-height:none !important;overflow:visible;padding:0 !important;}
    .copyright-short{display:none;}
    .copyright-full{display:inline;}
  }

  /* ---------- shared sub-page bits ---------- */
  .breadcrumb{padding:16px 20px 0;font-size:12.5px;color:var(--ink-soft);}
  .breadcrumb a{color:var(--bronze-deep);font-weight:600;}
  .page-header{padding:12px 20px 14px;border-bottom:1px solid var(--line);margin-bottom:14px;}
  .page-header .eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--bronze-deep);font-weight:700;display:block;margin-bottom:8px;}
  .page-header h1{font-size:27px;line-height:1.2;margin-bottom:6px;}
  .page-header p{font-size:15px;color:var(--ink-soft);max-width:100%;margin:0;}

  /* mass times full listing — also used by any block-editor Page with
     icon_card blocks (Ministries, About, and any future page built the
     same way). One rule here covers both, so a new page never needs
     its own patch for this. */
  .mt-full{display:flex;flex-direction:column;gap:8px;}
  .giving-dd-grid{display:flex;flex-direction:column;gap:16px;}
  .giving-thumb-row{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap;}
  .giving-thumb{width:48px;height:48px;object-fit:contain;padding:5px;box-sizing:border-box;background:var(--parchment);border-radius:var(--radius);border:1px solid var(--line);}
  .giving-section-head{display:flex;align-items:center;gap:14px;margin-bottom:6px;}
  .giving-section-icon{width:44px;height:44px;object-fit:contain;padding:6px;box-sizing:border-box;background:var(--parchment);border-radius:var(--radius);border:1px solid var(--line);flex-shrink:0;}
  .giving-section-icon-sprite{display:flex;align-items:center;justify-content:center;color:var(--bronze-deep);}
  .giving-section-icon-sprite .icon{width:22px;height:22px;}
  .giving-section-head h2{margin:0;}
  .giving-section-head .desc{margin:2px 0 0;}
  .mt-church-card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;overflow:hidden;}
  .photo-card{
    background:var(--white);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
    margin-bottom:16px;display:flex;flex-direction:column;width:100%;
  }
  .photo-card-img{width:100%;height:110px;object-fit:contain;padding:14px;box-sizing:border-box;background:var(--parchment);display:block;}
  .photo-card-body{padding:16px 18px;}
  .photo-card-body h3{margin:0 0 6px;}
  .mt-photo{
    height:150px;margin:-18px -20px 16px;border-radius:0;
    background:repeating-linear-gradient(135deg,#4A5B44 0 18px,#3F4E3A 18px 36px);
    display:flex;align-items:center;justify-content:center;position:relative;
  }
  .mt-photo img{width:100%;height:100%;object-fit:cover;}
  .mt-photo.placeholder{flex-direction:column;gap:8px;color:rgba(255,255,255,.85);}
  .mt-photo.placeholder .icon{width:28px;height:28px;stroke-width:1.4;}
  .mt-photo.placeholder span{font-size:10.5px;letter-spacing:.04em;text-transform:uppercase;text-align:center;padding:0 12px;}
  .mt-church-card h3{font-size:17px;margin-bottom:2px;}
  .mt-church-card .addr{font-size:12.5px;color:var(--ink-soft);margin-bottom:14px;}
  .mt-rows{display:flex;flex-direction:column;gap:0;}
  .mt-row{display:flex;justify-content:flex-start;align-items:baseline;gap:14px;font-size:14px;padding:1px 0;}
  .mt-row .lbl{color:var(--ink-soft);flex:0 0 72px;}
  .mt-row .val{font-weight:600;text-align:left;}
  .mt-date-heading{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--bronze-deep);font-weight:700;margin-top:14px;}
  .mt-date-heading:first-child{margin-top:0;}
  .note-box{background:var(--season-green-soft);border:1px solid #C4D6C8;border-radius:var(--radius);padding:14px 16px;font-size:13.5px;color:var(--ink);margin-top:6px;}

  /* sacraments pathway grid */
  .sac-grid{display:grid;grid-template-columns:1fr;gap:10px;}
  .sac-card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:6px;}
  .sac-card-head{display:flex;align-items:center;gap:10px;}
  .sac-icon{
    width:36px;height:36px;border-radius:50%;background:var(--season-green-soft);
    display:flex;align-items:center;justify-content:center;flex-shrink:0;
  }
  .sac-icon .icon{width:18px;height:18px;color:var(--season-green);stroke-width:1.6;}
  .sac-icon.urgent-icon{background:rgba(255,255,255,.12);}
  .sac-card-head h3{margin:0;}
  .sac-icon.urgent-icon .icon{color:#D9B98C;}
  .sac-card h3{font-size:17px;}
  .sac-card p{font-size:13.5px;color:var(--ink-soft);margin:0;flex-grow:1;}
  .sac-card .go{font-size:13px;font-weight:600;color:var(--bronze-deep);}
  .status-badge{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;padding:4px 10px;border-radius:20px;width:fit-content;letter-spacing:.02em;background:var(--parchment-deep);color:var(--ink-soft);}
  .status-badge.open{background:var(--season-green-soft);color:var(--season-green);}
  .status-badge.error{background:#F4DEDA;color:#8A3B2E;}
  .status-badge .dot{width:6px;height:6px;border-radius:50%;background:currentColor;}
  .sac-card.urgent{background:#3C2E1E;border-color:#5A4530;}
  .sac-card.urgent h3,.sac-card.urgent .go{color:#fff;}
  .sac-card.urgent p{color:#D9CFC0;}
  .sac-card.urgent .num{font-family:'Fraunces',serif;font-size:20px;color:#fff;font-weight:600;margin-top:2px;}

  /* news page */
  .news-cols{display:flex;flex-direction:column;gap:34px;}
  .news-col h2{font-size:18px;margin-bottom:4px;}
  .news-col .desc{font-size:12.5px;color:var(--ink-soft);margin-bottom:14px;}
  .news-filter-chips{display:flex;gap:14px;flex-wrap:wrap;align-items:center;}
  .news-filter-chips .chip{
    background:none;border:none;border-bottom:2px solid transparent;padding:0 0 2px;margin:0;
    font-size:13px;font-weight:600;color:var(--ink-soft);cursor:pointer;font-family:inherit;
  }
  .news-filter-chips .chip.active{color:var(--bronze-deep);border-bottom-color:var(--bronze-deep);}
  .news-category-badge{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;}
  .intention-widget{
    background:var(--white);border:1px solid var(--line);border-left:4px solid var(--bronze);
    border-radius:var(--radius);padding:16px 18px;margin-bottom:30px;display:flex;flex-direction:column;gap:10px;
  }
  .intention-widget .intention-top{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;}
  .intention-widget .month-tab{
    font-family:'Fraunces',serif;font-weight:600;font-size:13px;color:var(--bronze-deep);
  }
  .intention-widget .intention-theme{font-family:'Fraunces',serif;font-weight:600;font-size:16px;color:var(--ink);margin-bottom:4px;}
  .intention-widget .intention-body::after{content:'';display:table;clear:both;}
  .intention-widget .intention-image{
    width:90px;height:90px;float:left;margin-right:14px;margin-bottom:6px;border-radius:var(--radius);object-fit:cover;
  }
  .intention-widget p{margin:0;font-size:14px;color:var(--ink);font-style:italic;}

  /* contact page */
  .contact-layout{display:flex;flex-direction:column;gap:30px;}
  .contact-form{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:22px;display:flex;flex-direction:column;gap:14px;}
  .form-row label{display:block;font-size:12.5px;font-weight:600;margin-bottom:6px;color:var(--ink);}
  .form-row input,.form-row textarea{
    width:100%;border:1px solid var(--line);border-radius:var(--radius);padding:10px 12px;
    font-family:inherit;font-size:14px;background:var(--parchment);color:var(--ink);
  }
  .form-row textarea{min-height:96px;resize:vertical;}
  .form-submit{
    align-self:flex-start;background:var(--season-green);color:#fff;padding:11px 22px;
    border:none;border-radius:var(--radius);font-weight:600;font-size:14.5px;
  }
  .contact-info{display:flex;flex-direction:column;gap:16px;}
  .info-card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;}
  .info-card h3{font-size:14.5px;margin-bottom:6px;}
  .info-card p{font-size:13.5px;color:var(--ink-soft);margin:0;line-height:1.6;}

  @media (min-width:820px){
    .breadcrumb{padding:20px 44px 0;}
    .home-quicklink{display:none;}
    .page-header{padding:18px 44px 30px;}
    .page-header h1{font-size:34px;}
    .mt-full{flex-direction:row;flex-wrap:wrap;align-items:start;}
    /* icon_card and link_button both pair 2-per-row — similarly-sized,
       card-shaped content. max-width stops either from flex-growing to
       fill the whole row width if left alone with nothing to pair with. */
    .mt-full > .mt-church-card,
    .mt-full > .block-link-button{flex:1 1 calc(50% - 8px);max-width:calc(50% - 8px);}
    /* Bare headings/paragraphs/quotes/callouts, plain images, and
       photo_card (its own self-contained horizontal strip, never meant
       to pair with a sibling) always render full-width instead. */
    .mt-full > h2, .mt-full > h3, .mt-full > p, .mt-full > blockquote,
    .mt-full > .block-callout, .mt-full > figure, .mt-full > .photo-card{flex:1 1 100%;}
    .giving-dd-grid{flex-direction:row;flex-wrap:wrap;}
    .giving-dd-grid .mt-church-card{flex:1 1 calc(33.333% - 11px);}
    .photo-card{flex-direction:row;align-items:stretch;}
    .photo-card-img{width:220px;height:auto;flex-shrink:0;object-fit:contain;padding:16px;box-sizing:border-box;background:var(--parchment);}
    .photo-card-body{flex:1;}
    .sac-grid{grid-template-columns:repeat(3,1fr);}
    .news-cols{flex-direction:row;}
    .news-col{flex:1;}
    .contact-layout{flex-direction:row;align-items:flex-start;}
    .contact-form{flex:1.3;}
    .contact-info{flex:1;}
  }


  /* ---------- calendar page ---------- */
  .month-switch{display:flex;align-items:center;justify-content:space-between;padding:0 20px 18px;}
  .month-switch h2{font-size:19px;}
  .month-switch .arrows{display:flex;gap:8px;}
  .reading-nav{display:flex;flex-wrap:wrap;gap:10px 16px;}
  .month-switch button{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);width:32px;height:32px;font-size:15px;color:var(--ink-soft);}
  .cal-legend{display:flex;gap:16px;flex-wrap:wrap;padding:0 20px 22px;font-size:12.5px;color:var(--ink-soft);}
  .cal-legend .item{display:flex;align-items:center;gap:6px;}
  .cal-legend .dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;}
  .dot-parish{background:var(--bronze);}
  .dot-liturgy{background:var(--season-green);}
  .dot-diocesan{background:var(--ink-soft);}
  .dot-wider{background:var(--bronze-deep);}

  .cal-grid{display:none;}
  .cal-weekday-row{display:none;}
  .cal-agenda{display:flex;flex-direction:column;gap:10px;}
  .agenda-day{display:flex;gap:14px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px;}
  .agenda-day.today{border-color:var(--season-green);background:var(--season-green-soft);}
  .agenda-date{flex-shrink:0;width:46px;text-align:center;}
  .agenda-date .num{font-family:'Fraunces',serif;font-weight:700;font-size:19px;line-height:1;}
  .agenda-date .wd{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--ink-soft);}
  .agenda-events{display:flex;flex-direction:column;gap:6px;flex-grow:1;}
  .agenda-event{display:flex;align-items:baseline;gap:8px;font-size:13.5px;}
  .agenda-event .dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;}
  .agenda-event .time{color:var(--ink-soft);font-size:12px;white-space:nowrap;}

  /* ---------- homepage calendar preview ---------- */
  .cal-preview-list{display:grid;grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));gap:14px;}
  .cal-preview-item{display:flex;flex-direction:column;align-items:stretch;gap:14px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px;height:100%;box-sizing:border-box;}
  .cal-preview-item .cal-preview-head{display:flex;gap:10px;align-items:center;margin-bottom:8px;}
  .cal-preview-item .datebadge{flex-shrink:0;width:50px;text-align:center;background:var(--parchment-deep);border-radius:2px;padding:7px 0;}
  .cal-preview-item .liturgical-label{font-size:11.5px;font-style:italic;color:var(--ink-soft);margin:0;line-height:1.3;flex:1;min-width:0;}
  .cal-preview-item .datebadge .dow{display:block;font-size:9.5px;text-transform:uppercase;letter-spacing:.05em;color:inherit;opacity:.8;}
  .cal-preview-item .datebadge .day{display:block;font-family:'Fraunces',serif;font-size:19px;font-weight:700;line-height:1;}
  .cal-preview-item .datebadge .mon{display:block;font-size:9.5px;text-transform:uppercase;letter-spacing:.05em;color:inherit;opacity:.8;}
  .cal-preview-item h3{font-size:14px;margin-bottom:2px;font-family:'Source Sans 3',sans-serif;font-weight:600;}
  .cal-preview-item p{font-size:12px;color:var(--ink-soft);margin:0;}
  .cal-preview-event{display:flex;align-items:flex-start;gap:10px;}
  .cal-preview-event p{flex:0 0 55px;white-space:nowrap;}
  .cal-preview-event h3{margin-bottom:0;flex:1;}

  /* ---------- readings page day scroller ---------- */
  .day-strip{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;padding:4px 2px 14px;-webkit-overflow-scrolling:touch;}
  .day-chip{scroll-snap-align:center;flex:0 0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;width:52px;padding:8px 0;background:var(--parchment-deep);border:none;border-radius:var(--radius);text-decoration:none;color:var(--ink-soft);box-shadow:0 1px 2px rgba(32,41,31,.15);}
  .day-chip .dow{font-size:9.5px;text-transform:uppercase;letter-spacing:.05em;opacity:.85;}
  .day-chip .day{font-family:'Fraunces',serif;font-size:18px;font-weight:700;line-height:1.15;}
  .day-chip .mon{font-size:9.5px;text-transform:uppercase;letter-spacing:.05em;opacity:.85;}
  .day-chip.active{box-shadow:0 0 0 3px var(--ink), 0 1px 3px rgba(32,41,31,.2);}

  @media (min-width:820px){
    .month-switch{padding:0 44px 20px;}
    .cal-legend{padding:0 44px 26px;}
    .cal-agenda{display:none;}
    .cal-grid{
      display:grid;grid-template-columns:repeat(7,1fr);gap:6px;
      margin:0 44px 8px;
    }
    .cal-weekday-row{
      display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin:0 44px 6px;
    }
    .cal-weekday{background:var(--parchment-deep);border-radius:var(--radius);text-align:center;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--ink-soft);padding:8px 0;}
    .cal-cell{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);min-height:92px;padding:8px;font-size:12px;}
    .cal-cell.empty{background:var(--parchment-deep);border-color:transparent;}
    .cal-cell.today{background:var(--season-green-soft);box-shadow:inset 0 0 0 2px var(--season-green);}
    .cal-daynum{font-family:'Fraunces',serif;font-weight:700;font-size:14px;display:block;margin-bottom:5px;}
    .cal-pill{font-size:10.5px;display:flex;gap:5px;align-items:baseline;line-height:1.4;margin-bottom:3px;}
    .cal-pill .dot{width:6px;height:6px;border-radius:50%;flex-shrink:0;position:relative;top:-1px;}
    .day-strip{gap:18px;}
    .day-chip{width:60px;padding:10px 0;}
    .day-chip .day{font-size:20px;}
  }

  /* ---------- block-model content (Pages, later News) ---------- */
  .block-content p{font-size:14.5px;line-height:1.7;color:var(--ink);margin:0 0 16px;}
  .block-content h2{font-size:22px;margin:24px 0 12px;}
  .block-content h3{font-size:18px;margin:20px 0 10px;}
  .block-callout{padding:14px 16px;border-radius:var(--radius);margin:16px 0;font-size:14px;line-height:1.6;}
  .block-callout-accent{background:var(--parchment-deep);border-left:3px solid var(--bronze);}
  .block-callout-highlight{background:#FBF0DC;border-left:3px solid #D9A441;}
  .block-callout-muted{background:var(--parchment-deep);border-left:3px solid var(--ink-soft);color:var(--ink-soft);}
  .block-callout-default{background:none;border:1px solid var(--line);}
  .block-link-button{margin:12px 0;}
  blockquote{border-left:3px solid var(--bronze);padding:8px 0 8px 16px;margin:16px 0;font-style:italic;color:var(--ink-soft);font-size:14.5px;}
  figure.block-img-small{max-width:240px;}
  figure.block-img-medium{max-width:420px;}
  figure.block-img-large{max-width:640px;}
  figure.block-img-full{max-width:100%;}
  figure[class^="block-img-"]{margin:16px auto;}
  figure[class^="block-img-"] img{width:100%;border-radius:var(--radius);display:block;}
  figure[class^="block-img-"] figcaption{font-size:12px;color:var(--ink-soft);margin-top:6px;text-align:center;}

  /* special events — consent gate */
  .privacy-gate{
    background:var(--parchment-deep);border-radius:var(--radius);padding:18px 20px;margin:24px 0;
  }
  .privacy-gate h3{margin:0 0 10px;font-size:16px;}
  .privacy-gate p{font-size:13.5px;color:var(--ink-soft);margin:0 0 14px;line-height:1.6;}
  .consent-checkbox{display:flex;align-items:flex-start;gap:10px;cursor:pointer;margin-bottom:10px;font-size:13.5px;line-height:1.5;}
  .consent-checkbox input{width:auto;margin-top:3px;flex-shrink:0;}
  .special-event-link{transition:opacity .2s ease;}
