@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Source+Sans+3:wght@400;600&display=swap');

/* ===== Carmelite-style #cacs-sg library ===== */
#cacs-sg {
    container-type: inline-size;
    container-name: cacssg;
    --sg-accent: #5B3A24;
    --sg-accent-dark: #3F2717;
    --sg-ink: #2B211A;
    --sg-muted: #4A3F36;
    --sg-soft: #5E5249;
    --sg-stone: #F3EFE8;
    --sg-line: #E2D9CB;
    font-family: 'Source Sans 3', 'Segoe UI', Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--sg-ink);
    text-align: left;
}
#cacs-sg *,
#cacs-sg *::before,
#cacs-sg *::after { box-sizing: border-box; }
#cacs-sg h2,
#cacs-sg h3,
#cacs-sg p,
#cacs-sg ul,
#cacs-sg li,
#cacs-sg blockquote,
#cacs-sg details,
#cacs-sg summary { margin: 0; padding: 0; }
#cacs-sg h2,
#cacs-sg h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    color: var(--sg-ink);
    text-transform: none;
    letter-spacing: normal;
}
#cacs-sg h2 { font-size: 42px; line-height: 1.1; }
#cacs-sg h3 { font-size: 28px; line-height: 1.15; }
#cacs-sg img { display: block; max-width: none; margin: 0; padding: 0; box-shadow: none; }
#cacs-sg a { box-shadow: none; }
#cacs-sg a:focus-visible,
#cacs-sg summary:focus-visible { outline: 3px solid #B8862B; outline-offset: 2px; }
#cacs-sg .sg-inner { max-width: 1160px; margin: 0 auto; }
#cacs-sg .sg-band { padding: 60px 24px; }
#cacs-sg .sg-band--stone { background: var(--sg-stone); }
#cacs-sg .sg-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sg-accent);
}
#cacs-sg .sg-desc { color: var(--sg-muted); font-style: italic; }
#cacs-sg .sg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 4px;
    background: var(--sg-accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    line-height: 1.2;
}
#cacs-sg .sg-btn:hover,
#cacs-sg .sg-btn:focus { background: var(--sg-accent-dark); color: #fff; text-decoration: none; }
#cacs-sg svg { flex: none; }

.sg-page .sg-hero.ministry-hero--photo {
    background-position: 68% 40%;
    background-size: cover;
}
#cacs-sg .sg-alert {
    background: var(--sg-stone);
    border-bottom: 1px solid var(--sg-line);
    padding: 16px 24px;
}
#cacs-sg .sg-alert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    flex: none;
}
#cacs-sg .sg-btn--ghost {
    background: transparent;
    color: var(--sg-accent);
    border: 2px solid var(--sg-accent);
}
#cacs-sg .sg-btn--ghost:hover,
#cacs-sg .sg-btn--ghost:focus {
    background: var(--sg-accent);
    color: #fff;
}
#cacs-sg .sg-sign-date {
    margin-top: 4px;
    font-size: 14px;
    color: var(--sg-soft);
}
#cacs-sg .sg-pastoral-note {
    margin: 4px 0 10px 1.6rem;
    max-width: 36rem;
}
#cacs-sg .sg-alert .sg-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}
#cacs-sg .sg-alert a:not(.sg-btn) {
    color: var(--sg-ink);
    font-weight: 600;
    text-decoration: underline;
}

