/*
Theme Name:   Ebenezer Astra
Theme URI:    https://ebenezerportavogie.com/
Description:  Ebenezer Gospel Hall redesign (v3) as an Astra child theme. Reads all pages, recordings and the menu live from existing WordPress content.
Author:       Ebenezer Gospel Hall
Template:     astra
Version:      1.0.0
Requires PHP: 7.4
Text Domain:  ebenezer-astra
*/

/* ---------- Fonts (self-hosted, SIL Open Font License) ----------
   Headings: Newsreader, a calm editorial serif with optical sizes (finer detail at display sizes).
   Body: Public Sans, a plain, neutral sans drawn for public-information sites; ordinary zeros. */
@font-face {
	font-family: "Newsreader";
	src: url("fonts/newsreader-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Public Sans";
	src: url("fonts/public-sans-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ----------
   Colour: navy and gold only. Muted navy for secondary text (dates, categories, counts).
   Type scale: 16 / 18 / 22 / 28 / 40 / 60. Weights: 400 for reading, 500 for labels, 600 sparingly. */
:root {
	--ebz-navy: #25344F;
	--ebz-navy-deep: #1A2438;
	--ebz-muted: #5A6478;      /* 5.9:1 on white */
	--ebz-gold: #AB987A;       /* rules and underlines only, never text on light backgrounds */
	--ebz-gold-light: #C9B894; /* text on navy */
	--ebz-gold-deep: #7A6844;  /* gold as text on white: 5.4:1 */
	--ebz-white: #FFFFFF;
	--ebz-off-white: #F7F6F2;
	--ebz-hover-bg: #F1EFE9;
	--ebz-line: #E3E1DA;
	--ebz-track: #DAD8D0;
	--ebz-field-line: #8C887C; /* input outline: 3.5:1 on white, so the box is visible */
	--ebz-fh: "Newsreader", Georgia, "Times New Roman", serif;
	--ebz-fh-w: 500; /* heading weight */
	--ebz-fb: "Public Sans", Helvetica, Arial, sans-serif;
	--ebz-fs-1: 16px;
	--ebz-fs-2: 18px;
	--ebz-fs-3: 22px;
	--ebz-fs-4: 28px;
	--ebz-fs-5: 40px;
	--ebz-fs-6: 60px;
	--ebz-width: 1120px;

	/* Astra's global palette follows the tokens so any Astra-rendered piece matches. */
	--ast-global-color-0: #25344F;
	--ast-global-color-1: #25344F;
	--ast-global-color-2: #25344F;
	--ast-global-color-3: #25344F;
	--ast-global-color-4: #F7F6F2;
	--ast-global-color-5: #FFFFFF;
}

/* ---------- Base ---------- */
body.ebz-site {
	margin: 0;
	background: var(--ebz-off-white);
	color: var(--ebz-navy);
	font-family: var(--ebz-fb);
	font-size: var(--ebz-fs-2);
	line-height: 1.55;
	font-feature-settings: "lnum" 1;
	-webkit-font-smoothing: antialiased;
}
body.ebz-site #page { background: var(--ebz-off-white); }
body.ebz-site #content,
body.ebz-site .site-content { padding: 0; margin: 0; background: transparent; }
body.ebz-site .site-content > .ast-container {
	max-width: none;
	padding: 0;
	margin: 0;
	display: block;
}
/* Links stay navy; hover and focus are shown with the underline, not a second colour. */
body.ebz-site a { color: var(--ebz-navy); text-underline-offset: 3px; }
body.ebz-site a:hover,
body.ebz-site a:focus { color: var(--ebz-navy); text-decoration-thickness: 2px; }
:where(body.ebz-site) :where(h1, h2, h3, h4, p, address, figure) { margin: 0; }
:where(body.ebz-site) :where(h1, h2, h3, h4) { color: inherit; font-weight: inherit; line-height: inherit; font-size: inherit; font-family: inherit; }
body.ebz-site :focus-visible { outline: 3px solid var(--ebz-navy); outline-offset: 2px; }
body.ebz-site .ebz-hero :focus-visible,
body.ebz-site .ebz-footer :focus-visible,
body.ebz-site .ebz-card--key > .ebz-card__head :focus-visible { outline-color: var(--ebz-gold-light); }
body.ebz-site button { font-family: inherit; }
.ebz-icon { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: middle; }
.ebz-icon--facebook { width: 1em; }
/* Astra's back-to-top button is not part of this design (also switched off in functions.php). */
#ast-scroll-top { display: none !important; }

.ebz-wrap {
	max-width: var(--ebz-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
	width: 100%;
}
.ebz-wrap--820 { max-width: 820px; }
.ebz-wrap--900 { max-width: 900px; }
.ebz-main { display: block; padding-bottom: 8px; }
.ebz-page { padding-top: 40px; }
.ebz-section { padding-top: 28px; }
body.ebz-site .ebz-h1 {
	margin: 0 0 24px;
	font-family: var(--ebz-fh);
	font-weight: var(--ebz-fh-w);
	font-size: clamp(var(--ebz-fs-4), 5vw, var(--ebz-fs-5));
	line-height: 1.15;
	color: var(--ebz-navy);
}
.ebz-rule { width: 56px; height: 2px; background: var(--ebz-gold); }

/* ---------- Header ---------- */
.ebz-header { background: var(--ebz-white); border-bottom: 1px solid var(--ebz-line); position: relative; z-index: 10; }
.ebz-header__inner {
	padding-top: 14px;
	padding-bottom: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
body.ebz-site .ebz-brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; flex: none; }
.ebz-brand__name { font-family: var(--ebz-fh); font-weight: var(--ebz-fh-w); font-size: var(--ebz-fs-4); color: var(--ebz-navy); white-space: nowrap; }
/* "Portavogie": spaced capitals in deep gold (the gold accent darkened to 5.4:1 on white so it reads as text). */
.ebz-brand__tag {
	font-family: var(--ebz-fb);
	font-weight: 600;
	font-size: var(--ebz-fs-1);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ebz-gold-deep);
	padding-top: 4px;
}
.ebz-header__right { display: flex; align-items: center; gap: 26px; }
.ebz-nav { display: flex; align-items: center; gap: 26px; }
body.ebz-site .ebz-nav__link {
	text-decoration: none;
	font-size: var(--ebz-fs-2);
	font-weight: 500;
	color: var(--ebz-navy);
	white-space: nowrap;
	padding: 10px 0 7px;
	border-bottom: 3px solid transparent;
}
body.ebz-site .ebz-nav__link:hover { color: var(--ebz-navy); border-bottom-color: var(--ebz-track); }
body.ebz-site .ebz-nav__link.is-current { border-bottom-color: var(--ebz-gold); }
body.ebz-site .ebz-fb {
	text-decoration: none;
	font-size: 26px;
	color: var(--ebz-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: -12px;
}
body.ebz-site .ebz-fb:hover { color: var(--ebz-muted); }
body.ebz-site .ebz-menu-toggle {
	display: none;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--ebz-navy);
	border-radius: 0;
	background: var(--ebz-white);
	color: var(--ebz-navy);
	font-size: 24px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
}
body.ebz-site .ebz-menu-toggle:hover { background: var(--ebz-hover-bg); color: var(--ebz-navy); }
.ebz-mobile-nav { display: flex; flex-direction: column; border-top: 1px solid var(--ebz-line); }
.ebz-mobile-nav[hidden] { display: none; }
body.ebz-site .ebz-mobile-nav__link {
	text-decoration: none;
	font-size: var(--ebz-fs-2);
	font-weight: 500;
	color: var(--ebz-navy);
	padding: 14px 20px;
	border-left: 4px solid transparent;
	border-bottom: 1px solid #EEECE6;
}
body.ebz-site .ebz-mobile-nav__link.is-current { border-left-color: var(--ebz-gold); }

@media (max-width: 1039.98px) {
	.ebz-nav { display: none; }
	.ebz-header__right { gap: 4px; }
	body.ebz-site .ebz-fb { margin-left: 0; }
	body.ebz-site .ebz-menu-toggle { display: flex; }
	.ebz-brand__name { font-size: var(--ebz-fs-3); white-space: normal; }
	.ebz-brand__tag { font-size: 15px; letter-spacing: 0.18em; }
}

/* ---------- Hero ---------- */
.ebz-hero { position: relative; background: var(--ebz-navy-deep); overflow: hidden; }
.ebz-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 44%;
	max-width: none;
}
/* Dark behind the text on the left, opening up on the right so the gable lettering shows. */
.ebz-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(17, 24, 42, .92) 0%, rgba(17, 24, 42, .86) 42%, rgba(17, 24, 42, .5) 64%, rgba(17, 24, 42, .22) 100%);
}
.ebz-hero__inner {
	position: relative;
	padding-top: clamp(40px, 5vw, 72px);
	padding-bottom: clamp(40px, 5vw, 72px);
	min-height: clamp(340px, 40vw, 480px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
}
.ebz-hero__text {
	max-width: 600px;
	color: var(--ebz-white);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	gap: 10px;
}
/* The date is the headline; "Next Gospel Meeting" introduces it. */
body.ebz-site .ebz-hero__title { display: flex; flex-direction: column; align-items: inherit; gap: 10px; color: var(--ebz-white); }
.ebz-hero__label { font-family: var(--ebz-fb); font-size: var(--ebz-fs-2); font-weight: 500; line-height: 1.3; color: var(--ebz-gold-light); }
.ebz-hero__date { font-family: var(--ebz-fh); font-weight: var(--ebz-fh-w); font-size: clamp(var(--ebz-fs-5), 5.4vw, var(--ebz-fs-6)); line-height: 1.08; text-wrap: balance; }
.ebz-hero__who { font-size: var(--ebz-fs-3); font-weight: 500; padding-top: 4px; }
.ebz-hero .ebz-rule { margin: 12px 0 6px; }
body.ebz-site .ebz-hero__invite { font-size: var(--ebz-fs-2); margin: 0; }
/* The verse closes the hero, set off by a faint gold line. Upright serif: no italic Newsreader is loaded. */
body.ebz-site .ebz-hero__verse {
	margin: 6px 0 0;
	padding: 14px 0 0;
	border: 0;
	border-top: 1px solid rgba(201, 184, 148, .4);
	background: none;
	max-width: 460px;
	font-style: normal;
	quotes: none;
}
body.ebz-site .ebz-hero__verse::before, body.ebz-site .ebz-hero__verse::after { content: none; }
body.ebz-site .ebz-hero__verse p { margin: 0; font-family: var(--ebz-fh); font-weight: 400; font-style: normal; font-size: var(--ebz-fs-3); line-height: 1.3; color: var(--ebz-white); }
body.ebz-site .ebz-hero__verse cite { display: block; margin-top: 6px; font-family: var(--ebz-fb); font-style: normal; font-size: var(--ebz-fs-1); font-weight: 500; color: var(--ebz-gold-light); }
@media (max-width: 1039.98px) {
	body.ebz-site .ebz-hero__verse { margin-left: auto; margin-right: auto; }
}
/* Longer verses (Acts 16:31 on the home page) wrap to a readable measure. */
.ebz-scroll__text { max-width: 22em; }
/* The photo is only 550px wide, so on wide screens it isn't stretched across the full width
   (that blew it up 3.5x). It sits on the right, at most ~1.5x, and fades into the navy behind the text. */
@media (min-width: 1040px) {
	.ebz-hero__img {
		left: auto;
		right: 0;
		width: min(58%, 820px);
		object-position: 50% 42%;
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%);
		mask-image: linear-gradient(90deg, transparent 0, #000 40%);
	}
	.ebz-hero__overlay { background: linear-gradient(90deg, rgba(17, 24, 42, .92) 0%, rgba(17, 24, 42, .86) 42%, rgba(17, 24, 42, .4) 70%, rgba(17, 24, 42, .15) 100%); }
}
@media (max-width: 1039.98px) {
	.ebz-hero__overlay { background: rgba(17, 24, 42, .78); }
	.ebz-hero__inner, .ebz-hero__text { align-items: center; text-align: center; }
}

/* ---------- Cards ---------- */
.ebz-card {
	background: var(--ebz-white);
	color: var(--ebz-navy);
	border: 1px solid var(--ebz-line);
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.ebz-card__head {
	background: var(--ebz-navy);
	color: var(--ebz-white);
	padding: 20px 32px;
	display: flex;
	align-items: center;
	gap: 14px;
}
body.ebz-site .ebz-card__title { font-family: var(--ebz-fh); font-weight: var(--ebz-fh-w); font-size: var(--ebz-fs-4); line-height: 1.2; color: var(--ebz-white); }
.ebz-card__body { padding: 24px 32px 32px; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 479.98px) {
	.ebz-card__head, .ebz-card--plain > .ebz-card__head { padding-left: 24px; padding-right: 24px; }
	body.ebz-site .ebz-card__title { font-size: var(--ebz-fs-3); }
	.ebz-card__body { padding-left: 24px; padding-right: 24px; }
}

/* Plain card: navy heading on white. The navy band is kept for the one key card (Latest Recording). */
.ebz-card--plain > .ebz-card__head {
	background: transparent;
	color: var(--ebz-navy);
	padding: 22px 32px 16px;
	border-bottom: 1px solid var(--ebz-line);
}
body.ebz-site .ebz-card--plain .ebz-card__title { color: var(--ebz-navy); }
/* Headings that link to their page look like headings; the underline only appears on hover/focus. */
body.ebz-site a.ebz-card__link { color: inherit; text-decoration: none; }
body.ebz-site a.ebz-card__link:hover,
body.ebz-site a.ebz-card__link:focus { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

.ebz-keys {
	padding-top: 36px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
@media (max-width: 1039.98px) { .ebz-keys { grid-template-columns: minmax(0, 1fr); } }
.ebz-latest__title { font-family: var(--ebz-fh); font-weight: var(--ebz-fh-w); font-size: var(--ebz-fs-3); line-height: 1.25; }
.ebz-keys .ebz-player { margin-top: 6px; }

/* Timetable (Meeting Times page and home card) */
.ebz-tt { --ebz-tt-col: 200px; display: flex; flex-direction: column; }
.ebz-tt__day {
	display: grid;
	grid-template-columns: var(--ebz-tt-col) minmax(0, 1fr);
	column-gap: 24px;
	align-items: baseline;
	padding: 22px 0;
}
.ebz-tt__day + .ebz-tt__day { border-top: 1px solid var(--ebz-line); }
body.ebz-site .ebz-tt__name { font-family: var(--ebz-fh); font-weight: var(--ebz-fh-w); font-size: var(--ebz-fs-4); line-height: 1.2; color: var(--ebz-navy); }
body.ebz-site .ebz-tt__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
body.ebz-site .ebz-tt__row { margin: 0; font-size: var(--ebz-fs-3); line-height: 1.4; }
.ebz-card .ebz-tt { --ebz-tt-col: 110px; }
.ebz-card .ebz-tt__day { padding: 14px 0; }
.ebz-card .ebz-tt__day:first-child { padding-top: 0; }
.ebz-card .ebz-tt__day:last-child { padding-bottom: 0; }
body.ebz-site .ebz-card .ebz-tt__name { font-size: var(--ebz-fs-3); }
body.ebz-site .ebz-card .ebz-tt__row { font-size: var(--ebz-fs-2); }
@media (max-width: 599.98px) {
	.ebz-tt__day, .ebz-card .ebz-tt__day { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
}

/* Home: Announcements / Recordings / Contact Us cards with their current content */
.ebz-navcards {
	padding-top: 28px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}
.ebz-navcard__ann { font-size: var(--ebz-fs-2); line-height: 1.5; }
.ebz-navcard__address { font-style: normal; font-size: var(--ebz-fs-2); line-height: 1.6; }
.ebz-navcard__contact { font-size: var(--ebz-fs-2); font-weight: 500; padding-top: 14px; border-top: 1px solid var(--ebz-line); }
body.ebz-site .ebz-counts { list-style: none; margin: -12px 0; padding: 0; }
body.ebz-site .ebz-counts li { margin: 0; }
.ebz-counts li + li { border-top: 1px solid var(--ebz-line); }
body.ebz-site .ebz-counts a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 52px;
	text-decoration: none;
	font-size: var(--ebz-fs-2);
	color: var(--ebz-navy);
}
body.ebz-site .ebz-counts a:hover .ebz-counts__label,
body.ebz-site .ebz-counts a:focus .ebz-counts__label { text-decoration: underline; text-underline-offset: 4px; }
.ebz-counts__n { font-size: var(--ebz-fs-1); color: var(--ebz-muted); font-variant-numeric: tabular-nums; }
body.ebz-site a.ebz-tel { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Conference card and Facebook feed: two columns on wide screens, stacked below 1040px.
   Each keeps its own height; a lone item (e.g. no front-page content) takes the full width. */
.ebz-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1040px) {
	.ebz-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ebz-pair > :only-child { grid-column: 1 / -1; }
}

/* ---------- Facebook feed (Smash Balloon) ----------
   The plugin's own default styling inside a plain white card. Nothing inside the feed is overridden. */
.ebz-feed { background: var(--ebz-white); border: 1px solid var(--ebz-line); padding: 20px 20px 28px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.ebz-feed__inner { width: min(560px, 100%); }
/* Desktop: only the latest post, so the feed column ends near the Conference card beside it
   (the Follow button leads to the rest). This hides posts; it doesn't restyle them.
   Builder feeds ignore the shortcode's post-count option. */
@media (min-width: 1040px) {
	.ebz-feed #cff .cff-posts-wrap > .cff-item:nth-child(n+2) { display: none !important; }
}
/* Solid navy button, square like the rest of the site. */
body.ebz-site .ebz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 24px;
	background: var(--ebz-navy);
	color: var(--ebz-white);
	font-size: var(--ebz-fs-2);
	font-weight: 500;
	text-decoration: none;
	box-sizing: border-box;
}
body.ebz-site .ebz-btn .ebz-icon { font-size: 22px; }
body.ebz-site .ebz-btn:hover,
body.ebz-site .ebz-btn:focus { background: var(--ebz-navy-deep); color: var(--ebz-white); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 479.98px) { body.ebz-site .ebz-btn { width: 100%; } }

/* Page content in a card (front page content, generic pages) */
.ebz-content { gap: 14px; }
.ebz-content > * { margin: 0; }
.ebz-content p:empty { display: none; }
.ebz-content .wp-block-audio { margin: 0 0 8px; }

/* ---------- Audio player ---------- */
.ebz-player { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.ebz-player__audio { width: 100%; }
.ebz-player__audio[hidden] { display: none; }
/* Play/pause: a thin outline icon (no filled square), still a 48px tap target.
   The negative margin lines the icon up with the text above it. */
body.ebz-site .ebz-player__btn {
	flex: none;
	width: 48px;
	height: 48px;
	margin-left: -12px;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--ebz-navy);
	font-size: 28px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
body.ebz-site .ebz-player__btn:hover,
body.ebz-site .ebz-player__btn:focus,
body.ebz-site .ebz-player__btn:active { background: transparent; color: var(--ebz-muted); }
.ebz-player__btn[hidden], .ebz-player__track[hidden], .ebz-player__time[hidden] { display: none; }
.ebz-player .ebz-player__pause { display: none; }
.ebz-player.is-playing .ebz-player__pause { display: inline-block; }
.ebz-player.is-playing .ebz-player__play { display: none; }
.ebz-player__track { flex: 1 1 140px; height: 6px; background: var(--ebz-track); overflow: hidden; cursor: pointer; position: relative; }
.ebz-player__track::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; bottom: -18px; }
.ebz-player__fill { height: 100%; width: 0; background: var(--ebz-navy); }
.ebz-player__time { font-size: var(--ebz-fs-1); color: var(--ebz-muted); min-width: 44px; font-variant-numeric: tabular-nums; }
body.ebz-site .ebz-player__dl { font-size: var(--ebz-fs-1); font-weight: 500; display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ebz-navy); text-decoration: underline; }
body.ebz-site .ebz-player__dl .ebz-icon { font-size: 20px; }

/* ---------- Audio Library ---------- */
/* Filter words (selected one underlined in gold, like the main menu); search on its own full-width row below. */
.ebz-libbar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 28px;
	margin: 0 0 28px;
}
.ebz-filters {
	flex: 1 1 100%;
	display: flex;
	flex-wrap: wrap;
	column-gap: 24px;
	border-bottom: 1px solid var(--ebz-line);
}
body.ebz-site .ebz-filter {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	min-height: 48px;
	box-sizing: border-box;
	padding: 12px 0 8px;
	margin-bottom: -1px;
	border-bottom: 3px solid transparent;
	font-family: var(--ebz-fh); font-weight: var(--ebz-fh-w);
	font-size: var(--ebz-fs-3);
	line-height: 1.2;
	color: var(--ebz-navy);
	text-decoration: none;
}
body.ebz-site .ebz-filter:hover,
body.ebz-site .ebz-filter:focus { color: var(--ebz-navy); border-bottom-color: var(--ebz-track); }
body.ebz-site .ebz-filter.is-on { border-bottom-color: var(--ebz-gold); }
.ebz-filter__n { font-family: var(--ebz-fb); font-size: var(--ebz-fs-1); color: var(--ebz-muted); }
.ebz-search {
	flex: 1 1 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	height: 52px;
	padding: 0 16px;
	margin: 6px 0 0;
	background: var(--ebz-white);
	border: 1px solid var(--ebz-field-line);
	box-sizing: border-box;
}
.ebz-search:hover { border-color: var(--ebz-navy); }
.ebz-search .ebz-icon { font-size: 20px; color: var(--ebz-navy); }
@media (max-width: 719.98px) {
	.ebz-filters { column-gap: 20px; }
}
body.ebz-site .ebz-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: none;
	outline: none;
	background: transparent;
	font: inherit;
	font-size: var(--ebz-fs-2);
	color: var(--ebz-navy);
	padding: 0;
	box-shadow: none;
	border-radius: 0;
}
/* One 2px navy frame on focus (the extra outline drew a second box around it). */
.ebz-search:focus-within { border-color: var(--ebz-navy); box-shadow: inset 0 0 0 1px var(--ebz-navy); outline: none; }
/* Page numbers: plain numbers, the current one underlined in gold like the filters. */
body.ebz-site .ebz-pagebtn {
	min-width: 44px;
	min-height: 48px;
	padding: 0 4px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	font-size: var(--ebz-fs-2);
	font-weight: 400;
	color: var(--ebz-navy);
	text-decoration: none;
}
body.ebz-site .ebz-pagebtn:hover,
body.ebz-site .ebz-pagebtn:focus { color: var(--ebz-navy); text-decoration: underline; text-underline-offset: 6px; }
body.ebz-site .ebz-pagebtn.is-on {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--ebz-gold);
	text-decoration-thickness: 3px;
	text-underline-offset: 8px;
}
.ebz-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 20px; }
.ebz-lib.is-loading .ebz-lib__results { opacity: .6; }
.ebz-lib__results:focus { outline: none; }
.ebz-rec-groups { display: flex; flex-direction: column; gap: 32px; }
body.ebz-site .ebz-month {
	margin: 0 0 12px;
	font-family: var(--ebz-fh);
	font-weight: var(--ebz-fh-w);
	font-size: var(--ebz-fs-4);
	line-height: 1.2;
	color: var(--ebz-navy);
}
.ebz-rec-list { display: flex; flex-direction: column; background: var(--ebz-white); border: 1px solid var(--ebz-line); }
.ebz-empty {
	background: var(--ebz-white);
	border: 1px solid var(--ebz-line);
	padding: 64px 28px;
	text-align: center;
	font-family: var(--ebz-fh); font-weight: var(--ebz-fh-w);
	font-size: var(--ebz-fs-3);
}
.ebz-empty > * { margin: 0; }
.ebz-empty__hint { margin-top: 10px; font-family: var(--ebz-fb); font-weight: 400; font-size: var(--ebz-fs-2); color: var(--ebz-muted); }
body.ebz-site .ebz-empty__link { display: inline-block; margin-top: 18px; font-family: var(--ebz-fb); font-size: var(--ebz-fs-2); font-weight: 600; color: var(--ebz-navy); text-decoration: underline; text-decoration-color: var(--ebz-gold); text-underline-offset: 4px; }
body.ebz-site .ebz-empty__link:hover { text-decoration-thickness: 2px; }

