/* Church Safety – public pages. Standalone, mobile first, no theme dependency. */
:root {
	--cs-ink: #1b2a3a;
	--cs-muted: #5b6b7b;
	--cs-line: #d9e0e7;
	--cs-bg: #f5f7f9;
	--cs-card: #ffffff;
	--cs-accent: #1d6f6a;
	--cs-accent-ink: #ffffff;
	--cs-accent-text: #1d6f6a;
	--cs-danger: #b3261e;
	--cs-danger-bg: #fdecea;
}
* { box-sizing: border-box; }
body.chsf-public {
	margin: 0;
	background: var(--cs-bg);
	color: var(--cs-ink);
	font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-text-size-adjust: 100%;
}
.chsf-page { max-width: 640px; margin: 0 auto; padding: 0 16px 40px; }
.chsf-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 18px 0 10px; border-bottom: 1px solid var(--cs-line); margin-bottom: 18px; }
.chsf-church { font-weight: 700; color: var(--cs-ink); text-decoration: none; }
.chsf-sub { color: var(--cs-muted); font-size: 0.9em; }
h1 { font-size: 1.55rem; line-height: 1.25; margin: 0 0 10px; }
h2.chsf-heading { font-size: 1.1rem; margin: 26px 0 4px; padding-top: 14px; border-top: 1px solid var(--cs-line); }
.chsf-lead { font-size: 1.05rem; color: var(--cs-muted); margin: 0 0 16px; }
.chsf-emergency { background: var(--cs-danger-bg); border-left: 4px solid var(--cs-danger); padding: 10px 14px; border-radius: 6px; margin: 0 0 18px; }
.chsf-alert { background: var(--cs-danger-bg); color: var(--cs-danger); border: 1px solid #f1b9b4; padding: 10px 14px; border-radius: 6px; margin: 0 0 16px; font-weight: 600; }

.chsf-tiles { display: grid; gap: 12px; margin: 8px 0 20px; }
.chsf-tile { display: block; background: var(--cs-card); border: 1px solid var(--cs-line); border-radius: 10px; padding: 16px 18px; text-decoration: none; color: var(--cs-ink); }
.chsf-tile strong { display: block; font-size: 1.1rem; }
.chsf-tile span { display: block; color: var(--cs-muted); font-size: 0.95rem; margin-top: 2px; }
.chsf-tile:hover, .chsf-tile:focus { border-color: var(--cs-accent); box-shadow: 0 0 0 2px rgba(29, 111, 106, 0.18); }

.chsf-form { background: var(--cs-card); border: 1px solid var(--cs-line); border-radius: 10px; padding: 18px; }
.chsf-field { margin: 0 0 20px; }
.chsf-field label, .chsf-field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.chsf-field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.chsf-field .chsf-help { color: var(--cs-muted); font-size: 0.92rem; margin: -2px 0 8px; }
.chsf-req { color: var(--cs-danger); }
.chsf-field input[type=text], .chsf-field input[type=email], .chsf-field input[type=tel], .chsf-field input[type=number],
.chsf-field input[type=date], .chsf-field input[type=time], .chsf-field input[type=datetime-local],
.chsf-field select, .chsf-field textarea {
	width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #b6c1cc; border-radius: 8px; background: #fff; color: var(--cs-ink);
}
.chsf-field textarea { resize: vertical; min-height: 96px; }
.chsf-field input:focus, .chsf-field select:focus, .chsf-field textarea:focus { outline: 2px solid var(--cs-accent); outline-offset: 1px; }
label.chsf-choice { display: flex; align-items: center; gap: 8px; font-weight: 400; padding: 5px 0; margin: 0 0 2px; border: 0; background: none; cursor: pointer; }
label.chsf-choice input { margin: 0; width: 18px; height: 18px; flex: none; accent-color: var(--cs-accent); cursor: pointer; }
label.chsf-choice:has(input:checked) { font-weight: 600; }
.chsf-place-other { display: none; margin-top: 8px; }
.chsf-place-other.on { display: block; }
.chsf-field.has-error input, .chsf-field.has-error select, .chsf-field.has-error textarea { border-color: var(--cs-danger); }
.chsf-error { color: var(--cs-danger); font-weight: 600; margin: 6px 0 0; }
.chsf-anon { background: #f1f5f8; border-radius: 8px; padding: 4px; }
.chsf-anon label.chsf-choice { margin: 0; }
.chsf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.is-hidden { display: none !important; }

.chsf-btn { display: inline-block; background: var(--cs-accent); color: var(--cs-accent-ink); border: 0; border-radius: 8px; padding: 13px 22px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.chsf-btn:hover { filter: brightness(0.93); }
.chsf-btn-quiet { background: transparent; color: var(--cs-accent-text); border: 1px solid var(--cs-accent-text); }
.chsf-submit { width: 100%; font-size: 1.05rem; }
.chsf-small { color: var(--cs-muted); font-size: 0.88rem; margin: 12px 0 0; }
.chsf-urgent { border-left-color: var(--cs-danger); font-weight: 600; }
.chsf-policy table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 0.95rem; }
.chsf-policy td, .chsf-policy th { border: 1px solid var(--cs-line); padding: 6px 8px; vertical-align: top; }
.chsf-foot { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--cs-line); color: var(--cs-muted); font-size: 0.9rem; }

/* Policy tree */
.chsf-node { background: var(--cs-card); border: 1px solid var(--cs-line); border-radius: 10px; margin: 0 0 10px; padding: 0; }
.chsf-node > summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style-position: inside; }
.chsf-node .chsf-node { margin: 0 12px 10px; border-radius: 8px; }
.chsf-node .chsf-node > summary { font-weight: 600; padding: 10px 12px; }
.chsf-docs { list-style: none; margin: 0; padding: 0 16px 12px; }
.chsf-docs li { padding: 8px 0; border-top: 1px solid var(--cs-line); }
.chsf-docs li:first-child { border-top: 0; }
.chsf-docs a { color: var(--cs-accent-text); text-decoration: none; font-weight: 600; }

