.bn-flip-host {
    clear: both;
    width: 0;
    height: 0;
    overflow: hidden;
}

.bn-flip-shell[hidden] {
    display: none !important;
}

.bn-flip-shell {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 24px;
    color: #222;
    isolation: isolate;
}

.bn-flip-shell.is-opening,
.bn-flip-shell.is-closing {
    pointer-events: none;
}

.bn-flip-backdrop {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 1;
    transition: opacity .38s ease-out;
}

.bn-flip-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: calc(100% - 16px);
    max-width: 1170px;
    height: min(760px, calc(100vh - 48px));
    height: min(760px, calc(100dvh - 48px));
    min-height: min(600px, calc(100vh - 48px));
    min-height: min(600px, calc(100dvh - 48px));
    margin: 0;
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 22px;
    background: rgba(122,122,122,.45);
    box-shadow: 0 30px 82px rgba(2, 8, 18, .28), inset 0 1px 0 rgba(255,255,255,.60), inset 0 -1px 0 rgba(255,255,255,.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    outline: 0 !important;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1, 1);
    transform-origin: center;
    transition: opacity .3s ease-out, transform .52s cubic-bezier(.22, .74, .18, 1);
    will-change: opacity, transform;
}

/* Prime the newly unhidden shell before any geometry is read.  The dialog keeps
   its final dimensions and transform for measurement, but neither it nor the
   backdrop can paint a visible first frame. */
.bn-flip-shell.is-preparing .bn-flip-backdrop,
.bn-flip-shell.is-preparing .bn-flip-dialog {
    opacity: 0;
    transition: none;
}

/* After measurement, is-opening applies the cover-origin transform.  Keep that
   start frame transition-free both before and after is-preparing is removed so
   the browser has two identical, fully committed invisible frames. */
.bn-flip-shell.is-opening:not(.is-animating) .bn-flip-backdrop,
.bn-flip-shell.is-opening:not(.is-animating) .bn-flip-dialog {
    transition: none;
}

.bn-flip-shell.is-opening:not(.is-animating) .bn-flip-backdrop,
.bn-flip-shell.is-closing.is-animating .bn-flip-backdrop {
    opacity: 0;
}

.bn-flip-shell.is-opening:not(.is-animating) .bn-flip-dialog,
.bn-flip-shell.is-closing.is-animating .bn-flip-dialog {
    opacity: 0;
    transform: translate3d(var(--bn-flip-origin-x, 0), var(--bn-flip-origin-y, 34px), 0) scale(var(--bn-flip-origin-scale-x, .35), var(--bn-flip-origin-scale-y, .35));
}

/* Start the cover flight and viewer transition together.  Closing keeps the
   approved V7 timing and geometry unchanged. */
.bn-flip-shell.is-opening.is-animating .bn-flip-backdrop,
.bn-flip-shell.is-opening.is-animating .bn-flip-dialog {
    transition-delay: 0s;
}

.bn-flip-flight {
    position: fixed;
    z-index: 2;
    display: block;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    pointer-events: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: fill;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1, 1);
    transform-origin: left top;
    transition: opacity .3s ease-out, transform .52s cubic-bezier(.22, .74, .18, 1);
    will-change: opacity, transform;
}

.bn-flip-shell.is-opening.is-animating .bn-flip-flight,
.bn-flip-shell.is-closing:not(.is-animating) .bn-flip-flight {
    opacity: 0;
    transform: translate3d(var(--bn-flip-flight-x, 0), var(--bn-flip-flight-y, 0), 0) scale(var(--bn-flip-flight-scale-x, 1), var(--bn-flip-flight-scale-y, 1));
}

.bn-flip-header {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(255,255,255,.42);
}

.bn-flip-heading {
    margin: 0;
    padding: 0;
    color: #222;
    font-family: PlayfairBold, Georgia, serif;
    font-size: 28px;
    line-height: 1.25;
    text-align: left;
    background: none;
}

.bn-flip-status {
    margin: 5px 0 0;
    color: #69717c;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    padding: 0;
}

.bn-flip-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.bn-flip-action,
.bn-flip-close,
.bn-flip-arrow,
.bn-flip-thumb,
.bn-flip-trigger {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
}

.bn-flip-action {
    min-height: 40px;
    padding: 8px 14px;
    color: #fff;
    background: #222;
    font-size: 14px;
    text-transform: uppercase;
}

.bn-flip-action:hover,
.bn-flip-action:focus-visible {
    background: #cb3340;
}

.bn-flip-action:focus,
.bn-flip-close:focus,
.bn-flip-arrow:focus,
.bn-flip-thumb:focus,
.bn-flip-trigger:focus {
    outline: 0 !important;
    box-shadow: none;
}

