/* Flipbook viewer. No web fonts, no CDN. Navy / gold / parchment like the print family. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0c1a32; color: #f6ebd0; }
body { font-family: Georgia, "Times New Roman", serif; }
.fb { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.fb-bar { flex: 0 0 auto; padding: 10px 16px 8px; text-align: center; border-bottom: 1px solid rgba(212,168,75,.35);
          background: linear-gradient(180deg, #1e3a5f, #142b4a); }
.fb-title { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #f3d891;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-stage { flex: 1 1 auto; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
            padding: 14px; outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.fb-stage:focus-visible { box-shadow: inset 0 0 0 2px #d4a84b; }
.fb-view { display: flex; align-items: center; justify-content: center; height: 100%; width: 100%; transition: opacity .22s ease, transform .22s ease; }
.fb-view.out-next { opacity: 0; transform: translateX(-18px); }
.fb-view.out-prev { opacity: 0; transform: translateX(18px); }
[dir="rtl"] .fb-view.out-next { transform: translateX(18px); }
[dir="rtl"] .fb-view.out-prev { transform: translateX(-18px); }
.fb-page { display: block; max-height: 100%; max-width: 100%; height: auto; width: auto; background: #f7f0e0;
           box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.fb-view.two .fb-page { max-width: 50%; }
.fb-view.two .fb-page:first-child { box-shadow: -8px 10px 30px rgba(0,0,0,.45), inset -12px 0 18px -12px rgba(0,0,0,.35); }
.fb-view.two .fb-page:last-child { box-shadow: 8px 10px 30px rgba(0,0,0,.45); }
.fb-nav { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 8px 12px 12px;
          border-top: 1px solid rgba(212,168,75,.35); background: #0f1f3d; }
.fb-btn { min-width: 52px; min-height: 44px; border-radius: 22px; border: 1px solid #d4a84b; background: #1e3a5f; color: #f3d891;
          font-size: 26px; line-height: 1; cursor: pointer; }
.fb-btn:hover { background: #274a76; }
.fb-btn:focus-visible { outline: 2px solid #f3d891; outline-offset: 2px; }
.fb-btn[disabled] { opacity: .35; cursor: default; }
.fb-count { min-width: 120px; text-align: center; font-family: Verdana, Geneva, Arial, sans-serif; font-size: 13px; letter-spacing: .06em; color: #e2be6c; }
.fb-msg { padding: 24px; text-align: center; color: #f1dda6; font-family: Verdana, Geneva, Arial, sans-serif; font-size: 14px; }
@media (max-width: 480px) {
  .fb-stage { padding: 8px; }
  .fb-title { font-size: 13px; letter-spacing: .1em; }
  .fb-nav { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .fb-view { transition: none; } }
