/* Online reader — full-screen page view. Loaded only on /books/<slug>/read/. */
.fmqa.reader-body { background: #E9ECE6; overflow: hidden; height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.fmqa .reader { --zoom: 1; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.fmqa .reader .roundel-band { padding-top: 4px; }
.fmqa .reader .roundel-band img { width: 40px; height: 40px; }
.fmqa .r-top { position: relative; z-index: 3; background: var(--green-deep); color: var(--paper-on-dark); display: flex; align-items: center; gap: 10px; padding: 4px 12px 6px; border-bottom: 1px solid var(--gold-rule); }
.fmqa .r-top a { color: var(--paper-on-dark); text-decoration: none; font-size: 15px; border: 1px solid var(--gold-on-dark); border-radius: var(--radius); padding: 2px 10px; white-space: nowrap; }
.fmqa .r-top .r-title { flex: 1 1 auto; min-width: 0; line-height: 1.6; }
.fmqa .r-top .r-title b { display: block; font-size: 17px; font-weight: 700; }
.fmqa .r-top .r-section { display: block; font-size: 13px; line-height: 2.1; padding-bottom: 2px; color: var(--gold-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmqa .r-section .saw, .fmqa .r-list .saw, .fmqa .r-routine-bar .saw, .fmqa .r-resume .saw { font-size: 1.15em; line-height: 1; }
.fmqa .r-counter { font-size: 14px; white-space: nowrap; }

.fmqa .r-resume, .fmqa .r-routine-bar, .fmqa .r-error { background: var(--gold-light); color: var(--green-deep); padding: 6px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; line-height: 1.9; }
.fmqa .r-resume[hidden], .fmqa .r-routine-bar[hidden], .fmqa .r-error[hidden] { display: none; }
.fmqa .r-resume .txt, .fmqa .r-routine-bar .txt { flex: 1 1 200px; }
.fmqa .r-resume button, .fmqa .r-routine-bar button { font-family: var(--ur); font-size: 15px; line-height: 1.8; border-radius: var(--radius); padding: 2px 12px; min-height: 40px; cursor: pointer; border: 1px solid var(--green); background: var(--marble); color: var(--green); }
.fmqa .r-resume button.go, .fmqa .r-routine-bar button.go { background: var(--green); color: var(--marble); }

.fmqa .r-scroll { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; padding: 10px 8px 16px; }
.fmqa .r-page { position: relative; margin: 0 auto; width: calc(min(100%, 760px) * var(--zoom)); max-width: none; background: var(--white); box-shadow: 0 1px 4px rgba(18, 61, 41, .18); }
.fmqa .r-page img { display: block; width: 100%; height: auto; aspect-ratio: 1100 / 1690; background: var(--white); }
.fmqa .reader.dim .r-page img { filter: sepia(.35) brightness(.86); }
.fmqa .reader.dim .r-scroll { background: #3A3F38; }

.fmqa .r-bar { background: var(--green-deep); border-top: 1px solid var(--gold-rule); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-bottom: env(safe-area-inset-bottom); }
.fmqa .r-bar button { font-family: var(--ur); background: none; border: 0; color: var(--paper-on-dark); min-height: 58px; font-size: 13px; line-height: 1.6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; cursor: pointer; padding: 4px 2px; }
.fmqa .r-bar button svg { width: 22px; height: 22px; stroke: var(--gold-light); fill: none; stroke-width: 1.6; }
.fmqa .r-bar button[aria-pressed="true"] svg { fill: var(--gold-light); }
.fmqa .r-bar button:hover, .fmqa .r-bar button:focus-visible { background: rgba(226, 198, 119, .12); }
.fmqa .r-bar .big { font-size: 15px; font-weight: 600; }
@media (min-width: 900px) { .fmqa .r-bar { max-width: 760px; margin: 0 auto; width: 100%; border: 1px solid var(--gold-rule); border-bottom: 0; } .fmqa .r-bar button { font-size: 15px; } }

.fmqa .r-tools { display: flex; gap: 8px; justify-content: center; padding: 6px 8px; background: var(--stone); border-bottom: 1px solid var(--line); }
.fmqa .r-tools button { font-family: var(--ur); font-size: 14px; line-height: 1.8; min-height: 40px; padding: 0 12px; border: 1px solid #C9CFC6; background: var(--white); color: var(--green); border-radius: var(--radius); cursor: pointer; }
.fmqa .r-tools button[aria-pressed="true"] { background: var(--green); color: var(--marble); }

/* drawer */
.fmqa .r-drawer { position: fixed; inset: 0; background: rgba(14, 50, 33, .55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.fmqa .r-drawer[hidden] { display: none; }
.fmqa .r-panel { background: var(--marble); width: 100%; max-width: 640px; max-height: 82vh; overflow: auto; border-top: 3px solid var(--gold-rule); border-radius: 14px 14px 0 0; padding: 14px 16px 24px; }
.fmqa .r-panel[hidden] { display: none; }
@media (min-width: 900px) { .fmqa .r-drawer { align-items: center; } .fmqa .r-panel { border-radius: 4px; } }
.fmqa .r-panel .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.fmqa .r-panel .head button { font-family: var(--ur); font-size: 15px; min-height: 40px; border: 1px solid var(--green); background: var(--white); color: var(--green); border-radius: var(--radius); padding: 0 14px; cursor: pointer; }
.fmqa .r-list { list-style: none; margin: 0; padding: 0; }
.fmqa .r-list li button { width: 100%; text-align: right; font-family: var(--ur); font-size: 16px; line-height: 1.9; background: none; border: 0; border-bottom: 1px solid var(--line-soft); padding: 8px 4px; display: flex; justify-content: space-between; gap: 12px; color: var(--ink); cursor: pointer; }
.fmqa .r-list li button:hover { background: var(--stone); }
.fmqa .r-list li button .pg { color: var(--muted); flex: 0 0 auto; }
.fmqa .r-list li.lvl0 button { font-weight: 600; color: var(--green); }
.fmqa .r-list li.lvl1 button { padding-inline-start: 20px; font-size: 15px; }
.fmqa .r-list li button.done span:first-child { color: var(--green); }
.fmqa .r-list .muted { padding: 8px 4px; font-size: 15px; }
.fmqa .r-goto { display: flex; gap: 8px; margin: 6px 0 12px; }
.fmqa .r-goto input { flex: 1 1 auto; font-family: var(--ur); font-size: 17px; min-height: 48px; border: 1px solid #A9B3AC; border-radius: var(--radius); padding: 0 12px; }
.fmqa .r-goto button { font-family: var(--ur); font-size: 16px; min-height: 48px; border: 0; background: var(--green); color: var(--marble); border-radius: var(--radius); padding: 0 16px; cursor: pointer; }
.fmqa .r-quote { background: var(--stone); border-inline-start: 3px solid var(--gold-rule); padding: 8px 12px; font-size: 16px; margin: 6px 0 12px; }
.fmqa .r-sessions { display: grid; gap: 10px; margin-bottom: 10px; }
@media (min-width: 600px) { .fmqa .r-sessions { grid-template-columns: 1fr 1fr; } }
.fmqa .r-sessions .s { border: 1px solid var(--line); background: var(--white); padding: 10px 12px; }
.fmqa .r-sessions .s h3 { display: flex; justify-content: space-between; }
.fmqa .r-sessions .s button.start { width: 100%; margin-top: 8px; }
.fmqa .r-note { font-size: 14px; color: var(--muted); line-height: 2; }

/* tappable areas on the page image (printed contents, web addresses) */
.fmqa .r-link { position: absolute; display: block; border-radius: 3px; -webkit-tap-highlight-color: rgba(201, 162, 63, .35); }
.fmqa .r-link:hover, .fmqa .r-link:focus-visible { background: rgba(226, 198, 119, .28); outline: 2px solid var(--gold-rule); outline-offset: 0; }
.fmqa .r-list li button.current { background: var(--gold-light); }
.fmqa .r-tools button { display: inline-flex; align-items: center; }
.fmqa .r-tools .en { font-size: .8em; }

.fmqa .r-tools .r-fs { padding: 0 10px; }
.fmqa .r-tools .r-fs .ico { margin-inline-end: 0; }
@media (min-width: 900px) { .fmqa .r-tools .r-fs .ico { margin-inline-end: .45em; } }
.fmqa .r-mark { position: absolute; left: 0; right: 0; height: 6.5%; background: rgba(226, 198, 119, .25); border-right: 5px solid var(--gold-rule); transition: opacity .8s; pointer-events: none; }
.fmqa .r-mark.off { opacity: 0; }
@media (max-width: 899px) { .fmqa .r-tools { gap: 5px; padding: 5px 6px; } .fmqa .r-tools button { white-space: nowrap; padding: 0 8px; font-size: 13.5px; min-height: 38px; } }

/* r2.4 — continuous reading: the pages follow each other in one column */
.fmqa .r-pages { display: flex; flex-direction: column; gap: 10px; }
.fmqa .r-end { max-width: 640px; margin: 18px auto 10px; padding: 18px 14px; text-align: center; background: var(--stone); border-top: 3px solid var(--gold-rule); }
.fmqa .r-end-h { font-size: 21px; font-weight: 600; color: var(--green); margin: 0 0 10px; }
.fmqa .r-end .btn { min-height: 48px; font-size: 16px; }

/* full screen: only the book + one slim bar at the bottom (thumb reach) */
.fmqa .r-fsbar { display: none; }
.fmqa .reader.immersive .roundel-band, .fmqa .reader.immersive .r-top, .fmqa .reader.immersive .r-tools,
.fmqa .reader.immersive .r-resume, .fmqa .reader.immersive .r-bar { display: none; }
.fmqa .reader.immersive .r-scroll { padding: 0 0 6px; }
.fmqa .reader.immersive .r-pages { gap: 4px; }
.fmqa .reader.immersive .r-page { box-shadow: none; }
.fmqa .reader.immersive .r-fsbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--green-deep); border-top: 1px solid var(--gold-rule); padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); }
.fmqa .r-fsbar button { display: inline-flex; align-items: center; font-family: var(--ur); font-size: 15px; line-height: 1.8; min-height: 44px; padding: 0 12px; border-radius: var(--radius); cursor: pointer; border: 1px solid var(--gold-on-dark); background: transparent; color: var(--paper-on-dark); }
.fmqa .r-fsbar .r-fs-exit { background: var(--gold-light); color: var(--green-deep); border-color: var(--gold-light); font-weight: 600; }
.fmqa .r-fs-count { color: var(--paper-on-dark); font-size: 15px; white-space: nowrap; }
@media (min-width: 900px) { .fmqa .reader.immersive .r-fsbar { max-width: 760px; margin: 0 auto; width: 100%; border: 1px solid var(--gold-rule); border-bottom: 0; } }
@media (max-width: 420px) { .fmqa .r-fsbar .en, .fmqa .r-fsbar .long { display: none; } .fmqa .r-fsbar button { padding: 0 9px; font-size: 14px; } }
