/*
 * ==========================================================
 *    PDF NEWSLETTER / FLIPBOOK
 *    Full replacement stylesheet
 *    ==========================================================
 */

.pdf-publications,
.pdf-publications *,
.pdf-publications *::before,
.pdf-publications *::after {
    box-sizing: border-box;
}

/*
 * ==========================================================
 *    Main Container
 *    ==========================================================
 */

.pdf-publications {
    width: 100%;
    margin: 0;
    padding: 0;
}

/*
 * ==========================================================
 *    Publication Intro
 *    ==========================================================
 */

.pdf-publications__header {
    max-width: 900px;
    margin: 0 0 1.25rem;
}

.pdf-publications__header h2 {
    margin: 0 0 0.4rem;
    color: #212529;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.pdf-publications__header p:last-child {
    margin-bottom: 0;
}

.pdf-publications__eyebrow,
.pdf-viewer-panel__eyebrow {
    display: block;
    margin-bottom: 0.2rem;
    color: #5d6872;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/*
 * ==========================================================
 *    Loading / Error
 *    ==========================================================
 */

.pdf-publications-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    color: #343a40;
    background: #f5f7f9;
    border: 1px solid #d6dde2;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 700;
}

.pdf-publications-loading[hidden] {
    display: none;
}

.pdf-publications-error {
    padding: 0.85rem 1rem;
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
}

.pdf-publications-error[hidden] {
    display: none;
}

/*
 * ==========================================================
 *    Desktop Layout
 *    Viewer left / archive right
 *    ==========================================================
 */

.pdf-publications-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(250px, 24vw, 310px);
    align-items: stretch;
    gap: 1rem;
    width: 100%;
}

.pdf-publications-layout[hidden] {
    display: none;
}

/*
 * ==========================================================
 *    Viewer Panel
 *    ==========================================================
 */

.pdf-viewer-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #ccd4da;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

/*
 * ==========================================================
 *    Viewer Header
 * ==========================================================
 */

.pdf-viewer-panel__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 78px;
    padding: 1rem 1.1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
    border-bottom: 1px solid #cfd8de;
}

.pdf-viewer-panel__header::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: #005f86;
}

.pdf-viewer-panel__header>div:first-child {
    min-width: 0;
    padding-left: 0.25rem;
}

.pdf-viewer-panel__eyebrow {
    display: block;
    margin: 0 0 0.2rem;
    color: #56636d;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.pdf-viewer-panel__header h3 {
    margin: 0 0 0.22rem;
    color: #1d2a33;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.pdf-viewer-date {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.14rem 0.45rem;
    color: #3f4c55;
    background: #eef3f6;
    border: 1px solid #d4dde3;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
}

.pdf-viewer-open-pdf {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.55rem 0.8rem;
    color: #004b76;
    background: #ffffff;
    border: 1px solid #8fa4b1;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition:
        color 120ms ease,
        background-color 120ms ease,
        border-color 120ms ease,
        box-shadow 120ms ease;
}

.pdf-viewer-open-pdf:hover {
    color: #ffffff;
    background: #004b76;
    border-color: #004b76;
    text-decoration: none;
}

.pdf-viewer-open-pdf:focus-visible {
    color: #ffffff;
    background: #004b76;
    border-color: #004b76;
    outline: 3px solid #ffbf47;
    outline-offset: 3px;
}

/*
 * ==========================================================
 *    Original Header Open PDF
 *    Latest JS moves actions to the bottom toolbar.
 *    ==========================================================
 */

#pdf-viewer-open-pdf[hidden] {
    display: none !important;
}

.pdf-viewer-actions:empty {
    display: none;
}

/*
 * ==========================================================
 *    Flipbook Stage
 *    ==========================================================
 */

