/* CCF Church — forms, Sound calendar, missionaries. Palette comes from the ccf-fresh theme. */

/* ---------- forms */
.ccf-form button { cursor: pointer; }
.ccf-form button:hover { filter: brightness(1.1); }
.ccf-form .ccf-opt { font-weight: 400; color: var(--wp--preset--color--slate); font-size: .82rem; }
.ccf-form .ccf-check { display: flex; align-items: center; gap: .55rem; font-weight: 500; margin: .2rem 0 1rem; }
.ccf-form .ccf-check input { width: 1.15rem; height: 1.15rem; margin: 0; flex: none; }
.ccf-form .ccf-req { font-size: .82rem; color: var(--wp--preset--color--slate); margin: 0 0 1rem; }
.ccf-form .ccf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ccf-form-error { background: #fdecea; border-left: 4px solid #b3261e; padding: .7rem 1rem; border-radius: 6px; color: #5c1410; }
.ccf-form-done { background: #e8f3ec; border-left: 4px solid var(--wp--preset--color--forest); padding: 1rem 1.2rem; border-radius: 8px; color: var(--wp--preset--color--ink); }
.ccf-form-done strong { display: block; margin-bottom: .2rem; }
.has-forest-background-color .ccf-form-done, .has-forest-deep-background-color .ccf-form-done { color: #1a2320; }

/* ---------- Sound calendar */
.ccf-cal { margin-block: 1rem 2rem; }
.ccf-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ccf-cal-head h3 { margin: 0; font-size: clamp(1.3rem, 3vw, 1.7rem); text-align: center; }
.ccf-cal-btn { display: inline-flex; gap: .4rem; align-items: center; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; padding: .5rem 1rem; text-decoration: none; color: var(--wp--preset--color--ink); font-weight: 600; background: #fff; white-space: nowrap; }
.ccf-cal-btn:hover { border-color: var(--wp--preset--color--redwood); color: var(--wp--preset--color--redwood); }
.ccf-cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; }
.ccf-cal-grid th { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--wp--preset--color--slate); padding: .5rem; text-align: left; border-bottom: 2px solid var(--wp--preset--color--line); }
.ccf-cal-grid td { vertical-align: top; height: 6.2rem; padding: .4rem .5rem; border: 1px solid var(--wp--preset--color--line); font-size: .88rem; }
.ccf-cal-grid td.is-empty { background: var(--wp--preset--color--cream); }
.ccf-cal-grid td.is-today { background: #fdf6e8; box-shadow: inset 0 0 0 2px var(--wp--preset--color--amber); }
.ccf-cal-day { font-weight: 700; color: var(--wp--preset--color--slate); font-size: .85rem; }
.ccf-cal ul { list-style: none; margin: .25rem 0 0; padding: 0; }
.ccf-cal-grid li { margin: 0 0 .3rem; padding: .25rem .4rem; border-radius: 6px; background: #e8f0ec; border-left: 3px solid var(--wp--preset--color--forest); line-height: 1.3; }
.ccf-cal-time { display: block; font-size: .75rem; font-weight: 700; color: var(--wp--preset--color--forest); }
.ccf-cal-who { font-weight: 600; }
.ccf-cal-note { display: block; font-size: .78rem; color: var(--wp--preset--color--slate); }
.ccf-cal-list { display: none; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wp--preset--color--line); }
.ccf-cal-list > li { display: grid; grid-template-columns: 7rem 1fr; gap: .8rem; padding: .7rem .2rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.ccf-cal-list > li.is-today { background: #fdf6e8; }
.ccf-cal-list .ccf-cal-date { font-weight: 700; }
.ccf-cal-list .ccf-cal-time { display: inline; margin-right: .3rem; }
.ccf-cal-list ul { margin: 0; }
.ccf-cal-empty { color: var(--wp--preset--color--slate); }
.ccf-cal-edit { font-size: .85rem; margin-top: 1rem; }
@media (max-width: 700px) {
	.ccf-cal-grid { display: none; }
	.ccf-cal-list { display: block; }
	.ccf-cal-btn-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- missionaries */
.ccf-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--wp--preset--spacing--40, 1.5rem); margin-block: 1rem; }
.ccf-mcard { padding: 1.6rem; position: relative; }
.ccf-mcard h3 { margin: .5rem 0 .2rem; font-size: 1.25rem; }
.ccf-mcard h3 a::before { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.ccf-mcard-loc { font-weight: 700; font-size: .92rem; margin: 0; }
.ccf-mcard-latest { font-size: .85rem; color: var(--wp--preset--color--slate); margin: .35rem 0 0; }
.ccf-mcard-photo { width: 3.2rem; height: 3.2rem; border-radius: 50%; object-fit: cover; }
.ccf-feed-link { font-size: .9rem; }
.ccf-feed-link a[href$=".xml"]::before { content: ""; display: inline-block; width: .8em; height: .8em; margin-right: .4em; border-radius: 2px; background: radial-gradient(circle at 20% 80%, #fff 0 12%, transparent 13%), #e8a33d; vertical-align: -.05em; }

.ccf-mu { margin-block: 1rem; }
.ccf-mu-item { border-bottom: 1px solid var(--wp--preset--color--line); padding-block: 1.4rem; }
.ccf-mu-item h2 { margin: .1rem 0 .8rem; font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.ccf-mu-date { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--redwood); margin: 0; }
.ccf-mu-body > :first-child { margin-top: 0; }
.ccf-mu-body img { max-width: 100%; height: auto; }
.ccf-mu-older { margin-top: 2.2rem; font-size: 1.2rem; }
.ccf-mu-fold { padding-block: 0; }
.ccf-mu-fold summary { cursor: pointer; padding: 1rem .2rem; font-weight: 600; list-style-position: inside; }
.ccf-mu-fold summary .ccf-mu-date { display: inline-block; min-width: 10.5rem; }
.ccf-mu-fold[open] summary { color: var(--wp--preset--color--redwood); }
.ccf-mu-fold .ccf-mu-body { padding: 0 .2rem 1.4rem; }
@media (max-width: 600px) { .ccf-mu-fold summary .ccf-mu-date { display: block; } }
.ccf-gone { color: var(--wp--preset--color--slate); font-size: .9em; }
