/*
 * Liturgy Styles
 * Rubrics, speaker roles, versicles, canticles, opening sentences
 */

/* ==========================================================================
   Rubrics (liturgical instructions)
   ========================================================================== */

.rubric {
    color: var(--pico-muted-color);
    font-style: italic;
    margin: 1.5rem 0;
}

.rubric p {
    margin: 0;
}

/* ==========================================================================
   Liturgical Speaker Roles
   ========================================================================== */

.minister {
    margin-left: 0;
}

.congregation {
    margin-left: 2rem;
    font-weight: 500;
}

.all {
    margin-left: 1rem;
}

.priest {
    margin-left: 0;
}

/* ==========================================================================
   Pilcrow Markers (¶) - Traditional BCP paragraph/response markers
   ========================================================================== */

/* Pilcrow before congregation responses (the people's part) */
.congregation::before {
    content: "¶ ";
    color: var(--pico-muted-color);
    font-weight: normal;
}

/* Pilcrow before "all" responses (everyone together) */
.all::before {
    content: "¶ ";
    color: var(--pico-muted-color);
    font-weight: normal;
}

/* ==========================================================================
   Versicle and Response Formatting
   ========================================================================== */

.versicle-response {
    margin: 1rem 0;
}

.versicle-response .minister {
    margin-bottom: 0.25rem;
}

.versicle-response .congregation {
    margin-top: 0.25rem;
}

/* ==========================================================================
   Canticles and Psalms
   ========================================================================== */

.canticle p {
    margin-bottom: 0.5rem;
    text-indent: -1rem;
    padding-left: 1rem;
}

/* ==========================================================================
   Collect (Prayer) Styling
   ========================================================================== */

.collect,
.collect p {
    font-style: italic;
}

.collect {
    border-left: 3px solid var(--pico-muted-border-color);
    padding-left: 1.5rem;
    margin: 1rem 0;
}

/* ==========================================================================
   Opening Sentences
   ========================================================================== */

.opening-sentence {
    border-left: 3px solid var(--pico-primary);
    padding-left: 1rem;
    margin: 1rem 0;
}

.opening-sentence cite {
    display: block;
    text-align: right;
    font-style: normal;
    color: var(--pico-muted-color);
    font-size: 0.9em;
}

/* ==========================================================================
   Liturgical Explanations
   ========================================================================== */

.explanation {
    display: block;
    font-style: italic;
    color: var(--pico-muted-color);
    font-size: 0.875em;
    margin-top: 0.25rem;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Section Visual Dividers
   ========================================================================== */

section.liturgy {
    border-top: 1px solid var(--pico-muted-border-color);
    padding-top: 2rem;
    margin-top: 2rem;
}

section.liturgy:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* Section subtitles */
.section-subtitle {
    font-style: italic;
    color: var(--pico-muted-color);
    font-size: 0.9em;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}
