/* ============================================================
   Classicalia — Odyssey lesson pages (textbook)
   lesson.css — links after classicalia.css and revision.css
   ============================================================ */

/* ── LAYOUT TWEAKS ── */
.rev-body { grid-template-columns: 240px 1fr; }
.rev-main { padding: 48px 56px 72px; }
.ls-body { max-width: 68ch; }

/* ── SIDEBAR EXTRAS ── */
.rev-nav li a .n {
  display: inline-block; min-width: 20px;
  font-weight: 700; color: var(--brand); opacity: 0.55;
}
.rev-nav li a.active .n { opacity: 1; }
.rev-nav li a.soon { color: #a3abbd; cursor: default; }
.rev-nav li a.soon:hover { color: #a3abbd; }
.rev-nav li a.here { color: var(--navy); font-weight: 700; }
.rev-nav li a.ext::after { content: ' \2197'; font-size: 10px; opacity: 0.5; }

.ls-progress { margin: -8px 0 24px; }
.ls-progress-track { height: 3px; background: var(--rule-faint); border-radius: 2px; overflow: hidden; }
.ls-progress-bar { height: 100%; width: 0; background: var(--brand); transition: width 0.3s ease; }
.ls-progress-label { font-size: 10.5px; color: var(--muted); margin-top: 6px; letter-spacing: 0.04em; }

/* ── HEADER TAGS (status) ── */
.header-tag--set { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.3); }

/* ── RUNNING TEXT ── */
.ls-body p { font-size: 14.5px; line-height: 1.75; color: var(--ink); margin-bottom: 14px; }
.ls-body p.lede {
  font-family: 'Lora', serif; font-size: 17px; line-height: 1.65; color: var(--navy);
}
.ls-body h3 {
  font-family: 'Lora', serif; font-style: italic; font-weight: 700;
  font-size: 19px; color: var(--navy); margin: 30px 0 10px; line-height: 1.25;
}
.ls-body h3:first-child { margin-top: 0; }
.ls-body h4 {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin: 26px 0 10px;
}
.ls-body em.gk, .gk { font-family: 'Lora', serif; font-style: italic; color: var(--navy); font-weight: 600; }
.ls-body ul.plain { list-style: none; margin: 0 0 16px; }
.ls-body ul.plain li {
  position: relative; padding: 6px 0 6px 18px; font-size: 14px; line-height: 1.6;
  border-bottom: 1px dotted var(--rule-faint);
}
.ls-body ul.plain li:last-child { border-bottom: none; }
.ls-body ul.plain li::before { content: '\2192'; position: absolute; left: 0; top: 7px; font-size: 11px; color: var(--brand); opacity: 0.7; }

/* line reference chip */
.ln {
  display: inline-block; font-family: 'DM Sans', sans-serif; font-style: normal;
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: var(--brand);
  background: rgba(26,111,255,0.08); border: 1px solid rgba(26,111,255,0.18);
  border-radius: 3px; padding: 0 6px; line-height: 18px; white-space: nowrap;
  vertical-align: 1px; text-decoration: none;
}
a.ln:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── "WHAT YOU NEED TO KNOW" ── */
.need { margin: 4px 0 26px; }
.need-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.need ul { list-style: none; }
.need li {
  position: relative; padding: 5px 0 5px 18px; font-size: 14px; line-height: 1.55; color: var(--ink);
  border-bottom: 1px dotted var(--rule-faint);
}
.need li:last-child { border-bottom: none; }
.need li::before { content: '\2192'; position: absolute; left: 0; top: 6px; font-size: 11px; color: var(--muted); }

/* ── PRESCRIBED / CONTEXT BADGES ── */
.badge {
  display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 2px; vertical-align: middle;
}
.badge--set { background: var(--navy); color: #fff; }
.badge--ctx { background: var(--rule-faint); color: var(--muted); }

/* ── NOTES (plain paragraph with a bold lead-in) ── */
.ls-body p.note { font-size: 14px; }
.note strong { color: var(--navy); font-weight: 700; }

/* ── GLOSSARY ("The words") ── */
.words { border: 1px solid var(--rule); border-radius: 4px; margin: 6px 0 22px; overflow: hidden; }
.words-head {
  background: var(--navy); color: #fff; font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 16px;
}
.word { display: grid; grid-template-columns: 150px 1fr; border-top: 1px solid var(--rule-faint); }
.word:first-of-type { border-top: none; }
.word dt {
  font-family: 'Lora', serif; font-style: italic; font-weight: 700; font-size: 15px;
  color: var(--navy); padding: 10px 16px; background: var(--cream);
  border-right: 1px solid var(--rule-faint);
}
.word dd { font-size: 13.5px; line-height: 1.55; padding: 10px 16px; color: var(--ink); }

/* ── NUMBERED STEPS ── */
.steps { list-style: none; counter-reset: step; margin: 6px 0 20px; }
.steps li {
  counter-increment: step; position: relative;
  padding: 10px 0 10px 44px; font-size: 14px; line-height: 1.6;
  border-bottom: 1px solid var(--rule-faint);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 9px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--brand); color: var(--brand);
  font-weight: 700; font-size: 12.5px; display: flex; align-items: center; justify-content: center;
}
.steps li b { color: var(--navy); }
.steps--guest li::before { border-color: var(--navy); color: var(--navy); }

/* ── SCENE CARDS (Book 1 close reading) ── */
.scene {
  border: 1px solid var(--rule); border-radius: 4px; padding: 16px 18px 6px; margin: 0 0 14px;
  background: var(--paper);
}
.scene-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.scene-n { font-size: 11px; font-weight: 700; color: var(--brand); letter-spacing: 0.06em; }
.scene-title { font-family: 'Lora', serif; font-style: italic; font-weight: 700; font-size: 16.5px; color: var(--navy); }
.scene p, .scene li { font-size: 13.5px !important; }

/* ── CHARACTER BOX ── */
.who {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start;
  border: 1px solid var(--rule); border-radius: 4px; background: var(--cream);
  padding: 12px 14px; margin: 14px 0 18px;
}
.who-mark {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff;
  font-family: 'Lora', serif; font-style: italic; font-weight: 700; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.who-name { font-family: 'Lora', serif; font-style: italic; font-weight: 700; font-size: 15px; color: var(--navy); }
.who-text { font-size: 13px; line-height: 1.55; color: var(--ink); }

/* ── TABLES ── */
.tbl { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 13px; line-height: 1.5; }
.tbl th {
  text-align: left; font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding: 0 12px 8px; border-bottom: 1.5px solid var(--navy);
}
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--rule-faint); vertical-align: top; color: var(--ink); }
.tbl td:first-child { font-family: 'Lora', serif; font-style: italic; font-weight: 700; color: var(--navy); font-size: 14px; }
.tbl tr:hover td { background: var(--cream); }
.verdict {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 10px; white-space: nowrap;
}
.v-good { background: #e6f4ea; color: #1e6b34; }
.v-bad { background: #fde8e6; color: #a42318; }
.v-mid { background: #fff4d6; color: #8a5a00; }
.v-none { background: var(--rule-faint); color: var(--muted); }

/* ── SCHOLARS ── */
.scholar { border: 1px solid var(--rule); border-radius: 6px; margin: 0 0 18px; overflow: hidden; }
.scholar-head { padding: 14px 18px 12px; border-bottom: 1px solid var(--rule-faint); }
.scholar-name { font-family: 'Lora', serif; font-weight: 700; font-size: 16px; color: var(--navy); }
.scholar-work { font-size: 12px; color: var(--muted); font-style: italic; }
.scholar-claim {
  font-family: 'Lora', serif; font-style: italic; font-size: 14.5px; line-height: 1.6;
  color: var(--navy); margin-top: 8px;
}
.scholar-sides { display: grid; grid-template-columns: 1fr 1fr; }
.side { padding: 12px 18px 14px; font-size: 13px; line-height: 1.55; }
.side + .side { border-left: 1px solid var(--rule-faint); }
.side-label { font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 4px; }
.side-label { color: var(--navy); }
.scholar-verdict {
  border-top: 1px dashed var(--rule); padding: 10px 18px; background: var(--paper);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted);
}
.scale { display: inline-flex; border: 1px solid var(--rule); border-radius: 5px; overflow: hidden; }
.scale button {
  font-family: 'DM Sans', sans-serif; font-size: 11.5px; font-weight: 600; color: var(--muted);
  background: none; border: none; padding: 5px 10px; cursor: pointer;
}
.scale button + button { border-left: 1px solid var(--rule); }
.scale button:hover { color: var(--navy); background: var(--cream); }
.scale button.on { background: var(--navy); color: #fff; }

/* ── CAN YOU…? CHECKLIST ── */
.canyou { border: 1px solid var(--rule); border-radius: 6px; padding: 16px 18px; margin: 24px 0 0; background: var(--cream); }
.canyou-label { font-family: 'Lora', serif; font-style: italic; font-weight: 700; font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.canyou label {
  display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 13.5px; line-height: 1.5;
  border-bottom: 1px dotted var(--rule); cursor: pointer;
}
.canyou label:last-child { border-bottom: none; }
.canyou input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); flex-shrink: 0; }
.canyou input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--rule); }

