/* The First 39: Character Studies (/studies/<id>/ and /studies/<id>/week-<n>). Built by tools/build_studies.py.
   A week is one 33-minute session in seven parts; the strip at the top is the clock, each part as wide as its
   minutes. Prints cleanly as the leader guide. The dark container (.st-one) is in f39.css's focus-ring list. */

cite { font-style: normal; }
.st-hero h1 { font-size: var(--fs-hero); }
.st-hero .lead { max-width: 52ch; }
.st-crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-5); padding: 0; font-size: var(--fs-small); }
.st-crumb li + li::before { content: "/"; margin-right: var(--s-2); color: var(--stone); }
.st-crumb a { color: var(--stone); }
.st-crumb a[aria-current] { color: var(--ink); text-decoration: none; }
.st-facts { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-7); margin: var(--s-6) 0 0; }
.st-facts dt { font-family: var(--font-display); font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }
.st-facts dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }

.st-wrap { max-width: 880px; padding-block: var(--s-7) var(--s-9); }
.st-intro { max-width: 62ch; }


/* Each part of the session has its own color, the same every week, so a group always knows where it is.
   --pc is the fill (bars, rules); --pt is the same color dark enough for text on Scroll. Brand palette only;
   Clay stays out (History and errors). */
.st-c--story, .st-part--story         { --pc: var(--minor);    --pt: var(--minor); }
.st-c--context, .st-part--context     { --pc: var(--gold);     --pt: var(--gold-deep); }
.st-c--listen, .st-part--listen       { --pc: var(--poetry);   --pt: #4F6B58; }
.st-c--character, .st-part--character { --pc: var(--major);    --pt: var(--major); }
.st-c--christian, .st-part--christian { --pc: var(--tekhelet); --pt: var(--tekhelet); }
.st-c--personal, .st-part--personal   { --pc: var(--ink);      --pt: var(--ink); }
.st-c--close, .st-part--close         { --pc: var(--stone);    --pt: var(--stone); }

/* The clock */
.st-clock { position: sticky; top: 77px; z-index: 5; background: var(--scroll); padding-block: var(--s-3); margin-bottom: var(--s-6); border-bottom: 1px solid var(--line); }
.st-clock ol { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.st-clock li { flex-basis: 0; min-width: 64px; }
.st-clock a { display: grid; align-content: start; gap: 2px; min-height: 44px; padding: var(--s-2); background: var(--linen); border-top: 6px solid var(--pc, var(--accent)); border-radius: 2px; text-decoration: none; color: var(--ink); overflow: hidden; }
.st-clock a:hover { background: var(--accent-soft); }
.st-clock b { font-family: var(--font-display); font-size: .82rem; line-height: 1.15; overflow-wrap: anywhere; }
.st-clock small { font-size: .75rem; color: var(--stone); }
.st-clock-no { font-family: var(--font-display); font-weight: 900; font-size: .75rem; color: var(--pt, var(--accent)); }

/* The art-and-teaching note */
.st-note { border-left: 4px solid var(--gold); background: var(--linen); padding: var(--s-4) var(--s-5); margin: 0 0 var(--s-7); border-radius: 0 var(--radius) var(--radius) 0; }
.st-note p { margin: 0; font-size: var(--fs-small); max-width: none; }

/* A part of the session */
.st-part { padding-block: var(--s-7); border-top: 6px solid var(--pc, var(--line)); scroll-margin-top: calc(77px + 96px); }
.st-part-head { display: flex; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-5); }
.st-part-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin: 0; flex: 1; }
.st-part-no { font-family: var(--font-display); font-weight: 900; font-size: 2.25rem; line-height: 1; color: var(--pt, var(--accent)); min-width: 1.2ch; }
.st-min { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-small); color: var(--pt, var(--accent)); background: #fff; border: 1.5px solid var(--pc, var(--accent)); padding: .2rem .6rem; border-radius: var(--radius-pill); white-space: nowrap; }
.st-part h3 { font-size: 1.15rem; margin: 0 0 var(--s-2); }

.st-tag { font-size: var(--fs-small); color: var(--stone); font-style: italic; margin-top: 0; }
.st-story p { font-family: var(--font-scripture); font-size: 1.2rem; line-height: 1.6; max-width: 60ch; }

