/* ===================================================================
   Bible Christian Ministry — v2
   White-paper editorial. Red as the only colour. No clutter.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bcm-red:        #C0152A;
  --bcm-red-deep:   #8E0E1F;
  --bcm-red-soft:   #E03A4E;
  --bcm-red-wash:   #FBE9EB;

  --ink:            #0A0A0B;
  --ink-2:          #2A2A2D;
  --ink-3:          #5A5A5F;
  --ink-4:          #8A8A90;

  --paper:          #FFFFFF;
  --paper-2:        #FAFAFA;
  --paper-warm:     #F6F2EC;
  --rule:           #E8E5E0;
  --rule-strong:    #C9C5BC;

  --font-display:   'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max:            1240px;
  --gutter:         clamp(20px, 4vw, 48px);

  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      14px;

  --ease:           cubic-bezier(.2, .7, .2, 1);
  --t:              .35s var(--ease);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }
::selection { background: var(--bcm-red); color: #fff; }

/* ---- Typography scale ---- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bcm-red);
}
.eyebrow.muted { color: var(--ink-3); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.015em; line-height: 1.1; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 400; line-height: 1.05; letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }

p { color: var(--ink-2); }
.lead { font-size: 1.18rem; line-height: 1.55; color: var(--ink-2); }
.dim  { color: var(--ink-3); }

em { font-style: italic; }

/* ---- Layout primitives ---- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--alt { background: var(--paper-2); }
.section--warm { background: var(--paper-warm); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: rgba(255,255,255,.7); }

.rule {
  height: 1px; background: var(--rule); border: 0; margin: 0;
}
.rule--red {
  height: 2px; width: 56px; background: var(--bcm-red); border: 0; margin-bottom: 24px;
}

/* ===================================================================
   Topbar — single thin red line, no clutter
   =================================================================== */
.topbar {
  background: var(--bcm-red);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .04em;
  text-align: center;
  padding: 9px 16px;
}
.topbar a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 1px; }

/* ===================================================================
   Navigation
   =================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__shield { width: 32px; height: 38px; }
.brand__name { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; line-height: 1; color: var(--ink); }
.brand__sub  { display: block; font-family: var(--font-body); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }

.nav__links { display: flex; gap: 28px; margin-left: auto; list-style: none; }
.nav__links a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 6px 0; position: relative; transition: var(--t);
}
.nav__links a:hover { color: var(--bcm-red); }
.nav__links a.active { color: var(--ink); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--bcm-red);
}

.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bcm-red); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  transition: var(--t);
}
.nav__cta:hover { background: var(--bcm-red-deep); transform: translateY(-1px); }
.nav__cta::after { content: "→"; font-weight: 400; }
.nav__signin {
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  padding: 6px 4px; transition: var(--t);
}
.nav__signin:hover { color: var(--bcm-red); }

.nav__hamburger { display: none; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 6px; }
.nav__hamburger span { display: block; width: 18px; height: 1.6px; background: var(--ink); margin: 3px 0; }

@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}

/* ===================================================================
   Hero — split layout, editorial
   =================================================================== */
.hero {
  padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 10vw, 140px);
  background:
    radial-gradient(ellipse 80% 50% at 90% 20%, rgba(192,21,42,.04), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--rule);
}
.hero__grid {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.hero__eyebrow::before { content: ""; display: block; width: 28px; height: 2px; background: var(--bcm-red); }
.hero h1 { margin-bottom: 28px; }
.hero h1 em { color: var(--bcm-red); font-style: italic; font-weight: 400; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--ink-2); max-width: 540px; line-height: 1.55; margin-bottom: 40px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; letter-spacing: .01em;
  transition: var(--t); cursor: pointer; white-space: nowrap;
}
.btn--primary { background: var(--bcm-red); color: #fff; }
.btn--primary:hover { background: var(--bcm-red-deep); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(192,21,42,.22); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--link { padding: 0; background: 0; color: var(--bcm-red); font-weight: 600; }
.btn--link::after { content: "→"; transition: transform var(--t); }
.btn--link:hover::after { transform: translateX(4px); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero card on right — daily verse */
.hero__card {
  position: relative;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 48px);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 24px 60px -30px rgba(15,15,20,.18);
}
.hero__card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--bcm-red);
}
.hero__card-date { font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.hero__card-passage { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--bcm-red); margin-top: 8px; letter-spacing: .04em; }
.hero__card-title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 1.95rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.18; margin-top: 18px; }
.hero__card-quote { margin-top: 22px; padding-left: 18px; border-left: 2px solid var(--bcm-red-wash); font-family: var(--font-display); font-style: italic; font-size: 1.02rem; line-height: 1.5; color: var(--ink-2); }
.hero__card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--rule); }
.hero__card-meta span { font-size: 12.5px; color: var(--ink-3); }

/* Big shield watermark behind hero card */
.hero__watermark {
  position: absolute; right: -40px; bottom: -40px;
  width: 220px; opacity: .04; pointer-events: none;
}

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
}

/* ===================================================================
   Pillars — three columns, no icons, numbered
   =================================================================== */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pillar {
  padding: clamp(36px, 4.5vw, 64px) clamp(24px, 3vw, 48px);
  border-right: 1px solid var(--rule);
  transition: var(--t);
  position: relative;
}
.pillar:last-child { border-right: 0; }
.pillar:hover { background: var(--paper-2); }
.pillar__num { font-family: var(--font-display); font-size: 1.1rem; color: var(--bcm-red); font-weight: 500; letter-spacing: .02em; }
.pillar h3 { margin-top: 16px; margin-bottom: 14px; font-size: 1.6rem; font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; }
.pillar p { font-size: .98rem; color: var(--ink-3); line-height: 1.65; margin-bottom: 22px; }
.pillar__link { font-size: 13.5px; font-weight: 600; color: var(--bcm-red); display: inline-flex; align-items: center; gap: 8px; }
.pillar__link::after { content: "→"; transition: transform var(--t); }
.pillar:hover .pillar__link::after { transform: translateX(4px); }

@media (max-width: 880px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--rule); }
  .pillar:last-child { border-bottom: 0; }
}

/* ===================================================================
   Today's Word — feature
   =================================================================== */
.today {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.today__meta { position: sticky; top: 100px; }
.today__date { font-family: var(--font-display); font-size: 4.5rem; font-weight: 400; line-height: .9; color: var(--bcm-red); letter-spacing: -.03em; }
.today__date small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 14px; }
.today__passage { margin-top: 16px; font-size: 14px; color: var(--ink-3); font-weight: 500; }

.today h2 { max-width: 720px; margin-bottom: 28px; }
.today__verse {
  border-left: 3px solid var(--bcm-red); padding: 4px 0 4px 24px;
  font-family: var(--font-display); font-style: italic; font-size: 1.18rem;
  line-height: 1.55; color: var(--ink); margin: 28px 0;
}
.today__verse cite { display: block; margin-top: 12px; font-style: normal; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--bcm-red); }
.today__excerpt { font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); }
.today__excerpt p + p { margin-top: 16px; }
.today__cta { margin-top: 36px; }

@media (max-width: 880px) {
  .today { grid-template-columns: 1fr; }
  .today__meta { position: static; }
  .today__date { font-size: 3.6rem; }
}

/* ===================================================================
   Mandate — about, two columns with abstract red panel
   =================================================================== */
.mandate {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.mandate h2 { margin-bottom: 24px; }
.mandate p { font-size: 1.05rem; line-height: 1.75; margin-bottom: 16px; color: var(--ink-2); }
.mandate p strong { color: var(--ink); font-weight: 600; }

.mandate__panel {
  position: relative; aspect-ratio: 4 / 5;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(255,255,255,.18) 0, transparent 65%),
    linear-gradient(160deg, #C0152A 0%, #8E0E1F 100%);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(192,21,42,.55);
}
.mandate__panel::before,
.mandate__panel::after {
  content: ""; position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
  pointer-events: none;
}
.mandate__panel::before { width: 480px; height: 480px; right: -180px; top: -120px; }
.mandate__panel::after { width: 320px; height: 320px; left: -100px; bottom: -100px; }
.mandate__shield {
  width: 38%;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.25));
  position: relative; z-index: 1;
}
.mandate__caption {
  position: absolute; bottom: 32px; left: 32px; right: 32px;
  font-family: var(--font-display); font-style: italic; font-size: 1.1rem;
  color: rgba(255,255,255,.92); line-height: 1.45; letter-spacing: -.005em;
}
.mandate__caption cite {
  display: block; margin-top: 10px; font-style: normal; font-family: var(--font-body);
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

@media (max-width: 880px) {
  .mandate { grid-template-columns: 1fr; }
  .mandate__panel { aspect-ratio: 5 / 4; max-height: 480px; }
}

/* ===================================================================
   Pull quote — full-bleed verse
   =================================================================== */
.pullquote {
  text-align: center;
  padding: clamp(64px, 9vw, 128px) var(--gutter);
}
.pullquote::before {
  content: ""; display: block; width: 40px; height: 2px; background: var(--bcm-red);
  margin: 0 auto 36px;
}
.pullquote p {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.3; letter-spacing: -.01em;
  color: var(--ink); max-width: 920px; margin: 0 auto;
}
.pullquote cite {
  display: block; margin-top: 28px;
  font-family: var(--font-body); font-style: normal; font-size: 13px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--bcm-red);
}