.pdf-flipbook-stage {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: clamp(430px, 52vw, 560px);
    min-height: 430px;
    max-height: 560px;
    padding: 1rem clamp(2.5rem, 4vw, 3.5rem);
    overflow: hidden;
    background: linear-gradient(135deg, #e8edf1 0%, #f7f9fa 50%, #e9eef2 100%);
}

/* subtle reader surface */

.pdf-flipbook-stage::before {
    content: "";
    position: absolute;
    inset: 7% 7% 6%;
    z-index: 0;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    pointer-events: none;
}

/*
 * ==========================================================
 *    Zoom / Position Shell
 *    JS applies translateX + scale here.
 *    ==========================================================
 */

.pdf-flipbook-zoom-shell {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    will-change: transform;
    transition: transform 480ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/*
 * ==========================================================
 *    Flipbook
 *    ==========================================================
 */

.pdf-flipbook {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 1095px;
    margin: 0 auto;
}

/*
 * ==========================================================
 *    PDF Page
 *    ==========================================================
 */

.pdf-flipbook-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.pdf-flipbook-page canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/*
 * ==========================================================
 *    Loading Overlay
 *    ==========================================================
 */

.pdf-flipbook-loading {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 1rem;
    color: #343a40;
    background: rgba(238, 242, 245, 0.97);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

.pdf-flipbook-loading[hidden] {
    display: none;
}

.pdf-flipbook-loading p {
    margin-bottom: 0.6rem;
}

.pdf-flipbook-loading p:last-child {
    margin-bottom: 0;
}

.pdf-flipbook-loading a {
    color: #005a85;
    font-weight: 700;
    text-decoration: underline;
}

.pdf-flipbook-loading a:hover,
.pdf-flipbook-loading a:focus {
    color: #003d5b;
}

/*
 * ==========================================================
 *    Bottom Reader Toolbar
 *    ==========================================================
 */

.pdf-flipbook-controls.pdf-reader-toolbar,
.pdf-reader-toolbar {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(95px, 1fr) auto minmax(125px, 1fr);
    align-items: center;
    gap: 0.75rem;
    min-height: 54px;
    padding: 0.5rem 0.75rem;
    background: #ffffff;
    border-top: 1px solid #d7dde2;
}

/*
 * ==========================================================
 *    Toolbar Left - Page Status
 *    ==========================================================
 */

.pdf-reader-toolbar__status {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.pdf-flipbook-page-status {
    color: #4d5760;
    font-size: 0.73rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

/*
 * ==========================================================
 *    Toolbar Center - Zoom
 *    ==========================================================
 */

.pdf-reader-toolbar__zoom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    overflow: hidden;
    background: #f5f7f8;
    border: 1px solid #c5cdd3;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/*
 * ==========================================================
 *    Toolbar Right - Reader Actions
 *    ==========================================================
 */

.pdf-reader-toolbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    min-width: 0;
}

/*
 * ==========================================================
 *    Shared Toolbar Icon Button / Link
 *    ==========================================================
 */

.pdf-reader-icon-button {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    color: #004b76;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 5px;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.pdf-reader-icon-button i {
    display: block;
    pointer-events: none;
}

.pdf-reader-icon-button:hover {
    color: #ffffff;
    background: #004b76;
    border-color: #004b76;
    text-decoration: none;
}

.pdf-reader-icon-button:focus {
    text-decoration: none;
}

.pdf-reader-icon-button:focus-visible {
    position: relative;
    z-index: 5;
    color: #ffffff;
    background: #004b76;
    border-color: #004b76;
    outline: 3px solid #ffbf47;
    outline-offset: 2px;
}

.pdf-reader-icon-button:disabled {
    color: #7f8a92;
    background: transparent;
    border-color: transparent;
    opacity: 0.5;
    cursor: not-allowed;
}

/*
 * ==========================================================
 *    Zoom Minus / Plus
 *    ==========================================================
 */

.pdf-reader-toolbar__zoom .pdf-reader-icon-button {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.pdf-reader-toolbar__zoom .pdf-reader-icon-button:hover {
    color: #ffffff;
    background: #004b76;
}

.pdf-reader-toolbar__zoom .pdf-reader-icon-button:focus-visible {
    position: relative;
    z-index: 5;
    color: #ffffff;
    background: #004b76;
    outline: 3px solid #ffbf47;
    outline-offset: -3px;
}

.pdf-reader-toolbar__zoom .pdf-reader-icon-button:disabled {
    color: #7d878e;
    background: #f5f7f8;
    opacity: 0.5;
}

/*
 * ==========================================================
 *    Zoom Percentage / Reset
 *    ==========================================================
 */

.pdf-reader-zoom-level {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 36px;
    margin: 0;
    padding: 0 0.45rem;
    color: #343a40;
    background: #ffffff;
    border: 0;
    border-right: 1px solid #c5cdd3;
    border-left: 1px solid #c5cdd3;
    border-radius: 0;
    font: inherit;
    font-size: 0.71rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: color 120ms ease, background-color 120ms ease;
}

.pdf-reader-zoom-level:hover {
    color: #003f63;
    background: #edf4f7;
}

.pdf-reader-zoom-level:focus-visible {
    z-index: 5;
    color: #212529;
    background: #ffffff;
    outline: 3px solid #ffbf47;
    outline-offset: -3px;
}

/*
 * ==========================================================
 *    Right-Side Action Buttons
 *    Open PDF / Download / Fullscreen
 *    ==========================================================
 */

.pdf-reader-toolbar__actions .pdf-reader-icon-button {
    background: #ffffff;
    border-color: #bcc6cd;
}

.pdf-reader-toolbar__actions .pdf-reader-icon-button:hover {
    color: #ffffff;
    background: #004b76;
    border-color: #004b76;
}

.pdf-reader-toolbar__actions .pdf-reader-icon-button:focus-visible {
    color: #ffffff;
    background: #004b76;
    border-color: #004b76;
}

/*
 * ==========================================================
 *    Fullscreen Button
 *    Last action gets slight emphasis
 *    ==========================================================
 */

.pdf-reader-toolbar__actions .pdf-reader-icon-button:last-child {
    color: #ffffff;
    background: #004b76;
    border-color: #004b76;
}

.pdf-reader-toolbar__actions .pdf-reader-icon-button:last-child:hover {
    color: #ffffff;
    background: #003653;
    border-color: #003653;
}

.pdf-reader-toolbar__actions .pdf-reader-icon-button:last-child:focus-visible {
    background: #003653;
    border-color: #003653;
}

/*
 * ==========================================================
 *    Reader Tooltip
 *    JS positions this dynamically.
 *    ==========================================================
 */

#pdf-control-tooltip {
    position: fixed;
    z-index: 9999999;
    max-width: 220px;
    padding: 0.4rem 0.6rem;
    color: #ffffff;
    background: #212529;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

#pdf-control-tooltip[hidden] {
    display: none;
}

/*
 * ==========================================================
 *    Right-Side Publication Archive
 * ==========================================================
 */

.pdf-publication-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    max-height: 680px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #c9d3da;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(25, 45, 60, 0.08);
}

/*
 * ==========================================================
 *    Archive Header
 * ==========================================================
 */

.pdf-publication-sidebar__header {
    position: relative;
    flex: 0 0 auto;
    padding: 1rem 1rem 0.9rem;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f6 100%);
    border-bottom: 1px solid #ccd6dd;
}

.pdf-publication-sidebar__header::after {
    content: "";
    position: absolute;
    right: 1rem;
    bottom: -1px;
    left: 1rem;
    height: 2px;
    background: #005f86;
    opacity: 0.18;
}

.pdf-publication-sidebar__header h3 {
    margin: 0 0 0.25rem;
    color: #1d2a33;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.pdf-publication-sidebar__header p {
    margin: 0;
    color: #56636d;
    font-size: 0.75rem;
    line-height: 1.45;
}

/*
 * ==========================================================
 *    Scrollable Archive List
 * ==========================================================
 */

.pdf-publication-list {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.65rem;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fbfcfd;
    scrollbar-width: thin;
    scrollbar-color: #93a2ad #edf1f4;
    overscroll-behavior: contain;
}

.pdf-publication-list::-webkit-scrollbar {
    width: 8px;
}

.pdf-publication-list::-webkit-scrollbar-track {
    background: #edf1f4;
}

.pdf-publication-list::-webkit-scrollbar-thumb {
    background: #93a2ad;
    border: 2px solid #edf1f4;
    border-radius: 999px;
}

.pdf-publication-list::-webkit-scrollbar-thumb:hover {
    background: #6f7d87;
}

/*
 * ==========================================================
 *    Archive Item
 * ==========================================================
 */

.pdf-publication-item {
    position: relative;
    margin: 0 0 0.5rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d7dfe5;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(27, 47, 61, 0.03);
    transition:
        border-color 120ms ease,
        box-shadow 120ms ease,
        transform 120ms ease;
}

.pdf-publication-item:last-child {
    margin-bottom: 0;
}

.pdf-publication-item:hover {
    border-color: #aab9c3;
    box-shadow: 0 3px 9px rgba(27, 47, 61, 0.07);
}

.pdf-publication-item.is-active {
    background: #eef6fa;
    border-color: #005f86;
    box-shadow:
        inset 4px 0 0 #005f86,
        0 3px 10px rgba(0, 95, 134, 0.08);
}

/*
 * ==========================================================
 *    Archive Select Button
 * ==========================================================
 */

.pdf-publication-item__select {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    gap: 0.65rem;
    width: 100%;
    min-height: 64px;
    margin: 0;
    padding: 0.75rem;
    color: #1d2a33;
    background: transparent;
    border: 0;
    border-radius: 7px;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 120ms ease;
}

.pdf-publication-item__select:hover {
    background: #f2f7fa;
}

.pdf-publication-item.is-active .pdf-publication-item__select {
    background: transparent;
}

.pdf-publication-item__select:focus-visible {
    position: relative;
    z-index: 3;
    outline: 3px solid #ffbf47;
    outline-offset: -3px;
}

/*
 * ==========================================================
 *    Archive File Icon
 * ==========================================================
 */

.pdf-publication-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #8b1730;
    background: #fff0f3;
    border: 1px solid #f0ccd4;
    border-radius: 8px;
    font-size: 0.88rem;
    transition:
        color 120ms ease,
        background-color 120ms ease,
        border-color 120ms ease,
        transform 120ms ease,
        box-shadow 120ms ease;
}

/* Hover anywhere on the publication item */
.pdf-publication-item:hover .pdf-publication-item__icon {
    color: #ffffff;
    background: #005f86;
    border-color: #005f86;
    box-shadow: 0 2px 6px rgba(0, 95, 134, 0.22);
    transform: translateY(-1px);
}

/* Keyboard equivalent of hover */
.pdf-publication-item:focus-within .pdf-publication-item__icon {
    color: #ffffff;
    background: #005f86;
    border-color: #005f86;
    box-shadow: 0 2px 6px rgba(0, 95, 134, 0.22);
}

/* Active/current publication remains blue */
.pdf-publication-item.is-active .pdf-publication-item__icon {
    color: #ffffff;
    background: #005f86;
    border-color: #005f86;
    box-shadow: none;
    transform: none;
}

/* Keep active publication blue even while hovered/focused */
.pdf-publication-item.is-active:hover .pdf-publication-item__icon,
.pdf-publication-item.is-active:focus-within .pdf-publication-item__icon {
    color: #ffffff;
    background: #005f86;
    border-color: #005f86;
    box-shadow: 0 2px 6px rgba(0, 95, 134, 0.2);
    transform: none;
}

/*
 * ==========================================================
 *    Archive File Icon
 * ==========================================================
 */

.pdf-publication-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #8b1730;
    background: #fff0f3;
    border: 1px solid #f0ccd4;
    border-radius: 8px;
    font-size: 0.88rem;
    transition:
        color 120ms ease,
        background-color 120ms ease,
        border-color 120ms ease,
        transform 120ms ease,
        box-shadow 120ms ease;
}

