/* =============================================================================
   Church Map — design system.
   Evolved from the original prototype tokens (navy / gold / ivory, Fraunces +
   Manrope; both fonts are named in ROADMAP tech notes). Light + dark themes via
   CSS variables: pages inherit both automatically if they use tokens only.

   Radius rule (one system, documented): buttons & inputs 12px, cards & media
   16px, chips/pills 999px. Header & footer stay navy in BOTH themes (brand
   anchor). Middle dot separator: max once per metadata line. No em dashes.
   ========================================================================== */

/* ------------------------------ tokens ---------------------------------- */
:root{
  /* brand (theme-stable) */
  --navy:#1C2340; --navy-2:#2A3358; --gold:#C9A14A; --gold-deep:#A87F2E; --gold-soft:#F0E6C8;

  /* light theme surfaces (cool light gray, not cream) */
  --bg:#F5F6F8; --bg-2:#ECEEF2; --card:#FFFFFF; --line:#E1E4EA;
  --ink:#1B1E27; --muted:#666C79; --ink-inverse:#F5F6F8;

  /* legacy aliases (older pages reference these) */
  --ivory:var(--bg); --stone:var(--line);

  --radius:16px; --radius-btn:12px;
  --shadow:0 10px 30px rgba(28,35,64,.14);
  --shadow-soft:0 4px 14px rgba(28,35,64,.10);
  --ease:cubic-bezier(.2,.8,.2,1);

  --container:1160px;
  color-scheme:light;
}
[data-theme="dark"]{
  --bg:#141828; --bg-2:#0F1320; --card:#1D2338; --line:#2E3552;
  --ink:#EDE8DC; --muted:#9CA0B4; --ink-inverse:#EDE8DC;
  --gold-soft:#42381F;
  --shadow:0 10px 30px rgba(0,0,0,.45);
  --shadow-soft:0 4px 14px rgba(0,0,0,.35);
  color-scheme:dark;
}

/* ------------------------------ base ------------------------------------ */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Manrope",system-ui,sans-serif;color:var(--ink);background:var(--bg);
  -webkit-font-smoothing:antialiased;line-height:1.55}
img{max-width:100%;display:block}
a{color:inherit}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}

/* ------------------------------ type ------------------------------------ */
.font-display,h1,h2,h3{font-family:"Fraunces",serif;font-weight:600;color:var(--ink);letter-spacing:-.01em}
.h-hero{font-size:clamp(34px,4.6vw,56px);line-height:1.04;margin:0}
.h-page{font-size:clamp(30px,4vw,44px);line-height:1.08;margin:0}
.h-sec{font-size:clamp(23px,2.6vw,30px);line-height:1.15;margin:0}
.lead{font-size:17px;line-height:1.6;color:var(--muted);max-width:56ch}
.kicker{display:inline-block;font-size:11.5px;font-weight:800;letter-spacing:.09em;
  text-transform:uppercase;color:var(--gold-deep)}
[data-theme="dark"] .kicker{color:var(--gold)}
.prose p{font-size:16.5px;line-height:1.7;margin:0 0 16px;max-width:66ch}

/* ------------------------------ layout ----------------------------------- */
.container{max-width:var(--container);margin:0 auto;padding:0 22px}
.section{padding:64px 0}
.section-tight{padding:44px 0}
.sec-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:26px}
.sec-head .more{font-size:14px;font-weight:700;color:var(--navy);text-decoration:none;
  white-space:nowrap;border-bottom:2px solid var(--gold);padding-bottom:2px}
[data-theme="dark"] .sec-head .more{color:var(--ink)}
.grid{display:grid;gap:18px}
@media (max-width:768px){ .section{padding:44px 0} .sec-head{flex-direction:column;align-items:flex-start;gap:8px} }

/* ------------------------------ skip link -------------------------------- */
.skip-link{position:absolute;left:-9999px;top:0;z-index:999;background:var(--gold);
  color:var(--navy);font-weight:800;padding:12px 20px;border-radius:0 0 12px 0;text-decoration:none}
.skip-link:focus{left:0}

/* ------------------------------ header ----------------------------------- */
.site-header{position:sticky;top:0;z-index:200;background:var(--navy);color:#fff;
  border-bottom:3px solid var(--gold)}