/* ===================================================================
   World Reach — dark inverted panel with stats
   =================================================================== */
.reach {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
.reach h2 { color: #fff; margin-bottom: 22px; }
.reach p { color: rgba(255,255,255,.72); font-size: 1.05rem; line-height: 1.7; margin-bottom: 32px; max-width: 520px; }
.reach__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; margin-bottom: 40px; }
.reach__stat dt { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 400; color: var(--bcm-red-soft); letter-spacing: -.02em; line-height: 1; }
.reach__stat dd { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 10px; letter-spacing: .04em; }
.reach__visual {
  position: relative; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
}
.reach__globe {
  width: 100%; max-width: 420px; aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(192,21,42,.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(224,58,78,.18), transparent 50%),
    #161618;
  box-shadow: inset 0 0 60px rgba(0,0,0,.6), 0 30px 80px -30px rgba(192,21,42,.4);
  position: relative;
}
.reach__globe::before, .reach__globe::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.08);
  animation: spin 60s linear infinite;
}
.reach__globe::after { inset: 14%; border-style: dotted; animation-duration: 80s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.reach__pin {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--bcm-red-soft); box-shadow: 0 0 20px var(--bcm-red-soft);
}
.reach__pin--1 { top: 32%; left: 28%; }
.reach__pin--2 { top: 58%; left: 62%; }
.reach__pin--3 { top: 72%; left: 38%; animation: pulse 2.4s ease-in-out infinite; }
.reach__pin--4 { top: 22%; left: 64%; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1;} 50% { transform: scale(1.6); opacity: .55;} }

@media (max-width: 880px) {
  .reach { grid-template-columns: 1fr; }
  .reach__stats { grid-template-columns: 1fr 1fr; }
  .reach__visual { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ===================================================================
   Fellowship CTA
   =================================================================== */
.fellowship {
  text-align: center; max-width: 720px; margin: 0 auto;
}
.fellowship h2 { margin-bottom: 22px; }
.fellowship p { font-size: 1.1rem; color: var(--ink-2); line-height: 1.65; margin-bottom: 36px; }

/* ===================================================================
   Footer
   =================================================================== */
.footer {
  background: var(--ink); color: rgba(255,255,255,.7);
  padding: 72px 0 36px;
  font-size: 14px;
}
.footer__grid {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
}
.footer h4 { color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer ul a { color: rgba(255,255,255,.65); transition: var(--t); }
.footer ul a:hover { color: var(--bcm-red-soft); }
.footer__brand { display: flex; gap: 14px; align-items: flex-start; }
.footer__brand-text { font-family: var(--font-display); font-size: 1.05rem; color: #fff; font-weight: 500; line-height: 1.3; }
.footer__about { margin-top: 18px; line-height: 1.6; color: rgba(255,255,255,.6); max-width: 320px; }
.footer__verse { margin-top: 18px; font-family: var(--font-display); font-style: italic; color: rgba(192,21,42,.85); font-size: .92rem; }
.footer__bottom {
  max-width: var(--max); margin: 64px auto 0;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: rgba(255,255,255,.45);
}
.footer__bottom .creed { letter-spacing: .14em; text-transform: uppercase; }

@media (max-width: 880px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   Reveal animation
   =================================================================== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .reach__globe::before, .reach__globe::after, .reach__pin--3 { animation: none; }
}

/* ===================================================================
   PAGE-LEVEL COMPONENTS (interior pages)
   =================================================================== */

/* --- Page header (replaces old hero) --- */
.page-head {
  padding: clamp(72px, 9vw, 120px) 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(192,21,42,.04), transparent 70%),
    var(--paper);
}
.page-head__wrap {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.page-head__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bcm-red); margin-bottom: 24px;
}
.page-head__eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--bcm-red); }
.page-head h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 400; letter-spacing: -.02em;
  line-height: 1.05; max-width: 780px;
}
.page-head h1 em { color: var(--bcm-red); font-style: italic; font-weight: 400; }
.page-head__lead {
  margin-top: 22px; font-size: clamp(1.05rem, 1.4vw, 1.18rem); line-height: 1.6;
  color: var(--ink-2); max-width: 640px;
}

/* --- Article (devotion / study reading layout) --- */
.article {
  max-width: 720px; margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--gutter);
}
.article__meta {
  display: flex; flex-wrap: wrap; gap: 16px 28px;
  font-size: 12.5px; color: var(--ink-3); padding-bottom: 24px;
  border-bottom: 1px solid var(--rule); margin-bottom: 40px;
}
.article__meta strong { color: var(--ink); font-weight: 600; }
.article__meta .badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bcm-red-wash); color: var(--bcm-red);
  font-weight: 600; padding: 4px 12px; border-radius: 999px;
  font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
}

.article__opening {
  border-left: 3px solid var(--bcm-red); padding: 4px 0 4px 24px;
  margin: 36px 0 44px;
}
.article__opening p {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.18rem, 1.8vw, 1.4rem);
  line-height: 1.5; color: var(--ink); font-weight: 400;
}
.article__opening cite {
  display: block; margin-top: 14px; font-style: normal; font-family: var(--font-body);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--bcm-red);
}

.article h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.85rem); font-weight: 500;
  margin: 48px 0 18px; letter-spacing: -.015em;
}
.article h3 {
  font-size: 1.2rem; font-weight: 600; font-family: var(--font-display);
  margin: 32px 0 12px;
}
.article p {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.08rem; line-height: 1.75; color: var(--ink);
  font-weight: 400; font-feature-settings: 'ss01';
  margin-bottom: 18px;
}
.article p strong { color: var(--ink); font-weight: 600; }
.article ul, .article ol { margin: 18px 0 18px 28px; }
.article li { font-family: 'Fraunces', Georgia, serif; font-size: 1.05rem; line-height: 1.7; margin-bottom: 8px; color: var(--ink); }

.verse-block {
  background: var(--paper-warm); border: 1px solid var(--rule);
  border-radius: var(--radius-md); padding: 28px 32px; margin: 32px 0;
}
.verse-block .v {
  font-family: var(--font-display); font-style: italic; font-size: 1.08rem;
  line-height: 1.55; color: var(--ink); margin-bottom: 8px;
}
.verse-block .ref {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: .04em; color: var(--bcm-red); margin-top: 8px;
}
.verse-block .v + .ref { margin-bottom: 18px; }

.callout {
  background: var(--bcm-red-wash);
  border-left: 3px solid var(--bcm-red);
  padding: 24px 28px; border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 32px 0;
}
.callout p { font-family: var(--font-body); color: var(--ink); }

.article__nav {
  display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap;
  border-top: 1px solid var(--rule); padding-top: 32px; margin-top: 64px;
}
.article__nav a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--bcm-red);
}
.article__nav a small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; }