.st-read { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: baseline; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.st-read span, .st-wk-read span { font-size: var(--fs-eyebrow); letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }
.st-ctx { display: grid; gap: var(--s-5); margin: var(--s-5) 0 0; }
.st-ctx dt { font-family: var(--font-display); font-weight: 800; margin-bottom: var(--s-1); }
.st-ctx dd { margin: 0; max-width: 64ch; }

.st-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-block: var(--s-4) var(--s-6); }
.st-imagined, .st-silent { background: #fff; border: 1px dashed var(--stone); border-radius: var(--radius); padding: var(--s-5); margin-block: var(--s-5); }
.st-imagined ul, .st-silent ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--s-3); }
.st-imagined li { display: grid; gap: var(--s-1); }

.st-big { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.05; letter-spacing: -.02em; margin-top: 0; }
.st-big span { display: block; font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pt, var(--accent)); margin-bottom: var(--s-2); }
.st-points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6); counter-reset: pt; }
.st-points > li { counter-increment: pt; padding-left: 2.5rem; position: relative; }
.st-points > li::before { content: counter(pt); position: absolute; left: 0; top: 0; font-family: var(--font-display); font-weight: 900; color: var(--gold-deep); font-size: 1.15rem; }
.st-points p { max-width: 62ch; margin-bottom: 0; }
.st-quote { margin: var(--s-2) 0 0; border-left: 3px solid var(--pc, var(--accent)); padding-left: var(--s-4); }
.st-quote blockquote { margin: 0; }
.st-quote blockquote p { font-family: var(--font-scripture); font-size: 1.2rem; line-height: 1.5; margin: 0; max-width: 58ch; }
.st-quote figcaption { font-size: var(--fs-small); font-weight: 600; color: var(--stone); margin-top: var(--s-1); }
.st-part--personal > .st-quote { margin-block: var(--s-5); }

.st-qs { margin-top: var(--s-6); background: var(--linen); border-left: 4px solid var(--pc, var(--accent)); border-radius: var(--radius); padding: var(--s-4) var(--s-5); }
.st-qs h3 { font-size: var(--fs-eyebrow) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.st-qs ol { margin: 0; padding-left: 1.3em; display: grid; gap: var(--s-2); font-weight: 600; }

.st-one { background: var(--cedar); color: var(--scroll); border-radius: var(--radius); padding: var(--s-6); margin-top: var(--s-6); }
.st-one-k { font-family: var(--font-display); font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-on-dark); margin: 0 0 var(--s-2); }
.st-one-t { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.2; margin: 0; max-width: 40ch; }

.st-leader { margin-top: var(--s-5); font-size: var(--fs-small); color: var(--stone); max-width: 64ch; }
.st-leader span { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-eyebrow); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--linen); padding: .1rem .45rem; border-radius: 2px; margin-right: var(--s-1); }
.st-next, .st-after { font-family: var(--font-display); font-weight: 700; }
.st-after { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line); font-size: 1.15rem; }
.st-soon { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 600; color: var(--stone); }
.st-updated { font-size: var(--fs-small); color: var(--stone); margin-top: var(--s-7); }

/* The study page */
.st-sec { padding-block: var(--s-6) var(--s-7); }
.st-sec > h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: var(--s-5); }
.st-two { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-7); align-items: start; }
.st-quote--theme + .st-quote--theme { margin-top: var(--s-5); }
.st-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: var(--s-5) 0 0; padding: 0; }
.st-steps li { counter-increment: s; display: grid; gap: 2px; align-content: start; background: var(--linen); border-top: 6px solid var(--pc, var(--accent)); padding: var(--s-3) var(--s-2); }
.st-steps li::before { content: counter(s); font-family: var(--font-display); font-weight: 900; color: var(--pt, var(--accent)); font-size: .85rem; }
.st-steps b { font-family: var(--font-display); font-size: .9rem; line-height: 1.15; }
.st-steps span { font-size: .78rem; color: var(--stone); }
.st-weeks { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: 0; }
.st-weeks li { display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--s-4); padding-block: var(--s-5); border-top: 1px solid var(--line); }
.st-wk { font-family: var(--font-display); font-weight: 900; font-size: 1.75rem; line-height: 1; color: var(--accent); }
.st-weeks .is-soon .st-wk { color: var(--stone); }
.st-weeks h3 { font-size: 1.3rem; margin: 0 0 var(--s-1); }
.st-weeks h3 a { color: var(--ink); }
.st-sub { margin: 0 0 var(--s-2); font-weight: 600; }
.st-wk-read + .st-wk-read { margin-top: var(--s-1); }
.st-wk-read { margin: 0; min-height: 28px; line-height: 1.9; font-size: var(--fs-small); display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); align-items: baseline; }