/* Equipment checks */
.chsf-ok { background: #e7f4ea; border-left: 4px solid #2e7d32; padding: 10px 14px; border-radius: 6px; margin: 0 0 16px; }
.chsf-check-note { margin-top: 6px; }
.chsf-field .chsf-check-note { display: none; }
.chsf-field:has(input[value=Fail]:checked) .chsf-check-note { display: block; }

.chsf-policylink { margin: 0 0 16px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Branding */
.chsf-logo { display: block; max-height: 44px; width: auto; }
.chsf-btn { color: var(--cs-accent-ink); }
.chsf-btn-quiet { color: var(--cs-accent-text); }


/* Sections and columns */
.chsf-section { border: 1px solid var(--cs-line); border-radius: 10px; padding: 12px 14px 4px; margin: 0 0 18px; background: #fff; }
.chsf-section > summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; padding: 4px 0 10px; }
.chsf-section > .chsf-heading { border-top: 0; padding-top: 0; margin-top: 0; }
.chsf-section-desc { color: var(--cs-muted); margin: -4px 0 12px; font-size: 0.95rem; }
.chsf-cols { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 620px) { .chsf-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chsf-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .chsf-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chsf-col { min-width: 0; }
.chsf-page:has(.chsf-cols) { max-width: 760px; }

/* Bigger Pass / Fail buttons */
.chsf-field:has(input[value=Pass]) fieldset { display: flex; flex-wrap: wrap; gap: 8px; }
.chsf-field:has(input[value=Pass]) legend { width: 100%; }
.chsf-field:has(input[value=Pass]) label.chsf-choice { margin: 0 18px 0 0; }
.chsf-field:has(input[value=Pass]) .chsf-check-note { flex: 1 1 100%; }
input[type=file] { width: 100%; padding: 10px; border: 1px dashed #b6c1cc; border-radius: 8px; background: #fff; }

/* Multi-step */
.chsf-progress { margin: 0 0 16px; }
.chsf-progress-text { font-size: 0.9rem; color: var(--cs-muted); margin-bottom: 6px; }
.chsf-progress-bar { height: 8px; background: var(--cs-line); border-radius: 4px; overflow: hidden; }
.chsf-progress-bar span { display: block; height: 100%; width: 0; background: var(--cs-accent); transition: width 0.25s ease; }
.chsf-steps:not(.chsf-js) .chsf-progress, .chsf-steps:not(.chsf-js) .chsf-step-nav { display: none; }
.chsf-step-title { font-size: 1.15rem; margin: 0 0 14px; }
.chsf-steps.chsf-js .chsf-step-title { display: none; }
.chsf-step[hidden], .chsf-final[hidden] { display: none; }
.chsf-step-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 8px; }
.chsf-step-nav .chsf-btn { flex: 1; }
@media (prefers-reduced-motion: reduce) { .chsf-progress-bar span { transition: none; } }

/* Rating */
.chsf-rating { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.chsf-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chsf-rating label { cursor: pointer; font-size: 2.4rem; line-height: 1; padding: 4px 3px; color: #c3cbd3; margin: 0; display: block; }
.chsf-rating label:hover, .chsf-rating label:hover ~ label, .chsf-rating input:checked ~ label { color: #e8a317; }
.chsf-rating input:focus-visible + label { outline: 2px solid var(--cs-accent); outline-offset: 2px; border-radius: 4px; }
.chsf-rating[data-max="10"] label { font-size: 1.1rem; }
.chsf-rating-ends { display: flex; justify-content: space-between; max-width: 20rem; font-size: 0.85rem; color: var(--cs-muted); }
.chsf-field .chsf-rating label { font-weight: 400; }

/* Signature */
.chsf-sig input[type=text] { margin-bottom: 8px; }
.chsf-sig-pad { display: block; width: 100%; height: 160px; background: #fff; border: 1px dashed #8895a3; border-radius: 8px; touch-action: none; cursor: crosshair; }
.chsf-sig-help { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 0.85rem; color: var(--cs-muted); margin: 6px 0 0; }
.chsf-sig-clear { background: none; border: 1px solid var(--cs-line); border-radius: 6px; padding: 6px 12px; font: inherit; cursor: pointer; color: var(--cs-accent-text); }

/* Phones first */
.chsf-page { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.chsf-top { padding-top: calc(18px + env(safe-area-inset-top)); }
@media (pointer: coarse) { label.chsf-choice { padding: 9px 0; } label.chsf-choice input { width: 22px; height: 22px; } }
.chsf-btn { min-height: 48px; }
.chsf-sig-clear { min-height: 44px; padding: 8px 16px; }
.chsf-now { display: block; margin-top: 8px; min-height: 44px; padding: 8px 14px; font: inherit; background: #fff; border: 1px solid var(--cs-line); border-radius: 8px; color: var(--cs-accent-text); cursor: pointer; }
.chsf-draft { background: #fff8e1; border: 1px solid #f1d98a; border-radius: 8px; padding: 10px 14px; margin: 0 0 16px; font-size: 0.95rem; }
.chsf-draft button { background: none; border: 0; text-decoration: underline; color: var(--cs-accent-text); font: inherit; padding: 8px 4px; min-height: 44px; cursor: pointer; }
.chsf-photo-note { margin: 6px 0 0; }
/* 1-10 scale as big number buttons, five to a row */
.chsf-rating-num { display: grid; grid-template-columns: repeat(var(--chsf-n, 5), 1fr); max-width: 30rem; gap: 8px; flex-direction: initial; }
.chsf-rating-num label { font-size: 1.15rem; text-align: center; min-height: 52px; border: 1px solid #b6c1cc; border-radius: 8px; background: #fff; color: var(--cs-ink); padding: 0; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.chsf-rating-num label:hover, .chsf-rating-num label:hover ~ label { color: var(--cs-ink); }
.chsf-rating-num label, .chsf-rating-num input:checked ~ label, .chsf-rating-num label:hover { color: var(--cs-ink); }
.chsf-rating-num label:hover { border-color: var(--cs-accent); }
.chsf-rating-num input:checked + label, .chsf-rating-num input:checked + label:hover { background: var(--cs-accent); color: var(--cs-accent-ink); border-color: var(--cs-accent); }
.chsf-rating-num input:focus-visible + label { outline: 2px solid var(--cs-accent); outline-offset: 2px; }
.chsf-rating-num + .chsf-rating-ends { max-width: 30rem; }

.chsf-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; line-height: 1.4; }

/* Send-later queue */
.chsf-queue { background: #fff8e1; border: 1px solid #f1d98a; border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; font-size: 0.95rem; }
.chsf-queue p { margin: 0 0 8px; }
.chsf-queue p:last-child { margin: 0; }
.chsf-queue button { min-height: 44px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--cs-accent-text); background: #fff; color: var(--cs-accent-text); font: inherit; margin-right: 8px; cursor: pointer; }
.chsf-queue .chsf-queue-del { border-color: var(--cs-line); color: var(--cs-muted); }
.chsf-queued { background: #fff; border: 1px solid var(--cs-line); border-radius: 10px; padding: 18px; }
.chsf-toast { margin: 0 0 14px; }

/* ---- Landing page (hub) ---- */
.chsf-wide .chsf-page { max-width: 1080px; padding-top: 16px; }
.chsf-embed.chsf-wide .chsf-page { padding-top: 0; }
.chsf-ico { width: 1.4em; height: 1.4em; flex: none; }
.chsf-hero { border-radius: 20px; color: var(--cs-accent-ink); background: var(--cs-accent); background: linear-gradient(135deg, var(--cs-accent) 0%, color-mix(in srgb, var(--cs-accent) 62%, #000) 100%); padding: 28px 20px 22px; margin-bottom: 8px; }
.chsf-hero-in { max-width: 760px; }
.chsf-hero-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; opacity: 0.95; margin-bottom: 14px; }
.chsf-hero-brand img { height: 76px; width: auto; max-width: 240px; object-fit: contain; background: rgba(255,255,255,0.92); border-radius: 8px; padding: 3px; }
.chsf-hero h1 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 10px; color: inherit; letter-spacing: -0.01em; }
.chsf-hero-lead { font-size: 1.08rem; margin: 0 0 20px; opacity: 0.95; max-width: 60ch; }
.chsf-hero-actions { display: grid; gap: 12px; margin-bottom: 14px; }
.chsf-big { display: flex; align-items: center; gap: 14px; background: #fff; color: var(--cs-ink); border-radius: 14px; padding: 16px 18px; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,0.18); min-height: 72px; }
.chsf-big .chsf-ico { width: 2.1em; height: 2.1em; }
.chsf-big strong { display: block; font-size: 1.15rem; }
.chsf-big em { display: block; font-style: normal; color: var(--cs-muted); font-size: 0.95rem; }
.chsf-big:hover, .chsf-big:focus { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,0.24); }
.chsf-sos { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.22); color: inherit; text-decoration: none; border-radius: 12px; padding: 12px 14px; font-size: 0.98rem; min-height: 48px; }
.chsf-sos strong { font-weight: 800; }
.chsf-sec { margin: 34px 0 0; }
.chsf-sec h2 { font-size: 1.45rem; line-height: 1.2; margin: 0 0 6px; }
.chsf-sec-lead { color: var(--cs-muted); margin: 0 0 16px; max-width: 62ch; }
.chsf-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 12px; }
.chsf-card { display: flex; flex-direction: column; gap: 4px; background: var(--cs-card); border: 1px solid var(--cs-line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--cs-ink); }
.chsf-card:hover, .chsf-card:focus { border-color: var(--cs-accent); box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.chsf-card > span:not(.chsf-card-ico) { color: var(--cs-muted); font-size: 0.95rem; }
.chsf-card-ico { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--ic, var(--cs-accent)) 20%, #fff); color: var(--ic, var(--cs-accent-text)); flex: none; margin-bottom: 6px; }
.chsf-tips { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
.chsf-tip { background: var(--cs-card); border: 1px solid var(--cs-line); border-radius: 14px; }
.chsf-tip[open] { border-color: var(--cs-accent); }
.chsf-tip > summary { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; cursor: pointer; list-style: none; min-height: 48px; }
.chsf-tip > summary::-webkit-details-marker { display: none; }
.chsf-tip > summary .chsf-card-ico { margin: 0; }
.chsf-tip-t strong { display: block; font-size: 1.05rem; }
.chsf-tip-t em { display: block; font-style: normal; color: var(--cs-muted); font-size: 0.93rem; margin-top: 2px; }
.chsf-tip ul { margin: 0; padding: 0 18px 16px 52px; }
.chsf-tip li { margin: 0 0 8px; font-size: 0.97rem; }
.chsf-find { display: grid; gap: 12px; margin-bottom: 14px; }
.chsf-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #b6c1cc; border-radius: 12px; padding: 0 14px; color: var(--cs-muted); }
.chsf-search:focus-within { outline: 2px solid var(--cs-accent); outline-offset: 1px; }
.chsf-search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 16px; padding: 13px 0; min-width: 0; color: var(--cs-ink); }
.chsf-search input:focus { outline: none; }
.chsf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chsf-chip { font: inherit; font-size: 0.93rem; padding: 9px 14px; min-height: 44px; border: 1px solid var(--cs-line); background: #fff; color: var(--cs-ink); border-radius: 999px; cursor: pointer; }
.chsf-chip.on { background: var(--cs-accent); border-color: var(--cs-accent); color: var(--cs-accent-ink); }
.chsf-plist { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-bottom: 14px; }
.chsf-pcard { display: flex; align-items: center; gap: 12px; background: var(--cs-card); border: 1px solid var(--cs-line); border-radius: 12px; padding: 13px 14px; text-decoration: none; color: var(--cs-ink); min-height: 60px; }
.chsf-pcard[hidden] { display: none; }
.chsf-pcard .chsf-ico { width: 1.7em; height: 1.7em; }
.chsf-pcard strong { display: block; font-size: 0.99rem; line-height: 1.3; }
.chsf-pcard em { display: block; font-style: normal; color: var(--cs-muted); font-size: 0.85rem; }
.chsf-pcard:hover, .chsf-pcard:focus { border-color: var(--cs-accent); }
.chsf-none { color: var(--cs-muted); }
.chsf-contacts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.chsf-contact { display: flex; flex-direction: column; gap: 2px; background: var(--cs-card); border: 1px solid var(--cs-line); border-radius: 12px; padding: 14px 16px; color: var(--cs-ink); text-decoration: none; min-height: 48px; }
.chsf-contact span { color: var(--cs-muted); font-size: 0.92rem; }
.chsf-contact strong { font-size: 1.25rem; color: var(--cs-accent-text); }
.chsf-contact-own { grid-column: 1 / -1; border-left: 4px solid var(--cs-accent); }
.chsf-contact-own p { margin: 4px 0 0; }
@media (min-width: 720px) {
	.chsf-hero { padding: 44px 40px 34px; }
	.chsf-hero h1 { font-size: 2rem; }
	.chsf-hero-brand img { height: 92px; max-width: 300px; }
	.chsf-hero-actions { grid-template-columns: 1fr 1fr; max-width: 700px; }
	.chsf-search { max-width: 480px; }
	.chsf-contact-own { grid-column: auto; }
}

.chsf-showall { margin: 0 0 6px; }

/* ---- Inner pages: bar, forms, policy reading ---- */
.chsf-bar { background: var(--cs-accent); color: var(--cs-accent-ink); padding-top: env(safe-area-inset-top); }
.chsf-bar-in { max-width: 640px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.chsf-bar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.chsf-bar-brand { font-weight: 700; min-width: 0; }
.chsf-bar-brand img { height: 34px; width: auto; max-width: 110px; object-fit: contain; background: rgba(255,255,255,0.92); border-radius: 6px; padding: 2px; }
.chsf-bar-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chsf-bar-home { font-size: 0.92rem; background: rgba(0,0,0,0.2); border-radius: 999px; padding: 8px 14px; min-height: 40px; flex: none; }
.chsf-bar-home .chsf-ico { width: 1.15em; height: 1.15em; }
body.chsf-public:not(.chsf-wide) .chsf-page { padding-top: 22px; }
body.chsf-public:not(.chsf-wide) h1 { font-size: 1.8rem; letter-spacing: -0.01em; }
.chsf-form { border-radius: 16px; padding: 20px; box-shadow: 0 2px 12px rgba(20, 40, 60, 0.06); }
.chsf-emergency { border-radius: 12px; }
.chsf-crumb { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0 0 14px; font-size: 0.93rem; }
.chsf-crumb a { color: var(--cs-accent-text); font-weight: 600; text-decoration: none; }
.chsf-crumb span { color: var(--cs-muted); background: #e9eef3; border-radius: 999px; padding: 2px 10px; }
.chsf-policy { background: var(--cs-card); border: 1px solid var(--cs-line); border-radius: 16px; padding: 22px 20px; box-shadow: 0 2px 12px rgba(20, 40, 60, 0.06); line-height: 1.65; overflow-wrap: anywhere; }
.chsf-policy h1 { font-size: 1.6rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 3px solid var(--cs-accent); }
.chsf-policy h2 { font-size: 1.25rem; margin: 26px 0 8px; }
.chsf-policy h3 { font-size: 1.08rem; margin: 20px 0 6px; }
.chsf-policy ul, .chsf-policy ol { padding-left: 1.3em; }
.chsf-policy li { margin: 0 0 6px; }
.chsf-policy table { display: block; overflow-x: auto; }
.chsf-policy th { background: #eef2f6; text-align: left; }
.chsf-sign { margin-top: 18px; }
@media (min-width: 720px) {
	.chsf-bar-in { max-width: 760px; }
	body.chsf-public:not(.chsf-wide) .chsf-page { max-width: 760px; padding-top: 32px; }
	.chsf-policy { padding: 34px 40px; }
}

/* Breadcrumbs, topic pages */
.chsf-crumb { gap: 4px 8px; }
.chsf-crumb i { font-style: normal; color: var(--cs-muted); }
.chsf-crumb b { color: var(--cs-ink); font-weight: 600; overflow-wrap: anywhere; }
.chsf-crumb a { padding: 6px 0; }
.chsf-sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 6px; }
.chsf-sec-head h2 { margin: 0; }
.chsf-sm { padding: 9px 16px; font-size: 0.93rem; min-height: 44px; display: inline-flex; align-items: center; }
.chsf-cards-tight { margin-bottom: 18px; }
.chsf-plist-one { grid-template-columns: 1fr; }

/* ---- Fillable documents ---- */
.chsf-fill { margin: 0; }
.chsf-fillhint { background: color-mix(in srgb, var(--cs-accent) 10%, #fff); border-left: 4px solid var(--cs-accent); border-radius: 10px; padding: 12px 14px; margin: 0 0 18px; font-size: 0.97rem; }
.chsf-tick { display: inline-flex; align-items: center; gap: 6px; margin: 0 16px 4px 0; padding: 3px 0; min-height: 0; border: 0; background: none; font-weight: 400; line-height: 1.3; cursor: pointer; }
.chsf-tick input { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--cs-accent); cursor: pointer; }
.chsf-tick:has(input:checked) { font-weight: 600; }
td .chsf-tick:last-child, p .chsf-tick:last-child { margin-bottom: 0; }
/* Fingers need a bigger target than a mouse, without drawing a box round every answer. */
@media (pointer: coarse) { .chsf-tick { padding: 9px 0; margin-right: 18px; } .chsf-tick input { width: 20px; height: 20px; } }
.chsf-fill input.chsf-blank, .chsf-fill textarea.chsf-blank { width: 100%; max-width: 100%; min-width: 7em; font: inherit; font-size: 16px; padding: 10px 12px; min-height: 44px; border: 1px solid #b6c1cc; border-radius: 8px; background: #fff; color: var(--cs-ink); }
.chsf-fill textarea.chsf-blank { resize: vertical; min-height: 88px; }
.chsf-fill input.chsf-blank:focus, .chsf-fill textarea.chsf-blank:focus { outline: 2px solid var(--cs-accent); outline-offset: 1px; }
.chsf-fillsend { margin-top: 28px; padding-top: 6px; border-top: 3px solid var(--cs-accent); }
.chsf-fillsend .chsf-field input { width: 100%; font: inherit; font-size: 16px; padding: 12px; border: 1px solid #b6c1cc; border-radius: 8px; }
.chsf-fillmore { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
@media (max-width: 1040px) {
	.chsf-policy table.chsf-rt, .chsf-policy table.chsf-rt tbody, .chsf-policy table.chsf-rt thead, .chsf-policy table.chsf-rt tr, .chsf-policy table.chsf-rt td, .chsf-policy table.chsf-rt th { display: block; width: 100%; }
	.chsf-policy table.chsf-rt tr:first-child { display: none; }
	.chsf-policy table.chsf-rt tr { border: 1px solid var(--cs-line); border-radius: 12px; margin: 0 0 12px; padding: 4px 12px 10px; background: #fff; }
	.chsf-policy table.chsf-rt td, .chsf-policy table.chsf-rt th { border: 0; padding: 6px 0; }
	.chsf-policy table.chsf-rt td:first-child { font-weight: 700; padding-top: 10px; }
	.chsf-policy table.chsf-rt td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: 0.8rem; color: var(--cs-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 2px; }
	.chsf-policy table.chsf-rt td:empty { display: none; }
}
@media print {
	body.chsf-public { background: #fff; font-size: 11pt; }
	.chsf-bar, .chsf-crumb, .chsf-fillhint, .chsf-fillsend, .chsf-foot, .chsf-btn, .chsf-queue-banner, .chsf-draftnote { display: none !important; }
	.chsf-page { max-width: none; padding: 0; }
	.chsf-policy { border: 0; box-shadow: none; padding: 0; }
	.chsf-policy table.chsf-rt, .chsf-policy table.chsf-rt tbody, .chsf-policy table.chsf-rt tr, .chsf-policy table.chsf-rt td { display: revert; }
	.chsf-policy table.chsf-rt tr:first-child { display: table-row; }
	.chsf-policy table.chsf-rt td[data-label]::before { content: none; }
	.chsf-tick { margin-right: 18px; break-inside: avoid; }
	.chsf-tick span { margin-left: 4px; }
	.chsf-fill input.chsf-blank, .chsf-fill textarea.chsf-blank { border: 0; border-bottom: 1px solid #555; border-radius: 0; background: transparent; min-height: 0; padding: 2px 0; }
	.chsf-policy tr { break-inside: avoid; }
}

.chsf-policy td p:has(> .chsf-tick:only-child) { display: inline-block; margin: 0 2px 0 0; }

/* Embedded in a page of the church's own site: let that page's background show through. */
body.chsf-public.chsf-embed { background: transparent; }

/* Fillable documents use the width of the screen, so tables are not squeezed. */
@media (min-width: 721px) {
	body.chsf-public:not(.chsf-wide) .chsf-page:has(.chsf-fill) { max-width: 1120px; }
	.chsf-bar:has(+ .chsf-page .chsf-fill) .chsf-bar-in { max-width: 1120px; }
}
@media (min-width: 1041px) {
	.chsf-policy table.chsf-rt td:first-child { min-width: 9em; }
	.chsf-policy table.chsf-rt td.chsf-opts-long, .chsf-policy table.chsf-rt td.chsf-opts-short { white-space: nowrap; }
	.chsf-policy table.chsf-rt td:has(input[type=date]) { min-width: 9.5em; }
	.chsf-policy td p:has(> .chsf-tick:only-child) { display: inline-block; margin: 0 2px 0 0; }
	.chsf-policy table { table-layout: auto; }
}


/* Compact fields inside checklist rows, lined up with the ticks. */
@media (min-width: 1041px) {
	.chsf-policy table.chsf-rt td { vertical-align: middle; }
	.chsf-fill table.chsf-rt input.chsf-blank { min-height: 34px; padding: 6px 10px; }
}


/* Good is green, Fair is black, Poor is red. The same for Pass and Fail on equipment checks. */
.chsf-tick:has(input[value="Good" i]), label.chsf-choice:has(input[value="Good" i]), label.chsf-choice:has(input[value="Pass" i]) { color: #1b7a3a; }
.chsf-tick:has(input[value="Fair" i]), label.chsf-choice:has(input[value="Fair" i]) { color: #111; }
.chsf-tick:has(input[value="Poor" i]), label.chsf-choice:has(input[value="Poor" i]), label.chsf-choice:has(input[value="Fail" i]) { color: var(--cs-danger); }

.chsf-ico { stroke-width: 2.1; }
.chsf-card-ico .chsf-ico { width: 1.55em; height: 1.55em; }
.chsf-tip[open] { border-color: var(--cs-line); }

/* Graded scale: green through amber to red. --g is the hue, 130 (green) down to 0 (red). */
.chsf-graded label { border-color: hsl(var(--g) 45% 55%); background: hsl(var(--g) 70% 95%); }
.chsf-graded label:hover { border-color: hsl(var(--g) 55% 38%); }
.chsf-graded input:checked + label, .chsf-graded input:checked + label:hover { background: hsl(var(--g) 78% 38%); border-color: hsl(var(--g) 78% 38%); color: #fff; }
.chsf-graded input:focus-visible + label { outline-color: hsl(var(--g) 78% 38%); }
.chsf-rw { display: block; font-size: 0.62rem; font-weight: 500; line-height: 1.15; margin-top: 3px; padding: 0 1px; overflow-wrap: break-word; word-break: normal; }
.chsf-rating-num label:has(.chsf-rw) { flex-direction: column; min-height: 64px; padding: 6px 0; }

.chsf-big-forms { background: rgba(255,255,255,0.94); }
@media (min-width: 640px) { .chsf-big-forms { grid-column: 1 / -1; } }
.chsf-fgroup[hidden], .chsf-fcard[hidden] { display: none; }
.chsf-fgroup .chsf-heading { margin-top: 22px; }
.chsf-pcard em { display: block; font-style: normal; color: var(--cs-muted); font-size: 0.9rem; font-weight: 400; }

/* Hero polish (0.31.0) */
.chsf-hero { position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.chsf-hero::before { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 68%); pointer-events: none; }
.chsf-hero::after { content: ""; position: absolute; left: -90px; bottom: -150px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.10); box-shadow: 0 0 0 38px rgba(255,255,255,0.03); pointer-events: none; }
.chsf-hero-in { position: relative; z-index: 1; }
.chsf-hero-brand img { background: #fff; border-radius: 12px; padding: 8px 12px; box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.chsf-hero h1 { font-weight: 800; letter-spacing: -0.02em; }
.chsf-hero-lead { line-height: 1.5; opacity: 0.92; }
.chsf-big { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.chsf-big::after { content: "\203A"; margin-left: auto; font-size: 1.8rem; line-height: 1; color: var(--cs-muted); opacity: 0.7; }
.chsf-big:hover::after, .chsf-big:focus::after { opacity: 1; transform: translateX(2px); }
.chsf-sos { background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22); width: fit-content; max-width: 100%; padding: 10px 16px; border-radius: 14px; }
@media (min-width: 900px) {
	.chsf-hero { padding: 56px 56px 52px; }
	.chsf-hero-in { max-width: none; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "brand actions" "title actions" "lead actions" "sos actions"; column-gap: 64px; align-content: center; }
	.chsf-hero-brand { grid-area: brand; }
	.chsf-hero h1 { grid-area: title; font-size: 2.8rem; line-height: 1.08; margin-bottom: 16px; }
	.chsf-hero-lead { grid-area: lead; font-size: 1.2rem; margin-bottom: 28px; }
	.chsf-sos { grid-area: sos; align-self: start; }
	.chsf-hero-actions { grid-area: actions; grid-template-columns: 1fr; max-width: none; align-self: center; gap: 14px; margin: 0; }
	.chsf-big { min-height: 84px; padding: 18px 22px; }
	.chsf-big-forms { grid-column: auto; }
}

/* Emergency line in red (0.31.1) */
.chsf-sos { background: #b3261e; border: 1px solid rgba(255,255,255,0.35); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.22); }
.chsf-sos:hover, .chsf-sos:focus { background: #9c1f18; color: #fff; }
.chsf-sos strong { font-weight: 800; }