/* Hover anywhere on the publication item */
.pdf-publication-item:hover .pdf-publication-item__icon {
    color: #ffffff;
    background: #005f86;
    border-color: #005f86;
    box-shadow: 0 2px 6px rgba(0, 95, 134, 0.22);
    transform: translateY(-1px);
}

/* Keyboard equivalent of hover */
.pdf-publication-item:focus-within .pdf-publication-item__icon {
    color: #ffffff;
    background: #005f86;
    border-color: #005f86;
    box-shadow: 0 2px 6px rgba(0, 95, 134, 0.22);
}

/* Active/current publication remains blue */
.pdf-publication-item.is-active .pdf-publication-item__icon {
    color: #ffffff;
    background: #005f86;
    border-color: #005f86;
    box-shadow: none;
    transform: none;
}

/* Keep active publication blue even while hovered/focused */
.pdf-publication-item.is-active:hover .pdf-publication-item__icon,
.pdf-publication-item.is-active:focus-within .pdf-publication-item__icon {
    color: #ffffff;
    background: #005f86;
    border-color: #005f86;
    box-shadow: 0 2px 6px rgba(0, 95, 134, 0.2);
    transform: none;
}

/*
 * ==========================================================
 *    Archive Text
 * ==========================================================
 */

.pdf-publication-item__content {
    min-width: 0;
}