#cacs-sg .sg-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: center;
}
#cacs-sg .sg-intro > * { flex: 1 1 340px; }
#cacs-sg .sg-quote {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: 36px;
    line-height: 1.25;
    color: var(--sg-accent);
    border: 0;
    background: none;
    quotes: none;
    margin: 0;
    padding: 0;
    text-align: left;
}
#cacs-sg .sg-quote::before,
#cacs-sg .sg-quote::after { content: none; display: none; }
#cacs-sg .sg-attrib {
    margin-top: 16px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sg-soft);
}
#cacs-sg .sg-lede {
    margin-top: 24px;
    font-size: 19px;
    max-width: 560px;
    color: var(--sg-muted);
}
#cacs-sg .sg-statement {
    margin-top: 28px;
    max-width: 560px;
}
#cacs-sg .sg-statement .sg-label {
    margin-bottom: 10px;
}
#cacs-sg .sg-body {
    margin-top: 0;
    font-size: 17px;
    max-width: 560px;
    color: var(--sg-muted);
    line-height: 1.65;
}
#cacs-sg .sg-signoff {
    margin-top: 22px;
}
#cacs-sg .sg-signature {
    display: block;
    width: 200px;
    height: auto;
    margin: 0 0 8px;
}
#cacs-sg .sg-sign-name {
    font-weight: 600;
    color: var(--sg-ink);
    font-size: 16px;
}
#cacs-sg .sg-sign-role {
    color: var(--sg-soft);
    font-size: 14.5px;
}
#cacs-sg .sg-intro-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 6px;
}
#cacs-sg .sg-training-callout {
    margin-top: 28px;
    padding: 18px 20px;
    background: var(--sg-stone);
    border-left: 4px solid var(--sg-accent);
}
#cacs-sg .sg-training-callout .sg-training-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sg-accent);
}
#cacs-sg .sg-training-callout h2 {
    margin: 0 0 8px;
    font-size: 26px;
}
#cacs-sg .sg-training-callout p {
    margin: 0 0 14px;
    color: var(--sg-muted);
}
#cacs-sg .sg-training-callout .sg-btn { margin-top: 4px; }

#cacs-sg .sg-video { background: #2B211A; color: #fff; }
#cacs-sg .sg-video .sg-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}
#cacs-sg .sg-video-media {
    flex: 1 1 440px;
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: #1A130E;
    text-decoration: none;
}
#cacs-sg .sg-video-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#cacs-sg .sg-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #2B211A;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0,0,0,.35);
    transition: transform .2s;
}
#cacs-sg .sg-play svg { width: 30px; height: 30px; margin-left: 4px; }
#cacs-sg .sg-video-media:hover .sg-play { transform: scale(1.08); }
#cacs-sg .sg-video-text {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#cacs-sg .sg-video .sg-label { color: #E9DCC6; }
#cacs-sg .sg-video h2 { color: #fff; font-size: 36px; }
#cacs-sg .sg-video-text p { color: #F1E8DA; }
#cacs-sg .sg-video-text .sg-btn {
    align-self: flex-start;
    margin-top: 8px;
    background: #fff;
    color: #2B211A;
}
#cacs-sg .sg-video-text .sg-btn:hover,
#cacs-sg .sg-video-text .sg-btn:focus { background: #F1E8DA; color: #2B211A; }
#cacs-sg .sg-btn-ico { width: 16px; height: 16px; }
#cacs-sg .sg-video-text .sg-video-note { font-size: 14px; color: #D9CBB4; }

#cacs-sg .sg-library-head { max-width: 680px; margin-bottom: 32px; }
#cacs-sg .sg-library-head p { margin-top: 8px; color: var(--sg-muted); }
#cacs-sg .sg-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}
#cacs-sg .sg-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    row-gap: 0;
    min-width: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
}
#cacs-sg .sg-card > * {
    background: #fff;
    border-left: 1px solid var(--sg-line);
    border-right: 1px solid var(--sg-line);
}
#cacs-sg .sg-card-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border: 1px solid var(--sg-line);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}
#cacs-sg .sg-card-img--banner {
    height: auto;
    min-height: 160px;
    max-height: 280px;
    object-fit: contain;
    background: #F3EFE8;
    padding: 10px 12px 0;
}
#cacs-sg .sg-card-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 28px 20px;
}
#cacs-sg .sg-card .sg-drop {
    align-self: start;
    padding: 0 28px 26px;
    border-bottom: 1px solid var(--sg-line);
    border-radius: 0 0 8px 8px;
}
#cacs-sg .sg-drop > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 4px;
    background: var(--sg-accent);
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
#cacs-sg .sg-drop > summary::-webkit-details-marker { display: none; }
#cacs-sg .sg-drop > summary::marker { content: ""; }
#cacs-sg .sg-drop > summary:hover { background: var(--sg-accent-dark); }
#cacs-sg .sg-chev { width: 16px; height: 16px; transition: transform .2s; }
#cacs-sg .sg-drop[open] > summary .sg-chev { transform: rotate(180deg); }
#cacs-sg .sg-when-open { display: none; }
#cacs-sg .sg-drop[open] > summary .sg-when-open { display: inline; }
#cacs-sg .sg-drop[open] > summary .sg-when-closed { display: none; }