/* --- Cards & lists --- */
.tile-grid {
  display: grid; gap: clamp(20px, 2.5vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.tile {
  display: block; background: #fff;
  border: 1px solid var(--rule); border-radius: var(--radius-md);
  padding: 28px 28px 24px; transition: var(--t); position: relative; overflow: hidden;
}
.tile:hover { border-color: var(--rule-strong); transform: translateY(-2px); box-shadow: 0 10px 30px -16px rgba(0,0,0,.12); }
.tile__num { font-family: var(--font-display); font-size: 1rem; color: var(--bcm-red); font-weight: 500; }
.tile__tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bcm-red); margin-bottom: 14px;
}
.tile h3 {
  font-size: 1.32rem; font-family: var(--font-display); font-weight: 500;
  letter-spacing: -.015em; line-height: 1.2; margin: 8px 0 10px;
}
.tile p { font-size: .95rem; color: var(--ink-3); line-height: 1.6; }
.tile__date { font-size: 12px; color: var(--ink-4); margin-top: 14px; }
.tile__more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--bcm-red);
}
.tile__more::after { content: "→"; transition: transform var(--t); }
.tile:hover .tile__more::after { transform: translateX(4px); }
.tile--featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.tile--featured h3 { color: #fff; }
.tile--featured p { color: rgba(255,255,255,.7); }
.tile--featured .tile__tag { color: var(--bcm-red-soft); }
.tile--muted { opacity: .55; pointer-events: none; }

/* --- Two column "split" generic --- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
.split--reverse > *:first-child { order: 2; }
.split__visual {
  position: relative; aspect-ratio: 4 / 5;
  background: var(--paper-warm); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border: 1px solid var(--rule);
}
.split__visual--red {
  background: linear-gradient(160deg, #C0152A 0%, #8E0E1F 100%); border: 0;
  color: #fff;
}
.split__visual blockquote {
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem;
  line-height: 1.55; color: rgba(255,255,255,.92); padding: 32px; text-align: center;
}
.split__visual blockquote cite {
  display: block; margin-top: 14px; font-style: normal; font-family: var(--font-body);
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > *:first-child { order: 0; }
}

/* --- Values grid (about page) --- */
.values {
  display: grid; gap: 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.value {
  padding: clamp(32px, 3.5vw, 48px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.value:nth-child(3n) { border-right: 0; }
.value:nth-last-child(-n+3) { border-bottom: 0; }
.value__num { font-family: var(--font-display); color: var(--bcm-red); font-size: 1rem; }
.value h3 { font-size: 1.3rem; font-weight: 500; margin: 12px 0 12px; font-family: var(--font-display); letter-spacing: -.015em; }
.value p { font-size: .96rem; color: var(--ink-3); line-height: 1.65; }
@media (max-width: 880px) {
  .values { grid-template-columns: 1fr; }
  .value { border-right: 0; }
  .value:last-child { border-bottom: 0; }
}

/* --- Resource link card grid --- */
.reslist {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 28px;
}
.reslink {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--rule);
  border-radius: var(--radius-md); padding: 18px 22px;
  transition: var(--t);
}
.reslink:hover { border-color: var(--bcm-red); transform: translateY(-2px); box-shadow: 0 10px 30px -16px rgba(0,0,0,.12); }
.reslink__arrow {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bcm-red-wash); color: var(--bcm-red);
  font-size: 14px; font-weight: 600;
  transition: var(--t);
}
.reslink:hover .reslink__arrow { background: var(--bcm-red); color: #fff; }
.reslink h4 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; line-height: 1.25; }
.reslink p { font-size: .88rem; color: var(--ink-3); line-height: 1.55; }
.reslink--internal { background: var(--bcm-red-wash); border-color: var(--bcm-red); }
.reslink--internal h4 { color: var(--bcm-red); }

.reslist__head {
  display: flex; align-items: baseline; gap: 16px; margin: 56px 0 4px;
  padding-bottom: 14px; border-bottom: 1px solid var(--rule);
}
.reslist__head h2 {
  font-size: 1.5rem; font-family: var(--font-display); font-weight: 500;
  letter-spacing: -.015em;
}
.reslist__head .count { font-size: 12px; color: var(--ink-3); margin-left: auto; }

/* --- Form --- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 6px; }
.form__row label {
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2);
}
.form__row input, .form__row textarea, .form__row select {
  width: 100%;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--ink);
  transition: var(--t);
}
.form__row input:focus, .form__row textarea:focus, .form__row select:focus {
  outline: 0; border-color: var(--bcm-red); box-shadow: 0 0 0 4px var(--bcm-red-wash);
}
.form__row textarea { min-height: 200px; resize: vertical; }
.btn--block { width: 100%; justify-content: center; }
.btn--danger { background: rgba(192,21,42,.06); color: var(--bcm-red); border: 1px solid rgba(192,21,42,.18); }
.btn--danger:hover { background: var(--bcm-red); color: #fff; border-color: var(--bcm-red); }
.btn--white { background: #fff; color: var(--ink); border: 1px solid var(--rule-strong); }
.btn--white:hover { border-color: var(--ink); }

.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
}
.alert--error { background: var(--bcm-red-wash); color: var(--bcm-red-deep); border: 1px solid rgba(192,21,42,.2); }
.alert--ok { background: #E9F5EE; color: #136A3A; border: 1px solid #B6DFC4; }

.notice {
  background: var(--paper-warm); border: 1px solid var(--rule);
  border-left: 3px solid var(--bcm-red);
  padding: 18px 22px; border-radius: var(--radius-sm);
  font-size: 14.5px; line-height: 1.6; color: var(--ink-2);
}
.notice strong { color: var(--ink); font-weight: 600; }

/* --- Auth tabs --- */
.auth { max-width: 460px; margin: 0 auto; padding: 56px 20px 80px; }
.auth__tabs {
  display: flex; gap: 0; margin-bottom: 28px;
  background: var(--paper-2); border-radius: 999px; padding: 4px;
  border: 1px solid var(--rule);
}
.auth__tab {
  flex: 1; padding: 11px 16px; border-radius: 999px;
  font-weight: 600; font-size: 13.5px; color: var(--ink-3);
  transition: var(--t); border: 0; background: transparent; cursor: pointer;
}
.auth__tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.auth__card {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-md);
  padding: 36px 32px;
}
.auth__card h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; letter-spacing: -.015em; margin-bottom: 6px; }
.auth__sub { color: var(--ink-3); font-size: 14.5px; margin-bottom: 24px; }
.auth__toggle {
  text-align: center; font-size: 13.5px; color: var(--ink-3);
  margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--rule);
}
.auth__toggle a { color: var(--bcm-red); font-weight: 600; }

/* --- Notes app dashboard --- */
.dash-bar {
  background: var(--ink); color: #fff;
  padding: 18px var(--gutter);
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
}
.dash-bar h1 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: #fff; }
.dash-bar p { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 2px; }

.notes-layout {
  display: grid; grid-template-columns: 320px 1fr;
  min-height: calc(100vh - 220px);
  border-top: 1px solid var(--rule);
}
.notes-side {
  background: var(--paper-2); border-right: 1px solid var(--rule);
  display: flex; flex-direction: column;
}
.notes-side__head {
  padding: 18px 22px; border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
}
.notes-side__head h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-family: var(--font-body); font-weight: 600; }
.notes-side__count {
  background: var(--bcm-red-wash); color: var(--bcm-red);
  padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
}
.notes-side__list { flex: 1; overflow-y: auto; }
.notes-side__empty { padding: 32px 22px; text-align: center; color: var(--ink-3); font-size: 13.5px; }

.note-row {
  display: block; padding: 14px 22px; border-bottom: 1px solid var(--rule);
  cursor: pointer; transition: var(--t);
}
.note-row:hover { background: #fff; }
.note-row.active { background: #fff; border-left: 3px solid var(--bcm-red); padding-left: 19px; }
.note-row__title { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--ink); margin-bottom: 4px; }
.note-row__passage { font-size: 11.5px; color: var(--bcm-red); font-weight: 600; letter-spacing: .04em; }
.note-row__date { font-size: 11px; color: var(--ink-4); margin-top: 4px; }

.notes-main {
  padding: clamp(28px, 4vw, 48px);
  background: #fff;
}
.notes-empty { text-align: center; padding: 80px 20px; }
.notes-empty h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; color: var(--ink); margin-bottom: 8px; }
.notes-empty p { color: var(--ink-3); }

@media (max-width: 880px) {
  .notes-layout { grid-template-columns: 1fr; }
  .notes-side { max-height: 280px; border-right: 0; border-bottom: 1px solid var(--rule); }
}

