/* Private study tracks (assets/tracks.js): study.html, the "Your study" section on Dig deeper and Progress */

/* ── study.html: header ── */
.st-date { text-align: center; font: 600 0.76rem/1.6 var(--sans); text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin: 0 0 0.3rem; }
.st-title { text-align: center; font-family: var(--display); font-size: 1.9rem; font-weight: 300; line-height: 1.25; color: var(--heading);
  letter-spacing: -0.015em; margin: 0 0 1.1rem; }
.st-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 0 0 2.4rem; padding: 0 0 1.4rem;
  border-bottom: 1px solid var(--rule); }
.st-tabs a { font: 600 0.68rem/1.8 var(--sans); letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent-soft);
  text-decoration: none; border-bottom: 2px solid transparent; }
.st-tabs a:hover { color: var(--accent-deep); }
.st-tabs a[aria-current="true"] { color: var(--accent); border-bottom-color: var(--accent-line); }

/* ── A reading ── */
.st-where { text-align: center; font: 400 0.74rem/1.6 var(--sans); letter-spacing: 0.02em; color: var(--accent-faint); margin: -1.4rem 0 1.4rem; }
.st-tools { display: flex; justify-content: center; gap: 8px; margin: 0 0 1.8rem; }
.st-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px 5px 10px; border: 1px solid var(--line-strong); border-radius: 15px;
  background: none; color: var(--muted); font: 500 0.72rem/1.2 var(--sans); letter-spacing: 0.04em; cursor: pointer; }
.st-toggle::before { content: ''; width: 22px; height: 12px; border-radius: 6px; background: var(--line-strong); flex: none;
  box-shadow: inset 2px 0 0 0 var(--line-strong); transition: background 0.2s; }
.st-toggle[aria-pressed="true"] { color: var(--accent); border-color: var(--accent-soft); }
.st-toggle[aria-pressed="true"]::before { background: var(--done); }
.st-toggle { position: relative; }
.st-toggle::after { content: ''; position: absolute; inset-inline-start: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--paper); transition: transform 0.2s; }
.st-toggle[aria-pressed="true"]::after { transform: translateX(10px); }
.st-toggle:hover { border-color: var(--accent-soft); }
.st-toggle:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.st-note { font: 400 0.84rem/1.6 var(--sans); color: var(--muted); background: var(--tint); border-radius: 10px; padding: 12px 16px; margin: 0 0 1.8rem; }
.st-text .st-m { margin-bottom: 0.9rem; }
.st-text .st-m .verse-num { font-weight: 600; }
.st-text .st-he { font-family: var(--hebrew); font-size: 1.22rem; line-height: 1.85; text-align: right; color: var(--ink-soft); margin: -0.3rem 0 1.3rem; }
.st-text .s2:first-child { margin-top: 0; }
.st-by { margin: 2rem 0 0; text-align: center; font: italic 400 0.84rem/1.5 var(--serif); color: var(--muted); }
.st-private { text-align: center; font-size: 1.02rem; line-height: 1.7; color: var(--ink-soft); max-width: 26rem; margin: 2rem auto; }
.st-private a { color: var(--accent); }

/* ── Dig deeper: "Your study" ── */
.st-sec { min-height: 0; }
.st-sec .st-h { font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 18em; }
.st-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 1.6rem 0 0; }
.st-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 16px; border: 1px solid var(--line-strong); border-radius: 16px;
  background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color 0.15s, background 0.15s; }
