/* San Martino 0.5.0 — Home with distinct bands, compact rhythms and a useful footer.
   Loaded after custom.css, scoped to the new layout. */
.sm-home-refresh{--sm-sage:#e5e8de;--sm-blush:#f0e5d9}
.sm-home-refresh .sm-home-section{padding-top:44px;padding-bottom:44px}
.sm-home-refresh .sm-home-hero{padding-top:36px;padding-bottom:36px;gap:50px;grid-template-columns:1.08fr .92fr}
.sm-home-refresh .sm-home-hero h1{font-size:clamp(38px,4.6vw,64px);letter-spacing:-1.4px;margin:16px 0 20px;max-width:15ch}
.sm-home-refresh .sm-home-hero img{height:410px;border-radius:190px 190px 0 0}
.sm-home-refresh .sm-home-location{font-size:12px;letter-spacing:.5px;color:var(--muted);margin:9px 0 0}
.sm-home-refresh .sm-home-hero .lead{font-size:16px;line-height:1.55;margin:0;max-width:44ch;color:var(--ink)}
.sm-home-refresh .sm-home-hero .buttons{margin-top:22px}
.sm-home-refresh .sm-home-section h2{font-size:clamp(29px,3vw,40px);margin:8px 0 18px}
.sm-home-refresh .sm-home-section p{font-size:15px;line-height:1.5}
.sm-home-refresh .sm-home-quick-band{background:var(--sm-sage);border-block:1px solid var(--line)}
.sm-home-refresh .sm-home-quick{margin-block:0;border:0;grid-template-columns:repeat(3,minmax(0,1fr))}
.sm-home-refresh .sm-home-quick a{padding:18px 20px;font-size:14px;font-weight:600;gap:12px;align-items:center}
.sm-home-refresh .sm-home-quick a:hover{background:#d9dfd1}
.sm-home-refresh .sm-home-event-band{background:var(--sm-blush)}
.sm-home-refresh .sm-home-event-layout{display:grid;grid-template-columns:.7fr 1.3fr;gap:36px;align-items:center}
.sm-home-refresh .sm-home-event-layout>.sm-event-feature{padding:18px;background:var(--white);border:1px solid #ddc8b5;border-left:3px solid var(--clay);border-radius:6px;min-width:0}
body.is-home.sm-home-refresh .sm-home-event-feature .sm-event-card{display:grid!important;grid-template-columns:145px minmax(0,1fr);gap:9px 20px;padding:0!important;align-content:start;align-items:start}
body.is-home.sm-home-refresh .sm-home-event-feature .sm-event-card>img{grid-column:1;grid-row:1 / span 6;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;margin:0!important;border-radius:3px}
body.is-home.sm-home-refresh .sm-home-event-feature .sm-event-card>:not(img){grid-column:2;margin:0!important;min-width:0}
body.is-home.sm-home-refresh .sm-home-event-feature .sm-event-card>.eyebrow{display:none}
body.is-home.sm-home-refresh .sm-home-event-feature .sm-event-card>h3{font-size:26px;line-height:1.16}
body.is-home.sm-home-refresh .sm-home-event-feature .sm-event-card>p{font-size:14px;line-height:1.45}
.sm-home-refresh .sm-home-event-layout .buttons{margin-top:18px;gap:10px}
.sm-home-refresh .sm-home-event-layout .button{padding:9px 13px;font-size:12px}
.sm-home-refresh .sm-home-event-layout .button.primary:hover{background:#1b3028;color:#fff}
.sm-home-refresh .sm-home-cards{gap:22px;margin-top:24px}
.sm-home-refresh .sm-home-card{padding:0;border:1px solid var(--line);border-radius:7px;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.sm-home-refresh .sm-home-card-image{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;background:#f7f0e2}
.sm-home-refresh .sm-home-card-body{padding:20px;display:flex;flex-direction:column;align-items:start;flex:1}
.sm-home-refresh .sm-home-card .tag{font-size:10px;border:0;padding:0;color:var(--clay)}
.sm-home-refresh .sm-home-card h3{font-size:26px;margin:10px 0 12px}
.sm-home-refresh .sm-home-card p{font-size:14px;line-height:1.5;margin:0 0 18px;color:var(--muted)}
.sm-home-refresh .sm-home-card .button{margin-top:auto;padding:9px 13px}
.sm-home-refresh .sm-home-schedule-band{background:var(--ink);color:var(--paper)}
.sm-home-refresh .sm-home-schedule{margin:0;padding:0;gap:44px;align-items:center;background:transparent;grid-template-columns:.9fr 1.1fr}
.sm-home-refresh .sm-home-schedule h2{margin-bottom:12px}
.sm-home-refresh .sm-home-schedule p{font-size:14px}
.sm-home-refresh .sm-home-schedule table{font-size:14px}
.sm-home-refresh .sm-home-schedule th,.sm-home-refresh .sm-home-schedule td{padding:11px 0}
.sm-home-refresh .sm-home-schedule caption{text-align:left;font-size:13px;margin-bottom:6px}
.sm-home-refresh .sm-home-schedule .fine{font-size:12px;line-height:1.45}
.sm-home-refresh .sm-home-schedule .button{border-color:var(--paper);color:var(--paper);padding:9px 14px}
.sm-home-refresh .sm-home-schedule .button:hover{background:var(--paper);color:var(--ink)}
.sm-home-refresh .sm-home-story-band{background:var(--sm-sage)}
.sm-home-refresh .sm-home-story{display:grid;grid-template-columns:.85fr 1.15fr;gap:40px;align-items:center}
.sm-home-refresh .sm-home-story figure{margin:0}
.sm-home-refresh .sm-home-story img{width:100%;height:260px;object-fit:cover;object-position:center 35%;border-radius:6px}
.sm-home-refresh .sm-home-story h2{color:var(--clay)}
.sm-home-refresh .sm-home-story .buttons{margin-top:20px}
/* Footer, shared by home and inner pages. */
.sm-footer-refresh{background:var(--ink);color:var(--paper);padding:38px 0 0;font-size:14px;border-top:1px solid #718176}
.sm-footer-refresh .sm-footer-grid{display:grid;grid-template-columns:1.15fr .85fr 1fr;gap:38px;padding-bottom:28px}
.sm-footer-refresh .eyebrow{color:#edbea6;font-size:10px;letter-spacing:1.7px}
.sm-footer-refresh h2{font-size:28px;margin:10px 0 15px;color:var(--paper)}
.sm-footer-refresh h3{font-size:23px;margin:0 0 15px;color:var(--paper)}
.sm-footer-refresh .sm-footer-support h3{margin-top:10px}
.sm-footer-refresh p{margin:6px 0;font-size:13px;line-height:1.5;color:var(--paper)}
.sm-footer-refresh a{color:var(--paper);overflow-wrap:anywhere;text-decoration-thickness:1px;text-underline-offset:3px}
.sm-footer-refresh a:hover{color:#f4c5ab}
.sm-footer-refresh ul{display:block;list-style:none;margin:0;padding:0}
.sm-footer-refresh li{margin:0 0 7px;padding:0}
.sm-footer-refresh li>a{font-size:13px;text-decoration:none}
.sm-footer-refresh li>a:hover{text-decoration:underline}
.sm-footer-refresh .button{display:inline-block;margin-top:14px;border:1px solid #d8e0d4;background:transparent;color:var(--paper);padding:10px 14px;font-size:13px}
.sm-footer-refresh .button:hover{background:var(--paper);color:var(--ink);border-color:var(--paper)}
.sm-footer-refresh .sm-footer-bottom{border-top:1px solid #718176;padding-block:17px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:11px}
.sm-footer-refresh .footer-links{display:flex;flex-wrap:wrap;gap:14px}
.sm-footer-refresh .sm-footer-modules{padding-bottom:20px}
@media(max-width:1000px){
 .sm-home-refresh .sm-home-hero{gap:28px}.sm-home-refresh .sm-home-hero img{height:360px}
 .sm-home-refresh .sm-home-event-layout{grid-template-columns:1fr;gap:20px}
 .sm-home-refresh .sm-home-event-layout>div:first-child{display:block}
 .sm-home-refresh .sm-home-cards{gap:14px}.sm-home-refresh .sm-home-card-body{padding:16px}
 .sm-footer-refresh .sm-footer-grid{gap:25px;grid-template-columns:1fr 1fr}.sm-footer-refresh .sm-footer-support{grid-column:1/-1;max-width:60ch}
}
@media(max-width:620px){
 .sm-home-refresh .sm-home-section{padding-block:30px}
 .sm-home-refresh .sm-home-hero{grid-template-columns:1fr;padding-block:28px;gap:24px}
 .sm-home-refresh .sm-home-hero h1{font-size:40px;max-width:none;letter-spacing:-1px}
 .sm-home-refresh .sm-home-hero img{height:300px;border-radius:160px 160px 0 0}
 .sm-home-refresh .sm-home-quick{grid-template-columns:1fr}
 .sm-home-refresh .sm-home-quick a{padding:14px 8px;border:0;border-bottom:1px solid #cad1c3}
 .sm-home-refresh .sm-home-quick a:last-child{border:0}
 .sm-home-refresh .sm-home-cards{grid-template-columns:1fr;gap:20px}
 .sm-home-refresh .sm-home-card-image{max-height:240px}
 body.is-home.sm-home-refresh .sm-home-event-feature .sm-event-card{grid-template-columns:105px minmax(0,1fr);gap:8px 14px}
 body.is-home.sm-home-refresh .sm-home-event-feature .sm-event-card>img{grid-column:1;grid-row:1 / span 6;max-width:none!important;justify-self:stretch}
 body.is-home.sm-home-refresh .sm-home-event-feature .sm-event-card>:not(img){grid-column:2}
 body.is-home.sm-home-refresh .sm-home-event-feature .sm-event-card>h3{font-size:23px}
 .sm-home-refresh .sm-home-event-layout>.sm-event-feature{padding:14px}
 .sm-home-refresh .sm-home-schedule{grid-template-columns:1fr;gap:20px}
 .sm-home-refresh .sm-home-story{grid-template-columns:1fr;gap:24px}
 .sm-home-refresh .sm-home-story img{height:230px}
 .sm-footer-refresh{padding-top:30px}.sm-footer-refresh .sm-footer-grid{grid-template-columns:1fr;gap:28px}.sm-footer-refresh .sm-footer-support{grid-column:auto}
}
@media(max-width:380px){
 body.is-home.sm-home-refresh .sm-home-event-feature .sm-event-card{grid-template-columns:1fr}
 body.is-home.sm-home-refresh .sm-home-event-feature .sm-event-card>img{grid-column:1;grid-row:auto;max-width:125px!important;justify-self:center}
 body.is-home.sm-home-refresh .sm-home-event-feature .sm-event-card>:not(img){grid-column:1}
}

/* Text-only event cards retain their full width. */
body.is-home.sm-home-refresh .sm-home-event-feature .sm-event-card:not(:has(>img)){grid-template-columns:minmax(0,1fr)}
body.is-home.sm-home-refresh .sm-home-event-feature .sm-event-card:not(:has(>img))>:not(img){grid-column:1}

/* 0.5.1 — One purpose per section. */
.sm-home-refresh .sm-home-support-band{background:var(--sm-sage);border-top:1px solid var(--line)}
.sm-home-refresh .sm-home-support-layout{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:32px}
.sm-home-refresh .sm-home-support-layout p{max-width:65ch;margin-bottom:0}
.sm-footer-refresh .sm-footer-grid{grid-template-columns:1.1fr 1fr}
.sm-footer-refresh .sm-footer-navigation ul{columns:2;column-gap:24px}
.sm-footer-refresh .sm-footer-navigation li{break-inside:avoid}
@media(max-width:620px){.sm-home-refresh .sm-home-support-layout{grid-template-columns:1fr;gap:18px}.sm-footer-refresh .sm-footer-grid{grid-template-columns:1fr}.sm-footer-refresh .sm-footer-navigation ul{columns:1}}

/* 0.5.2 — Compact menus and local social icons. */
#main-menu .sm-mega{padding:18px 24px}
#main-menu .sm-mega-caption{padding-bottom:12px;margin-bottom:10px;font-size:23px}
#main-menu .sm-mega>ul{align-content:start!important;align-items:start!important;grid-auto-rows:max-content;row-gap:8px!important}
#main-menu .sm-mega.sm-mega-columns-3:not(.sm-mega-events)>ul{grid-template-columns:repeat(3,minmax(0,1fr))!important}
#main-menu .sm-mega>ul>li>a,#main-menu .sm-mega>ul>li>span{padding-block:5px}
#main-menu .sm-mega-events{grid-template-columns:minmax(170px,.48fr) minmax(0,1fr);gap:12px 24px;align-items:start}
#main-menu .sm-mega-events>ul{grid-template-columns:1fr!important;align-content:start!important;gap:4px!important}
#main-menu .sm-mega-events .sm-event-feature{padding:14px}
#main-menu .sm-mega-events .sm-event-feature .sm-event-card{display:grid!important;grid-template-columns:135px minmax(0,1fr);gap:6px 16px;align-content:start;padding:0!important}
#main-menu .sm-mega-events .sm-event-feature .sm-event-card>img{grid-column:1;grid-row:1 / span 6;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;margin:0!important}
#main-menu .sm-mega-events .sm-event-feature .sm-event-card>:not(img){grid-column:2;margin:0!important;min-width:0}
#main-menu .sm-mega-events .sm-event-feature h3{font-size:25px;line-height:1.15}
#main-menu .sm-mega-events .sm-event-feature p{font-size:13px;line-height:1.4}
#main-menu .sm-mega-events .sm-event-feature .eyebrow{font-size:9px;letter-spacing:1.5px}
#main-menu .sm-mega-events .sm-event-feature .button{padding:9px 12px}
.sm-social-links{display:flex;align-items:center;gap:9px}
.sm-social-links .sm-social-link{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:3px;border-radius:50%;text-decoration:none;flex:0 0 auto}
.sm-social-links .sm-social-link img{width:32px;height:32px;display:block;max-height:none;object-fit:contain}
.sm-social-links .sm-social-link:hover{background:#ffffff24}
.sm-social-links .sm-social-link:focus-visible{outline:2px solid #edbea6;outline-offset:2px}
.top .wrap{align-items:center;flex-wrap:wrap}
.top .sm-social-links{margin-left:6px}
.top .sm-social-link{width:32px;height:32px;padding:2px}
.top .sm-social-link img{width:28px;height:28px}
.sm-footer-refresh .sm-social-links{margin-top:12px}
.sm-footer-refresh .sm-footer-main-links{columns:2;column-gap:25px}
.sm-footer-refresh .sm-footer-main-links>li{break-inside:avoid;margin-bottom:10px}
.sm-footer-refresh .sm-footer-life>span{font-size:13px;font-weight:600}
.sm-footer-refresh .sm-footer-life>ul{columns:1;margin-top:5px;padding-left:12px;border-left:1px solid #718176}
.sm-footer-refresh .sm-footer-life>ul>li{margin-bottom:5px}
@media(max-width:850px){
 #main-menu .sm-mega.sm-mega-columns-3:not(.sm-mega-events)>ul{grid-template-columns:1fr!important}
 #main-menu .sm-mega-events{display:block}
}
@media(max-width:620px){
 #main-menu .sm-mega-events .sm-event-feature .sm-event-card{grid-template-columns:100px minmax(0,1fr);gap:7px 12px}
 #main-menu .sm-mega-events .sm-event-feature h3{font-size:23px}
 .sm-footer-refresh .sm-footer-main-links{columns:1}
}
@media(max-width:380px){
 #main-menu .sm-mega-events .sm-event-feature .sm-event-card{grid-template-columns:1fr}
 #main-menu .sm-mega-events .sm-event-feature .sm-event-card>img{grid-column:1;grid-row:auto;max-width:125px!important;justify-self:center}
 #main-menu .sm-mega-events .sm-event-feature .sm-event-card>:not(img){grid-column:1}
}

/* 0.5.3 — Make navigable ancestors visibly identifiable. */
body.is-inner .content .mod-breadcrumbs a.pathway{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
body.is-inner .content .mod-breadcrumbs a.pathway:hover{color:var(--clay)}
body.is-inner .content .mod-breadcrumbs [aria-current="page"]{text-decoration:none}