/* --- Bible reader --- */
.bible-layout {
  display: grid; grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 140px);
  border-top: 1px solid var(--rule);
}
.bible-sidebar {
  background: var(--paper-2); border-right: 1px solid var(--rule);
  padding: 22px;
  overflow-y: auto;
  max-height: calc(100vh - 140px);
  position: sticky; top: 81px; align-self: start;
}
.bible-sidebar h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; font-family: var(--font-body); font-weight: 600; }
.bible-sidebar input[type="text"] {
  width: 100%; padding: 9px 14px;
  background: #fff; border: 1px solid var(--rule-strong); border-radius: 999px;
  font-size: 13.5px; transition: var(--t);
}
.bible-sidebar input[type="text"]:focus { outline: 0; border-color: var(--bcm-red); }
.book-list { list-style: none; margin-top: 16px; }
.book-list .book-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bcm-red); margin: 18px 0 6px; padding-left: 4px;
}
.book-list a {
  display: block; padding: 6px 10px; font-size: 14px; color: var(--ink-2);
  border-radius: var(--radius-sm); transition: var(--t);
}
.book-list a:hover { background: var(--bcm-red-wash); color: var(--bcm-red); }
.book-list a.active { background: var(--bcm-red); color: #fff; }

.bible-content { padding: clamp(20px, 3.4vw, 44px); max-width: 1280px; width: 100%; }
.bible-controls {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding-bottom: 18px; border-bottom: 1px solid var(--rule); margin-bottom: 28px;
}
.bible-select {
  padding: 9px 14px; background: #fff; border: 1px solid var(--rule-strong);
  border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink);
  cursor: pointer;
}
.bible-select:focus { outline: 0; border-color: var(--bcm-red); }
.bible-passage-title {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -.02em; line-height: 1.1;
}
.bible-text { max-width: 720px; font-family: 'Fraunces', Georgia, serif; font-size: 1.1rem; line-height: 1.85; color: var(--ink); }
.bible-text .verse-num { color: var(--bcm-red); font-size: 11px; font-weight: 700; vertical-align: super; margin-right: 4px; font-family: var(--font-body); }
.bible-text .verse {
  cursor: pointer; padding: 1px 2px; border-radius: 3px; transition: background .15s ease;
}
.bible-text .verse:hover { background: var(--bcm-red-wash); }
.bible-text .verse.highlighted { background: #FFF1B8; }
.bible-text .chap-heading {
  display: inline-block; margin-right: 10px; font-family: var(--font-display);
  font-size: 1.4rem; color: var(--bcm-red); font-weight: 500;
}
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2.5px solid var(--rule); border-top-color: var(--bcm-red);
  margin: 60px auto; animation: spin 0.7s linear infinite;
}
.copy-toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-size: 13.5px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.4);
  z-index: 500;
}

@media (max-width: 880px) {
  .bible-layout { grid-template-columns: 1fr; }
  .bible-sidebar { position: static; max-height: 240px; }
}

/* --- Data table (spread page) --- */
.dtable {
  width: 100%; border-collapse: collapse; font-size: 14px;
  border: 1px solid var(--rule); border-radius: var(--radius-md);
  overflow: hidden;
}
.dtable th {
  background: var(--paper-2); color: var(--ink-2); text-align: left;
  font-weight: 600; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 14px 18px; border-bottom: 1px solid var(--rule);
}
.dtable td { padding: 14px 18px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.dtable tr:last-child td { border-bottom: 0; }
.dtable tr:hover td { background: var(--paper-2); }
.dtable td:first-child, .dtable th:first-child { color: var(--ink-3); }

/* --- Stat tiles (clean) --- */
.stat-row {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 24px 0;
}
.stat-tile {
  background: #fff; border: 1px solid var(--rule);
  border-radius: var(--radius-md); padding: 24px 28px;
}
.stat-tile dt {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 400;
  color: var(--bcm-red); letter-spacing: -.02em; line-height: 1; margin-bottom: 6px;
}
.stat-tile dd { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.stat-tile .src { font-size: 11.5px; color: var(--ink-4); margin-top: 6px; font-style: italic; }

/* --- Map skin (Leaflet overrides for spread.html) --- */
.map-frame {
  width: 100%; height: 520px;
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  background: #f4f1eb;
  overflow: hidden;
  position: relative;
}
.map-legend {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  margin-top: 16px; font-size: 12.5px; color: var(--ink-3);
}
.map-legend .swatch {
  display: inline-block; width: 16px; height: 12px; border-radius: 2px;
  vertical-align: middle; margin-right: 6px;
}
.country-info {
  display: none; background: #fff; border: 1px solid var(--rule);
  border-radius: var(--radius-md); padding: 24px 28px; margin-top: 16px;
}
.country-info.active { display: block; }
.country-info h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; margin-bottom: 14px; }
.country-info__grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.country-info__cell {
  text-align: center; padding: 14px; background: var(--paper-2);
  border-radius: var(--radius-sm);
}
.country-info__cell .v { font-family: var(--font-display); font-size: 1.3rem; color: var(--bcm-red); font-weight: 500; }
.country-info__cell .l { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; letter-spacing: .04em; text-transform: uppercase; }

/* --- Reach (unreached / 10/40 panel) --- */
.unreached {
  background: linear-gradient(160deg, #2A0A0E 0%, #5A0E1A 60%, #2A0A0E 100%);
  color: #fff; padding: clamp(48px, 6vw, 72px);
  border-radius: var(--radius-lg); margin: 56px 0;
}
.unreached h2 { color: #fff; margin-bottom: 14px; }
.unreached > p { color: rgba(255,255,255,.7); margin-bottom: 28px; max-width: 720px; }
.unreached__grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.unreached__cell {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md); padding: 22px; text-align: center;
}
.unreached__cell .country { font-size: 14px; font-weight: 600; }
.unreached__cell .num { font-family: var(--font-display); font-size: 1.9rem; color: var(--bcm-red-soft); font-weight: 400; margin: 6px 0 2px; }
.unreached__cell .label { font-size: 11.5px; color: rgba(255,255,255,.55); letter-spacing: .04em; }
.window1040 {
  margin-top: 32px; padding: 24px 28px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
}
.window1040 h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--bcm-red-soft); margin-bottom: 8px; font-weight: 500; }
.window1040 p { color: rgba(255,255,255,.78); font-size: .95rem; line-height: 1.7; margin-bottom: 8px; }
.window1040 small { color: rgba(255,255,255,.5); font-style: italic; font-size: 12px; }

/* --- Timeline chart --- */
.timeline {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 4px; align-items: end; height: 280px; padding: 0 8px;
  border-bottom: 1px solid var(--rule); margin-top: 24px;
}
.timeline__bar { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.timeline__bar .v { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.timeline__bar .b { width: 70%; max-width: 56px; min-height: 6px; background: linear-gradient(180deg, var(--bcm-red) 0%, var(--bcm-red-soft) 100%); border-radius: 4px 4px 0 0; transition: var(--t); }
.timeline__bar:hover .b { filter: brightness(1.12); }
.timeline__bar .y { font-size: 12px; color: var(--ink-3); margin-top: 8px; font-weight: 500; }
.timeline__bar .pct { font-size: 11px; color: var(--ink-4); }
@media (max-width: 600px) {
  .timeline { grid-template-columns: repeat(3, 1fr); height: 200px; }
  .timeline__bar:nth-child(n+4) { display: none; }
}

/* --- 404 --- */
.notfound {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 80px 20px;
}
.notfound__inner { max-width: 480px; }
.notfound__shield { width: 64px; margin: 0 auto 28px; opacity: .3; }
.notfound h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 400; letter-spacing: -.02em; margin-bottom: 14px; }
.notfound .verse { font-family: var(--font-display); font-style: italic; color: var(--ink-3); margin: 16px 0 32px; }

/* --- FAQ --- */
.faq { max-width: 720px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--rule); padding: 24px 0; }
.faq__item h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 8px; color: var(--ink); }
.faq__item p { color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }

