
:root{
  --navy:#082f6b;
  --navy-deep:#001f4f;
  --ink:#092f68;
  --muted:#304a6c;
  --card:#fff;
  --line:#dce1e7;
  --app-width:576px;
}
*{box-sizing:border-box}
html,body{
  margin:0;
  min-height:100%;
  font-family:"Segoe UI",Tahoma,Arial,sans-serif;
  background:#e7e9ec;
  color:var(--ink);
}
body{display:flex;justify-content:center}
button,input,textarea,select{font:inherit}
.app-shell{
  width:min(100%,var(--app-width));
  min-height:100vh;
  position:relative;
  overflow:hidden;
  background:#fff;
  box-shadow:0 0 30px #0002;
  padding-bottom:66px;
}

/* Header */
.topbar{
  height:64px;
  padding:0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#fff;
  background:linear-gradient(110deg,var(--navy),var(--navy-deep));
  position:relative;
  z-index:20;
}
.church-brand{
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  color:#fff;
  text-decoration:none;
  font-size:20px;
  font-weight:600;
  letter-spacing:-.2px;
}
.church-brand img{
  width:52px;
  height:52px;
  flex:0 0 auto;
  object-fit:contain;
  filter:none;
}
.church-brand span:nth-child(2){
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.chevron{font-size:21px;margin-left:1px}

/* Hero */
.hero{
  position:relative;
  height:350px;
  background-size:cover;
  background-position:center center;
}
.hero::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:42px;
  background:linear-gradient(to bottom,transparent,#fff);
}
.hero-copy{
  position:absolute;
  left:51.5%;
  top:72px;
  width:43%;
  z-index:2;
}
.hero h1{
  margin:0 0 17px;
  color:var(--hero-text-color,var(--ink));
  font-size:calc(var(--hero-title-mobile-size,22px) + 7px);
  line-height:1.08;
  font-weight:700;
  letter-spacing:-.55px;
}
.hero h1 span{display:block}
.hero-title-line{white-space:nowrap}
.hero p{
  margin:0;
  color:var(--hero-text-color,var(--ink));
  font-size:calc(var(--hero-subtitle-mobile-size,15px) + 1px);
  line-height:1.52;
  font-weight:400;
}
.hero-rule{
  width:165px;
  margin-top:23px;
  display:flex;
  align-items:center;
  gap:13px;
}
.hero-rule i{
  height:1.5px;
  flex:1;
  background:var(--hero-text-color,var(--navy));
}
.hero-rule b{
  font-size:27px;
  line-height:1;
  font-weight:500;
  color:var(--hero-text-color,var(--navy));
}

/* Home */
.home-content{
  position:relative;
  z-index:4;
  margin-top:-24px;
  padding:0 13px 8px;
}
.tile-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.home-tile{
  min-width:0;
  min-height:94px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:10px 11px;
  text-decoration:none;
  color:var(--ink);
  background:
    linear-gradient(145deg,rgba(255,255,255,.98),rgba(251,251,251,.98));
  border:1px solid #dfe3e7;
  border-radius:10px;
  box-shadow:
    0 2px 5px rgba(0,0,0,.09),
    inset 0 1px 0 rgba(255,255,255,.9);
}
.home-tile:hover{transform:translateY(-1px)}
.tile-icon{
  width:58px;
  height:58px;
  min-width:58px;
  display:grid;
  place-items:center;
  padding:9px;
  border:2.2px solid var(--tile);
  border-radius:50%;
  background:#fff;
}
.tile-icon img{
  width:100%;
  height:100%;
  display:block;
}
.tile-copy{
  min-width:0;
  flex:1;
  align-self:center;
}
.tile-copy strong{
  display:block;
  margin:0 0 5px;
  color:var(--tile);
  font-size:16px;
  line-height:1.08;
  font-weight:700;
  letter-spacing:-.2px;
  white-space:nowrap;
}
.tile-copy small{
  display:block;
  color:#294260;
  font-size:11.5px;
  line-height:1.37;
  font-weight:400;
}
.tile-arrow{
  flex:0 0 auto;
  color:var(--tile);
  font-size:29px;
  font-weight:300;
  line-height:1;
}


/* Approved home tile artwork
   Each card is a separate clickable image so its typography, icon,
   arrow, spacing and proportions remain identical to the mockup. */
.image-tile-grid{
  gap:7px;
}
.home-image-tile{
  display:block;
  min-width:0;
  overflow:hidden;
  border-radius:10px;
  text-decoration:none;
  background:#fff;
  box-shadow:0 2px 5px rgba(0,0,0,.07);
  transition:transform .12s ease,box-shadow .12s ease;
}
.home-image-tile picture,
.home-image-tile img{
  display:block;
  width:100%;
}
.home-image-tile img{
  height:auto;
}
.home-image-tile:hover,
.home-image-tile:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 4px 9px rgba(0,0,0,.11);
}
.home-image-tile:focus-visible{
  outline:3px solid #8db9ed;
  outline-offset:2px;
}