.bn-flip-action:focus-visible,
.bn-flip-close:focus-visible,
.bn-flip-arrow:focus-visible,
.bn-flip-thumb:focus-visible,
.bn-flip-trigger:focus-visible {
    outline: 0 !important;
    outline-offset: 0 !important;
}

.bn-flip-close {
    width: 40px;
    height: 40px;
    padding: 0;
    color: #fff;
    background: #cb3340;
    font-size: 32px;
    font-weight: 300;
    line-height: 36px;
}

.bn-flip-close:hover,
.bn-flip-close:focus-visible {
    color: #fff;
    background: #a92733;
}

.bn-flip-stage-wrap {
    position: relative;
    flex: 1 1 520px;
    height: 520px;
    min-height: 0;
}

.bn-flip-stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    box-shadow: none;
    outline: 0 !important;
}

.bn-flip-slide {
    position: absolute;
    inset: 25px 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 1;
    transform: translateX(0);
    transition: opacity .28s ease, transform .38s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
}

.bn-flip-slide.is-entering-next {
    opacity: 0;
    transform: translateX(16%);
}

.bn-flip-slide.is-entering-prev {
    opacity: 0;
    transform: translateX(-16%);
}

.bn-flip-slide.is-leaving-next {
    opacity: 0;
    transform: translateX(-16%);
}

.bn-flip-slide.is-leaving-prev {
    opacity: 0;
    transform: translateX(16%);
}

.bn-flip-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 46px;
    height: 70px;
    margin-top: -35px;
    padding: 0;
    color: #777;
    background: rgba(255, 255, 255, .85);
    font-size: 54px;
    font-weight: 300;
    line-height: 60px;
}

.bn-flip-arrow:hover,
.bn-flip-arrow:focus-visible {
    color: #fff;
    background: #cb3340;
}

.bn-flip-arrow-prev {
    left: 0;
}

.bn-flip-arrow-next {
    right: 0;
}

.bn-flip-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
}

