/* Home: photo header */
#content.actc-site-content .actc-home-hero { position: relative; display: flex; align-items: flex-end; min-height: 420px; padding: 40px 40px 36px; border-radius: 12px 12px 0 0; overflow: hidden; background: var(--ink); color: #fff; box-sizing: border-box; }
#content.actc-site-content img.actc-home-slide { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; object-fit: cover; object-position: center 45%; }
#content.actc-site-content img.actc-home-slide:not(:first-child) { display: none; }
/* Rotation starts once the script has the first photo; the script loads each later photo shortly before it shows. */
#content.actc-site-content .actc-home-hero.is-rotating img.actc-home-slide { display: block; opacity: 0; animation-name: actcFade; animation-duration: 36s; animation-iteration-count: infinite; }
#content.actc-site-content .actc-home-slide:nth-child(1) { animation-delay: 0s; }
#content.actc-site-content .actc-home-slide:nth-child(2) { animation-delay: -30s; }
#content.actc-site-content .actc-home-slide:nth-child(3) { animation-delay: -24s; }
#content.actc-site-content .actc-home-slide:nth-child(4) { animation-delay: -18s; }
#content.actc-site-content .actc-home-slide:nth-child(5) { animation-delay: -12s; }
#content.actc-site-content .actc-home-slide:nth-child(6) { animation-delay: -6s; }
/* Each photo shows for 6s of a 36s loop and the next fades in over it (negative delays start mid-loop). */
@keyframes actcFade { 0% { opacity: 1; } 16.7% { opacity: 1; } 19.7% { opacity: 0; } 97% { opacity: 0; } 100% { opacity: 1; } }
#content.actc-site-content .actc-home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,20,52,.9) 0%, rgba(17,20,52,.7) 50%, rgba(17,20,52,.3) 85%, rgba(17,20,52,.15) 100%); } /* Reaches the heading's top line, so white text stays readable on light photos. */
#content.actc-site-content .actc-home-hero-text { position: relative; z-index: 1; max-width: 720px; }
#content.actc-site-content .actc-home-hero h1 { margin: 0; padding: 0; color: #fff; font-family: 'Archivo', sans-serif; font-stretch: 115%; font-weight: 800; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.05; text-transform: none; letter-spacing: 0; text-shadow: 0 1px 2px rgba(0,0,0,.5), 0 2px 16px rgba(0,0,0,.45); }
#content.actc-site-content .actc-home-hero p { margin: 12px 0 0; color: #fff; font-size: 18px; line-height: 1.45; }
#content.actc-site-content .actc-home-hero .actc-ra-buttons { margin-top: 20px; }
#content.actc-site-content .actc-home-hero a.actc-ra-button { text-transform: uppercase; letter-spacing: .02em; }
#content.actc-site-content .actc-home-hero a.actc-ra-button.is-secondary { background: transparent; border-color: #fff; color: #fff; }
#content.actc-site-content .actc-home-hero a.actc-ra-button.is-secondary:hover { background: rgba(255,255,255,.12); }

/* Home: sections */
#content.actc-site-content .actc-home-section { margin: 0 0 36px; }
#content.actc-site-content .actc-home-section:last-child { margin-bottom: 0; }
#content.actc-site-content .actc-home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
#content.actc-site-content .actc-home-head h2, #content.actc-site-content h2.actc-home-h2 { margin: 0; padding: 0; color: var(--ink); font-family: 'Archivo', sans-serif; font-stretch: 112%; font-weight: 800; font-size: 26px; line-height: 1.15; text-transform: none; letter-spacing: 0; border: 0; }
#content.actc-site-content .actc-home-head a { color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