/* ── SUMMARY ── */
.summary { margin-top: 4px; }
.summary-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.summary ul { list-style: none; }
.summary li {
  position: relative; padding: 8px 0 8px 18px; font-size: 14px; line-height: 1.6; color: var(--ink);
  border-bottom: 1px dotted var(--rule);
}
.summary li:last-child { border-bottom: none; }
.summary li::before { content: '\2192'; position: absolute; left: 0; top: 9px; color: var(--muted); font-size: 11px; }

/* ── TIMELINE STRIP (story vs telling) ── */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 8px 0 20px; }
.strip-cell { padding: 12px 14px; font-size: 12.5px; line-height: 1.5; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); }
.strip-cell b { display: block; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.strip-cell--now { border-color: var(--navy); }
.strip-cell--now b { color: var(--navy); }

/* ── EXAM: AO pairs ── */
.ao { border: 1px solid var(--rule); border-radius: 6px; margin: 0 0 12px; overflow: hidden; }
.ao-row { display: grid; grid-template-columns: 34px 1fr 1.5fr; }
.ao-n {
  background: var(--navy); color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: flex-start; justify-content: center; padding-top: 12px;
}
.ao-1, .ao-2 { padding: 10px 14px 12px; font-size: 13px; line-height: 1.55; }
.ao-1 { background: var(--cream); border-right: 1px solid var(--rule-faint); }
.ao-tag { font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 3px; }
.ao-1 .ao-tag { color: var(--navy); }
.ao-2 .ao-tag { color: var(--brand); }
.ao-tech { font-weight: 700; color: var(--navy); }
.ao-quote { font-family: 'Lora', serif; font-style: italic; color: var(--ink); }

.passage {
  font-family: 'Lora', serif; font-size: 15px; line-height: 1.85; color: var(--ink);
  background: var(--cream); border: 1px solid var(--rule); border-radius: 4px;
  padding: 20px 24px; margin: 8px 0 18px;
}
.passage mark { background: rgba(26,111,255,0.12); color: inherit; padding: 0 2px; border-radius: 2px; cursor: help; }
.passage mark.on { background: var(--brand); color: #fff; }
.exam-q {
  border: 1.5px solid var(--navy); border-radius: 4px; padding: 14px 18px; margin: 0 0 22px;
  font-size: 14px; line-height: 1.6; color: var(--navy); font-weight: 500;
}
.exam-q b { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; display: block; color: var(--muted); margin-bottom: 4px; }
.marks { float: right; font-weight: 700; color: var(--navy); }

/* ── PAGER (prev / next section) ── */
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); }
.pager button {
  font-family: 'DM Sans', sans-serif; text-align: left; background: none; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 6px; padding: 10px 16px; min-width: 0; max-width: 48%;
  transition: border-color 0.12s;
}
.pager button:hover { border-color: var(--brand); }
.pager button span { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pager button strong { display: block; font-size: 13px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pager .next { margin-left: auto; text-align: right; }
.pager .next strong { color: var(--brand); }

/* ── MOCKUP RIBBON ── */
.mock-ribbon {
  background: #fff4d6; color: #6b4600; font-size: 12px; text-align: center; padding: 7px 16px;
  border-bottom: 1px solid #f0dca4;
}

/* ── MOBILE ── */
@media (max-width: 860px) {
  .rev-body { grid-template-columns: 1fr; }
  .rev-main { padding: 28px 16px 60px; }
  .ls-body { max-width: none; }
  .rev-sidebar-inner > .rev-nav-group:nth-of-type(n+4) { display: none; }
  .word { grid-template-columns: 1fr; }
  .word dt { border-right: none; padding-bottom: 2px; }
  .scholar-sides { grid-template-columns: 1fr; }
  .side + .side { border-left: none; border-top: 1px solid var(--rule-faint); }
  .strip { grid-template-columns: 1fr; }
  .ao-row { grid-template-columns: 30px 1fr; }
  .ao-2 { grid-column: 2; border-top: 1px solid var(--rule-faint); }
  .ao-1 { border-right: none; }
  .tbl-wrap { overflow-x: auto; }
  .passage { padding: 16px; }
  .header-title { font-size: 34px; }
  .header-inner { padding: 0 16px; }
}

/* keep panel titles clear of the sticky tab bar on direct links */
.rev-panel { scroll-margin-top: 64px; }

/* ── SCENE STRUCTURE CARDS ── */
h4.ls-h4 {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin: 8px 0 10px;
}
.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 0 0 32px; }
.scene-card { border: 1px solid var(--rule); border-radius: 4px; padding: 12px 14px; background: var(--paper); }
.scene-card-n { font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.scene-card-title { font-family: 'Lora', serif; font-style: italic; font-weight: 700; font-size: 15px; color: var(--navy); line-height: 1.3; margin: 3px 0 2px; }
.scene-card-lines { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.scene-card p { font-size: 12.5px; line-height: 1.5; color: var(--ink); margin: 0; }

/* ── QUOTED PASSAGE ── */
.quote { margin: 4px 0 16px; padding: 16px 20px; border: 1px solid var(--rule); border-radius: 4px; background: var(--cream); }
.ls-body .quote p { font-family: 'Lora', serif; font-size: 15px; line-height: 1.75; color: var(--ink); margin-bottom: 10px; }
.quote cite { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); }

/* ── UNPACKING THE PASSAGE ── */
.unpack { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; margin: 0 0 18px; border-top: 1px solid var(--rule-faint); }
.unpack dt, .unpack dd { padding: 9px 0; border-bottom: 1px solid var(--rule-faint); font-size: 13.5px; line-height: 1.55; }
.unpack dt { font-family: 'Lora', serif; font-style: italic; color: var(--navy); padding-right: 16px; }
.unpack dd { color: var(--ink); }
@media (max-width: 860px) {
  .unpack { grid-template-columns: 1fr; }
  .unpack dt { border-bottom: none; padding-bottom: 0; }
}

.ls-body a:not(.ln) { color: var(--brand); text-decoration: none; border-bottom: 1px solid rgba(26,111,255,0.3); }
.ls-body a:not(.ln):hover { border-bottom-color: var(--brand); }
