/* ============================================================
   /showcases — implementation showcases.

   A showcase is a chaptered chronicle of one course's semester on
   Sway. The page is organized as chapters in time, each with a
   sticky "semester map" in the left margin marking where the reader
   is in the term. The narrative column carries a consistent grammar
   of primary sources:

     .sc-statement — a discussion statement as students saw it
                     (serif italic, left rule)
     .sc-guide     — Guide speaking, verbatim (flat labeled panel)
     .sc-excerpt   — verbatim dialogue from a thread
     .sc-thread    — a condensed account of one conversation
     .sc-quote     — a student's written feedback (serif pull-quote)

   Depth lives in native <details> drawers (.sc-more) so the main
   spine stays a ~ten-minute read. Colors come from the site theme
   tokens plus the purple accents below, so pages follow the
   light/dark toggle. No JS.
   ============================================================ */

:root {
  --sc-accent: #23004D;
  --sc-bar-track: rgba(35, 0, 77, 0.08);
  --sc-card-bg: var(--surface-raised);
  --sc-card-border: var(--border-subtle);
  --sc-guide-bg: rgba(35, 0, 77, 0.045);
  --sc-map-line: rgba(35, 0, 77, 0.18);
}
html.dark-mode {
  --sc-accent: #8a8aff;
  --sc-bar-track: rgba(226, 226, 255, 0.1);
  --sc-guide-bg: rgba(138, 138, 255, 0.07);
  --sc-map-line: rgba(138, 138, 255, 0.28);
}

/* ---- Page header ---- */
.page-content .sc-eyebrow {
  font-family: "Roboto Mono", monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--link-color);
  margin: 0 0 0.4rem;
}
.page-content .sc-reading-note {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-soft);
  border-left: 2px solid var(--sc-accent);
  padding-left: 0.9rem;
  margin: 1.4rem 0 0;
  max-width: 42rem;
}

/* ---- Orientation stat band ---- */
.sc-statband {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.6rem;
  margin: 2rem 0 0;
  padding: 1.3rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.sc-si { text-align: center; }
.sc-si b {
  display: block;
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--sc-accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sc-si span { font-size: 0.78rem; color: var(--text-soft); }

/* ============================================================
   Chapters and the semester map
   ============================================================ */
.sc-chapter {
  display: grid;
  grid-template-columns: minmax(10.5rem, 13rem) minmax(0, 1fr);
  gap: 1.5rem 2.8rem;
  align-items: start;
  padding: 3rem 0 2.2rem;
  border-top: 1px solid var(--rule);
  margin-top: 2.2rem;
}
.sc-chapter-rail { position: sticky; top: calc(var(--banner-h) + 1rem); }

/* Back-matter (everything after the six chapters): the semester map no
   longer applies, so drop the left rail and let the section fill the full
   content width, reclaiming the space the rail occupied. */
.sc-aftermatter .sc-chapter { grid-template-columns: minmax(0, 1fr); }
.sc-aftermatter .sc-chapter-rail { display: none; }

/* The map: six assignment nodes on a term line, January to April.
   Each chapter re-renders the same map with one node lit, so the
   reader always sees where they are in the semester. */
.sc-map { list-style: none; margin: 0.9rem 0 0; padding: 0; position: relative; }
.sc-map::before {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 2px;
  background: var(--sc-map-line);
}
.page-content .sc-map li {
  position: relative;
  margin: 0;
  padding: 0 0 0.55rem 1.25rem;
  font-family: "Roboto Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--text-soft);
}
.sc-map li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28rem;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--page-bg);
  border: 2px solid var(--sc-map-line);
}
.sc-map li.here { color: var(--text-strong); font-weight: 700; }
.sc-map li.here::before { border-color: var(--sc-accent); background: var(--sc-accent); }
.sc-map li.done::before { border-color: var(--sc-accent); }
.sc-map .sc-map-when { display: block; font-size: 0.56rem; color: var(--text-soft); font-weight: 400; }
/* The map nodes are links — the semester map doubles as chapter navigation. */
.page-content .sc-map li a { color: inherit; text-decoration: none; display: block; }
.page-content .sc-map li a:hover .sc-map-name { color: var(--sc-accent); }

/* Chapter meta under the map */
.page-content .sc-chapter-meta {
  font-family: "Roboto Mono", monospace;
  font-size: 0.62rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 1.1rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--sc-card-border);
}
.sc-chapter-meta b { color: var(--text-strong); font-weight: 700; }