/* --- Drawer (mobile nav) --- */
.drawer {
  position: fixed; inset: 0;
  background: rgba(10,10,11,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
  z-index: 200;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  background: #fff;
  padding: 24px 28px 36px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  overflow-y: auto;
}
.drawer.open .drawer__panel { transform: translateX(0); }
.drawer__close {
  align-self: flex-end; padding: 8px;
  font-size: 18px; color: var(--ink); margin-bottom: 8px;
}
.drawer a {
  display: block; padding: 14px 4px;
  font-family: var(--font-display); font-size: 1.18rem; font-weight: 500;
  color: var(--ink); border-bottom: 1px solid var(--rule);
}
.drawer a:hover { color: var(--bcm-red); }
.drawer .login {
  margin-top: 18px; background: var(--bcm-red); color: #fff;
  text-align: center; border-radius: 999px; padding: 13px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
}
.drawer .login:hover { background: var(--bcm-red-deep); color: #fff; }

/* --- Sticky in-page TOC --- */
.toc-grid {
  display: grid; grid-template-columns: 220px 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.toc { position: sticky; top: 100px; }
.toc h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-family: var(--font-body); font-weight: 600; margin-bottom: 14px; }
.toc ul { list-style: none; }
.toc li { margin-bottom: 8px; }
.toc a { font-size: 14px; color: var(--ink-3); transition: var(--t); }
.toc a:hover, .toc a.active { color: var(--bcm-red); }
@media (max-width: 880px) { .toc-grid { grid-template-columns: 1fr; } .toc { position: static; } }

/* ===================================================================
   Signature components (interior page polish)
   =================================================================== */

/* Hero variant for interior pages, smaller scale than homepage hero */
.hero--page {
  padding: clamp(56px, 8vw, 100px) 0 clamp(48px, 7vw, 96px);
}
.hero--page h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.hero--page .hero__lead { font-size: 1.1rem; max-width: 520px; }

/* Hero card variants */
.hero__card--quote { padding: clamp(36px, 4.5vw, 56px); }
.hero__card-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--bcm-red);
}
.hero__card-eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--bcm-red);
}
.hero__card-headline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 500; line-height: 1.2; letter-spacing: -.015em;
  margin-top: 18px; color: var(--ink);
}
.hero__card-body {
  margin-top: 18px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem; line-height: 1.65; color: var(--ink-2);
}
.hero__card-list {
  list-style: none; margin-top: 24px; padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.hero__card-list li {
  display: flex; gap: 14px; align-items: baseline;
  font-size: 14px; padding: 8px 0;
}
.hero__card-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--bcm-red); flex-shrink: 0; transform: translateY(-2px);
}
.hero__card-list .label {
  font-weight: 600; color: var(--ink); min-width: 96px; font-size: 12.5px;
  letter-spacing: .04em; text-transform: uppercase;
}
.hero__card-list .value { color: var(--ink-2); }

/* Creed grid (dark inverted, three columns) */
.creed-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.creed-cell {
  padding: clamp(40px, 5vw, 64px) clamp(28px, 3vw, 40px);
  border-right: 1px solid rgba(255,255,255,.08);
}
.creed-cell:last-child { border-right: 0; }
.creed-cell .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 3.4rem);
  font-weight: 400; color: var(--bcm-red-soft);
  letter-spacing: -.02em; line-height: 1; margin-bottom: 22px;
}
.creed-cell h3 {
  color: #fff;
  font-size: 1.5rem; font-family: var(--font-display);
  font-weight: 500; letter-spacing: -.015em; margin-bottom: 14px;
}
.creed-cell .latin {
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--bcm-red-soft); margin-bottom: 10px;
}
.creed-cell p {
  color: rgba(255,255,255,.7);
  font-size: .98rem; line-height: 1.65;
}
@media (max-width: 880px) {
  .creed-grid { grid-template-columns: 1fr; }
  .creed-cell { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .creed-cell:last-child { border-bottom: 0; }
}

/* Big numeral feature (like Today's Word date) */
.big-numeral {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 400; color: var(--bcm-red);
  letter-spacing: -.04em; line-height: .9;
}
.big-numeral small {
  display: block; font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 14px;
}

/* Lead row, used as a sub-headline strip below page-head */
.lead-row {
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
}
.lead-row__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: baseline;
}
.lead-row__item .l {
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px;
}
.lead-row__item .v {
  font-family: var(--font-display); font-size: 1.05rem;
  font-weight: 500; color: var(--ink);
}

/* Editorial split, used for "two big paragraphs side by side" */
.editorial {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px); align-items: start;
}
.editorial > * { font-family: 'Fraunces', Georgia, serif; }
.editorial p { font-size: 1.08rem; line-height: 1.75; color: var(--ink); margin-bottom: 18px; }
.editorial p:first-child::first-letter {
  font-family: var(--font-display); font-weight: 500;
  font-size: 3.6rem; float: left; line-height: .9;
  color: var(--bcm-red); margin: 6px 12px 0 0;
}
@media (max-width: 880px) { .editorial { grid-template-columns: 1fr; } }

/* --- Subscribe form (locked state) --- */
.subscribe-card {
  max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 40px 36px; text-align: center;
}
.subscribe-card .lock {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--bcm-red-wash); color: var(--bcm-red);
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.subscribe-card h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; letter-spacing: -.015em; margin: 14px 0 12px; }
.subscribe-card p { color: var(--ink-2); }

/* --- Article hero (devotion / study reading layout, replaces page-head) --- */
.hero--article {
  position: relative;
  padding: clamp(80px, 10vw, 128px) 0 clamp(40px, 5vw, 60px);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(ellipse 65% 50% at 88% 0%, rgba(192,21,42,.055), transparent 70%),
    radial-gradient(ellipse 45% 28% at 8% 100%, rgba(192,21,42,.025), transparent 75%),
    var(--paper);
  overflow: hidden;
}
.hero--article__wrap {
  max-width: 880px; margin: 0 auto; padding: 0 var(--gutter);
  position: relative; z-index: 1;
}
.hero--article__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--bcm-red); margin-bottom: 28px;
}
.hero--article__eyebrow::before {
  content: ""; width: 32px; height: 2px; background: var(--bcm-red);
}
.hero--article h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 400; letter-spacing: -.022em;
  line-height: 1.06;
  max-width: 800px;
  color: var(--ink);
}
.hero--article h1 em {
  color: var(--bcm-red); font-style: italic; font-weight: 400;
}
.hero--article__lead {
  margin-top: 28px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-2);
  font-style: italic;
  max-width: 660px;
}
.hero--article__meta {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap;
  gap: 24px 44px;
  max-width: 760px;
}
.hero--article__meta-item {
  display: flex; flex-direction: column; gap: 5px;
}
.hero--article__meta-label {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3);
}
.hero--article__meta-value {
  font-family: var(--font-display);
  font-size: .98rem; line-height: 1.35;
  color: var(--ink); font-weight: 500;
}
.hero--article__meta-value strong {
  color: var(--bcm-red); font-weight: 600;
}
.hero--article__watermark {
  position: absolute;
  right: -56px; top: -32px;
  width: 320px; height: 380px;
  opacity: .045;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 720px) {
  .hero--article__meta { gap: 20px 32px; margin-top: 40px; }
  .hero--article__watermark { width: 200px; height: 240px; right: -40px; top: -20px; }
}

/* ============================================================
   Devotion library (hub + per-series reader)
   ============================================================ */

/* --- Hub: series cards grid --- */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}
@media (max-width: 880px) {
  .dev-grid { grid-template-columns: 1fr; gap: 20px; }
}
.dev-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 36px 36px 28px;
  text-decoration: none; color: inherit;
  transition: var(--t);
  overflow: hidden;
  min-height: 360px;
}
.dev-card:hover {
  border-color: var(--bcm-red);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(192,21,42,.18);
}
.dev-card__shield {
  position: absolute; right: -34px; top: -22px;
  width: 220px; height: 260px; opacity: .04;
  pointer-events: none;
}
.dev-card__eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--bcm-red);
  display: inline-flex; align-items: center; gap: 12px;
}
.dev-card__eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--bcm-red);
}
.dev-card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  letter-spacing: -.018em; line-height: 1.15;
  margin-top: 16px;
}
.dev-card__author {
  font-family: var(--font-display); font-style: italic;
  color: var(--ink-3); font-size: 14.5px;
  margin-top: 6px;
}
.dev-card__blurb {
  margin-top: 18px;
  color: var(--ink-2); font-size: 1rem; line-height: 1.6;
  flex: 1;
}
.dev-card__foot {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--ink-3);
}
.dev-card__foot strong {
  color: var(--bcm-red); font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.dev-card__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 500;
  color: var(--ink); font-size: 14px;
}
.dev-card__cta::after {
  content: "→"; transition: transform .15s ease;
}
.dev-card:hover .dev-card__cta { color: var(--bcm-red); }
.dev-card:hover .dev-card__cta::after { transform: translateX(4px); }

