/*
 * Content: pages, blog index and posts, search, 404. Also the typography for converted page content
 * (clean HTML in post_content, L7) and Gravity Forms on content pages.
 */

.page-title {
	max-width: 20ch;
}

.page-hero {
	margin-bottom: 48px;
}

.page-hero img {
	width: 100%;
	max-height: 70vh;
	object-fit: cover;
}

/* ============================================================ entry content */
.entry-content {
	font-size: 16px;
	line-height: 1.7;
}

@media (min-width: 900px) {
	.entry-content {
		font-size: 17px;
	}
}

.entry-content > * + * {
	margin-top: 1.1em;
}

.entry-content h2 {
	margin-top: 2em;
	font-size: clamp(26px, 2.6vw, 34px);
	line-height: 1.1;
}

.entry-content h3 {
	margin-top: 1.8em;
	font-size: clamp(19px, 1.7vw, 22px);
}

.entry-content h4 {
	margin-top: 1.6em;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.entry-content p.eyebrow {
	margin-top: 2.6em;
	color: var(--muted);
}

.entry-content p.eyebrow + h2,
.entry-content p.eyebrow + h3 {
	margin-top: 0.4em;
}

.entry-content h2 + *,
.entry-content h3 + *,
.entry-content h4 + * {
	margin-top: 0.6em;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content a {
	text-decoration: underline;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.2em;
}

.entry-content li + li {
	margin-top: 0.35em;
}

.entry-content li::marker {
	color: var(--muted);
}

.entry-content .lead {
	font-size: 1.18em;
	line-height: 1.55;
}

/* Pronunciation guide after a name, e.g. "Sjolie [show-lee]". */
.pronounce {
	color: var(--muted);
	font-weight: 400;
	white-space: nowrap;
}

.entry-content strong {
	font-weight: 600;
}

.entry-content blockquote {
	margin-inline: 0;
	padding-left: 20px;
	border-left: 2px solid var(--ink);
	font-size: 1.15em;
	line-height: 1.5;
}

.entry-content figure,
.entry-content .wp-caption {
	max-width: 100%;
}

.entry-content img {
	height: auto;
}

.entry-content figcaption,
.entry-content .wp-caption-text {
	margin-top: 8px;
	font-size: 13px;
	color: var(--muted);
}

.entry-content .alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
	max-width: 50%;
}

.entry-content .alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
	max-width: 50%;
}

.entry-content .aligncenter {
	margin-inline: auto;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	display: block;
	overflow-x: auto;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px 10px 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.entry-content hr {
	margin-block: 2.4em;
}

.entry-content iframe,
.entry-content video {
	max-width: 100%;
}

.entry-content .wp-block-embed iframe,
.entry-content iframe[src*="youtube"],
.entry-content iframe[src*="vimeo"] {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

/* Toggles converted from the page builder */
.entry-content details {
	border-top: 1px solid var(--line);
}

.entry-content details:last-of-type {
	border-bottom: 1px solid var(--line);
}

.entry-content details + details {
	margin-top: 0;
}

.entry-content details > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding-block: 10px;
	font-weight: 500;
	line-height: 1.35;
}

.entry-content details > summary::after {
	content: "+";
	flex: 0 0 auto;
	font-size: 20px;
	font-weight: 300;
}

.entry-content details[open] > summary::after {
	content: "−";
}

.entry-content details > :not(summary) {
	margin: 0 0 1em;
}

/* Calls to action converted from page-builder buttons */
.entry-content .button,
.entry-content .wp-block-button__link {
	text-decoration: none;
}

.entry-content .cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 1.6em;
}

/* Feature cards (converted icon boxes) */
.entry-content .feature-list {
	display: grid;
	gap: 24px;
	margin-top: 1.6em;
	padding: 0;
	list-style: none;
}

.entry-content .feature-list > li {
	margin: 0;
	padding-top: 14px;
	border-top: 1px solid var(--ink);
}

.entry-content .feature-list h3 {
	margin: 0 0 6px;
	font-size: 18px;
}

.entry-content .feature-list p {
	margin: 0;
	font-size: 16px;
	color: #4a423c;
}

@media (min-width: 700px) {
	.entry-content .feature-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 700px) {
	.entry-content p:has(> .stat) {
		display: inline-flex;
		flex-direction: column;
		width: calc(33.333% - 16px);
		margin-right: 16px;
		vertical-align: top;
	}
}

