/**
 * Bluerizon — second-wave elements.
 *
 * Every value that a user can set travels as a custom property on the element
 * itself (see class-bz-elements-extra.php), so this file is a single static
 * stylesheet: no per-node CSS, nothing to invalidate, one HTTP request for any
 * number of instances. Colours come from tokens.css, so a rebranded site
 * follows automatically.
 */

/* ------------------------------- accordion ------------------------------ */

.bz-accordion { display: block; width: 100%; }

.bz-accordion-item {
	border-bottom: 1px solid color-mix(in srgb, var(--bz-ink, #2a2a2a) 14%, transparent);
}

.bz-accordion-head {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 0;
	cursor: pointer;
	list-style: none;
	font-family: var(--bz-font, inherit);
	font-weight: 500;
}

.bz-accordion-head::-webkit-details-marker { display: none; }
.bz-accordion-title { flex: 1 1 auto; }

.bz-accordion-marker {
	flex: 0 0 auto;
	position: relative;
	width: 14px;
	height: 14px;
}

.bz-accordion-marker::before,
.bz-accordion-marker::after {
	content: "";
	position: absolute;
	inset: 50% 0 auto 0;
	height: 1px;
	background: currentColor;
	transition: transform .2s ease;
}

.bz-accordion-marker::after { transform: rotate(90deg); }
.bz-accordion-item[open] .bz-accordion-marker::after { transform: rotate(0deg); }

.bz-accordion--marker-left .bz-accordion-head { flex-direction: row-reverse; }
.bz-accordion--marker-none .bz-accordion-marker { display: none; }

.bz-accordion-panel { padding: 0 0 20px; }
.bz-accordion-panel > *:first-child { margin-top: 0; }
.bz-accordion-panel > *:last-child { margin-bottom: 0; }

/* ---------------------------------- tabs -------------------------------- */

.bz-tabs { display: block; width: 100%; }

.bz-tabs-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 28px;
	justify-content: var(--bz-tabs-align, flex-start);
	border-bottom: 1px solid color-mix(in srgb, var(--bz-ink, #2a2a2a) 14%, transparent);
}

.bz-tabs-btn {
	appearance: none;
	background: none;
	border: 0;
	padding: 12px 0;
	margin-bottom: -1px;
	cursor: pointer;
	font: inherit;
	color: inherit;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-size: .82em;
	opacity: .6;
	border-bottom: 2px solid transparent;
	transition: opacity .2s ease, border-color .2s ease;
}

.bz-tabs-btn:hover { opacity: .9; }

.bz-tabs-btn.is-active {
	opacity: 1;
	border-bottom-color: var(--bz-sage-dark, #506c61);
}

.bz-tabs-panel { padding: 24px 0 0; }
.bz-tabs-panel[hidden] { display: none; }
.bz-tabs-panel > *:first-child { margin-top: 0; }

.bz-tabs--left { display: flex; gap: 40px; align-items: flex-start; }

.bz-tabs--left .bz-tabs-list {
	flex-direction: column;
	flex: 0 0 auto;
	min-width: 180px;
	gap: 0;
	border-bottom: 0;
	border-right: 1px solid color-mix(in srgb, var(--bz-ink, #2a2a2a) 14%, transparent);
}

.bz-tabs--left .bz-tabs-btn {
	text-align: left;
	padding: 10px 20px 10px 0;
	margin: 0 -1px 0 0;
	border-bottom: 0;
	border-right: 2px solid transparent;
}

.bz-tabs--left .bz-tabs-btn.is-active { border-right-color: var(--bz-sage-dark, #506c61); }
.bz-tabs--left .bz-tabs-panels { flex: 1 1 auto; min-width: 0; }
.bz-tabs--left .bz-tabs-panel { padding-top: 0; }

@media (max-width: 767px) {
	.bz-tabs--left { display: block; }
	.bz-tabs--left .bz-tabs-list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 4px 24px;
		border-right: 0;
		border-bottom: 1px solid color-mix(in srgb, var(--bz-ink, #2a2a2a) 14%, transparent);
	}
	.bz-tabs--left .bz-tabs-btn { border-right: 0; padding: 12px 0; }
	.bz-tabs--left .bz-tabs-panel { padding-top: 24px; }
}

/* -------------------------------- gallery ------------------------------- */

.bz-gallery {
	display: grid;
	grid-template-columns: repeat(var(--bz-gal-cols, 3), minmax(0, 1fr));
	gap: var(--bz-gal-gap, 16px);
	width: 100%;
}

.bz-gallery-item { margin: 0; min-width: 0; }

.bz-gallery-link { display: block; overflow: hidden; }

.bz-gallery img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: var(--bz-gal-ratio, auto);
	transition: transform .5s ease;
}

.bz-gallery-link:hover img { transform: scale(1.04); }

.bz-gallery-caption {
	margin-top: 8px;
	font-size: .82em;
	opacity: .7;
}

@media (max-width: 1023px) { .bz-gallery { grid-template-columns: repeat(var(--bz-gal-cols-t, 2), minmax(0, 1fr)); } }
@media (max-width: 767px)  { .bz-gallery { grid-template-columns: repeat(var(--bz-gal-cols-m, 1), minmax(0, 1fr)); } }

/* -------------------------------- lightbox ------------------------------ */

.bz-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(20, 20, 20, .92);
	padding: 32px;
}

.bz-lightbox img {
	max-width: 100%;
	max-height: 82vh;
	object-fit: contain;
}

.bz-lightbox-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 24px;
	text-align: center;
	color: #fff;
	font-size: .9rem;
	opacity: .8;
}

.bz-lightbox-btn {
	position: absolute;
	appearance: none;
	background: none;
	border: 0;
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	padding: 12px 18px;
	opacity: .75;
}

.bz-lightbox-btn:hover { opacity: 1; }
.bz-lightbox-close { top: 8px; right: 8px; }
.bz-lightbox-prev  { left: 4px; top: 50%; transform: translateY(-50%); }
.bz-lightbox-next  { right: 4px; top: 50%; transform: translateY(-50%); }

/* ------------------------------ testimonials ---------------------------- */

.bz-testimonials {
	display: grid;
	grid-template-columns: repeat(var(--bz-tst-cols, 3), minmax(0, 1fr));
	gap: var(--bz-tst-gap, 24px);
	width: 100%;
}

.bz-testimonial {
	margin: 0;
	padding: 28px;
	background: var(--bz-cream-soft, #f9f8f7);
	border-radius: var(--bz-radius, 0);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bz-testimonial-quote { margin: 0; font-style: italic; }
.bz-testimonial-quote > *:first-child { margin-top: 0; }
.bz-testimonial-quote > *:last-child { margin-bottom: 0; }

.bz-testimonial-by {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}

.bz-testimonial-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.bz-testimonial-meta { display: flex; flex-direction: column; }
.bz-testimonial-name { font-weight: 600; }
.bz-testimonial-role { font-size: .82em; opacity: .7; }

.bz-testimonial-rating { display: flex; gap: 3px; }

.bz-star {
	width: 14px;
	height: 14px;
	background: currentColor;
	opacity: .18;
	clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.bz-star.is-on { opacity: 1; color: var(--bz-gold, #aa6a04); }

.bz-testimonials--carousel {
	display: flex;
	grid-template-columns: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.bz-testimonials--carousel::-webkit-scrollbar { display: none; }

.bz-testimonials--carousel .bz-testimonial {
	scroll-snap-align: start;
	flex: 0 0 calc((100% - (var(--bz-tst-cols, 3) - 1) * var(--bz-tst-gap, 24px)) / var(--bz-tst-cols, 3));
}

@media (max-width: 1023px) {
	.bz-testimonials { grid-template-columns: repeat(var(--bz-tst-cols-t, 2), minmax(0, 1fr)); }
	.bz-testimonials--carousel .bz-testimonial { flex-basis: calc((100% - (var(--bz-tst-cols-t, 2) - 1) * var(--bz-tst-gap, 24px)) / var(--bz-tst-cols-t, 2)); }
}

@media (max-width: 767px) {
	.bz-testimonials { grid-template-columns: repeat(var(--bz-tst-cols-m, 1), minmax(0, 1fr)); }
	.bz-testimonials--carousel .bz-testimonial { flex-basis: calc((100% - (var(--bz-tst-cols-m, 1) - 1) * var(--bz-tst-gap, 24px)) / var(--bz-tst-cols-m, 1)); }
}

/* --------------------------------- posts -------------------------------- */

.bz-posts {
	display: grid;
	grid-template-columns: repeat(var(--bz-posts-cols, 3), minmax(0, 1fr));
	gap: var(--bz-posts-gap, 24px);
	width: 100%;
}

.bz-post {
	display: flex;
	flex-direction: column;
	gap: 14px;
	color: inherit;
	text-decoration: none;
	min-width: 0;
}

.bz-post-media { display: block; overflow: hidden; }

.bz-post-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: var(--bz-posts-ratio, auto);
	transition: transform .5s ease;
}

.bz-post:hover .bz-post-media img { transform: scale(1.04); }

.bz-post-body { display: flex; flex-direction: column; gap: 8px; }

.bz-post-date {
	font-size: .74em;
	letter-spacing: .1em;
	text-transform: uppercase;
	opacity: .6;
}

.bz-post-title { font-size: 1.1em; font-weight: 600; }
.bz-post-excerpt { opacity: .8; }

.bz-post-more {
	font-size: .78em;
	letter-spacing: .12em;
	text-transform: uppercase;
	border-bottom: 1px solid currentColor;
	align-self: flex-start;
	padding-bottom: 2px;
}

@media (max-width: 1023px) { .bz-posts { grid-template-columns: repeat(var(--bz-posts-cols-t, 2), minmax(0, 1fr)); } }
@media (max-width: 767px)  { .bz-posts { grid-template-columns: repeat(var(--bz-posts-cols-m, 1), minmax(0, 1fr)); } }

/* -------------------------------- divider ------------------------------- */

.bz-divider {
	display: flex;
	justify-content: var(--bz-div-justify, center);
	width: 100%;
}

.bz-divider-line {
	display: block;
	border-top-color: currentColor;
	opacity: .35;
}

/* ---------------------------------- icon -------------------------------- */

.bz-icon-wrap { display: flex; }
.bz-icon-el { display: inline-flex; line-height: 0; }
.bz-icon-el img { display: block; width: var(--bz-icon-size, 32px); height: auto; }
.bz-icon-link { display: inline-flex; color: inherit; }

/* -------------------------------- countdown ----------------------------- */

.bz-countdown { width: 100%; }

.bz-cd-units {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	align-items: flex-end;
}

.bz-cd-unit { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.bz-cd-value {
	font-family: var(--bz-font-display, inherit);
	font-size: var(--bz-cd-size, 44px);
	font-weight: var(--bz-display-weight, 700);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.bz-cd-label {
	font-size: .68em;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .65;
}

.bz-countdown.is-expired .bz-cd-units { display: none; }
.bz-cd-expired { font-size: 1.1em; }

/* ----------------------------------- map -------------------------------- */

.bz-map { width: 100%; }

.bz-map iframe {
	display: block;
	width: 100%;
	height: var(--bz-map-height, 420px);
}

.bz-map--gray iframe { filter: grayscale(1) contrast(1.05); }

/* --------------------------------- social ------------------------------- */

.bz-social { width: 100%; }

.bz-social-handle {
	display: inline-block;
	margin-bottom: 16px;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-size: .8em;
	color: inherit;
	text-decoration: none;
}

.bz-social-grid {
	display: grid;
	grid-template-columns: repeat(var(--bz-soc-cols, 6), minmax(0, 1fr));
	gap: var(--bz-soc-gap, 8px);
}

.bz-social-item { display: block; overflow: hidden; }

.bz-social-item img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: opacity .3s ease, transform .5s ease;
}

.bz-social-item:hover img { opacity: .85; transform: scale(1.05); }

@media (max-width: 1023px) { .bz-social-grid { grid-template-columns: repeat(var(--bz-soc-cols-t, 4), minmax(0, 1fr)); } }
@media (max-width: 767px)  { .bz-social-grid { grid-template-columns: repeat(var(--bz-soc-cols-m, 2), minmax(0, 1fr)); } }

/* ---------------------- editor-only empty placeholder ------------------- */

.bz-el-empty {
	padding: 24px;
	border: 1px dashed var(--bz-sage, #728988);
	color: var(--bz-sage-dark, #506c61);
	font-size: .85rem;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.bz-gallery img,
	.bz-post-media img,
	.bz-social-item img,
	.bz-accordion-marker::before,
	.bz-accordion-marker::after { transition: none; }
}