/* --- Reader: header bar --- */
.dev-reader {
  max-width: 920px; margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 40px) 80px;
}
.dev-reader__head {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 28px; margin-bottom: 32px;
}
.dev-reader__crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
  text-decoration: none;
}
.dev-reader__crumb:hover { color: var(--bcm-red); }
.dev-reader__crumb::before { content: "←"; font-size: 14px; }
.dev-reader__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.06;
  letter-spacing: -.022em; color: var(--ink);
  margin-top: 14px;
}
.dev-reader__subtitle {
  font-family: var(--font-display); font-style: italic;
  color: var(--ink-3); font-size: 1.05rem; margin-top: 8px;
}
.dev-reader__author {
  font-size: 13px; color: var(--ink-3); margin-top: 14px;
  letter-spacing: .04em;
}
.dev-reader__author strong { color: var(--ink); font-weight: 500; }
.dev-reader__blurb {
  margin-top: 20px;
  color: var(--ink-2); font-size: 1.02rem; line-height: 1.62;
  max-width: 640px;
}
.dev-reader__progress {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 22px; font-size: 12.5px; color: var(--ink-3);
}
.dev-reader__progress .bar {
  width: 140px; height: 5px; border-radius: 999px;
  background: rgba(0,0,0,.08); overflow: hidden;
}
.dev-reader__progress .bar-fill {
  height: 100%; background: var(--bcm-red);
  transition: width .25s ease;
}

/* --- Date / nav action bar --- */
.dev-nav {
  position: sticky; top: 80px;
  z-index: 5;
  background: rgba(250,248,245,.92);
  backdrop-filter: saturate(120%) blur(6px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px clamp(16px, 3vw, 28px);
  margin: 0 calc(-1 * clamp(20px, 4vw, 40px));
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.dev-nav__date {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.5rem; letter-spacing: -.015em;
  color: var(--ink);
  display: flex; align-items: center; gap: 14px;
}
.dev-nav__date .today-pill {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--bcm-red); color: #fff;
  padding: 3px 10px; border-radius: 999px;
}
.dev-nav__btns {
  display: flex; align-items: center; gap: 8px;
}
.dev-nav__btn {
  display: inline-flex; flex-direction: column; gap: 0;
  align-items: center; padding: 7px 14px;
  font-family: var(--font-body); font-size: 13px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px; background: #fff;
  cursor: pointer; transition: var(--t);
  color: var(--ink);
  min-width: 64px;
}
.dev-nav__btn:hover { border-color: var(--bcm-red); color: var(--bcm-red); }
.dev-nav__btn .arrow { font-weight: 700; font-size: 13px; line-height: 1; }
.dev-nav__btn .label { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; letter-spacing: .04em; }
.dev-nav__btn:hover .label { color: var(--bcm-red); }
.dev-nav__btn--cal {
  flex-direction: row; gap: 7px; min-width: auto;
  padding: 9px 14px; font-weight: 500;
}
.dev-nav__btn--today {
  flex-direction: row; gap: 7px; min-width: auto;
  padding: 9px 14px; font-weight: 500;
}

/* --- Entry body --- */
#entry-body { padding-top: 12px; }
.dev-section {
  padding: 36px 0 16px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.dev-section:last-child { border-bottom: 0; }
.dev-section-head {
  font-family: var(--font-display); font-weight: 500;
  font-size: 11.5px; letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--bcm-red);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
}
.dev-section-head::before {
  content: ""; flex: 0 0 38px; height: 1.5px; background: var(--bcm-red);
}
.dev-section-head::after {
  content: ""; flex: 1; height: 1px; background: rgba(0,0,0,.08);
}
.dev-section-head span { white-space: nowrap; }
.dev-ref {
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--bcm-red);
  margin-bottom: 14px;
}
.dev-scripture {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.18rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--bcm-red);
  padding: 8px 0 8px 22px;
  margin: 0 0 26px 0;
  max-width: 640px;
}
.dev-prose {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ink);
  max-width: 640px;
}
.dev-prose p { margin-bottom: 18px; }
.dev-prose p:last-child { margin-bottom: 0; }
.dev-prose em { font-style: italic; color: var(--ink); }
.dev-prose .is-speaking {
  background: rgba(212,160,23,.15);
  border-radius: 4px;
  transition: background .2s ease;
}

.dev-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.dev-actions .btn { padding: 9px 18px; font-size: 13px; }
.dev-actions #dev-listen.is-active {
  background: var(--bcm-red); color: #fff; border-color: var(--bcm-red);
}

/* --- Empty / error states --- */
.dev-empty, .dev-error {
  padding: 72px 0;
  text-align: center;
  color: var(--ink-3);
  font-family: var(--font-display); font-style: italic;
  font-size: 1.05rem;
}
.dev-empty .muted { font-size: 13px; margin-top: 8px; opacity: .8; }
.dev-error { color: var(--bcm-red); }

/* --- Series meta footer (in reader) --- */
.dev-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.dev-meta-item { display: flex; flex-direction: column; gap: 5px; }
.dev-meta-label {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3);
}
.dev-meta-value {
  font-family: var(--font-display); font-size: .98rem;
  color: var(--ink); font-weight: 500;
}

/* --- Calendar overlay --- */
.dev-cal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,15,30,.45);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: bcmFadeIn 0.16s ease;
}
.dev-cal-card {
  background: #faf8f5;
  border-radius: var(--radius-lg);
  width: min(960px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px clamp(20px, 3vw, 36px);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  position: relative;
}
.dev-cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.dev-cal-head h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.5rem; letter-spacing: -.015em;
  color: var(--ink);
}
.dev-cal-close {
  background: transparent; border: none; cursor: pointer;
  font-size: 22px; color: var(--ink-3); line-height: 1;
  padding: 6px 10px;
}
.dev-cal-close:hover { color: var(--bcm-red); }
.dev-cal-sub {
  color: var(--ink-3); font-size: 13.5px;
  margin-bottom: 24px;
}
.dev-cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.dev-cal-month h4 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 14px; letter-spacing: .04em;
  color: var(--bcm-red);
  margin-bottom: 10px;
}
.dev-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.dev-cal-day {
  aspect-ratio: 1;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(0,0,0,.08);
  border-radius: 6px;
  font-family: var(--font-body); font-size: 12px;
  color: var(--ink-2); cursor: pointer;
  transition: all .15s ease;
  min-height: 32px;
}
.dev-cal-day:hover:not(:disabled) {
  background: var(--bcm-red-wash);
  border-color: var(--bcm-red);
  color: var(--bcm-red);
}
.dev-cal-day.is-empty {
  opacity: .35; cursor: default;
  background: rgba(0,0,0,.02);
}
.dev-cal-day.is-read {
  background: rgba(212,160,23,.18);
  border-color: rgba(212,160,23,.4);
  color: var(--ink);
}
.dev-cal-day.is-today {
  border: 1.5px solid var(--bcm-red);
  font-weight: 700; color: var(--bcm-red);
}
.dev-cal-day.is-current {
  background: var(--bcm-red); color: #fff;
  border-color: var(--bcm-red);
  font-weight: 700;
}
.dev-cal-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px; color: var(--ink-3);
  flex-wrap: wrap; gap: 12px;
}
.dev-cal-foot__actions {
  display: inline-flex; gap: 8px; align-items: center;
}

/* --- Book mode: hide Today button (calendar concept) and relabel
       Calendar -> Contents via the body.is-book class --- */
body.is-book #dev-today { display: none; }
body.is-book .dev-nav__btn--cal {
  /* Title visible above the icon */
}
body.is-book .dev-nav__btn--cal::before {
  content: "Contents";
  display: inline;
}
body.is-book .dev-nav__btn--cal {
  /* Use ::before for the "Contents" label instead of the static text. */
  font-size: 0;
}
body.is-book .dev-nav__btn--cal::before {
  font-size: 13px;
  font-weight: 500;
}

