/* People of St Sarkis (spec p.46 to 53): clergy biographies, the Brotherhood, the reposed clergy and the council. */

/* Clergy: the portrait held in view beside the biography; reversed puts it on the right. */
.ss-clergy__layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--ss-space-6);
    align-items: start;
}

.ss-clergy__portrait {
    position: sticky;
    top: calc(var(--ss-bar-offset) + var(--ss-space-3));
}

.ss-clergy__portrait .ss-card__media {
    border-radius: var(--ss-radius-card-small);
    box-shadow: 0 26px 50px -34px color-mix(in srgb, var(--ss-emerald-shadow) 55%, transparent);
}

.ss-clergy--reversed .ss-clergy__layout {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}

.ss-clergy--reversed .ss-clergy__portrait {
    order: 1;
}

.ss-clergy__head {
    display: grid;
    gap: var(--ss-space-2);
    margin-bottom: var(--ss-space-4);
}

.ss-clergy__role {
    color: var(--ss-caption);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.ss-clergy__biography {
    font-size: var(--ss-body-size);
    line-height: 1.7;
}

.ss-clergy__biography mark {
    padding-inline: 2px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--ss-gold-highlight) 55%, transparent);
    color: inherit;
}

.ss-clergy__more {
    max-width: var(--ss-measure);
    margin-top: var(--ss-space-4);
    border-top: 1px solid var(--ss-hairline);
}

.ss-clergy__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ss-space-2);
    min-height: 56px;
    color: var(--ss-maroon);
    font-size: 0.9375rem;
    font-weight: var(--ss-weight-medium);
    list-style: none;
    cursor: pointer;
}

.ss-clergy__toggle::-webkit-details-marker {
    display: none;
}

.ss-clergy__plus {
    position: relative;
    flex: none;
    width: 14px;
    height: 14px;
}

.ss-clergy__plus::before,
.ss-clergy__plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--ss-ink);
    transform: translateY(-50%);
    transition: transform 0.34s var(--ss-ease);
}

.ss-clergy__plus::after {
    transform: translateY(-50%) rotate(90deg);
}

.ss-clergy__more[open] .ss-clergy__plus::after {
    transform: translateY(-50%) rotate(0deg);
}

.ss-clergy__more > .ss-clergy__biography {
    padding-bottom: var(--ss-space-2);
}

/* Brotherhood: the chips sit beside the heading; five cards to a row. */
.ss-brotherhood__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0 var(--ss-space-4);
    margin-bottom: var(--ss-space-5);
}

.ss-brotherhood__head .ss-section-head,
.ss-brotherhood__head .ss-chips {
    margin-bottom: 0;
}

.ss-brotherhood__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--ss-space-5) var(--ss-space-3);
}

/* Reposed clergy: centred under the candle, the names in gold highlight. */
.ss-reposed__content {
    display: grid;
    justify-items: center;
    gap: var(--ss-space-2);
    text-align: center;
}

.ss-reposed__candle {
    width: 24px;
    height: 48px;
    margin-bottom: var(--ss-space-1);
    fill: none;
    stroke: var(--ss-gold-highlight);
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ss-reposed .ss-heading {
    max-width: none;
}

.ss-reposed__line {
    font-size: var(--ss-lead-size);
    font-weight: var(--ss-weight-light);
    line-height: var(--ss-lead-leading);
}

.ss-reposed__names {
    display: grid;
    gap: var(--ss-space-1);
    margin-top: var(--ss-space-3);
    padding: 0;
    color: var(--ss-gold-highlight);
    font-size: var(--ss-subheading-size);
    font-weight: var(--ss-weight-light);
    line-height: var(--ss-subheading-leading);
    letter-spacing: var(--ss-subheading-tracking);
    list-style: none;
}

/* Parish council: rows on gold hairlines, read across both columns. */
.ss-council__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--ss-space-6);
    margin: 0;
}

.ss-council__member {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--ss-space-3);
    padding-block: 20px;
    border-top: 1px solid var(--ss-hairline);
}

.ss-council__name {
    font-size: 1rem;
    line-height: 1.45;
}

.ss-council__role {
    max-width: 50%;
    margin: 0;
    color: var(--ss-caption);
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: right;
}

@media (max-width: 1023px) {
    .ss-brotherhood__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .ss-clergy__layout,
    .ss-clergy--reversed .ss-clergy__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--ss-space-4);
    }

    .ss-clergy__portrait {
        position: static;
    }

    .ss-clergy--reversed .ss-clergy__portrait {
        order: 0;
    }

    .ss-brotherhood__head {
        display: grid;
        gap: var(--ss-space-3);
    }

    .ss-brotherhood__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--ss-space-4) var(--ss-space-2);
    }

    .ss-council__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .ss-council__member {
        display: grid;
        gap: 2px;
        padding-block: 16px;
    }

    .ss-council__role {
        max-width: none;
        text-align: left;
    }
}