.pdf-publication-item__title {
    display: block;
    color: #1d2a33;
    font-size: 0.79rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.pdf-publication-item__date {
    display: block;
    margin-top: 0.2rem;
    color: #52606a;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.3;
}

/*
 * ==========================================================
 *    Latest Badge
 * ==========================================================
 */

.pdf-publication-item__latest {
    display: inline-flex;
    align-items: center;
    margin-top: 0.35rem;
    padding: 0.13rem 0.45rem;
    color: #4d3800;
    background: #fff0b8;
    border: 1px solid #c69100;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    line-height: 1.3;
    text-transform: uppercase;
}

/*
 * ==========================================================
 *    Sidebar Subscription CTA
 * ==========================================================
 */

.pdf-publication-sidebar__subscribe {
    flex: 0 0 auto;
    padding: 0.9rem 1rem 1rem;
    background: linear-gradient(180deg, #fffaf1 0%, #fff5e5 100%);
    border-top: 1px solid #decba1;
    text-align: left;
}

.pdf-publication-sidebar__subscribe-label {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 0 0 0.65rem;
    color: #45371f;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.45;
}

.pdf-publication-sidebar__subscribe-label i {
    flex: 0 0 auto;
    margin-top: 0.08rem;
    color: #7a1731;
    font-size: 0.9rem;
}

.pdf-publication-sidebar__subscribe p {
    margin: 0;
}

.pdf-publication-sidebar__subscribe .btn-maroon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.5rem 0.9rem !important;
    color: #ffffff !important;
    background: #7a1731;
    border: 1px solid #651227;
    border-radius: 6px !important;
    box-shadow: 0 2px 5px rgba(90, 18, 39, 0.14);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    transition:
        background-color 120ms ease,
        border-color 120ms ease,
        box-shadow 120ms ease,
        transform 120ms ease;
}

.pdf-publication-sidebar__subscribe .btn-maroon:hover {
    color: #ffffff !important;
    background: #641228;
    border-color: #531020;
    box-shadow: 0 4px 10px rgba(90, 18, 39, 0.18);
    text-decoration: none !important;
    transform: translateY(-1px);
}

.pdf-publication-sidebar__subscribe .btn-maroon:focus-visible {
    color: #ffffff !important;
    background: #641228;
    border-color: #531020;
    outline: 3px solid #ffbf47;
    outline-offset: 3px;
    box-shadow: none;
}

/*
 * ==========================================================
 *    Native Fullscreen
 *    ==========================================================
 */

.pdf-viewer-panel:fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border: 0;
    border-radius: 0;
    background: #e8edf1;
}