/* Review: check what we just read; each answer sits behind a tap (VALUES.md: pause to review) */
.st-review ol { margin: 0; padding-left: 1.3em; display: grid; gap: var(--s-2); }
.st-review summary { cursor: pointer; font-weight: 600; min-height: 32px; padding-block: .25em; }
.st-review summary::marker { color: var(--pt, var(--accent)); }
.st-review summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.st-review details[open] summary { margin-bottom: var(--s-1); }
.st-review details p { margin: 0 0 var(--s-2); max-width: 60ch; }
.st-review summary::after { content: "Show answer"; margin-left: .6em; font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.st-review details[open] summary::after { content: ""; }
.st-qs--talk p { margin: 0; font-weight: 600; max-width: 60ch; }

/* Talking points: a small button under each point, opening a drawer */
.st-talk-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: .45em; min-height: 44px; margin-top: var(--s-2); padding: 0 var(--s-3) 0 var(--s-2); font-family: var(--font-display); font-size: .85rem; font-weight: 700; color: var(--pt); cursor: pointer; border-radius: var(--radius); }
.st-talk-btn::before { content: ""; width: .55em; height: .55em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); order: 2; }
.st-talk-btn:hover { background: var(--linen); }
.st-talk-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.st-drawer-head { padding: var(--s-6) var(--s-6) var(--s-5); padding-right: calc(var(--s-6) + 44px); background: var(--linen); border-bottom: 1px solid var(--line); }
.st-drawer-head h2 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.1; margin: 0; }
.st-drawer-body { padding: var(--s-5) var(--s-6) var(--s-8); display: grid; gap: var(--s-5); }
.st-drawer-body h3 { font-size: var(--fs-eyebrow); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin: 0 0 calc(-1 * var(--s-3)); }
.st-talk-recap { font-size: 1.1rem; line-height: 1.65; margin: 0; }
.st-talk-refs { margin: 0; line-height: 2; }
.st-drawer .st-qs { margin: 0; }
.st-drawer .st-qs h3 { margin: 0 0 var(--s-2); }
.st-lyr h3 { margin-bottom: var(--s-2) !important; }
.st-lyr p { margin: 0; font-family: var(--font-scripture); font-size: 1.15rem; line-height: 1.6; }
.st-lyr-foot { margin: 0; font-size: var(--fs-small); }

