/* Speed reading pacer (js/pacer.js): passage list, setup, moving highlight, questions, result. Built from ui-kit tokens; made for 390 px first.
   Nothing here animates: the highlight jumps from phrase to phrase, so reduced motion needs no separate rule. */
.pc-page { display: grid; gap: var(--sp-3); max-width: 40rem; margin-inline: auto; min-width: 0; }
.pc-page h2, .pc-page h3, .pc-page p { margin: 0; }
.pc-page h3 { font-size: var(--fs-h3); }
.pc-bar { display: flex; }
.pc-head > p, .pc-head > h2 { min-width: 0; }
.pc-head .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.pc-lv { display: flex; align-items: center; gap: var(--sp-2); }

.pc-list, .pc-answers { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.pc-card { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 56px; padding: var(--sp-3); border: 1px solid var(--hairline-strong); border-radius: var(--r-sm); background: var(--surface); color: inherit; font: inherit; text-align: start; cursor: pointer; }
.pc-card:hover { border-color: var(--accent-line); }
.pc-card-t { display: grid; gap: 2px; flex: 1; min-width: 0; overflow-wrap: anywhere; }

.pc-entry { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-block-end: var(--sp-3); }
.pc-entry p, .pc-entry h2 { margin: 0; }
.pc-entry h2 { font-size: var(--fs-h3); }

.pc-switch { justify-self: start; min-height: 48px; }
.pc-speeds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
.pc-speed { display: grid; justify-items: center; gap: 2px; min-height: 56px; padding: var(--sp-2); }
.pc-speed b { font-size: var(--fs-h3); }
.pc-speed[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.pc-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pc-actions .btn { flex: 1 1 auto; min-height: 48px; }
.pc-sticky { position: sticky; top: 0; z-index: 2; padding-block: var(--sp-2); background: var(--surface); }

.pc-text { display: grid; gap: var(--sp-3); font-size: 1.1rem; line-height: 1.8; overflow-wrap: anywhere; text-align: left; }
.pc-text p { margin: 0; }
.pc-ch { border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pc-ch.on { background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft), 0 2px 0 var(--accent); }
.pc-text[data-mode="marker"] .pc-ch.on { box-shadow: 0 0 0 3px var(--accent-soft), 0 3px 0 var(--accent); font-weight: 600; }

.pc-q { display: grid; gap: var(--sp-2); margin: 0; padding: var(--sp-3); border: 1px solid var(--hairline); border-radius: var(--r-sm); min-width: 0; }
.pc-q legend { display: grid; gap: var(--sp-1, 4px); padding-inline: var(--sp-1, 4px); max-width: 100%; }
.pc-qn { font-weight: 600; }
.pc-qt { display: block; line-height: 1.5; overflow-wrap: anywhere; text-align: left; }
.pc-opt { display: flex; align-items: flex-start; gap: var(--sp-2); min-height: 48px; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--hairline-strong); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.pc-opt input { margin-block-start: 4px; flex: none; }
.pc-opt span { min-width: 0; overflow-wrap: anywhere; line-height: 1.5; text-align: left; }
.pc-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.pc-ans { display: grid; gap: var(--sp-1, 4px); padding: var(--sp-3); border: 1px solid var(--hairline); border-radius: var(--r-sm); background: var(--surface); }
.pc-why { line-height: 1.5; }
.pc-result p { margin: 0; }
.pc-result:focus-visible { outline: 2px solid var(--accent); }
.pc-members { display: grid; gap: var(--sp-2); justify-items: start; }
