/* Pray the Land phone chrome. Shared across pages. Do not put ministry copy here. */
:root{
  --ptl-basalt:#15110D;
  --ptl-parchment:#FAF6EC;
  --ptl-gold:#C9A227;
  --ptl-nav-h:64px;
}

html{overflow-x:clip}
body{overflow-x:clip}

/* Keep existing top bars clear of the notch. Do not target nav.ptl-tabbar here. */
body > nav:not(.ptl-tabbar){
  padding-left:max(16px, env(safe-area-inset-left, 0px));
  padding-right:max(16px, env(safe-area-inset-right, 0px));
}

@media (max-width:820px){
  nav .back{display:none}
  /* Wall lives in the bottom bar; keep the top row from crowding */
  nav .navjoin,
  .navactions .navjoin{display:none !important}
  .navtoggle{
    min-height:44px;
    min-width:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
}

/* ---------- sticky phone nav ----------
   Pages style `nav` after this file loads. Beat that with nav.ptl-tabbar. */
nav.ptl-tabbar{
  position:fixed !important;
  top:auto !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  z-index:1200 !important;
  display:none;
  grid-template-columns:repeat(5,1fr);
  justify-content:stretch !important;
  align-items:stretch !important;
  gap:0 !important;
  width:100%;
  height:calc(var(--ptl-nav-h) + env(safe-area-inset-bottom, 0px)) !important;
  padding:0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px) !important;
  margin:0 !important;
  background:rgba(21,17,13,.96) !important;
  border:0 !important;
  border-top:1px solid #3a322a !important;
  border-radius:0 !important;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  transform:none !important;
}
nav.ptl-tabbar a{
  display:flex !important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  min-height:48px;
  padding:6px 2px 8px !important;
  margin:0 !important;
  color:#b3a890 !important;
  text-decoration:none !important;
  font-family:'Frank Ruhl Libre',Georgia,serif !important;
  font-size:11px !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
  font-weight:700 !important;
  border:0 !important;
  background:transparent !important;
}
nav.ptl-tabbar a svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.6}
nav.ptl-tabbar a.on,
nav.ptl-tabbar a:focus-visible{color:var(--ptl-gold) !important;outline:none}
nav.ptl-tabbar a:focus-visible{box-shadow:inset 0 0 0 2px var(--ptl-gold)}

@media (max-width:920px), (display-mode:standalone), (display-mode:fullscreen){
  nav.ptl-tabbar{display:grid !important}
  body{padding-bottom:calc(var(--ptl-nav-h) + env(safe-area-inset-bottom, 0px))}
}

/* Hide phone chrome while the home intro splash is up */
body.ptl-splash-on nav.ptl-tabbar,
body.ptl-splash-on .ptl-a2hs{display:none !important}

/* ---------- Add to Home Screen hint ---------- */
.ptl-a2hs{
  display:none;
  position:fixed;
  left:12px;right:12px;
  bottom:calc(var(--ptl-nav-h) + env(safe-area-inset-bottom, 0px) + 10px);
  z-index:1300;
  background:var(--ptl-parchment);
  color:#221e19;
  border:1px solid var(--ptl-gold);
  border-radius:4px;
  padding:14px 16px 14px 18px;
  box-shadow:0 16px 40px rgba(21,17,13,.28);
  font-family:'Frank Ruhl Libre',Georgia,serif;
}
.ptl-a2hs.on{display:block}
.ptl-a2hs p{margin:0 36px 10px 0;font-size:15px;line-height:1.5}
.ptl-a2hs .ptl-a2hs-acts{display:flex;flex-wrap:wrap;gap:8px}
.ptl-a2hs button{
  font-family:inherit;
  font-size:13px;
  letter-spacing:.06em;
  font-weight:700;
  border-radius:2px;
  padding:10px 14px;
  min-height:44px;
  cursor:pointer;
}
.ptl-a2hs .ptl-a2hs-go{
  background:var(--ptl-gold);
  color:var(--ptl-basalt);
  border:1px solid var(--ptl-gold);
}
.ptl-a2hs .ptl-a2hs-no{
  background:transparent;
  color:#7a6420;
  border:1px solid #d8c79a;
}
.ptl-a2hs .ptl-a2hs-x{
  position:absolute;
  top:6px;right:6px;
  width:44px;height:44px;
  border:0;
  background:transparent;
  color:#7a6420;
  font-size:22px;
  line-height:1;
}

/* ---------- page polish the nav touches ---------- */
@media (max-width:720px){
  .hero h1,
  .phero h1,
  .head h1{overflow-wrap:anywhere}
  input,select,textarea,button,.btn{font-size:16px}
  .btn,.cta a,.cta2 a{min-height:48px;display:inline-flex;align-items:center;justify-content:center}
}

/* Map: fat pins + tappable place list */
.ptl-pin-wrap{display:flex;align-items:center;justify-content:center}
@media (max-width:720px){
  .pin{width:26px;height:26px;border-width:3px}
  .leaflet-control-zoom a{width:44px !important;height:44px !important;line-height:44px !important;font-size:20px !important}
  .place-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:18px 0 0}
  .place-chips a{
    display:inline-flex;align-items:center;justify-content:center;
    min-height:44px;padding:8px 12px;
    border:1px solid #4a4133;border-radius:2px;
    background:#1d1812;color:#E8DEC6;
    text-decoration:none;font-size:13px;letter-spacing:.02em;
  }
  .place-chips a:hover,
  .place-chips a:focus-visible{border-color:var(--ptl-gold);color:var(--ptl-gold)}
}
@media (min-width:721px){
  .place-chips{display:none}
}

/* Watchman's Hour: lift toast and enlarge day-step taps */
.toast{bottom:calc(var(--ptl-nav-h) + env(safe-area-inset-bottom, 0px) + 16px) !important}
@media (max-width:720px){
  .stepper button{min-height:48px;padding:10px 8px}
  .acts .btn{min-height:48px}
}

@media print{
  nav.ptl-tabbar,.ptl-a2hs{display:none !important}
  body{padding-bottom:0}
}