/* Chapter heading, in the narrative column */
.page-content .sc-chapter-kicker {
  font-family: "Roboto Mono", monospace;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--link-color);
  margin: 0 0 0.45rem;
}
.page-content h2.sc-chapter-title {
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 1.1rem;
  border: none;
  padding: 0;
}
.sc-chapter-main > p { max-width: 42rem; }
.sc-chapter-main > p { font-size: 0.9rem; line-height: 1.7; }

/* ---- Discussion statements (verbatim prompts) ---- */
.page-content .sc-statement {
  font-family: Charter, "Bitstream Charter", Georgia, serif;
  font-style: italic;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--text);
  border-left: 2px solid var(--sc-accent);
  padding: 0.1rem 0 0.1rem 0.95rem;
  margin: 1rem 0;
  max-width: 40rem;
}
.sc-statement .sc-statement-label {
  display: block;
  font-family: "Roboto Mono", monospace;
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}

/* ---- Guide, verbatim ----
   Humans speak in the serif pull-quote idiom; Guide speaks in a
   flat, labeled panel — closer to how it appears in a chat. */
.sc-guide {
  background: var(--sc-guide-bg);
  border-left: 2px solid var(--sc-accent);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1.05rem 0.8rem;
  margin: 1rem 0;
  max-width: 41rem;
}
.page-content .sc-guide .sc-guide-label {
  display: block;
  font-family: "Roboto Mono", monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--link-color);
  margin: 0 0 0.4rem;
}
.page-content .sc-guide p {
  font-size: 0.84rem;
  line-height: 1.62;
  color: var(--text);
  margin: 0 0 0.45rem;
}
.page-content .sc-guide p:last-child { margin-bottom: 0; }

/* ---- Chat excerpts (verbatim dialogue) ---- */
.sc-excerpt {
  border: 1px solid var(--sc-card-border);
  background: var(--sc-card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 1.15rem 1.3rem;
  margin: 1.1rem 0;
  max-width: 43rem;
}
.page-content .sc-excerpt .sc-msg { margin: 0 0 0.75rem; }
.page-content .sc-excerpt .sc-msg:last-child { margin-bottom: 0; }
.sc-msg .sc-who {
  display: block;
  font-family: "Roboto Mono", monospace;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.2rem;
}
.sc-msg.sc-msg-guide .sc-who { color: var(--link-color); }
.page-content .sc-msg p {
  font-size: 0.83rem;
  line-height: 1.62;
  margin: 0 0 0.35rem;
}
.page-content .sc-msg p:last-child { margin-bottom: 0; }
.sc-msg.sc-msg-guide {
  background: var(--sc-guide-bg);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
}
.page-content .sc-excerpt-note {
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0.6rem 0 0;
}

/* ---- Condensed thread accounts ---- */
.sc-thread {
  border: 1px solid var(--sc-card-border);
  background: var(--sc-card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 1.2rem 1.4rem 1.1rem;
  margin: 1.1rem 0;
  max-width: 43rem;
}
.page-content .sc-thread-topic {
  font-family: "Roboto Mono", monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--link-color);
  margin: 0 0 0.5rem;
}
.page-content .sc-thread p {
  font-size: 0.84rem;
  line-height: 1.65;
  margin: 0 0 0.6rem;
}
.page-content .sc-thread p:last-child { margin-bottom: 0; }

/* ---- Inline chapter figures (small, in-narrative numbers) ---- */
.sc-fig {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: baseline;
  margin: 1rem 0;
  padding: 0.7rem 0;
  border-top: 1px dashed var(--sc-card-border);
  border-bottom: 1px dashed var(--sc-card-border);
  max-width: 42rem;
}
.sc-fig-item { display: flex; align-items: baseline; gap: 0.5rem; }
.sc-fig-item b {
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--sc-accent);
  font-variant-numeric: tabular-nums;
}
.sc-fig-item span { font-size: 0.72rem; color: var(--text-soft); line-height: 1.4; }

/* ---- Depth drawers ---- */
.page-content details.sc-more {
  margin: 1.3rem 0 0;
  max-width: 43rem;
  border-top: 1px dashed var(--sc-card-border);
  padding-top: 0.7rem;
}
.page-content details.sc-more > summary {
  cursor: pointer;
  list-style: none;
  font-family: "Roboto Mono", monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--link-color);
}
.page-content details.sc-more > summary::-webkit-details-marker { display: none; }
.page-content details.sc-more > summary::before { content: "+ "; font-weight: 700; }
.page-content details.sc-more[open] > summary::before { content: "\2212 "; }
.page-content details.sc-more > summary:hover { color: var(--link-hover); }
.sc-more-body { padding-top: 0.7rem; }
.page-content .sc-more-body > p {
  font-size: 0.83rem;
  line-height: 1.65;
  max-width: 42rem;
}
.page-content .sc-more-body ul {
  font-size: 0.83rem;
  line-height: 1.65;
  max-width: 42rem;
}