/* Home: coming up */
#content.actc-site-content ul.actc-events { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
#content.actc-site-content .actc-events li { margin: 0; padding: 0; list-style: none; background: none; }
#content.actc-site-content .actc-events li::before { display: none; }
#content.actc-site-content .actc-events a { display: flex; gap: 14px; height: 100%; padding: 16px; box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
#content.actc-site-content .actc-events a:hover { border-color: #b9b3a2; }
#content.actc-site-content .actc-event-date { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 64px; border-radius: 8px; background: var(--ink); color: #fff; line-height: 1; }
#content.actc-site-content .actc-event-date b { font-family: 'Archivo', sans-serif; font-stretch: 112%; font-weight: 800; font-size: 26px; }
#content.actc-site-content .actc-event-date small { margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
#content.actc-site-content .actc-event-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#content.actc-site-content .actc-event-name { font-family: 'Archivo', sans-serif; font-stretch: 108%; font-weight: 800; font-size: 18px; line-height: 1.2; }
#content.actc-site-content .actc-event-meta { font-size: 14px; color: var(--muted); line-height: 1.35; }
#content.actc-site-content .actc-event-note { align-self: flex-start; margin-top: 4px; padding: 2px 7px; border-radius: 4px; background: #fbe3e1; color: #8c1d18; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Home: news + Facebook */
#content.actc-site-content .actc-home-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (min-width: 981px) {
	/* News cards share out any spare height so the column ends level with the Facebook panel. */
	#content.actc-site-content .actc-home-split { align-items: stretch; }
	#content.actc-site-content .actc-home-split > section { display: flex; flex-direction: column; }
	#content.actc-site-content .actc-home-split ul.actc-news { flex: 1; grid-auto-rows: 1fr; }
	#content.actc-site-content .actc-home-split ul.actc-news li { display: flex; }
	#content.actc-site-content .actc-home-split ul.actc-news .actc-news-card { flex: 1; }
}

/* News cards (home, news list, more news) */
#content.actc-site-content ul.actc-news { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
#content.actc-site-content .actc-news li { margin: 0; padding: 0; list-style: none; background: none; }
#content.actc-site-content .actc-news li::before { display: none; }
#content.actc-site-content .actc-news-card { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
#content.actc-site-content .actc-news-card:hover { border-color: #b9b3a2; }
#content.actc-site-content a.actc-news-title { color: var(--ink); text-decoration: none; }
#content.actc-site-content a.actc-news-title::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
#content.actc-site-content .actc-news-card:hover a.actc-news-title { text-decoration: underline; text-underline-offset: 3px; }
#content.actc-site-content .actc-news-excerpt a { position: relative; z-index: 1; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
#content.actc-site-content img.actc-news-thumb { flex: none; order: 2; width: 96px; height: 96px; object-fit: contain; border-radius: 6px; background: #fff; }
#content.actc-site-content .actc-news-text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#content.actc-site-content .actc-news-kicker { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
#content.actc-site-content .actc-news-title { font-family: 'Archivo', sans-serif; font-stretch: 108%; font-weight: 800; font-size: 20px; line-height: 1.2; }
#content.actc-site-content .actc-news-excerpt { font-size: 15px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
#content.actc-site-content .actc-home ul.actc-news .actc-news-card { padding: 18px 18px 20px; }
#content.actc-site-content .actc-home img.actc-news-thumb { width: 120px; height: 120px; }
#content.actc-site-content .actc-home .actc-news-excerpt { font-size: 16px; line-height: 1.55; }
#content.actc-site-content ul.actc-news.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#content.actc-site-content ul.actc-news.is-grid .actc-news-card { flex-direction: column; height: 100%; box-sizing: border-box; }
#content.actc-site-content ul.actc-news.is-grid img.actc-news-thumb { order: 0; width: 100%; height: 130px; padding: 6px 0; box-sizing: border-box; }

