/* Polished Flipbook PDF Reader (782234c5) */

.fb-782234c5-placeholder {
    padding: 40px;
    color: #475569;
    text-align: center;
    background: #f1f3f5;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
}

.fb-782234c5-placeholder .eicon-flip-box {
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 48px;
}

.fb-782234c5-wrapper,
.fb-782234c5-wrapper * {
    box-sizing: border-box;
}

.fb-782234c5-wrapper {
    --fb-control-bg: rgba(15, 17, 23, 0.88);
    --fb-control-color: #fff;
    --fb-accent: #89a8bb;
    position: relative;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    user-select: none;
    -webkit-user-select: none;
}

.fb-782234c5-loader {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #1e222b;
    border-radius: 8px;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.fb-782234c5-loader.fade-out {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.fb-782234c5-spinner {
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border: 3px solid rgba(255, 255, 255, 0.14);
    border-top-color: var(--fb-accent);
    border-radius: 50%;
    animation: fb-782234c5-spin 800ms linear infinite;
}

@keyframes fb-782234c5-spin {
    to { transform: rotate(360deg); }
}

.fb-782234c5-loader-text {
    font-size: 14px;
    font-weight: 500;
}

.fb-782234c5-fallback {
    padding: 24px;
    margin-bottom: 15px;
    color: #334155;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.fb-782234c5-fallback.hidden,
.fb-782234c5-container.hidden {
    display: none;
}

.fb-782234c5-download-btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 18px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    background: #2563eb;
    border-radius: 6px;
    transition: background-color 180ms ease;
}

.fb-782234c5-download-btn:hover {
    color: #fff;
    background: #1d4ed8;
}

.fb-782234c5-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 320px;
    overflow: hidden;
    background: #1e222b;
    border-radius: 8px;
    outline: none;
    isolation: isolate;
    touch-action: pan-y;
}

.fb-782234c5-container:focus-visible {
    outline: 2px solid var(--fb-accent);
    outline-offset: 3px;
}

.fb-782234c5-stage {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    padding: 28px 68px;
    overflow: hidden;
}

.fb-782234c5-book {
    position: relative;
    display: block;
    max-width: 100%;
    max-height: 100%;
    transform-style: preserve-3d;
    perspective: 2200px;
    transform-origin: center center;
    transition: transform 240ms cubic-bezier(.2, .8, .2, 1);
}

.fb-782234c5-page-wrapper {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: left center;
    transition-property: transform, opacity;
    transition-duration: var(--fb-flip-speed, 550ms);
    transition-timing-function: cubic-bezier(.22, .78, .22, 1);
}

.fb-782234c5-container.single-mode .fb-782234c5-page-wrapper {
    left: 0 !important;
    width: 100%;
    transform-origin: center center;
}

.fb-782234c5-page {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

.fb-782234c5-page.left-page {
    border-radius: 3px 0 0 3px;
}

.fb-782234c5-page.right-page {
    border-radius: 0 3px 3px 0;
}

.fb-782234c5-page.back-side {
    transform: rotateY(180deg);
}

/* The former 25px black center gradients are deliberately disabled. */
.fb-782234c5-page::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: 0 !important;
}

.fb-782234c5-page::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    background: linear-gradient(110deg, #f4f4f4 20%, #fff 42%, #f4f4f4 64%);
    background-size: 220% 100%;
    opacity: 0;
    pointer-events: none;
}

.fb-782234c5-page.is-rendering::before {
    opacity: 1;
    animation: fb-782234c5-page-loading 1.1s linear infinite;
}

@keyframes fb-782234c5-page-loading {
    to { background-position: -220% 0; }
}

.fb-782234c5-page canvas {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    opacity: 0;
    transition: opacity 180ms ease;
}

.fb-782234c5-page.is-rendered canvas {
    opacity: 1;
}

.fb-782234c5-nav-btn,
.fb-782234c5-tool-toggle,
.fb-782234c5-toolbar-btn {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    font: inherit;
    line-height: 1;
    border: 0;
    outline: 0;
}

.fb-782234c5-nav-btn {
    position: absolute;
    top: 50%;
    z-index: 20;
    display: grid;
    width: 44px;
    height: 44px;
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    background: rgba(15, 17, 23, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
    opacity: .82;
    transform: translateY(-50%);
    transition: background-color 180ms ease, opacity 180ms ease, transform 180ms ease;
    place-items: center;
}

.fb-782234c5-nav-btn:hover:not(:disabled),
.fb-782234c5-nav-btn:focus-visible:not(:disabled) {
    background: rgba(15, 17, 23, 0.88);
    opacity: 1;
    transform: translateY(-50%) scale(1.04);
}

.fb-782234c5-nav-btn:disabled {
    cursor: default;
    opacity: .18;
}

.fb-782234c5-nav-btn.prev { left: 16px; }
.fb-782234c5-nav-btn.next { right: 16px; }

.fb-782234c5-page-status,
.fb-782234c5-tool-toggle,
.fb-782234c5-toolbar,
.fb-782234c5-thumbs-drawer {
    color: var(--fb-control-color);
    background-color: var(--fb-control-bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.fb-782234c5-page-status {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 24;
    display: flex;
    gap: 5px;
    align-items: center;
    min-width: 58px;
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    border-radius: 999px;
    pointer-events: none;
}

.fb-782234c5-tool-toggle {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 28;
    display: grid;
    width: 44px;
    height: 44px;
    color: var(--fb-control-color);
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 180ms ease, transform 180ms ease;
    place-items: center;
}

.fb-782234c5-tool-toggle:hover,
.fb-782234c5-tool-toggle:focus-visible,
.fb-782234c5-tool-toggle[aria-expanded="true"] {
    background-color: rgba(38, 43, 54, .96);
    transform: translateY(-2px);
}

.fb-782234c5-toolbar {
    position: absolute;
    bottom: 16px;
    left: 50%;
    z-index: 27;
    display: flex;
    gap: 6px;
    align-items: center;
    width: max-content;
    max-width: calc(100% - 160px);
    height: 52px;
    padding: 6px 9px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, 10px) scale(.98);
    transition: opacity 200ms ease, transform 240ms cubic-bezier(.2, .8, .2, 1), visibility 200ms;
    visibility: hidden;
    pointer-events: none;
}

.fb-782234c5-toolbar::-webkit-scrollbar { display: none; }

.fb-782234c5-toolbar.is-open {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    visibility: visible;
    pointer-events: auto;
}

.fb-782234c5-toolbar-group {
    display: flex;
    flex: 0 0 auto;
    gap: 2px;
    align-items: center;
    height: 40px;
}

.fb-782234c5-toolbar-separator {
    flex: 0 0 1px;
    width: 1px;
    height: 22px;
    margin: 0 3px;
    background: rgba(255, 255, 255, 0.15);
}

.fb-782234c5-toolbar-btn {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    color: var(--fb-control-color);
    font-size: 17px;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border-radius: 50%;
    transition: color 160ms ease, background-color 160ms ease;
    place-items: center;
}

.fb-782234c5-toolbar-btn:hover,
.fb-782234c5-toolbar-btn:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.fb-782234c5-toolbar-btn:disabled {
    cursor: default;
    opacity: .3;
}

.fb-782234c5-page-indicator {
    display: flex;
    gap: 5px;
    align-items: center;
    height: 38px;
    color: var(--fb-control-color);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
}

.fb-782234c5-page-picker {
    width: 42px;
    height: 30px;
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    outline: none;
    -moz-appearance: textfield;
}

.fb-782234c5-page-picker:focus {
    border-color: rgba(255, 255, 255, 0.5);
}

.fb-782234c5-page-picker::-webkit-outer-spin-button,
.fb-782234c5-page-picker::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.fb-782234c5-zoom-value {
    min-width: 38px;
    color: var(--fb-control-color);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    text-align: center;
}

.fb-782234c5-thumbs-drawer {
    position: absolute;
    right: 16px;
    bottom: 80px;
    left: 16px;
    z-index: 26;
    display: flex;
    align-items: center;
    height: 118px;
    padding: 10px;
    border-radius: 10px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 200ms ease, transform 240ms cubic-bezier(.2, .8, .2, 1), visibility 200ms;
}

.fb-782234c5-thumbs-drawer.hidden {
    opacity: 0;
    transform: translateY(12px);
    visibility: hidden;
    pointer-events: none;
}

.fb-782234c5-thumbs-container {
    display: flex;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 1px 1px 4px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.fb-782234c5-thumb-item {
    position: relative;
    flex: 0 0 auto;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 4px;
    opacity: .72;
    transition: border-color 160ms ease, opacity 160ms ease, transform 160ms ease;
    aspect-ratio: var(--fb-page-ratio, 1 / 1.414);
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
}

.fb-782234c5-thumb-item:hover,
.fb-782234c5-thumb-item:focus-visible {
    opacity: 1;
    transform: translateY(-2px);
}

.fb-782234c5-thumb-item.active {
    border-color: var(--fb-accent);
    opacity: 1;
}

.fb-782234c5-thumb-item canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fb-782234c5-thumb-num {
    position: absolute;
    right: 3px;
    bottom: 3px;
    min-width: 18px;
    padding: 2px 4px;
    color: #fff;
    font-size: 9px;
    font-weight: 650;
    text-align: center;
    background: rgba(0, 0, 0, .68);
    border-radius: 3px;
}

.fb-782234c5-container:fullscreen {
    width: 100vw;
    height: 100vh !important;
    border-radius: 0;
}

@media (max-width: 767px) {
    .fb-782234c5-stage { padding: 18px 12px 72px; }
    .fb-782234c5-nav-btn { width: 40px; height: 40px; }
    .fb-782234c5-nav-btn.prev { left: 8px; }
    .fb-782234c5-nav-btn.next { right: 8px; }
    .fb-782234c5-page-status { bottom: 14px; left: 12px; }
    .fb-782234c5-tool-toggle { right: 12px; bottom: 12px; }
    .fb-782234c5-toolbar {
        right: 68px;
        bottom: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        transform: translateY(10px) scale(.98);
    }
    .fb-782234c5-toolbar.is-open { transform: translateY(0) scale(1); }
    .fb-782234c5-thumbs-drawer { right: 12px; bottom: 72px; left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .fb-782234c5-spinner { animation-duration: 1.6s; }
    .fb-782234c5-page-wrapper,
    .fb-782234c5-book,
    .fb-782234c5-toolbar,
    .fb-782234c5-thumbs-drawer,
    .fb-782234c5-page canvas {
        transition-duration: 1ms !important;
    }
    .fb-782234c5-page.is-rendering::before { animation: none; }
}

/* Clearly visible page navigation, including touch and keyboard use. */
.fb-782234c5-wrapper .fb-782234c5-nav-btn { width: 48px; height: 48px; color: #162522; background: #ffffff; border: 2px solid #162522; opacity: 1; box-shadow: 0 3px 14px rgba(0,0,0,.35); }
.fb-782234c5-wrapper .fb-782234c5-nav-btn:hover:not(:disabled),
.fb-782234c5-wrapper .fb-782234c5-nav-btn:focus-visible:not(:disabled) { color: #ffffff; background: #162522; border-color: #ffffff; }
.fb-782234c5-wrapper .fb-782234c5-nav-btn:focus-visible { outline: 3px solid #89a8bb; outline-offset: 3px; }
.fb-782234c5-wrapper .fb-782234c5-nav-btn:disabled { opacity: .35; box-shadow: none; }
.fb-782234c5-nav-btn svg { display: block; pointer-events: none; }
