/* Parish kit refresh: the inner pages in step with the homepage. Infinitech baseline TEMPLATE (first written for Saint Mariana, 2026-11-28).
   Built per parish by `announce-build.py assets <site>`: #srlk becomes the parish's kit wrapper and the default colours become the parish's.
   Loaded on every page by parish-announce.php when the option pa_refresh_live is 1.
   ART-SAFE BY RULE: a hero with its own artwork (.hero-art), children's headings (.kid-h2), illustrated cards (.kidcard) and any page
   carrying illustrated bands keep their own sizes, widths and fonts. Only neutral alignments reach them: corners on plain cards,
   button corners, the focus ring. A parish also lists its illustrated pages by ID (art_pages in announce-build.py), and the
   width, hero and heading rules skip those pages outright: class names alone proved leaky on the first review. "body" in front of kit selectors: a page's own <style> may come later, so an equal selector loses. */

/* ---- tokens + season layer (same values as announce.css; ratified 2026-11-28) ---- */
body{--sa-teal:#234136;--sa-teal2:#3A6B52;--sa-cream:#EFE8D8;--sa-ink:#0f0f10;--sa-char:#3d3d40;--sa-stone:#e0dcd3;
  --sa-season:#234136;--sa-season-ink:#fff;
  --sa-wash:color-mix(in oklab,var(--sa-season) 7%,#fff);
  --sa-line:color-mix(in oklab,var(--sa-season) 35%,#e0dcd3)}
body.pa-season-ordinary{--sa-season:#3A6B52}
body.pa-season-advent{--sa-season:#56357a}
body.pa-season-gaudete{--sa-season:#c4768e;--sa-season-ink:#2a0f1a}
body.pa-season-christmas{--sa-season:#B8893B;--sa-season-ink:#241803}

/* ---- A. inner kit pages ---- */
body:not(.page-id-14838):not(.page-id-15014):not(.page-id-14808) #srlk:not(:has(.hero-art,.yearband,.kidcard,.calband,.strip-art,.skyband,.kidsrow,.kidbg)) .w{max-width:1080px}
body:not(.page-id-14838):not(.page-id-15014):not(.page-id-14808) #srlk .hero:not(.hero-art){background:linear-gradient(180deg,#fff,var(--sa-wash) 30%,#fff 96%);padding:clamp(38px,5vw,64px) 10px clamp(32px,4.5vw,52px)}
body:not(.page-id-14838):not(.page-id-15014):not(.page-id-14808) #srlk .hero:not(.hero-art) h1{font-size:clamp(34px,4.6vw,52px) !important;line-height:1.02 !important;letter-spacing:-.01em !important;text-wrap:balance;margin-bottom:0}
body:not(.page-id-14838):not(.page-id-15014):not(.page-id-14808) #srlk .hero:not(.hero-art) h1::after{content:"";display:block;width:56px;height:3px;border-radius:2px;background:var(--sa-season);margin:16px auto 14px}
body:not(.page-id-14838):not(.page-id-15014):not(.page-id-14808) #srlk .hero:not(.hero-art) .kick{color:var(--sa-teal2);font-size:12px;letter-spacing:.16em !important;font-weight:700}
body:not(.page-id-14838):not(.page-id-15014):not(.page-id-14808) #srlk .hero:not(.hero-art) .sub{font-family:"EB Garamond",Georgia,serif;font-size:clamp(18px,1.7vw,20px);line-height:1.45;max-width:36em;text-wrap:pretty}
body:not(.page-id-14838):not(.page-id-15014):not(.page-id-14808) #srlk section h2:not(.kid-h2){font-size:clamp(27px,3vw,34px) !important;line-height:1.08;text-wrap:balance}
body #srlk .card:not(.kidcard),body #srlk .scard,body #srlk .callout,body #srlk .formwrap,body #srlk .mapwrap,body #srlk .ydet{border-radius:10px}
body #srlk a.lcard{display:flex;flex-direction:column}
body #srlk a.lcard .card{flex:1;box-sizing:border-box;transition:border-color .15s,transform .15s}
body #srlk a.lcard:hover .card{border-color:var(--sa-line);transform:translateY(-2px)}
body #srlk .btn,body #srlk .wp-block-button__link{border-radius:8px}
body #srlk a:focus-visible{outline:3px solid var(--sa-season);outline-offset:3px;border-radius:4px}
@media (prefers-reduced-motion:reduce){body #srlk a.lcard .card{transition:none}}

/* forms (WPForms): the plugin's default blue button, 60%-wide fields and a centred card are the loudest leftovers */
body #srlk .wpforms-container{--wpforms-button-background-color:#234136;--wpforms-button-border-color:#234136;--wpforms-button-text-color:#fff;--wpforms-button-border-radius:8px;--wpforms-field-border-radius:6px;--wpforms-button-background-color-alt:#1a3128;accent-color:#234136}
body #srlk .wpforms-container button.wpforms-submit{background-color:#234136 !important;border-radius:8px !important;font-family:Inter,"Helvetica Neue",Arial,sans-serif;font-weight:700;text-transform:none;letter-spacing:0}
body #srlk .wpforms-container button.wpforms-submit:hover{background-color:#1a3128 !important}
body #srlk .wpforms-container .wpforms-field-medium,body #srlk .wpforms-container .wpforms-field-row.wpforms-field-medium{max-width:100%}
body #srlk .wpforms-container :is(input,select,textarea):focus{border-color:#234136 !important;box-shadow:0 0 0 1px #234136 !important}

/* ---- B. calendar and event pages (The Events Calendar): parish teal in place of the plugin's blue ---- */
:root,body,.tribe-common,.tribe-events{
  --tec-color-accent-primary:#234136;--tec-color-accent-primary-hover:#1a3128;--tec-color-accent-primary-active:#1a3128;
  --tec-color-accent-primary-background:rgba(35,65,54,.07);
  --tec-color-link-accent:#234136;--tec-color-link-accent-hover:#1a3128;
  --tec-color-background-primary-multiday:rgba(35,65,54,.22);--tec-color-background-primary-multiday-hover:rgba(35,65,54,.32);
  --tec-color-accent-primary-week-event:rgba(35,65,54,.1);--tec-color-accent-primary-week-event-hover:rgba(35,65,54,.2);
  --tec-color-accent-primary-week-event-featured:rgba(35,65,54,.14);--tec-color-accent-primary-week-event-featured-hover:rgba(35,65,54,.24);
  --tec-color-event-icon-hover:#234136;--tec-color-icon-focus:#234136;
  --tec-font-family-sans-serif:Inter,"Helvetica Neue",Arial,sans-serif}
.tribe-events .tribe-events-c-top-bar__datepicker-button,.tribe-events .tribe-events-calendar-list__month-separator-text{font-family:"Cormorant Garamond",Georgia,serif !important;font-weight:700;color:#234136;font-variant-numeric:lining-nums}
.tribe-events .tribe-events-calendar-month__day-date,.tribe-events .tribe-events-calendar-month__day-date-daynum{font-family:"Cormorant Garamond",Georgia,serif;font-weight:700;font-variant-numeric:lining-nums tabular-nums}
.tribe-events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button,.tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button{border-radius:8px}

.single-tribe_events .tribe-events-single-event-title{font-family:"Cormorant Garamond",Georgia,serif !important;font-weight:700;color:#234136;font-size:clamp(32px,4.4vw,52px);line-height:1.04;letter-spacing:-.005em;text-wrap:balance}
.single-tribe_events .tribe-events-single-event-title::before{content:"";display:block;width:56px;height:3px;border-radius:2px;background:var(--sa-season);margin-bottom:16px}
.single-tribe_events .tribe-events-schedule h2,.single-tribe_events .tribe-events-schedule .tribe-events-schedule__datetime{font-family:"EB Garamond",Georgia,serif !important;font-weight:600;font-size:22px;color:#0f0f10}
.single-tribe_events .tribe-events-back a{font-weight:700;color:#234136;font-size:13.5px;text-decoration:none}
.single-tribe_events .tribe-events-single-section-title{font-family:"EB Garamond",Georgia,serif !important;font-weight:600;font-size:18px;color:#234136;letter-spacing:0;text-transform:none}
.single-tribe_events .tribe-events-content{font-size:17px;line-height:1.65;max-width:42em}


.single-tribe_events .tribe-events-sub-nav a,.single-tribe_events .tribe-events-nav-pagination a{color:#234136 !important;font-weight:600}
.tribe-events .tribe-events-l-container{padding-top:36px !important;padding-bottom:48px !important;min-height:0 !important}
.tribe-events .tribe-events-calendar-month__multiday-event-bar-title{color:#0f0f10}
/* ---- this parish ---- */
body #nh .nh-wrap{max-width:1080px}
body #nh .nh-hero{padding:clamp(38px,5vw,64px) 10px clamp(32px,4.5vw,52px)}
body #nh .nh-hero h1{font-size:clamp(36px,5vw,60px) !important;line-height:1 !important;letter-spacing:-.01em;text-wrap:balance;margin-bottom:0}
body #nh .nh-hero h1::after{content:"";display:block;width:56px;height:3px;border-radius:2px;background:var(--sa-season);margin:16px auto 14px}
body #nh .nh-kicker{color:var(--sa-teal2);font-size:12px;letter-spacing:.16em;font-weight:700}
body #nh .nh-sub{font-family:"EB Garamond",Georgia,serif;font-size:clamp(18px,1.7vw,20px);line-height:1.45}
body #nh h2{font-size:clamp(27px,3vw,34px) !important;line-height:1.08}
body #srlk .wpforms-container{--wpforms-button-background-color:#3A6B52;--wpforms-button-border-color:#3A6B52;--wpforms-button-background-color-alt:#2F5D46}
body #srlk .wpforms-container button.wpforms-submit{background-color:#3A6B52 !important}
body #srlk .wpforms-container button.wpforms-submit:hover{background-color:#2F5D46 !important}
/* ---- season accents beyond the hero rule (this parish's green is not tied to its mark, so the season may carry more) ---- */
body{--sa-season:#3A6B52}
body:not(.page-id-14838):not(.page-id-15014):not(.page-id-14808) #srlk .rule,body:not(.page-id-14838):not(.page-id-15014):not(.page-id-14808) #srlk h2.with-rule:not(.kid-h2):after{background:var(--sa-season)}
body:not(.page-id-14838):not(.page-id-15014):not(.page-id-14808) #srlk .hero:not(.hero-art) .kick,body #nh .nh-kicker{color:var(--sa-season)}
body:not(.page-id-14838):not(.page-id-15014):not(.page-id-14808) #srlk .callout{border-left-color:var(--sa-season)}
/* ---- season chrome: in Advent the menu bar, the contact strip and the footer turn deep violet; evergreen stays for buttons and links ---- */
body.pa-season-advent,body.pa-season-gaudete{--sa-chrome:#3B2459;--sa-chrome-2:#56357a}
body.pa-season-advent .main-navigation,body.pa-season-gaudete .main-navigation{background:var(--sa-chrome)}
body.pa-season-advent .main-navigation .main-nav ul li:hover > a,body.pa-season-advent .main-navigation .main-nav ul li.current-menu-item > a,body.pa-season-advent .main-navigation .main-nav ul li.current-menu-ancestor > a,body.pa-season-gaudete .main-navigation .main-nav ul li:hover > a,body.pa-season-gaudete .main-navigation .main-nav ul li.current-menu-item > a,body.pa-season-gaudete .main-navigation .main-nav ul li.current-menu-ancestor > a{background:var(--sa-chrome-2);color:#fff}
body.pa-season-advent .main-navigation .main-nav ul ul li a,body.pa-season-gaudete .main-navigation .main-nav ul ul li a{background:#FFFDF6;color:#1B2E25}
body.pa-season-advent .main-navigation .main-nav ul ul li a:hover,body.pa-season-gaudete .main-navigation .main-nav ul ul li a:hover{background:#FAF6EF;color:var(--sa-chrome-2)}
body.pa-season-advent .site-info,body.pa-season-gaudete .site-info{background-color:var(--sa-chrome) !important}
body.pa-season-advent #srlk .strip:not(.strip-art),body.pa-season-gaudete #srlk .strip:not(.strip-art){background:var(--sa-chrome) !important}
