/* ==========================================================================
   Then Let Us Pray: the 30-Day Churchwide Prayer Challenge (November 2026)
   Used by index.html (the "This Month" feature) and prayer-challenge.html.
   The 30 days of content live in challenge.js, so a fix to one day's wording
   only needs to be made there.

   After November: delete the challenge sections from index.html and remove
   this file's <link> there. prayer-challenge.html can stay up as an archive.
   ========================================================================== */

.plc {
  /* One color per week, borrowed from the kids' calendar and deepened to sit
     beside the church gold. challenge.js sets --wc to the right week. */
  --w1: #b8483a; --w2: #c97a1e; --w3: #3d8a5c; --w4: #2e78a8; --w5: #6b4c9a;
  --night: #1d1a15;
}

/* ---------- Scripture ticker: all 30 readings scrolling past ---------- */
.plc-ticker { background: var(--gold); color: var(--ink); overflow: hidden; border-block: 1px solid #b98e25; }
.plc-ticker .track { display: flex; width: max-content; animation: plc-tick 80s linear infinite; padding: 12px 0; }
.plc-ticker span { font: 600 0.8rem/1 'Inter', sans-serif; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; padding: 0 22px; display: flex; align-items: center; gap: 22px; }
.plc-ticker span::after { content: "\2726"; color: rgba(26,26,26,0.45); }
@keyframes plc-tick { to { transform: translateX(-50%); } }

/* ---------- Dark sections with the church's own prayer photo ---------- */
.plc-dark {
  position: relative; overflow: hidden; color: #e9e4da;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(212,165,49,0.22), transparent 55%),
    linear-gradient(100deg, rgba(24,20,15,0.96) 0%, rgba(24,20,15,0.90) 48%, rgba(24,20,15,0.72) 100%),
    url('img/devotional.jpg') center 30% / cover no-repeat;
}
.plc-dark.plc-plain { background: radial-gradient(ellipse at 85% 0%, rgba(212,165,49,0.14), transparent 55%), #1d1a15; }
.plc-banner + .plc-feature { padding-top: 32px; }
.plc-dark .eyebrow { color: var(--gold); }
.plc-dark h1, .plc-dark h2 { color: #fff; }
.plc-dark h1 em, .plc-dark h2 em { color: var(--gold); font-style: italic; }

/* ---------- The banner artwork (img/prayer-challenge-banner.jpg) ----------
   Hands and lights sit on the right of the picture, so text stays on the left. */
.plc-banner {
  position: relative; overflow: hidden; color: #e9e4da;
  background:
    linear-gradient(90deg, rgba(14,11,8,0.88) 0%, rgba(14,11,8,0.55) 38%, rgba(14,11,8,0) 62%),
    linear-gradient(0deg, rgba(29,26,21,1) 0%, rgba(29,26,21,0) 22%),
    #120e0a url('img/prayer-challenge-banner.jpg') right center / cover no-repeat;
  min-height: 560px; display: flex; align-items: center; padding: 96px 0;
}
.plc-banner > .container { width: 100%; }
.plc-banner .eyebrow { color: var(--gold); }
.plc-banner h1, .plc-banner h2 { color: #fff; font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; margin: 14px 0 12px; font-variation-settings: "opsz" 144; text-shadow: 0 2px 24px rgba(0,0,0,0.5); }
.plc-banner h1 em, .plc-banner h2 em { color: var(--gold); font-style: italic; }
.plc-banner-text { max-width: 560px; }
.plc-banner .plc-lights { max-width: 460px; }
@media (max-width: 760px) {
  .plc-banner {
    min-height: 0; padding: 260px 0 48px; align-items: flex-end;
    background:
      linear-gradient(0deg, rgba(14,11,8,0.96) 0%, rgba(14,11,8,0.75) 45%, rgba(14,11,8,0.1) 75%),
      #120e0a url('img/prayer-challenge-banner.jpg') 78% top / auto 380px no-repeat;
  }
}

/* Home feature */
.plc-feature { padding: 104px 0; }
.plc-feature .grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: center; }
.plc-feature h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.02; margin: 12px 0 10px; font-variation-settings: "opsz" 144; }
.plc-dates { font: 600 0.8rem/1.5 'Inter', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #cfc6b5; margin-bottom: 22px; }
.plc-feature p { color: rgba(255,255,255,0.86); max-width: 34em; margin: 0 0 16px; line-height: 1.65; }
.plc-weeks { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 6px; }
.plc-weeks li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; font-size: 0.95rem; padding: 6px 12px; margin: 0 -12px; border-radius: 8px; }
.plc-weeks li span { display: flex; align-items: center; gap: 8px; font: 600 0.7rem/1 'Inter', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #d9cfbd; }
.plc-weeks li span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--wc); flex: none; }
.plc-weeks li.now { background: rgba(255,255,255,0.07); box-shadow: inset 3px 0 0 var(--wc); color: #fff; font-weight: 600; }
.plc-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .plc-feature { padding: 72px 0; }
  .plc-feature .grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- 30 lights: one turns on each day ---------- */
.plc-lights { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 10px 8px; margin: 26px 0 10px; max-width: 520px; }
.plc-lights i { aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); }
.plc-lights i.lit { background: radial-gradient(circle at 50% 40%, #fff3c9, var(--gold) 55%, #a87b17); border-color: transparent; box-shadow: 0 0 10px rgba(240,190,70,0.55); }
.plc-lights i.now { border-color: transparent; background: radial-gradient(circle at 50% 40%, #fffbe8, #ffd768 50%, var(--gold)); box-shadow: 0 0 0 3px rgba(212,165,49,0.35), 0 0 22px 4px rgba(255,205,90,0.75); animation: plc-glow 2.4s ease-in-out infinite; }
@keyframes plc-glow { 50% { box-shadow: 0 0 0 5px rgba(212,165,49,0.18), 0 0 30px 8px rgba(255,205,90,0.9); } }
.plc-lights-cap { font-size: 0.85rem; color: #cfc6b5; }
.plc-lights-cap b { color: var(--gold); font-weight: 600; }
@media (max-width: 560px) { .plc-lights { grid-template-columns: repeat(10, minmax(0, 1fr)); } }

/* ---------- Today's prayer card (on a little stack) ---------- */
.plc-stack { position: relative; padding: 18px 10px 0 18px; }
.plc-stack::before, .plc-stack::after { content: ""; position: absolute; inset: 18px 10px 0 18px; border-radius: var(--radius-lg); }
.plc-stack::before { background: var(--cream-deep); transform: rotate(-5deg) translate(-8px, 6px); opacity: 0.55; }
.plc-stack::after { background: var(--gold-light); transform: rotate(3deg) translate(8px, -4px); opacity: 0.85; }
.plc-card { position: relative; z-index: 1; background: var(--cream); color: var(--body); border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,0.35); overflow: hidden; }
.plc-card header { background: var(--wc, var(--gold)); color: #fff; padding: 14px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font: 600 0.72rem/1.5 'Inter', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; }
.plc-card .inner { position: relative; overflow: hidden; padding: 26px 28px 28px; }
.plc-card .ghost { position: absolute; right: -10px; top: -34px; font: italic 600 220px/1 'Fraunces', serif; color: var(--wc, var(--gold)); opacity: 0.09; pointer-events: none; }
.plc-card .inner > *:not(.ghost) { position: relative; }
.plc-card .num { font: 600 4.6rem/0.9 'Fraunces', serif; color: var(--wc, var(--gold-display)); }
.plc-card h3 { font-family: 'Fraunces', serif; font-size: 1.75rem; color: var(--ink); margin: 8px 0 18px; line-height: 1.15; }
.plc-card dl { margin: 0; display: grid; gap: 14px; }
.plc-card dl > div { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.plc-card dt { font: 600 0.68rem/1.9 'Inter', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); }
.plc-card dd { margin: 0; }
.plc-card dd.prayer { font: italic 400 1.08rem/1.6 'Fraunces', serif; color: var(--ink); }
.plc-card p { margin: 0 0 12px; }
.plc-card .kid { margin-top: 16px; padding: 12px 14px; background: #fff; border: 1px dashed var(--gold); border-radius: var(--radius); font-size: 0.9rem; }
.plc-card .kid b { color: var(--gold-dark); }
.plc-mark { margin-top: 22px; width: 100%; justify-content: center; text-align: center; cursor: pointer; border: 0; font: inherit; }
.plc-mark[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 560px) { .plc-card .ghost { font-size: 160px; } .plc-card .inner { padding: 22px 20px 24px; } }

/* ---------- Memory verse band (home) ---------- */
.plc-verse { background: var(--cream-deep); border-bottom: 1px solid var(--line); padding: 64px 0; }
.plc-verse .grid { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.plc-verse blockquote { margin: 0; font: italic 400 clamp(1.25rem, 2.4vw, 1.6rem)/1.5 'Fraunces', serif; color: var(--ink); }
.plc-verse cite { display: block; margin-top: 14px; font: 600 0.75rem/1.4 'Inter', sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dark); font-style: normal; }
@media (max-width: 760px) { .plc-verse .grid { grid-template-columns: 1fr; gap: 12px; } }

/* ==========================================================================
   prayer-challenge.html
   ========================================================================== */
.plc-hero { text-align: left; }
.plc-hero > .container > * { max-width: 620px; }
.plc-hero h1 { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(3rem, 8vw, 5.8rem); line-height: 1; margin: 14px 0 12px; font-variation-settings: "opsz" 144; }
.plc-hero .kjv { font: italic 400 1.2rem/1.6 'Fraunces', serif; max-width: 30em; margin: 18px 0 6px; color: #f3eee4; }
.plc-hero .ref { font: 600 0.75rem/1 'Inter', sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.plc-hero .plc-lights { margin: 30px 0 10px; }
.plc-hero .motto { margin-top: 28px; font: 600 0.75rem/1 'Inter', sans-serif; letter-spacing: 0.3em; color: #b9b0a0; }
.plc-hero .plc-ctas { margin-top: 28px; }

.plc-how { padding: 88px 0; }
.plc-how .grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; }
.plc-how h2 { margin: 10px 0 16px; }
.plc-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plc-steps li { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.plc-steps svg { width: 34px; height: 34px; color: var(--gold-display); margin-bottom: 8px; display: block; }
.plc-steps b { display: block; font: 600 1.35rem/1.2 'Fraunces', serif; color: var(--gold-display); margin-bottom: 4px; }
.plc-note { margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--gold); background: #fffaf0; font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 900px) { .plc-how .grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 480px) { .plc-steps { grid-template-columns: 1fr; } }

.plc-daily { padding: 88px 0; }
.plc-daily .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.plc-daily h2 { margin: 10px 0 20px; }
.plc-daily .plc-card { box-shadow: var(--shadow-lg); }
.plc-tracker { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.plc-tracker .count { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 14px; }
.plc-tracker .count b { font: 600 2.8rem/1 'Fraunces', serif; color: var(--gold-display); font-variant-numeric: tabular-nums; }
.plc-bar { height: 6px; background: var(--cream-deep); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.plc-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.4s; }
.plc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.plc-grid .dow { font: 600 0.68rem/1 'Inter', sans-serif; text-align: center; color: var(--muted); padding-bottom: 4px; letter-spacing: 0.08em; }
.plc-grid button { aspect-ratio: 1; max-width: 100%; position: relative; border: 1px solid var(--line); background: var(--white); border-radius: 6px; font: 600 0.95rem/1 'Inter', sans-serif; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.plc-grid button:hover { border-color: var(--gold); }
.plc-grid button.done { background: var(--wc); border-color: var(--wc); color: #fff; }
.plc-grid button.done::after { content: "\2713"; position: absolute; right: 4px; top: 2px; font-size: 10px; }
.plc-grid button.is-today { outline: 2px solid var(--ink); outline-offset: 1px; }
.plc-grid button.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.plc-tracker small { display: block; margin-top: 14px; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
@media (max-width: 900px) { .plc-daily .grid { grid-template-columns: 1fr; } }

.plc-all { padding: 88px 0; }
.plc-all h2 { margin: 10px 0 24px; }
.plc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.plc-tabs button { display: inline-flex; align-items: center; gap: 8px; font: 500 0.9rem/1 'Inter', sans-serif; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.plc-tabs button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--wc); }
.plc-tabs button[aria-selected="true"] { background: var(--wc); border-color: var(--wc); color: #fff; }
.plc-tabs button[aria-selected="true"]::before { background: #fff; }
.plc-weekhead { margin-bottom: 18px; padding-left: 16px; border-left: 4px solid var(--wc); }
.plc-weekhead h3 { font-family: 'Fraunces', serif; font-size: 1.6rem; margin: 0; }
.plc-weekhead p { margin: 4px 0 0; font: italic 400 1.05rem 'Fraunces', serif; color: var(--wc); }
.plc-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.plc-day { position: relative; overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--wc); border-radius: var(--radius-lg); padding: 18px 20px; background: #fff; display: grid; gap: 8px; align-content: start; }
.plc-day.is-today { box-shadow: 0 0 0 2px var(--gold-light); border-color: var(--gold); border-top-color: var(--wc); }
.plc-day .bignum { position: absolute; right: 12px; top: 2px; font: italic 600 4rem/1 'Fraunces', serif; color: var(--wc); opacity: 0.14; }
.plc-day .top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font: 600 0.68rem/1 'Inter', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wc); padding-right: 40px; }
.plc-day .top em { font-style: normal; background: var(--gold); color: var(--ink); padding: 4px 7px; border-radius: 3px; }
.plc-day h4 { margin: 0; padding-right: 40px; font: 600 1.2rem/1.25 'Fraunces', serif; color: var(--ink); }
.plc-day p { margin: 0; font-size: 0.92rem; line-height: 1.55; }
.plc-day p b { color: var(--gold-dark); font-weight: 600; }

.plc-kids { position: relative; padding: 88px 0; }
.plc-kids::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, #c62a2f 0 14.28%, #f28c28 0 28.57%, #f7c832 0 42.85%, #0f8a3c 0 57.14%, #2aa4dc 0 71.42%, #2c3b8f 0 85.71%, #8b2c8f 0); }
.plc-kids .grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.plc-kids h2 { margin: 10px 0 16px; }
.plc-kids ul { padding-left: 20px; margin: 0 0 24px; }
.plc-kids img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: #fff; transform: rotate(1.5deg); }
@media (max-width: 900px) { .plc-kids .grid { grid-template-columns: 1fr; } }

.plc-closing { padding: 96px 0; text-align: center; }
.plc-closing .container-narrow { max-width: 780px; }
.plc-closing p.pr { font: italic 400 1.15rem/1.8 'Fraunces', serif; color: #f3eee4; margin: 20px 0 32px; }
.plc-closing h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }

/* Events page card */
.event-card.is-fast.is-prayer {
  background:
    linear-gradient(90deg, rgba(24,20,15,0.94) 0%, rgba(24,20,15,0.86) 55%, rgba(24,20,15,0.6) 100%),
    url('img/devotional.jpg') center 30% / cover no-repeat;
}

/* Prayer page callout */
.plc-callout { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; padding: 26px 30px; border-radius: var(--radius-lg); color: #e9e4da; }
.plc-callout h3 { font-family: 'Fraunces', serif; color: #fff; font-size: 1.6rem; margin: 6px 0 4px; }
.plc-callout h3 em { color: var(--gold); }
.plc-callout p { margin: 0; color: rgba(255,255,255,0.82); }

.plc button:focus-visible, .plc a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .plc-ticker .track, .plc-lights i.now { animation: none; }
  .plc-bar i { transition: none; }
}

/* The "This month" line in the welcome photo, made louder for November. */
.hero-now.plc-now { align-items: center; max-width: 660px; padding: 16px 18px 16px 20px; background: rgba(20,16,11,0.62); border: 1px solid var(--gold); border-left: 4px solid var(--gold); box-shadow: 0 0 0 4px rgba(212,165,49,0.12), 0 10px 30px rgba(0,0,0,0.35); }
.hero-now.plc-now .msg { font-size: 1.05rem; color: #fff; }
.hero-now.plc-now .plc-now-btn { background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; text-decoration: none; white-space: nowrap; }
.hero-now.plc-now .plc-now-btn:hover { background: #e2b440; color: var(--ink); }

/* November: the welcome at the top of the home page uses the prayer artwork.
   The hands sit on the right of the picture, so the welcome text stays clear. */
.hero-with-photo.plc-hero-art {
  background:
    linear-gradient(95deg, rgba(14,11,8,0.92) 0%, rgba(14,11,8,0.78) 40%, rgba(14,11,8,0.25) 68%, rgba(14,11,8,0.05) 100%),
    #120e0a url('img/prayer-challenge-banner.jpg') right center / cover no-repeat;
}
@media (max-width: 860px) {
  .hero-with-photo.plc-hero-art {
    background:
      linear-gradient(180deg, rgba(14,11,8,0.55) 0%, rgba(14,11,8,0.86) 38%, rgba(14,11,8,0.92) 100%),
      #120e0a url('img/prayer-challenge-banner.jpg') 80% top / auto 420px no-repeat;
  }
}
.plc-ticker + .plc-feature { padding-top: 88px; }
.plc-feature .plc-feature-title { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.02; margin: 12px 0 10px; font-variation-settings: "opsz" 144; color: #fff; }