/* Listen Together over the page */
dialog.st-stage { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #0b0a09; }
dialog.st-stage::backdrop { background: #0b0a09; }
dialog.st-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
body:has(dialog.st-stage[open]) { overflow: hidden; }

/* The takeaway: one line, then where we see it (Adam, Jesus, you), the same picture every week */
.st-take { margin: 0; }
.st-take figcaption { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1; letter-spacing: -.03em; color: var(--ink); margin-bottom: var(--s-6); }
.st-take figcaption span { display: block; font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pt); margin-bottom: var(--s-3); }
.st-chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); position: relative; }
.st-chain li { position: relative; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--pc); border-radius: var(--radius); padding: var(--s-5); display: grid; align-content: start; gap: var(--s-2); }
.st-chain li + li::before { content: ""; position: absolute; left: calc(-1 * var(--s-6) + 6px); top: 50%; width: calc(var(--s-6) - 12px); height: 2px; background: var(--pc); }
.st-chain li + li::after { content: ""; position: absolute; left: -12px; top: calc(50% - 5px); width: 8px; height: 8px; border-top: 2px solid var(--pc); border-right: 2px solid var(--pc); transform: rotate(45deg); }
.st-chain li:last-child { background: var(--tekhelet); border-color: var(--tekhelet); color: #fff; }
.st-chain-k { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; text-transform: uppercase; letter-spacing: -.01em; color: var(--pt); }
.st-chain-t { margin: 0; font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.st-chain-r { margin: 0; font-size: var(--fs-small); color: var(--stone); }
.st-chain li:last-child :is(.st-chain-k, .st-chain-r) { color: #fff; }
.st-notice { margin: var(--s-5) 0 0; font-size: var(--fs-small); color: var(--stone); max-width: 64ch; }
.st-notice b { color: var(--ink); }

/* Word of the day: one Hebrew word that sums up the takeaway, always last in that part. Ink, with the
   Hebrew in Gold, so it never reads as part of the Tekhelet diagram above it. */
.st-word { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3) var(--s-6); align-items: center; background: var(--ink); color: var(--scroll); border-radius: var(--radius); padding: var(--s-6); margin-top: var(--s-7); }
.st-word-k { grid-column: 1 / -1; margin: 0; font-family: var(--font-display); font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.st-word-w { margin: 0; display: grid; justify-items: start; gap: 2px; }
.st-word-w > span[lang="he"] { font-family: "SBL Hebrew", "Times New Roman", serif; font-size: clamp(3.5rem, 9vw, 5rem); line-height: 1.1; color: var(--gold); }
.st-word-w b { font-family: var(--font-display); font-size: 1.25rem; }
.st-word-w b small { font-family: var(--font-body); font-weight: 400; font-size: var(--fs-small); color: var(--muted-on-dark); }
.st-word-m { font-family: var(--font-display); font-weight: 800; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.st-word-n { margin: 0; max-width: 52ch; }
.st-word cite { color: var(--muted-on-dark); }

@media (max-width: 1023px) {
  .st-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .st-chain { grid-template-columns: 1fr; gap: var(--s-5); }
  .st-chain li + li::before { left: 50%; top: calc(-1 * var(--s-5) + 4px); width: 2px; height: calc(var(--s-5) - 8px); }
  .st-chain li + li::after { left: calc(50% - 4px); top: -12px; transform: rotate(135deg); }
  .st-drawer-head { padding: var(--s-5) var(--s-5) var(--s-4); padding-right: calc(var(--s-5) + 44px); }
  .st-drawer-body { padding: var(--s-5) var(--s-5) var(--s-7); }
  .st-two { grid-template-columns: 1fr; gap: var(--s-5); }
  .st-clock b { display: none; }   /* the numbers and minutes stay; each part's name is on its own heading */
  .st-clock a { padding: var(--s-2) 4px; text-align: center; }
  .st-clock li { min-width: 36px; }
  .st-clock { top: 64px; }
}
@media (max-width: 479px) {
  .st-word { grid-template-columns: 1fr; padding: var(--s-5); }
  .st-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-part-head { flex-wrap: wrap; }
  .st-points > li { padding-left: 1.75rem; }
  .st-weeks li { grid-template-columns: 2.25rem 1fr; gap: var(--s-3); }
  .st-wk { font-size: 1.3rem; }
}

@media print {
  dialog, .st-talk-btn { display: none !important; }
  .st-review details > p { display: block; }
  .announce, .site-header, .site-footer, .skip, .st-clock, .st-row, .st-crumb { display: none !important; }
  .page-hero { padding-block: 0 1rem; }
  .st-wrap { padding-block: 0; max-width: none; }
  .st-part { break-inside: avoid-page; padding-block: 1rem; }
  .st-one { background: none; color: var(--ink); border: 2px solid var(--ink); }
  .st-one-k { color: var(--ink); }
  .st-word { background: none; color: var(--ink); border: 2px solid var(--ink); }
  .st-word-k, .st-word-w > span[lang="he"], .st-word cite, .st-word-w b small { color: var(--ink); }
  a { color: inherit; text-decoration: none; }
}

/* Progress and badges (js/progress.js draws the badge with js/badge.js). Honor system: mark a week done. */
.f39-badge { display: block; width: 100%; height: auto; }
.st-hero-row { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: var(--s-6); align-items: center; }
.st-hero-badge { text-align: center; }
.st-hero-badge-text { font-size: var(--fs-small); color: var(--stone); margin: var(--s-2) auto 0; max-width: 22ch; }
.st-done { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--s-6); align-items: start; margin-top: var(--s-7);
  padding: var(--s-6); background: var(--linen); border-radius: var(--radius); }
.st-done h2 { margin: 0 0 var(--s-2); }
.st-done-text p { margin: 0 0 var(--s-4); }
.st-done-text .form-msg { margin: var(--s-3) 0 0; }
.st-done [hidden] { display: none; }
.st-done .form-msg { background: var(--scroll); }
.st-done .form-msg:empty { display: none; }
.st-quiz { margin-top: var(--s-4); text-align: left; }   /* the week quiz (js/progress.js): questions read left to right, even in the centred phone layout */
.st-quiz .btn { justify-self: start; }
.st-done-tag { display: inline-block; font-family: var(--font-display); font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-fg); background: var(--accent); padding: .15rem .5rem; border-radius: 999px; vertical-align: .2em; }
.st-weeks .is-done .st-wk { color: var(--accent); }
@media (max-width: 767px) {
  .st-hero-row { grid-template-columns: minmax(0, 1fr) 128px; gap: var(--s-4); }
  .st-hero-badge-text { display: none; }
  .st-done { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: var(--s-5); }
  .st-done-badge { width: 180px; }
  .st-done-text { width: 100%; }
}
@media (max-width: 479px) {
  .st-hero-row { grid-template-columns: 1fr; }
  .st-hero-badge { width: 160px; }
}
@media print { .st-done, .st-hero-badge { display: none !important; } }


/* /studies/: Bible Studies (tools/build_studies.py hub_page) */
.st-hub { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
.st-hub-next { font-size: 1.1rem; margin: var(--s-7) 0 var(--s-4); }
.st-hub-soonlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s-3); }
.st-hub-soon { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-3); align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-3); }
.st-hub-soon img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; filter: grayscale(1); opacity: .7; }
.st-hub-soon h3 { font-size: 1rem; margin: 0; }
.st-hub-soon p { font-size: var(--fs-small); color: var(--stone); margin: 2px 0 var(--s-1); }
.st-ways h3 { font-size: 1.2rem; margin-bottom: var(--s-2); }