/*
 * ==========================================================
 *    CSS Fullscreen Fallback
 *    ==========================================================
 */

.pdf-viewer-panel.is-css-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 999999;
    width: 100vw;
    height: 100vh;
    max-width: none;
    border: 0;
    border-radius: 0;
    background: #e8edf1;
}

body.pdf-fullscreen-fallback {
    overflow: hidden;
}

/*
 * ==========================================================
 *    Fullscreen Header
 *    ==========================================================
 */

.pdf-viewer-panel:fullscreen .pdf-viewer-panel__header,
.pdf-viewer-panel.is-css-fullscreen .pdf-viewer-panel__header {
    flex: 0 0 auto;
    min-height: 58px;
    padding: 0.55rem 1rem;
    background: #ffffff;
}

/*
 * ==========================================================
 *    Fullscreen Flipbook Stage
 *    ==========================================================
 */

.pdf-viewer-panel:fullscreen .pdf-flipbook-stage,
.pdf-viewer-panel.is-css-fullscreen .pdf-flipbook-stage {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0.75rem 5rem;
    background: linear-gradient(135deg, #dde4e9, #f2f5f7);
}

/*
 * ==========================================================
 *    Fullscreen Book
 *    ==========================================================
 */

.pdf-viewer-panel:fullscreen .pdf-flipbook,
.pdf-viewer-panel.is-css-fullscreen .pdf-flipbook {
    width: 100%;
    height: 100%;
    max-width: 1700px;
}

/*
 * ==========================================================
 *    Fullscreen Toolbar
 *    ==========================================================
 */

.pdf-viewer-panel:fullscreen .pdf-reader-toolbar,
.pdf-viewer-panel.is-css-fullscreen .pdf-reader-toolbar {
    flex: 0 0 auto;
    min-height: 58px;
    padding: 0.55rem 1rem;
    background: #ffffff;
    border-top: 1px solid #cbd3d9;
}

.pdf-viewer-panel:fullscreen .pdf-reader-icon-button,
.pdf-viewer-panel.is-css-fullscreen .pdf-reader-icon-button {
    width: 42px;
    height: 42px;
    font-size: 1rem;
}

.pdf-viewer-panel:fullscreen .pdf-reader-toolbar__zoom .pdf-reader-icon-button,
.pdf-viewer-panel.is-css-fullscreen .pdf-reader-toolbar__zoom .pdf-reader-icon-button {
    width: 40px;
    height: 40px;
}

.pdf-viewer-panel:fullscreen .pdf-reader-zoom-level,
.pdf-viewer-panel.is-css-fullscreen .pdf-reader-zoom-level {
    min-width: 64px;
    height: 40px;
    font-size: 0.76rem;
}

/*
 * ==========================================================
 *    Tablet
 *    ==========================================================
 */

@media (max-width: 991.98px) {
    .pdf-publications-layout {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 250px);
        gap: 0.85rem;
    }

    .pdf-flipbook-stage {
        height: clamp(390px, 55vw, 500px);
        min-height: 390px;
        max-height: 500px;
        padding: 0.75rem clamp(2.25rem, 4vw, 3rem);
    }

    .pdf-publication-sidebar {
        max-height: 620px;
    }

    .pdf-reader-toolbar {
        grid-template-columns: minmax(75px, 1fr) auto minmax(110px, 1fr);
        gap: 0.5rem;
        padding: 0.45rem 0.6rem;
    }

    .pdf-reader-icon-button {
        width: 36px;
        height: 36px;
    }

    .pdf-reader-toolbar__zoom .pdf-reader-icon-button {
        width: 34px;
        height: 34px;
    }

    .pdf-reader-zoom-level {
        min-width: 54px;
        height: 34px;
    }
}

