/*
===========================================================================
CHANGE LOG
File: /var/www/html/prohrhq.com/static/css/library.css
Type: Page-scoped stylesheet (loaded only on /library via extra_head block)
Purpose: Styles for the reference library index and viewer pages.
Self-contained: concrete values matching the prohrhq public surface
(EB Garamond headings, Barlow Condensed meta, system sans body).
Version History:
2026-06-15 v1.0 - Initial creation
===========================================================================
*/

.library-section {
    max-width: 900px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    font-family: Arial, Helvetica, sans-serif;
    color: #1b1b1b;
    line-height: 1.6;
}

.library-section h1 {
    font-family: 'EB Garamond', Georgia, serif;
    color: #1f3349;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.library-lede {
    color: #55606b;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.library-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.library-item {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #d8dee6;
}

.library-item:last-child {
    border-bottom: none;
}

.library-item-title {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f3349;
    text-decoration: none;
    display: inline-block;
}

.library-item-title:hover,
.library-item-title:focus {
    color: #2f5d62;
    text-decoration: underline;
}

.library-item-meta {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    color: #6b7682;
    font-size: 0.9rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-top: 0.35rem;
}

.library-item-description {
    color: #1b1b1b;
    margin-top: 0.6rem;
    margin-bottom: 0;
}

.library-empty {
    color: #6b7682;
    font-style: italic;
}

/* ===========================================
   VIEWER PAGE (/library/view/<slug>/)
   =========================================== */

.library-view {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    font-family: Arial, Helvetica, sans-serif;
    color: #1b1b1b;
}

.library-view-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #d8dee6;
}

.library-view-back {
    display: inline-block;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: #2f5d62;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.library-view-back:hover,
.library-view-back:focus {
    color: #14222f;
    text-decoration: underline;
}

.library-view-title {
    font-family: 'EB Garamond', Georgia, serif;
    color: #1f3349;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.library-view-description {
    color: #55606b;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.library-view-actions {
    margin-top: 0.5rem;
}

.library-view-download {
    display: inline-block;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    letter-spacing: 0.4px;
    padding: 0.55rem 1.1rem;
    background: #1f3349;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
}

.library-view-download:hover,
.library-view-download:focus {
    background: #14222f;
}

.library-view-pdf-wrap {
    width: 100%;
    height: 85vh;
    min-height: 700px;
    background: #f4f7fa;
    border: 1px solid #d8dee6;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.library-view-pdf {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.library-view-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #6b7682;
    z-index: -1;
}

/* -- Rendered canonical /docs guide (library_doc.html) ------------------- */
.library-doc {
    max-width: 760px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    color: #1b1b1b;
}
.library-doc h1 { color: #14222f; margin-top: 0; }
.library-doc h2 { color: #1f3349; margin-top: 2rem; }
.library-doc-tip {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid #2f5d62;
    background: #f4f7fa;
}
