/**
 * lectionary-print.css
 * Version: 1.2.0
 * Date: March 21, 2026 06:30 PM EST
 *
 * Professional textbook-style print and screen styling for lectionary readings.
 * - v1.2.0: Buttons on own row; heading back inside .reading-header with
 *           minimal whitespace; removed .season-name-inline.
 * - v1.1.0: Moved season heading into print-controls row (3-column flex).
 * - v1.0.0: Complete redesign for professional liturgical book appearance.
 */

/* ============================================
   Screen Styles for Reading Page
   ============================================ */

/* Reading header – compact, minimal whitespace */
.reading-header {
    text-align: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.reading-header .season-name {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.75rem;
    color: #8B0000;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    line-height: 1.3;
}

.reading-header .reading-date {
    font-size: 1rem;
    color: #666666;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif);
    margin-top: 0;
}

.reading-header .lectionary-cycle {
    font-size: 0.9rem;
    color: #4a7c59;
    font-style: italic;
    margin-top: 0.15rem;
}

/* Season color indicator */
.season-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.6rem;
}

.season-color-bar {
    height: 4px;
    width: 60px;
    border-radius: 2px;
    display: inline-block;
}

.season-label {
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif);
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsorial psalm link */
.responsorial-link {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.5rem 1.25rem;
    background: #f0f7f2;
    border: 1px solid #d4e8dc;
    border-radius: 6px;
    font-family: var(--font-sans, sans-serif);
    font-size: 0.85rem;
    color: #4a7c59;
    text-decoration: none;
    transition: all 0.2s;
}

.responsorial-link:hover {
    background: #4a7c59;
    color: white;
    border-color: #4a7c59;
    text-decoration: none;
}

/* ============================================
   Collect Styles
   ============================================ */
.collect-section {
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: #fafaf7;
    border-left: 4px solid #8B0000;
    border-radius: 0 6px 6px 0;
}

.collect-section .collect-label {
    font-weight: 700;
    color: #8B0000;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.collect-section .collect-season {
    font-style: italic;
    color: #555;
    margin-bottom: 0.5rem;
}

.collect-section .collect-text {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
}

/* ============================================
   Scripture Reading Sections
   ============================================ */
.reading-section {
    margin-bottom: 2.5rem;
    page-break-inside: avoid;
}

.reading-section-header {
    text-align: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.reading-type {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.15rem;
    color: #8B0000;
    font-style: italic;
    font-weight: 400;
    display: block;
    margin-bottom: 0.25rem;
}

.reading-reference {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    color: #333;
    font-weight: 400;
}

.scripture-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.85;
    color: #333;
    text-align: justify;
    hyphens: auto;
}

/* Verse numbers */
.verse-num {
    color: #8B0000;
    font-size: 0.7em;
    font-weight: 700;
    vertical-align: super;
    margin-right: 1px;
    font-family: var(--font-sans, sans-serif);
}

/* Response text */
.response-line {
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px dotted #ddd;
}

.response-line .officiant-label,
.response-line .people-label {
    font-size: 0.85rem;
    color: #888;
    font-family: var(--font-sans, sans-serif);
}

.response-line .response-text {
    font-weight: 700;
}

/* Gloria */
.gloria-section {
    margin-top: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px dotted #ddd;
}

.gloria-section .gloria-intro {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.gloria-section .gloria-text {
    font-style: italic;
}

/* ============================================
   Gospel Introduction
   ============================================ */
.gospel-intro {
    background: #fafaf7;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.gospel-intro .rubric-label {
    font-weight: 700;
    color: #555;
    margin-right: 0.25rem;
}

.gospel-intro .rubric-text {
    font-style: italic;
}

.gospel-intro .gospel-people {
    font-style: italic;
    margin-left: 1rem;
}

.gospel-conclusion {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dotted #ddd;
}

.gospel-conclusion .rubric-note {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* ============================================
   Prayers of the People
   ============================================ */
.prayers-section {
    margin-top: 2rem;
    page-break-before: always;
}

.prayers-section h3 {
    text-align: center;
    color: #8B0000;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-family: 'Merriweather', Georgia, serif;
}

.prayers-section .prayers-label {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.prayers-section .prayer-text {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.85;
    font-size: 1rem;
}

.prayers-section .prayer-text strong {
    display: block;
    margin: 0.5rem 0;
}

/* ============================================
   Print Controls – buttons only, own row
   ============================================ */
.print-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.print-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: #4a7c59;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-sans, sans-serif);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}

.print-btn:hover {
    background: #3d6648;
    color: white;
    text-decoration: none;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: #f9f9f9;
    color: #4a7c59;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--font-sans, sans-serif);
    font-size: 0.9rem;
    transition: all 0.2s;
    margin-right: auto;
}

.back-link:hover {
    background: #4a7c59;
    color: white;
    border-color: #4a7c59;
    text-decoration: none;
}

/* ============================================
   Print Styles
   ============================================ */
@page {
    size: letter;
    margin: 0.75in 0.85in;
}

@media print {
    body {
        background: white;
        font-size: 11pt;
        line-height: 1.6;
        color: #000;
    }

    .app-header,
    .nav-menu,
    .app-footer,
    .print-controls,
    .responsorial-link {
        display: none !important;
    }

    .content-wrapper {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .content-card {
        box-shadow: none;
        border: none;
        padding: 0;
        border-radius: 0;
    }

    .reading-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 1.5pt solid #000;
    }

    .reading-header .season-name {
        color: #000;
        font-size: 16pt;
    }

    .reading-header .reading-date {
        color: #333;
        font-size: 10pt;
    }

    .reading-header .lectionary-cycle {
        color: #555;
        font-size: 9pt;
    }

    .season-indicator {
        display: none;
    }

    .collect-section {
        border-left: 2pt solid #000;
        background: none;
        padding: 0.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .collect-section .collect-label {
        color: #000;
    }

    .reading-section {
        page-break-inside: avoid;
        margin-bottom: 1.5rem;
    }

    .reading-section-header {
        border-bottom: 0.5pt solid #999;
        margin-bottom: 0.75rem;
    }

    .reading-type {
        color: #000;
        font-size: 11pt;
    }

    .reading-reference {
        font-size: 10.5pt;
    }

    .scripture-text {
        font-size: 10.5pt;
        line-height: 1.55;
    }

    .verse-num {
        color: #555;
        font-size: 0.65em;
    }

    .gospel-intro {
        background: none;
        border: 0.5pt solid #ccc;
        padding: 0.5rem 0.75rem;
        font-size: 9.5pt;
    }

    .prayers-section {
        page-break-before: always;
    }

    .prayers-section h3 {
        color: #000;
        font-size: 13pt;
    }

    h3 {
        page-break-after: avoid;
    }

    .reading-section-header {
        page-break-after: avoid;
    }

    /* Prevent widows/orphans */
    p {
        widows: 3;
        orphans: 3;
    }
}
