/* prayer.moswane.com — supplement on top of the shared EDITH design system.
   assets/styles.css is a verbatim copy of moswane.com/css/styles.css; this file
   only adds the prayer-specific components and page layout. */

/* ── Page shell ─────────────────────────────────────────────── */
body { display: flex; flex-direction: column; min-height: 100vh; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 1.25rem; width: 100%; }
main.wrap { flex: 1; padding-top: 6.5rem; padding-bottom: 3rem; }

/* Ambient glow, layered behind the design system's Tron grid */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 450px at 85% -10%, rgba(108,63,255,0.16), transparent 60%),
    radial-gradient(550px 400px at -10% 40%, rgba(0,180,216,0.08), transparent 60%);
}

/* ── Typography ─────────────────────────────────────────────── */
h1 {
  font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.4rem;
  background: linear-gradient(135deg, var(--text) 60%, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.accent { color: var(--purple-glow); -webkit-text-fill-color: var(--purple-glow); }
h2 { font-size: 1.2rem; font-weight: 700; color: var(--purple-glow); margin-bottom: 0.75rem; }
.subtitle { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }

/* Footer verse */
.footer-brand p { font-style: italic; max-width: 420px; }

/* ── Back links ─────────────────────────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  color: var(--text-muted); text-decoration: none;
  font-size: 0.85rem; font-weight: 600;
  padding: 0.3rem 0.9rem; margin-bottom: 0.9rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-surface);
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.back-link:hover { color: var(--purple-glow); border-color: var(--border-accent); background: var(--bg-elevated); }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem; margin-bottom: 1.5rem;
  position: relative;
}
.card-title {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--purple-glow); font-weight: 700; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.7rem;
}
.card-title::before { content: ''; width: 1.5rem; height: 1px; background: var(--purple); }

/* HUD corner brackets — same treatment the design system gives .project-card */
.card::after, .item::after {
  content: '';
  position: absolute; inset: -7px; pointer-events: none;
  --bk: var(--teal);
  --bl: 16px;
  --bw: 1.5px;
  background-image:
    linear-gradient(var(--bk), var(--bk)), linear-gradient(var(--bk), var(--bk)),
    linear-gradient(var(--bk), var(--bk)), linear-gradient(var(--bk), var(--bk)),
    linear-gradient(var(--bk), var(--bk)), linear-gradient(var(--bk), var(--bk)),
    linear-gradient(var(--bk), var(--bk)), linear-gradient(var(--bk), var(--bk));
  background-repeat: no-repeat;
  background-size:
    var(--bl) var(--bw), var(--bw) var(--bl),
    var(--bl) var(--bw), var(--bw) var(--bl),
    var(--bl) var(--bw), var(--bw) var(--bl),
    var(--bl) var(--bw), var(--bw) var(--bl);
  background-position:
    top left, top left, top right, top right,
    bottom left, bottom left, bottom right, bottom right;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity var(--mid) var(--ease), transform var(--mid) var(--ease);
}
.card:hover::after, .item:hover::after { opacity: 0.85; transform: scale(1); }

/* Cursor-tracked spotlight (class + coords set by app.js), matching .project-card.
   Excludes gradient-tinted cards so their background shorthand survives. */
.spot-lit:not(.verse-card):not(.scripture-card):not(.study-card):not(.partner-notes):not(.today-card):not(.tl-today):not(.tl-focus) {
  background-image: radial-gradient(
    340px circle at var(--mx, -400px) var(--my, -400px),
    rgba(139,106,255,0.10),
    transparent 65%
  );
}

/* ── Verse of the day ───────────────────────────────────────── */
.verse-card { border-left: 3px solid var(--purple); background: linear-gradient(135deg, var(--purple-dim), var(--bg-surface) 60%); }
.verse-text { font-size: 1.1rem; font-style: italic; color: var(--text); margin-bottom: 0.5rem; }
.verse-ref { color: var(--purple-glow); font-weight: 600; font-size: 0.9rem; }

/* ── Flash messages ─────────────────────────────────────────── */
.flash { padding: 0.8rem 1.1rem; border-radius: 10px; margin-bottom: 1.25rem; border: 1px solid; font-size: 0.95rem; }
.flash-success { background: rgba(74,222,128,0.12); border-color: rgba(74,222,128,0.35); color: var(--green); }
.flash-error { background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.35); color: var(--red); }

/* ── Forms (generic — the design system only styles .contact-form) ── */
.form-group { margin-bottom: 1.1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.9rem; color: var(--text); }
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--border);
  border-radius: 10px; background: var(--bg-elevated); font-family: inherit;
  font-size: 1rem; color: var(--text);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-dim);
}
select option { background: var(--bg-elevated); color: var(--text); }
.hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ── Buttons — bare .btn defaults to the primary look ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--purple); color: #fff;
  border: none; border-radius: 999px; padding: 0.6rem 1.5rem;
  font-family: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer;
  text-decoration: none; white-space: normal;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.btn:hover { background: var(--purple-glow); transform: translateY(-1px); box-shadow: 0 4px 20px var(--purple-dim); }
