/* Chapter reader. Matches the Almanac chapter mock: bar, chip, dock. */
body[data-page="chapter"] .site-header { display: none; }
body[data-page="chapter"] main { padding-bottom: 5.5rem; max-width: 40rem; }
.reader-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 8; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 4px; background: var(--bg); padding: 0.15rem 0.25rem 0; }
body[data-page="chapter"] main { padding-top: 4.75rem; }
body[data-page="chapter"] .site-nav { display: none; }
.page-marker { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.reader-back, .reader-tools a, .reader-tools button { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--fg); background: transparent; border: 0; text-decoration: none; border-radius: 10px; }
.reader-title { margin: 0; text-align: center; min-width: 0; }
.reader-title b { display: block; font-family: Fraunces, Georgia, serif; font-size: 1.05rem; font-weight: 560; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-title small { display: block; color: var(--muted); font-family: Inter, system-ui, sans-serif; font-size: 0.78rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-tools { display: flex; align-items: center; }
.reader-tools button { font-family: Fraunces, Georgia, serif; font-size: 1.05rem; }
.reader-progress { grid-column: 1 / -1; height: 3px; background: var(--border); }
.reader-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
body.chapter-slide { overflow: hidden; }
body.chapter-slide main { transition: transform 180ms ease; }
@media (prefers-reduced-motion: reduce) {
  body.chapter-slide main { transition: none; }
}
.reader-hint { margin: .4rem 0; font-size: .9rem; }
.reader-by { margin: 0.85rem 0 0.2rem; font-family: Inter, system-ui, sans-serif; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.reader-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; min-height: 64px; padding: 0.2rem 0.4rem calc(0.2rem + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--border); }
.dock-nav { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--fg); text-decoration: none; border-radius: 10px; }
.reader-dock p { margin: 0; text-align: center; }
.reader-dock p b { display: block; font-family: Inter, system-ui, sans-serif; font-size: 0.95rem; font-weight: 650; }
.reader-dock p span { display: block; color: var(--muted); font-size: 0.75rem; }
.warn-card { margin: 0.65rem 0 0.4rem; }
.warn-full { font-size: 0.95rem; }
.warn-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--note-bg, #FFF1DC); border: 1px solid #E7D3B0; border-radius: 14px; padding: 0.45rem 0.7rem 0.45rem 0.85rem; }
.warn-chip p { margin: 0; flex: 1 1 auto; min-width: 0; font-family: Inter, system-ui, sans-serif; font-size: 0.92rem; }
.warn-chip button { flex: 0 0 auto; white-space: nowrap; min-height: 44px; padding: 0 0.4rem; border: 0; background: transparent; color: var(--accent); font-weight: 650; font-size: 1rem; }
#aa-sheet { border: 0; border-radius: 16px 16px 0 0; padding: 1rem 1rem 1.25rem; width: min(100%, 28rem); max-height: 70vh; }
#aa-sheet[open] { position: fixed; inset: auto 0 0 0; margin: 0 auto; }
#aa-sheet::backdrop { background: rgba(13, 17, 16, 0.45); }
#aa-sheet [role="group"] { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.35rem 0 0.8rem; }
#aa-sheet button { min-height: 44px; }
#aa-sheet button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg, #fff); }
#para-menu { position: fixed; z-index: 8; background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 10px; padding: 0.25rem; }
#para-menu button { min-height: 44px; }
