.churches-page{--atlas-ink:var(--text,#303c36);--atlas-muted:var(--muted,#646b61);--atlas-paper:var(--bg,#f6f2e9);--atlas-gold:var(--gold-bright,#8c6935);--atlas-line:var(--border,#d8d3c6);margin:0;background:var(--atlas-paper);color:var(--atlas-ink)}
.churches-page *{box-sizing:border-box}
.atlas-skip{position:absolute;top:-100px;left:1rem;z-index:10000;background:var(--panel,#fffdf8);padding:1rem}
.atlas-skip:focus{top:1rem}
#churches-main{max-width:1560px;margin:auto;padding:3.8rem 3rem 2rem}
.atlas-hero{display:grid;grid-template-columns:1.1fr 1fr;gap:4rem;align-items:end;margin-bottom:2.8rem}
.atlas-eyebrow{font:600 .7rem/1.6 system-ui,sans-serif;letter-spacing:.19em;color:var(--atlas-gold);margin:0 0 1rem}
.atlas-hero h1{font:400 clamp(2.6rem,5.4vw,5.6rem)/1.06 Georgia,serif;letter-spacing:-.045em;margin:0}
.atlas-hero h1 em{font-weight:400;color:var(--atlas-gold)}
.atlas-intro{max-width:34rem;padding-bottom:.4rem}
.atlas-intro>p:first-child{font:1.3rem/1.6 Georgia,serif}
.atlas-caveat,.atlas-intro a{font:.86rem/1.7 system-ui,sans-serif}
.atlas-caveat{color:var(--atlas-muted)}
#churches-main a,.churches-page footer a{color:var(--atlas-gold);text-underline-offset:3px}
.atlas-text-link{display:inline-block;margin-top:.4rem}
.atlas-tools{display:grid;grid-template-columns:1.2fr 1fr;gap:1rem 2rem;border-top:1px solid var(--atlas-line);padding:1.8rem 0 1.3rem}
.atlas-tools label,.atlas-filterbar label>span{display:block;font:600 .76rem/1.6 system-ui,sans-serif;margin-bottom:.4rem;overflow-wrap:anywhere}
.atlas-input-row{display:flex;gap:.5rem}
.churches-page :where(#churches-main) input,.churches-page :where(#churches-main) select{min-width:0;width:100%;min-height:44px;background:var(--panel,#fffdf8);color:var(--atlas-ink);border:1px solid var(--atlas-line);border-radius:3px;padding:.72rem .8rem;font:inherit}
.churches-page :where(#churches-main) button{cursor:pointer;border:1px solid var(--atlas-gold);border-radius:3px;min-height:44px;max-width:100%;overflow-wrap:anywhere;padding:.72rem 1rem;font:600 .8rem/1.4 system-ui,sans-serif;background:#73552b;color:#fffdf6}
.churches-page :where(#churches-main) button:disabled{cursor:not-allowed;opacity:.55}
#churches-main :is(button,a,input,select):focus-visible{outline:3px solid var(--atlas-gold);outline-offset:3px}
.atlas-input-row button{white-space:nowrap}
.atlas-locate{align-self:end;display:flex;flex-wrap:wrap;gap:.5rem}
.atlas-locate small{flex-basis:100%;display:block;font:.73rem/1.6 system-ui,sans-serif;color:var(--atlas-muted)}
.atlas-locate #clear-location,.churches-page .atlas-quiet{background:transparent;color:var(--atlas-gold)}
#location-status{grid-column:1/-1;margin:0;font:.82rem/1.5 system-ui,sans-serif}
.place-results{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:.5rem}
.place-results:empty{display:none}
.place-results p{flex-basis:100%;font:.82rem/1.6 system-ui,sans-serif;margin:0}
.place-results button{background:transparent;color:var(--atlas-ink);border-color:var(--atlas-line)}
.atlas-filterbar{display:grid;grid-template-columns:1.3fr 1fr .65fr 1fr auto;align-items:end;gap:1rem;padding:0 0 1.4rem}
.atlas-filterbar label{min-width:0}
.atlas-filterbar .atlas-check{display:flex;align-items:center;gap:.5rem;min-height:44px;margin:0}
.atlas-filterbar .atlas-check input{width:1.1rem;height:1.1rem;min-height:0;flex-shrink:0;margin:0}
.atlas-filterbar .atlas-check span{margin:0;font-weight:400}
.atlas-workspace{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(290px,1fr);gap:0;border:1px solid var(--atlas-line);background:var(--panel,#fffdf8)}
.atlas-map-column{min-width:0}
.atlas-map-frame{position:relative}
#church-map{height:610px;width:100%;background:#e1e6df;isolation:isolate;z-index:0}
.atlas-map-caption{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;padding:.85rem 1rem;border-bottom:1px solid var(--atlas-line);font:.8rem/1.5 system-ui,sans-serif}
.atlas-map-caption button{font-size:.8rem;background:#73552b;color:#fffdf6}
.atlas-attribution{font:.75rem/1.7 system-ui,sans-serif;padding:.5rem 1rem;color:var(--atlas-muted);overflow-wrap:anywhere}
#map-message{padding:0 1rem;font:.78rem/1.6 system-ui,sans-serif}
#map-message:empty{display:none}
.atlas-results{border-left:1px solid var(--atlas-line);min-width:0;max-height:730px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.atlas-results-head{padding:1.5rem 1.5rem 1rem;border-bottom:1px solid var(--atlas-line)}
.atlas-results h2{font:400 1.8rem/1.2 Georgia,serif;margin:.3rem 0}
.atlas-results-head .atlas-eyebrow{margin:0}
#results-status{font:.8rem/1.6 system-ui,sans-serif}
#snapshot-date{font:.75rem/1.5 system-ui,sans-serif;color:var(--atlas-muted)}
.church-card{padding:1.2rem 1.5rem;border-bottom:1px solid var(--atlas-line);min-width:0}
.church-card h3{font:400 1.18rem/1.4 Georgia,serif;margin:0 0 .35rem;overflow-wrap:anywhere}
.church-card p{font:.8rem/1.65 system-ui,sans-serif;margin:.35rem 0;overflow-wrap:anywhere}
.church-card .church-tag{display:inline-block;max-width:100%;overflow-wrap:anywhere;font:.75rem/1.5 system-ui,sans-serif;color:var(--atlas-gold);border:1px solid var(--atlas-line);padding:.18rem .35rem}
.church-card .church-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem .8rem;margin-top:.7rem}
.church-actions a,.church-actions button{font:.8rem/1.5 system-ui,sans-serif}
.church-actions a{display:inline-flex;align-items:center;min-height:44px}
.church-actions button{background:transparent;color:var(--atlas-gold);padding:.3rem .55rem}
.church-card .church-warning{color:var(--atlas-muted);font-size:.75rem}
.atlas-results>button{margin:1rem 1.5rem}
.atlas-consent{padding:1rem;background:var(--panel-2,#f0eadc);font:.85rem/1.7 system-ui,sans-serif}
.atlas-consent button{margin:.3rem .4rem .3rem 0;max-width:100%}
.atlas-notes{display:grid;grid-template-columns:1fr 1.4fr;gap:5rem;padding:3rem 0;border-bottom:1px solid var(--atlas-line);margin-top:1rem}
.atlas-notes h2{font:400 2.4rem/1.2 Georgia,serif;margin:.5rem 0 1rem}
.atlas-notes h3{font:400 1.3rem/1.4 Georgia,serif}
.atlas-notes p,.atlas-notes li,.atlas-notes a{font:.85rem/1.8 system-ui,sans-serif}
.atlas-notes p{color:var(--atlas-muted)}
.churches-page footer{padding:2rem;text-align:center;font:.8rem system-ui,sans-serif}
#church-map.leaflet-container{font-family:system-ui,sans-serif}
#church-map .leaflet-control-attribution{font-size:10px}
#church-map .leaflet-popup-content-wrapper,#church-map .leaflet-popup-tip{background:var(--atlas-paper);color:var(--atlas-ink)}
#church-map .leaflet-popup-content{margin:32px 12px 12px;overflow-wrap:anywhere}
#church-map .leaflet-popup-content .church-card{padding:0;border:0}
#church-map .leaflet-popup-close-button{width:32px;height:32px;line-height:32px;color:var(--atlas-ink);background:var(--atlas-paper)}
#church-map .leaflet-popup-content .church-actions{display:grid;grid-template-columns:1fr;gap:.2rem}
.atlas-cluster-label{background:none!important;border:none!important;box-shadow:none!important;color:#fff!important;font:600 10px/1 system-ui,sans-serif!important;padding:0!important;pointer-events:none}
.atlas-cluster-label:before{display:none}
.church-map-error{padding:3rem;font:1rem/1.6 system-ui,sans-serif}
.churches-page [hidden]{display:none!important}
@media(max-width:1100px){
 #churches-main{padding:2.5rem 1.5rem}.atlas-filterbar{grid-template-columns:1fr 1fr 100px}.atlas-hero{gap:2rem}
 .atlas-workspace{grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr)}#church-map{height:540px}.atlas-notes{gap:2rem}
}
@media(max-width:720px){
 #churches-main{padding:2rem 1rem}.atlas-hero,.atlas-tools,.atlas-notes{grid-template-columns:1fr;gap:1rem}
 .atlas-hero h1{font-size:clamp(2.4rem,9vw,3.1rem)}.atlas-intro>p:first-child{font-size:1.1rem}
 .atlas-workspace{grid-template-columns:minmax(0,1fr)}#church-map{height:380px}
 .atlas-results{border-left:0;border-top:1px solid var(--atlas-line);max-height:none}
 .atlas-filterbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.7rem}
 .atlas-filterbar>label:first-child{grid-column:1/-1}.atlas-filterbar>button{grid-column:1/-1}
 .atlas-input-row{flex-wrap:wrap}.atlas-input-row input{flex:1 1 150px}.atlas-input-row button{flex:0 0 auto;white-space:normal}
 .atlas-notes{padding-top:2rem}.atlas-notes h2{font-size:2rem}.atlas-results-head,.church-card{padding:1rem}.atlas-results>button{margin:1rem}
}