/* ---- Movement chart (matched pre/post aggregate) ---- */
.sc-move { margin: 1.2rem 0 0.4rem; max-width: 40rem; }
.sc-move-row {
  display: grid;
  grid-template-columns: minmax(9.5rem, 13rem) minmax(0, 1fr) 4.4rem;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.45rem;
}
.sc-move-label { font-size: 0.78rem; line-height: 1.4; color: var(--text); }
.sc-move-track {
  height: 0.85rem;
  background: var(--sc-bar-track);
  border-radius: 3px;
  overflow: hidden;
}
.sc-move-fill { height: 100%; background: var(--sc-accent); border-radius: 3px; }
.sc-move-val {
  font-family: "Roboto Mono", monospace;
  font-size: 0.68rem;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.page-content .sc-move-note {
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0.5rem 0 0;
  max-width: 40rem;
}

/* ---- Survey histogram cards ---- */
.sc-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 43rem;
}
.sc-card {
  background: var(--sc-card-bg);
  border: 1px solid var(--sc-card-border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.2rem 0.8rem;
}
.page-content .sc-q {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-strong);
  margin: 0 0 0.8rem;
}
.sc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.15rem;
}
.sc-label { font-size: 0.75rem; line-height: 1.5; color: var(--text); }
.sc-val {
  font-family: "Roboto Mono", monospace;
  font-size: 0.64rem;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sc-track {
  height: 0.5rem;
  background: var(--sc-bar-track);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.55rem;
}
.sc-fill { height: 100%; background: var(--sc-accent); border-radius: 3px; }
.page-content .sc-mean {
  font-family: "Roboto Mono", monospace;
  font-size: 0.62rem;
  line-height: 1.5;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  margin: 0.6rem 0 0;
  text-align: center;
}

/* ---- Student written feedback (serif pull-quotes) ---- */
.sc-quotes { columns: 2; column-gap: 3rem; max-width: 46rem; }
.page-content .sc-quote {
  position: relative;
  break-inside: avoid;
  margin: 0 0 2.1rem;
  max-width: none;
  padding-left: 1.9rem;
}
.page-content .sc-quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -0.24em;
  font-family: Charter, "Bitstream Charter", Georgia, serif;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--gs-active);
  opacity: 0.55;
}
.page-content .sc-quote blockquote {
  margin: 0;
  padding: 0;
  border: none;
  font-family: Charter, "Bitstream Charter", Georgia, serif;
  font-style: italic;
}
.page-content .sc-quote blockquote p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}
.page-content .sc-quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Roboto Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 0.6rem;
}
.page-content .sc-quote figcaption::before {
  content: "";
  flex: none;
  width: 22px;
  height: 1px;
  background: var(--gs-active);
}

/* ---- Student portraits ---- */
.sc-portrait {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0 1.1rem;
  border: 1px solid var(--sc-card-border);
  background: var(--sc-card-bg);
  border-radius: 8px;
  padding: 1.3rem 1.5rem 1.2rem;
  margin: 1.2rem 0;
  max-width: 44rem;
}
.sc-portrait-letter {
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--sc-accent);
  padding-top: 0.15rem;
}
.sc-portrait-main { min-width: 0; }
.page-content .sc-portrait-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-strong);
  margin: 0 0 0.15rem;
}
.page-content .sc-portrait-meta {
  font-family: "Roboto Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin: 0 0 0.6rem;
}
.page-content .sc-portrait p {
  font-size: 0.85rem;
  line-height: 1.65;
  margin: 0 0 0.6rem;
}
.page-content .sc-portrait p:last-child { margin-bottom: 0; }
.page-content .sc-portrait .sc-portrait-quote {
  font-family: Charter, "Bitstream Charter", Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  border-left: 2px solid var(--sc-accent);
  padding-left: 0.85rem;
}
@media (max-width: 640px) {
  .sc-portrait { grid-template-columns: 1fr; }
  .sc-portrait-letter { padding-bottom: 0.4rem; }
}

/* ---- Interview note ---- */
.page-content .sc-interview-note {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-soft);
  border: 1px dashed var(--sc-card-border);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin: 1.4rem 0 0;
  max-width: 42rem;
}