/* Facebook panel */
#content.actc-site-content .actc-fb { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
#content.actc-site-content .actc-fb-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
#content.actc-site-content a.actc-fb-head:hover { background: #faf8f3; }
#content.actc-site-content a.actc-fb-head:hover b { text-decoration: underline; }
#content.actc-site-content .actc-fb-head img { width: 40px; height: 40px; border-radius: 50%; }
#content.actc-site-content .actc-fb-head b { display: block; font-family: 'Archivo', sans-serif; font-stretch: 108%; font-weight: 800; font-size: 17px; line-height: 1.2; }
#content.actc-site-content .actc-fb-head .actc-fb-badge { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #1877f2; color: #fff; }
#content.actc-site-content ul.actc-fb-posts { margin: 0; padding: 0; list-style: none; }
#content.actc-site-content .actc-fb-posts li { margin: 0; padding: 0; list-style: none; background: none; border-bottom: 1px solid var(--line); }
#content.actc-site-content .actc-fb-posts li:last-child { border-bottom: 0; }
#content.actc-site-content .actc-fb-posts li::before { display: none; }
#content.actc-site-content .actc-fb-posts a { display: block; padding: 14px 16px 16px; color: var(--ink); text-decoration: none; }
#content.actc-site-content .actc-fb-posts a:hover { background: #faf8f3; }
#content.actc-site-content .actc-fb-posts img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin: 0 0 10px; border-radius: 8px; background: var(--cream); }
#content.actc-site-content .actc-fb-date { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
#content.actc-site-content .actc-fb-text { display: block; font-size: 15px; line-height: 1.5; }
#content.actc-site-content .actc-fb-foot { padding: 12px 16px 16px; }
#content.actc-site-content .actc-fb-foot a.actc-ra-button { display: flex; justify-content: center; gap: 8px; align-items: center; background: #1877f2; border-color: #1877f2; color: #fff; }
#content.actc-site-content .actc-fb-fallback { padding: 12px 16px; }

/* Home: newsletter band */
#content.actc-site-content .actc-home-signup { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: center; padding: 22px 28px; border-radius: 12px; background: var(--ink); color: #fff; }
#content.actc-site-content .actc-home-signup h2 { margin: 0 0 4px; padding: 0; color: #fff; font-family: 'Archivo', sans-serif; font-stretch: 112%; font-weight: 800; font-size: 24px; text-transform: none; letter-spacing: 0; border: 0; }
#content.actc-site-content .actc-home-signup p { margin: 0; color: #c9cbe4; font-size: 16px; line-height: 1.5; }
#content.actc-site-content .actc-home-signup p a { color: #fff; font-weight: 700; }
#content.actc-site-content .actc-home-signup p.actc-ra-buttons { margin: 0; flex-wrap: nowrap; }
#content.actc-site-content .actc-home-signup p.actc-ra-buttons a { white-space: nowrap; }
#content.actc-site-content .actc-home-signup a.actc-ra-button.is-secondary { background: transparent; border-color: #fff; color: #fff; }
#content.actc-site-content .actc-home-signup a.actc-ra-button.is-secondary:hover { background: rgba(255,255,255,.12); }
#content.actc-site-content .actc-home-signup div.mailpoet_form_shortcode { max-width: none; margin: 0; padding: 0 !important; background: none; border: 0; }
#content.actc-site-content .actc-home-signup .mailpoet_form_shortcode h2.mailpoet-heading { display: none; }
#content.actc-site-content .actc-home-signup .mailpoet_form_shortcode form.mailpoet_form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#content.actc-site-content .actc-home-signup .mailpoet_form_shortcode .mailpoet_paragraph { margin: 0 !important; }
#content.actc-site-content .actc-home-signup .mailpoet_form_shortcode .mailpoet_paragraph:first-of-type { grid-column: 1 / -1; }
#content.actc-site-content .actc-home-signup .mailpoet_form_shortcode input.mailpoet_text { border-color: transparent !important; }
#content.actc-site-content .actc-home-signup .mailpoet_form_shortcode .mailpoet_paragraph:last-of-type { grid-column: 1 / -1; }
#content.actc-site-content .actc-home-signup .mailpoet_form_shortcode input.mailpoet_submit { margin: 0 !important; }
#content.actc-site-content .actc-home-signup .mailpoet_form_shortcode .mailpoet_message, #content.actc-site-content .actc-home-signup .mailpoet_form_shortcode .mailpoet_form_loading { grid-column: 1 / -1; }
#content.actc-site-content .actc-home-signup .mailpoet_validate_success { color: #9be7c4 !important; }
#content.actc-site-content .actc-home-signup .parsley-errors-list, #content.actc-site-content .actc-home-signup .mailpoet_validate_error { color: #ffb4ae !important; }