.btn-secondary { background: transparent; color: var(--purple-glow); border: 1px solid var(--border-accent); }
.btn-secondary:hover { background: var(--purple-dim); color: var(--purple-glow); box-shadow: none; }
.btn-small { padding: 0.35rem 1rem; font-size: 0.85rem; }
.btn-danger { background: transparent; color: var(--red); border: 1px solid rgba(248,113,113,0.35); }
.btn-danger:hover { background: rgba(248,113,113,0.12); color: var(--red); box-shadow: none; }

/* ── Auth pages ─────────────────────────────────────────────── */
.auth-box { max-width: 430px; margin: 2rem auto; }
.auth-box .card { padding: 2rem; }
.auth-box h1 { text-align: center; margin-bottom: 1.25rem; font-size: 2.4rem; }
.auth-alt { text-align: center; margin-top: 1rem; color: var(--text-muted); font-size: 0.9rem; }
.auth-alt a { color: var(--purple-glow); }

/* ── Progress ───────────────────────────────────────────────── */
.progress-row { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.progress-box { flex: 1; min-width: 220px; }
.progress-box strong { font-weight: 700; }
.progress-bar-track {
  background: var(--bg-hover); border-radius: 999px; height: 10px; overflow: hidden; margin-top: 0.5rem;
}
.progress-bar-fill {
  background: linear-gradient(90deg, var(--purple), var(--purple-glow));
  height: 100%; border-radius: 999px; transition: width 0.3s var(--ease);
}
.progress-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.4rem; }

