:root {
  color-scheme: light;
  --ink: #242036;
  --muted: #625d70;
  --purple: #44348a;
  --deep: #33246b;
  --wash: #f6f3fc;
  --tint: #ebe5f7;
  --line: #e5e1ec;
  --white: #fff;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
html { scroll-padding-top: 18px }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.5 system-ui, -apple-system, sans-serif }
img { display: block; max-width: 100% }
button, input, select { font: inherit; color: inherit }
button { cursor: pointer }
button:disabled { cursor: wait; opacity: .7 }
a { color: var(--purple); text-underline-offset: .2em }
a:hover { color: var(--deep) }
:focus-visible { outline: 3px solid #795cc0; outline-offset: 3px }
.wrap { width: min(1320px, calc(100% - 96px)); margin-inline: auto }
.skip { position: absolute; top: 12px; left: 12px; z-index: 5; padding: 9px; background: white; transform: translateY(-200%) }
.skip:focus { transform: none }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden }
.glyph { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
h1, h2, h3, p, figure { margin-top: 0 }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.06; letter-spacing: -.043em; margin-bottom: 9px }
h2 { font-size: clamp(1.25rem, 2.1vw, 1.62rem); line-height: 1.25; letter-spacing: -.034em; margin-bottom: 8px }
h3 { margin-bottom: 3px; line-height: 1.28 }
.kicker { color: var(--purple); text-transform: uppercase; font-weight: 780; letter-spacing: .11em; font-size: .72rem; margin-bottom: 9px }
.muted { color: var(--muted) }

