/* WordPress and BeMobile integration layer. Durable design remains in site.css. */

html {
  background: var(--ink);
}

body.bemobile {
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif) !important;
  font-size: 20px !important;
  line-height: 1.65 !important;
}

body.bemobile #content,
body.bemobile .snap-content {
  min-height: 100vh;
  background: var(--paper);
  box-shadow: none;
}

body.bemobile .content {
  min-height: 1px;
}

/*
 * Managed Embassy layouts already provide their own responsive section
 * gutters. Remove BeMobile's outer 20px content padding so full-bleed color,
 * image, and footer sections reach the viewport edges without a white rail.
 */
body.eoy-managed-page #content > .content,
body.eoy-managed-404 #content > .content {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.admin-bar.eoy-managed-page #content,
body.admin-bar.eoy-managed-404 #content {
  padding-bottom: 0;
}

body.eoy-managed-page .content > p:empty,
body.eoy-managed-page .content > br {
  display: none;
}

body.eoy-managed-page .content > main {
  display: block;
}

#header-fixed {
	display: block !important;
	height: 72px !important;
	background: rgba(21, 18, 14, 0.96) !important;
	border-bottom: 1px solid rgba(235, 213, 138, 0.2);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
	backdrop-filter: blur(16px);
}

body #header-fixed > .header-logo {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: min(300px, calc(100vw - 176px)) !important;
	height: 72px !important;
	margin: 0 auto !important;
}

body #header-fixed > .header-logo > img {
	width: 100% !important;
	max-width: 300px !important;
	max-height: 48px;
	height: auto !important;
	margin: 0 !important;
	object-fit: contain;
}

#header-fixed .header-icon-left,
#header-fixed .header-icon-right,
#header-fixed .header-icon-two {
	width: 68px !important;
	height: 72px !important;
	line-height: 72px !important;
	color: var(--gold-bright) !important;
	font-size: 17px !important;
	transition: background-color 180ms ease, color 180ms ease;
}

#header-fixed .header-icon-left i,
#header-fixed .header-icon-right i,
#header-fixed .header-icon-two i {
	width: 68px !important;
	height: 72px !important;
	line-height: 72px !important;
}

#header-fixed .header-icon-two {
	left: 68px !important;
}

#header-fixed .header-icon-left:hover,
#header-fixed .header-icon-left:focus-visible,
#header-fixed .header-icon-right:hover,
#header-fixed .header-icon-right:focus-visible,
#header-fixed .header-icon-two:hover,
#header-fixed .header-icon-two:focus-visible {
	background: rgba(235, 213, 138, 0.1);
	color: var(--white) !important;
}

#header-fixed .header-icon-two .fa::before {
	content: "\f003";
}

body.admin-bar #header-fixed {
	top: 32px;
}

.header-menu-overlay {
	height: 71px !important;
	background: transparent !important;
}

