/* Castgrove Connect: basic directory styles. Untick "Load the plugin's basic
   directory styles" in Settings → Castgrove Connect once the theme has its own. */
.cgc-directory, .cgc-listing { max-width: 1140px; margin: 0 auto; padding: 24px 20px 48px; }
.cgc-directory__title, .cgc-listing__name { margin: 0 0 6px; }
.cgc-directory__intro { margin: 0 0 16px; opacity: .8; max-width: 62ch; }
.cgc-back { margin: 0 0 8px; }
.cgc-search { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.cgc-search input, .cgc-search select { flex: 1 1 180px; min-width: 0; padding: 8px 10px; }
.cgc-search button { padding: 8px 18px; }
.cgc-clear { align-self: center; }
.cgc-layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; }
.cgc-layout > .cgc-results:only-child { grid-column: 1 / -1; }
.cgc-sidebar h2 { font-size: 1rem; margin: 0 0 8px; }
.cgc-categories { list-style: none; margin: 0; padding: 0; }
.cgc-categories li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; border-radius: 6px; }
.cgc-categories li.is-active { background: rgba(0, 0, 0, .06); font-weight: 600; }
.cgc-count { opacity: .6; font-size: .9em; }
.cgc-total { margin: 0 0 10px; opacity: .75; }
.cgc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cgc-card { border: 1px solid rgba(0, 0, 0, .12); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 6px; background: #fff; min-width: 0; }
.cgc-card.is-featured { border-color: currentColor; }
.cgc-card__link { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.cgc-card__logo { height: 64px; display: flex; align-items: center; }
.cgc-card__logo img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.cgc-initials { width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: rgba(0, 0, 0, .08); }
.cgc-card__name { font-size: 1.05rem; margin: 0; overflow-wrap: anywhere; }
.cgc-card__tagline, .cgc-card__meta { margin: 0; font-size: .92rem; opacity: .8; }
.cgc-badge { align-self: flex-start; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, .07); }
.cgc-pages { margin-top: 22px; }
.cgc-pages .page-numbers { padding: 4px 9px; }
.cgc-listing__layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.cgc-listing__logo img { max-height: 110px; width: auto; }
.cgc-listing__tagline { opacity: .8; margin: 0 0 8px; }
.cgc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.cgc-chips a, .cgc-chips span { font-size: .85rem; padding: 3px 10px; border-radius: 99px; background: rgba(0, 0, 0, .07); color: inherit; text-decoration: none; }
.cgc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 18px; }
.cgc-gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.cgc-listing__facts { border: 1px solid rgba(0, 0, 0, .12); border-radius: 10px; padding: 16px; }
.cgc-listing__facts dt { font-weight: 600; font-size: .85rem; opacity: .7; margin-top: 8px; }
.cgc-listing__facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.cgc-socials a + a { margin-left: 8px; }
.cgc-join { max-width: 760px; }
.cgc-form .cgc-fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.cgc-form legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.cgc-form p { margin: 0 0 12px; }
.cgc-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.cgc-form input[type=text], .cgc-form input[type=email], .cgc-form input[type=tel], .cgc-form select, .cgc-form textarea { width: 100%; padding: 8px 10px; }
.cgc-form .cgc-choice { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 0 0 6px; }
.cgc-checks { margin: 0 0 12px; }
.cgc-label { display: block; font-weight: 600; margin-bottom: 6px; }
.cgc-error { color: #b42318; font-size: .9rem; margin: 4px 0 0; }
.cgc-error--general { margin: 0 0 14px; font-weight: 600; }
.cgc-notice { padding: 16px; border-radius: 10px; background: rgba(0, 0, 0, .05); }
.cgc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) {
	.cgc-layout, .cgc-listing__layout { grid-template-columns: 1fr; }
	.cgc-sidebar { order: 2; }
}
/* Application form layout */
.cgc-join { max-width: 1140px; }
.cgc-join__layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.cgc-join__side { border: 1px solid rgba(0, 0, 0, .12); border-radius: 12px; padding: 18px; position: sticky; top: 20px; }
.cgc-kicker { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 800; margin: 0 0 6px; }
.cgc-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.cgc-checks--scroll { max-height: 220px; overflow-y: auto; border: 1px solid rgba(0, 0, 0, .12); border-radius: 8px; padding: 8px; margin-bottom: 10px; }
.cgc-filter { width: 100%; padding: 8px 10px; margin-bottom: 8px; }
.cgc-hint { font-size: .88rem; opacity: .75; margin: -4px 0 12px; }
.cgc-price strong { font-size: 1.8rem; }
@media (max-width: 860px) { .cgc-join__layout, .cgc-row { grid-template-columns: 1fr; } .cgc-join__side { position: static; } }
/* Member deals, jobs, ribbon cuttings */
.cgc-promotions { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cgc-promo { border: 1px solid rgba(0, 0, 0, .12); border-radius: 10px; padding: 16px; background: #fff; }
.cgc-promo__title { margin: 8px 0 4px; font-size: 1.1rem; }
.cgc-promo__meta { margin: 0 0 8px; font-size: .92rem; opacity: .8; }
/* Member login panel */
.cgc-login-panel { max-width: 560px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 12px; padding: 22px; background: #fff; }
.cgc-login-panel h2 { margin-top: 0; }
.cgc-login-panel__button { display: inline-block; padding: 10px 18px; border-radius: 8px; background: #1f4e8c; color: #fff; text-decoration: none; font-weight: 700; }
.cgc-login-link { margin-top: 12px; }
.cgc-login-link summary { cursor: pointer; }
/* Events: list and calendar */
.cgc-events { display: grid; gap: 14px; }
.cgc-event { display: flex; gap: 16px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 10px; padding: 14px; background: #fff; }
.cgc-event__date { flex: 0 0 64px; text-align: center; border-radius: 8px; background: rgba(0, 0, 0, .06); padding: 8px 0; align-self: flex-start; }
.cgc-event__month { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.cgc-event__day { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.cgc-event__title { margin: 0 0 4px; font-size: 1.1rem; }
.cgc-event__meta { margin: 0 0 6px; opacity: .8; font-size: .92rem; }
.cgc-calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cgc-calendar__head h3 { margin: 0; }
.cgc-calendar__head a { font-size: 1.6rem; text-decoration: none; padding: 0 10px; }
.cgc-calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid rgba(0, 0, 0, .1); border-top: 1px solid rgba(0, 0, 0, .1); }
.cgc-calendar__weekday { font-weight: 700; font-size: .8rem; text-align: center; padding: 6px 0; border-right: 1px solid rgba(0, 0, 0, .1); border-bottom: 1px solid rgba(0, 0, 0, .1); }
.cgc-calendar__cell { min-height: 92px; padding: 4px; border-right: 1px solid rgba(0, 0, 0, .1); border-bottom: 1px solid rgba(0, 0, 0, .1); min-width: 0; }
.cgc-calendar__cell.is-today { background: rgba(0, 0, 0, .04); }
.cgc-calendar__day { font-size: .8rem; font-weight: 700; opacity: .7; }
.cgc-calendar__event { display: block; margin-top: 3px; padding: 2px 5px; border-radius: 4px; font-size: .78rem; background: #1f4e8c; color: #fff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .cgc-calendar__cell { min-height: 56px; } .cgc-calendar__event { font-size: .7rem; } }
/* Board list */
.cgc-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cgc-person { display: flex; gap: 14px; align-items: center; border: 1px solid rgba(0, 0, 0, .12); border-radius: 12px; padding: 14px; background: #fff; }
.cgc-person__image { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(0, 0, 0, .06); }
.cgc-person__image img { width: 100%; height: 100%; object-fit: cover; }
.cgc-person.is-logo .cgc-person__image { border-radius: 10px; background: #fff; border: 1px solid rgba(0, 0, 0, .08); }
.cgc-person.is-logo .cgc-person__image img { object-fit: contain; padding: 4px; box-sizing: border-box; }
.cgc-person__text { display: flex; flex-direction: column; min-width: 0; }
.cgc-person__name { font-weight: 700; }
.cgc-person__title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.cgc-person__business { font-size: .92rem; overflow-wrap: anywhere; }
/* Scholarships */
.cgc-scholarships { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cgc-scholarship { border-radius: 12px; padding: 20px; background: rgba(0, 0, 0, .04); display: flex; flex-direction: column; gap: 6px; }
.cgc-scholarship.is-closed { opacity: .85; }
.cgc-scholarship p { margin: 0; }
.cgc-scholarship__name { margin: 4px 0 0; }
.cgc-scholarship__amount { font-size: 1.6rem; font-weight: 800; }
.cgc-scholarship__amount span { font-size: 1rem; font-weight: 400; }
.cgc-badge--closed { opacity: .7; }
.cgc-fund__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-weight: 700; margin-bottom: 8px; }
.cgc-fund__bar { height: 22px; border-radius: 99px; background: rgba(0, 0, 0, .1); overflow: hidden; }
.cgc-fund__bar span { display: block; height: 100%; border-radius: 99px; background: #1f4e8c; }
.cgc-champions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.cgc-champion a, .cgc-champion > span { display: grid; place-items: center; height: 90px; padding: 10px; border-radius: 10px; background: #fff; border: 1px solid rgba(0, 0, 0, .1); text-align: center; text-decoration: none; color: inherit; box-sizing: border-box; }
.cgc-champion img { max-height: 70px; max-width: 100%; width: auto; object-fit: contain; }
.cgc-recipients__year + .cgc-recipients__year { margin-top: 28px; }
.cgc-recipients__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cgc-recipient { border: 1px solid rgba(0, 0, 0, .12); border-radius: 12px; overflow: hidden; background: #fff; }
.cgc-recipient__photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cgc-recipient__body { padding: 14px; }
.cgc-recipient__body p { margin: 2px 0 0; }
.cgc-recipient__name { margin: 0; }
.cgc-recipient__school, .cgc-recipient__award { font-size: .92rem; opacity: .8; }
