/* Public membership has its own form shell; Bootstrap is scoped to the admin portal.
   The content ID also takes precedence over the later shared public-button sizing. */
#content.mr-public { background:#f6f5f1; color:var(--navy); }
/* Banner height and padding follow the shared page-banner rules in site.css. */
.mr-public .membership-banner:after { background:linear-gradient(90deg,#17223ceb,#17223ca6 55%,#17223c3d); }
.mr-public .membership-banner .page-eyebrow { color:#edcf92; font-size:12px; letter-spacing:.14em; }
.mr-public .membership-banner h1 { font-size:clamp(30px,3.5vw,44px); letter-spacing:-.025em; }
.mr-public .membership-banner .page-banner-content > p:last-child { max-width:600px; font-size:16px; }
#content.mr-public .membership-layout { display:block; width:min(1120px,calc(100% - 48px)); margin:40px auto 64px; }
#content.mr-public .sr-form-wrap { border:1px solid #dedfdc; border-top:3px solid var(--gold); box-shadow:0 10px 36px #17223c09; background:#fff; }
.mr-public .membership-workflow { display:grid; grid-template-columns:230px minmax(0,1fr); align-items:start; }
.mr-public .membership-workflow > :is([data-family-fields],#membership-confirm,.sr-submit-row,.sr-errors) { grid-column:2; }
.mr-public .membership-workflow > :is([data-family-fields],#membership-confirm) { grid-row:1; min-width:0; }
.mr-public .membership-workflow > .sr-submit-row { grid-row:2; }
#content.mr-public .membership-workflow-progress { grid-column:1; grid-row:1 / span 4; align-self:stretch; margin:0; padding:26px 18px; background:#f4f3ee; border-right:1px solid #e2e1da; }
.mr-public .membership-rail-inner { position:sticky; top:calc(var(--header-expanded-height,128px) + 24px); }
.mr-public .membership-rail-title { margin:0 10px 18px; font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#765522; }
.mr-public .membership-workflow-progress nav { display:grid; gap:6px; }
#content.mr-public .membership-workflow-progress [data-membership-step] { display:flex; align-items:center; gap:12px; width:100%; min-width:0; min-height:64px; padding:10px; border:1px solid transparent; background:transparent; color:#566172; text-align:left; font:700 14px/1.35 var(--font-primary); box-shadow:none; }
.mr-public .membership-step-symbol { display:grid; place-items:center; flex:0 0 32px; width:32px; height:32px; background:#e8e8e2; color:#626b77; }
.mr-public .membership-step-symbol .icon { width:15px; height:15px; }
.mr-public .membership-step-label { display:grid; gap:2px; }
.mr-public .membership-step-index { font-size:12px; font-weight:400; color:#626b77; }
#content.mr-public [data-membership-step][data-step-state=complete] { color:#2d6845; }
.mr-public [data-step-state=complete] .membership-step-symbol { background:#e4f2e8; color:#2d6845; }
#content.mr-public [data-membership-step][aria-current=step] { background:var(--navy); color:#fff; }
.mr-public [aria-current=step] .membership-step-symbol { background:#ffffff1a; color:#edcf92; }
.mr-public [aria-current=step] .membership-step-index { color:#edcf92; }
#content.mr-public [data-membership-step]:disabled { opacity:1; cursor:default; }
#content.mr-public [data-membership-step]:not(:disabled,[aria-current=step]):hover { background:#eae9e2; }
.mr-public .membership-workflow-progress [role=status] { margin:18px 10px 8px; font-size:13px; line-height:1.5; color:#526177; }
.mr-public .membership-required { margin:0 10px; font-size:12px; line-height:1.6; color:#626b77; }
.mr-public .membership-required span { color:#a02c30; }
.mr-public .membership-rail-help { border-top:1px solid #dcdcd4; margin:22px 10px 0; padding-top:20px; }
.mr-public .membership-rail-help p { margin:0 0 6px; font-size:14px; font-weight:700; }
.mr-public .membership-rail-help a { display:inline-flex; align-items:center; gap:8px; min-height:44px; color:var(--navy); font-size:13px; text-decoration:underline dotted; text-underline-offset:4px; }
#content.mr-public .sr-section { border:0; padding:32px 36px 12px; }
.mr-public .sr-section-title { margin-bottom:28px; }
.mr-public .sr-section-title > span:first-child { display:none; }
.mr-public .sr-section-title h2 { font:700 var(--section-heading-size)/1.2 var(--font-primary); letter-spacing:-.02em; color:var(--navy); scroll-margin-top:24px; }
.mr-public .sr-section-title h2:focus { outline:none; }
.mr-public .sr-section-title p { max-width:540px; margin-top:10px; font:400 15px/1.6 var(--font-primary); color:#5a6575; }
.mr-public .membership-group { min-width:0; margin:0 0 28px; padding:0; border:0; background:transparent; }
.mr-public .membership-group > legend { float:none; width:100%; margin:0 0 18px; padding:0 0 10px; border-bottom:1px solid #e6e7e4; color:#765522; font:700 12px/1.5 var(--font-primary); letter-spacing:.08em; text-transform:uppercase; }
.mr-public .membership-group .sr-grid { grid-template-columns:repeat(2,minmax(0,1fr)); padding-top:0; gap:20px; align-items:start; }
.mr-public .sr-field { min-width:0; }
.mr-public .sr-wide { grid-column:1 / -1; }
.mr-public .membership-address .sr-grid { grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr) minmax(0,1fr); }
.mr-public .sr-field label { font:700 14px/1.4 var(--font-primary); margin-bottom:8px; color:var(--navy); }
#content.mr-public .sr-field :is(input,select,textarea) { min-width:0; width:100%; border-color:#c4cbd4; color:#26304d; font:400 16px/1.5 var(--font-primary); min-height:48px; padding:11px 12px; }
.mr-public .sr-field :is(input,select,textarea):hover { border-color:#8591a1; }
.mr-public .sr-field :is(input,select,textarea):focus { border-color:var(--navy); outline:3px solid #b1843b38; outline-offset:2px; }
/* Native inputs and selects have different intrinsic heights; use one shared control height. */
#content.mr-public .sr-field :is(input,select) { height:48px; margin:0; }
#content.mr-public .sr-field textarea { min-height:106px; margin:0; }
#content.mr-public .sr-field select { appearance:none; padding-right:40px; background:#fff url('/images/select-chevron.svg') no-repeat right 12px center / 16px 16px; }
.mr-public .sr-field input:disabled { background:#f2f3f4; border-color:#dde0e4; }
.mr-public .sr-hint { margin:8px 0 0; font:400 13px/1.6 var(--font-primary); color:#5a6575; }
.mr-public .sr-field-error { display:block; font-size:13px; }
.mr-public [data-spouse-fields] { min-width:0; padding:0; border:0; margin:24px 0 0; }
.mr-public [data-spouse-fields] > legend { display:none; }
.mr-public .sr-student-card { --public-card-shadow:none; padding:20px; margin-bottom:24px; border:1px solid #d9dde3; background:#fafaf7; }
/* Shared public cards highlight their container on keyboard focus. For these editable
   cards, keep the focus indicator on the active input or button instead. */
#content.mr-public div.sr-form-wrap:has(> form[data-membership-form]):focus-within { outline:none; }
#content.mr-public form[data-membership-form] fieldset[data-child-card]:is(:focus-within,:focus-visible) { outline:none; border-color:#d9dde3; box-shadow:none; }
.mr-public .sr-student-card > legend { float:none; width:auto; margin:0; padding:0 8px; font-size:16px; color:var(--navy); }
.mr-public .sr-student-card .membership-group:last-child { margin-bottom:0; }
.mr-public .sr-student-card .sr-grid { padding-top:0; }
.mr-public .sr-student-card .membership-group:first-of-type { margin-top:22px; }
.mr-public .sr-consent { margin:20px 0; padding:18px; background:#f6f4ec; border:1px solid #e3dcc9; color:var(--navy); font:400 14px/1.6 var(--font-primary)!important; }
.mr-public input[type=checkbox] { flex:0 0 20px; width:20px; height:20px; accent-color:var(--navy); }
#content.mr-public .membership-workflow .sr-submit-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:16px; position:sticky; bottom:var(--shortcuts-height,0px); z-index:5; margin:0; padding:20px 36px; background:#fff; border-top:1px solid #e6e7e4; }
#content.mr-public .membership-workflow .sr-submit-row > p { grid-column:2; margin:0; font-size:12px; line-height:1.5; color:#5a6575; }
#content.mr-public .membership-workflow .sr-submit-row > [data-membership-back] { grid-column:1; grid-row:1; }
#content.mr-public .membership-workflow .sr-submit-row > [data-membership-submit] { grid-column:3; grid-row:1; }
#content.mr-public .membership-workflow .sr-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:auto; min-height:48px; padding:12px 18px; background:var(--navy); border:1px solid var(--navy); color:#fff; font:700 14px/1.4 var(--font-primary); }
#content.mr-public .membership-workflow .sr-button:hover { background:#18223d; box-shadow:0 3px 8px #17223c20; }
#content.mr-public .membership-workflow .sr-button-secondary { background:#f1eee5; border-color:#dcd4c1; color:var(--navy)!important; }
#content.mr-public .membership-workflow .sr-button-secondary:hover { background:#e7dfcc; }
.mr-public .membership-support { display:flex; gap:14px; align-items:flex-start; justify-content:center; margin:22px auto 0; max-width:760px; color:#5a6575; }
.mr-public .membership-support > .icon { flex:none; color:#765522; width:18px; height:18px; margin-top:3px; }
.mr-public .membership-support p { margin:0; font:400 13px/1.7 var(--font-primary); }
.mr-public .membership-support strong { font-weight:700; color:var(--navy); }
.mr-public [data-registration-review] { overflow-wrap:anywhere; }
.mr-public [data-registration-review] > section { padding:22px 0; border-bottom:1px solid #e6e7e4; }
.mr-public [data-registration-review] > section:first-child { padding-top:0; }
.mr-public .membership-review-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; }
.mr-public .membership-review-heading h3 { margin:0; color:#765522; font:700 13px/1.4 var(--font-primary); letter-spacing:.04em; }
#content.mr-public .membership-review-edit { display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:8px 10px; border:1px solid #ddd5c3; background:#f7f4ec; color:var(--navy); font:700 13px/1.4 var(--font-primary); }
.mr-public [data-registration-review] dl { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:10px 20px; margin:0; }
.mr-public [data-registration-review] dt { margin:0; color:#5a6575; font:400 14px/1.5 var(--font-primary); }
.mr-public [data-registration-review] dd { margin:0; color:var(--navy); font:700 14px/1.5 var(--font-primary); white-space:pre-wrap; }
.mr-public .membership-review-empty { margin:0; color:#5a6575; font-size:14px; }
.mr-public [data-edit-family] { display:none!important; }
.mr-public .sr-errors { margin:24px 36px 0; scroll-margin-top:24px; }
@media(forced-colors:active) { #content.mr-public .sr-field select { appearance:auto; background-image:none; } }
/* Pair the long fields on large screens; six tracks also keep city, state and ZIP on one row. */
@media(min-width:992px) {
 /* Keep the three sacrament choices on one desktop row. */
 .mr-public .membership-group .sr-grid:has(> .sr-field > select[name$=".Baptized"]) { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .mr-public #applicant .sr-field:has([name="Family.Applicant.Nickname"],[name="Family.FamilyName"]) { grid-column:auto; }
 .mr-public .membership-address .sr-grid { grid-template-columns:repeat(6,minmax(0,1fr)); }
 .mr-public .membership-address .sr-field { grid-column:span 2; }
 .mr-public .membership-address .sr-wide { grid-column:span 3; }
}
/* Match the home page's Our Clergy charcoal surface on the desktop registration rail. */
@media(min-width:768px) {
 #content.mr-public .membership-workflow-progress { --text-link-color:var(--gold-on-dark); --text-link-hover:#fff; background:#343a40; border-right-color:#343a40; color:#fff; }
 .mr-public .membership-rail-title { color:var(--gold-on-dark); }
 #content.mr-public .membership-workflow-progress [data-membership-step] { color:#d2d8df; }
 .mr-public .membership-step-symbol { background:#ffffff14; color:#d2d8df; }
 .mr-public .membership-step-index { display:none; }
 #content.mr-public .membership-workflow-progress [data-step-state=complete] { color:#c1e2cb; }
 .mr-public [data-step-state=complete] .membership-step-symbol { background:#e4f2e8; color:#2d6845; }
 /* The public form mirrors admin-layout.css selection styling; admin CSS is scoped to its own shell. */
 #content.mr-public .membership-workflow-progress [aria-current=step] { background:#cbb38320; border-color:transparent; box-shadow:inset 3px 0 #ceb483; color:#ffe6b8; }
 .mr-public [aria-current=step] .membership-step-symbol { background:#ffffff14; color:#dec698; }
 #content.mr-public .membership-workflow-progress [data-membership-step]:not(:disabled,[aria-current=step]):hover { background:#ffffff12; }
 #content.mr-public .membership-workflow-progress [data-membership-step]:focus-visible { outline:2px solid var(--gold-on-dark); outline-offset:2px; }
 .mr-public .membership-workflow-progress [role=status], .mr-public .membership-required { color:#d2d8df; }
 .mr-public .membership-required span { color:inherit; }
 .mr-public .membership-rail-help { border-top-color:#ffffff26; }
 .mr-public .membership-rail-help a { color:var(--gold-on-dark); }
}
@media(max-width:900px) {
 .mr-public .membership-workflow { grid-template-columns:190px minmax(0,1fr); }
 #content.mr-public .sr-section { padding:28px 26px 8px; }
 #content.mr-public .membership-workflow .sr-submit-row { padding:18px 26px; }
 #content.mr-public .membership-workflow-progress { padding:24px 12px; }
}
@media(max-width:767.98px) {
 #content.mr-public .membership-layout { width:calc(100% - 24px); margin:20px auto 36px; }
 .mr-public .membership-banner { --page-banner-height:190px; --page-banner-padding:28px; }
 .mr-public .membership-banner h1 { font-size:30px; }
 .mr-public .membership-banner .page-banner-content > p:last-child { font-size:15px; line-height:1.6; }
 .mr-public .membership-workflow { display:block; }
 /* A compact connected stepper replaces the desktop rail; public pages do not load Bootstrap. */
 #content.mr-public .membership-workflow-progress { padding:16px 12px; border-right:0; border-bottom:1px solid #e2e1da; background:#faf9f6; }
 .mr-public .membership-rail-inner { position:static; display:grid; grid-template-columns:minmax(0,1fr); }
 .mr-public .membership-rail-title { display:none; }
 /* Auto-sized columns keep the public stepper aligned when Single skips the spouse step. */
 .mr-public .membership-workflow-progress nav { position:relative; grid-row:2; grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:0; margin-inline:-6px; }
 .mr-public .membership-workflow-progress nav:before { content:""; position:absolute; top:19px; left:calc(100% / 12); right:calc(100% / 12); height:2px; background:#dce1e8; }
 .mr-public .membership-workflow-progress[data-step-count="5"] nav:before { left:10%; right:10%; }
 #content.mr-public .membership-workflow-progress [data-membership-step],
 #content.mr-public .membership-workflow-progress [data-membership-step]:hover { position:relative; z-index:1; flex-direction:column; justify-content:flex-start; gap:4px; min-height:56px; padding:4px 0; border:0; border-radius:0; background:transparent; color:#566172; text-align:center; }
 #content.mr-public .membership-workflow-progress [data-membership-step]:after { content:attr(data-step-number); font:400 12px/1.3 var(--font-primary); }
 /* Use the shared corner token so the site's square-surface policy preserves these circular markers. */
 .mr-public .membership-step-symbol { --ui-corner-radius:50%; flex:0 0 30px; width:30px; height:30px; border:1px solid #c6ced9; background:#fff; color:#687486; }
 .mr-public .membership-step-symbol .icon { width:14px; height:14px; }
 .mr-public [data-step-state=complete] .membership-step-symbol { background:#e4f2e8; border-color:#92b9a0; color:#2d6845; }
 .mr-public [aria-current=step] .membership-step-symbol { background:var(--navy); border-color:var(--navy); color:#fff; box-shadow:0 0 0 3px #e6e9ef; }
 #content.mr-public .membership-workflow-progress [aria-current=step]:after { color:var(--navy); font-weight:700; }
 .mr-public .membership-step-label { display:none; }
 .mr-public .membership-workflow-progress [role=status] { grid-row:1; display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 4px 12px; }
 .mr-public .membership-progress-name { order:-1; color:var(--navy); font:700 18px/1.3 var(--font-primary); }
 .mr-public .membership-progress-count { --ui-corner-radius:4px; flex:none; padding:4px 8px; background:#eee8dc; color:#705020; font:700 11px/1.5 var(--font-primary); }
 .mr-public .membership-progress-separator { display:none; }
 .mr-public .membership-required { grid-row:3; margin:6px 4px 0; }
 .mr-public .membership-rail-help { display:none; }
 #content.mr-public .sr-section { padding:26px 20px 12px; }
 .mr-public .sr-section-title { margin-bottom:24px; }
 .mr-public .sr-section-title p { font-size:14px; line-height:1.6; }
 .mr-public .membership-group { margin-bottom:26px; }
 .mr-public .membership-group .sr-grid { grid-template-columns:minmax(0,1fr); gap:18px 12px; }
 .mr-public .membership-address .sr-grid { grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr); }
 .mr-public .membership-address .sr-field:has([name="Family.City"]) { grid-column:1 / -1; }
 .mr-public .sr-student-card { padding:16px 12px; }
 #content.mr-public .membership-workflow .sr-submit-row { grid-template-columns:minmax(0,1fr) minmax(0,2fr); position:static; align-items:stretch; gap:12px; padding:16px 20px; }
 #content.mr-public .membership-workflow .sr-submit-row > p { display:none; }
 #content.mr-public .membership-workflow .sr-submit-row > [data-membership-back] { grid-column:1; grid-row:1; }
 #content.mr-public .membership-workflow .sr-submit-row > [data-membership-submit] { grid-column:2; grid-row:1; }
 #content.mr-public .membership-workflow .sr-button { padding-inline:10px; font-size:13px; }
 .mr-public .membership-support { gap:10px; margin:20px 8px 0; }
 .mr-public [data-registration-review] dl { grid-template-columns:1fr; gap:4px; }
 .mr-public [data-registration-review] dd { margin-bottom:10px; }
 .mr-public .membership-review-heading { gap:8px; }
 .mr-public .sr-consent { padding:14px; }
 .mr-public .sr-errors { margin:20px 20px 0; }
}

.mr-public .membership-noscript-note { margin:24px 36px 0; font-size:13px; }
.mr-public .membership-workflow > .membership-noscript-note { display:none; }
.mr-public .membership-workflow > .membership-errors { display:none; grid-column:2; grid-row:1; min-width:0; }
.mr-public .membership-workflow > .membership-errors:has(.validation-summary-errors,[data-client-errors]:not([hidden])) { display:block; }
.mr-public .membership-workflow:has(> .membership-errors .validation-summary-errors,> .membership-errors [data-client-errors]:not([hidden])) > :is([data-family-fields],#membership-confirm) { grid-row:2; }
.mr-public .membership-workflow:has(> .membership-errors .validation-summary-errors,> .membership-errors [data-client-errors]:not([hidden])) > .sr-submit-row { grid-row:3; }

/* Public form validation uses the native constraints; Bootstrap is scoped to the admin portal. */
.mr-public [data-membership-form] [aria-invalid="true"],
.mr-public [data-membership-form] .input-validation-error{border-color:#a52732;box-shadow:0 0 0 1px #a52732}
.mr-public [data-membership-form] .sr-field-error{overflow-wrap:anywhere}

.mr-public .membership-receipt h2 { margin:0 0 12px; font-size:20px; }
/* Keep the shared primary button's label treatment above the legacy registration link rules. */
.mr-public .membership-receipt .button { color:#fff; text-decoration:none; }
.mr-public .membership-receipt .sr-actions { gap:12px; }
.mr-public .membership-receipt-reference { margin:28px 0; padding:22px 18px; border:1px solid #d9dfd8; background:#f6f7f3; }
.mr-public .membership-receipt-reference h2 { font-size:14px; }
.mr-public .membership-receipt-downloads { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px; margin:18px 0 10px; }
/* Public pages share the action palette without loading the admin-only Bootstrap button variants. */
.mr-public .membership-receipt .membership-receipt-download-secondary { background:var(--secondary); border-color:var(--secondary); color:var(--secondary-ink); }
.mr-public .membership-receipt .membership-receipt-download-secondary:is(:hover,:focus-visible) { background:var(--secondary-hover); border-color:var(--secondary-hover-border); color:var(--secondary-ink); }
.mr-public .membership-receipt .membership-receipt-download-secondary:active { background:var(--secondary-active); border-color:var(--secondary-hover-border); }
.mr-public .membership-receipt [data-registration-confirmation] { margin:0 0 10px; font:700 20px/1.5 var(--font-primary); overflow-wrap:anywhere; user-select:all; }
.mr-public .membership-receipt-contacts { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; margin:24px 0 0; }
.mr-public .membership-receipt-contact { min-width:0; padding:20px; border:1px solid #d9dde3; background:#fafaf7; text-align:center; }
.mr-public .membership-receipt-contacts dt { display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:6px; font-size:14px; font-weight:700; }
.mr-public .membership-receipt-contacts dt .icon { color:var(--secondary); }
.mr-public .membership-receipt-contacts dd { margin:0; overflow-wrap:anywhere; }
.mr-public .membership-receipt-contacts a { display:inline-flex; align-items:center; min-height:44px; max-width:100%; font-size:14px; line-height:1.5; }
@media(max-width:767.98px) {
 .mr-public .membership-receipt-contacts { grid-template-columns:minmax(0,1fr); }
 .mr-public .membership-receipt [data-registration-confirmation] { font-size:18px; }
 .mr-public .membership-receipt .sr-actions .button { width:100%; }
 .mr-public .membership-receipt-downloads .button { width:100%; }
}