.header-menu {
	position: absolute;
	top: 72px !important;
	left: 18px !important;
	width: min(360px, calc(100vw - 36px)) !important;
	margin-top: 0 !important;
	overflow: hidden !important;
	border: 1px solid rgba(235, 213, 138, 0.22) !important;
	background: rgba(21, 18, 14, 0.985) !important;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.header-menu a {
	min-height: 58px;
	padding-right: 22px !important;
	border-bottom-color: rgba(235, 213, 138, 0.13) !important;
	color: rgba(255, 253, 248, 0.82) !important;
	font: 600 11px/58px var(--sans) !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.header-menu a:hover,
.header-menu a:focus-visible,
.header-menu .active-header-item {
	border-bottom-color: var(--gold) !important;
	background: rgba(235, 213, 138, 0.07);
	color: var(--gold-bright) !important;
}

.header-menu a i:first-child {
	width: 56px !important;
	color: var(--gold) !important;
}

.header-menu a i:last-child {
	line-height: 58px !important;
	color: rgba(235, 213, 138, 0.35) !important;
}

.back-to-top-badge {
  display: none !important;
}

.snap-drawer,
.all-elements .snap-drawers,
.all-elements .snap-drawers .snap-drawer {
	background: var(--ink) !important;
	color: var(--paper);
}

.snap-drawer {
	padding-bottom: calc(var(--eoy-audio-height, 0px) + 24px);
	overscroll-behavior: contain;
}

.snap-drawer .sidebar-header,
.snap-drawer .sidebar-logo,
.snap-drawer .sidebar-menu {
  background: transparent !important;
}

.snap-drawer .sidebar-logo {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 112px !important;
	height: auto !important;
	margin: 0 !important;
	padding: 12px 24px 8px !important;
	box-sizing: border-box !important;
	text-align: center !important;
}

.snap-drawer .sidebar-logo > a {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	margin: 0 !important;
}

.snap-drawer .sidebar-logo img {
	display: block !important;
	width: 88px !important;
	height: 88px !important;
	margin: 0 auto !important;
	object-fit: contain;
}

.snap-drawer .sidebar-header {
	display: flex;
	min-height: 56px;
	align-items: center;
	border-bottom: 1px solid rgba(235, 213, 138, 0.12);
}

.snap-drawer .sidebar-header a {
	color: rgba(255, 253, 248, 0.72) !important;
}

.snap-drawer .sidebar-header a:hover,
.snap-drawer .sidebar-header a:focus-visible {
	color: var(--gold-bright) !important;
}

.snap-drawer .sidebar-divider,
.snap-drawer .epsmenu-divider {
	margin: 12px 18px 5px !important;
	padding: 14px 0 7px !important;
	border-color: rgba(235, 213, 138, 0.2) !important;
	color: var(--gold-bright) !important;
  font-family: var(--sans) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
}

.snap-drawer .sidebar-menu a,
.snap-drawer .sidebar-menu a em,
.snap-drawer .menu-item,
.snap-drawer .menu-item em {
  color: rgba(255, 253, 248, 0.86) !important;
  font-family: var(--sans) !important;
  font-size: 12px !important;
  font-style: normal;
  letter-spacing: 0.08em;
	text-transform: uppercase;
}

.snap-drawer .sidebar-menu .menu-item {
	display: flex !important;
	min-height: 49px;
	align-items: center;
	padding: 0 18px 0 10px !important;
	border-bottom: 1px solid rgba(235, 213, 138, 0.075) !important;
}

.snap-drawer .sidebar-menu .menu-item > i:first-child {
	display: grid;
	width: 42px !important;
	height: 42px !important;
	margin-right: 10px;
	place-items: center;
	color: var(--gold) !important;
	font-size: 14px !important;
	line-height: 42px !important;
}

.snap-drawer .sidebar-menu .menu-item > em {
	min-width: 0;
	flex: 1;
}

.snap-drawer .sidebar-menu .menu-item > i:last-child {
	width: 12px !important;
	color: rgba(235, 213, 138, 0.34) !important;
	font-size: 6px !important;
}

.snap-drawer .sidebar-menu a:hover,
.snap-drawer .sidebar-menu .menu-item-active,
.snap-drawer .sidebar-menu .current-menu-item {
  color: var(--gold-bright) !important;
}

.snap-drawer .fa-circle {
	color: var(--gold) !important;
}

.snap-drawer .sidebar-menu .menu-item-active,
.snap-drawer .sidebar-menu .current-menu-item {
	background: linear-gradient(90deg, rgba(201, 168, 76, 0.12), transparent 88%);
}

.snap-drawer .sidebar-menu .menu-item-active > i:last-child,
.snap-drawer .sidebar-menu .current-menu-item > i:last-child {
	color: var(--gold-bright) !important;
	font-size: 8px !important;
}

.snap-drawer .eoy-drawer-close {
	margin-top: 18px;
	border-top: 1px solid rgba(235, 213, 138, 0.16) !important;
	color: rgba(255, 253, 248, 0.64) !important;
}

.container-fullscreen.footer {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--ink) !important;
}

.container-fullscreen.footer > p:empty,
.container-fullscreen.footer > br {
  display: none;
}

.eoy-utility-main {
  min-height: 64vh;
  padding: 150px 0 100px;
  background: var(--paper);
}

.eoy-utility-shell {
  max-width: 1180px;
}

.eoy-utility-header {
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.eoy-utility-content {
  color: var(--ink);
}

.eoy-utility-content a,
.woocommerce a {
  color: var(--gold-deep);
  text-decoration-color: rgba(128, 97, 29, 0.42);
  text-underline-offset: 3px;
}

.eoy-utility-content input,
.eoy-utility-content textarea,
.eoy-utility-content select,
.woocommerce input,
.woocommerce textarea,
.woocommerce select {
  min-height: 46px;
  border: 1px solid rgba(73, 57, 34, 0.26) !important;
  border-radius: 0 !important;
  background: var(--white) !important;
  color: var(--ink) !important;
  font-family: var(--sans) !important;
}

.eoy-utility-content button,
.eoy-utility-content .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.wp-element-button {
  min-height: 46px;
  border: 1px solid var(--gold-deep) !important;
  border-radius: 0 !important;
  background: var(--ink) !important;
  color: var(--white) !important;
  font: 700 11px/1.2 var(--sans) !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.woocommerce table.shop_table,
.woocommerce form.checkout,
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content {
  border-color: var(--line) !important;
  border-radius: 0 !important;
}

.woocommerce table.shop_table th {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.woocommerce table.shop_table td {
  background: rgba(255, 253, 248, 0.6);
  color: var(--ink);
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
  border-top-color: var(--gold);
  background: var(--parchment);
  color: var(--ink);
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  font-family: var(--sans);
}

.eoy-404-hero {
  min-height: 100vh;
}

/* Skin the existing, single Protected Audio instance for the Embassy palette. */
.rjpa-player {
  --rjpa-bg: #15120e;
  --rjpa-panel: #211c15;
  --rjpa-border: rgba(235, 213, 138, 0.24);
  --rjpa-text: #fffdf8;
  --rjpa-muted: rgba(255, 253, 248, 0.64);
  --rjpa-accent: #c9a84c;
  --rjpa-accent-strong: #ebd58a;
  font: 600 13px/1.25 var(--sans) !important;
}

.rjpa-player button {
  font: 700 12px/1 var(--sans) !important;
}

.rjpa-player .rjpa-share {
  font-size: 10px !important;
  line-height: 1 !important;
}

.rjpa-player .rjpa-disclosure {
	font-size: 15px !important;
	line-height: 1 !important;
}

.rjpa-audio-dock-host .rjpa-player .rjpa-disclosure {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 36px !important;
	min-width: 36px !important;
	height: 36px !important;
	min-height: 36px !important;
	padding: 0 !important;
	box-sizing: border-box !important;
	border-radius: 999px !important;
	flex: 0 0 36px !important;
}

.rjpa-audio-dock-host .rjpa-player .rjpa-disclosure > span {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 18px !important;
	max-width: 18px !important;
	height: 10px !important;
	overflow: hidden !important;
	font: 700 9px/1 Arial, sans-serif !important;
	letter-spacing: 0.75px !important;
	text-align: center !important;
}

.rjpa-player button:focus-visible {
  outline: 2px solid var(--gold-bright) !important;
  outline-offset: 2px;
}

@media (max-width: 1040px) {
	.eoy-desktop-header {
		display: none !important;
  }

  .reading-progress {
    z-index: 100010;
  }

	body.eoy-managed-page .home-hero,
  body.eoy-managed-page .page-hero,
  body.eoy-managed-404 .page-hero {
    padding-top: 60px;
  }
}

@media (max-width: 782px) {
	body.admin-bar #header-fixed {
		top: 46px;
	}
}

@media (max-width: 520px) {
	#header-fixed {
		height: 64px !important;
	}

	body #header-fixed > .header-logo {
		width: min(220px, calc(100vw - 144px)) !important;
		height: 64px !important;
	}

	body #header-fixed > .header-logo > img {
		width: 100% !important;
		max-width: 220px !important;
		max-height: 38px;
		margin: 0 !important;
	}

	.rjpa-audio-dock-host .rjpa-player .rjpa-disclosure {
		width: 38px !important;
		min-width: 38px !important;
		height: 38px !important;
		min-height: 38px !important;
		flex-basis: 38px !important;
	}

	#header-fixed .header-icon-left,
	#header-fixed .header-icon-right,
	#header-fixed .header-icon-two,
	#header-fixed .header-icon-left i,
	#header-fixed .header-icon-right i,
	#header-fixed .header-icon-two i {
		width: 48px !important;
		height: 64px !important;
		line-height: 64px !important;
	}

	#header-fixed .header-icon-two {
		left: 48px !important;
	}

	.header-menu-overlay {
		height: 63px !important;
	}

	.header-menu {
		top: 64px !important;
		left: 12px !important;
		width: calc(100vw - 24px) !important;
	}
}

