/* ABS Site UI: shared look across the site. Colours follow the theme: navy #121823, square corners. */

/* Daily Bible Readings: month buttons, 4 per row, current month tinted. */
.abs-months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 0; }
.abs-months a {
	display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 4px;
	background: #fff; border: 1px solid #d5d9e0; color: #121823; text-decoration: none;
	font-size: 15px; letter-spacing: .04em; line-height: 1.2; text-align: center;
	transition: background-color .15s, color .15s, border-color .15s;
}
.abs-months a:hover, .abs-months a:focus-visible { background: #121823; border-color: #121823; color: #fff; text-decoration: none; }
.abs-months a:focus-visible { outline: 2px solid #121823; outline-offset: 2px; }
.abs-months a.is-now { background: #e6ebf3; border-color: #9aa8bf; font-weight: 700; }
.abs-months a.is-now:hover, .abs-months a.is-now:focus-visible { background: #121823; color: #fff; }
.abs-months p { display: contents; margin: 0; }
.abs-months br { display: none; }

/* Section headings and long prayer text inside content pages (e.g. the Creed on Services). */
.abs-section-title { font-family: "Playfair Display", serif; color: #121823; font-size: 26px; line-height: 1.3; margin: 40px 0 14px; }
.abs-creed { margin: 0 0 24px; }
.abs-creed p { text-align: left; line-height: 1.75; margin: 0; }

/* Footer: the theme's footer row has 300px of empty space above the links. Keep a normal gap. */
#footer > .section.p-t-30 { padding-top: 40px !important; }

/* Sidebar "Listen to Live Radio": the whole widget text is one link to the radio page, blending into the card. */
.abs-radio-link { display: flex; flex-direction: column; gap: 3px; color: #121823 !important; text-decoration: none !important; }
.abs-rl-text { display: contents; }
.abs-rl-btn { display: none; }
.abs-rl-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #c62828; }
.abs-rl-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e53935; animation: abs-rl-pulse 1.6s ease-in-out infinite; }
.abs-rl-title { font-family: "Playfair Display", Georgia, serif; font-size: 19px; line-height: 1.3; transition: color .2s; }
.abs-rl-sub { font-size: 14px; color: #6b6a66; }
.abs-rl-sub::after { content: "\2192"; display: inline-block; margin-left: 5px; transition: transform .2s; }
.abs-radio-link:hover .abs-rl-title, .abs-radio-link:focus-visible .abs-rl-title { color: #3a4a66; }
.abs-radio-link:hover .abs-rl-sub::after { transform: translateX(3px); }
@keyframes abs-rl-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .abs-rl-live::before { animation: none; } }

/* Keep the page from shifting sideways when moving between short and long pages. */
html { scrollbar-gutter: stable; }

/* Top menu (moved here from the old WPCode "Custom CSS" snippet, which is retired). */
.dvt-nav-dropdown { max-height: 400px; overflow-y: auto; background: #fff; box-shadow: 0 3px 0 #979da3 inset, 0 2px 4px -1px rgba(0,0,0,.04), 0 4px 5px 0 rgba(0,0,0,.06), 0 1px 10px 0 rgba(0,0,0,.08); }
.dvt-nav-layout-logo-c-menu-lr .dvt-nav-list > li > a { width: auto; text-align: center; }
.dex_byd { display: flex; align-content: center; justify-content: center; align-items: center; }
.dynamic-page-menu { position: relative; display: flex; height: 100%; padding: 10px; align-content: center; justify-content: center; align-items: center; }
.dynamic-page-menu .menu-title { font-size: 16px; padding: 0 10px; cursor: pointer; }
.dynamic-page-menu:before { content: ""; width: 0; height: 3px; transition: all .3s cubic-bezier(.25,.8,.25,1); left: 50%; top: 0; opacity: 0; background-color: #979da3; position: absolute; transform: translateX(-50%); }
.dynamic-page-menu:hover:before { width: 100%; opacity: 1; }
@media (max-width: 1200px) {
	.dvt-nav-layout-logo-c-menu-lr .dvt-nav-list > li > a { text-align: left; padding-left: 1.5em; }
	.dex_byd { display: none; width: 100%; }
	.dex_byd .dynamic-page-menu { padding-left: 1.3em; width: 100%; }
	.dynamic-page-menu { justify-content: flex-start; flex-direction: column; align-items: flex-start; }
	.dynamic-page-menu .menu-title { padding: 15px 0; }
}

/* Old-style study, hymn, prayer, service and preacher pages: listen/watch buttons and their pop-up
   player (also moved from the retired WPCode snippet; the pop-up script is in site.js). */
.single-divs-preacher .list-group-item { flex-wrap: wrap; padding: 30px; }
.single-divs-preacher .list-group-item:has(.dvt-icon-set-expandable) { flex-wrap: nowrap; }
.single-divs-preacher .dx_media-icons { margin: 0; }
.single-divs-preacher .list-group-item-actions { padding: 0 0 0 15%; }
.single-divs-preacher .list-group-item-content, .single-divs-preacher .list-group-item-prefix { padding: 0 0 9px; }
#dxcpt-preacher-medialinks-modals .modal-content { display: flex; width: 100%; max-width: 700px; aspect-ratio: 16/9; background: transparent; align-items: center; justify-content: center; }
#dxcpt-preacher-medialinks-modals .aud9 .modal-content { height: auto; aspect-ratio: auto; }
.dx_cstom_area .m-b-5 { margin-bottom: 10px !important; }
.dx_media-icons { display: flex; gap: 12px; margin: 21px 0; flex-wrap: wrap; }
a.dx_media_links { display: flex; padding: 5px 19px 3px 15px; border: 1px solid #817979; border-radius: 99em; color: #3d3030; gap: 8px; align-content: center; justify-content: center; align-items: center; }
a.dx_media_links span { display: flex; align-content: center; justify-content: center; align-items: center; }
a.dx_media_links:hover { background: #1a1616; color: #fff; }
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; padding: 4vw; background: rgba(18,24,35,.8); justify-content: center; align-items: center; }
.modal.show { display: flex; }
.modal-content iframe { display: block; width: 100%; height: 100%; box-shadow: rgba(0,0,0,.1) 0 6px 6px -3px, rgba(0,0,0,.1) 0 10px 14px 1px, rgba(0,0,0,.06) 0 4px 18px 3px; background: #000; }
div#audioModal .modal-content { display: flex; width: 100%; height: auto; max-width: 700px; background: transparent; align-items: center; justify-content: center; }
div#videoModal .modal-content { display: flex; width: 100%; max-width: 700px; aspect-ratio: 16/9; background: transparent; align-items: center; justify-content: center; }
.modal .close { position: absolute; top: -47px; right: 3px; color: #fff; border: none; border-radius: 50%; cursor: pointer; opacity: 1; transition: background .2s ease; }
.modal .close span { width: 40px; height: 40px; font-size: 40px; }
audio.dx_audio_pop { width: 73vw; max-width: 700px; }

/* Top menu: the "pages" drop-down list (moved from the retired WPCode snippet). */
.dynamic-page-menu .subpages-list { opacity: 0; max-height: 0; overflow: hidden; transition: all .34s ease-in-out; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #c8bcbc; border-radius: 7px; min-width: 200px; width: 370px; list-style: none; margin: 0; }
.dynamic-page-menu:hover .subpages-list { opacity: 1; max-height: 400px; overflow-y: auto; padding: 3px 3px 20px; transform: translateX(-10%) translateY(0); }
.dynamic-page-menu .subpages-list ul.children { left: 100%; top: 0; list-style: none; padding: 0 8px; flex-wrap: wrap; }
.dynamic-page-menu .subpages-list ul.children li { display: inline-block; border: 1px solid #afa9a9; border-radius: 4px; margin: 5px; min-width: 9ch; text-align: center; }
.dynamic-page-menu .subpages-list ul.children li a { font-size: 15px; font-family: "Alegreya Sans"; margin: 0; vertical-align: middle; }
ul.subpages-list li a { font-size: 17px; margin: 7px; color: rgb(87,94,102); }
.dynamic-page-menu .subpages-list li.page_item a, .dynamic-page-menu .subpages-list li.menu-item-all a { display: block; padding: 7px 10px; }
.dynamic-page-menu .subpages-list li.page_item a:hover, .dynamic-page-menu .subpages-list li.menu-item-all a:hover { background-color: rgb(236,231,232); }
.dynamic-page-menu .subpages-list ul.children li a:hover { background: #4e4949; color: #fff; }
.dynamic-page-menu .subpages-list .children { display: none; opacity: 0; max-height: 0; transition: all .3s ease-in-out; padding-left: 15px; overflow: hidden; }
.dynamic-page-menu .subpages-list li.active > .children { display: block; opacity: 1; max-height: 100%; }
.dynamic-page-menu .subpages-list .page_item_has_children > a::after { content: "\2B9F"; font-size: 12px; margin-left: 5px; display: inline-block; transition: transform .2s; }
.dynamic-page-menu .subpages-list li.active > a::after { transform: rotate(180deg); }
@media (max-width: 1200px) {
	.dynamic-page-menu .subpages-list { position: relative; width: 100%; height: 400px; padding: 0 11px; margin: 0; z-index: 1000; left: 0; transform: none; }
	.dynamic-page-menu:hover .subpages-list { transform: none; }
}

/* First-load fade (the class is set in <head> and removed when the fade ends). */
@keyframes abs-intro { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes abs-intro-fade { from { opacity: 0; } to { opacity: 1; } }
html.abs-intro #content { animation: abs-intro .45s cubic-bezier(.2,.7,.2,1) both; }
html.abs-intro .dvt-nav, html.abs-intro #masthead { animation: abs-intro-fade .35s ease-out both; }
@media (prefers-reduced-motion: reduce) { html.abs-intro #content, html.abs-intro .dvt-nav, html.abs-intro #masthead { animation: none; } }

/* Home: the page title is for the admin list only; the page itself starts with "Verse of The Day". */
.home .entry-header { display: none; }
