/**
 * Interior page layout: light-gray left subnav + main content.
 *
 * Mirrors the static site's #subNavWrapper: subdued gray background,
 * dark text, current page highlighted in the diocese red.
 */

/* Tighten interior page max width to 1272 px (matches the mirror's inner
 * topContentWrapper width) by adding padding to the .ic-container-fluid
 * on interior templates. front-page.php's .ic-container-fluid stays at
 * 1354 since it has no extra padding inside the constraint already. */
/* Interior pages: leave room at the top for the absolute-positioned header
 * (height ~150 px on desktop) plus a small breathing gap. */
.diocese-page-grid {
    max-width: 1272px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
    padding-top: 180px;
}
.diocese-page-main {
    flex: 1 1 auto;
    min-width: 0;
}

/* Subnav sidebar — light gray background like the mirror */
.diocese-subnav-aside {
    flex: 0 0 260px;
    max-width: 260px;
    background: #e7e7e7;
    color: #1a1a1a;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.diocese-subnav-aside #subNavContainer {
    display: block;
}
.diocese-subnav-aside .diocese-subnav-section-title {
    display: block;
    padding: 0.85rem 1rem;
    background: #b80c09;
    color: #fff;
    text-decoration: none;
    font-family: 'Open Sans Condensed', 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}
.diocese-subnav-aside .diocese-subnav-section-title:hover {
    background: #8a0907;
    color: #fff;
}
.diocese-subnav-aside ul.subNav {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #e7e7e7;
}
.diocese-subnav-aside ul.subNav li {
    margin: 0;
    padding: 0;
}
.diocese-subnav-aside ul.subNav a {
    display: block;
    padding: 0.55rem 1rem;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.35;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background 0.12s, color 0.12s;
}
.diocese-subnav-aside ul.subNav li:last-child a {
    border-bottom: 0;
}
.diocese-subnav-aside ul.subNav a:hover,
.diocese-subnav-aside ul.subNav a:focus {
    background: #d0d0d0;
    color: #1a1a1a;
    text-decoration: underline;
}
.diocese-subnav-aside ul.subNav a.current {
    background: #b80c09;
    color: #fff;
    font-weight: 700;
    border-bottom-color: #8a0907;
}
.diocese-subnav-aside ul.subNav a.current:hover {
    background: #b80c09;
    color: #fff;
    text-decoration: none;
    cursor: default;
}

/* Mobile: stack subnav after content */
@media (max-width: 991px) {
    .diocese-page-grid {
        flex-direction: column;
        gap: 1.25rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    .diocese-subnav-aside {
        flex: 0 0 auto;
        max-width: 100%;
        order: 2;
    }
    .diocese-page-main {
        order: 1;
    }
}