.st-card:hover { border-color: var(--accent-soft); background: var(--tint); }
.st-card:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.st-card-k { font: 600 0.68rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.st-card-n { font-family: var(--display); font-size: 1.15rem; line-height: 1.35; color: var(--heading); }
.st-card-s { display: inline-flex; align-items: center; gap: 4px; font: 500 0.74rem/1.4 var(--sans); color: var(--muted); }
.st-card.is-today .st-card-s { color: var(--done); }
.st-card-s svg { width: 13px; height: 13px; }
.st-more { margin: 1.4rem 0 0; font: 500 0.86rem var(--sans); }
.st-more a { color: var(--accent); text-underline-offset: 3px; text-decoration-color: var(--accent-line); }

/* ── Progress: "Your study" ── */
.st-progress[hidden] { display: none; }
.st-progress .pg-blurb a { color: var(--accent); text-decoration-color: var(--accent-line); text-underline-offset: 2px; }
.st-pt { margin: 0 0 1.4rem; font-family: var(--sans); }
.st-pt-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 0.45rem; padding: 0 0 0.35rem; border-bottom: 1px solid var(--rule); }
.st-pt-h span:first-child { font: 600 0.8rem var(--sans); color: var(--heading); }
.st-pt-n { font: 400 0.76rem var(--sans); color: var(--muted); }
.st-pb { display: grid; grid-template-columns: minmax(0, 11rem) 1fr 3.4rem; align-items: center; gap: 10px; padding: 3px 0; font-size: 0.82rem; }
.st-pb-name { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-pb-lane { height: 6px; border-radius: 3px; background: var(--tint); overflow: hidden; }
.st-pb-lane span { display: block; height: 100%; border-radius: 3px; background: var(--done); }
.st-pb-n { text-align: end; color: var(--muted); font-size: 0.74rem; font-variant-numeric: tabular-nums; }
.st-pb.is-current .st-pb-name { color: var(--heading); font-weight: 600; }
.st-pb.is-done .st-pb-n { color: var(--done); }
.st-pb.is-pending { opacity: 0.55; }
.st-log-h { font: 600 0.7rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 1.8rem 0 0.6rem; }
.st-log { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 0.84rem; }
.st-log li { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.st-log-d { color: var(--muted); font-variant-numeric: tabular-nums; }
.st-log a { color: var(--ink); text-decoration: none; }
.st-log a:hover { color: var(--accent-deep); text-decoration: underline; text-decoration-color: var(--accent-line); }
.st-log-t { color: var(--accent-faint); font-size: 0.74rem; text-align: end; }

@media (max-width: 600px) {
  .st-cards { grid-template-columns: 1fr; }
  .st-pb { grid-template-columns: minmax(0, 8.5rem) 1fr 3rem; }
  .st-log li { grid-template-columns: 3.8rem 1fr; }
  .st-log-t { display: none; }
}

/* ── About the book: like an illustration card — no frame, in the right margin (narrower screens: after the text); X closes,
      the (i) beside "1 Enoch · 5 of 108" opens it again ── */
.st-about { margin: 2.2rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--rule); font-family: var(--sans); text-align: start; line-height: 1.5; }
.st-about[hidden] { display: none; }
.st-about-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.55rem;
  font: 600 0.62rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.st-about-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 13px; background: var(--surface-glass, var(--paper)); color: var(--muted); cursor: pointer; }
.st-about-x svg { width: 10px; height: 10px; }
.st-about-x:hover { color: var(--accent-deep); border-color: var(--accent-soft); }
.st-about-x:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.st-about-p { margin: 0 0 0.6rem; font-size: 0.82rem; line-height: 1.6; color: var(--ink-soft, var(--ink)); }
.st-about-tr { margin: 0; font-size: 0.74rem; line-height: 1.55; color: var(--muted); }
.st-about-tr b { font-weight: 600; color: var(--ink-soft, var(--ink)); }
.st-info { vertical-align: -4px; margin-inline-start: 4px; }
.st-info[aria-pressed="true"] { color: var(--accent); }
@media (min-width: 1240px) {
  body[data-page="study"] .portion { position: relative; }
  body[data-page="study"] .st-about { position: absolute; top: 3.4rem; inset-inline-start: calc(100% + 28px); margin: 0; padding: 0; border-top: none;
    width: min(460px, calc((100vw - 32rem) / 2 - 56px)); }
}
.st-shelf-blurb { margin-top: 0; }

/* The Odes: verse by verse, line by line */
.st-text .st-poem { margin: 0 0 0.85rem; padding-inline-start: 1.6em; text-indent: -1.6em; }
.st-text .st-poem .verse-num { display: inline-block; min-width: 1.3em; text-indent: 0; }