#cacs-sg .sg-docs {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    border-top: 1px solid var(--sg-line);
}
#cacs-sg .sg-docs li {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--sg-line);
}
#cacs-sg .sg-docs li::before { content: none; display: none; }
#cacs-sg .sg-doc {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 2px;
    color: var(--sg-ink);
    text-decoration: none;
}
#cacs-sg .sg-doc-icon {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: var(--sg-stone);
    color: var(--sg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
#cacs-sg .sg-doc-icon svg { width: 18px; height: 18px; }
#cacs-sg .sg-doc-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
#cacs-sg .sg-doc-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    padding: 0;
}
#cacs-sg .sg-doc-title::before { content: none; }
#cacs-sg .sg-doc-meta { font-size: 13.5px; color: var(--sg-soft); }
#cacs-sg .sg-doc-go { width: 16px; height: 16px; margin-top: 9px; color: var(--sg-soft); }
#cacs-sg a.sg-doc:hover,
#cacs-sg a.sg-doc:focus { color: var(--sg-ink); text-decoration: none; }
#cacs-sg a.sg-doc:hover .sg-doc-title,
#cacs-sg a.sg-doc:focus .sg-doc-title {
    color: var(--sg-accent);
    text-decoration: underline;
}
#cacs-sg .sg-doc--soon { color: var(--sg-soft); }
#cacs-sg .sg-doc--soon .sg-doc-icon { background: #EAE3D8; color: #6E6155; }

#cacs-sg .sg-gcard {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    background: var(--sg-accent);
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
}
#cacs-sg .sg-g-media { flex: 1 1 340px; height: 300px; position: relative; }
#cacs-sg .sg-g-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#cacs-sg .sg-g-body {
    flex: 1 1 440px;
    padding: 30px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#cacs-sg .sg-gcard h3 { color: #fff; }
#cacs-sg .sg-gcard .sg-label { color: #E9DCC6; }
#cacs-sg .sg-gcard .sg-desc { color: #F1E8DA; }
#cacs-sg .sg-gcard .sg-drop { margin-top: 10px; }
#cacs-sg .sg-gcard .sg-drop > summary { background: #fff; color: var(--sg-accent); }
#cacs-sg .sg-gcard .sg-drop > summary:hover { background: #F1E8DA; }
#cacs-sg .sg-g-panel {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.3);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
#cacs-sg .sg-g-panel a:not(.sg-btn) { color: #fff; text-decoration: underline; }
#cacs-sg .sg-g-panel .sg-btn {
    align-self: flex-start;
    background: transparent;
    border: 1.5px solid #fff;
    color: #fff;
}
#cacs-sg .sg-g-panel .sg-btn:hover,
#cacs-sg .sg-g-panel .sg-btn:focus { background: rgba(255,255,255,.12); color: #fff; }
#cacs-sg .sg-g-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px 28px;
}
#cacs-sg .sg-g-k {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #E9DCC6;
    margin-bottom: 4px;
}

/* Section H – handbooks */
#cacs-sg .sg-hcard {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--sg-line);
    border-radius: 8px;
    overflow: hidden;
}
#cacs-sg .sg-h-media {
    flex: 1 1 340px;
    min-height: 260px;
    position: relative;
}
#cacs-sg .sg-h-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#cacs-sg .sg-h-body {
    flex: 1 1 440px;
    padding: 30px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}
#cacs-sg .sg-h-body h3 { color: var(--sg-ink); }
#cacs-sg .sg-h-note {
    font-size: 14.5px;
    color: var(--sg-soft);
}
#cacs-sg .sg-h-body .sg-btn { margin-top: 8px; }

