/* Stoneham Memorial's own look, on top of the shared design (assets/css/site.css). Loaded only on this site (site.json
   "stylesheet"). Colours are the site's theme tokens; the module blocks (events, bulletin, sermons, hero) bring their own. */
@import url(https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Lato:wght@300;400;700;900&display=swap);

:root{--st-sans:Lato,Helvetica,Arial,sans-serif;--sw:1212px;--rmax:1260px;--gold:#C8960C;--gold-soft:#E9C46A;--gold-deep:#A87C08;--gold-ink:#2E2200;--muted:#7C868D;--cream-line:#DED8C6}
body.lay-blocks{--cpad:24px;font:400 16px/1.6 var(--st-sans);color:var(--text)}
.lay-blocks a:hover{color:var(--gold-deep)}
main{padding-top:0}

/* ---------- sections ---------- */
.st-pad{padding-top:76px;padding-bottom:76px}
.st-cream{background:var(--lighter-grey)}
.st-sec .col{margin-bottom:0}
@media (max-width:860px){.st-pad{padding-top:52px;padding-bottom:52px}}

/* headings: Lora, teal, medium weight */
.lay-blocks main .tx h2{font-family:var(--hff);color:var(--dark-blue);font-weight:500;line-height:1.22}
.st-ruled h2{font-size:34px}
.st-ruled::before,.st-hero .st-h1::before,.st-banner .st-h1::before,.st-mid::before{content:"";display:block;width:58px;height:3px;margin-bottom:16px;background:var(--gold)}
.lay-blocks .t.st-ruled{margin-bottom:14px}
.lay-blocks .t.st-mid{display:flex;flex-direction:column;align-items:center;text-align:center;margin-bottom:38px}
.st-mid::before{margin-bottom:14px}
.st-mid h2{font-size:36px}
.sechead{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;border-bottom:2px solid var(--dark-blue);padding-bottom:11px;margin-bottom:26px}
.lay-blocks main .tx .sechead h2{font-size:27px;margin:0}
.more{--link:var(--gold-deep);font-size:12px;font-weight:700;letter-spacing:.1em;color:var(--gold-deep);text-transform:uppercase}
.lede{font-size:17px;font-weight:300;line-height:1.75;color:#5D686F}

/* buttons: gold, tracked capitals (the colours come from each button) */
body.lay-blocks{--btfw:700;--btp:14px 32px;--btlh:1.2;--btf:var(--st-sans)}
.lay-blocks a.cta_button{letter-spacing:.14em;transition:background .2s,transform .2s,box-shadow .2s}
.lay-blocks a.cta_button:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(13,58,73,.16)}
.st-aside .tx:has(.cta_button){margin-bottom:30px}

/* ---------- header ---------- */
.st-topbar{background:var(--darker-blue)}
.st-topbar .tx p{margin:0;min-height:40px;display:flex;align-items:center}
.topbar__contact{font-size:13px;font-weight:300;color:#BDD5DE}
.lay-blocks .topbar__contact a{color:#BDD5DE}
.dot{opacity:.5;margin:0 .4em}
.st-social{display:flex;gap:10px;align-items:center;margin:0}
.st-social--bar{justify-content:flex-end}
.lay-blocks .st-social--bar a{color:#8EB2BF}
.lay-blocks .st-social--bar a:hover{color:var(--gold-soft)}
.st-ic{display:block;width:17px;height:17px;background:currentColor;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
.st-ic-facebook{--ic:url(/uploads/icons/facebook.svg)}.st-ic-instagram{--ic:url(/uploads/icons/instagram.svg)}.st-ic-youtube{--ic:url(/uploads/icons/youtube.svg)}
.st-ic-tiktok{--ic:url(/uploads/icons/tiktok.svg)}.st-ic-calendar{--ic:url(/uploads/icons/calendar.svg)}.st-ic-sun{--ic:url(/uploads/icons/sun.svg)}
.st-ic-pin{--ic:url(/uploads/icons/pin.svg)}.st-ic-people{--ic:url(/uploads/icons/people.svg)}
.st-mast{background:var(--dark-blue);min-height:74px}
.st-mast .im{margin:0}
.st-mast .im img{display:block;height:54px;width:auto;object-fit:contain}
.st-mast .mn{--mc:#E6EFF2;--mhc:var(--gold-soft);--mfs:15px;--mh:74px;--mpx:12px;--mhl:2px;--mhlc:var(--gold);--mhlo:6px;
  --mbbg:var(--gold);--mbc:var(--gold-ink);--mbhbg:#B5870B;--mbr:4px;--mbpy:15px;--mbpx:26px;--mbfs:14px;--mbfw:700;
  --mdbg:var(--dark-blue);--mmbg:var(--dark-blue);--mmc:#E6EFF2;--mmbc:rgba(255,255,255,.12);--mbtc:#E6EFF2;font-family:var(--st-sans)}
.st-mast .mn-l>li.cur>a{font-weight:700}
.st-mast .mn-l>li.hl>a span{letter-spacing:.14em}
@media (max-width:860px){.st-mast .im img{height:34px}.st-topbar .tx p{justify-content:center;text-align:center;min-height:0;padding:4px 0}.st-topbar .st-social--bar{display:none}}

/* ---------- page heroes ---------- */
.lay-blocks .st-hero{background-image:linear-gradient(180deg,rgba(10,44,56,.55),rgba(11,52,66,.82)),var(--bgi);background-color:var(--darker-blue)}
.st-hero .r{padding:52px 0 46px}
.st-hero .tx,.st-hero .t{text-shadow:0 1px 14px rgba(6,28,36,.5)}
.st-eyebrow p{margin:0 0 14px;font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-soft)}
.lay-blocks .t.st-h1{margin:0}
.lay-blocks .t.st-h1>h1{font-size:44px;line-height:1.12;color:#fff}
.st-intro p{margin:16px 0 0;max-width:56ch;font-size:18px;font-weight:300;line-height:1.65;color:rgba(255,255,255,.93)}
.st-banner{background:var(--lighter-grey);padding-top:52px;padding-bottom:46px}
.lay-blocks .st-banner .t.st-h1>h1{color:var(--dark-blue)}
.st-banner .st-intro p{color:#5D686F;max-width:620px}
@media (max-width:700px){.st-hero .r{padding:38px 0 34px}.lay-blocks .t.st-h1>h1{font-size:32px}.st-intro p{font-size:16px}}

.st-facts{background:var(--lighter-grey);border-bottom:1px solid var(--light-grey);padding-top:26px;padding-bottom:26px}
.pfact{display:flex;gap:13px;align-items:flex-start;margin:0;font-size:15px;line-height:1.55;color:var(--heading)}
.pfact .st-ic{flex:none;width:22px;height:22px;color:var(--gold-deep)}
.pfact b{display:block;font-size:11px;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);margin-bottom:3px}
.pfact small{color:var(--muted);font-size:13px}

/* ---------- text ---------- */
.prose{max-width:760px}
.col[style*="--w:100%"] .tx.prose{margin-inline:auto}      /* a page-wide text column sits in the middle, as the old .wrap.prose did */
.lay-blocks main .t{--c:var(--dark-blue)}      /* block headings teal; inline --c (white on heroes) still wins */
.lay-blocks main .prose h2{font-size:28px;margin:40px 0 12px}
.lay-blocks main .prose h2:first-child{margin-top:0}
.lay-blocks main .prose h3{font-family:var(--st-sans);font-size:18px;font-weight:700;line-height:1.3;color:var(--heading);margin:26px 0 8px}
.prose :is(p,li){font-size:17px;font-weight:300;line-height:1.8;color:#4F5A62}
.prose ul:not(.ages):not(.levels){padding-left:22px;list-style:disc}
.prose a{text-decoration:underline}
.factlist{display:flex;flex-direction:column;margin:0}
.factlist div{display:flex;gap:16px;padding:14px 0;border-bottom:1px solid var(--light-grey)}
.factlist dt{flex:none;width:150px;font-weight:700;font-size:14px;color:var(--dark-blue)}
.factlist dd{margin:0;font-size:15px;font-weight:300;color:#5D686F}
@media (max-width:860px){.factlist div{flex-direction:column;gap:4px}.factlist dt{width:auto}}

.pastor{max-width:760px;margin:0 auto;padding:0 0 0 26px;border-left:3px solid var(--gold)}
.pastor p{margin:0;font:italic 400 21px/1.65 var(--hff);color:var(--heading)}
.pastor__by,.scripture cite{display:block;margin-top:16px;font:normal 700 12px/1.4 var(--st-sans);letter-spacing:.14em;text-transform:uppercase;color:var(--gold-deep)}
.scripture{margin:0 0 28px;padding:4px 0 4px 22px;border-left:3px solid var(--gold)}
.scripture p{margin:0;font:italic 400 23px/1.5 var(--hff);color:var(--heading)}
.scripture cite{margin-top:8px}
.lay-blocks main .tx :is(.levels,.ages,.agegrid){margin:0 0 1em;padding:0;list-style:none}
.levels li{padding:14px 0;border-bottom:1px solid var(--light-grey)}
.levels__name{display:block;font:18px/1.4 var(--hff);color:var(--heading)}
.levels__name em{font-style:normal;font-size:13px;color:var(--muted)}
.levels__what{display:block;font-size:15px;font-weight:300;line-height:1.7;color:#4F5A62}
.prose .ages li,.ages li{display:flex;justify-content:space-between;gap:18px;padding:9px 0;border-bottom:1px dotted var(--cream-line);margin:0}
.ages__name{font-weight:700;color:var(--heading);font-size:15px}
.ages__who{color:var(--muted);font-size:15px;text-align:right}
.st-motto{background:var(--dark-blue);color:#fff;text-align:center;padding-top:56px;padding-bottom:56px}
.motto__label{margin:0 0 16px;font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-soft)}
.motto__quote{margin:0;font:500 30px/1.4 var(--hff);color:#fff}
@media (max-width:700px){.motto__quote{font-size:23px}.pastor p{font-size:18px}}

/* cards: white with a hairline; tiles: photo, teal caption bar, words */
.st-card>.cw{background:#fff;border:1px solid var(--light-grey);padding:28px;gap:12px}
.lay-blocks .st-card .t>h3{font-size:21px}
.st-card p,.st-tile-body p{font-size:15px;font-weight:300;line-height:1.7;color:#5D686F}
.st-tiles .r{align-items:stretch}
.st-tile>.cw{background:#fff;overflow:hidden;height:100%;display:flex;flex-direction:column}
.st-tile .im{margin:0;overflow:hidden}
.st-tile .im img{height:215px;width:100%;object-fit:cover;transition:transform .6s cubic-bezier(.2,.6,.25,1)}
.st-tile:hover .im img{transform:scale(1.06)}
.lay-blocks .t.st-tile-bar{margin:0;background:var(--dark-blue);padding:15px 22px}
.lay-blocks .t.st-tile-bar>h3{font:700 17px/1.3 var(--st-sans);letter-spacing:.04em;color:#fff}
.st-tile-body{padding:22px;display:flex;flex-direction:column;flex:1}
.st-tile-body p:last-child{margin-top:auto}

/* Sabbath School age bands */
.agegrid__label{margin:0 0 14px;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.lay-blocks main .tx .agegrid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0}
.lay-blocks .agegrid li.ageband{position:relative;overflow:hidden;background:#fff;border:1px solid var(--light-grey);border-radius:3px;padding:19px 20px 17px 23px;margin:0;transition:transform .25s,box-shadow .25s}
.ageband::marker{content:""}
.ageband:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(13,58,73,.10)}
.ageband::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--gold)}
.ageband__ages{display:block;margin-bottom:5px;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-deep)}
.ageband__name{display:block;font:20px/1.25 var(--hff);color:var(--dark-blue)}
@media (max-width:1040px){.lay-blocks main .tx .agegrid{grid-template-columns:repeat(2,1fr)}}

/* ministries */
.cbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:30px}
.cbar__label{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-right:6px}
.chip{--link:var(--dark-blue);display:inline-flex;align-items:center;padding:7px 14px;border:1px solid var(--cream-line);border-radius:100px;background:#fff;font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;transition:border-color .18s}
.chip:hover{border-color:var(--dark-blue)}
.cbar--jump{padding-bottom:26px;border-bottom:1px solid var(--cream-line);margin-bottom:42px}
.st-mgrid .r{row-gap:30px}
.mcard>.cw{background:#fff;border:1px solid var(--light-grey);border-radius:3px;overflow:hidden;transition:transform .3s,box-shadow .3s}
.mcard:hover>.cw{transform:translateY(-4px);box-shadow:0 14px 30px rgba(13,58,73,.13)}
.mcard{scroll-margin-top:20px}
.mcard .im{margin:0;overflow:hidden}
.mcard .im img{transition:transform .6s cubic-bezier(.2,.6,.25,1)}
.mcard:hover .im img{transform:scale(1.07)}
.mcard .cw>:not(.im){margin-inline:24px}
.lay-blocks .t.mcard__title{margin:22px 24px 5px}
.lay-blocks .t.mcard__title>h2{font-size:21px}
.mcard__when{margin:0 0 13px;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-deep)}
.mcard__lede,.mcard .acc p{font-size:15px;font-weight:300;line-height:1.7;color:#4F5A62}
.mcard__detail strong{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--heading)}
.mcard__foot{margin-top:auto;padding:16px 0 24px}
.mcard__contact{margin:0;padding-left:13px;border-left:3px solid var(--gold);font-size:14px;line-height:1.6;color:var(--heading)}
.mcard__contact a{text-decoration:underline}

/* ---------- forms ---------- */
.lay-blocks .frm :is(input[type=text],input[type=email],input[type=tel],input[type=number],textarea,select){border:1px solid #D8D2C2;border-radius:3px;padding:13px 16px;font:15px var(--st-sans);color:var(--heading);background:#fff}
.lay-blocks .frm label{font-size:13px;font-weight:700;color:var(--dark-blue)}
.lay-blocks .frm-submit button{width:100%;padding:14px 32px;border:0;border-radius:4px;background:var(--dark-blue);color:#fff;font:700 14px var(--st-sans);letter-spacing:.14em;cursor:pointer}
.lay-blocks .frm-submit button:hover{background:var(--darker-blue)}

/* ---------- footer ---------- */
.st-foot{background:var(--darker-blue);color:#A8C4CE;padding-top:64px}
.st-foot .im img{height:56px;width:auto}
.foot__addr{margin:18px 0;font-size:15px;font-weight:300;line-height:1.85;color:#A8C4CE}
.foot__addr{--link:#A8C4CE}
.st-social--foot a{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--gold);color:var(--gold-ink)}
.lay-blocks .st-social--foot a{color:var(--gold-ink)}
.st-social--foot a:hover{background:var(--gold-soft)}
.st-social--foot .st-ic{width:16px;height:16px}
.lay-blocks .foot__col h3{margin:0 0 14px;font:700 11px/1.3 var(--st-sans);letter-spacing:.18em;color:var(--gold)}
.lay-blocks .foot__col .tx ul{list-style:none;margin:0;padding:0}
.lay-blocks .foot__col li{margin:0 0 12px;padding:0}
.foot__col li::marker{content:""}
.foot__col{--link:#D6E4E9}
.foot__col a{font-size:14px;font-weight:300}
.lay-blocks .st-foot a:hover{color:var(--gold-soft)}
.st-legal{padding-top:0;padding-bottom:34px}
.st-legal .r{margin-top:46px;padding-top:24px;border-top:1px solid #235165}
.st-legal p{margin:0;font-size:13px;font-weight:300;color:#6E97A6}
.st-hero .col,.st-banner .col{margin-bottom:0}
.st-facts{padding-top:26px;padding-bottom:26px;border-bottom:1px solid var(--cream-line)}
