/* Scoped Learn header for the /pray/ V13 pages.
   These pages keep their own inline CSS. This file does not load site.css,
   because that stylesheet restyles the prayer stage. Colors live on the
   header (and the music overlay) so they do not replace the V13 --gold / --navy. */

:root{--site-header-h:50px}

header.site,header.site *,#musicView,#musicView *{box-sizing:border-box}

header.site{
  --tp-navy:#1d2935;
  --tp-gold:#ffa849;
  --tp-gold-bright:#ffc078;
  --tp-ink:#f3f1ea;
  --tp-ink-soft:#a7b4c0;
  --tp-line:#33424f;
  --tp-serif:Georgia,"Iowan Old Style","Times New Roman",serif;
  --tp-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --tp-maxw:1080px;
  position:sticky;
  top:0;
  z-index:80;
  overflow:visible;
  background:rgba(20,29,38,.94);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border-bottom:1px solid var(--tp-line);
  color:var(--tp-ink);
  font-family:var(--tp-sans);
  line-height:1.6;
}
header.site .nav-inner{
  max-width:var(--tp-maxw);
  margin:0 auto;
  padding:.6rem 1.2rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  overflow:visible;
}
header.site .brand{
  display:flex;
  align-items:center;
  gap:.6rem;
  cursor:pointer;
  color:var(--tp-ink);
  text-decoration:none;
  flex:0 1 auto;
  min-width:0;
}
header.site .brand:hover{text-decoration:none;color:var(--tp-ink)}
header.site .brand svg{width:30px;height:30px;color:var(--tp-gold);flex:0 0 auto}
header.site .brand b{
  font-family:var(--tp-serif);
  font-size:1.15rem;
  letter-spacing:.4px;
  font-weight:700;
  line-height:1.15;
}
header.site .brand b span{color:var(--tp-gold)}
header.site nav.top{
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
}
header.site nav.top a{
  color:var(--tp-ink-soft);
  font-family:var(--tp-sans);
  font-size:.92rem;
  font-weight:500;
  margin-left:1.3rem;
  text-decoration:none;
  line-height:1.3;
}
header.site nav.top a:hover{color:var(--tp-gold-bright);text-decoration:none}
header.site nav.top .nav-ext{white-space:nowrap;flex-shrink:0}
header.site .nav-toggle{
  display:none;
  background:none;
  border:1px solid var(--tp-line);
  color:var(--tp-ink);
  border-radius:8px;
  padding:.4rem .6rem;
  font-family:var(--tp-sans);
  font-size:1rem;
  line-height:1;
  cursor:pointer;
}
header.site .nav-drop{position:relative;display:inline-block}
header.site .nav-drop-toggle{cursor:pointer}
header.site .nav-drop-menu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  padding-top:.5rem;
  z-index:90;
}
header.site .nav-drop-menu-card{
  background:var(--tp-navy);
  border:1px solid var(--tp-line);
  border-radius:10px;
  padding:.4rem;
  min-width:170px;
  box-shadow:0 10px 28px rgba(0,0,0,.45);
}
header.site .nav-drop-menu a{
  display:block;
  margin:0;
  padding:.5rem .7rem;
  border-radius:6px;
  font-size:.9rem;
  white-space:nowrap;
  color:var(--tp-ink-soft);
}
header.site .nav-drop-menu a:hover{background:rgba(255,168,73,.12);color:var(--tp-gold-bright);text-decoration:none}
header.site .nav-drop:hover .nav-drop-menu,
header.site .nav-drop.open .nav-drop-menu{display:block}

@media(max-width:720px){
  header.site nav.top{display:none}
  header.site nav.top.show{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    position:absolute;
    top:100%;
    right:0;
    left:auto;
    min-width:220px;
    max-height:calc(100svh - var(--site-header-h, 50px) - 12px);
    overflow-y:auto;
    background:var(--tp-navy);
    border:1px solid var(--tp-line);
    border-radius:12px;
    padding:.8rem;
    gap:.15rem;
    z-index:90;
    box-shadow:0 16px 36px rgba(0,0,0,.45);
  }
  header.site nav.top.show a{margin:0;padding:.55rem .35rem}
  header.site nav.top.show .nav-drop-menu a{padding:.45rem .7rem}
  header.site .nav-toggle{display:inline-block}
  header.site .nav-drop{display:block}
  header.site .nav-drop-menu{position:static;padding-top:0}
  header.site .nav-drop-menu-card{
    box-shadow:none;
    border:none;
    padding:0 0 0 .6rem;
    margin-top:.1rem;
    background:transparent;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:.1rem;
  }
  header.site .nav-drop.open .nav-drop-menu{display:block}
  header.site .nav-drop:hover .nav-drop-menu{display:none}
  header.site .nav-drop.open:hover .nav-drop-menu,
  header.site .nav-drop.open .nav-drop-menu{display:block}
}