.sh-in{max-width:var(--container);margin:0 auto;padding:0 22px;height:66px;
  display:flex;align-items:center;gap:26px}
.sh-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#fff;flex:none}
.sh-brand svg{width:28px;height:28px}
.sh-brand b{font-family:"Fraunces",serif;font-weight:500;font-size:19px}
.sh-brand b em{font-style:italic;color:var(--gold)}
.sh-nav{display:flex;gap:4px;margin-left:6px}
.sh-nav a{color:#fff;text-decoration:none;font-size:14px;font-weight:700;opacity:.82;
  padding:8px 12px;border-radius:9px;transition:opacity .15s,background .15s}
.sh-nav a:hover{opacity:1;background:rgba(255,255,255,.08)}
.sh-nav a.on{opacity:1;background:rgba(255,255,255,.12);box-shadow:inset 0 -2px 0 var(--gold)}
.sh-side{margin-left:auto;display:flex;align-items:center;gap:10px}
.sh-theme{width:38px;height:38px;border:none;border-radius:10px;background:rgba(255,255,255,.1);
  color:#fff;cursor:pointer;display:grid;place-items:center}
.sh-theme:hover{background:rgba(255,255,255,.18)}
.sh-theme svg{width:18px;height:18px}
.sh-cta{background:var(--gold);color:var(--navy);text-decoration:none;font-weight:800;
  font-size:13.5px;padding:10px 16px;border-radius:var(--radius-btn);white-space:nowrap;
  transition:transform .15s var(--ease),box-shadow .15s}
.sh-cta:hover{box-shadow:0 6px 16px rgba(0,0,0,.28)}
.sh-cta:active{transform:translateY(1px)}
.sh-burger{display:none;width:40px;height:40px;border:none;border-radius:10px;
  background:rgba(255,255,255,.1);color:#fff;cursor:pointer;place-items:center}
.sh-burger svg{width:20px;height:20px}
.sh-mobile{display:none}
/* Seven destinations since the directory list joined the nav (Stage I): tighten
   the links before the gold CTA starts fighting them for the row. */
@media (max-width:1120px){
  .sh-in{gap:16px}
  .sh-nav a{padding:8px 9px;font-size:13.5px}
}
@media (max-width:900px){
  .sh-nav{display:none}
  .sh-burger{display:grid}
  .sh-mobile{display:none;position:absolute;top:100%;left:0;right:0;background:var(--navy);
    border-bottom:3px solid var(--gold);padding:8px 22px 16px;flex-direction:column;gap:2px}
  .sh-mobile.open{display:flex}
  .sh-mobile a{color:#fff;text-decoration:none;font-weight:700;font-size:15px;padding:12px 10px;
    border-radius:9px}
  .sh-mobile a.on{background:rgba(255,255,255,.12)}
  .sh-mobile a:hover{background:rgba(255,255,255,.08)}
}
@media (max-width:560px){ .sh-cta{display:none} .sh-in{gap:14px} }

/* ------------------------------ footer ----------------------------------- */
.site-footer{background:var(--navy);color:#fff;margin-top:70px;border-top:3px solid var(--gold)}
.sf-in{max-width:var(--container);margin:0 auto;padding:52px 22px 30px;
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:34px}
.sf-brand svg{width:30px;height:30px}
.sf-brand .wm{font-family:"Fraunces",serif;font-size:20px;margin:10px 0 8px}
.sf-brand .wm em{font-style:italic;color:var(--gold)}
.sf-brand p{font-size:13.5px;line-height:1.6;opacity:.72;margin:0;max-width:30ch}
.sf-col b{display:block;font-size:11.5px;font-weight:800;letter-spacing:.09em;
  text-transform:uppercase;color:var(--gold);margin-bottom:12px}
.sf-col a{display:block;color:#fff;opacity:.8;text-decoration:none;font-size:14px;padding:5px 0}
.sf-col a:hover{opacity:1}
.sf-base{border-top:1px solid rgba(255,255,255,.14);max-width:var(--container);margin:0 auto;
  padding:16px 22px;display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:space-between;
  font-size:12.5px;opacity:.62}
@media (max-width:820px){ .sf-in{grid-template-columns:1fr 1fr;gap:26px} }
@media (max-width:480px){ .sf-in{grid-template-columns:1fr} }

/* ------------------------------ buttons ---------------------------------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 22px;
  border-radius:var(--radius-btn);border:1.5px solid transparent;font-weight:800;font-size:15px;
  text-decoration:none;cursor:pointer;transition:transform .15s var(--ease),box-shadow .15s;white-space:nowrap}
.btn:active{transform:translateY(1px)}
.btn svg{width:17px;height:17px}
.btn-primary{background:var(--navy);color:#fff}
.btn-primary:hover{box-shadow:var(--shadow-soft)}
[data-theme="dark"] .btn-primary{background:var(--gold);color:var(--navy)}
.btn-gold{background:var(--gold);color:var(--navy)}
.btn-gold:hover{box-shadow:var(--shadow-soft)}
.btn-ghost{border-color:var(--navy);color:var(--navy);background:transparent}
.btn-ghost:hover{background:var(--navy);color:#fff}
[data-theme="dark"] .btn-ghost{border-color:var(--ink);color:var(--ink)}
[data-theme="dark"] .btn-ghost:hover{background:var(--ink);color:var(--bg)}
.btn-sm{padding:9px 15px;font-size:13.5px}

/* ------------------------------ chips ------------------------------------ */
.chip{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:999px;
  border:1.5px solid var(--line);background:var(--card);color:var(--ink);font-size:13.5px;
  font-weight:600;cursor:pointer;text-decoration:none;transition:all .15s ease}
.chip .dot{width:10px;height:10px;border-radius:50%;background:var(--c,var(--gold))}
.chip:hover{border-color:var(--c,var(--gold))}
.chip.on{background:var(--c,var(--gold));border-color:var(--c,var(--gold));color:#fff}
.chip.on .dot{background:#fff;box-shadow:0 0 0 2px rgba(255,255,255,.35)}
.chip .n{font-size:11.5px;font-weight:800;opacity:.55}

/* ------------------------------ cards ------------------------------------ */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.card-hover{transition:transform .18s var(--ease),box-shadow .18s}
.card-hover:hover{transform:translateY(-3px);box-shadow:var(--shadow)}

/* church card (image on top) */
.ch-card{display:flex;flex-direction:column;text-decoration:none;color:inherit}
.ch-card .ph{aspect-ratio:16/10;overflow:hidden;background:var(--bg-2)}
.ch-card .ph img{width:100%;height:100%;object-fit:cover;transition:transform .4s var(--ease)}
.ch-card:hover .ph img{transform:scale(1.04)}
.ch-card .in{padding:16px 18px 18px;display:flex;flex-direction:column;gap:4px;flex:1}
.ch-card .den{font-size:12px;font-weight:800;color:var(--c)}
.ch-card h3{font-size:19px;line-height:1.2;margin:0}
.ch-card .meta{font-size:13px;color:var(--muted)}
.ch-card .when{font-size:12.5px;margin-top:auto;padding-top:10px;display:flex;gap:6px;align-items:center;color:var(--ink)}
.ch-card .when svg{width:14px;height:14px;color:var(--gold-deep);flex:none}
[data-theme="dark"] .ch-card .when svg{color:var(--gold)}

/* event card (date block left) */
.ev-card{display:grid;grid-template-columns:62px 1fr;gap:16px;padding:16px;
  text-decoration:none;color:inherit;align-items:start}
.ev-card .d{background:var(--navy);color:#fff;border-radius:12px;text-align:center;padding:9px 4px 7px}
.ev-card .d b{display:block;font-family:"Fraunces",serif;font-size:24px;line-height:1;font-weight:600}
.ev-card .d small{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--gold)}
.ev-card .type{font-size:12px;font-weight:800;color:var(--t)}
.ev-card h3{font-size:18px;line-height:1.2;margin:2px 0 4px}
.ev-card .meta{font-size:13px;color:var(--muted);display:flex;flex-wrap:wrap;gap:3px 14px}
.ev-card .meta span{display:flex;gap:5px;align-items:center}
.ev-card .meta svg{width:13px;height:13px;color:var(--gold-deep);flex:none}
[data-theme="dark"] .ev-card .meta svg{color:var(--gold)}
.ev-card .free{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.05em;
  text-transform:uppercase;background:var(--gold-soft);color:var(--navy);
  border-radius:6px;padding:2px 7px;margin-left:2px}
[data-theme="dark"] .ev-card .free{color:var(--gold)}

/* news card */
.nw-card{display:flex;flex-direction:column;text-decoration:none;color:inherit}
.nw-card .ph{aspect-ratio:16/9;overflow:hidden;background:var(--bg-2)}
.nw-card .ph img{width:100%;height:100%;object-fit:cover;transition:transform .4s var(--ease)}
.nw-card:hover .ph img{transform:scale(1.04)}
.nw-card .in{padding:16px 18px 18px;display:flex;flex-direction:column;gap:6px;flex:1}
.nw-card .cat{font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--c)}
.nw-card h3{font-size:19px;line-height:1.2;margin:0}
.nw-card p{font-size:14px;color:var(--muted);line-height:1.5;margin:0;flex:1}
.nw-card .meta{font-size:12.5px;color:var(--muted)}

/* ------------------------------ misc ------------------------------------- */
.crumbs{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:13px;color:var(--muted);padding:18px 0 0}
.crumbs a{color:var(--muted);text-decoration:none}
.crumbs a:hover{color:var(--ink);text-decoration:underline}
.crumbs svg{width:13px;height:13px;opacity:.55}
.badge{display:inline-flex;align-items:center;gap:6px;background:var(--gold-soft);color:var(--navy);
  font-weight:800;font-size:12.5px;padding:4px 11px;border-radius:999px}
[data-theme="dark"] .badge{color:var(--gold)}
.byline-church{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;
  background:var(--bg-2);border:1px solid var(--line);border-radius:999px;padding:3px 10px;color:var(--muted)}
.hr{border:none;border-top:1px solid var(--line);margin:0}
.empty{text-align:center;padding:46px 20px;color:var(--muted);font-size:14.5px}
.empty b{display:block;font-family:"Fraunces",serif;font-size:21px;color:var(--ink);margin-bottom:6px;font-weight:500}

/* inputs */
.input,select.input{width:100%;padding:12px 14px;border:1.5px solid var(--line);
  border-radius:var(--radius-btn);background:var(--card);color:var(--ink)}
.input::placeholder{color:var(--muted)}
select.input{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666C79' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;padding-right:34px}
.field label{display:block;font-size:11.5px;font-weight:800;letter-spacing:.08em;
  text-transform:uppercase;color:var(--muted);margin-bottom:6px}

/* scroll reveal (activated by shared.js; static without JS or with reduced motion) */
@media (prefers-reduced-motion:no-preference){
  .reveal{opacity:0;transform:translateY(18px);
    transition:opacity .6s var(--ease),transform .6s var(--ease)}
  .reveal.in{opacity:1;transform:none}
}

/* horizontal scroller (event strips etc.) */
.hscroll{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(290px,340px);gap:16px;
  overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 4px 14px;margin:0 -4px}
.hscroll>*{scroll-snap-align:start}
.hscroll::-webkit-scrollbar{height:8px}
.hscroll::-webkit-scrollbar-thumb{background:var(--line);border-radius:99px}

/* ---------------------- picker: dropdown with chips + type-to-filter ------ */
.picker{position:relative}
.picker-btn{width:100%;display:flex;align-items:center;gap:8px;padding:10px 12px;
  border:1.5px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);
  cursor:pointer;text-align:left;font-weight:600;font-size:14px}
.picker-btn .pb-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.picker-btn .pb-label.muted{color:var(--muted);font-weight:500}
.picker-btn .pb-count{background:var(--navy);color:#fff;border-radius:999px;font-size:11px;
  font-weight:800;padding:1px 8px;display:none}
[data-theme="dark"] .picker-btn .pb-count{background:var(--gold);color:var(--navy)}
.picker-btn>svg{width:14px;height:14px;color:var(--muted);flex:none;transition:transform .2s}
.picker.open .picker-btn{border-color:var(--gold)}
.picker.open .picker-btn>svg{transform:rotate(180deg)}
.picker-pop{display:none;position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:120;
  background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);
  padding:10px}
.picker.open .picker-pop{display:block}
.picker-search{position:relative;margin-bottom:9px}
.picker-search svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);width:14px;height:14px;color:var(--muted)}
.picker-search input{width:100%;padding:8px 10px 8px 31px;border:1.5px solid var(--line);
  border-radius:9px;background:var(--card);font-size:13.5px}
.picker-pop .chips{max-height:210px;overflow-y:auto;padding:2px;display:flex;flex-wrap:wrap;gap:7px}
.picker-pop .none{font-size:12.5px;color:var(--muted);padding:4px 2px}

/* ---------------------- autocomplete suggestion list ---------------------- */
.sugg{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:130;background:var(--card);
  border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);overflow:hidden}
.sugg button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:none;
  background:none;padding:10px 12px;font-size:13px;cursor:pointer;color:var(--ink);line-height:1.35}