/* ---- Index page cards ---- */
.sc-index-list { margin: 1.6rem 0 0; }
.sc-index-card {
  display: block;
  border: 1px solid var(--sc-card-border);
  background: var(--sc-card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1rem;
  text-decoration: none;
  max-width: 46rem;
}
.sc-index-card:hover { border-color: var(--link-color); }
.page-content .sc-index-card .sc-index-kicker {
  font-family: "Roboto Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--link-color);
  margin: 0 0 0.35rem;
}
.page-content .sc-index-card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  border: none;
  padding: 0;
}
.page-content .sc-index-card p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 0.5rem;
}
.sc-index-card .sc-index-go {
  font-family: "Roboto Mono", monospace;
  font-size: 0.68rem;
  color: var(--link-color);
}

/* ---- Narrow screens ----
   The map moves above the chapter as a compact horizontal strip. */
@media (max-width: 900px) {
  .sc-chapter { grid-template-columns: 1fr; padding: 2.2rem 0 1.6rem; }
  .sc-chapter-rail { position: static; }
  .sc-map { display: flex; gap: 0.15rem; margin: 0.4rem 0 0.6rem; }
  .sc-map::before {
    left: 0.3rem;
    right: 0.3rem;
    top: 0.28rem;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .page-content .sc-map li { flex: 1; padding: 0.9rem 0 0; }
  .sc-map li::before { top: 0; }
  .sc-map li span, .sc-map .sc-map-when { display: none; }
  .sc-map li.here { overflow: visible; }
  /* Labels are hidden on narrow screens; stretch the link over the whole
     node so the dot itself stays a tap target. */
  .page-content .sc-map li a { position: absolute; inset: 0; }
  .sc-chapter-meta { display: none; }
}
@media (max-width: 640px) {
  .sc-charts { grid-template-columns: 1fr; }
  .sc-quotes { columns: 1; }
  .sc-statband { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-move-row { grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr) 3.6rem; }
}

/* ============================================================
   Single-column essay variant — used only by
   /showcases/psychopathology-summer. These components are
   additive and namespaced; the sibling chronicle page never
   references them. They reuse the tokens and source-grammar
   (.sc-statement / .sc-guide / .sc-excerpt / .sc-quote) above.

   The idea here is different from the chronicle: instead of a
   calendar in the margin, the spine is one recurring question,
   laid out once as a numbered "idea map," and the reader moves
   through a few conversations rendered at length plus a set of
   documented before/after turns of mind.
   ============================================================ */

/* Deck under the h1 */
.page-content .sc-dek {
  font-family: Charter, "Bitstream Charter", Georgia, serif;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 40rem;
  margin: 0.5rem 0 0;
}

/* A pulled line — the cold open, and a couple of hinge sentences */
.page-content .sc-pull {
  font-family: Charter, "Bitstream Charter", Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.42;
  color: var(--text-strong);
  max-width: 40rem;
  margin: 1.7rem 0;
}
.page-content .sc-pull em { font-style: italic; }
.page-content .sc-pull cite {
  display: block;
  font-family: "Roboto Mono", monospace;
  font-style: normal;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 0.7rem;
}

/* Plain single-column section (no sticky rail) */
.sc-sec {
  border-top: 1px solid var(--rule);
  padding: 2.7rem 0 0.3rem;
  margin-top: 2.5rem;
}
.sc-sec > p,
.sc-sec > .sc-reading-note { max-width: 42rem; }
.sc-sec > p { font-size: 0.92rem; line-height: 1.72; }

/* ---- The idea map: one question, six ways ---- */
.sc-idea-list { list-style: none; margin: 1.5rem 0 0.4rem; padding: 0; max-width: 44rem; }
.sc-idea {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  gap: 0.1rem 1rem;
  padding: 1.05rem 0;
  border-top: 1px dashed var(--sc-card-border);
}
.sc-idea:first-child { border-top: none; }
.sc-idea-n {
  grid-row: 1 / span 3;
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sc-accent);
  padding-top: 0.15rem;
  font-variant-numeric: tabular-nums;
}
.page-content .sc-idea-topic {
  font-family: "Roboto Mono", monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--link-color);
  margin: 0 0 0.3rem;
}
.page-content .sc-idea-stmt {
  font-family: Charter, "Bitstream Charter", Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 0.35rem;
}
.page-content .sc-idea-gloss {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
}
.page-content .sc-idea-gloss b { color: var(--text-strong); font-weight: 600; }

/* ---- A rendered conversation "scene": a light header over the shared
        .sc-statement / .sc-guide / .sc-excerpt grammar ---- */