/*
 * ==========================================================
 *    Mobile
 *    ==========================================================
 */

@media (max-width: 767.98px) {
    .pdf-publications-layout {
        grid-template-columns: 1fr;
    }

    .pdf-viewer-panel__header {
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
    }

    .pdf-flipbook-stage {
        height: clamp(360px, 112vw, 500px);
        min-height: 360px;
        max-height: 500px;
        padding: 0.5rem clamp(0.75rem, 3vw, 1.25rem);
    }

    /*
     * The JS intentionally does not horizontally shift
     *        the open book on mobile.
     */

    .pdf-flipbook-zoom-shell {
        transform-origin: center center;
    }

    /*
     * ------------------------------------------
     *        Mobile Toolbar
     *        ------------------------------------------
     */

    .pdf-reader-toolbar {
        grid-template-columns: auto 1fr auto;
        gap: 0.35rem;
        min-height: 50px;
        padding: 0.4rem 0.45rem;
    }

    .pdf-reader-toolbar__zoom {
        justify-self: center;
    }

    .pdf-reader-toolbar__actions {
        gap: 0.1rem;
    }

    .pdf-reader-icon-button {
        width: 34px;
        height: 34px;
        font-size: 0.82rem;
    }

    .pdf-reader-toolbar__zoom .pdf-reader-icon-button {
        width: 32px;
        height: 32px;
    }

    .pdf-reader-zoom-level {
        min-width: 48px;
        height: 32px;
        padding: 0 0.25rem;
        font-size: 0.68rem;
    }

    .pdf-flipbook-page-status {
        font-size: 0.67rem;
    }

    .pdf-publication-sidebar__subscribe {
        padding: 0.75rem;
    }

    .pdf-publication-sidebar__subscribe-label {
        font-size: 0.7rem;
    }

    .pdf-publication-sidebar__subscribe .btn-maroon {
        min-height: 32px;
        font-size: 0.72rem;
    }

    /*
     * ------------------------------------------
     *        Archive Below Viewer
     *        ------------------------------------------
     */

    .pdf-publication-sidebar {
        height: auto;
        max-height: 360px;
    }

    .pdf-publication-list {
        max-height: 290px;
    }

    /*
     * ------------------------------------------
     *        Mobile Fullscreen
     *        ------------------------------------------
     */

    .pdf-viewer-panel:fullscreen .pdf-flipbook-stage,
    .pdf-viewer-panel.is-css-fullscreen .pdf-flipbook-stage {
        height: auto;
        min-height: 0;
        padding: 0.35rem 1rem;
    }

    .pdf-viewer-panel:fullscreen .pdf-viewer-panel__header,
    .pdf-viewer-panel.is-css-fullscreen .pdf-viewer-panel__header {
        min-height: auto;
        padding: 0.45rem 0.7rem;
    }

    .pdf-viewer-panel:fullscreen .pdf-reader-toolbar,
    .pdf-viewer-panel.is-css-fullscreen .pdf-reader-toolbar {
        min-height: 52px;
        padding: 0.4rem 0.5rem;
    }
}

