/* "Shop by who it's for" bar under the header (includes/audiences.php). */
.md-aud { background: var(--global-palette2, #08202F); color: #fff; position: relative; z-index: 60; font-family: var(--md-font, inherit); }
.md-aud__in { max-width: var(--global-content-width, 1290px); margin: 0 auto; padding: 0 var(--global-content-edge-padding, 24px); display: flex; align-items: center; gap: 8px; } /* lines up with the logo */
.md-aud__lead { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--md-gold, #F4B41A); margin-right: 4px; }
.md-aud__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.md-aud__item { margin: 0; }
.md-aud__btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; padding: 13px 14px; font-size: 15px; font-weight: 600; color: #fff; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.md-aud__btn:hover, .md-aud__btn[aria-expanded="true"] { border-bottom-color: var(--md-gold, #F4B41A); }
.md-aud__btn:focus-visible { outline: 2px solid var(--md-gold, #F4B41A); outline-offset: -2px; border-radius: 6px; }
.md-aud__btn svg { transition: transform .2s; }
.md-aud__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.md-aud__short { display: none; }

.md-aud__panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: var(--global-palette3, #0C2B40); box-shadow: 0 18px 40px rgba(12, 43, 64, .18); border-top: 1px solid var(--global-palette7, #E1E6EC); }
.md-aud__panel:not([hidden]) { display: grid; grid-template-columns: 1fr 280px; gap: 32px; max-width: 1290px; margin: 0 auto; padding: 28px 24px 32px; border-radius: 0 0 var(--md-r-card, 20px) var(--md-r-card, 20px); }
.md-aud__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.md-aud__h { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--global-palette1, #0C2B40); }
.md-aud__col ul { list-style: none; margin: 0; padding: 0; }
.md-aud__col li { margin: 0; }
.md-aud__col a { display: block; padding: 5px 0; font-size: 15px; color: var(--global-palette3, #0C2B40); text-decoration: none; }
.md-aud__col a:hover, .md-aud__col a:focus-visible { color: var(--global-palette1, #0C2B40); text-decoration: underline; text-underline-offset: 3px; }
.md-aud__all { align-self: start; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--md-r-card, 20px); background: var(--md-gold-soft, #FDEFC9); color: var(--global-palette3, #0C2B40); text-decoration: none; }
.md-aud__all b { font-size: 18px; line-height: 1.25; }
.md-aud__all span { font-size: 14px; line-height: 1.5; color: var(--global-palette4, #243B4D); }
.md-aud__all em { font-style: normal; font-weight: 700; color: var(--global-palette1, #0C2B40); }
.md-aud__all:hover em { text-decoration: underline; }

/* Main menu links on the right of the bar (Products, FAQ, Contact, Help me choose). */
.md-aud__links { list-style: none; margin: 0 0 0 auto; padding: 0 0 0 14px; display: flex; align-items: center; gap: 2px; border-left: 1px solid rgba(255, 255, 255, .18); }
.md-aud__link { display: inline-block; padding: 13px 12px; font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.md-aud__link:hover, .md-aud__link:focus-visible { color: #fff; border-bottom-color: var(--md-gold, #F4B41A); }
.md-aud__cta { display: inline-block; margin-left: 10px; padding: 9px 20px; border-radius: var(--md-r-pill, 980px); background: var(--md-gold, #F4B41A); color: var(--global-palette3, #0C2B40); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s; }
.md-aud__cta:hover, .md-aud__cta:focus-visible { background: #FFC53D; color: var(--global-palette3, #0C2B40); }
.md-aud__item--menu { position: relative; }
.md-aud__panel--small:not([hidden]) { display: block; left: 0; right: auto; min-width: 240px; max-width: none; margin: 0; padding: 10px 0; border-radius: 0 0 14px 14px; }
.md-aud__panel--small ul { list-style: none; margin: 0; padding: 0; }
.md-aud__panel--small a { display: block; padding: 8px 20px; font-size: 15px; color: var(--global-palette3, #0C2B40); text-decoration: none; }
.md-aud__panel--small a:hover, .md-aud__panel--small a:focus-visible { background: var(--global-palette8, #F7F8FA); color: var(--global-palette1, #0C2B40); }

/* The same menu is in the bar now, so hide it in the white header on desktop (phones and tablets keep the ☰ menu). */
@media (min-width: 1025px) {
	#main-header .site-header-item-main-navigation { display: none !important; }
}

/* Fit everything on one line: shorten audience names as the screen narrows. */
/* Churches keeps its full name; the others use short names so the menu links fit beside them. */
.md-aud__list .md-aud__item:not(.md-aud__item--church) .md-aud__full { display: none; }
.md-aud__list .md-aud__item:not(.md-aud__item--church) .md-aud__short { display: inline; }
@media (max-width: 1300px) {
	.md-aud__lead { display: none; }
	.md-aud__in { padding: 0 20px; }
	.md-aud__list .md-aud__item .md-aud__full { display: none; }
	.md-aud__list .md-aud__item .md-aud__short { display: inline; }
	.md-aud__btn { padding: 13px 10px; }
	.md-aud__link { padding: 13px 9px; }
}
@media (max-width: 1160px) {
	.md-aud__in { padding: 0 14px; }
	.md-aud__btn, .md-aud__link { padding: 13px 8px; font-size: 14px; }
	.md-aud__links { padding-left: 8px; }
	.md-aud__cta { margin-left: 6px; padding: 8px 14px; font-size: 14px; }
}
@media (max-width: 1024px) {
	.md-aud__links { display: none; }
}
@media (max-width: 860px) {
	/* Phones: all five audiences visible at once (two rows), nothing hidden off the edge. */
	.md-aud__in { padding: 6px 10px; }
	.md-aud__lead { display: none; }
	.md-aud__list { flex-wrap: wrap; justify-content: center; gap: 2px 4px; }
	.md-aud__btn { padding: 8px 9px; font-size: 14px; border-bottom-width: 2px; }
	.md-aud__panel:not([hidden]) { grid-template-columns: 1fr; gap: 20px; padding: 20px 16px 24px; max-height: calc(100svh - 140px); overflow-y: auto; border-radius: 0 0 16px 16px; }
	.md-aud__cols { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
	.md-aud__col a { font-size: 14px; padding: 6px 0; }
	.md-aud__all { order: -1; padding: 16px; }
}
@media (max-width: 420px) {
	.md-aud__cols { grid-template-columns: 1fr; }
}

/* Tappable phone numbers in page heroes (tools/build-home.php, tools/build-niche.php). */
.md-tel { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.md-tel:hover { color: inherit; text-decoration-thickness: 2px; }

/* Products dropdown first in the bar (2026-11-17), with a thin divider before the audience menus. */
.md-aud__list .md-aud__item--products { margin-right: 6px; padding-right: 6px; border-right: 1px solid rgba(255, 255, 255, .18); }
@media (max-width: 860px) { .md-aud__list .md-aud__item--products { border-right: 0; margin-right: 0; padding-right: 0; } }