/* ── Shared bits: eyebrow, pills, large button ──────────────── */
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal); margin-bottom: 0.6rem;
}
.pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--font); font-size: 0.62rem; font-weight: 700; line-height: 1.5;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 0.1rem 0.55rem; border-radius: 999px; border: 1px solid transparent;
}
.pill-today { background: var(--purple); color: #fff; box-shadow: 0 0 12px rgba(108,63,255,0.55); }
.pill-next { background: var(--teal-dim); color: var(--teal); border-color: rgba(0,180,216,0.3); }
.pill-catchup { background: rgba(251,191,36,0.12); color: var(--amber); border-color: rgba(251,191,36,0.3); }
.pill-done { background: rgba(74,222,128,0.12); color: var(--green); border-color: rgba(74,222,128,0.3); }
.btn-lg { padding: 0.8rem 1.6rem; font-size: 1rem; box-shadow: 0 6px 28px rgba(108,63,255,0.35); }

/* ── Plan switcher ──────────────────────────────────────────── */
.plan-switch {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.35rem;
  padding: 0.35rem; margin-bottom: 1.25rem;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px;
}
.ps-opt {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.65rem 1rem; border-radius: 12px; border: 1px solid transparent;
  text-decoration: none; color: var(--text-muted);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.ps-opt:hover { color: var(--text); background: var(--bg-elevated); }
.ps-opt.active {
  color: var(--text); border-color: var(--border-accent);
  background: linear-gradient(135deg, rgba(108,63,255,0.3), rgba(108,63,255,0.1));
  box-shadow: 0 4px 22px rgba(108,63,255,0.2);
}
.ps-name { font-weight: 700; font-size: 0.95rem; }
.ps-meta { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.ps-meta b { color: var(--teal); font-weight: 700; }
.ps-opt.active .ps-meta { color: var(--purple-glow); }

/* ── Plan hero ──────────────────────────────────────────────── */
.plan-hero {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 0.5rem;
  background-size: cover; background-position: center 35%; background-color: var(--bg-surface);
}
.plan-hero-inner {
  background: linear-gradient(180deg, rgba(10,10,15,0.45) 0%, rgba(10,10,15,0.82) 42%, rgba(10,10,15,0.95) 100%);
  padding: 3.2rem 2.2rem 2rem;
}
.plan-hero h1 { font-size: 2.7rem; margin-bottom: 0.9rem; }
/* Chip backing keeps the eyebrow legible over bright sky photos */
.plan-hero .eyebrow {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px;
  background: rgba(10,10,15,0.6); border: 1px solid rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.plan-verse {
  max-width: 620px; margin: 0 0 0.9rem; padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid var(--purple);
  font-size: 1.15rem; font-style: italic; line-height: 1.6; color: var(--text);
}
.plan-verse cite { display: block; margin-top: 0.3rem; font-style: normal; font-size: 0.8rem; font-weight: 600; color: var(--purple-glow); }
.plan-intro { max-width: 620px; color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.6rem; }
.plan-hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; }
.plan-note { margin-top: 1rem; color: var(--amber); font-size: 0.88rem; }
.plan-note i { margin-right: 0.35rem; }

/* ── Progress rings ─────────────────────────────────────────── */
.rings { display: flex; gap: 1.1rem; }
.ring { position: relative; width: 76px; text-align: center; flex: none; }
.ring svg { display: block; width: 76px; height: 76px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 6; }
.ring-fill {
  fill: none; stroke: var(--purple-glow); stroke-width: 6; stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(139,106,255,0.55));
  transition: stroke-dashoffset 1.1s var(--ease);
}
.ring-partner .ring-fill { stroke: var(--teal); filter: drop-shadow(0 0 5px rgba(0,180,216,0.5)); }
.ring-empty .ring-fill { visibility: hidden; }
.ring-num {
  position: absolute; top: 0; left: 0; width: 76px; height: 76px;
  display: flex; align-items: baseline; justify-content: center; padding-top: 26px;
  font-family: var(--mono);
}
.ring-num strong { font-size: 1.15rem; color: var(--text); }
.ring-num span { font-size: 0.7rem; color: var(--text-dim); }
.ring-cap {
  margin-top: 0.35rem; font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Plan weeks & timeline ──────────────────────────────────── */
.week { margin-top: 2rem; }
.week .week-banner { margin-top: 0; }
.wb-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.wb-label {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.72); margin-bottom: 0.25rem;
}
.wb-count {
  flex: none; font-family: var(--mono); font-size: 0.78rem; color: rgba(255,255,255,0.82);
  background: rgba(10,10,15,0.55); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px; padding: 0.25rem 0.75rem;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.wb-count strong { color: var(--green); }

.timeline { list-style: none; position: relative; margin-top: 0.9rem; }
/* Spine: shows in the gaps between rows, linking the date tiles */
.timeline::before {
  content: ''; position: absolute; left: 43px; top: 1rem; bottom: 1rem; width: 2px;
  background: linear-gradient(var(--border-accent), rgba(108,63,255,0.06));
}
.timeline > li { position: relative; margin-bottom: 0.6rem; }
.tl-row {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 14px;
  align-items: center; gap: 1rem; padding: 0.75rem 1.1rem 0.75rem 0.75rem;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; color: var(--text);
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--mid) var(--ease);
}
.tl-row:hover { border-color: var(--border-accent); background-color: var(--bg-elevated); transform: translateX(3px); }
.tl-tile {
  width: 64px; height: 64px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg-elevated); border: 1px solid var(--border);
  font-family: var(--mono); line-height: 1.1;
}
.tl-dow, .tl-mon { font-size: 0.58rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }
.tl-big { font-family: var(--font); font-size: 1.35rem; font-weight: 800; color: var(--text); margin: 1px 0; }
.tl-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.tl-meta {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.66rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--purple-glow);
}
.tl-theme { font-weight: 700; font-size: 1rem; }
.tl-passage { color: var(--text-muted); font-size: 0.84rem; }
.tl-status { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; font-size: 0.78rem; }
.who { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text-dim); white-space: nowrap; }
.who-done { color: var(--green); }
.tl-go { color: var(--text-dim); font-size: 0.8rem; transition: transform var(--fast) var(--ease), color var(--fast) var(--ease); }
.tl-row:hover .tl-go { color: var(--purple-glow); transform: translateX(3px); }