/*
 * ==========================================================
 *    Small Mobile
 *    ==========================================================
 */

@media (max-width: 480px) {
    .pdf-flipbook-stage {
        height: clamp(330px, 118vw, 430px);
        min-height: 330px;
        max-height: 430px;
        padding: 0.35rem 0.5rem;
    }

    .pdf-reader-toolbar {
        grid-template-columns: auto 1fr auto;
        gap: 0.2rem;
        padding: 0.35rem;
    }

    .pdf-reader-toolbar__status {
        max-width: 62px;
    }

    .pdf-flipbook-page-status {
        white-space: normal;
        line-height: 1.1;
    }

    .pdf-reader-icon-button {
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
    }

    .pdf-reader-toolbar__zoom .pdf-reader-icon-button {
        width: 30px;
        height: 30px;
    }

    .pdf-reader-zoom-level {
        min-width: 44px;
        height: 30px;
        font-size: 0.64rem;
    }

    .pdf-publication-sidebar {
        max-height: 330px;
    }

    .pdf-publication-list {
        max-height: 260px;
    }
}

/*
 * ==========================================================
 *    Extra-Small Mobile
 *    ==========================================================
 */

@media (max-width: 390px) {
    .pdf-reader-toolbar {
        grid-template-columns: 54px 1fr auto;
    }

    .pdf-reader-toolbar__actions {
        gap: 0;
    }

    .pdf-reader-icon-button {
        width: 30px;
        height: 30px;
    }

    .pdf-reader-toolbar__zoom .pdf-reader-icon-button {
        width: 28px;
        height: 28px;
    }

    .pdf-reader-zoom-level {
        min-width: 40px;
        height: 28px;
    }

    #pdf-control-tooltip {
        max-width: calc(100vw - 16px);
        white-space: normal;
    }
}

/*
 * ==========================================================
 *    Screen Reader Only
 *    ==========================================================
 */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*
 * ==========================================================
 *    Reduced Motion
 *    ==========================================================
 */