.sugg button:hover{background:var(--bg)}
.sugg button+button{border-top:1px solid var(--line)}
.sugg .tk{flex:none;font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;
  background:var(--gold-soft);color:var(--navy);border-radius:5px;padding:2px 6px}
[data-theme="dark"] .sugg .tk{color:var(--gold)}
.sugg .tx{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sugg .tx small{display:block;color:var(--muted);font-size:11.5px}

/* ---------------------- section washes (same theme family) --------------- */
.wash{background:var(--bg-2)}
.wash-gold{background:linear-gradient(180deg,var(--wash-gold) 0%,var(--bg) 100%)}
.wash-blue{background:linear-gradient(180deg,var(--wash-blue) 0%,var(--bg) 100%)}
:root{--wash-gold:#EFEDE6;--wash-blue:#E9EDF6}
[data-theme="dark"]{--wash-gold:#1E1D2B;--wash-blue:#171E33}

/* ---------------------- slider (hscroll + arrows) ------------------------- */
.snav{display:flex;gap:8px}
.snav button{width:40px;height:40px;border-radius:50%;border:1.5px solid var(--line);
  background:var(--card);color:var(--ink);cursor:pointer;display:grid;place-items:center;
  transition:all .15s ease}
.snav button:hover{background:var(--navy);border-color:var(--navy);color:#fff}
[data-theme="dark"] .snav button:hover{background:var(--gold);border-color:var(--gold);color:var(--navy)}
.snav button:disabled{opacity:.35;cursor:default}
.snav button:disabled:hover{background:var(--card);border-color:var(--line);color:var(--ink)}
.snav svg{width:17px;height:17px}

/* ---------------------- denomination tiles -------------------------------- */
.den-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.den-tile{position:relative;display:flex;align-items:center;gap:11px;padding:16px 18px;
  border-radius:var(--radius);text-decoration:none;color:var(--ink);
  background:color-mix(in srgb,var(--c) 10%,var(--card));
  border:1.5px solid color-mix(in srgb,var(--c) 32%,transparent);
  transition:transform .15s var(--ease),box-shadow .15s}
.den-tile:hover{transform:translateY(-2px);box-shadow:var(--shadow-soft);
  border-color:var(--c)}
.den-tile .swatch{width:34px;height:34px;border-radius:10px;background:var(--c);flex:none;
  display:grid;place-items:center;color:#fff}
.den-tile .swatch svg{width:17px;height:17px}
.den-tile b{font-size:14.5px;line-height:1.15;display:block}
.den-tile small{font-size:12px;color:var(--muted)}
@media (max-width:900px){ .den-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:420px){ .den-grid{grid-template-columns:1fr} }

/* ---------------------- gold CTA band ------------------------------------- */
.cta-gold{background:linear-gradient(130deg,var(--gold) 0%,var(--gold-deep) 100%);
  color:var(--navy);border-radius:20px;padding:38px 44px;
  display:grid;grid-template-columns:1.15fr .85fr;gap:28px;align-items:center;box-shadow:var(--shadow-soft)}
.cta-gold>*{min-width:0}   /* grid items default to min-width:auto and would push the card wider */
.cta-gold h2{color:var(--navy);font-size:clamp(22px,2.8vw,30px);margin:0 0 8px}
.cta-gold p{margin:0;font-size:15px;line-height:1.55;color:rgba(28,35,64,.82);max-width:44ch}
.cta-gold form{display:flex;gap:10px}
.cta-gold input{flex:1;padding:13px 16px;border:1.5px solid rgba(28,35,64,.25);
  border-radius:var(--radius-btn);background:rgba(255,255,255,.92);color:var(--navy);min-width:0}
.cta-gold input::placeholder{color:rgba(28,35,64,.5)}
.cta-gold .btn{background:var(--navy);color:#fff}
@media (max-width:760px){ .cta-gold{grid-template-columns:1fr;padding:28px 24px} }
@media (max-width:540px){
  /* input + button side by side no longer fit: stack them full width */
  .cta-gold{padding:24px 20px;border-radius:16px}
  .cta-gold form{flex-direction:column;align-items:stretch}
  .cta-gold input{width:100%}
  .cta-gold .btn{width:100%}
  .cta-gold p{font-size:14.5px}
}

/* simple modal (suggest a correction etc.) */
.modal{position:fixed;inset:0;z-index:500;display:none;place-items:center;padding:20px;
  background:rgba(20,24,40,.55)}
.modal.open{display:grid}
.modal .box{background:var(--card);border-radius:var(--radius);max-width:460px;width:100%;
  padding:26px;box-shadow:var(--shadow)}
.modal h3{margin:0 0 6px;font-size:21px}
.modal p{font-size:14px;color:var(--muted);margin:0 0 16px}

/* lightbox */
.lightbox{position:fixed;inset:0;z-index:600;display:none;place-items:center;
  background:rgba(15,19,32,.92);padding:24px}
.lightbox.open{display:grid}
.lightbox img{max-width:min(1100px,94vw);max-height:82vh;object-fit:contain;border-radius:10px}
.lightbox .cap{position:fixed;bottom:22px;left:0;right:0;text-align:center;color:#fff;
  font-size:13.5px;opacity:.85}
.lightbox button{position:fixed;top:18px;right:18px;width:44px;height:44px;border:none;
  border-radius:12px;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;display:grid;place-items:center}
.lightbox .nav{top:50%;transform:translateY(-50%)}
.lightbox .prev{left:18px;right:auto}
.lightbox .next{right:18px}
.lightbox svg{width:20px;height:20px}

/* ------------------- listings that have no photo ------------------------- */
/* OpenStreetMap states an address but never a picture, so a share of the
   directory has no image at all. Rather than a grey hole, tint the frame with
   the denomination colour and mark it with the church glyph. Real photos sit on
   top (z-index), so nothing changes for listings that have one. */
.ph{position:relative}
.ph::before{content:"";position:absolute;inset:0;background:var(--c,var(--navy));opacity:.13}
.ph::after{content:"";position:absolute;inset:0;opacity:.34;
  background:center/30% no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C2340' stroke-width='1.6'%3E%3Cpath d='M12 3v4M10 5h4M5 21V12l7-6 7 6v9z'/%3E%3C/svg%3E")}
[data-theme="dark"] .ph::after{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EDE8DC' stroke-width='1.6'%3E%3Cpath d='M12 3v4M10 5h4M5 21V12l7-6 7 6v9z'/%3E%3C/svg%3E")}
.ph img{position:relative;z-index:1}

/* ------------------------------------------------------------ public forms
 * Shared by the claim page, the correction dialog on a church page and the
 * submission form. They started in content.css and moved here the moment a
 * second template needed them: a rule used by three surfaces is part of the
 * system, not part of one page.
 */

/* The outcome of a form that has just redirected back. */
.claim-msg{margin:18px 0 0;padding:14px 18px;border-radius:var(--radius-btn);
  border:1px solid var(--line);border-left:3px solid var(--gold);background:var(--wash-blue);
  font-size:15.5px;line-height:1.6}
.claim-msg--bad{border-left-color:#c0392b;background:color-mix(in srgb,#c0392b 8%,var(--card))}

/* The honeypot. Off-screen rather than display:none - a bot that reads CSS
   skips the second, and a field nobody can focus is a field no person fills. */
.cf-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Turnstile sits between the last field and the buttons. */
.cf-turnstile{margin:14px 0 4px}

/* Dialogs open on :target as well as on .open, so the correction form still
   works with JavaScript off - the trigger is an anchor, not a button. */
.modal:target{display:grid}

/* ------------------------------------------------------------- account link
 * The user icon in the header reuses the theme-toggle look (.sh-theme) and
 * only needs to behave as a link. In the mobile sheet the same destinations
 * get their own section under a rule, because the narrow header hides both
 * the icon's label and the gold CTA.
 */
.sh-account{display:grid;place-items:center;color:#fff;text-decoration:none}
.sh-account svg{width:18px;height:18px}

.sh-mobile .sm-extra{display:flex;flex-direction:column;gap:2px;margin-top:8px;
  padding-top:10px;border-top:1px solid rgba(255,255,255,.14)}
.sh-mobile .sm-extra a{color:#fff;text-decoration:none;font-weight:700;font-size:15px;
  padding:12px 10px;border-radius:10px}
.sh-mobile .sm-extra a:hover{background:rgba(255,255,255,.08)}
.sh-mobile .sm-extra .sm-cta{background:var(--gold);color:var(--navy);text-align:center;margin-top:4px}

/* ------------------------------------------------------------ PMPro theming
 * PMPro v3 draws every screen (sign-in, account, checkout) from three CSS
 * variables it prints as a static :root block in wp_head. The light values
 * are set as options (tools/setup-membership.php); dark mode has to be a CSS
 * override, and html[data-theme] outranks the plugin's :root.
 */
html[data-theme="dark"]{
  --pmpro--color--base:var(--card);
  --pmpro--color--contrast:var(--ink);
  --pmpro--color--accent:var(--gold);
  --pmpro--color--accent--variation:var(--gold-deep);
  --pmpro--color--border--variation:var(--line);
}

/* -------------------------- cookie consent modal --------------------------
 * Nothing Google loads until Accept is pressed (Theme\Analytics).
 *
 * This was a discreet strip along the foot until 2026-08-27, when the owner
 * pointed out the obvious: people simply kept reading and never answered, so
 * the question was asked of everyone and answered by almost nobody. It is now
 * a modal over an overlay - the page waits for a choice.
 *
 * BOTH controls let you through, and that is not a detail, it is the whole
 * legality of the thing: a dialog whose only exit is "Accept" is a cookie wall,
 * and consent that is not freely given is not consent.
 *
 * Accept is the gold button because it is the answer we would like. Declining
 * is a quieter text control directly beneath it - the owner's ask on
 * 2026-08-27, and legitimate, because prominence may differ while EFFORT may
 * not: one click, always visible, never behind a "settings" step, and always
 * WORDED. An unlabelled x that silently declines was considered and rejected;
 * a control whose effect the visitor cannot read is not a choice they made. */
.cookie-modal{position:fixed;inset:0;z-index:400;display:flex;align-items:center;justify-content:center;
  padding:22px;background:rgba(16,20,38,.62);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
/* display:flex above outranks the browser's [hidden]{display:none}, so Accept
   stored the choice while the bar refused to leave (owner-reported 2026-08-27).
   The attribute must win: */
.cookie-modal[hidden]{display:none}
.cookie-dialog{width:100%;max-width:520px;background:var(--card);border:1px solid var(--line);
  border-top:3px solid var(--gold);border-radius:14px;padding:26px 26px 20px;
  box-shadow:0 24px 60px rgba(16,20,38,.35);text-align:center}
.cookie-dialog h2{margin:0 0 10px;font-family:var(--display,"Fraunces",Georgia,serif);
  font-size:22px;line-height:1.25;color:var(--ink)}
.cookie-dialog p{margin:0;font-size:14px;line-height:1.6;color:var(--ink)}
.cookie-actions{display:flex;gap:10px;justify-content:center;margin:20px 0 0}
.cookie-actions .btn{padding:12px 34px;font-size:15px;min-width:180px}
/* Quiet, but a real button: full width target, readable label, visible focus. */
.cookie-decline{display:block;margin:12px auto 0;padding:6px 10px;border:0;background:none;
  font:inherit;font-size:13px;color:var(--muted);text-decoration:underline;
  text-underline-offset:3px;cursor:pointer}
.cookie-decline:hover,.cookie-decline:focus-visible{color:var(--ink)}
.cookie-note{margin:16px 0 0 !important;font-size:12.5px;line-height:1.5;color:var(--muted) !important}
.cookie-note a{color:inherit;font-weight:700}
/* The page behind must not scroll while the question is open. */
body.cookie-locked{overflow:hidden}
@media (max-width:520px){
  .cookie-dialog{padding:22px 18px 16px}
  .cookie-dialog h2{font-size:19px}
  .cookie-actions .btn{width:100%;min-width:0}
}
@media (prefers-reduced-motion:no-preference){
  .cookie-dialog{animation:cookieIn .22s ease-out both}
  @keyframes cookieIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
}

/* ------------------------------ share ------------------------------------
 * One component, four homes: church page, event page, news article and the map
 * popups. The <details> below is the no-JS fallback (open the menu, four real
 * links); with JS, app.js swallows the toggle and opens .share-modal instead,
 * which is why both are styled here. */
.share{position:relative;display:inline-block}
.share > summary{list-style:none;cursor:pointer}
.share > summary::-webkit-details-marker{display:none}
.share > summary::marker{content:""}
.share-menu{position:absolute;z-index:60;top:calc(100% + 8px);left:0;min-width:200px;padding:6px;
  background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}
.share-right .share-menu{left:auto;right:0}
.share-opt{display:flex;align-items:center;gap:10px;width:100%;padding:9px 11px;border-radius:10px;
  border:0;background:transparent;font:inherit;font-size:14px;font-weight:700;color:var(--ink);
  text-align:left;text-decoration:none;cursor:pointer}
.share-opt:hover{background:var(--bg-2)}
.share-opt svg{width:19px;height:19px;flex:none;color:var(--c,var(--gold))}
.share-opt[data-net="whatsapp"]{--c:#25D366}
.share-opt[data-net="facebook"]{--c:#1877F2}
.share-opt[data-net="x"]{--c:var(--ink)}
.share-opt[data-net="instagram"]{--c:#E1306C}
.share-opt[data-net="email"]{--c:var(--gold-deep)}
.share-opt[data-net="native"]{--c:var(--muted)}
[data-theme="dark"] .share-opt[data-net="email"]{--c:var(--gold)}

/* the JS version: a dialog, so the map popup never has to contain a menu */
.share-modal{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:18px}
.share-modal[hidden]{display:none}
.share-back{position:absolute;inset:0;background:rgba(16,20,36,.55);backdrop-filter:blur(2px)}
.share-box{position:relative;width:min(420px,100%);max-height:90vh;overflow:auto;background:var(--card);
  border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px 18px 16px}
.share-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.share-head b{font-family:"Fraunces",serif;font-size:19px}
.share-x{border:0;background:transparent;color:var(--muted);cursor:pointer;padding:4px;line-height:0;border-radius:8px}
.share-x svg{width:18px;height:18px}
.share-x:hover{background:var(--bg-2);color:var(--ink)}
.share-sub{margin:2px 0 0;font-size:13.5px;color:var(--muted);line-height:1.4}
.share-tabs{display:flex;gap:8px;margin-top:14px}
.share-tabs[hidden]{display:none}
.share-tabs .chip{font-size:13px;padding:6px 12px}
.share-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:14px}
.share-grid .share-opt{flex-direction:column;gap:7px;padding:14px 6px;text-align:center;font-size:12.5px;
  border:1px solid var(--line)}
.share-grid .share-opt svg{width:23px;height:23px}
.share-grid .share-opt[hidden]{display:none}
.share-copy{display:flex;gap:8px;margin-top:14px}
.share-copy input{flex:1;min-width:0;padding:10px 12px;border-radius:var(--radius-btn);border:1.5px solid var(--line);
  background:var(--bg);color:var(--muted);font:inherit;font-size:13px}
.share-note{margin:10px 0 0;font-size:12.5px;color:var(--muted);line-height:1.4;min-height:1em}
.share-note.ok{color:var(--gold-deep);font-weight:700}
[data-theme="dark"] .share-note.ok{color:var(--gold)}
@media (max-width:420px){.share-grid{grid-template-columns:repeat(2,1fr)}}
.share-row{display:flex;align-items:center;gap:12px;margin:26px 0 4px;padding-top:18px;border-top:1px solid var(--line)}
.share-row span{font-size:13.5px;font-weight:700;color:var(--muted)}

/* Inside a .btns stack (the church and event sidebars) the share button is one
   of the column's rows, so it fills the width like its neighbours. Its no-JS
   menu drops in flow there rather than absolutely, because .card clips overflow
   and an absolute menu would be cut off at the card's edge. */
.btns .share{display:block}
.btns .share > summary{width:100%}
.btns .share-menu{position:static;margin-top:8px;box-shadow:none}