/* A painted banner behind the top of each track (tracks.js, placeBanner): full width from under the top bar, at full
   strength behind light headings (like the photo sections on Dig deeper), then fading into the page above the reading */
.st-banner { position: absolute; top: var(--topbar-h); inset-inline-start: 0; inset-inline-end: 0; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 7rem), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 7rem), transparent); }
.st-banner[hidden] { display: none; }
.st-banner-img { position: absolute; inset: 0; background: #2b231c center 42% / cover no-repeat; opacity: 0; transition: opacity 0.5s ease; }
.st-banner-img.on { opacity: 1; }
.st-banner::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(17, 17, 17, 0.42) 0%, rgba(17, 17, 17, 0.5) 45%, rgba(17, 17, 17, 0.62) calc(100% - 9rem), rgba(17, 17, 17, 0.25) 100%); }
body.has-banner .reader { z-index: 1; }
@media (prefers-reduced-motion: reduce) { .st-banner-img { transition: none; } }

/* Headings on the picture: light, with a soft shadow; the title starts lower so more of the picture shows */
body.banner-on #st-header { padding-top: clamp(2rem, 12vh, 7.5rem); }
body.banner-on .st-date { color: #e9d9c6; }
body.banner-on .st-title { color: #fff; }
body.banner-on .st-tabs { border-bottom-color: rgba(255, 255, 255, 0.28); }
body.banner-on .st-tabs a { color: rgba(255, 255, 255, 0.72); }
body.banner-on .st-tabs a:hover { color: #fff; }
body.banner-on .st-tabs a[aria-current="true"] { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.8); }
body.banner-on .portion.active .division-label { color: #e9d9c6; }
body.banner-on .portion.active .chapter-head { color: #fff; }
body.banner-on .portion.active .chapter-sub { color: #f0dcc4; }
body.banner-on .portion.active .st-where { color: rgba(255, 255, 255, 0.78); margin-bottom: 6.5rem; }
body.banner-on .portion.active .st-info { color: rgba(255, 255, 255, 0.78); }
body.banner-on .portion.active .st-info:hover, body.banner-on .portion.active .st-info[aria-pressed="true"] { color: #fff; }
body.banner-on :is(.st-date, .st-title, .st-tabs, .division-label, .chapter-head, .chapter-sub, .st-where) { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }

/* Translator's notes (1 Enoch): small raised markers in the text, the notes after the chapter */
.st-notes { margin: 2.2rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--rule); font-family: var(--sans); }
.st-notes-h { margin: 0 0 0.7rem; font: 600 0.66rem/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.st-notes ol { list-style: none; margin: 0; padding: 0; }
.st-notes li { display: grid; grid-template-columns: 2.1rem 1fr; gap: 0 4px; margin: 0 0 0.6rem; font-size: 0.8rem; line-height: 1.6;
  color: var(--ink-soft, var(--ink)); border-radius: 6px; transition: background 0.6s; }
.st-notes li.flash { background: var(--done-bg, var(--tint)); }
.st-fn-n { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.st-notes sup { font-size: 0.7em; }
.chapter-head + .st-where { margin-top: 0.3rem; }

/* Dig deeper: commentaries on the day's Prophets, Writings and Apostles readings (private) */
/* The banners are laid out like the Messiah in the Torah banner above them: tall, the title low on the picture, darkest at the
   foot behind the text; the title sits a little lower still (less padding below). Parallax: deeper.html, as for the other photos */
.ab-sec.cmx-hero { min-height: 82vh; align-items: flex-end; padding-bottom: clamp(52px, 8vh, 96px); }
/* Dark only where the text sits, low on the picture; the top two-thirds of the art barely shaded. The photo layer is 130% of the
   section's height (for the parallax), so the stops are in its terms: the section's foot is at ~12%, the eyebrow at ~45% */
.cmx-hero .ab-photo-bg::after { background: linear-gradient(0deg, rgba(17,17,17,0.77) 0%, rgba(17,17,17,0.72) 14%, rgba(17,17,17,0.54) 30%,
  rgba(17,17,17,0.36) 46%, rgba(17,17,17,0.13) 62%, rgba(17,17,17,0.045) 100%); }
.cmx-hero :is(.ab-eyebrow, .ab-h, .ab-p) { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4); }
.cmx-hero .ab-h { max-width: 13em; }
@media (max-width: 520px) { .ab-sec.cmx-hero { min-height: 72vh; padding-bottom: 56px; } }
.cmx-hero .ab-photo-bg.cmx-empty { opacity: 1; background: linear-gradient(135deg, #3b2c20 0%, #1d1712 100%); }
.cmx-hero .ab-photo-bg.cmx-empty::after { background: none; }
.cmx-sec { min-height: 0; }
.cmx-text .cmx-ch { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--heading); margin: 2.4rem 0 0.4rem; }
.cmx-text .cmx-ch:first-child { margin-top: 0; }
.cmx-text .cmx-vv { font: 600 0.72rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 2rem 0 0.6rem; }
.cmx-text > .cmx-vv:first-child, .cmx-text .cmx-ch + .cmx-vv { margin-top: 0.6rem; }
.cmx-text .cm-p { font-size: clamp(1.05rem, 1.35vw, 1.15rem); line-height: 1.8; color: var(--ink); margin: 0 0 1rem; }
.cmx-text b { font-weight: 600; color: var(--heading); }
.cmx-about { margin-top: 3rem; }
/* Ryle's notes on Luke and John: closed under each passage, smaller type */
.cmx-notes { margin: 0.4rem 0 1.8rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cmx-notes summary { cursor: pointer; padding: 0.8rem 0; font: 600 0.72rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); list-style: none; }
.cmx-notes summary::-webkit-details-marker { display: none; }
.cmx-notes summary::before { content: '+'; display: inline-block; width: 1.1em; font-weight: 400; }
.cmx-notes[open] summary::before { content: '\2013'; }
.cmx-notes-body { padding: 0.2rem 0 1rem; }
.cmx-notes-body .cm-p { font-size: 0.98rem; line-height: 1.75; color: var(--ink-soft, var(--ink)); }
.cmx-notes-body .cmx-nt { font-style: italic; color: var(--muted); padding-inline-start: 1.2rem; border-inline-start: 2px solid var(--rule); }

/* The Messianic Filter switch at the end of the banner's subtitle (light, on the picture); it wraps to its own line if need be */
.cmx-hero .ab-p { max-width: none; }   /* room for the switch at the end of the line on wide screens */
.cmx-hero .cmx-pill { vertical-align: 0.15em; margin-inline-start: 0.15em; color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.45);
  background: rgba(17,17,17,0.18); white-space: nowrap; }
.cmx-hero .cmx-pill::before { background: rgba(255,255,255,0.35); box-shadow: none; }
.cmx-hero .cmx-pill:hover { border-color: #fff; color: #fff; }
.cmx-hero .cmx-pill[aria-pressed="true"] { color: #fff; border-color: rgba(255,255,255,0.8); }
.cmx-hero .cmx-pill[aria-pressed="true"]::before { background: var(--done); }
.cmx-hero .cmx-pill::after { background: #fff; }
/* Drop cap on the first paragraph, as for Lars Enarson's commentary (deeper.html, #cm-body .dc) */
.cmx-text .dc { float: inline-start; font-family: var(--display); font-weight: 300; color: var(--accent); font-size: 5.3em; line-height: 0.78;
  margin: 0.08em 0.07em 0 -0.04em; }
.cmx-text > .cmx-vv:first-child + .cm-first, .cmx-text .cmx-ch + .cmx-vv + .cm-first { margin-top: 0.4rem; }
/* Right to left (Hebrew interface): the toggle knob slides the other way */
html[dir="rtl"] .st-toggle[aria-pressed="true"]::after { transform: translateX(-10px); }