/* A study's own page: what to expect, what you'll learn, the parts explained (tools/build_studies.py index_page) */
.st-hero-go { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-6) 0 0; }
.st-expect { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.st-expect li { background: var(--linen); border-radius: var(--radius); padding: var(--s-5); border-top: 4px solid var(--accent); }
.st-expect h3 { font-size: 1.1rem; margin: 0 0 var(--s-2); }
.st-expect p { margin: 0; }
.st-need { margin-top: var(--s-5); border-left: 4px solid var(--gold); padding: var(--s-2) 0 var(--s-2) var(--s-5); }
.st-need h3 { font-size: 1.1rem; margin: 0 0 var(--s-2); }
.st-need p { margin: 0; max-width: 72ch; }
.st-out-h { font-size: 1.15rem; margin: var(--s-6) 0 var(--s-3); }
.st-out { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-2); }
.st-parts { display: grid; gap: var(--s-2); margin: var(--s-5) 0; }
.st-parts > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--s-4); padding: var(--s-3) 0 var(--s-3) var(--s-4); border-left: 6px solid var(--pc); }
.st-parts dt { font-family: var(--font-display); font-weight: 800; color: var(--pt); }
.st-parts dd { margin: 0; }
.st-wk-learn { margin: 0 0 var(--s-2); }
.st-wk-take { margin: 0 0 var(--s-1); font-size: var(--fs-small); display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); align-items: baseline; font-weight: 700; }
.st-wk-take span { font-family: var(--font-display); font-size: var(--fs-eyebrow); letter-spacing: .1em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
@media (max-width: 1023px) { .st-expect { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .st-parts > div { grid-template-columns: 1fr; gap: var(--s-1); } }
@media (max-width: 479px) { .st-expect { grid-template-columns: 1fr; } }

/* Members weeks (Weeks 2+): the outline and the way in, until js/study-gate.js loads the session */
.st-hero-free { margin: var(--s-3) 0 0; font-size: var(--fs-small); color: var(--stone); }
.st-member { display: inline-block; font-family: var(--font-display); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); border: 1px solid currentColor; border-radius: var(--radius-pill); padding: .1rem .5rem; vertical-align: .2em; }
.st-gate { margin: var(--s-7) 0; background: var(--linen); border-radius: var(--radius); border-top: 6px solid var(--accent); padding: clamp(var(--s-5), 4vw, var(--s-8)); max-width: 760px; }
.st-gate[hidden] { display: none; }
.st-gate-k { font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 var(--s-2); }
.st-gate h2 { margin: 0 0 var(--s-3); }
.st-gate h3 { font-size: 1.05rem; margin: var(--s-5) 0 var(--s-2); }
.st-gate-learn { font-size: 1.1rem; margin: 0; }
.st-gate-parts { margin: 0 0 var(--s-5); padding: 0; list-style: none; display: grid; gap: 4px; }
.st-gate-parts li { border-left: 6px solid var(--pc); padding: var(--s-1) var(--s-3); background: var(--scroll); }
.st-gate-parts span { color: var(--stone); font-size: var(--fs-small); }
.st-gate-go { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-4) 0 0; }

