:root {
  color-scheme: light;
  --navy: #1d2b45;
  --navy-dark: #141f33;
  --ink: #1f2a33;
  --muted: #5d6b76;
  --line: #d9dfe4;
  --paper: #ffffff;
  --bg: #f4f2ee;
  --green: #4f7a5a;
  --green-bg: #eef3ee;
  --red: #a0503f;
  --red-bg: #f7eeeb;
  --accent: #9b2c3c;
  --focus: #3d78a8;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
}
a { color: var(--navy); }
.sc { font-variant: small-caps; letter-spacing: 0.03em; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px;
  background: var(--navy); color: #fff;
  font-family: var(--sans); font-size: 14px;
}
.brand { color: #fff; text-decoration: none; font-weight: 600; letter-spacing: 0.01em; }
.brand span { font-weight: 400; opacity: 0.8; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.who { opacity: 0.85; }
.signout { color: #fff; opacity: 0.9; }
.save-status { font-size: 13px; opacity: 0.9; min-width: 0; }
.save-status.error { color: #ffd2d2; opacity: 1; }
@media (max-width: 640px) {
  .brand span, .who { display: none; }
  .topbar { padding: 10px 16px; }
}

/* ---------- Layout ---------- */
.app { max-width: 820px; margin: 0 auto; padding: 28px 16px 80px; outline: none; }
.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 24px rgba(0,0,0,0.04);
  padding: 36px 40px;
}
@media (max-width: 640px) { .card { padding: 24px 18px; } }
.loading { font-family: var(--sans); color: var(--muted); text-align: center; padding: 60px 0; }

h1, h2, h3, h4 { font-family: var(--sans); color: var(--navy); line-height: 1.25; }
h1 { font-size: 34px; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 24px; margin: 0 0 14px; }
h3 { font-size: 19px; margin: 24px 0 8px; }
.lead { font-family: var(--sans); color: var(--muted); font-size: 18px; margin: 0 0 22px; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 11px 20px; border-radius: 8px; border: 1px solid var(--navy);
  background: var(--navy); color: #fff; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--navy-dark); }
.btn.secondary { background: #fff; color: var(--navy); }
.btn.secondary:hover { background: #eef2f5; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--navy); padding: 8px 10px; }
.btn.ghost:hover { background: #eef2f5; }
.btn.danger { background: #fff; color: var(--accent); border-color: #e3c4c9; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}

.field { margin: 0 0 22px; }
.field > label, .field .label {
  display: block; font-family: var(--serif); font-size: 17px; margin-bottom: 8px; color: var(--ink);
}
.field .letter { font-family: var(--sans); font-weight: 600; color: var(--navy); margin-right: 6px; }
.field .hint { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: -2px 0 8px; }
.optional-tag {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; margin-left: 6px;
}
input[type="text"], input[type="date"], textarea {
  width: 100%;
  font-family: var(--serif); font-size: 17px; line-height: 1.55; color: var(--ink);
  background: #fbfbfa; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus { background: #fff; border-color: var(--focus); }
.checks { display: grid; gap: 10px; margin: 6px 0 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--navy); flex: none; }

/* ---------- Home ---------- */
.home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ws-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ws-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff;
}
.ws-title { font-family: var(--sans); font-weight: 600; font-size: 17px; color: var(--ink); margin: 0 0 2px; }
.ws-meta { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.ws-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; border-radius: 4px; padding: 2px 7px; margin-left: 8px; vertical-align: 2px;
}
.badge.done { background: var(--green-bg); color: var(--green); }
.badge.progress { background: #eef2f5; color: var(--navy); }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }

/* ---------- Progress ---------- */
.progress { margin: 0 0 18px; font-family: var(--sans); }
.progress-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; gap: 10px; }
.progress-top strong { color: var(--navy); font-weight: 600; }
.dots { display: flex; gap: 4px; }
.dot {
  flex: 1; height: 6px; border-radius: 3px; background: #dfe3e6; border: 0; padding: 0; cursor: pointer;
}
.dot.done { background: #9fb3c2; }
.dot.current { background: var(--navy); }
.dot:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Content blocks ---------- */
.q-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.q-num {
  flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff;
  font-family: var(--sans); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.q-title { margin: 0; font-size: 23px; }
.q-tag {
  display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-top: 4px;
}
.prompt em { color: #4b5862; }
.list { padding-left: 0; list-style: none; margin: 0 0 16px; display: grid; gap: 12px; }
.list li { padding-left: 16px; border-left: 3px solid #d5dde3; }

/* ---------- Step nav ---------- */
.step-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 26px;
}
.step-nav .right { display: flex; gap: 10px; margin-left: auto; }

/* ---------- Review ---------- */
.review-section { border-top: 1px solid var(--line); padding: 18px 0 6px; }
.review-section h3 { margin: 0 0 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.review-section h3 a { font-size: 14px; font-weight: 500; }
.review-q { font-size: 15px; color: var(--muted); margin: 0 0 4px; }
.review-a { white-space: pre-wrap; margin: 0 0 14px; padding-left: 12px; border-left: 3px solid #cfd9e0; }
.review-a.empty-a { color: #9aa6af; font-style: italic; border-left-color: #eee; }
.finish-box { background: #f6f8fa; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 24px; }
.finish-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.notice { font-family: var(--sans); font-size: 14px; border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; }
.notice.ok { background: var(--green-bg); color: #2f5a3a; }
.notice.warn { background: #fff6e5; color: #6b4d12; }
.notice.err { background: #fbeaea; color: #7a2323; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(20,30,40,0.45); display: flex; align-items: center; justify-content: center;
  padding: 16px; z-index: 50;
}
.modal { background: #fff; border-radius: 12px; max-width: 520px; width: 100%; padding: 26px; box-shadow: 0 20px 50px rgba(0,0,0,0.25); }
.modal h2 { font-size: 21px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-family: var(--sans); font-size: 15px; }
.copy-row code { background: #f1f3f5; padding: 4px 8px; border-radius: 5px; }

/* =====================================================================
   v1.1 design layer
   ===================================================================== */
:root {
  /* The five movements of Isaiah 6 */
  --see: #a8761a;
  --assess: #4a6485;
  --grace: #a3442e;
  --call: #1d2b45;
  --respond: #3f7550;
  --heat: var(--see); /* feedback button accent */
  --fruit: var(--respond);
}
.theme-see { --t: var(--see); }
.theme-assess { --t: var(--assess); }
.theme-grace { --t: var(--grace); }
.theme-call { --t: var(--call); }
.theme-respond { --t: var(--respond); }

.app { transition: max-width 0.2s; }
.app.wide { max-width: 1100px; }
.card { animation: stepIn 0.35s ease-out; }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h2.step-title { font-size: 30px; letter-spacing: -0.01em; margin-bottom: 18px; }
.block { margin: 34px 0 10px; }
.block-h {
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--t, var(--navy)); margin: 0 0 14px;
}
.muted { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .card, .passage { animation: none !important; }
}

/* ---------- Welcome hero ---------- */
.hero {
  position: relative; overflow: hidden;
  margin: -36px -40px 28px; padding: 44px 40px 40px;
  background:
    radial-gradient(circle at 88% 20%, rgba(214, 170, 80, 0.30), transparent 45%),
    linear-gradient(135deg, #22384a 0%, #2e4a5f 60%, #3c5d73 100%);
  color: #fff; border-radius: var(--radius) var(--radius) 0 0;
  }
.hero h1 { color: #fff; font-size: 42px; margin: 4px 0 8px; }
.hero .eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.75; }
.hero-lead { font-family: var(--serif); font-style: italic; font-size: 20px; margin: 0; opacity: 0.92; }
@media (max-width: 640px) {
  .hero { margin: -24px -18px 22px; padding: 30px 20px; }
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 17px; }
}

/* ---------- Video ---------- */
.video { margin: 0 0 28px; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1d2c38;
  box-shadow: 0 10px 30px rgba(20, 35, 48, 0.18);
}
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #fff; text-align: center; padding: 20px;
  background:
    repeating-conic-gradient(from 0deg at 50% 120%, rgba(255,255,255,0.035) 0deg 6deg, transparent 6deg 12deg),
    linear-gradient(160deg, #2e4a5f, #1d2c38);
}
.video-placeholder .play {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.14); border: 1.5px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center; padding-left: 4px;
}
.vp-title { font-family: var(--sans); font-weight: 600; font-size: 18px; }
.vp-sub { font-family: var(--sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.video figcaption { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- Section band ---------- */
.section-band {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: -36px -40px 26px; padding: 14px 40px;
  background: linear-gradient(90deg, var(--t), color-mix(in srgb, var(--t) 78%, #000));
  color: #fff; border-radius: var(--radius) var(--radius) 0 0; font-family: var(--sans);
}
.sb-title { font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.sb-range { font-size: 13px; opacity: 0.85; }
@media (max-width: 640px) { .section-band { margin: -24px -18px 20px; padding: 14px 18px; } .sb-title { font-size: 12px; } }

/* ---------- Scripture references ---------- */
.read { font-family: var(--sans); font-size: 14px; margin: -2px 0 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.read b { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); margin-right: 8px; }
.sep { color: #9aa6af; margin: 0 6px; }
.ref {
  all: unset; cursor: pointer; font-family: var(--sans); font-size: 14px; color: var(--c, var(--navy)); font-weight: 500;
  border-bottom: 1.5px dotted currentColor; line-height: 1.3;
}
.ref:hover { border-bottom-style: solid; }
.ref:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.ref[aria-expanded="true"] { border-bottom-style: solid; }

.passage {
  position: absolute; z-index: 60; width: min(440px, calc(100vw - 32px)); max-height: min(70vh, 520px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(20, 35, 48, 0.28), 0 0 0 1px rgba(0,0,0,0.05);
  animation: stepIn 0.18s ease-out;
}
.passage-head {
  display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line);
  font-family: var(--sans);
}
.passage-ref { font-weight: 700; color: var(--navy); font-size: 16px; }
.passage-ver { font-size: 11px; letter-spacing: 0.1em; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.passage-close { all: unset; cursor: pointer; margin-left: auto; width: 30px; height: 30px; border-radius: 50%; text-align: center; line-height: 30px; color: var(--muted); }
.passage-close:hover { background: #f1f3f5; }
.passage-close:focus-visible { outline: 2px solid var(--focus); }
.passage-body { padding: 14px 18px; overflow: auto; }
.passage-text { white-space: pre-wrap; font-size: 17px; line-height: 1.65; }
.vn { font-family: var(--sans); font-size: 11px; font-weight: 700; color: var(--heat); margin-right: 3px; vertical-align: super; line-height: 0; }
.passage-notice { font-family: var(--sans); font-size: 10.5px; color: #8a96a0; line-height: 1.4; margin: 14px 0 0; }
.passage-foot { padding: 10px 18px 14px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 13px; }
.passage-foot a { color: var(--muted); }
.passage.sheet {
  position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-height: 75vh;
  border-radius: 18px 18px 0 0; animation: sheetUp 0.22s ease-out;
}
.passage-backdrop { position: fixed; inset: 0; background: rgba(20,30,40,0.35); z-index: 59; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Progress dots ---------- */
.dot.done { background: color-mix(in srgb, var(--c, #9fb3c2) 45%, #fff); }
.dot.current { background: var(--c, var(--navy)); }

/* ---------- Footer ---------- */
.site-footer {
  max-width: 820px; margin: -50px auto 0; padding: 0 16px 36px; text-align: center;
  font-family: var(--sans); font-size: 12.5px; color: var(--muted);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px;
}
.site-footer a { color: var(--muted); }
.site-footer .dotsep { color: #b5bec5; }

/* ---------- Leaders ---------- */
.badge.new { background: #fbefe0; color: #8a5a12; }
.admin-tools { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 0 0 16px; }
.admin-tools input[type="text"] { flex: 1 1 260px; font-family: var(--sans); font-size: 15px; }
.admin-tools .check { font-family: var(--sans); font-size: 14px; }
.sub-item .ws-title .badge { margin-left: 6px; }

/* ---------- Feedback ---------- */
.fb-launch {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--heat); color: #fff; font: 600 14px var(--sans); box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
.fb-launch:hover { filter: brightness(1.05); }
.fb-launch:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.fb-panel {
  position: fixed; right: 18px; bottom: 76px; z-index: 45; width: min(420px, calc(100vw - 36px)); max-height: calc(100vh - 110px);
  display: flex; flex-direction: column; background: #fff; border-radius: 16px;
  box-shadow: 0 20px 50px rgba(20,35,48,0.3), 0 0 0 1px rgba(0,0,0,0.05); animation: stepIn 0.18s ease-out;
}
.fb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 16px 18px 10px; border-bottom: 1px solid var(--line); }
.fb-head h2 { font-size: 18px; margin: 0; }
.fb-page { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 2px; }
.fb-x { all: unset; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; text-align: center; line-height: 30px; color: var(--muted); }
.fb-x:hover { background: #f1f3f5; }
.fb-body { padding: 12px 18px 18px; overflow: auto; }
.fb-body textarea { min-height: 90px; font-size: 16px; margin: 10px 0; }
.fb-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.fb-chip input { position: absolute; opacity: 0; }
.fb-chip span {
  display: inline-block; font: 500 13px var(--sans); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; color: var(--ink);
}
.fb-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.fb-chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.fb-point { font-size: 14px; padding: 8px 12px; }
.fb-anchor { font-family: var(--serif); font-style: italic; font-size: 14px; color: #5a6670; background: #f6f6f3; border-left: 3px solid var(--heat); padding: 6px 10px; border-radius: 0 6px 6px 0; margin: 4px 0 6px; }
.fb-chosen { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.fb-clear { all: unset; cursor: pointer; color: var(--muted); font-style: normal; }
.fb-list-h { font-size: 14px; margin: 20px 0 8px; }
.fb-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fb-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.fb-item.resolved { opacity: 0.6; }
.fb-item.flash { animation: fbFlash 1.4s ease-out; }
@keyframes fbFlash { 0% { background: #fdf0d8; } 100% { background: #fff; } }
.fb-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font: 12px var(--sans); color: var(--muted); margin-bottom: 4px; }
.fb-meta b { color: var(--ink); }
.fb-num { width: 20px; height: 20px; border-radius: 50%; background: var(--heat); color: #fff; text-align: center; line-height: 20px; font-weight: 700; font-size: 11px; }
.fb-cat { border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }
.fb-cat.ok { color: var(--fruit); border-color: color-mix(in srgb, var(--fruit) 40%, #fff); }
.fb-text { white-space: pre-wrap; }
.fb-resolve { font-size: 13px; padding: 4px 8px; margin-top: 4px; }
.fb-pin {
  position: absolute; z-index: 30; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; cursor: pointer;
  background: var(--heat); color: #fff; font: 700 12px/20px var(--sans); text-align: center; padding: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
body.fb-picking #app * { cursor: crosshair !important; }
.fb-hover { outline: 3px dashed var(--heat) !important; outline-offset: 4px; border-radius: 6px; background-color: rgba(196, 133, 26, 0.06); }
#fb-pickbar {
  position: fixed; left: 50%; top: 58px; transform: translateX(-50%); z-index: 50; background: var(--navy); color: #fff;
  font: 500 14px var(--sans); padding: 10px 10px 10px 16px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
}
#fb-pickbar .btn { color: #fff; padding: 6px 12px; }
#fb-pickbar .btn:hover { background: rgba(255,255,255,0.12); }
@media (max-width: 640px) {
  .fb-launch span { display: none; }
  .fb-launch { padding: 12px; }
  .fb-panel { right: 0; left: 0; bottom: 0; width: 100%; max-height: 85vh; border-radius: 18px 18px 0 0; }
}

.admin-tabs { display: flex; gap: 4px; margin-bottom: 12px; font-family: var(--sans); }
.admin-tabs a { padding: 6px 12px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.admin-tabs a.on { background: var(--navy); color: #fff; }
.admin-tools select { font-family: var(--sans); font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.fb-group h3 { margin: 22px 0 10px; font-size: 17px; }
.fb-panel[hidden] { display: none; }

/* =====================================================================
   Calling Exercise blocks
   ===================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow-line { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--see); margin-bottom: 6px; }
h2.step-title { font-family: var(--serif); font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.step-title + .lead { font-family: var(--serif); font-style: italic; }
.pill {
  display: inline-block; font: 600 12px/1 var(--sans); padding: 6px 11px; border-radius: 999px;
  border: 1.5px solid currentColor; white-space: nowrap;
}
.section-band .pill { color: #fff; border-color: rgba(255,255,255,0.7); }

/* layout with the Isaiah 6 side panel */
.m-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 34px; align-items: start; }
.m-aside { position: sticky; top: 76px; }
.pattern { font-family: var(--sans); }
.pattern-h { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pattern ol, .pattern-side { list-style: none; margin: 0; padding: 0; }
.pattern li, .pattern-side li { border-top: 1px solid var(--line); padding: 9px 0 9px 12px; border-left: 3px solid transparent; }
.pattern li { opacity: 0.55; }
.pattern li.on { opacity: 1; border-left-color: var(--t); background: color-mix(in srgb, var(--t) 7%, #fff); }
.pt-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.pt-top b { font-size: 14px; color: var(--navy); }
.pattern li.on .pt-top b { color: var(--t); }
.pt-v, .pt-v .ref { font-size: 12px; color: var(--muted); }
.pt-text { font-family: var(--serif); font-size: 14.5px; line-height: 1.4; margin-top: 2px; }
.pt-ex { font-size: 12px; color: var(--see); margin-top: 3px; }
.pattern-side li { border-left: 3px solid var(--c, transparent); }
.pattern-side .pt-see { --c: var(--see); } .pattern-side .pt-assess { --c: var(--assess); }
.pattern-side .pt-grace { --c: var(--grace); } .pattern-side .pt-call { --c: var(--call); } .pattern-side .pt-respond { --c: var(--respond); }
@media (max-width: 860px) {
  .m-layout { grid-template-columns: 1fr; gap: 14px; }
  .m-aside { position: static; }
  .pattern-h, .pt-text, .pt-ex, .pt-v { display: none; }
  .pattern ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .pattern li { border: 0; border-bottom: 3px solid var(--line); padding: 4px 0; text-align: center; background: none !important; }
  .pattern li.on { border-bottom-color: var(--t); }
  .pt-top { justify-content: center; }
  .pt-top b { font-size: 12.5px; }
}

/* quotes, cards, notes */
.bigquote { margin: 6px 0 22px; padding: 22px 26px; background: var(--navy); color: #fff; border-radius: var(--radius); }
.bigquote p { font-style: italic; font-size: 22px; line-height: 1.45; margin: 0 0 8px; }
.bigquote cite, .quotes cite { font: 600 11.5px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; font-style: normal; color: #e2c98b; }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin: 0 0 22px; }
.quotes blockquote { margin: 0; }
.quotes p { font-style: italic; font-size: 19px; line-height: 1.45; margin: 0 0 6px; }
.quotes cite { color: var(--see); }
.quotes cite .ref { font-size: 11.5px; color: var(--see); }
@media (max-width: 640px) { .quotes { grid-template-columns: 1fr; } .bigquote p { font-size: 19px; } }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-card { background: #f4f1ea; border: 1px solid #e4ddcd; border-radius: 8px; padding: 14px 16px; font-size: 16px; line-height: 1.5; }
.mini-card b { font-family: var(--sans); font-size: 14px; color: var(--navy); }
.mini-card p { margin: 4px 0 0; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.tip { font-family: var(--sans); font-size: 14px; color: var(--muted); background: #f4f6f8; border-radius: 8px; padding: 10px 14px; margin-top: 20px; }
.note-box { background: #f4f1ea; border-radius: 8px; padding: 14px 18px; margin: 14px 0 20px; font-size: 16.5px; }
.note-box p { margin: 0; }
.note-t { font: 700 12px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--see); margin-bottom: 4px; }
.box { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 0 0 18px; font-size: 16px; color: var(--muted); }
.hint-p, .q-hint { color: var(--muted); font-size: 16.5px; }
.subhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); margin: 26px 0 12px; padding-bottom: 6px; }
.subhead h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--navy); margin: 0; }
.subhead .pill { color: var(--navy); }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; border-top: 2px solid #d6cdb8; margin-top: 18px; }
.twocol p { font-size: 16.5px; }
@media (max-width: 640px) { .twocol { grid-template-columns: 1fr; gap: 0; } }

/* scripture */
.scripture { margin: 0 0 22px; }
.scripture.boxed { background: #f4f1ea; border-radius: var(--radius); padding: 18px 24px 6px; font-style: normal; }
.scripture-h, .scripture-ver { font: 700 11.5px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--see); margin-bottom: 8px; }
.scripture-ver { text-align: right; color: var(--muted); }
.scripture p { margin: 0 0 10px; }
.poetry { font-style: italic; margin: 0 0 10px; }
.vn { color: var(--see); }
.scripture-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 30px; align-items: start; }
.pattern-side { font-family: var(--sans); }
@media (max-width: 760px) { .scripture-grid { grid-template-columns: 1fr; gap: 10px; } }

/* numbered questions */
.q { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; margin: 22px 0; }
.q-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff;
  font: 700 14px/32px var(--sans); text-align: center; margin-top: 1px;
}
.q-text { margin: 0 0 8px; font-size: 18.5px; }
.q.big .q-text { font-weight: 600; font-size: 26px; color: var(--navy); line-height: 1.3; }
.q .field { margin-bottom: 0; }
.field > label.caps { font: 600 12px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* G / C / W */
.gcw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 6px 0 10px; }
.gcw-card { border: 1px solid #d9d2c1; border-radius: 8px; padding: 14px 16px 4px; font-size: 16px; line-height: 1.5; }
.gcw-h { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.gcw-h b { font-family: var(--serif); font-size: 20px; color: var(--navy); }
.gcw-l { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 13px/28px var(--sans); text-align: center; }
.gcw .eg { font-style: italic; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .gcw { grid-template-columns: 1fr; } }

/* prayer */
.prayer-box { background: #f4f1ea; border-radius: var(--radius); padding: 22px 26px; margin: 0 0 18px; font-style: italic; font-size: 16.5px; line-height: 1.5; display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; }
.prayer-box.flow { display: block; column-count: 2; column-gap: 34px; }
.pl { padding-left: calc(var(--lvl) * 1.1em + 1.1em); text-indent: -1.1em; break-inside: avoid; }
@media (max-width: 700px) { .prayer-box { grid-template-columns: 1fr; column-count: 1; padding: 18px; } }

/* worksheets and tables */
.worksheet { margin: 26px 0 10px; }
.ws-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ws-head h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0; color: var(--navy); }
.ws-head .block-h { margin: 0 0 2px; color: var(--see); }
.ws-legend { font: 13px/1.5 var(--sans); color: var(--muted); text-align: right; }
.ws-foot { font-style: italic; color: var(--muted); font-size: 15.5px; margin-top: 8px; }
.table { border: 1px solid var(--navy); border-radius: 6px; overflow: hidden; margin: 8px 0 6px; }
.t-row { display: grid; border-top: 1px solid #dcd6c8; }
.t-head { background: var(--navy); color: #fff; border-top: 0; }
.t-head .t-cell { font: 700 11px/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; padding: 10px; }
.t-cell { border-left: 1px solid #dcd6c8; min-width: 0; }
.t-cell:first-child { border-left: 0; }
.t-head .t-cell { border-left-color: rgba(255,255,255,0.25); }
.t-example .t-cell { font-style: italic; color: var(--muted); padding: 9px 10px; font-size: 15.5px; }
.t-cell input, .t-cell textarea, .t-cell select {
  width: 100%; border: 0; border-radius: 0; background: transparent; font: 16px/1.45 var(--serif); color: var(--ink);
  padding: 9px 10px; min-height: 44px; resize: vertical;
}
.t-cell textarea { min-height: 44px; display: block; }
.t-cell select { appearance: auto; cursor: pointer; }
.t-cell input:focus, .t-cell textarea:focus, .t-cell select:focus { background: #f6f8fb; outline: 2px solid var(--focus); outline-offset: -2px; }
.role-ro { padding: 9px 10px; font-size: 16px; font-weight: 600; color: var(--navy); }
.add-row { margin-top: 4px; }
.ws-total { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: flex-end; font-family: var(--sans); font-size: 14px; margin-top: 10px; }
.ws-total > label { font-weight: 700; }
.ws-total input[type="text"] { width: 110px; padding: 6px 10px; font-size: 16px; }
.units { display: inline-flex; gap: 4px; }
.unit input { position: absolute; opacity: 0; }
.unit span { display: inline-block; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; color: var(--muted); }
.unit input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.unit input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 640px) {
  .table { border: 0; overflow: visible; }
  .t-head { display: none; }
  .t-row { display: block !important; border: 1px solid #d9d2c1; border-radius: 8px; margin: 0 0 10px; background: #fff; }
  .t-cell { border-left: 0; border-top: 1px solid #eee8db; }
  .t-cell:first-child { border-top: 0; }
  .t-cell::before { content: attr(data-label); display: block; font: 700 10.5px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 7px 10px 0; }
  .t-example { background: #faf8f3; }
  .ws-legend { text-align: left; }
}

/* checks shown inline ("Read [] [] []") */
.checks.inline { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: -6px 0 10px; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.checks.inline .check input { margin: 0; width: 22px; height: 22px; }

/* schedule */
table.schedule { width: 100%; border-collapse: collapse; font-size: 17px; border: 1px solid var(--navy); border-radius: 6px; overflow: hidden; }
table.schedule th { background: var(--navy); color: #fff; font: 700 11px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; text-align: left; padding: 10px 12px; }
table.schedule td { padding: 7px 12px; border-top: 1px solid #e3ddcf; }
table.schedule td.n { font: 700 13px var(--sans); color: var(--see); width: 34px; }
table.schedule td.m { font: 13px var(--sans); color: var(--muted); }
table.schedule td.t { font: 600 13px var(--sans); white-space: nowrap; text-align: right; }
table.schedule tr.brk td { background: #f4f1ea; font-style: italic; }
table.schedule a { color: var(--ink); text-decoration: none; border-bottom: 1px dotted #b9b2a3; }
table.schedule a:hover { color: var(--navy); border-bottom-style: solid; }
table.schedule tfoot td { font: 700 13px var(--sans); border-top: 1.5px solid var(--navy); }
@media (max-width: 640px) { table.schedule td.m { display: none; } table.schedule th:nth-child(3) { display: none; } table.schedule { font-size: 15.5px; } }

/* recap, break, stuck, reading */
.recap { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 4px; margin: 0 0 18px; background: #fbfaf7; }
.recap table, .stuck table { width: 100%; border-collapse: collapse; font-size: 16px; }
.recap th { font: 700 11px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 4px 8px 6px 0; }
.recap td { border-top: 1px solid var(--line); padding: 6px 8px 6px 0; }
.recap tfoot td { font-weight: 600; }
.recap p { margin: 8px 0 10px; }
.break-box { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: #f4f1ea; border-radius: 8px; padding: 14px 20px; margin: 22px 0 6px; }
.break-box b { font-family: var(--serif); font-size: 18px; color: var(--navy); }
.break-box .pill { color: var(--navy); }
@media (max-width: 560px) { .break-box { grid-template-columns: 1fr auto; } .break-box span:not(.pill) { grid-column: 1 / -1; grid-row: 2; } }
.stuck { background: #f4f1ea; border-radius: var(--radius); padding: 16px 22px 6px; margin: 18px 0; }
.stuck td { border-top: 1px solid #dcd3bf; padding: 7px 10px 7px 0; vertical-align: top; }
.stuck td:first-child { width: 150px; white-space: nowrap; }
.stuck .ref { font-weight: 700; }
.stuck-foot { font-style: italic; color: var(--muted); font-size: 15.5px; border-top: 1px solid #dcd3bf; padding-top: 8px; margin-top: 2px; }
@media (max-width: 560px) { .stuck td { display: block; border: 0; padding: 2px 0; } .stuck tr { display: block; border-top: 1px solid #dcd3bf; padding: 6px 0; } }
.reading { border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px 6px; margin: 10px 0 0; }
.reading ul { list-style: none; padding: 0; margin: 0 0 8px; }

/* review */
.finish-box { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; background: #fbfaf7; border: 1px solid var(--navy); }
@media (max-width: 700px) { .finish-box { grid-template-columns: 1fr; } }
.finish-text p { margin: 0; font-size: 16.5px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 16.5px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.cl-box { width: 22px; height: 22px; border: 1.5px solid var(--navy); border-radius: 4px; font: 700 14px/20px var(--sans); text-align: center; margin-top: 2px; }
.checklist li.ok .cl-box { background: var(--respond); border-color: var(--respond); color: #fff; }
.cl-miss { display: block; font: 13px var(--sans); color: var(--grace); margin-top: 2px; }
.checklist a { font-family: var(--sans); font-size: 13px; }
table.review-t { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 0 0 14px; }
table.review-t th { font: 700 11px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 4px 10px 6px 0; border-bottom: 1px solid var(--line); }
table.review-t td { padding: 6px 10px 6px 0; border-bottom: 1px solid #eef0f2; vertical-align: top; white-space: pre-wrap; }