/* Verse */
.verse-panel{
  min-height:111px;
  margin-top:9px;
  padding:14px 14px 14px 25px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background:linear-gradient(108deg,#fff8f1,#fffdfa);
  border:1px solid #eadfd5;
  border-radius:10px;
  box-shadow:0 2px 5px rgba(0,0,0,.08);
}
.verse-panel>div{flex:1;min-width:0}
.verse-panel p{
  margin:0 0 7px;
  color:var(--ink);
  font-size:17px;
  line-height:1.33;
  font-weight:400;
}
.verse-panel strong{
  color:#6d2bab;
  font-size:14px;
  font-weight:600;
}
.verse-panel img{
  width:116px;
  max-width:29%;
  max-height:82px;
  object-fit:contain;
  margin-left:auto;
}

/* Bottom navigation */
.bottom-nav{
  position:fixed;
  bottom:0;
  z-index:30;
  width:min(100%,var(--app-width));
  height:63px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  background:linear-gradient(#fbfbfb,#f0f2f4);
  border-top:1px solid #dcdfe3;
  box-shadow:0 -3px 11px rgba(0,0,0,.07);
}
.bottom-nav a,.bottom-nav button{
  min-width:0;
  border:0;
  border-right:1px solid #e0e3e7;
  background:transparent;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  color:var(--navy);
  text-decoration:none;
  font-size:10.5px;
  font-weight:500;
}
.bottom-nav>*:last-child{border-right:0}
.bottom-nav img{display:block}

/* Internal pages */
.page-heading{
  display:flex;
  align-items:center;
  gap:14px;
  padding:20px;
  border-bottom:1px solid #eee;
}
.page-heading img{
  width:64px;
  height:64px;
  border:2px solid var(--page-color);
  border-radius:50%;
  padding:10px;
}
.page-heading h1{
  margin:0;
  color:var(--page-color);
  font-size:26px;
}
.page-heading p{
  margin:4px 0 0;
  color:#52657f;
  font-size:13px;
}
.page-content{padding:14px 14px 28px}
.stack-list{display:grid;gap:10px}
.content-card{
  display:block;
  border:1px solid #e1e4e8;
  border-radius:11px;
  padding:15px;
  background:#fff;
  box-shadow:0 2px 5px #0000000d;
  text-decoration:none;
  color:inherit;
}
.content-card h3{margin:0 0 6px}
.content-card p{line-height:1.45;color:#354c6c}
.card-meta{display:flex;justify-content:space-between;gap:12px}
.card-meta time{font-size:12px;color:#75849a}
.pill{display:inline-block;background:#eef3f8;border-radius:20px;padding:4px 9px;font-size:12px}
.row-card{display:flex;justify-content:space-between;align-items:center}
.row-card>span{font-size:30px}
.alert-card{border-left:5px solid #ef2b2d}
.section-tabs{display:flex;border-bottom:1px solid #ddd;margin:12px 0}
.section-tabs button{flex:1;border:0;background:#fff;padding:12px;color:#53657d}
.section-tabs .active{color:var(--navy);border-bottom:3px solid var(--navy)}
.primary-button{background:var(--navy);color:#fff;border:0;border-radius:6px;padding:12px 18px;font-weight:700;cursor:pointer}
.primary-button.full{display:block;width:100%;text-align:center;text-decoration:none;margin:10px 0}
.form-stack{display:grid;gap:12px;margin:12px 0}
.form-stack label{display:grid;gap:5px;font-weight:600;font-size:13px}
.form-stack input,.form-stack textarea,.form-stack select{width:100%;border:1px solid #ccd3dc;border-radius:6px;padding:11px}
.form-stack .check{display:flex;grid-template-columns:auto 1fr;align-items:center}
.form-stack .check input{width:auto}
.detail-list>div{display:grid;grid-template-columns:125px 1fr;padding:11px 0;border-bottom:1px solid #eee}
.detail-list>div:last-child{border-bottom:0}
.detail-list a{color:#0866d6}

/* Modal */
.modal-backdrop{
  position:fixed;
  inset:0;
  z-index:50;
  display:grid;
  place-items:center;
  padding:20px;
  background:#001a3e99;
}
.modal-backdrop[hidden]{display:none}
.church-modal{
  position:relative;
  width:min(440px,100%);
  padding:24px;
  border-radius:15px;
  background:#fff;
  box-shadow:0 20px 70px #0005;
}
.modal-close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:28px}
.church-list{border-top:1px solid #eee}
.church-choice{
  width:100%;
  display:flex;
  justify-content:space-between;
  padding:15px 4px;
  border:0;
  border-bottom:1px solid #eee;
  background:#fff;
  text-align:left;
  font-size:16px;
}
.church-choice.active::after{content:"✓";color:#1f9d38}
.toast{
  position:fixed;
  left:50%;
  bottom:82px;
  z-index:100;
  transform:translateX(-50%);
  padding:12px 18px;
  border-radius:8px;
  background:var(--navy);
  color:#fff;
}

/* Scale the approved proportions carefully on narrow phones */
@media(max-width:520px){

  .polished-bottom-nav{height:62px;padding:4px 5px}
  .polished-bottom-nav a,.polished-bottom-nav button{height:53px;font-size:9px}
  .polished-bottom-nav img{width:23px;height:23px}

  .topbar{height:58px;padding:0 13px}
  .church-brand{font-size:15px;gap:7px}
  .church-brand img{width:50px;height:50px}
  .hero{
    height:275px;
    background-position:center center;
  }
  .hero-copy{
    left:51%;
    top:55px;
    width:46%;
  }
  .hero h1{
    margin-bottom:12px;
    font-size:20px;
    letter-spacing:-.35px;
  }
  .hero p{
    font-size:12px;
    line-height:1.45;
  }
  .hero-rule{
    width:125px;
    margin-top:17px;
    gap:10px;
  }
  .hero-rule b{font-size:22px}
  .home-content{
    margin-top:-18px;
    padding:0 8px 6px;
  }
  .tile-grid{gap:6px}
  .home-image-tile{border-radius:8px}
  .verse-panel{
    min-height:98px;
    margin-top:7px;
    padding:11px 9px 11px 16px;
  }
  .verse-panel p{
    margin-bottom:5px;
    font-size:13px;
  }
  .verse-panel strong{font-size:10.5px}
  .verse-panel img{
    width:91px;
    max-height:66px;
  }
  .bottom-nav{height:58px}
  .bottom-nav a,.bottom-nav button{font-size:8.5px}
  .app-shell{padding-bottom:61px}
}




/* Compact page branding instead of oversized tile banners */
.page-image-heading{
  margin:0;
  padding:7px 12px 6px;
  background:#fff;
  border-bottom:1px solid #eceef1;
}
.page-image-heading picture{
  display:block;
  width:100%;
}
.page-image-heading img{
  display:block;
  width:auto;
  max-width:100%;
  height:86px;
  object-fit:contain;
  object-position:left center;
  border-radius:0;
  box-shadow:none;
}



/* Polished four-button navigation: stronger contour and moulded grey gradient */
.polished-bottom-nav{
  position:fixed;
  bottom:0;
  z-index:30;
  width:min(100%,var(--app-width));
  height:68px;
  padding:5px 7px 6px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  background:
    linear-gradient(to bottom,#ffffff 0%,#f3f5f7 36%,#e4e8ec 72%,#d8dde2 100%);
  border-top:1px solid #cfd5db;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 -3px 6px rgba(0,0,0,.06),
    0 -3px 12px rgba(0,0,0,.11);
}
.polished-bottom-nav a,
.polished-bottom-nav button{
  position:relative;
  min-width:0;
  height:57px;
  padding:5px 3px 4px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  border:0;
  border-right:1px solid #d0d6dd;
  border-left:1px solid rgba(255,255,255,.92);
  background:
    linear-gradient(to bottom,#ffffff 0%,#f8f9fb 32%,#eef2f5 68%,#e4e9ee 100%);
  color:#082e68;
  text-decoration:none;
  font-size:10px;
  font-weight:600;
  line-height:1;
  cursor:pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,.04),
    inset 1px 0 0 rgba(255,255,255,.65);
}
.polished-bottom-nav a:first-child,
.polished-bottom-nav button:first-child{
  border-left:0;
  border-radius:9px 0 0 9px;
}
.polished-bottom-nav a:last-child,
.polished-bottom-nav button:last-child{
  border-right:0;
  border-radius:0 9px 9px 0;
}
.polished-bottom-nav img{
  width:25px;
  height:25px;
  object-fit:contain;
  display:block;
}
.polished-bottom-nav span{white-space:nowrap}
.polished-bottom-nav a:hover,
.polished-bottom-nav button:hover{
  background:
    linear-gradient(to bottom,#ffffff 0%,#f6f8fa 32%,#ebeff3 68%,#dfe5ea 100%);
}
.polished-bottom-nav a:active,
.polished-bottom-nav button:active{
  transform:translateY(1px);
  background:
    linear-gradient(to bottom,#e4e9ee 0%,#f3f5f7 100%);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,.06);
}
.polished-bottom-nav a:focus-visible,
.polished-bottom-nav button:focus-visible{
  outline:2px solid #75a8df;
  outline-offset:-3px;
  z-index:2;
}



/* Lock the original approved tile proportions. */
.home-image-tile{
  aspect-ratio:663 / 237;
  overflow:hidden;
}
.home-image-tile picture{
  display:block;
  width:100%;
  height:100%;
}
.home-image-tile img{
  display:block;
  width:100%;
  height:100%;
  object-fit:fill;
}

.activation-shell{min-height:100vh;width:100%;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#edf2f7,#fff8ef)}
.activation-card{width:min(480px,100%);padding:28px;border:1px solid #dce2e8;border-radius:14px;background:#fff;box-shadow:0 18px 50px #082e6820}
.activation-card h1{margin-top:0}.error-box,.success-box{padding:12px;border-radius:7px;margin:10px 0}.error-box{background:#ffe8e8;color:#922}.success-box{background:#e7f7ec;color:#246c3c}.secondary-link{display:block;text-align:center;margin-top:14px;color:#0866d6}

/* ================================================================
   CHURCH COMPANION V2 — LOCKED PUBLIC DESIGN — 2026-08-12
   This is the approved visual baseline. Make only surgical changes.
   ================================================================ */

/* Header refinements */
.topbar{
  background:linear-gradient(112deg,#08346f 0%,#062b63 55%,#001d49 100%);
  box-shadow:0 2px 7px rgba(0,20,55,.22);
}

/* Hero: medium blue, not overly saturated, with the approved overlap. */
.hero{
  isolation:isolate;
  height:338px;
  background-position:center center;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    linear-gradient(to bottom,rgba(34,143,219,.19) 0%,rgba(69,164,226,.11) 55%,rgba(255,255,255,0) 100%);
}
.hero::after{z-index:1;height:50px}
.hero-copy{z-index:2;top:69px}
.hero h1{
  font-family:Georgia,"Times New Roman",serif;
  font-weight:700;
  letter-spacing:-.45px;
}

/* Approved V1-inspired graphical tiles. */
.home-content{
  margin-top:-50px;
  padding:0 14px 10px;
}
.image-tile-grid{gap:9px 9px}
.home-image-tile{
  aspect-ratio:900/330;
  border-radius:14px;
  overflow:hidden;
  background:#fffaf2;
  border:1px solid rgba(205,196,184,.72);
  box-shadow:
    0 8px 13px rgba(31,38,49,.28),
    0 3px 5px rgba(31,38,49,.18),
    inset 0 1px 0 rgba(255,255,255,.88);
  transition:transform .12s ease,box-shadow .12s ease;
}
.home-image-tile picture,
.home-image-tile img{width:100%;height:100%}
.home-image-tile img{object-fit:fill}
.home-image-tile:hover,
.home-image-tile:focus-visible{
  transform:translateY(-1px);
  box-shadow:
    0 10px 17px rgba(31,38,49,.31),
    0 4px 6px rgba(31,38,49,.2);
}

/* Give longer Bible verses room to breathe. */
.verse-panel{
  position:relative;
  min-height:142px;
  margin-top:13px;
  padding:18px 18px 18px 26px;
  gap:13px;
  background:
    linear-gradient(110deg,rgba(255,247,232,.99),rgba(255,252,245,.98));
  border:1px solid #e8d8c0;
  border-radius:14px;
  box-shadow:0 7px 14px rgba(37,42,49,.20),0 2px 5px rgba(37,42,49,.10);
}
.verse-panel::before{
  content:"";
  align-self:stretch;
  width:2px;
  min-height:72px;
  margin-right:1px;
  border-radius:2px;
  background:#d89d2c;
}
.verse-panel p{
  margin:0 0 9px;
  font-family:Georgia,"Times New Roman",serif;
  color:#082e68;
  font-size:21px;
  line-height:1.28;
  font-weight:700;
}
.verse-panel strong{font-size:16px;color:#6d2bab;font-weight:500}
.verse-panel img{
  width:105px;
  max-width:24%;
  max-height:80px;
  object-fit:contain;
}

/* Bottom button tree from V1, cleaned up for V2. */
.polished-bottom-nav{
  height:72px;
  padding:6px 8px 7px;
  gap:5px;
  background:linear-gradient(to bottom,#f7f8f9,#e5e8eb);
  border-top:1px solid #ccd2d8;
  box-shadow:0 -5px 14px rgba(0,0,0,.13),inset 0 1px 0 #fff;
}
.polished-bottom-nav a,
.polished-bottom-nav button{
  height:58px;
  border:1px solid #cdd3da !important;
  border-radius:10px !important;
  background:linear-gradient(to bottom,#fff 0%,#f4f6f8 45%,#e5e9ed 100%);
  box-shadow:0 4px 7px rgba(0,0,0,.13),inset 0 1px 0 #fff;
  font-size:10.5px;
}
.polished-bottom-nav img{width:27px;height:27px}

/* Internal pages use the exact same graphical language as Home tiles. */
.page-image-heading{
  margin:14px 14px 4px;
  padding:0;
  border:0;
  background:transparent;
}
.page-image-heading picture{
  overflow:hidden;
  border-radius:14px;
  background:#fffaf2;
  border:1px solid rgba(205,196,184,.72);
  box-shadow:0 7px 13px rgba(31,38,49,.23),0 2px 4px rgba(31,38,49,.12);
}
.page-image-heading img{
  width:100%;
  height:auto;
  max-height:none;
  object-fit:fill;
}
.page-content{padding-top:14px}

@media(max-width:520px){
  .hero{height:268px;background-position:center center}
  .hero-copy{left:39%;top:46px;width:58%}
  .hero h1{font-size:var(--hero-title-mobile-size,22px);margin-bottom:11px;line-height:1.08}
  .hero p{font-size:var(--hero-subtitle-mobile-size,15px);line-height:1.40}
  .hero-rule{width:123px;margin-top:15px}

  .home-content{
    margin-top:-43px;
    padding:0 8px 7px;
  }
  .image-tile-grid{gap:7px 7px}
  .home-image-tile{
    border-radius:9px;
    box-shadow:
      0 6px 10px rgba(31,38,49,.29),
      0 2px 4px rgba(31,38,49,.17);
  }

  .verse-panel{
    min-height:116px;
    margin-top:9px;
    padding:12px 10px 12px 14px;
    gap:8px;
    border-radius:10px;
  }
  .verse-panel::before{min-height:64px}
  .verse-panel p{font-size:15px;line-height:1.27;margin-bottom:6px}
  .verse-panel strong{font-size:11.5px}
  .verse-panel img{width:78px;max-width:22%;max-height:61px}

  .polished-bottom-nav{height:64px;padding:5px 5px 6px;gap:3px}
  .polished-bottom-nav a,.polished-bottom-nav button{height:53px;font-size:9px;border-radius:8px !important}
  .polished-bottom-nav img{width:24px;height:24px}
  .app-shell{padding-bottom:66px}

  .page-image-heading{margin:10px 8px 3px}
  .page-image-heading picture{border-radius:9px}
}


/* ================================================================
   INTERIOR PAGE CLEANUP — 2026-08-12
   All changes are scoped to .interior-page.
   The locked Home/index design remains untouched.
   ================================================================ */

.interior-page .topbar{
  height:54px;
  padding:0 13px;
}
.interior-page .church-brand{
  gap:7px;
  font-size:17px;
  letter-spacing:-.1px;
}
.interior-page .church-brand img{
  width:46px;
  height:46px;
  object-fit:contain;
}
.interior-page .church-brand-static{cursor:default}

.interior-page .module-heading{
  position:relative;
  min-height:106px;
  margin:10px 10px 7px;
  padding:7px 12px 7px 7px;
  display:flex;
  align-items:center;
  gap:10px;
  overflow:hidden;
  border:1px solid rgba(205,196,184,.82);
  border-radius:12px;
  background:linear-gradient(112deg,#fffdf8 0%,#fff9ef 58%,#fffdf8 100%);
  box-shadow:
    0 6px 12px rgba(31,38,49,.24),
    0 2px 4px rgba(31,38,49,.14),
    inset 0 1px 0 rgba(255,255,255,.96);
}
.interior-page .module-heading::after{
  content:"";
  position:absolute;
  left:0;
  top:12px;
  bottom:12px;
  width:3px;
  border-radius:0 3px 3px 0;
  background:var(--page-color);
  opacity:.92;
}
.interior-page .module-heading-art{
  width:112px;
  height:92px;
  flex:0 0 112px;
  display:grid;
  place-items:center;
  overflow:visible;
}
.interior-page .module-heading-art picture{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  width:100%;
  height:100%;
}
.interior-page .module-heading-art img{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:88px;
  object-fit:contain;
  object-position:left center;
}
.interior-page .module-heading-copy{
  min-width:0;
  align-self:center;
}
.interior-page .module-heading h1{
  margin:0 0 4px;
  color:var(--page-color);
  font-size:26px;
  line-height:1.05;
  letter-spacing:-.35px;
}
.interior-page .module-heading p{
  margin:0;
  color:#183a67;
  font-size:16px;
  line-height:1.34;
}

.interior-page .page-content{
  padding:7px 10px 24px;
}
.interior-page .stack-list{gap:8px}
.interior-page .content-card{
  padding:12px 14px;
  border-radius:10px;
  box-shadow:
    0 3px 8px rgba(24,42,67,.10),
    0 1px 2px rgba(24,42,67,.06);
}
.interior-page .content-card h3{margin-bottom:4px}
.interior-page .content-card p{
  margin:8px 0;
  line-height:1.4;
}
.interior-page .row-card>span{
  font-size:25px;
  line-height:1;
}
.interior-page .section-tabs{
  margin:8px 0 10px;
}
.interior-page .section-tabs button{
  padding:10px 8px;
}

@media(max-width:520px){
  .interior-page .topbar{
    height:52px;
    padding:0 10px;
  }
  .interior-page .church-brand{
    font-size:15px;
    gap:6px;
  }
  .interior-page .church-brand img{
    width:44px;
    height:44px;
  }

  .interior-page .module-heading{
    min-height:94px;
    margin:8px 8px 6px;
    padding:5px 8px 5px 5px;
    gap:7px;
    border-radius:9px;
    box-shadow:
      0 5px 10px rgba(31,38,49,.23),
      0 2px 3px rgba(31,38,49,.12);
  }
  .interior-page .module-heading::after{
    top:9px;
    bottom:9px;
    width:2px;
  }
  .interior-page .module-heading-art{
    width:92px;
    height:82px;
    flex-basis:92px;
  }
  .interior-page .module-heading-art img{
    max-height:78px;
  }
  .interior-page .module-heading h1{
    font-size:22px;
    margin-bottom:3px;
  }
  .interior-page .module-heading p{
    font-size:15px;
    line-height:1.3;
  }
  .interior-page .page-content{
    padding:6px 8px 20px;
  }
  .interior-page .content-card{
    padding:11px 12px;
  }
}


/* Observation update additions */
.secondary-button{display:inline-block;background:#fff;color:var(--navy);border:1px solid #b7c2d3;border-radius:8px;padding:12px 18px;font-weight:700;cursor:pointer;text-decoration:none;text-align:center;box-shadow:0 2px 5px rgba(24,42,67,.08)}
.secondary-button.as-link{display:block}
.cta-row{display:grid;gap:10px;margin:8px 0 12px}
.cta-row.two-up{grid-template-columns:1fr 1fr}
.cta-row.one-up{grid-template-columns:1fr}
.social-link-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.social-pill{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;background:linear-gradient(180deg,#f8fbff,#edf3ff);border:1px solid #ccd7e6;color:#133c72;text-decoration:none;font-weight:700;box-shadow:0 2px 5px rgba(24,42,67,.08)}
.member-edit-form small{display:block;margin-top:4px;color:#5b6779}
.activation-card.wide-card{max-width:560px}
@media(max-width:520px){
  .cta-row.two-up{grid-template-columns:1fr}
}

/* Games + help refinements */
.game-launch-grid{display:grid;gap:10px}
.game-launch-card{display:grid;grid-template-columns:58px 1fr 22px;gap:12px;align-items:center;padding:14px;background:#fff;border:1px solid #d8dee7;border-radius:12px;text-decoration:none;color:#153660;box-shadow:0 4px 10px rgba(24,42,67,.11)}
.game-launch-card h3{margin:0 0 4px;color:#276a1a}.game-launch-card p{margin:0 0 5px;line-height:1.35}.game-launch-card>b{font-size:30px;color:#3e921f}
.game-launch-icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;border:2px solid #3e921f;background:#fbfff8;color:#3e921f;font-size:22px;font-weight:800}
.game-status{font-size:12px;font-weight:700;color:#26711a}
.developer-contact{background:linear-gradient(135deg,#fffdf8,#f5f9ff)}
.form-hint{margin:0;font-size:13px;color:#5c6d82}
@media(max-width:520px){.game-launch-card{grid-template-columns:50px 1fr 18px;padding:12px;gap:9px}.game-launch-icon{width:48px;height:48px}.game-launch-card h3{font-size:17px}.game-launch-card p{font-size:13px}}


/* Games page polish — cache-busted 2026-08-12 */
.game-launch-grid{
  display:grid;
  gap:12px;
}
.game-launch-card{
  display:grid;
  grid-template-columns:64px 1fr 28px;
  gap:13px;
  align-items:center;
  padding:15px 16px;
  min-height:104px;
  background:linear-gradient(112deg,#fffdf8 0%,#fff9ef 62%,#ffffff 100%);
  border:1px solid #d6d0c7;
  border-radius:13px;
  text-decoration:none;
  color:#153660;
  box-shadow:
    0 7px 14px rgba(31,38,49,.20),
    0 2px 4px rgba(31,38,49,.10),
    inset 0 1px 0 rgba(255,255,255,.98);
}
.game-launch-card:active{transform:translateY(1px)}
.game-launch-card h3{
  margin:0 0 5px;
  color:#2f7c21;
  font-size:19px;
  line-height:1.1;
}
.game-launch-card p{
  margin:0 0 7px;
  color:#173b6c;
  font-size:14px;
  line-height:1.35;
}
.game-launch-card>b{
  color:#3e921f;
  font-size:34px;
  line-height:1;
  text-align:right;
}
.game-launch-icon{
  width:60px;
  height:60px;
  border-radius:50%;
  display:grid;
  place-items:center;
  border:2px solid #3e921f;
  background:radial-gradient(circle at 40% 35%,#ffffff,#eef8ea);
  color:#2f7c21;
  font-size:24px;
  font-weight:800;
  box-shadow:0 4px 9px rgba(44,91,30,.18);
}
.game-status{
  display:inline-block;
  padding:4px 9px;
  border-radius:999px;
  background:#eaf6e7;
  color:#276b1c;
  font-size:12px;
  font-weight:800;
}
@media(max-width:520px){
  .game-launch-grid{gap:9px}
  .game-launch-card{
    grid-template-columns:54px 1fr 20px;
    gap:9px;
    padding:12px;
    min-height:92px;
  }
  .game-launch-icon{width:50px;height:50px;font-size:20px}
  .game-launch-card h3{font-size:17px}
  .game-launch-card p{font-size:13px}
  .game-launch-card>b{font-size:28px}
}


/* ================================================================
   LOCKED HOME — dynamic Bible verse fitting
   Keep the approved verse-panel footprint. JavaScript reduces only
   the verse typography when a longer verse needs more room.
   ================================================================ */
.verse-panel{
  height:142px;
  min-height:142px;
  max-height:142px;
  overflow:hidden;
}
.verse-panel>div{
  max-height:100%;
}
.verse-panel p{
  transition:font-size .12s ease,line-height .12s ease;
}
@media(max-width:520px){
  .verse-panel{
    height:116px;
    min-height:116px;
    max-height:116px;
  }
}


/* Switch Church: member's church list + Add a Church */
.church-modal h2{margin:0 34px 5px 0}
.church-modal-help{
  margin:0 28px 14px 0;
  color:#68778a;
  font-size:13px;
  line-height:1.4;
}
.church-choice{
  align-items:center;
  gap:10px;
  cursor:pointer;
}
.church-choice span{font-weight:700;color:#153660}
.church-choice small{
  margin-left:auto;
  color:#68778a;
  font-size:11px;
  font-weight:700;
}
.church-choice.active small{color:#257b28}
.church-choice.active::after{margin-left:4px}
.add-church-button{
  width:100%;
  min-height:48px;
  margin-top:15px;
  border:2px solid #082e68;
  border-radius:10px;
  background:#082e68;
  color:#fff;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
}
.back-to-churches{
  min-height:38px;
  margin:0 0 13px;
  padding:6px 0;
  border:0;
  background:transparent;
  color:#082e68;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
}
.church-empty{
  margin:0;
  padding:17px 4px;
  color:#68778a;
  text-align:center;
  font-size:14px;
}


/* Church search within Switch Church */
.church-search-form{
  display:grid;
  grid-template-columns:1fr auto;
  gap:7px;
  margin:12px 0 5px;
}
.church-search-form input{
  min-width:0;
  min-height:46px;
  padding:10px 12px;
  border:1px solid #bbc8d8;
  border-radius:9px;
  background:#fff;
  color:#153660;
  font-size:16px;
}
.church-search-form input:focus{
  outline:3px solid rgba(8,46,104,.14);
  border-color:#082e68;
}
.church-search-form button{
  min-height:46px;
  padding:9px 14px;
  border:0;
  border-radius:9px;
  background:#082e68;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.church-search-hint{
  margin:0 0 9px;
  color:#6d7989;
  font-size:12px;
  line-height:1.35;
}
.church-search-status{
  min-height:23px;
  margin:7px 0;
  color:#50647e;
  font-size:13px;
  font-weight:700;
}
.church-choice-copy{
  display:grid;
  gap:3px;
  text-align:left;
}
.church-choice-copy strong{
  color:#153660;
  font-size:15px;
}
.church-choice-copy small{
  color:#6b7889;
  font-size:11px;
  font-weight:600;
}
.church-choice em{
  margin-left:auto;
  color:#2d7a24;
  font-size:12px;
  font-style:normal;
  font-weight:800;
  white-space:nowrap;
}
.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
@media(max-width:430px){
  .church-search-form{grid-template-columns:1fr}
}


/* My Churches: remove a followed church without affecting Admin */
.my-church-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px;
  align-items:stretch;
}
.my-church-row .church-choice{
  width:100%;
}
.remove-church-button{
  min-width:78px;
  padding:8px 10px;
  border:1px solid #c83f46;
  border-radius:9px;
  background:#fff;
  color:#a72d34;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.remove-church-button:hover,
.remove-church-button:focus{
  background:#fff1f2;
}
@media(max-width:430px){
  .my-church-row{
    grid-template-columns:minmax(0,1fr) 70px;
  }
  .remove-church-button{
    min-width:0;
    padding:7px 6px;
    font-size:11px;
  }
}


/* Member sign-in escape route */
.member-login-back{
  margin-bottom:14px;
  text-align:center;
}


/* Prayer Wall viewing mode: give approved prayers the screen. */
#prayerActions.prayer-wall-open{
  grid-template-columns:1fr;
}
#prayerActions.prayer-wall-open [data-open-prayer-wall]{
  width:100%;
}
#prayerActions [hidden],
#prayerForm[hidden],
#prayerWall[hidden]{
  display:none!important;
}


/* PWA install + notification onboarding ---------------------------- */
.cc-pwa-banner{position:fixed;left:50%;bottom:76px;transform:translateX(-50%);z-index:120;width:min(560px,calc(100% - 24px));display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;border:1px solid #cad8e8;border-radius:14px;background:#fff;box-shadow:0 12px 34px rgba(2,28,64,.24);color:#16365e}
.cc-pwa-banner[hidden]{display:none}.cc-pwa-banner-copy{display:grid;gap:3px}.cc-pwa-banner-copy strong{font-size:14px;color:#082e68}.cc-pwa-banner-copy span{font-size:12px;line-height:1.35;color:#586d86}.cc-pwa-banner-actions{display:flex;align-items:center;gap:8px;flex:none}.cc-pwa-primary{border:0;border-radius:8px;padding:9px 12px;background:#082e68;color:#fff;font-weight:700;cursor:pointer;white-space:nowrap}.cc-pwa-primary:disabled{opacity:.55}.cc-pwa-close{border:0;background:transparent;color:#5b6d81;font-size:24px;line-height:1;cursor:pointer;padding:4px}.cc-pwa-modal-backdrop{position:fixed;inset:0;z-index:200;background:rgba(0,25,58,.66);display:grid;place-items:center;padding:18px}.cc-pwa-modal-backdrop[hidden]{display:none}.cc-pwa-modal{width:min(430px,100%);position:relative;background:#fff;border-radius:18px;padding:28px 24px;box-shadow:0 24px 60px rgba(0,0,0,.35);color:#18385f}.cc-pwa-modal img{width:70px;height:70px;display:block;margin:0 auto 10px}.cc-pwa-modal h2{text-align:center;margin:7px 0 16px;color:#082e68}.cc-pwa-modal ol{padding-left:23px;line-height:1.55}.cc-pwa-modal p{font-size:13px;line-height:1.5;color:#5d6f84}.cc-pwa-modal-close{position:absolute;top:8px;right:10px;border:0;background:transparent;font-size:28px;color:#627386;cursor:pointer}.content-card:target{outline:3px solid rgba(8,102,214,.38);outline-offset:2px;box-shadow:0 10px 28px rgba(8,46,104,.20);scroll-margin-top:92px}
@media(max-width:520px){.cc-pwa-banner{bottom:72px;align-items:flex-start}.cc-pwa-banner-actions{align-self:center}.cc-pwa-primary{padding:9px 10px;font-size:12px}}

/* 2026-10-18: Slim blue bar and larger floating logo, shared by all church pages. */
.topbar,.interior-page .topbar{height:44px;padding:0 14px;overflow:visible}
.church-brand,.interior-page .church-brand{position:relative;z-index:2;gap:11px;min-width:0;font-size:17px}
.church-brand img,.interior-page .church-brand img{width:68px;height:68px;flex:0 0 68px;border-radius:50%;background:#fff;border:2px solid #fff;box-shadow:0 3px 9px rgba(0,19,45,.28);object-fit:contain}
.church-brand span:nth-child(2){min-width:0}
@media(max-width:520px){
 .topbar,.interior-page .topbar{height:44px;padding:0 12px}
 .church-brand,.interior-page .church-brand{font-size:15px;gap:10px}
 .church-brand img,.interior-page .church-brand img{width:66px;height:66px;flex-basis:66px}
}

/* 2026-10-18: Match Bethel Park floating-logo vertical alignment. */
.topbar .church-brand img, .interior-page .topbar .church-brand img{position:relative;top:17px}
@media(max-width:520px){.topbar .church-brand img, .interior-page .topbar .church-brand img{top:14px}}