.entry-content .stat {
	display: block;
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1;
}

/* ============================================================ blog */
.post-grid {
	display: grid;
	gap: 40px 16px;
}

@media (min-width: 700px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 56px 20px;
	}
}

.post-card__link {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-decoration: none;
}

.post-card__link:hover {
	color: var(--ink);
}

.post-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--sand);
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.post-card__link:hover .post-card__media img {
	transform: scale(1.03);
}

.post-card__meta {
	margin-top: 4px;
	color: var(--muted);
}

.post-card__title {
	font-size: clamp(19px, 1.6vw, 22px);
	line-height: 1.2;
	letter-spacing: -0.015em;
}

.post-card__excerpt {
	font-size: 14.5px;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-single__header {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-bottom: 32px;
}

/* Sized for the reading column the title now shares with the photo and text. */
.post-single__title {
	font-size: clamp(30px, 3.4vw, 46px);
}

.post-single__media {
	margin-bottom: 48px;
}

.post-single__media img {
	width: 100%;
	max-height: 72vh;
	object-fit: cover;
}

.post-single__footer {
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.post-related {
	margin-top: 96px;
}

.post-related > h2 {
	margin-bottom: 28px;
	font-size: clamp(26px, 2.6vw, 36px);
}

/* ============================================================ search, 404 */
.search-page__form {
	margin-top: 24px;
	max-width: 640px;
}

.search-page__form .search-form {
	margin: 0;
}

.search-results {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.search-result {
	display: flex;
	gap: 16px;
	padding-block: 18px;
	border-bottom: 1px solid var(--line);
	text-decoration: none;
}

.search-result:hover {
	color: var(--ink);
}

.search-result__media {
	flex: 0 0 72px;
	height: 96px;
	background: var(--sand);
}

.search-result__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.search-result__media.is-product img {
	object-fit: contain;
	padding: 6px;
	mix-blend-mode: multiply;
}

.search-result__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.search-result__title {
	font-size: 17px;
	font-weight: 500;
}

.search-result__excerpt {
	font-size: 14px;
	color: var(--muted);
}

.search-empty {
	margin-bottom: 24px;
}

.chips--wrap ul {
	flex-wrap: wrap;
	margin-inline: 0;
	padding-inline: 0;
	overflow: visible;
}

/* ============================================================ comments */
.comments-area {
	margin-top: 72px;
}

.comment-list {
	padding: 0;
	list-style: none;
}

.comment-body {
	padding-block: 16px;
	border-bottom: 1px solid var(--line);
	font-size: 16px;
}

.comment-form .submit {
	min-height: 48px;
	padding: 0 28px;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--ink);
	color: var(--bg);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* ============================================================ Gravity Forms (content pages) */
.gform_wrapper {
	margin-top: 2em;
	font-size: 16px;
}

.gform_wrapper .gform_title {
	font-size: 22px;
}

.gform_wrapper .gfield_label,
.gform_wrapper .gform-field-label {
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.gform_wrapper .gfield_required {
	color: var(--muted);
}

.gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
.gform_wrapper select,
.gform_wrapper textarea {
	min-height: 48px;
	border: 1px solid var(--line-control) !important;
	border-radius: 0 !important;
	background-color: var(--white) !important;
	box-shadow: none !important;
	font-size: 16px !important;
}

/* The box-shadow reset above also removes Gravity Forms' own focus ring: draw the site's (ink border and
   outline, as in base.css), forced past GF's theme CSS. */
.gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]):focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
	border-color: var(--ink) !important;
	outline: 1px solid var(--ink) !important;
	outline-offset: 0 !important;
}

.gform_wrapper .gfield_error input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
.gform_wrapper .gfield_error select,
.gform_wrapper .gfield_error textarea {
	border-color: #b3261e !important;
}

.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_button,
.gform_wrapper .gform_next_button,
.gform_wrapper .gform_previous_button {
	min-height: 52px !important;
	padding: 0 32px !important;
	border: 0 !important;
	border-radius: var(--radius-pill) !important;
	background: var(--ink) !important;
	color: var(--bg) !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase;
	cursor: pointer;
}

.gform_wrapper .gfield_description,
.gform_wrapper .gform_fileupload_rules {
	font-size: 13px;
	color: var(--muted);
}

.gform_wrapper .validation_message,
.gform_wrapper .gform_validation_errors {
	color: var(--error);
}