@media (max-width: 760px) {
  body.bemobile {
    font-size: 17px !important;
    line-height: 1.6 !important;
  }

  .eoy-utility-main {
    padding: 118px 0 72px;
  }

  .eoy-utility-header {
    margin-bottom: 34px;
  }

  .woocommerce table.shop_table_responsive tr,
  .woocommerce-page table.shop_table_responsive tr {
    border-bottom: 1px solid var(--line);
  }

  .woocommerce table.shop_table_responsive tr td,
  .woocommerce-page table.shop_table_responsive tr td {
    padding: 12px 14px !important;
  }

  .woocommerce table.shop_table_responsive tr td::before,
  .woocommerce-page table.shop_table_responsive tr td::before {
    color: var(--gold-deep);
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

/*
 * Keep BeMobile's generated global link color from overriding the Embassy
 * palette. These public-surface rules are intentionally contextual: deep gold
 * remains readable on paper, bright gold belongs on dark fields, and footer
 * navigation uses a quiet warm ivory. Component controls are then restored to
 * their designed contrast rather than inheriting the global link color.
 */
body.eoy-managed-page .home-hero .lede {
  color: rgba(255, 253, 248, 0.88);
}

body .snap-content a,
body .snap-content a:visited,
body .snap-content a:hover,
body .snap-content a:active,
body .snap-content a:focus-visible {
  color: var(--gold-deep);
}

body .snap-content .home-hero a,
body .snap-content .home-hero a:visited,
body .snap-content .home-hero a:hover,
body .snap-content .home-hero a:active,
body .snap-content .home-hero a:focus-visible,
body .snap-content .page-hero a,
body .snap-content .page-hero a:visited,
body .snap-content .page-hero a:hover,
body .snap-content .page-hero a:active,
body .snap-content .page-hero a:focus-visible,
body .snap-content .section-dark a,
body .snap-content .section-dark a:visited,
body .snap-content .section-dark a:hover,
body .snap-content .section-dark a:active,
body .snap-content .section-dark a:focus-visible,
body .snap-content .section-green a,
body .snap-content .section-green a:visited,
body .snap-content .section-green a:hover,
body .snap-content .section-green a:active,
body .snap-content .section-green a:focus-visible,
body .snap-content .section-wine a,
body .snap-content .section-wine a:visited,
body .snap-content .section-wine a:hover,
body .snap-content .section-wine a:active,
body .snap-content .section-wine a:focus-visible {
  color: var(--gold-bright);
}

body .snap-content .site-footer a,
body .snap-content .site-footer a:visited {
  color: rgba(255, 253, 248, 0.82);
}

body .snap-content .site-footer a:hover,
body .snap-content .site-footer a:active,
body .snap-content .site-footer a:focus-visible,
body .snap-content .site-footer .footer-identity,
body .snap-content .site-footer .footer-scripture-link,
body .snap-content .site-footer .footer-action {
  color: var(--gold-bright);
}

body .snap-content a.button-gold,
body .snap-content a.button-gold:visited,
body .snap-content a.button-gold:hover,
body .snap-content a.button-gold:active,
body .snap-content a.button-gold:focus-visible,
body .snap-content .site-footer a.footer-action-primary,
body .snap-content .site-footer a.footer-action-primary:visited,
body .snap-content .site-footer a.footer-action-primary:hover,
body .snap-content .site-footer a.footer-action-primary:active,
body .snap-content .site-footer a.footer-action-primary:focus-visible {
  color: var(--ink);
}

body .snap-content a.button-ink,
body .snap-content a.button-ink:visited,
body .snap-content a.button-ink:hover,
body .snap-content a.button-ink:active,
body .snap-content a.button-ink:focus-visible {
  color: var(--white);
}

body .snap-content a.button-ghost,
body .snap-content a.button-ghost:visited,
body .snap-content a.button-ghost:hover,
body .snap-content a.button-ghost:active,
body .snap-content a.button-ghost:focus-visible {
  color: var(--gold-bright);
}

body .snap-content a.button-line,
body .snap-content a.button-line:visited,
body .snap-content a.button-line:hover,
body .snap-content a.button-line:active,
body .snap-content a.button-line:focus-visible {
  color: var(--gold-deep);
}