@media (prefers-reduced-motion: reduce) {

    .pdf-flipbook-zoom-shell,
    .pdf-reader-icon-button,
    .pdf-reader-zoom-level,
    .pdf-publication-item__select {
        transition: none !important;
    }
}

/*
 * ==========================================================
 *    Refined Responsive Presentation
 * ==========================================================
 */

@media (max-width: 991.98px) {
    .pdf-viewer-panel__header {
        min-height: 72px;
        padding: 0.9rem;
    }

    .pdf-publication-sidebar__header {
        padding: 0.9rem;
    }

    .pdf-publication-list {
        padding: 0.55rem;
    }

    .pdf-publication-item__select {
        grid-template-columns: 34px minmax(0, 1fr);
        min-height: 60px;
        padding: 0.68rem;
    }

    .pdf-publication-item__icon {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 767.98px) {
    .pdf-viewer-panel__header {
        align-items: stretch;
        flex-direction: column;
        gap: 0.7rem;
        min-height: auto;
        padding: 0.85rem;
    }

    .pdf-viewer-panel__header::before {
        top: 0;
        right: 0;
        bottom: auto;
        left: 0;
        width: auto;
        height: 4px;
    }

    .pdf-viewer-panel__header>div:first-child {
        padding-top: 0.2rem;
        padding-left: 0;
    }

    .pdf-viewer-open-pdf {
        width: 100%;
    }

    .pdf-publication-sidebar {
        max-height: none;
    }

    .pdf-publication-sidebar__header,
    .pdf-publication-sidebar__subscribe {
        padding: 0.85rem;
    }

    .pdf-publication-list {
        max-height: 320px;
    }
}

/*
 * ==========================================================
 *    Responsive Reader Stabilization
 *    Keeps the CSS layout synchronized with the JS breakpoint.
 * ==========================================================
 */

.pdf-publications-layout>*,
.pdf-viewer-panel,
.pdf-flipbook-stage,
.pdf-flipbook-scroll-viewport,
.pdf-flipbook-scroll-content,
.pdf-flipbook-zoom-shell {
    min-width: 0;
}

.pdf-flipbook-scroll-viewport,
.pdf-flipbook-scroll-content {
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {
    .pdf-publications-layout {
        grid-template-columns: minmax(0, 1fr) clamp(250px, 24vw, 310px);
    }

    .pdf-flipbook-stage {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .pdf-publications-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .pdf-viewer-panel,
    .pdf-publication-sidebar,
    .pdf-flipbook-stage {
        width: 100%;
        max-width: 100%;
    }

    .pdf-flipbook-stage {
        overflow: hidden;
    }

    .pdf-publication-sidebar {
        height: auto;
    }
}

@media (forced-colors: active) {

    .pdf-viewer-panel__header,
    .pdf-publication-sidebar,
    .pdf-publication-item,
    .pdf-viewer-open-pdf,
    .pdf-publication-sidebar__subscribe .btn-maroon {
        border-color: CanvasText;
    }

    .pdf-publication-item.is-active {
        outline: 2px solid Highlight;
        outline-offset: -2px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .pdf-publication-item,
    .pdf-publication-item__select,
    .pdf-viewer-open-pdf,
    .pdf-publication-sidebar__subscribe .btn-maroon {
        transition: none !important;
        transform: none !important;
    }
}

/* ==========================================================
   MORE PUBLICATIONS DRAWER: FIX TOOLBAR OVERLAP
   The JS mounts this drawer inside .pdf-flipbook-stage.
   Prevent animation across the bottom reader controls.
========================================================== */
.pdf-flipbook-stage>.pdf-publication-drawer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: none;
    max-height: min(370px, 90%);
    transform: none;
    visibility: hidden;
    pointer-events: none;
    transition: none;
}

.pdf-flipbook-stage>.pdf-publication-drawer.is-open {
    display: flex;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: none;
}

@media (max-width: 767.98px) {
    .pdf-flipbook-stage>.pdf-publication-drawer {
        max-height: 85%;
    }
}