/* COLFC Resources: Faith In Action programs and the community resource directory. */
.cw .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.cw-ico { width: 20px; height: 20px; flex: 0 0 auto; display: block; }

/* Faith In Action */
.cw-fia__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; margin-bottom: clamp(36px, 5vw, 56px); }
.cw-fia__top .cw-head { margin: 0; text-align: left; }
.cw-fia__body .cw-p { margin: 0 0 16px; font-size: 17px; line-height: 1.7; }
.cw-fia__body .cw-p:last-child { margin-bottom: 0; }
.cw-fia__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cw-fia__card { background: #fff; border: 1px solid #ece5f1; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.cw-fia__card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(43, 16, 57, .12); }
.cw-fia__media { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; padding: 22px 28px; background: #fff; border-bottom: 1px solid #f1ecf5; }
.cw img.cw-fia__logo { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.cw-fia__copy { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cw-fia__tag { margin: 0; align-self: flex-start; font: 700 12px/1.3 "DM Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--cw-purple-dark, #2B1039); background: color-mix(in srgb, var(--fia-accent) 18%, #fff); padding: 6px 12px; border-radius: 999px; }
.cw-fia__name { margin: 0; font: 600 22px/1.25 Prompt, "DM Sans", sans-serif; color: var(--cw-heading, #2B1039); }
.cw-fia__text { margin: 0; font: 400 16px/1.65 "DM Sans", sans-serif; color: var(--cw-text, #4a4356); }

/* Directory */
.cw-dir__head .cw-head { margin-bottom: 28px; }
.cw-dir__tools { position: sticky; top: 0; z-index: 5; display: flex; flex-direction: column; gap: 14px; padding: 16px 0 14px; margin-bottom: 18px; background: inherit; }
.cw--cream .cw-dir__tools { background: var(--cw-cream, #F8F5EF); }
.cw--white .cw-dir__tools { background: #fff; }
.admin-bar .cw-dir__tools { top: 32px; }
.cw-dir__search { position: relative; display: block; max-width: 760px; }
.cw-dir__search .cw-ico { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #8a7f96; pointer-events: none; }
.cw-dir__search input { width: 100%; font: 500 17px "DM Sans", sans-serif; color: #2B1039; background: #fff; border: 1px solid #e2d9ea; border-radius: 999px; padding: 17px 22px 17px 54px; box-shadow: 0 6px 20px rgba(43, 16, 57, .06); transition: border-color .2s, box-shadow .2s; }
.cw-dir__search input::placeholder { color: #8f859b; }
.cw-dir__search input:focus { outline: none; border-color: #C9A227; box-shadow: 0 0 0 4px rgba(201, 162, 39, .22); }
.cw-dir__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cw .cw-chip { font: 600 14px/1 "DM Sans", sans-serif; color: #2B1039; background: #fff; border: 1px solid #e2d9ea; border-radius: 999px; padding: 10px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color .2s, border-color .2s, color .2s; }
.cw .cw-chip span { font-size: 12px; font-weight: 700; color: #6d6478; background: #f3eef7; border-radius: 999px; padding: 3px 7px; }
.cw .cw-chip:hover { border-color: #b9a6c9; }
.cw .cw-chip.is-on { background: #2B1039; border-color: #2B1039; color: #fff; }
.cw .cw-chip.is-on span { background: #C9A227; color: #2B1039; }
.cw .cw-chip:focus-visible { outline: 2px solid #C9A227; outline-offset: 2px; }
.cw-dir__status { margin: 0; min-height: 1em; font: 500 14px "DM Sans", sans-serif; color: #6d6478; }
.cw-dir__cats { display: flex; flex-direction: column; gap: 14px; }
.cw-cat { background: #fff; border: 1px solid #ece5f1; border-radius: 18px; overflow: hidden; transition: box-shadow .25s ease, border-color .25s ease; }
.cw-cat[open] { border-color: #dccfe6; box-shadow: 0 18px 40px rgba(43, 16, 57, .08); }
.cw-cat__sum { list-style: none; display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; }
.cw-cat__sum::-webkit-details-marker { display: none; }
.cw-cat__sum:hover .cw-cat__title { color: #6b3a8a; }
.cw-cat__sum:focus-visible { outline: 2px solid #C9A227; outline-offset: -2px; border-radius: 18px; }
.cw-cat__ico { width: 46px; height: 46px; border-radius: 14px; background: #f3eef7; color: #2B1039; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: background-color .25s, color .25s; }
.cw-cat__ico .cw-ico { width: 22px; height: 22px; }
.cw-cat[open] .cw-cat__ico { background: #2B1039; color: #FFD84D; }
.cw-cat__title { flex: 1; min-width: 0; font: 600 clamp(17px, 1.6vw, 20px)/1.3 Prompt, "DM Sans", sans-serif; color: #2B1039; transition: color .2s; }
.cw-cat__count { font: 600 13px "DM Sans", sans-serif; color: #6d6478; white-space: nowrap; }
.cw-cat__chev { color: #6d6478; transition: transform .25s ease; }
.cw-cat[open] .cw-cat__chev { transform: rotate(180deg); }
.cw-cat__panel { padding: 4px 22px 24px; }
.cw-cat__note { display: flex; gap: 12px; background: #f3eef7; color: #3a3446; border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; font: 400 15px/1.6 "DM Sans", sans-serif; }
.cw-cat__note .cw-ico { color: #6b3a8a; margin-top: 2px; }
.cw-cat__note p { margin: 0 0 6px; }
.cw-cat__note p:last-child { margin: 0; }
.cw-cat__note a { color: #6b3a8a; text-decoration: underline; word-break: break-word; }
.cw-cat__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cw-res { border: 1px solid #efe9f3; border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; background: #fdfcfe; transition: border-color .2s, background-color .2s; }
.cw-res:hover { border-color: #d8c9e3; background: #fff; }
.cw-res__name { margin: 0; font: 600 17px/1.35 Prompt, "DM Sans", sans-serif; color: #2B1039; }
.cw-res__desc { margin: 0; font: 400 15px/1.6 "DM Sans", sans-serif; color: #4a4356; }
.cw-res__meta { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font: 500 14px/1.45 "DM Sans", sans-serif; color: #3a3446; }
.cw-res__meta li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.cw-res__meta .cw-ico { width: 16px; height: 16px; color: #8a6aa0; margin-top: 2px; }
.cw-res__meta a, .cw-res__meta span { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.cw-res__meta a:hover { color: #6b3a8a; text-decoration: underline; }
.cw-res__site { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font: 700 13px "DM Sans", sans-serif; letter-spacing: .04em; text-transform: uppercase; color: #2B1039; text-decoration: none; border: 1px solid #C9A227; border-radius: 999px; padding: 9px 14px; transition: background-color .2s; }
.cw-res__site .cw-ico { width: 15px; height: 15px; }
.cw-res__site:hover, .cw-res__site:focus-visible { background: #C9A227; color: #2B1039; }
.cw-res mark { background: rgba(255, 216, 77, .55); color: inherit; border-radius: 3px; padding: 0 1px; }
.cw-dir__empty { margin: 24px 0 0; padding: 22px; text-align: center; background: #fff; border: 1px dashed #d8c9e3; border-radius: 16px; font: 500 16px "DM Sans", sans-serif; color: #4a4356; }
.cw-dir__empty a { color: #6b3a8a; }
.cw-dir__disc { margin: 32px 0 0; font: 400 13px/1.65 "DM Sans", sans-serif; color: #6d6478; max-width: 900px; }
.cw-dir__disc strong { color: #3a3446; }

@media (max-width: 1024px) {
	.cw-fia__top { grid-template-columns: 1fr; }
	.cw-fia__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.cw-fia__grid, .cw-cat__grid { grid-template-columns: 1fr; }
	.cw-dir__tools { position: static; }
	.cw-dir__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
	.cw-dir__chips::-webkit-scrollbar { display: none; }
	.cw .cw-chip { flex: 0 0 auto; }
	.cw-cat__sum { padding: 16px; gap: 12px; }
	.cw-cat__ico { width: 40px; height: 40px; border-radius: 12px; }
	.cw-cat__count { display: none; }
	.cw-cat__panel { padding: 0 14px 18px; }
	.cw-res { padding: 18px; }
	.cw-dir__search input { font-size: 16px; padding: 15px 18px 15px 48px; }
	.cw-dir__search .cw-ico { left: 17px; }
}
@media (prefers-reduced-motion: reduce) { .cw-fia__card, .cw-cat, .cw-cat__chev { transition: none; } .cw-fia__card:hover { transform: none; } }
.cw-dir [hidden] { display: none !important; }
