/* A chapter selection screen, using Umbral's existing ink and brass palette. */
.chapter-v5 .chapter-selector {
  min-height: 100svh;
  padding: 32px max(24px, calc((100vw - 1240px) / 2));
  background: radial-gradient(ellipse at 75% 15%, #352638, #191321 65%);
}
.chapter-selector .chapters-head { max-width: none; margin: 0 0 32px; }
.chapter-selector .chapters-head h1 { font-size: 36px; line-height: 1.2; margin: 8px 0 0; }
.chapter-selector .chapters-head button { min-height: 48px; }
.chapter-selection-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
#chapter-list { display: flex; flex-direction: column; gap: 12px; }
.chapter-selector .chapter-choice {
  display: flex; align-items: center; gap: 18px;
  width: 100%; min-height: 116px; padding: 20px;
  text-align: left; background: #231b2b; color: #eee5df;
  border: 1px solid #8a715b; border-radius: 8px;
  transition: background 160ms ease-out, border-color 160ms ease-out;
}
.chapter-selector .chapter-choice:hover { background: #302538; border-color: #dec18a; }
.chapter-selector .chapter-choice[aria-pressed=true] { background: #3c2c35; border: 2px solid #e0bf7c; padding: 19px; }
.chapter-selector .chapter-choice-number { font-family: Fraunces, Georgia, serif; font-size: 42px; color: #dbc18f; line-height: 1; }
.chapter-choice-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.chapter-choice-copy strong { font-size: 19px; line-height: 1.3; }
.chapter-choice-status { font-size: 14px; color: #d5c6cd; }
.chapter-choice[aria-pressed=true] .chapter-choice-status::before { content: '◆ '; color: #e0bf7c; }
#chapter-preview { min-width: 0; border: 1px solid #9a805c; border-radius: 12px; overflow: hidden; background: #211928; }
.chapter-preview-art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #191321; }
.chapter-preview-copy { padding: 24px 28px 28px; }
.chapter-preview-copy h2 { margin: 10px 0 14px; font-size: 32px; line-height: 1.2; color: #f0dbad; }
.chapter-description { font-size: 18px; line-height: 1.55; max-width: 65ch; margin: 0; }
.chapter-topic { color: #c5b4c3; font-size: 14px; margin: 12px 0 0; }
.chapter-progress { margin: 22px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.chapter-progress strong { color: #e0c18b; font-size: 16px; }
.chapter-progress p { margin: 0; font-size: 15px; color: #d6c9d4; }
.chapter-selector .chapter-play-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.chapter-selector .chapter-play-actions button { min-height: 48px; }
.chapter-selector .chapter-play-actions .primary { min-width: 220px; }
.chapter-selector .chapter-summary { margin: 0; }
.chapter-selector .chapter-options { margin-top: 8px; }
.chapter-coming { margin-top: 32px; border-top: 1px solid #705b6b; padding-top: 22px; }
.chapter-coming h2 { font: 16px/1.4 'Atkinson Hyperlegible', sans-serif; color: #cfbccd; margin: 0 0 14px; }
.chapter-coming ol { display: flex; flex-wrap: wrap; gap: 18px 36px; list-style: none; padding: 0; margin: 0; }
.chapter-coming li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #bbaabb; }
.chapter-coming li span { font-family: Fraunces, Georgia, serif; font-size: 24px; }
.chapter-selector button:focus-visible, .chapter-selector summary:focus-visible { outline: 3px solid #f5daa4; outline-offset: 4px; }
@media (max-width: 900px) {
  .chapter-selection-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
  .chapter-preview-copy { padding: 22px; }
}
@media (max-width: 760px) {
  .chapter-v5 .chapter-selector { padding: 24px 16px; }
  .chapter-selector .chapters-head { gap: 16px; margin-bottom: 24px; }
  .chapter-selector .chapters-head h1 { font-size: 28px; }
  .chapter-selection-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #chapter-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .chapter-selector .chapter-choice { width: 100%; min-width: 0; min-height: 110px; padding: 14px; gap: 10px; }
  .chapter-selector .chapter-choice[aria-pressed=true] { padding: 13px; }
  .chapter-selector .chapter-choice-number { font-size: 28px; }
  .chapter-choice-copy strong { font-size: 16px; }
  .chapter-choice-status { font-size: 13px; }
  .chapter-preview-copy { padding: 20px; }
  .chapter-preview-copy h2 { font-size: 28px; }
  .chapter-preview-copy .eyebrow { line-height: 1.5; }
  .chapter-description { font-size: 17px; }
  .chapter-selector .chapter-play-actions { flex-direction: column; }
  .chapter-selector .chapter-play-actions button { width: 100%; min-width: 0; }
  .chapter-coming { margin-top: 24px; }
}
@media (max-width: 360px) {
  .chapter-selector .chapter-choice { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .chapter-selector .chapter-choice { transition: none; }
}
.chapter-upcoming .chapter-choice-copy{font:16px/1.35 "Atkinson Hyperlegible",sans-serif;overflow-wrap:anywhere;min-width:0}
