/*
 * Shared styles for the PDF "document viewer" pages
 * (Mandate, TUP Code, Citizen's Charter, Student Handbook, RA 9184 IRR).
 *
 * Plain CSS on purpose: a <style type="text/tailwindcss"> block is only compiled by the Tailwind
 * Play CDN, which this site does not load, so @apply rules written that way never take effect.
 */

/* Viewer that fills the rest of a fixed-height card (card header above, viewer below) */
.doc-viewer-fill {
    position: relative;
    flex: 1 1 0%;
    width: 100%;
    min-height: 480px;
    overflow: hidden;
    background-color: #f1f5f9;
}

/* Large rounded viewer used on the full-width pages (Mandate, Handbook) */
.doc-viewer-card {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    background-color: #f1f5f9;
    border: 8px solid #fff;
    border-radius: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* dFlip's stylesheet turns every ._df_button into a blue "WordPress" button (padding, #0085ba background,
   white text). The publications catalog uses ._df_button only as an invisible click target around a book card. */
._df_button.group,
._df_button.group:hover,
._df_button.group:focus {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: inherit;
    font: inherit;
    -webkit-appearance: none;
    appearance: none;
}

/* Shown if the viewer libraries are blocked or fail, or JavaScript is off */
.doc-viewer-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: 100%;
    padding: 2rem;
    text-align: center;
}
.doc-viewer-fallback p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}
.doc-viewer-fallback a {
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    background-color: #0f172a;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.doc-viewer-fallback a:hover {
    background-color: #801423;
}

/* Sidebar cards next to the large viewer */
.doc-sidebar-card {
    padding: 1.5rem;
    background-color: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 2.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}
.doc-sidebar-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}
.doc-sidebar-card--dark {
    background-color: #0f172a;
    border-color: transparent;
    color: #fff;
}
