/*
 * Page CSS that live printed as inline <style> blocks in its templates. On the Bricks build those
 * blocks were "Chamberlains raw HTML" elements, which show as code in the builder; the static rules
 * live here instead. Loaded last (inc/assets.php), where live's inline blocks sat after every
 * stylesheet. Page scoping uses :where() so it adds no specificity: the rules win and lose exactly
 * where live's unscoped inline rules did.
 *
 * Per-page banner images are not here: they're each banner element's ::after background in Bricks
 * (s_bg() in tools/bricks/chamberlains-lib.php), edited in Style > Background with ::after selected.
 */

/* ---------- Numbered option boxes: Payments, e-Services (live payments.php / e-services.php) ---------- */
.payment-option-box1::before { content: "01"; }
.payment-option-box2::before { content: "02"; }
.payment-option-box3::before { content: "03"; }
.payment-option-box4::before { content: "04"; }

/* ---------- Contact Us banner (live contact.php) ----------
 * Live wrote this nested inside the banner-image rule; WP Rocket's used-CSS drops nested CSS, so on
 * live it currently does nothing (PLAN.md: re-check /contact-us/ at 1024 after go-live). */
@media (max-width: 1400px) {
	.contact-banner::after { background-position: center !important; }
}

/* ---------- Events and Podcasts filter boxes (end of live events.php / podcasts.php) ---------- */
:where(.page-template-events, .page-template-podcasts) .search_section { position: relative; width: 100%; max-width: 250px; }
:where(.page-template-events, .page-template-podcasts) :is(.showtopics, .showtype, .showyear, .showmonth) { background-color: #f1f1f1; padding: 10px 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; border-radius: 5px; transition: background-color 0.3s; }
:where(.page-template-events, .page-template-podcasts) :is(.showtopics, .showtype, .showyear, .showmonth):hover { background-color: #e0e0e0; }
:where(.page-template-events, .page-template-podcasts) :is(.showtopics, .showtype, .showyear, .showmonth) i { font-size: 10px; margin-left: 10px; }
:where(.page-template-events, .page-template-podcasts) .showme_border { font-weight: bold; color: #0066cc; }
:where(.page-template-events, .page-template-podcasts) .list_cat { display: none; position: absolute; background-color: #fff; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); width: 100%; top: 100%; left: 0; border-radius: 5px; overflow: hidden; margin-top: 5px; z-index: 100; }
:where(.page-template-events, .page-template-podcasts) .list_cat li { padding: 10px; border-bottom: 1px solid #ddd; cursor: pointer; transition: background-color 0.3s; }
:where(.page-template-events, .page-template-podcasts) .list_cat li:hover { background-color: #f5f5f5; }
:where(.page-template-events, .page-template-podcasts) .list_cat li.active a { color: #0066cc; }
:where(.page-template-events, .page-template-podcasts) :is(.showtopics, .showtype, .showyear, .showmonth).active { background-color: #e0f7ff; }
:where(.page-template-events, .page-template-podcasts) .show-all-btn { background-color: #0066cc; color: #fff; border: none; padding: 10px 15px; font-size: 14px; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; }
:where(.page-template-events, .page-template-podcasts) .show-all-btn:hover { background-color: #005bb5; }
:where(.page-template-events, .page-template-podcasts) .allres { font-size: 14px; color: #0066cc; cursor: pointer; }
@media (max-width: 768px) {
	:where(.page-template-events, .page-template-podcasts) .search_section { width: 100%; }
}

/* ---------- Podcast episode (live single.php) ---------- */
:where(.single-podcast) .nav-links { display: flex; }

/* ---------- Online Wills: live's temporary maintenance popup (remove with it, 58-pages.php) ---------- */
.ow-maintenance-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 99999; display: none; align-items: center; justify-content: center; padding: 20px; }
.ow-maintenance-overlay.is-open { display: flex; }
.ow-maintenance-box { position: relative; background: #fff; max-width: 480px; width: 100%; border-radius: 8px; padding: 40px 32px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.ow-maintenance-box h3 { margin: 0 0 16px; }
.ow-maintenance-box p { margin: 0; }
.ow-maintenance-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #333; }
