/**
 * Contact page.
 *
 * The lists are role-and-address pairs, so they are built as a two or three
 * column grid rather than a table: a table implies a data set you might sort,
 * and this is a short list people scan for one row.
 */

.srpc-contact {
    max-width: 60rem;
}

.srpc-contact-lead {
    font-size: var(--srpc-text-lg);
    line-height: var(--srpc-leading-snug);
    color: var(--srpc-ink);
    max-width: var(--srpc-measure);
    margin: 0 0 1.6rem;
}

.srpc-contact-section {
    margin: var(--srpc-section-gap) 0 0;
    padding-top: var(--srpc-section-pad);
    border-top: 1px solid var(--srpc-rule-soft);
}

.srpc-contact-section > h2 {
    font-family: var(--srpc-font-display);
    font-size: var(--srpc-text-xl);
    line-height: var(--srpc-leading-tight);
    color: var(--srpc-navy);
    margin: 0 0 0.4rem;
}

.srpc-contact-note {
    font-size: var(--srpc-text-sm);
    line-height: var(--srpc-leading-body);
    color: var(--srpc-ink-soft);
    max-width: var(--srpc-measure);
    margin: 0 0 1.2rem;
}

.srpc-contact-section p {
    font-size: var(--srpc-text-sm);
    line-height: var(--srpc-leading-body);
    color: var(--srpc-ink-soft);
    max-width: var(--srpc-measure);
}

/* --- the lists --- */

.srpc-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}

/* Role, address and calendar link in one row - a record, not a sentence. The
   base prose measure in typography.css would hold each to 584px inside a 960px
   page. */
.srpc-contact-list > li {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(8rem, 12rem) 1fr;
    gap: 0.2rem 1.2rem;
    align-items: baseline;
    padding: 0.7rem 0.9rem;
    border-radius: var(--srpc-radius);
    background: var(--srpc-paper);
}

.srpc-contact-list--divisions > li {
    grid-template-columns: minmax(8rem, 12rem) 1fr auto;
}

.srpc-contact-role {
    font-family: var(--srpc-font-display);
    font-weight: 700;
    color: var(--srpc-navy);
    font-size: var(--srpc-text-sm);
}

.srpc-contact .srpc-contact-email {
    font-size: var(--srpc-text-sm);
    font-weight: 600;
    word-break: break-word;      /* long addresses must not push the row wide */
}

.srpc-contact .srpc-contact-cal {
    font-size: var(--srpc-text-xs);
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: var(--srpc-orange-deep);
}

.srpc-contact .srpc-contact-cal:hover,
.srpc-contact .srpc-contact-cal:focus-visible {
    color: var(--srpc-navy);
}

/* Below the breakpoint the three columns stack, and the calendar link sits
   under the address rather than being squeezed against the edge. */
@media (max-width: 620px) {
    .srpc-contact-list > li,
    .srpc-contact-list--divisions > li {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .srpc-contact .srpc-contact-cal {
        margin-top: 0.2rem;
    }
}
