/**
 * Blog WYSIWYG content styles — matches single article design.
 *
 * Applied to .fd-blog-content on the front end and in the editor preview.
 */

.fd-blog-content {
	flex: 1 1 0%;
	min-width: 0;
}

/* Intro paragraph */
.fd-blog-content > p:first-child,
.fd-blog-content .fd-blog-intro,
.fd-blog-content .is-style-fd-blog-intro {
	margin-bottom: 2.5rem;
	padding-left: 1.25rem;
	border-left: 2px solid #d4af5a;
	color: #6b5b3e;
	font-family: var(--font-cormorant), "Cormorant Garamond", Georgia, serif;
	font-size: 1.125rem;
	font-style: italic;
	line-height: 1.625;
}

/* Body paragraphs */
.fd-blog-content p {
	margin-bottom: 1.75rem;
	color: #3d2e1e;
	font-family: var(--font-lato), "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.85;
}

.fd-blog-content .fd-blog-tip__label {
	margin-bottom: 0.5rem;
	color: #b8933a;
	font-family: var(--font-lato), "Helvetica Neue", Arial, sans-serif;
	font-size: 10px;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0.25em;
	line-height: 1.5;
	text-transform: uppercase;
}

/* Headings */
.fd-blog-content h2 {
	margin-top: 3rem;
	margin-bottom: 1rem;
	color: #2c1a08;
	font-family: var(--font-cormorant), "Cormorant Garamond", Georgia, serif;
	font-size: 1.875rem;
	font-weight: 300;
	line-height: 1.25;
}

.fd-blog-content h3 {
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	color: #2c1a08;
	font-family: var(--font-cormorant), "Cormorant Garamond", Georgia, serif;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.3;
}

/* Local tip callout */
.fd-blog-content .fd-blog-tip,
.fd-blog-content .wp-block-group.fd-blog-tip,
.fd-blog-content .wp-block-group.is-style-fd-blog-tip,
.fd-blog-content .is-style-fd-blog-tip {
	margin-bottom: 2rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid rgb(212 175 90 / 30%);
	border-radius: 1rem;
	background-color: rgb(184 147 58 / 10%);
}

/* Prevent nested tip wrappers from stacking styles */
.fd-blog-content .fd-blog-tip .fd-blog-tip,
.fd-blog-content .is-style-fd-blog-tip .is-style-fd-blog-tip,
.fd-blog-content .fd-blog-tip .is-style-fd-blog-tip,
.fd-blog-content .is-style-fd-blog-tip .fd-blog-tip {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.fd-blog-content .fd-blog-tip p:not(.fd-blog-tip__label),
.fd-blog-content .is-style-fd-blog-tip p:not(.fd-blog-tip__label),
.fd-blog-content .wp-block-group.fd-blog-tip p:not(.fd-blog-tip__label),
.fd-blog-content .wp-block-group.is-style-fd-blog-tip p:not(.fd-blog-tip__label) {
	margin-bottom: 0;
	color: #3d2e1e;
	font-family: var(--font-cormorant), "Cormorant Garamond", Georgia, serif;
	font-size: 0.875rem;
	font-style: italic;
	line-height: 1.625;
}

/* Lists with gold dot bullets */
.fd-blog-content ul,
.fd-blog-content ol {
	margin-bottom: 2rem;
	padding-left: 0;
	list-style: none;
}

.fd-blog-content ul li,
.fd-blog-content ol li {
	display: flex;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	color: #3d2e1e;
	font-family: var(--font-lato), "Helvetica Neue", Arial, sans-serif;
	font-size: 0.875rem;
	line-height: 1.625;
}

.fd-blog-content ul li::before {
	content: "";
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	margin-top: 0.375rem;
	border-radius: 9999px;
	background-color: #d4af5a;
}

.fd-blog-content ol {
	counter-reset: fd-blog-counter;
}

.fd-blog-content ol li {
	counter-increment: fd-blog-counter;
}

.fd-blog-content ol li::before {
	content: counter(fd-blog-counter);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.125rem;
	border-radius: 9999px;
	background-color: #d4af5a;
	color: #fff;
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1;
}

/* Images and figures */
.fd-blog-content figure {
	margin: 0 0 2.5rem;
}

/* Pasted/markup wrapper around image */
.fd-blog-content figure > div:has(> img) {
	position: relative;
	height: 18rem;
	overflow: hidden;
	border-radius: 1rem;
}

.fd-blog-content figure > div > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	border-radius: 0;
}

/* WordPress editor: figure, block image, or lone paragraph image */
.fd-blog-content figure > img,
.fd-blog-content .wp-block-image img,
.fd-blog-content figure.wp-block-image img,
.fd-blog-content p > img:only-child {
	display: block;
	width: 100%;
	height: 18rem;
	margin: 0;
	border-radius: 1rem;
	object-fit: cover;
}

.fd-blog-content figcaption,
.fd-blog-content .wp-element-caption,
.fd-blog-content .wp-caption-text {
	margin-top: 0.75rem;
	color: #a08060;
	font-family: var(--font-lato), "Helvetica Neue", Arial, sans-serif;
	font-size: 0.75rem;
	font-style: italic;
	line-height: 1.5;
	text-align: center;
}

/* Classic editor caption wrapper */
.fd-blog-content .wp-caption {
	max-width: 100%;
	margin: 0 0 2.5rem;
}

.fd-blog-content .wp-caption img {
	display: block;
	width: 100%;
	height: 18rem;
	border-radius: 1rem;
	object-fit: cover;
}

@media (min-width: 768px) {
	.fd-blog-content figure > div:has(> img) {
		height: 24rem;
	}

	.fd-blog-content figure > img,
	.fd-blog-content .wp-block-image img,
	.fd-blog-content figure.wp-block-image img,
	.fd-blog-content p > img:only-child,
	.fd-blog-content .wp-caption img {
		height: 24rem;
	}
}

/* Floated images keep natural sizing */
.fd-blog-content img.alignleft,
.fd-blog-content img.alignright,
.fd-blog-content .alignleft img,
.fd-blog-content .alignright img {
	width: auto;
	height: auto;
	max-width: 100%;
	border-radius: 0.5rem;
}

.fd-blog-content .alignnone,
.fd-blog-content .aligncenter {
	border-radius: 1rem;
}

/* Links */
.fd-blog-content a {
	color: #b8933a;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fd-blog-content a:hover,
.fd-blog-content a:focus {
	color: #9a7a2e;
}

/* Blockquotes */
.fd-blog-content blockquote {
	margin: 0 0 2rem;
	padding: 1.25rem 1.5rem;
	border-left: 2px solid #d4af5a;
	border-radius: 0 1rem 1rem 0;
	background-color: rgb(184 147 58 / 8%);
	color: #3d2e1e;
	font-family: var(--font-cormorant), "Cormorant Garamond", Georgia, serif;
	font-style: italic;
}

.fd-blog-content blockquote p:last-child {
	margin-bottom: 0;
}

/* Horizontal rule */
.fd-blog-content hr {
	margin: 2.5rem 0;
	border: 0;
	border-top: 1px solid #e8d9b5;
}

/* WordPress alignment helpers */
.fd-blog-content .alignwide,
.fd-blog-content .alignfull {
	max-width: none;
}
