/*
 * Templates (archives, posts, wildflowers, search, 404): only what block settings can't express.
 * Values measured on the Kadence site on Nov 17 2026. Built by tools/build-templates.py.
 */

/* ---------- Byline: "By <author> • <date>", Kadence's 4px dot at 80% ---------- */
.b33-byline a {
	text-decoration: none;
}
/* Post types without authors (events, wildflowers) show the date only, as on the Kadence site. */
.b33-byline:not(:has(.wp-block-post-author-name)) > p,
.b33-byline:not(:has(.wp-block-post-author-name)) > .b33-dot {
	display: none;
}
.b33-byline .b33-dot {
	width: 4px;
	height: 4px;
	background-color: currentColor;
	opacity: 0.8;
}

/* ---------- Archive cards (News & Stories, categories) ---------- */
/* Category labels: Kadence puts its hidden "|" divider between two 12px gaps, so labels sit 24px
   apart and wrap with 2px between lines. */
.b33-archive-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 24px;
}
.b33-archive-terms .wp-block-post-terms__separator {
	display: none;
}
/* Kadence doubles the space under the labels (0.5em to 1em) at 719px and below. */
@media (max-width: 719px) {
	.b33-archive-terms {
		margin-bottom: 12px !important;
	}
}
/* Read More pill: sits at the card's bottom left, Kadence's arrow after the text. */
.is-layout-flex.is-vertical > .b33-archive-more,
.b33-archive-more {
	width: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	min-height: 44px;
	box-sizing: border-box;
}
.b33-archive-more::after {
	content: "";
	width: 15px;
	height: 15px;
	flex: none;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 28'%3E%3Cpath d='M27 13.953c0 .141-.063.281-.156.375l-6 5.531c-.156.141-.359.172-.547.094-.172-.078-.297-.25-.297-.453v-3.5H.5c-.281 0-.5-.219-.5-.5v-3c0-.281.219-.5.5-.5H20V8.5c0-.203.109-.375.297-.453s.391-.047.547.078l6 5.469c.094.094.156.219.156.359z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 28'%3E%3Cpath d='M27 13.953c0 .141-.063.281-.156.375l-6 5.531c-.156.141-.359.172-.547.094-.172-.078-.297-.25-.297-.453v-3.5H.5c-.281 0-.5-.219-.5-.5v-3c0-.281.219-.5.5-.5H20V8.5c0-.203.109-.375.297-.453s.391-.047.547.078l6 5.469c.094.094.156.219.156.359z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.b33-archive-more:hover,
.b33-archive-more:focus-visible {
	background-color: #c3dfdc !important;
	color: #1c3633 !important;
}

/* ---------- Boxed content card (Kadence "boxed" content style) ---------- */
@media (max-width: 767px) {
	.is-layout-constrained > .b33-boxed {
		margin-left: -1rem !important;
		margin-right: -1rem !important;
		max-width: none !important;
	}
}

/* Wide blocks inside a boxed card reach into its padding, as on the Kadence site
   (.content-style-boxed .entry-content .alignwide: 2rem, 1.5rem on phones). */
.b33-boxed .b33-entry-content > .alignwide {
	max-width: none;
	margin-left: -32px !important;
	margin-right: -32px !important;
}
@media (max-width: 767px) {
	.b33-boxed .b33-entry-content > .alignwide {
		margin-left: -24px !important;
		margin-right: -24px !important;
	}
}

/* Post and wildflower text rhythm, as Kadence's single-content: paragraphs 2rem apart,
   headings 1.5em above and 0.5em below. */
.b33-entry-content > :is(h1, h2, h3, h4, h5, h6) {
	margin-block-start: 1.5em;
	margin-block-end: 0.5em;
}
.b33-entry-content > :is(h1, h2, h3, h4, h5, h6):first-child {
	margin-block-start: 0;
}
.b33-entry-content > :is(h1, h2, h3, h4, h5, h6) + * {
	margin-block-start: 0;
}

/* ---------- Posts: transparent header over the hero photo ---------- */
.wp-site-blocks {
	position: relative;
}
.b33-header-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
}
.b33-header-overlay > .wp-block-template-part > .has-background {
	background-color: transparent !important;
}
/* Hero: as tall as two thirds of the text column, wider than it (1054px from 1102px, 954px from
   1025px, full width below), overlapped 4.3em by the content card. */