.tl-today, .tl-focus {
  border-color: var(--purple);
  background: linear-gradient(90deg, rgba(108,63,255,0.16), var(--bg-surface) 60%);
  box-shadow: 0 0 0 3px var(--purple-dim), 0 8px 30px rgba(108,63,255,0.2);
}
.tl-today .tl-tile, .tl-focus .tl-tile { background: var(--purple); border-color: var(--purple-glow); box-shadow: 0 0 18px rgba(108,63,255,0.5); }
.tl-today .tl-tile *, .tl-focus .tl-tile * { color: #fff; }
.tl-done .tl-tile { background: rgba(74,222,128,0.1); border-color: rgba(74,222,128,0.35); box-shadow: none; }
.tl-done .tl-tile * { color: var(--green); }
.tl-catchup .tl-tile { border-color: rgba(251,191,36,0.4); }

.tl-row.last-visited { border-color: rgba(0,180,216,0.5); }
.tl-row.last-visited::after {
  content: 'Last visited'; position: absolute; top: -0.55rem; right: 1rem;
  background: var(--teal); color: var(--bg);
  font-size: 0.56rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: 999px; padding: 0.08rem 0.5rem;
}

/* Rest (on-call) nights sit on the spine between readings */
.tl-rest { display: flex; align-items: center; gap: 1rem; padding: 0.2rem 0.75rem; margin-bottom: 0.6rem; color: var(--text-dim); font-size: 0.8rem; }
.tl-rest-date {
  position: relative; width: 64px; flex: none; text-align: center;
  font-family: var(--mono); font-size: 0.58rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--bg); border: 1px dashed rgba(255,255,255,0.16); border-radius: 999px; padding: 0.15rem 0;
}
.tl-rest i { color: var(--purple-glow); opacity: 0.75; margin-right: 0.3rem; }

/* ── Dashboard: today's reading & other plans ───────────────── */
.today-card { border-left: 3px solid var(--purple); background: linear-gradient(135deg, rgba(108,63,255,0.16), var(--bg-surface) 55%); }
.today-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; flex-wrap: wrap; }
.today-plan {
  font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); text-decoration: none; transition: color var(--fast) var(--ease);
}
.today-plan:hover { color: var(--teal); }
.today-grid { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.today-main { flex: 1; min-width: 0; }
.today-meta {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--purple-glow);
}
.today-theme { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); margin: 0.3rem 0 0.35rem; }
.today-passage { color: var(--text-muted); font-weight: 600; font-size: 0.92rem; margin-bottom: 0.75rem; }
.today-passage i { color: var(--teal); margin-right: 0.3rem; }
.today-rest { color: var(--text); font-size: 1rem; margin-bottom: 0.5rem; }
.today-rest i { color: var(--amber); margin-right: 0.35rem; }
.today-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.today-card .hint { margin-top: 1rem; }

.plan-list { list-style: none; }
.plan-list li + li { margin-top: 0.6rem; }
.plan-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(160px, 220px) 14px;
  align-items: center; gap: 1rem; padding: 0.7rem;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; color: var(--text);
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.plan-row:hover { border-color: var(--border-accent); transform: translateX(3px); }
.plan-thumb { width: 64px; height: 64px; border-radius: 10px; background-size: cover; background-position: center; }
.plan-row-name { display: block; font-weight: 700; }
.plan-row-tag { display: block; color: var(--text-muted); font-size: 0.85rem; }
.plan-row-progress { display: flex; flex-direction: column; gap: 0.45rem; }
.mini { display: block; }
.mini-label { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-muted); }
.mini-label b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.mini .progress-bar-track { display: block; height: 6px; margin-top: 0.2rem; }
.mini .progress-bar-fill { display: block; }
.fill-teal { background: linear-gradient(90deg, #0090AD, var(--teal)); }
.plan-row-go { color: var(--text-dim); font-size: 0.8rem; }

/* ── Day page ───────────────────────────────────────────────── */
.day-header { margin-bottom: 1rem; }
.day-header h1 { font-size: 2.3rem; margin-bottom: 0.2rem; }
.day-eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--purple-glow); margin-bottom: 0.4rem;
}
.dot-sep::before { content: '·'; margin-right: 0.5rem; color: var(--text-dim); }
.day-week { color: var(--text-muted); font-size: 0.9rem; }
.passage-badge {
  display: inline-block; background: var(--purple-dim); color: var(--purple-glow);
  border: 1px solid var(--border-accent);
  border-radius: 999px; padding: 0.4rem 1.1rem; font-size: 0.9rem; font-weight: 600; margin-top: 0.75rem;
}
.passage-badge i { margin-right: 0.35rem; }
.prompt { font-style: italic; color: var(--text-muted); margin-bottom: 0.6rem; font-size: 0.95rem; }