/* --- Table of Contents overlay (book mode) --- */
.dev-toc-card {
  background: #faf8f5;
  border-radius: var(--radius-lg);
  width: min(720px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px clamp(20px, 3vw, 36px);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  position: relative;
}
.dev-toc-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.dev-toc-item {
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.dev-toc-item:last-child { border-bottom: 0; }
.dev-toc-btn {
  width: 100%; text-align: left;
  background: transparent; border: 0;
  cursor: pointer;
  padding: 14px 8px;
  display: flex; align-items: baseline; gap: 14px;
  font-family: inherit;
  transition: background .15s ease;
}
.dev-toc-btn:hover {
  background: rgba(192,21,42,.04);
}
.dev-toc-num {
  flex: 0 0 30px;
  font-family: var(--font-display);
  font-size: 13.5px; font-weight: 500;
  color: var(--bcm-red);
  letter-spacing: .04em;
  text-align: right;
}
.dev-toc-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 400;
  color: var(--ink); line-height: 1.4;
}
.dev-toc-tick {
  flex: 0 0 auto;
  color: #d4a017;
  font-size: 16px;
}
.dev-toc-item.is-read .dev-toc-title {
  color: var(--ink-2); opacity: .85;
}
.dev-toc-item.is-current .dev-toc-btn {
  background: rgba(192,21,42,.06);
  border-left: 3px solid var(--bcm-red);
  padding-left: 5px;
}
.dev-toc-item.is-current .dev-toc-num,
.dev-toc-item.is-current .dev-toc-title {
  color: var(--bcm-red); font-weight: 600;
}

/* --- Reader: progress banner (above the entry body) --- */
.dev-plan-banner {
  margin-top: 18px; margin-bottom: 18px;
  padding: 16px 20px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 14px;
}
.dev-plan-banner.is-offer {
  background: linear-gradient(90deg, rgba(212,160,23,.10), rgba(212,160,23,.02));
  border: 1px solid rgba(212,160,23,.28);
}
.dev-plan-banner.is-active {
  background: linear-gradient(90deg, rgba(192,21,42,.06), rgba(192,21,42,.01));
  border: 1px solid rgba(192,21,42,.18);
}
.dev-plan-banner.is-sidetrip {
  background: rgba(0,0,0,.03);
  border: 1px solid var(--rule);
}
.dev-plan-banner__copy {
  display: flex; flex-direction: column; gap: 3px;
  flex: 1; min-width: 220px;
}
.dev-plan-banner__copy strong {
  color: var(--ink); font-weight: 600; font-size: 14.5px;
}
.dev-plan-banner__copy span { color: var(--ink-2); font-size: 13.5px; }
.dev-plan-banner__copy .badge {
  display: inline-block; align-self: flex-start;
  padding: 3px 10px; border-radius: 999px;
  background: var(--bcm-red); color: #fff;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 4px;
}
.dev-plan-banner__actions {
  display: inline-flex; gap: 8px; flex-shrink: 0;
}
.dev-plan-banner__actions .btn { padding: 8px 16px; font-size: 13px; }

/* --- Hub card: progress overlay added by devotion-hub.js --- */
.dev-card__bar {
  height: 4px; border-radius: 999px;
  background: rgba(0,0,0,.06);
  overflow: hidden;
  margin: 22px 0 14px;
}
.dev-card__bar.is-zero { background: rgba(0,0,0,.05); }
.dev-card__bar.is-done .dev-card__bar-fill {
  background: linear-gradient(90deg, #d4a017, var(--bcm-red));
}
.dev-card__bar-fill {
  height: 100%; width: 0;
  background: var(--bcm-red);
  transition: width .4s ease;
}
.dev-card__progress-line {
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  align-items: center;
  font-size: 12px; color: var(--ink-3);
}
.dev-card__pill {
  display: inline-block;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(0,0,0,.05); color: var(--ink-2);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}
.dev-card__pill.is-active {
  background: var(--bcm-red); color: #fff;
}
.dev-card__pill.is-done {
  background: linear-gradient(90deg, #d4a017, var(--bcm-red));
  color: #fff;
}
.dev-card__secondary {
  display: block;
  margin-top: 10px;
  font-size: 12.5px; color: var(--ink-3);
  text-decoration: none;
  font-style: italic;
}
.dev-card__secondary:hover { color: var(--bcm-red); }

/* --- Library filter bar --- */
.dev-filters {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 36px auto 28px;
  display: flex; flex-direction: column; gap: 14px;
  max-width: 1080px;
}
.dev-filters__row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.dev-filters__row--actions {
  margin-top: 6px; padding-top: 14px;
  border-top: 1px solid var(--rule);
  align-items: center;
}
.dev-filters__label {
  font-size: 11px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3);
  flex: 0 0 90px;
}
.dev-filters__chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  flex: 1;
}
.dev-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  background: rgba(0,0,0,.03);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px; font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s ease;
}
.dev-chip:hover {
  background: rgba(192,21,42,.06);
  color: var(--bcm-red);
}
.dev-chip.is-active {
  background: var(--bcm-red);
  color: #fff;
  border-color: var(--bcm-red);
  font-weight: 600;
}
.dev-filters__search {
  flex: 1; min-width: 180px;
  padding: 9px 14px;
  font-family: inherit; font-size: 13.5px;
  background: rgba(0,0,0,.03);
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  outline: none;
  transition: var(--t);
}
.dev-filters__search:focus {
  border-color: var(--bcm-red);
  background: #fff;
}
.dev-filters__clear {
  padding: 8px 14px;
  font-family: inherit; font-size: 12.5px; font-weight: 500;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-3);
  cursor: pointer;
  transition: var(--t);
}
.dev-filters__clear:hover {
  border-color: var(--bcm-red); color: var(--bcm-red);
}
.dev-filters__count {
  font-size: 12px; color: var(--ink-3);
  letter-spacing: .04em;
  margin-left: auto;
}

/* --- Card themes (small theme tags inside cards) --- */
.dev-card__themes {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-top: 12px;
}
.dev-card__theme {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(192,21,42,.06);
  color: var(--bcm-red);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .04em;
}

/* --- Grid loading + empty states --- */
.dev-grid__loading {
  grid-column: 1 / -1;
  text-align: center; padding: 80px 20px;
  color: var(--ink-3); font-style: italic;
}
.dev-empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--ink-3); font-style: italic;
  font-size: 1.05rem;
}
.dev-empty-state .btn { margin-top: 14px; }

@media (max-width: 720px) {
  .dev-filters { padding: 18px 16px; gap: 12px; }
  .dev-filters__label { flex: 0 0 100%; margin-bottom: -6px; }
  .dev-filters__row--actions { flex-wrap: wrap; gap: 10px; }
  .dev-filters__count { margin-left: 0; flex: 1 1 100%; text-align: center; padding-top: 6px; }
}

/* --- Poem rendering inside reader (MacDonald) --- */
.dev-prose .poem-line {
  margin: 0;
  line-height: 1.65;
  font-size: 1.06rem;
}
.dev-prose .poem-break { margin: 8px 0; line-height: 1; }

/* ============================================================
   Library hub — Bookshelf edition
   ============================================================
   Designed for scale: the shelves view groups books by author,
   each shelf horizontally-scrollable.  Book cards are tall &
   slim, face-out like real book covers on a shelf.  Search-first
   controls scale to thousands of books.
   ============================================================ */

.lib-controls {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin: 32px auto 36px;
  display: flex; flex-direction: column; gap: 16px;
  max-width: 1200px;
}
.lib-search-row {
  display: flex; gap: 16px; align-items: center;
  flex-wrap: wrap;
}
.lib-search-wrap {
  position: relative;
  flex: 1; min-width: 220px;
}
.lib-search-icon {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}
.lib-search {
  width: 100%;
  padding: 12px 18px 12px 44px;
  background: rgba(0,0,0,.03);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit; font-size: 14.5px;
  color: var(--ink);
  outline: none;
  transition: var(--t);
}
.lib-search:focus {
  background: #fff;
  border-color: var(--bcm-red);
  box-shadow: 0 0 0 3px rgba(192,21,42,.08);
}
.lib-search::placeholder { color: var(--ink-3); font-style: italic; }
.lib-actions {
  display: flex; gap: 14px; align-items: center;
}
.lib-count {
  font-size: 12.5px; color: var(--ink-3);
  letter-spacing: .04em;
  white-space: nowrap;
}
.lib-view-toggle {
  display: flex; align-items: center;
  background: rgba(0,0,0,.04);
  border-radius: 999px;
  padding: 3px;
}
.lib-view-toggle button {
  border: 0; background: transparent;
  padding: 6px 14px;
  font-family: inherit; font-size: 12.5px; font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  border-radius: 999px;
  transition: var(--t);
}
.lib-view-toggle button.is-active {
  background: var(--bcm-red); color: #fff; font-weight: 600;
}