.b33-single.is-layout-constrained > .b33-post-hero {
	position: relative;
	z-index: 0;
	width: auto;
	max-width: none !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	margin-bottom: -4.3em !important;
	height: min(529.36px, calc((100vw - 48px) * 0.6667));
	overflow: hidden;
}
@media (min-width: 1025px) {
	.b33-single.is-layout-constrained > .b33-post-hero {
		max-width: 954px !important;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}
@media (min-width: 1102px) {
	.b33-single.is-layout-constrained > .b33-post-hero {
		max-width: 1054px !important;
	}
}
.b33-single .b33-post-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.b33-post-card {
	position: relative;
	z-index: 1;
}
.b33-post-terms a {
	font-weight: 700;
}

/* Previous / Next: Kadence's small bold uppercase label line, then the title. */
.b33-post-nav .wp-block-post-navigation-link {
	font-size: 17px;
	line-height: 1.6;
}
.b33-post-nav .b33-nav-prev {
	position: relative;
	padding-right: 17px;
}
/* Kadence's divider: 1px gray line over the middle half of the Previous column. */
.b33-post-nav .b33-nav-prev::after {
	content: "";
	position: absolute;
	top: 25%;
	right: 0;
	width: 1px;
	height: 50%;
	background: var(--wp--preset--color--border-dark);
}
.b33-post-nav .b33-nav-next {
	padding-left: 17px;
}
.b33-post-nav a {
	color: var(--wp--preset--color--bark);
	text-decoration: none;
}
.b33-post-nav .post-navigation-link__label {
	display: block;
	margin-bottom: 8.5px;
	line-height: 27.2px;
	font-size: 13.6px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.b33-post-nav .b33-nav-next {
	text-align: right;
}
/* Kadence's arrow sits beside the label: before "Previous", after "Next". */
.b33-post-nav .post-navigation-link__label::before,
.b33-post-nav .post-navigation-link__label::after {
	display: inline-block;
	width: 13.6px;
	height: 13.6px;
	vertical-align: -1px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 28'%3E%3Cpath d='M27 13.953c0 .141-.063.281-.156.375l-6 5.531c-.156.141-.359.172-.547.094-.172-.078-.297-.25-.297-.453v-3.5H.5c-.281 0-.5-.219-.5-.5v-3c0-.281.219-.5.5-.5H20V8.5c0-.203.109-.375.297-.453s.391-.047.547.078l6 5.469c.094.094.156.219.156.359z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 28'%3E%3Cpath d='M27 13.953c0 .141-.063.281-.156.375l-6 5.531c-.156.141-.359.172-.547.094-.172-.078-.297-.25-.297-.453v-3.5H.5c-.281 0-.5-.219-.5-.5v-3c0-.281.219-.5.5-.5H20V8.5c0-.203.109-.375.297-.453s.391-.047.547.078l6 5.469c.094.094.156.219.156.359z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.b33-post-nav .b33-nav-prev .post-navigation-link__label::before {
	content: "";
	margin-right: 6.8px;
	transform: scaleX(-1);
}
.b33-post-nav .b33-nav-next .post-navigation-link__label::after {
	content: "";
	margin-left: 6.8px;
}

/* Similar Posts: Ollie Pro carousel styled as live's Kadence (Splide) carousel.
   Ollie switches slides per view at 781px and 480px; live switches at 1024px and 544px.
   The carousel script sets --ollie-slides-per-view inline, so these overrides use !important. */
.b33-related-carousel {
	--wp--custom--ollie-carousel--pagination-bottom: -22px;
	/* Live's dots: current one black at 75%, the others at 25%. */
	--wp--custom--ollie-carousel--pagination-active-opacity: 0.75;
	--wp--custom--ollie-carousel--pagination-inactive-opacity: 0.25;
}
.b33-related-carousel .ollie-carousel-viewport {
	margin-bottom: 30px;
}
@media (max-width: 1023px) {
	.b33-related-carousel .ollie-carousel-viewport {
		--ollie-slides-per-view: 2 !important;
	}
}
@media (max-width: 543px) {
	.b33-related-carousel .ollie-carousel-viewport {
		--ollie-slides-per-view: 1 !important;
	}
}
/* Every card as tall as the tallest, also with one card in view (Ollie adapts the height then). */
.b33-related-carousel .ollie-carousel-viewport {
	height: auto !important;
}
.b33-related-carousel .ollie-carousel-container {
	align-items: stretch !important;
}
/* Arrows: 32 x 48 dark boxes, 16px inside each edge at every width, white 16px chevron. */
.b33-related-carousel .ollie-carousel-prev {
	left: 16px !important;
	right: auto !important;
}
.b33-related-carousel .ollie-carousel-next {
	left: auto !important;
	right: 16px !important;
}
.b33-related-carousel .ollie-carousel-prev,
.b33-related-carousel .ollie-carousel-next {
	width: 32px;
	height: 48px;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	opacity: 0.85;
}
.b33-related-carousel .ollie-carousel-prev:hover,
.b33-related-carousel .ollie-carousel-next:hover {
	opacity: 1;
}
.b33-related-carousel .ollie-carousel-prev svg,
.b33-related-carousel .ollie-carousel-next svg {
	width: 16px;
	height: 16px;
}
/* Arrow icon: Splide's chevron, 16px. */
.b33-related-carousel .ollie-carousel-custom-icon {
	display: flex;
	width: 16px;
	height: 16px;
}

/* ---------- Search results: posts keep the archive card type, pages use the theme heading ---------- */
.b33-search-grid .type-post .b33-search-title {
	font-size: 20px !important;
	line-height: 1.3 !important;
	letter-spacing: 0 !important;
}
.b33-search-grid .type-post .b33-search-title a {
	color: #1c3633;
}
.b33-search-grid .type-post .b33-byline {
	font-size: 13px;
	line-height: 1.5;
	color: #325d59;
}
.b33-search-excerpt .wp-block-post-excerpt__more-text {
	margin-top: 17px;
	margin-bottom: 0;
}
.b33-search-excerpt .wp-block-post-excerpt__more-link {
	font-size: 13.6px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--bark);
}
.b33-search-excerpt .wp-block-post-excerpt__more-link::after {
	content: " \2192";
}

/* ---------- 404 search box: Kadence input (1px border, 3px radius) with the icon inside ---------- */
.b33-404-search .wp-block-search__inside-wrapper {
	padding: 0;
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: 3px;
	background: var(--wp--preset--color--base);
}
.b33-404-search .wp-block-search__input {
	height: 41px;
	padding: 6.8px 8.5px;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--primary-alt-accent);
	font-size: 17px;
}
.b33-404-search .wp-block-search__button {
	width: 50px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--secondary);
}