/* ppindex pads the body. Keep that inset on the card list so the header is full width. */
body.has-site-header:has(> .wrap){padding:0}
body.has-site-header > .wrap{padding:32px}

/* Fit the prayer stage under the header and leave room for the handout
   bar. Width and height stay 16:9 so the station circles stay on the art.
   120px is the header's sibling chrome: page padding, footer margin, footer. */
body.has-site-header .stage-shell,
body.has-site-header .footer{
  width:min(100%, calc((100vh - var(--site-header-h, 50px) - 120px)*1.7777778));
}
@media(max-width:980px){
  html:has(body.has-site-header),
  body.has-site-header{
    height:auto !important;
    overflow:visible !important;
  }
  body.has-site-header .page{
    height:auto !important;
    min-height:0 !important;
  }
  body.has-site-header .stage-shell{
    width:100% !important;
    max-width:100% !important;
    height:calc(100svh - var(--site-header-h, 50px)) !important;
    min-height:0 !important;
    aspect-ratio:auto !important;
  }
}

/* Prayer Music overlay. Same job as #musicView on the rest of Learn,
   styled here so the V13 pages do not need site.css. */
#musicView{
  --mv-navy:#1d2935;
  --mv-navy-soft:#243240;
  --mv-gold:#ffa849;
  --mv-gold-bright:#ffc078;
  --mv-ink:#f3f1ea;
  --mv-ink-soft:#a7b4c0;
  --mv-line:#33424f;
  display:none;
  position:fixed;
  top:0;right:0;bottom:0;left:0;
  z-index:5000;
  background:#141d26;
  color:var(--mv-ink);
  overflow-y:auto;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  line-height:1.6;
}
#musicView.open{display:block}
#musicView .detail-top{
  position:sticky;
  top:0;
  z-index:1;
  background:rgba(20,29,38,.95);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--mv-line);
}
#musicView .detail-top .inner{
  max-width:860px;
  margin:0 auto;
  padding:.8rem 1.2rem;
  display:flex;
  align-items:center;
  gap:1rem;
}
#musicView .back{
  background:none;
  border:1px solid var(--mv-line);
  color:var(--mv-ink);
  border-radius:999px;
  padding:.45rem 1rem;
  cursor:pointer;
  font-size:.9rem;
  font-family:inherit;
}
#musicView .stn{
  color:var(--mv-ink-soft);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.78rem;
  font-weight:700;
}
#musicView .detail-body{max-width:860px;margin:0 auto;padding:1.6rem 1.2rem 5rem}
#musicView .kicker{
  display:block;
  color:var(--mv-gold);
  letter-spacing:.22em;
  text-transform:uppercase;
  font-size:.75rem;
  font-weight:700;
}
#musicView h2{
  font-family:Georgia,"Iowan Old Style","Times New Roman",serif;
  font-weight:600;
  font-size:clamp(1.5rem,3vw,2rem);
  line-height:1.2;
  margin:.35rem 0 0;
  color:var(--mv-ink);
}
#musicView .section-head p{color:var(--mv-ink-soft);margin:.45rem 0 0;max-width:680px}
#musicView .music-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:1.1rem;
  margin-top:1.4rem;
}
#musicView .music-card{
  background:var(--mv-navy-soft);
  border:1px solid var(--mv-line);
  border-radius:14px;
  overflow:hidden;
  display:block;
  color:inherit;
  text-decoration:none;
  font:inherit;
  text-align:left;
  padding:0;
  width:100%;
  cursor:pointer;
}
#musicView .music-card:hover{border-color:var(--mv-gold)}
#musicView .music-card .thumb{aspect-ratio:1/1;position:relative;background:#131c24}
#musicView .music-card .thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#musicView .music-card .thumb .play{
  position:absolute;right:.5rem;bottom:.5rem;width:32px;height:32px;border-radius:50%;
  background:rgba(255,168,73,.95);display:grid;place-items:center;color:#3a2408;font-size:.85rem;
}
#musicView .music-card .mbody{padding:.75rem .85rem .9rem}
#musicView .music-card .mbody h3{
  font-size:.94rem;margin:0;line-height:1.3;
  font-family:Georgia,"Times New Roman",serif;font-weight:600;color:var(--mv-ink);
}
#musicView .music-card .mbody .artist{
  color:var(--mv-gold);font-size:.76rem;text-transform:uppercase;letter-spacing:.08em;font-weight:700;margin-bottom:.25rem;
}
body.music-open{overflow:hidden !important}
