.gbc-faith-modal,
.gbc-faith-modal *,
.gbc-faith__open {
    box-sizing: border-box;
}

.gbc-faith-modal__eyebrow {
    margin: 0 0 7px;
    color: #a0000a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.gbc-faith__open {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 0;
    margin: 12px 0 0;
    padding: 0 0 3px;
    border: 0 !important;
    border-bottom: 2px solid rgba(193, 18, 31, .3) !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #c1121f !important;
    font: inherit;
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.gbc-faith__open::after {
    content: "→";
    display: inline-block;
    font-size: 1.08em;
    transition: transform .16s ease;
}

.gbc-faith__open:hover,
.gbc-faith__open:focus-visible {
    border-bottom-color: #c1121f !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #a0000a !important;
    outline: 2px solid rgba(193, 18, 31, .2);
    outline-offset: 4px;
}

.gbc-faith__open:hover::after,
.gbc-faith__open:focus-visible::after {
    transform: translateX(3px);
}

.gbc-faith-modal[hidden] {
    display: none !important;
}

.gbc-faith-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: grid;
    place-items: center;
    padding: clamp(10px, 3vw, 28px);
    background: rgba(8, 15, 28, .76);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gbc-faith-modal__dialog {
    width: min(94vw, 900px);
    max-height: min(92dvh, 940px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(8, 15, 28, .38);
    color: #334155;
}

.gbc-faith-modal__dialog:focus {
    outline: none;
}

.gbc-faith-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px clamp(18px, 4vw, 34px) 16px;
    border-bottom: 1px solid rgba(29, 53, 87, .12);
    background: rgba(255, 255, 255, .98);
}

.gbc-faith-modal__header h2 {
    margin: 0;
    color: #10243c;
    font-size: clamp(1.65rem, 4vw, 2.5rem);
    line-height: 1.08;
}

.gbc-faith-modal__close {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(29, 53, 87, .16);
    border-radius: 999px;
    background: #fff;
    color: #1d3557;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.gbc-faith-modal__close:hover,
.gbc-faith-modal__close:focus-visible {
    background: #eef4fb;
    color: #a0000a;
    outline: 3px solid rgba(29, 53, 87, .12);
}

.gbc-faith-modal__body {
    max-height: calc(min(92dvh, 940px) - 102px);
    overflow: auto;
    padding: clamp(22px, 4vw, 38px);
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    overscroll-behavior: contain;
}

.gbc-faith-modal__intro {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(29, 53, 87, .12);
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.75;
}

.gbc-faith-modal__section + .gbc-faith-modal__section {
    margin-top: 30px;
}

.gbc-faith-modal__section h3,
.gbc-faith-modal__content > h3 {
    margin: 0 0 10px;
    color: #10243c;
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    line-height: 1.2;
}

.gbc-faith-modal__section p,
.gbc-faith-modal__content > p {
    margin: 0 0 12px;
    color: #475569;
    line-height: 1.72;
}

.gbc-faith-modal__content > h3:not(:first-child) {
    margin-top: 30px;
}

.gbc-faith-modal__section p:last-child {
    margin-bottom: 0;
}

.gbc-faith-modal__content > :first-child,
.gbc-faith-modal__intro > :first-child {
    margin-top: 0;
}

.gbc-faith-modal__content > :last-child,
.gbc-faith-modal__section > :last-child {
    margin-bottom: 0;
}

.gbc-faith-modal__content a {
    color: #1d5f8a;
    text-decoration-thickness: .08em;
    text-underline-offset: .14em;
}

.gbc-faith-modal__references {
    padding: 10px 13px;
    border-left: 3px solid #a0000a;
    border-radius: 0 10px 10px 0;
    background: #f8f2f3;
    color: #67535a !important;
    font-size: .92rem;
    font-style: italic;
}

body.gbc-faith-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .gbc-faith-modal {
        place-items: start center;
        padding: 8px;
    }
    .gbc-faith-modal__dialog {
        width: 100%;
        max-height: calc(100dvh - 16px);
        border-radius: 18px;
    }
    .gbc-faith-modal__body {
        max-height: calc(100dvh - 112px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gbc-faith__open {
        scroll-behavior: auto;
    }
}