/* ---------- Password-protected pages (Board Calendar): Kadence form look ---------- */
.b33-page-with-title .post-password-form {
	margin: 0 0 80px;
}
.b33-page-with-title .post-password-form p {
	margin: 0 0 32px;
}
.b33-page-with-title .post-password-form p:empty {
	display: none;
}
.b33-page-with-title .post-password-form p:last-child {
	margin-bottom: 0;
}
.b33-page-with-title .post-password-form label {
	display: inline;
}
.b33-page-with-title .post-password-form input[type="password"] {
	width: 235px;
	max-width: 100%;
	height: 43px;
	box-sizing: border-box;
	margin: 0;
	padding: 6.8px 8.5px;
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: 3px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary-alt-accent);
	font: inherit;
}
.b33-page-with-title .post-password-form input[type="submit"] {
	margin: 0;
	padding: 8px 24px;
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: 4px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--bark);
	font-family: var(--wp--preset--font-family--primary);
	font-size: 18px;
	line-height: 1.6;
	letter-spacing: 0.05em;
	cursor: pointer;
}
.b33-page-with-title .post-password-form input[type="submit"]:hover,
.b33-page-with-title .post-password-form input[type="submit"]:focus-visible {
	border-color: var(--wp--preset--color--primary-accent);
	background: var(--wp--preset--color--primary-accent);
	color: var(--wp--preset--color--primary-alt-accent);
}

/* Audit fix (Nov 18): the password form follows the site rules: 44px field and button, 20px corners,
   15px bold button text. */
.b33-page-with-title .post-password-form input[type="password"] {
	height: 44px;
	padding: 10px 16px;
	border-radius: 20px;
}
.b33-page-with-title .post-password-form input[type="submit"] {
	height: 44px;
	padding: 10px 20px;
	border: 0;
	border-radius: 20px;
	font-size: 15px;
	font-weight: 700;
	line-height: 24px;
	letter-spacing: 0;
}