/* Compact rows: play | name, date and category | download. The progress line only opens
   once that recording has been played. */
.ebz-rec + .ebz-rec { border-top: 1px solid var(--ebz-line); }
.ebz-player.ebz-player--row {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) 48px;
	align-items: center;
	gap: 0 12px;
	padding: 10px 12px 10px 10px;
}
body.ebz-site .ebz-player--row .ebz-player__btn { grid-column: 1; grid-row: 1; margin-left: 0; font-size: 26px; }
.ebz-player--row .ebz-rec__main { grid-column: 2; grid-row: 1; min-width: 0; padding: 4px 0; }
body.ebz-site .ebz-player--row .ebz-player__dl--icon {
	grid-column: 3;
	grid-row: 1;
	width: 48px;
	height: 48px;
	min-height: 0;
	justify-content: center;
	text-decoration: none;
}
body.ebz-site .ebz-player--row .ebz-player__dl--icon:hover { color: var(--ebz-muted); }
.ebz-player--row .ebz-player__audio { grid-column: 1 / -1; grid-row: 2; margin-top: 8px; }
.ebz-player--row .ebz-player__progress { grid-column: 2 / -1; grid-row: 3; display: none; align-items: center; gap: 12px; padding: 2px 0 8px; }
.ebz-player--row.is-active .ebz-player__progress { display: flex; }
.ebz-player--row .ebz-player__track { flex: 1 1 auto; }
body.ebz-site .ebz-rec__head {
	font-family: var(--ebz-fh);
	font-weight: var(--ebz-fh-w);
	font-size: var(--ebz-fs-3);
	line-height: 1.25;
	color: var(--ebz-navy);
}
.ebz-rec__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--ebz-fs-1); color: var(--ebz-muted); }
.ebz-player--row .ebz-rec__meta { margin-top: 2px; }
/* Category: plain muted text, not a box. After a date it gets a thin vertical rule as a separator. */
.ebz-pill { color: var(--ebz-muted); font-size: inherit; font-weight: 400; }
.ebz-rec__date + .ebz-pill::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 0.85em;
	margin-right: 10px;
	vertical-align: -0.05em;
	background: var(--ebz-field-line);
}
/* A series (e.g. a conference): its title once, then one row per part. */
.ebz-rec__serieshead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 16px 22px 8px 70px; } /* 70px = row padding + play column + gap, so it lines up with the names */
.ebz-rec__serieshead .ebz-pill { font-size: var(--ebz-fs-1); }
.ebz-rec__part { border-top: 1px solid #EEECE6; }
body.ebz-site .ebz-rec__part .ebz-rec__head { font-family: var(--ebz-fb); font-size: var(--ebz-fs-2); font-weight: 500; }
.ebz-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Meeting Times page ---------- */
.ebz-days { display: flex; flex-direction: column; gap: 20px; }
.ebz-panel { background: var(--ebz-white); border: 1px solid var(--ebz-line); padding: 6px 32px; }
.ebz-contactline { font-size: var(--ebz-fs-2); font-weight: 500; padding: 4px 0; }
@media (max-width: 599.98px) { .ebz-panel { padding: 4px 20px; } }

/* ---------- Contact page ---------- */
.ebz-contact { display: flex; flex-wrap: wrap; gap: 20px; }
.ebz-contact__card { flex: 1 1 300px; box-sizing: border-box; }
.ebz-contact__card .ebz-card__body { gap: 18px; }
.ebz-contact__address { font-size: var(--ebz-fs-3); line-height: 1.55; }
.ebz-contact__line { font-size: var(--ebz-fs-2); font-weight: 500; padding-top: 16px; border-top: 1px solid var(--ebz-line); }
body.ebz-site .ebz-contact__fb { color: var(--ebz-navy); font-size: var(--ebz-fs-2); font-weight: 500; display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: underline; }
.ebz-contact__fb .ebz-icon { font-size: 24px; }
.ebz-contact__map { flex: 1.6 1 320px; min-height: 420px; border: 1px solid var(--ebz-line); display: flex; }
.ebz-contact__map iframe { width: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Scroll text + footer ---------- */
.ebz-scroll {
	padding: 40px 20px 36px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
	background: var(--ebz-off-white);
}
.ebz-scroll__text { font-family: var(--ebz-fh); font-weight: var(--ebz-fh-w); font-size: clamp(var(--ebz-fs-4), 5vw, var(--ebz-fs-5)); line-height: 1.15; color: var(--ebz-navy); text-wrap: balance; }
.ebz-scroll__ref { font-size: var(--ebz-fs-1); color: var(--ebz-muted); }
.ebz-footer { background: var(--ebz-navy-deep); color: var(--ebz-white); }
.ebz-footer__inner {
	padding-top: 36px;
	padding-bottom: 28px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
}
.ebz-footer__address { font-style: normal; font-size: var(--ebz-fs-2); line-height: 1.6; }
.ebz-footer__address strong { font-weight: 600; }
.ebz-footer__contact { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: var(--ebz-fs-2); }
body.ebz-site .ebz-footer__fb { text-decoration: none; font-size: 28px; color: var(--ebz-gold-light); display: flex; align-items: center; width: 44px; height: 44px; }
body.ebz-site .ebz-footer__fb:hover { color: var(--ebz-white); }
.ebz-footer__bar { border-top: 1px solid rgba(255, 255, 255, .18); }
.ebz-footer__bar .ebz-wrap { padding-top: 16px; padding-bottom: 16px; font-size: var(--ebz-fs-1); }

@media (prefers-reduced-motion: reduce) {
	body.ebz-site * { transition: none !important; }
}