.page-content .sc-scene-kicker {
  font-family: "Roboto Mono", monospace;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--link-color);
  margin: 1.8rem 0 0.4rem;
}
.page-content h3.sc-scene-title {
  font-family: Charter, "Bitstream Charter", Georgia, serif;
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.35;
  color: var(--text-strong);
  margin: 0 0 0.7rem;
  border: none;
  padding: 0;
  max-width: 40rem;
}

/* ---- Before/after "turns of mind" ---- */
.sc-turns { display: grid; gap: 0.95rem; margin: 1.4rem 0 0.4rem; max-width: 44rem; }
.sc-turn {
  border: 1px solid var(--sc-card-border);
  background: var(--sc-card-bg);
  border-radius: 8px;
  padding: 1.15rem 1.3rem 1.1rem;
}
.page-content .sc-turn-topic {
  font-family: "Roboto Mono", monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--link-color);
  margin: 0 0 0.7rem;
}
.sc-turn-arc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  margin: 0 0 0.75rem;
}
.page-content .sc-turn-pos {
  position: relative;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-soft);
  padding-left: 2.1rem;
}
.page-content .sc-turn-pos::before {
  position: absolute;
  left: 0;
  top: 0;
  font-family: "Roboto Mono", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.page-content .sc-turn-pos-in::before { content: "IN"; color: var(--text-soft); }
.page-content .sc-turn-pos-out::before { content: "OUT"; color: var(--sc-accent); }
.page-content .sc-turn-pos-out { color: var(--text-strong); }
.page-content .sc-turn-quote {
  margin: 0;
  padding: 0.1rem 0 0.1rem 0.85rem;
  border: none;
  border-left: 2px solid var(--sc-accent);
  font-family: Charter, "Bitstream Charter", Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}
.page-content .sc-turn-by {
  font-family: "Roboto Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0.6rem 0 0;
}

/* ---- Meet-the-students portraits (whole-term arcs) ---- */
.sc-people { display: grid; gap: 1.05rem; margin: 1.5rem 0 0.4rem; max-width: 44rem; }
.sc-person {
  border: 1px solid var(--sc-card-border);
  background: var(--sc-card-bg);
  border-radius: 8px;
  padding: 1.3rem 1.5rem 1.25rem;
}
.sc-person-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.page-content .sc-person-name {
  font-family: Charter, "Bitstream Charter", Georgia, serif;
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--text-strong);
  margin: 0;
}
/* The five weekly modules as dots; filled where the student took part. */
.sc-dots { display: flex; gap: 0.34rem; align-items: center; flex: none; }
.sc-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: var(--page-bg);
  border: 1.5px solid var(--sc-map-line);
}
.sc-dot.on { background: var(--sc-accent); border-color: var(--sc-accent); }
.page-content .sc-person-role {
  font-family: "Roboto Mono", monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--link-color);
  margin: 0.4rem 0 0.7rem;
}
.page-content .sc-person p {
  font-size: 0.85rem;
  line-height: 1.68;
  margin: 0 0 0.6rem;
}
.page-content .sc-person p:last-child { margin-bottom: 0; }
.page-content .sc-person-quote {
  font-family: Charter, "Bitstream Charter", Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  border-left: 2px solid var(--sc-accent);
  padding-left: 0.85rem;
  margin: 0.75rem 0 0;
}
.page-content .sc-dots-key {
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0.5rem 0 0;
}

/* Section-closing hairline so the last section doesn't float */
.sc-sec-end { border-top: 1px solid var(--rule); margin-top: 2.5rem; }

@media (max-width: 640px) {
  .sc-idea { grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.1rem 0.7rem; }
}

/* ============================================================
   One reading column.
   The whole page is wrapped in .sc-essay. Everything — heading,
   prose, stat band, idea map, scenes, portraits, cards — lives
   inside ONE centered measure with a consistent left and right
   edge, instead of the eight different max-widths that were left-
   ragged against a wide page. Overrides come last so they win the
   equal-specificity ties with the per-component max-widths above;
   the sibling chronicle page has no .sc-essay wrapper and is
   unaffected.
   ============================================================ */
.sc-essay { max-width: 42rem; margin-inline: auto; }
.sc-essay .sc-dek,
.sc-essay .sc-pull,
.sc-essay .sc-reading-note,
.sc-essay .sc-statband,
.sc-essay .sc-statement,
.sc-essay .sc-guide,
.sc-essay .sc-excerpt,
.sc-essay .sc-thread,
.sc-essay .sc-scene-title,
.sc-essay .sc-idea-list,
.sc-essay .sc-turns,
.sc-essay .sc-charts,
.sc-essay .sc-people,
.sc-essay .sc-move,
.sc-essay details.sc-more,
.sc-essay .sc-sec > p { max-width: none; }