.site-header { background: white; border-bottom: 1px solid var(--line) }
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 73px; gap: 18px }
.brand { justify-self: start; padding-block: 7px; display: block }
.brand img { object-fit: contain; object-position: left }
.top-nav { display: flex; gap: 8px }
.top-nav a, .coverage-link { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; font-size: .9rem; font-weight: 670; white-space: nowrap }
.top-nav a[aria-current], .top-nav a:hover, .coverage-link:hover { background: var(--wash); color: var(--purple) }
.coverage-link { justify-self: end }
.top-nav .glyph, .coverage-link .glyph { width: 17px; height: 17px }
.finder-shell { background: linear-gradient(180deg, #fff, #fcfaff) }
.finder-wrap { padding-top: 23px; text-align: center }
.finder { display: flex; align-items: center; max-width: 795px; margin-inline: auto; border: 1px solid #dcd6e8; border-radius: 40px; background: white; box-shadow: 0 3px 18px #32245d10; padding: 6px; text-align: left }
.search-segment { flex: 1; min-width: 0; padding: 4px 19px 4px 20px; border-right: 1px solid var(--line) }
.search-segment.where { flex: 1.7; padding-left: 25px }
.search-segment.when { border: 0 }
.search-segment label { display: block; font-size: .77rem; font-weight: 760; margin-bottom: 1px }
.search-segment .optional { color: var(--muted); font-weight: 510 }
.search-segment input, .search-segment select { background: transparent; border: 0; width: 100%; min-width: 0; font-size: .91rem; min-height: 25px; color: var(--muted) }
.search-segment input:focus, .search-segment select:focus { outline-offset: 1px }
.search-button, .solid { color: white; background: var(--purple); border: 1px solid var(--purple); min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 720; text-decoration: none }
.search-button { border-radius: 100px; padding: 8px 18px }
.solid { border-radius: 10px; padding: 8px 16px }
.search-button:hover, .solid:hover { background: var(--deep); color: white }
.finder-actions { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: .83rem; margin: 2px 0 1px }
.location { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--purple); font-weight: 680; min-height: 44px; padding: 0 4px }
.location:hover { text-decoration: underline }
.location .glyph { width: 17px; height: 17px }
.form-message { color: var(--deep); margin: 0 0 8px; font-size: .89rem }
.form-message:empty { display: none }
.service-bar { border-block: 1px solid var(--line); background: #fff }
.service-tabs { display: flex; align-items: stretch; gap: 26px; overflow-x: auto }
.service-tabs a { min-height: 56px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 2px solid transparent; text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 675; white-space: nowrap }
.service-tabs a[aria-current], .service-tabs a:hover { border-color: var(--purple); color: var(--purple) }
.service-tabs .glyph { width: 22px; height: 22px }

.discovery, .results { padding-block: 31px 46px }
.discover-intro, .results-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 28px }
.discover-intro .muted, .results-heading .muted { margin: 0 }
.outline, .round-link, .text-link { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 44px; font-size: .86rem; font-weight: 690; text-decoration: none; color: var(--ink) }
.outline, .round-link { border: 1px solid #ddd6e8; border-radius: 100px; background: white; padding: 7px 15px }
.outline:hover, .round-link:hover { background: var(--wash); color: var(--deep) }
.outline .glyph { width: 17px; height: 17px }
.outline[aria-pressed="true"] .glyph { fill: var(--purple); stroke: var(--purple) }
.round-link { padding: 0; width: 44px }
.round-link .glyph { width: 17px; height: 17px }
.shelf + .shelf { margin-top: 32px }
.shelf-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px }
.shelf-heading h2 { margin: 0 }
.shelf-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px 17px }
.place-card { min-width: 0 }
.place-media { position: relative; aspect-ratio: 1.36; border-radius: 16px; background: var(--wash) }
.photo-link { display: block; width: 100%; height: 100%; border-radius: inherit; overflow: hidden }
.photo-link img { width: 100%; height: 100%; object-fit: cover }
.place-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(ellipse at 54% 50%, #e3daf4, #f3effa 65%); color: #7c6ca7 }
.chapel-placeholder { background: radial-gradient(ellipse at 54% 50%, #e1e9f1, #f1f5f9 65%); color: #596f8c }
.place-placeholder .glyph { width: 26%; height: 41%; stroke-width: .85 }
.media-badge { position: absolute; top: 10px; left: 10px; max-width: calc(100% - 61px); padding: 4px 9px; border-radius: 999px; background: #fff; color: var(--ink); font-size: .7rem; font-weight: 760; box-shadow: 0 1px 4px #21192f1c; pointer-events: none }
.save-button { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; color: var(--ink); background: #fffffff2; box-shadow: 0 1px 6px #0002 }
.save-button:hover { background: white; color: var(--purple) }
.save-button[aria-pressed="true"] { color: var(--purple) }
.save-button[aria-pressed="true"] .glyph { fill: currentColor }
.photo-credit { position: absolute; right: 6px; bottom: 6px; z-index: 1; color: var(--ink); max-width: calc(100% - 12px) }
.photo-credit summary { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; color: white; cursor: pointer; list-style: none }
.photo-credit summary::-webkit-details-marker { display: none }
.photo-credit summary .glyph { width: 18px; height: 18px; filter: drop-shadow(0 1px 2px #000) }
.photo-credit > div { border-radius: 10px; padding: 7px 8px; background: white; font-size: .72rem; box-shadow: 0 2px 9px #0002 }
.place-copy { padding: 9px 1px 0 }
.place-copy h3 { font-size: .99rem; font-weight: 750; overflow-wrap: anywhere }
.place-copy h3 a { color: var(--ink); text-decoration: none }
.place-copy h3 a:hover { text-decoration: underline }
.place-locality, .place-time { margin: 0 0 3px; font-size: .85rem; color: var(--muted) }
.place-time { display: flex; align-items: flex-start; gap: 5px; color: var(--deep) }
.place-time .glyph { width: 15px; height: 15px; margin-top: 2px }
.place-time.no-time { color: var(--muted) }

.result-actions { display: flex; flex-wrap: wrap; gap: 8px }
.result-layout.with-map { display: grid; grid-template-columns: 1.1fr 1fr; align-items: start; gap: 24px }
.with-map .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
#map-panel { position: sticky; top: 18px; }
#place-map { height: min(64vh, 640px); min-height: 360px; border-radius: 18px; border: 1px solid var(--line); background: var(--wash); display: grid; place-items: center; z-index: 0 }
#place-map.leaflet-container { display: block }
.map-note { font-size: .8rem; margin-top: 6px }
.map-pin { background: var(--purple); border-radius: 18px; color: white; border: 2px solid white; box-shadow: 0 2px 6px #0004; display: grid; place-items: center; font-weight: 750; font-size: 12px }
.empty { grid-column: 1 / -1; padding: 36px 24px; background: var(--wash); text-align: center; border: 1px solid var(--line); border-radius: 18px }
.empty > .glyph { width: 30px; height: 30px; color: var(--purple); margin-bottom: 8px }
.empty p { color: var(--muted) }
.pagination { display: flex; justify-content: center; align-items: center; gap: 13px; margin-top: 23px }
.saved-page { min-height: 55vh }
.saved-page > .muted { margin-bottom: 22px }

.coverage { padding-block: 28px; border-block: 1px solid var(--line); background: var(--wash) }
.coverage-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start }
.coverage-inner p:last-child { margin: 0 }
.coverage dl { margin: 0 }
.coverage dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #ddd5eb }
.coverage dd { margin: 0; font-weight: 760 }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; padding: 16px 0 }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 10px }
.foot p { margin: 0 }

.detail { max-width: 1140px; padding-block: 14px 48px }
.text-link { color: var(--purple); }
.text-link:hover { text-decoration: underline }
.detail-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-top: 13px; margin-bottom: 21px }
.detail h1 { font-size: clamp(1.85rem, 4.4vw, 3.25rem) }
.detail-address { display: flex; align-items: flex-start; gap: 7px; margin-bottom: 0; color: var(--muted) }
.detail-photo { margin: 0 0 25px }
.detail-photo img { width: 100%; max-height: 505px; object-fit: contain; background: var(--wash); border-radius: 20px; }
.detail-photo figcaption { color: var(--muted); font-size: .79rem; margin-top: 5px }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(275px, .48fr); gap: 28px; align-items: start }
.detail-sections { grid-column: 1; grid-row: 1 }
.visit-card { grid-column: 2; grid-row: 1; position: sticky; top: 18px; padding: 19px; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 5px 19px #34265811; background: white }
.visit-time { background: var(--wash); padding: 12px; margin: 11px 0; border-radius: 11px; display: flex; align-items: flex-start; gap: 10px; font-size: .9rem }
.visit-time .kicker { margin-bottom: 2px }
.visit-time .glyph { color: var(--purple) }
.visit-card .solid { width: 100%; margin: 5px 0 9px }
.evidence-line { font-size: .82rem; margin: 7px 0 }
.detail-section + .detail-section { margin-top: 26px }
.schedule-nav { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px }
.service-group { border-bottom: 1px solid var(--line) }
.service-group > summary { display: flex; align-items: center; gap: 8px; font-weight: 720; min-height: 50px; cursor: pointer }
.service-group summary > span { font-size: .82rem; color: var(--muted); font-weight: 500; margin-left: auto }
.service-group summary::after { content: "+"; color: var(--purple); padding: 0 4px }
.service-group[open] summary::after { content: "−" }
.schedule-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line) }
.schedule-list li { padding: 10px 0 }
.schedule-list li + li { border-top: 1px solid var(--line) }
.schedule-list p { margin: 4px 0 }
.schedule-source { display: flex; align-items: baseline; gap: 4px 9px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-top: 3px }
.evidence { color: var(--purple); font-weight: 670 }
.recheck { color: #795022 }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 56px) }
  .shelf-grid { grid-template-columns: repeat(5, minmax(170px, 1fr)); overflow-x: auto; padding: 3px 2px 10px }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}
@media (max-width: 750px) {
  .top { grid-template-columns: 1fr auto auto; gap: 3px }
  .coverage-link { padding: 7px 11px }
  .coverage-link span { display: none }
  .service-tabs { gap: 15px }
  .result-layout.with-map { grid-template-columns: 1fr }
  #map-panel { grid-row: 1; position: static }
  #place-map { min-height: 260px; height: 47vh }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .detail-layout { display: flex; flex-direction: column; gap: 23px }
  .visit-card { position: static; width: 100% }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px) }
  .top { min-height: 62px }
  .brand img { width: 103px; height: 38px }
  .top-nav a { padding-inline: 9px; font-size: .84rem }
  .top-nav .glyph { display: none }
  .finder-wrap { padding-top: 13px }
  .finder { display: grid; grid-template-columns: 1fr 1fr auto; border-radius: 18px }
  .search-segment { padding-inline: 8px }
  .search-segment.where { grid-column: 1 / -1; padding: 3px 8px 6px; border: 0; border-bottom: 1px solid var(--line) }
  .search-button { min-width: 44px; padding-inline: 10px; border-radius: 12px }
  .search-button span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden }
  .service-tabs { gap: 12px }
  .service-tabs a { gap: 3px; font-size: .77rem; min-height: 51px }
  .service-tabs .glyph { width: 17px; height: 17px }
  .discover-intro, .results-heading { flex-wrap: wrap; align-items: start; margin-bottom: 19px }
  .discovery, .results { padding-top: 22px }
  .shelf-grid { grid-template-columns: repeat(5, minmax(155px, 43%)); gap: 11px }
  .card-grid { gap: 17px 11px }
  .place-media { aspect-ratio: 1.2 }
  .media-badge { font-size: .63rem; max-width: calc(100% - 57px) }
  .place-copy h3 { font-size: .92rem }
  .place-time, .place-locality { font-size: .77rem }
  .coverage-inner { grid-template-columns: 1fr; gap: 8px }
  .foot { align-items: flex-start; flex-direction: column }
  .detail-heading { flex-wrap: wrap }
  .detail-photo img { max-height: 330px }
}

.footer-links { display: flex; flex-wrap: wrap; gap: 5px 14px }
.finder .where { position: relative }
.search-suggestions {
  position: absolute; z-index: 4; top: calc(100% + 12px); left: 0;
  width: min(355px, calc(100vw - 44px)); max-height: min(420px, 50vh);
  overflow-y: auto; background: white; border: 1px solid var(--line);
  border-radius: 15px; box-shadow: 0 9px 30px #25194425; padding: 5px;
}
.suggestion-group + .suggestion-group { border-top: 1px solid var(--line) }
.suggestion-provider { display: block; padding: 8px 10px 4px; font-weight: 700; font-size: .8rem; color: var(--purple) }
.google-attribution { color: #5e5e5e; font: 400 .84rem Roboto, system-ui, sans-serif; letter-spacing: normal; white-space: nowrap }
.suggestion-option { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; min-height: 46px; padding: 6px 9px; border: 0; border-radius: 8px; background: white }
.suggestion-option:hover,.suggestion-option[aria-selected="true"] { background: var(--wash) }
.suggestion-option > span > span { display: block; font-size: .79rem; color: var(--muted) }
.suggestion-option strong { display: block; font-size: .88rem }
.suggestion-option .glyph { color: var(--purple); width: 17px; height: 17px }

.venue-gallery { margin: 0 0 28px }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(148px,1fr)); gap: 13px }
.gallery-grid figure { margin: 0 }
.gallery-grid figure img,.admin-gallery-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--wash) }
.gallery-grid figcaption { color: var(--muted); font-size: .78rem; margin-top: 4px }
.gallery-dialog { width: min(850px,calc(100% - 32px)); border: 1px solid var(--line); border-radius: 15px; padding: 14px; color: var(--ink) }
.gallery-dialog::backdrop { background: #181222c9 }
.gallery-dialog form { text-align: right; margin-bottom: 8px }
.gallery-dialog img { width: 100%; max-height: 65vh; object-fit: contain; border-radius: 8px; background: var(--wash) }
.gallery-dialog p { margin: 8px 0; font-size: .87rem }
.gallery-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px }
.gallery-controls button:disabled { cursor: default }

.public-church-contact{font-size:.88rem;overflow-wrap:anywhere}.public-church-contact p{margin-block:8px}
@media(max-width:690px){.site-header .top{gap:12px;flex-wrap:wrap}.site-header .top-nav{gap:15px}.site-header .brand img{width:120px}.admin-bar>div{flex-wrap:wrap}}