@container cacssg (max-width: 760px) {
    #cacs-sg .sg-cards { grid-template-columns: minmax(0, 1fr); }
    #cacs-sg .sg-band { padding: 44px 16px; }
    #cacs-sg .sg-alert { padding: 16px; }
    #cacs-sg h2 { font-size: 34px; }
    #cacs-sg h3 { font-size: 26px; }
    #cacs-sg .sg-quote { font-size: 30px; }
    #cacs-sg .sg-intro { gap: 28px; }
    #cacs-sg .sg-intro-img { height: 240px; }
    #cacs-sg .sg-card-img { height: 200px; }
    #cacs-sg .sg-card-text { padding: 22px 20px 18px; }
    #cacs-sg .sg-card .sg-drop { padding: 0 20px 22px; }
    #cacs-sg .sg-g-media { flex-basis: 100%; height: 200px; }
    #cacs-sg .sg-g-body { padding: 24px 20px 26px; }
    #cacs-sg .sg-h-media { flex-basis: 100%; min-height: 200px; }
    #cacs-sg .sg-h-body { padding: 24px 20px 26px; }
    #cacs-sg .sg-video .sg-inner { gap: 24px; }
    #cacs-sg .sg-video h2 { font-size: 30px; }
    #cacs-sg .sg-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}

/* ===== Report form ===== */
.sg-wrap {
    max-width: 880px;
    margin: 0 auto;
}
.sg-report-intro {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    text-align: center;
}
.sg-report-section {
    background: var(--grey-light);
    padding: 4rem 0 5rem;
}
.sg-report-section h2 {
    font-size: 1.5rem;
    color: var(--brown-deep);
    margin: 0 0 1rem;
    text-align: center;
}
.sg-emergency {
    background: #f8e8e5;
    border-left: 4px solid #B42318;
    padding: 0.85rem 1rem;
    color: #5C0701;
    font-weight: 600;
    margin-bottom: 1.75rem;
}
.sg-modechoice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.sg-mode {
    background: #fff;
    border: 2px solid var(--grey-medium);
    border-radius: 8px;
    padding: 1.25rem 1.1rem;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}
.sg-mode span {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #955217;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.sg-mode strong {
    display: block;
    color: var(--brown-deep);
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}
.sg-mode em {
    display: block;
    font-style: normal;
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.5;
}
.sg-mode.is-active {
    border-color: #955217;
    box-shadow: 0 0 0 1px #955217;
}
.sg-form-error {
    background: #fdecec;
    color: #8B1A1A;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
}
.sg-form-panel {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-soft);
}
.sg-form-panel h3 {
    color: var(--brown-deep);
    font-size: 1.15rem;
    margin: 0 0 1rem;
}
.sg-form label,
.sg-form legend {
    display: block;
    color: var(--brown-deep);
    font-weight: 600;
    font-size: 0.92rem;
    margin: 1rem 0 0.4rem;
}
.sg-form fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}
.sg-form fieldset label {
    font-weight: 400;
    color: var(--text-medium);
    margin: 0.35rem 0;
}
.sg-form input[type="text"],
.sg-form input[type="email"],
.sg-form input[type="tel"],
.sg-form select,
.sg-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--grey-medium);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}
.sg-form textarea {
    min-height: 110px;
    resize: vertical;
}
.sg-form small,
.sg-hint {
    color: var(--text-light);
    font-weight: 400;
}
.sg-form label .sg-hint {
    display: inline;
    margin-left: 0.25rem;
    font-weight: 400;
    color: #6b645c;
}
.sg-req { color: #B42318; }
.sg-consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-weight: 400 !important;
    color: var(--text-medium) !important;
    line-height: 1.55;
}
.sg-consent input { margin-top: 0.3rem; }
.sg-anonnote {
    background: #eef7ef;
    border: 1px solid #b7d4b9;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 0 0 1.25rem;
    color: var(--text-medium);
    line-height: 1.65;
}
.sg-anonnote a {
    color: #955217;
    font-weight: 700;
}
.sg-hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}
.sg-confirm {
    background: #fff;
    border-radius: 8px;
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-soft);
}
.sg-confirm h3 {
    color: var(--brown-deep);
    margin-top: 0;
}
.sg-ref {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #955217;
    background: var(--grey-light);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}
.sg-foot {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--grey-medium);
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.7;
}
.sg-foot p { margin: 0 0 0.75rem; }
.sg-foot strong {
    color: var(--brown-deep);
    font-weight: 700;
}
@media (max-width: 700px) {
    .sg-modechoice { grid-template-columns: 1fr; }
}

/* Soften page hero so the card composition leads */
.sg-page .ministry-hero.sg-hero {
    min-height: 320px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
.sg-page .sg-hero .mission {
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(0.98rem, 1.6vw, 1.15rem);
    line-height: 1.55;
    font-weight: 500;
}
.sg-page .welcome { display: none; }