/* Where it is in the Bible (data/bible-books.json): a section colour per book (--sc, and --sf for text on it),
   a strip of every chapter in a book, and a shelf of all 66 books (tools/build_studies.py find_block, map_section) */
.st-sec--law { --sc: var(--law); --sf: var(--ink); }
.st-sec--history { --sc: var(--history); --sf: #fff; }
.st-sec--poetry { --sc: var(--poetry); --sf: var(--ink); }
.st-sec--major { --sc: var(--major); --sf: #fff; }
.st-sec--minor { --sc: var(--minor); --sf: #fff; }
.st-sec--gospels { --sc: var(--tekhelet); --sf: #fff; }
.st-sec--acts { --sc: #4F7FA8; --sf: #fff; }
.st-sec--letters { --sc: #8DB6E2; --sf: var(--ink); }
.st-sec--revelation { --sc: var(--ink); --sf: var(--scroll); }
.st-find { margin: 0 0 var(--s-5); padding: var(--s-5); background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: var(--radius); }
.st-find-k { font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 var(--s-2); }
.st-find-one + .st-find-one { margin-top: var(--s-4); }
.st-find-book { margin: 0 0 var(--s-2); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); }
.st-find-book b { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; }
.st-find-book span { font-size: var(--fs-small); color: var(--stone); }
.st-find-rem { margin: var(--s-3) 0 0; }
.st-strip { display: flex; flex-wrap: wrap; gap: 3px; }
.st-strip i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 2px; background: var(--line); font-style: normal;
  font-family: var(--font-display); font-weight: 800; font-size: .62rem; line-height: 1; }
.st-strip i.is-also { background: color-mix(in srgb, var(--sc) 35%, #fff); }
.st-strip i.is-here { background: var(--sc); color: var(--sf); width: 22px; height: 22px; margin-top: -2px; }
.st-shelf { margin: var(--s-5) 0 var(--s-6); }
.st-shelf-books { display: flex; align-items: flex-end; gap: 2px; height: 56px; }
.st-shelf-books i { flex: 1 1 0; min-width: 2px; height: 55%; background: color-mix(in srgb, var(--sc) 30%, #fff); border-radius: 1px 1px 0 0; }
.st-shelf-books i.is-here { height: 100%; background: var(--sc); }
.st-shelf figcaption { margin-top: var(--s-2); font-size: var(--fs-small); color: var(--stone); }
.st-shelf-key { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font-size: var(--fs-small); }
.st-shelf-key li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--sc); margin-right: 6px; vertical-align: -1px; }
.st-map { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.st-map li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-2) var(--s-5); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.st-map-where b { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.st-map li.is-key .st-map-where b { font-size: 1.45rem; }
.st-map-key { display: inline-block; margin-top: var(--s-1); font-family: var(--font-display); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--gold); color: var(--ink); border-radius: var(--radius-pill); padding: .15rem .55rem; }
.st-map-what p { margin: 0; }
.st-map-what .st-strip { margin: var(--s-2) 0; }
.st-map-go { font-size: var(--fs-small); margin-top: var(--s-1) !important; }
@media (max-width: 767px) { .st-map li { grid-template-columns: 1fr; } }