/* Day strip: every day of the plan, one tap away */
.day-strip {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem;
  margin: 0.25rem 0 1.5rem; padding: 0.75rem 0.9rem;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px;
}
.ds-week { display: flex; align-items: center; gap: 0.3rem; }
.ds-wk { font-family: var(--mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; color: var(--text-dim); margin-right: 0.2rem; }
.ds-pill {
  position: relative; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 700; color: var(--text-muted);
  background: var(--bg-elevated); border: 1px solid var(--border); text-decoration: none;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.ds-pill:hover { border-color: var(--border-accent); color: var(--text); transform: translateY(-1px); }
.ds-done { background: rgba(74,222,128,0.12); border-color: rgba(74,222,128,0.4); color: var(--green); }
.ds-current { background: var(--purple); border-color: var(--purple-glow); color: #fff; box-shadow: 0 0 14px rgba(108,63,255,0.55); }
.ds-current:hover { color: #fff; }
.ds-today::after {
  content: ''; position: absolute; bottom: -7px; left: 50%; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--teal); box-shadow: 0 0 6px var(--teal);
}

/* Save panel with toggle switches */
.save-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.save-panel .btn { margin-left: auto; padding: 0.7rem 1.9rem; }
.toggle { position: relative; display: flex; align-items: center; gap: 0.75rem; margin: 0; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-track {
  position: relative; flex: none; width: 44px; height: 24px; border-radius: 999px;
  background: var(--bg-hover); border: 1px solid var(--border);
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.toggle-track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--text-muted); transition: transform var(--mid) var(--ease), background var(--fast) var(--ease);
}
.toggle input:checked + .toggle-track { background: var(--purple); border-color: var(--purple-glow); }
.toggle input#shared:checked + .toggle-track { background: var(--teal); border-color: var(--teal); }
.toggle input:checked + .toggle-track::after { transform: translateX(20px); background: #fff; }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--purple-glow); outline-offset: 2px; }
.toggle-text { display: flex; flex-direction: column; font-size: 0.92rem; font-weight: 600; }
.toggle-text small { font-size: 0.74rem; font-weight: 400; color: var(--text-dim); }

/* Previous / next day */
.day-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1.75rem 0 1rem; }
.dn {
  display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 1.1rem;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; text-decoration: none;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.dn:hover { border-color: var(--border-accent); background: var(--bg-elevated); transform: translateY(-2px); }
.dn-next { grid-column: 2; align-items: flex-end; text-align: right; }
.dn-dir { font-family: var(--mono); font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--purple-glow); }
.dn-title { color: var(--text); font-weight: 600; font-size: 0.95rem; }

/* ── Prayer wall & journal lists ────────────────────────────── */
.item-list { list-style: none; }
.item {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.2rem 1.4rem; margin-bottom: 1rem;
  position: relative;
  transition: border-color var(--fast) var(--ease);
}
.item:hover { border-color: var(--border-accent); }
.item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.item-title { font-weight: 600; font-size: 1rem; }
.item-title a { color: var(--text); text-decoration: none; }
.item-title a:hover { color: var(--purple-glow); }
.item-meta { color: var(--text-dim); font-family: var(--mono); font-size: 0.75rem; }
.item-body { margin-top: 0.55rem; white-space: pre-wrap; color: var(--text-muted); font-size: 0.95rem; }
.item-actions { margin-top: 0.85rem; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

.badge { text-transform: uppercase; letter-spacing: 0.06em; }
.badge-request { background: rgba(251,191,36,0.12); color: var(--amber); }
.badge-answered { background: rgba(74,222,128,0.12); color: var(--green); }
.badge-private { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.badge-shared { background: var(--teal-dim); color: var(--teal); }
.badge-note { background: var(--purple-dim); color: var(--purple-glow); }

/* Prayer Wall sections */
.wall-head { display: flex; align-items: center; gap: 0.55rem; margin: 2rem 0 0.9rem; }
.wall-head i { font-size: 0.95rem; color: var(--teal); }
.wall-count {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 999px; padding: 0.05rem 0.55rem;
}
.note-item { border-left: 3px solid var(--purple); }
.note-label {
  margin-top: 0.85rem; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--purple-glow);
}
.note-label + .item-body { margin-top: 0.2rem; }

/* Shared plan notes are collapsible cards, closed by default */
.note-sum { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; list-style: none; }
.note-sum::-webkit-details-marker { display: none; }
.note-sum-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.note-teaser {
  margin-top: 0.35rem; color: var(--text-muted); font-size: 0.9rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.note[open] .note-teaser { display: none; }
.note-chev {
  flex: none; width: 30px; height: 30px; border-radius: 50%; margin-top: 0.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--purple-dim); color: var(--purple-glow); font-size: 0.75rem;
  transition: transform var(--mid) var(--ease), background var(--fast) var(--ease);
}
.note-sum:hover .note-chev { background: var(--purple); color: #fff; }
.note[open] .note-chev { transform: rotate(180deg); }
.note-sum:focus-visible { outline: 2px solid var(--purple-glow); outline-offset: 4px; border-radius: 8px; }
.note-body { margin-top: 0.2rem; }

/* Long prayer requests collapse to a preview (class added by app.js) */
.clamp.is-clamped {
  max-height: 8.2rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.clamp-short.is-clamped { max-height: 5.4rem; }
.clamp-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.35rem; padding: 0.3rem 0; background: none; border: 0;
  font-family: inherit; font-size: 0.85rem; font-weight: 600; color: var(--purple-glow); cursor: pointer;
}
.clamp-toggle i { font-size: 0.7rem; transition: transform var(--mid) var(--ease); }
.clamp-toggle.open i { transform: rotate(180deg); }
.clamp-toggle:hover { color: var(--text); }

/* Back-to-top lives bottom-right: text is left-aligned, so the left edge is where content is */
.back-to-top { left: auto; right: 24px; }
.who-note { color: var(--teal); }
.day-eyebrow a.pill { text-decoration: none; }

.answered-note {
  margin-top: 0.7rem; padding: 0.7rem 1rem; background: rgba(74,222,128,0.12);
  border-left: 3px solid var(--green); border-radius: 8px; font-size: 0.9rem;
}

.empty { color: var(--text-dim); font-style: italic; padding: 1rem 0; }
.inline-form { display: inline; }

/* ── Page hero banner (image, dashboard) ────────────────────── */
.page-hero {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 1.5rem;
  background-size: cover; background-position: center;
  background-color: var(--bg-surface);
}
.page-hero-inner {
  background: linear-gradient(180deg, rgba(10,10,15,0.45) 0%, rgba(10,10,15,0.88) 100%);
  padding: 3.2rem 2.2rem 2.2rem;
}
.page-hero h1 { font-size: 2.4rem; margin-bottom: 0.3rem; }
.page-hero .subtitle { margin-bottom: 0; color: var(--text-muted); }

/* ── Week banners on the plan page ──────────────────────────── */
.week-banner {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); margin-top: 2rem;
  background-size: cover; background-position: center;
  background-color: var(--bg-surface);
}
.wb-inner {
  background: linear-gradient(90deg, rgba(10,10,15,0.88) 0%, rgba(10,10,15,0.35) 100%);
  padding: 1.7rem 1.6rem;
}
.week-banner h2 { margin: 0; color: #fff; font-size: 1.3rem; text-shadow: 0 2px 12px rgba(0,0,0,0.7); }

/* ── Scripture blocks ───────────────────────────────────────── */
.scripture-card { border-left: 3px solid var(--teal); }
.scripture-passage { margin-bottom: 1rem; }
.scripture-passage:last-of-type { margin-bottom: 0; }
.scripture-ref { font-weight: 700; color: var(--text); margin-bottom: 0.35rem; font-size: 0.95rem; }
.scripture-passage p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.9; }
.scripture-passage sup {
  color: var(--purple-glow); font-weight: 700; font-size: 0.65em;
  margin: 0 3px 0 6px;
}
.scripture-passage sup:first-child { margin-left: 0; }
.scripture-trans {
  color: var(--text-dim); font-family: var(--mono); font-size: 0.66rem; margin-top: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.scripture-toolbar { display: flex; justify-content: flex-end; margin-bottom: 0.6rem; }
.translation-select {
  width: auto; padding: 0.25rem 0.7rem; font-size: 0.78rem;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-elevated); color: var(--text-muted);
  cursor: pointer;
}
.translation-select:hover { border-color: var(--border-accent); color: var(--text); }
.scripture-loading { color: var(--text-dim); font-style: italic; animation: pulse 1.4s ease-in-out infinite; }
.scripture-error { color: var(--text-muted); font-size: 0.9rem; }
.scripture-error a { color: var(--purple-glow); }
.scripture-note { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0.7rem; }
.scripture-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.scripture-ext { text-decoration: none; }
@keyframes pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

.verse-card .scripture-passage p { font-style: italic; font-size: 1.08rem; }

/* ── Reveal-on-scroll (classes applied by app.js) ───────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Confetti ───────────────────────────────────────────────── */
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }

/* ── Draft restored hint ────────────────────────────────────── */
.draft-restored { border-color: var(--amber) !important; }

/* ── Deep Study accordion ───────────────────────────────────── */
.study-card { border-left: 3px solid var(--purple); }
.study-sec {
  border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 0.6rem; background: var(--bg-elevated);
  overflow: hidden;
}
.study-sec:last-child { margin-bottom: 0; }
.study-sec summary {
  cursor: pointer; padding: 0.75rem 1rem;
  font-weight: 600; font-size: 0.95rem; color: var(--text);
  list-style: none; display: flex; align-items: center; gap: 0.5rem;
  transition: background var(--fast) var(--ease);
}
.study-sec summary::-webkit-details-marker { display: none; }
.study-sec summary::after {
  content: '+'; margin-left: auto; color: var(--purple-glow);
  font-weight: 700; font-size: 1.1rem;
}
.study-sec[open] summary::after { content: '–'; }
.study-sec summary:hover { background: var(--bg-hover); }
.study-sec[open] summary { border-bottom: 1px solid var(--border); }
.study-body { padding: 0.9rem 1rem 1rem; }
.study-body p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.75; }
.study-hint { font-weight: 400; font-size: 0.72rem; color: var(--text-dim); }
.study-words { list-style: none; }
.study-words li { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 0.6rem; }
.study-words li:last-child { margin-bottom: 0; }
.study-words strong { color: var(--text); }
.study-orig { color: var(--teal); font-style: italic; font-size: 0.85rem; }
.study-list { padding-left: 1.1rem; }
.study-list li { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 0.5rem; }
.study-list li::marker { color: var(--purple-glow); }

/* ── Cross-reference chips ──────────────────────────────────── */
.xref-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.6rem; }
.xref-chip {
  background: var(--purple-dim); color: var(--purple-glow);
  border: 1px solid var(--border-accent); border-radius: 999px;
  padding: 0.3rem 0.9rem; font-family: inherit; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.xref-chip:hover { background: var(--purple); color: #fff; }
.xref-chip.active { background: var(--purple); color: #fff; }
.xref-target { margin-top: 0.4rem; }
.xref-target .scripture-passage p { font-size: 0.92rem; }

/* ── Partner's shared notes ─────────────────────────────────── */
.partner-notes { border-left: 3px solid var(--teal); margin-top: 1.5rem; }
.partner-notes .card-title { color: var(--teal); }
.partner-notes .card-title::before { background: var(--teal); }
.partner-note-label {
  font-weight: 700; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--text); margin-bottom: 0.3rem;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  main.wrap { padding-top: 5.75rem; }
}
@media (max-width: 640px) {
  .back-to-top { left: auto; right: 12px; }
}
@media (max-width: 600px) {
  .plan-hero .eyebrow { font-size: 0.6rem; letter-spacing: 0.05em; padding: 0.25rem 0.65rem; }
  .plan-hero-inner { padding: 2.2rem 1.3rem 1.5rem; }
  .plan-hero h1 { font-size: 2rem; }
  .plan-verse { font-size: 1.02rem; }
  .plan-hero-foot { flex-direction: column; align-items: stretch; }
  .plan-hero-foot .rings { justify-content: center; }
  .ps-opt { padding: 0.55rem 0.75rem; }

  .timeline::before { left: 37px; }
  .tl-row { grid-template-columns: 52px minmax(0, 1fr); gap: 0.4rem 0.85rem; padding: 0.7rem; }
  .tl-tile { width: 52px; height: 58px; }
  .tl-big { font-size: 1.15rem; }
  .tl-status { grid-column: 2; flex-direction: row; flex-wrap: wrap; gap: 0.25rem 0.9rem; }
  .tl-go { display: none; }
  .tl-rest { padding-left: 0.7rem; gap: 0.85rem; }
  .tl-rest-date { width: 52px; }
  .tl-rest-dow { display: none; }

  .today-grid { flex-direction: column; align-items: stretch; }
  .today-rings { justify-content: center; }
  .today-theme { font-size: 1.45rem; }

  .plan-row { grid-template-columns: 52px minmax(0, 1fr); }
  .plan-thumb { width: 52px; height: 52px; }
  .plan-row-progress { grid-column: 1 / -1; }
  .plan-row-go { display: none; }

  .day-header h1 { font-size: 1.75rem; }
  .save-panel .btn { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  /* Wider reading column on phones */
  .card { padding: 1.2rem 1.1rem; }
  .item { padding: 1.05rem 1.1rem; }
  .study-body { padding: 0.8rem 0.85rem 0.9rem; }
  .study-sec summary { padding: 0.7rem 0.85rem; flex-wrap: wrap; }
  .study-hint { order: 3; flex-basis: 100%; margin-top: -0.15rem; }
  h1 { font-size: 1.45rem; }
  .page-hero h1 { font-size: 1.7rem; }
  .page-hero-inner { padding: 2.2rem 1.4rem 1.6rem; }
  .day-nav { grid-template-columns: 1fr; gap: 0.6rem; }
  .dn-next { grid-column: auto; }
}

/* ── In-depth plans: aim, verse to carry, walk-through, practice, read dates ── */
.day-aim { margin-top: 0.9rem; max-width: 46rem; color: var(--text-muted); font-size: 0.98rem; line-height: 1.6; }
.day-aim span {
  display: block; font-family: var(--mono); font-size: 0.64rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--purple-glow); margin-bottom: 0.15rem;
}
.pill-partner { background: var(--teal-dim); color: var(--teal); border-color: rgba(0,180,216,0.3); }

.key-verse { border-left: 3px solid var(--teal); }
.key-verse .card-title i, .practice-card .card-title i { margin-right: 0.35rem; }
.key-verse .scripture-passage p { font-size: 1.08rem; line-height: 1.75; color: var(--text); }
.key-verse .hint { margin-top: 0.6rem; }

.study-walk { list-style: none; counter-reset: walk; }
.study-walk li {
  position: relative; padding: 0 0 0.9rem 2.1rem; margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--border); counter-increment: walk;
}
.study-walk li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.study-walk li::before {
  content: counter(walk); position: absolute; left: 0; top: 0.05rem;
  width: 1.45rem; height: 1.45rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--purple-dim); color: var(--purple-glow);
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
}
.walk-ref { display: block; font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: var(--teal); margin-bottom: 0.2rem; }
.walk-note { display: block; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

.prompt-more { margin: 0 0 0.8rem 1.1rem; }
.prompt-more li { color: var(--text-dim); font-size: 0.88rem; line-height: 1.6; margin-bottom: 0.3rem; }
.prompt-more li::marker { color: var(--purple-glow); }

.practice-card { border-left: 3px solid var(--amber); }
.practice-card p { color: var(--text); font-size: 0.98rem; line-height: 1.7; }

.read-on { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; flex-wrap: wrap; }
.read-on-label { display: flex; flex-direction: column; font-size: 0.92rem; font-weight: 600; }
.read-on-label small { font-size: 0.74rem; font-weight: 400; color: var(--text-dim); }
.read-on input[type="date"] {
  width: auto; min-width: 11rem; font-size: 16px; padding: 0.5rem 0.7rem;
  background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); border-radius: 10px;
  color-scheme: dark;
}

.who-date { font-family: var(--mono); font-size: 0.68rem; color: var(--text-muted); }
.who-done .who-date { color: var(--green); opacity: 0.85; }

.week-intro { margin: 0.2rem 0 1rem; padding: 0 0.25rem; }
.week-intro p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.7; max-width: 48rem; }
.week-memory { margin-top: 0.45rem; font-size: 0.85rem !important; }
.week-memory i { color: var(--teal); margin-right: 0.3rem; }
.week-memory strong { color: var(--text); }

.plan-guide summary { display: flex; align-items: baseline; gap: 0.6rem; cursor: pointer; list-style: none; flex-wrap: wrap; }
.plan-guide summary::-webkit-details-marker { display: none; }
.plan-guide summary .card-title { margin-bottom: 0; }
.plan-guide summary::after { content: '+'; margin-left: auto; color: var(--purple-glow); font-weight: 700; }
.plan-guide[open] summary::after { content: '–'; }
.guide-steps { list-style: none; counter-reset: gs; margin: 1rem 0 0.8rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.75rem; }
.guide-steps li {
  counter-increment: gs; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.75rem 0.9rem; font-size: 0.9rem;
}
.guide-steps li strong::before { content: counter(gs) '. '; color: var(--purple-glow); }
.guide-steps li em { font-family: var(--mono); font-style: normal; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal); margin-left: 0.35rem; }
.guide-steps li span { display: block; margin-top: 0.3rem; color: var(--text-muted); font-size: 0.86rem; line-height: 1.55; }

@media (max-width: 640px) {
  .study-walk li { padding-left: 1.9rem; }
  .read-on input[type="date"] { width: 100%; }
}