#content.actc-site-content .actc-home-quick ul.actc-pub-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* News list + post */
#content.actc-site-content .actc-fp-hero .actc-news-meta { margin: 12px 0 0; font-size: 15px; color: #c9cbe4; }
#content.actc-site-content .actc-fp-hero .actc-news-meta a { color: #fff; }
#content.actc-site-content .actc-pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
#content.actc-site-content .actc-pager a, #content.actc-site-content .actc-pager span { display: inline-flex; align-items: center; min-width: 44px; height: 44px; padding: 0 14px; box-sizing: border-box; justify-content: center; border: 2px solid var(--ink); border-radius: 6px; color: var(--ink); font-weight: 700; text-decoration: none; }
#content.actc-site-content .actc-pager .current { background: var(--ink); color: #fff; }
#content.actc-site-content .actc-pager .dots { border-color: transparent; }
#content.actc-site-content .actc-pager a:hover { background: var(--cream); }
#content.actc-site-content .actc-news-search { display: flex; gap: 10px; max-width: 560px; margin: 0 0 24px; }
#content.actc-site-content .actc-news-search input[type=search] { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 2px solid var(--line); border-radius: 8px; font: 17px 'Public Sans', sans-serif; color: var(--ink); background: #fff; box-shadow: none; }
#content.actc-site-content .actc-news-search button { height: 48px; padding: 0 22px; border: 0; border-radius: 6px; background: var(--yellow); color: var(--ink); font: 800 16px 'Public Sans', sans-serif; cursor: pointer; }
#content.actc-site-content .actc-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; }
#content.actc-site-content .actc-post-nav li { margin: 0; list-style: none; background: none; }
#content.actc-site-content .actc-post-nav li::before { display: none; }
#content.actc-site-content .actc-post-nav a { display: block; height: 100%; padding: 14px 16px; box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
#content.actc-site-content .actc-post-nav a:hover { border-color: #b9b3a2; }
#content.actc-site-content .actc-post-nav small { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
#content.actc-site-content .actc-post-nav .is-next { text-align: right; }
#content.actc-site-content .actc-more-news { margin-top: 36px; }

@media (max-width: 980px) {
	#content.actc-site-content ul.actc-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#content.actc-site-content .actc-home-split { grid-template-columns: minmax(0, 1fr); }
	#content.actc-site-content ul.actc-news.is-grid { grid-template-columns: 1fr; }
	#content.actc-site-content ul.actc-news.is-grid .actc-news-card { flex-direction: row; }
	#content.actc-site-content ul.actc-news.is-grid img.actc-news-thumb { order: 2; width: 96px; height: 96px; }
	#content.actc-site-content .actc-home-signup { grid-template-columns: 1fr; }
	#content.actc-site-content .actc-home-signup p.actc-ra-buttons { flex-wrap: wrap; }
	#content.actc-site-content .actc-home-quick ul.actc-pub-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	#content.actc-site-content .actc-home-hero { min-height: 340px; padding: 24px 20px; border-radius: 0; }
	#content.actc-site-content .actc-home-hero::after { background: linear-gradient(to top, rgba(17,20,52,.9) 0%, rgba(17,20,52,.75) 55%, rgba(17,20,52,.6) 100%); } /* The text covers most of the photo on phones. */
	#content.actc-site-content ul.actc-events { grid-template-columns: 1fr; }
	#content.actc-site-content img.actc-news-thumb, #content.actc-site-content .actc-home img.actc-news-thumb { width: 72px; height: 72px; }
	#content.actc-site-content ul.actc-news.is-grid img.actc-news-thumb { width: 72px; height: 72px; }
	#content.actc-site-content .actc-home-signup { padding: 20px; border-radius: 10px; }
	#content.actc-site-content .actc-home-signup p.actc-ra-buttons { flex-direction: column; align-items: stretch; }
	#content.actc-site-content .actc-home-signup p.actc-ra-buttons a { text-align: center; }
	#content.actc-site-content .actc-home-signup .mailpoet_form_shortcode form.mailpoet_form { grid-template-columns: 1fr; }
	#content.actc-site-content .actc-post-nav { grid-template-columns: 1fr; }
	#content.actc-site-content .actc-post-nav .is-next { text-align: left; }
	#content.actc-site-content .actc-home-head { flex-direction: column; gap: 4px; }
	#content.actc-site-content .actc-home-quick ul.actc-pub-cards { grid-template-columns: 1fr; }
}