.lib-filter-row {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.lib-filter-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-3);
  flex: 0 0 70px;
}
.lib-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  flex: 1;
}
.lib-chip {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  background: rgba(0,0,0,.03);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit; font-size: 12px; font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s ease;
}
.lib-chip:hover { background: rgba(192,21,42,.06); color: var(--bcm-red); }
.lib-chip.is-active {
  background: var(--bcm-red); color: #fff; border-color: var(--bcm-red); font-weight: 600;
}

/* --- Shelves (default view, grouped by author) --- */
.lib-shelves {
  display: flex; flex-direction: column;
  gap: 56px;
}
.lib-loading {
  text-align: center; padding: 80px 20px;
  color: var(--ink-3); font-style: italic;
}
.lib-shelf {
  position: relative;
}
.lib-shelf__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: relative;
}
.lib-shelf__head::after {
  content: ""; position: absolute;
  left: 0; bottom: -1px;
  width: 60px; height: 2px; background: var(--bcm-red);
}
.lib-shelf__author {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  letter-spacing: -.02em;
  color: var(--ink);
}
.lib-shelf__meta {
  margin-top: 4px;
  font-size: 12px; letter-spacing: .04em;
  color: var(--ink-3); font-style: italic;
}
.lib-shelf__count {
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--bcm-red);
  white-space: nowrap; margin-left: 12px;
}
.lib-shelf__row {
  display: flex; gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.18) transparent;
}
.lib-shelf__row::-webkit-scrollbar { height: 8px; }
.lib-shelf__row::-webkit-scrollbar-track { background: transparent; }
.lib-shelf__row::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.18); border-radius: 4px;
}
.lib-shelf__row::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.3); }

/* --- Grid view (alphabetical, all books) --- */
.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.lib-empty {
  text-align: center; padding: 80px 20px;
  color: var(--ink-3); font-style: italic; font-size: 1.05rem;
}
.lib-empty .btn { margin-top: 16px; }

/* --- Book card (face-out, like a real book on a shelf) --- */
.lib-book {
  position: relative;
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: linear-gradient(135deg, #fefdfa 0%, #fbf6ee 100%);
  border: 1px solid rgba(120,90,40,.18);
  border-radius: 4px 6px 6px 4px;
  padding: 24px 22px 18px;
  display: flex; flex-direction: column;
  cursor: pointer;
  text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  min-height: 320px;
  /* Subtle "spine" shadow to imply three-dimensionality */
  box-shadow:
    inset 4px 0 0 rgba(192,21,42,.10),
    inset 5px 0 0 rgba(255,255,255,.5),
    0 1px 3px rgba(0,0,0,.06),
    0 4px 12px -8px rgba(0,0,0,.08);
}
.lib-book:hover {
  transform: translateY(-4px);
  border-color: var(--bcm-red);
  box-shadow:
    inset 4px 0 0 var(--bcm-red),
    inset 5px 0 0 rgba(255,255,255,.5),
    0 14px 32px -10px rgba(192,21,42,.22),
    0 4px 12px -6px rgba(0,0,0,.10);
}
.lib-book:focus-visible {
  outline: 2px solid var(--bcm-red);
  outline-offset: 2px;
}
.lib-book--grid {
  flex: 0 0 auto;
  min-height: 360px;
}

.lib-book__year {
  font-family: var(--font-body);
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em;
  color: var(--bcm-red); text-transform: uppercase;
  margin-bottom: 14px;
  padding-left: 8px; /* clear the spine */
}
.lib-book__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.15rem; line-height: 1.2; letter-spacing: -.018em;
  color: var(--ink);
  margin-bottom: 8px;
  padding-left: 8px;
  /* Allow up to 3 lines, then ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lib-book--grid .lib-book__title {
  -webkit-line-clamp: 4;
  font-size: 1.18rem;
}
.lib-book__subtitle {
  font-family: var(--font-display); font-style: italic;
  font-size: 12.5px; line-height: 1.35;
  color: var(--ink-3);
  margin-bottom: 10px;
  padding-left: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lib-book__author {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 12px;
  padding-left: 8px;
}
.lib-book__blurb {
  font-size: 12.5px; line-height: 1.55;
  color: var(--ink-3);
  margin-bottom: 14px;
  padding-left: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.lib-book__themes {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-bottom: 12px;
  padding-left: 8px;
}
.lib-book__theme {
  font-size: 9.5px; font-weight: 600; letter-spacing: .08em;
  color: var(--bcm-red);
  padding: 2px 7px;
  background: rgba(192,21,42,.06);
  border-radius: 999px;
  text-transform: uppercase;
}
.lib-book__bar {
  height: 3px; border-radius: 2px;
  background: rgba(0,0,0,.06);
  margin: auto 8px 12px 8px;
  overflow: hidden;
}
.lib-book__bar.is-zero { background: rgba(0,0,0,.04); }
.lib-book__bar.is-done .lib-book__bar-fill {
  background: linear-gradient(90deg, #d4a017, var(--bcm-red));
}
.lib-book__bar-fill {
  height: 100%; width: 0;
  background: var(--bcm-red);
  transition: width .35s ease;
}
.lib-book__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 12px 8px 0 8px;
  border-top: 1px solid rgba(0,0,0,.07);
  font-size: 11px;
}
.lib-book__pill {
  display: inline-block;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(0,0,0,.04); color: var(--ink-2);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
}
.lib-book__pill.is-active { background: var(--bcm-red); color: #fff; }
.lib-book__pill.is-done {
  background: linear-gradient(90deg, #d4a017, var(--bcm-red));
  color: #fff;
}
.lib-book__pill.is-ext {
  background: rgba(15,30,61,.08);
  color: #0f1e3d;
  letter-spacing: .14em;
}
/* External book cards: subtle visual differentiation — slightly cooler tint
   on the cream background to signal "links elsewhere", and a corner glyph. */
.lib-book--external {
  background: linear-gradient(135deg, #fefefe 0%, #f4f6fa 100%);
  border-color: rgba(15,30,61,.14);
  box-shadow:
    inset 4px 0 0 rgba(15,30,61,.20),
    inset 5px 0 0 rgba(255,255,255,.5),
    0 1px 3px rgba(0,0,0,.06),
    0 4px 12px -8px rgba(0,0,0,.08);
}
.lib-book--external:hover {
  border-color: #0f1e3d;
  box-shadow:
    inset 4px 0 0 #0f1e3d,
    inset 5px 0 0 rgba(255,255,255,.5),
    0 14px 32px -10px rgba(15,30,61,.18),
    0 4px 12px -6px rgba(0,0,0,.10);
}
.lib-book--external .lib-book__year {
  color: #0f1e3d;
}

/* --- PDF book card variant: cream with red spine, "PDF" pill --- */
.lib-book--pdf .lib-book__year { color: var(--bcm-red); }
.lib-book__pill.is-pdf {
  background: #d4a017; color: #fff;
  letter-spacing: .14em;
}

/* --- PDF reader page (e.g. /devotion/edwards-affections.html) --- */
.dev-pdf-reader {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 3vw, 36px) 80px;
}
.dev-pdf-reader .dev-reader__head {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 24px;
  margin-bottom: 28px;
}
.dev-pdf-meta {
  margin-top: 18px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-3);
  letter-spacing: .04em;
}
.dev-pdf-frame-wrap {
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  height: 86vh;
  min-height: 600px;
  background: #f5f4ef;
  box-shadow: 0 8px 24px -12px rgba(0,0,0,.18);
}
.dev-pdf-frame {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.dev-pdf-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--ink-3);
  line-height: 1.7;
}
.dev-pdf-foot a {
  color: var(--bcm-red);
  text-decoration: underline;
}
@media (max-width: 720px) {
  .dev-pdf-frame-wrap { height: 70vh; min-height: 480px; }
}
.lib-book__cta {
  font-weight: 600; font-size: 11px;
  color: var(--ink-2); letter-spacing: .04em;
  white-space: nowrap;
  transition: color .15s ease;
}
.lib-book:hover .lib-book__cta { color: var(--bcm-red); }

@media (max-width: 720px) {
  .lib-controls { padding: 18px 16px; }
  .lib-filter-label { flex: 0 0 100%; margin-bottom: -6px; }
  .lib-shelf__row { gap: 14px; padding-bottom: 14px; }
  .lib-book { flex-basis: 200px; min-height: 280px; padding: 20px 18px 14px; }
  .lib-book--grid { min-height: 320px; }
}