.bn-flip-image,
.bn-flip-video {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.bn-flip-video {
    width: 100%;
    max-width: 900px;
    background: #000;
}

.bn-flip-info {
    display: grid;
    grid-template-columns: minmax(220px, 36%) minmax(0, 1fr);
    align-items: center;
    gap: 45px;
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

.bn-flip-info-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.bn-flip-info-image {
    display: block;
    max-width: 100%;
    max-height: 430px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.bn-flip-info-copy {
    min-width: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.bn-flip-info-title {
    margin: 0 0 12px;
    padding: 0;
    color: #222;
    font-family: PlayfairBold, Georgia, serif;
    font-size: 31px;
    line-height: 1.25;
    text-align: left;
    background: none;
}

.bn-flip-author {
    margin: 0 0 22px;
    font-family: Academy, Georgia, serif;
    font-size: 20px;
    font-style: italic;
    padding: 0;
}

.bn-flip-author-link {
    color: #cb3340;
    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
    font-weight: 700;
}

.bn-flip-description {
    margin: 0 0 12px;
    font-family: Academy, Georgia, serif;
    font-size: 20px;
    font-style: italic;
    line-height: 1.5;
    padding: 0;
}

.bn-flip-book-link {
    margin-top: 10px !important;
}

.bn-flip-thumbs {
    display: flex;
    gap: 8px;
    width: 100%;
    padding: 12px 0 4px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-color: #888 #ddd;
}

.bn-flip-thumb {
    position: relative;
    flex: 0 0 128px;
    width: 128px;
    height: 82px;
    padding: 4px 3px 7px;
    overflow: hidden;
    border: 0;
    background: #ddd;
    opacity: .68;
}

.bn-flip-thumb:hover,
.bn-flip-thumb:focus-visible,
.bn-flip-thumb.is-active {
    background: #fff;
    opacity: 1;
}

.bn-flip-thumb.is-active::after {
    position: absolute;
    right: 28%;
    bottom: 0;
    left: 28%;
    height: 3px;
    background: #cb3340;
    content: "";
}

.bn-flip-thumb-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bn-flip-trigger {
    padding: 0;
    background: transparent;
}

.bn-flip-trigger:focus-visible {
    outline: 0 !important;
    box-shadow: none !important;
}

[data-bn-flip-programmatic-focus]:focus,
[data-bn-flip-programmatic-focus]:focus-visible {
    outline: 0 !important;
    box-shadow: none !important;
}

.bn-flip-close[data-bn-flip-programmatic-focus]:focus-visible {
    color: #fff;
    background: #cb3340;
}

.bn-flip-trigger[aria-expanded="true"] .bn-flip-look-inside {
    opacity: 0;
    visibility: hidden;
}

body.bn-flip-open .bn-flip-card-active .bn-flip-look-inside,
body.bn-flip-open .bn-flip-card-active .pushcorner {
    display: none;
}

body.bn-flip-open {
    overflow: hidden;
}

.bn-flip-shell.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 6000;
    height: 100vh;
    padding: 0;
    overflow: hidden;
}

.bn-flip-shell.is-fullscreen .bn-flip-dialog,
.bn-flip-dialog:fullscreen,
.bn-flip-dialog:-webkit-full-screen {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    min-height: 0;
    padding: 18px;
    overflow: hidden;
    color: #20242b;
    background: linear-gradient(145deg, rgba(252,253,255,.96), rgba(238,244,250,.90));
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: blur(30px) saturate(1.25);
    -webkit-backdrop-filter: blur(30px) saturate(1.25);
    opacity: 1;
    transform: none !important;
}

.bn-flip-shell.is-fullscreen .bn-flip-stage-wrap,
.bn-flip-dialog:fullscreen .bn-flip-stage-wrap,
.bn-flip-dialog:-webkit-full-screen .bn-flip-stage-wrap {
    flex: 1 1 auto;
    min-height: 0;
}

.bn-flip-shell.is-fullscreen .bn-flip-stage,
.bn-flip-dialog:fullscreen .bn-flip-stage,
.bn-flip-dialog:-webkit-full-screen .bn-flip-stage {
    height: 100%;
    min-height: 0;
}

.bn-flip-shell.is-fullscreen .bn-flip-slide,
.bn-flip-dialog:fullscreen .bn-flip-slide,
.bn-flip-dialog:-webkit-full-screen .bn-flip-slide {
    inset: 18px 64px;
}

.bn-flip-shell.is-fullscreen .bn-flip-media,
.bn-flip-dialog:fullscreen .bn-flip-media,
.bn-flip-dialog:-webkit-full-screen .bn-flip-media,
.bn-flip-shell.is-fullscreen .bn-flip-info,
.bn-flip-dialog:fullscreen .bn-flip-info,
.bn-flip-dialog:-webkit-full-screen .bn-flip-info {
    width: 100%;
    height: 100%;
    max-width: none;
}

.bn-flip-shell.is-fullscreen .bn-flip-image,
.bn-flip-dialog:fullscreen .bn-flip-image,
.bn-flip-dialog:-webkit-full-screen .bn-flip-image,
.bn-flip-shell.is-fullscreen .bn-flip-video,
.bn-flip-dialog:fullscreen .bn-flip-video,
.bn-flip-dialog:-webkit-full-screen .bn-flip-video {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bn-flip-shell.is-fullscreen .bn-flip-info-image,
.bn-flip-dialog:fullscreen .bn-flip-info-image,
.bn-flip-dialog:-webkit-full-screen .bn-flip-info-image {
    max-height: 100%;
}

/* V35: keep the same glass atmosphere when the shell enters native fullscreen. */
.bn-flip-shell::backdrop {
    background: transparent;
}

.bn-flip-shell:fullscreen,
.bn-flip-shell:-webkit-full-screen {
    background: transparent;
}

.bn-flip-shell:fullscreen .bn-flip-backdrop,
.bn-flip-shell:-webkit-full-screen .bn-flip-backdrop {
    background: transparent;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.bn-flip-shell:fullscreen .bn-flip-dialog,
.bn-flip-shell:-webkit-full-screen .bn-flip-dialog {
    background: rgba(255,255,255,.32);
    backdrop-filter: blur(18px) saturate(1.16);
    -webkit-backdrop-filter: blur(18px) saturate(1.16);
}

@media (max-width: 767px) {
    .bn-flip-slide {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .bn-flip-info {
        gap: 25px;
    }

    .bn-flip-info-title {
        font-size: 26px;
    }

    .bn-flip-description {
        font-size: 17px;
    }
}

@media (max-width: 667px) {
    .bn-flip-look-inside {
        display: none !important;
    }

    .bn-flip-shell {
        padding: 0;
    }

    .bn-flip-dialog {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        min-height: 0;
        margin: 0;
        padding: 10px 10px 8px;
        padding: max(10px, env(safe-area-inset-top)) 10px max(8px, env(safe-area-inset-bottom));
        overflow: hidden;
        background: linear-gradient(145deg, rgba(252,253,255,.96), rgba(238,244,250,.90));
        border-radius: 0;
        box-shadow: none;
    }

    .bn-flip-header {
        flex: 0 0 auto;
        gap: 8px;
        padding-bottom: 8px;
    }

    .bn-flip-heading {
        max-width: 60vw;
        overflow: hidden;
        font-size: 18px;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bn-flip-status {
        margin-top: 2px;
        font-size: 12px;
    }

    .bn-flip-action {
        min-height: 36px;
        padding: 6px 9px;
        font-size: 11px;
    }

    .bn-flip-close {
        width: 36px;
        height: 36px;
        font-size: 28px;
        line-height: 32px;
    }

    .bn-flip-stage-wrap {
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
    }

    .bn-flip-stage {
        height: 100%;
        min-height: 0;
        padding: 0;
    }

    .bn-flip-slide,
    .bn-flip-shell.is-fullscreen .bn-flip-slide,
    .bn-flip-dialog:fullscreen .bn-flip-slide,
    .bn-flip-dialog:-webkit-full-screen .bn-flip-slide {
        inset: 8px 34px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .bn-flip-arrow {
        width: 30px;
        height: 58px;
        margin-top: -29px;
        font-size: 40px;
        line-height: 50px;
    }

    .bn-flip-media {
        height: 100%;
        min-height: 0;
    }

    .bn-flip-info {
        display: block;
        padding: 8px 0 16px;
    }

    .bn-flip-info-cover {
        float: left;
        width: 35%;
        margin: 0 16px 8px 0;
    }

    .bn-flip-info-image {
        max-height: 34vh;
    }

    .bn-flip-info-title {
        margin-bottom: 6px;
        font-size: 21px;
    }

    .bn-flip-author {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .bn-flip-description {
        margin-bottom: 9px;
        font-size: 15px;
        line-height: 1.35;
    }

    .bn-flip-book-link {
        clear: both;
        display: inline-block;
        height: auto !important;
        min-height: 42px;
        margin: 8px 0 0 !important;
        padding: 0 15px !important;
        font-size: 13px !important;
        line-height: 40px !important;
    }

    .bn-flip-thumbs {
        flex: 0 0 70px;
        padding: 5px 0 0;
    }

    .bn-flip-thumb {
        flex-basis: 128px;
        width: 128px;
        height: 62px;
    }
}

@media (max-width: 374px) {
    .bn-flip-heading {
        max-width: 48vw;
    }

    .bn-flip-info-cover {
        width: 31%;
    }

    .bn-flip-description {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bn-flip-shell *,
    .bn-flip-shell *::before,
    .bn-flip-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}


/* V37.1 adaptive glass text tones. */
.bn-flip-header-copy,.bn-flip-info-copy{transition:color .2s ease,text-shadow .2s ease}
.bn-flip-header-copy[data-bn-tone=light] .bn-flip-heading{color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.24)}
.bn-flip-header-copy[data-bn-tone=light] .bn-flip-status{color:rgba(255,255,255,.86);text-shadow:0 1px 1px rgba(0,0,0,.20)}
.bn-flip-header-copy[data-bn-tone=dark] .bn-flip-heading{color:#111;text-shadow:0 1px 1px rgba(255,255,255,.14)}
.bn-flip-header-copy[data-bn-tone=dark] .bn-flip-status{color:rgba(17,17,17,.78);text-shadow:0 1px 1px rgba(255,255,255,.14)}
.bn-flip-info-copy[data-bn-tone=light],.bn-flip-info-copy[data-bn-tone=light] .bn-flip-info-title,.bn-flip-info-copy[data-bn-tone=light] .bn-flip-author,.bn-flip-info-copy[data-bn-tone=light] .bn-flip-description,.bn-flip-info-copy[data-bn-tone=light] .bn-flip-format{color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.24)}
.bn-flip-info-copy[data-bn-tone=dark],.bn-flip-info-copy[data-bn-tone=dark] .bn-flip-info-title,.bn-flip-info-copy[data-bn-tone=dark] .bn-flip-author,.bn-flip-info-copy[data-bn-tone=dark] .bn-flip-description,.bn-flip-info-copy[data-bn-tone=dark] .bn-flip-format{color:#111;text-shadow:0 1px 1px rgba(255,255,255,.14)}
.bn-flip-info-copy[data-bn-tone=light] .bn-flip-author-link,.bn-flip-info-copy[data-bn-tone=dark] .bn-flip-author-link{color:#cb3340}


/* V37.3 temporary fixed white text. Adaptive tone rules above remain in place for later tuning. */
.bn-flip-header-copy .bn-flip-heading,.bn-flip-header-copy .bn-flip-status,
.bn-flip-info-copy,.bn-flip-info-copy .bn-flip-info-title,.bn-flip-info-copy .bn-flip-author,
.bn-flip-info-copy .bn-flip-description,.bn-flip-info-copy .bn-flip-format,.bn-flip-help{
    color:#f5f7fa!important;
    text-shadow:0 1px 1px rgba(0,0,0,.22)!important;
}
.bn-flip-info-copy .bn-flip-author-link{color:#cb3340!important;text-shadow:none!important;}

/* BrainON V39.4.7 author baseline + native reader sizing */
/* Academy italic and Arial bold have visibly different font metrics even on
   the same typographic baseline. Lower only the author-name run by 2px. */
.bn-flip-author .bn-flip-author-link {
    position: relative;
    top: 2px;
    vertical-align: baseline;
    line-height: inherit;
}
