/* ==========================================================================
   TWFG Modern - classic editorial single-post layout
   ========================================================================== */

.twfg-single {
	background: var(--twfg-white);
	color: var(--twfg-ink);
	font-family: var(--twfg-body);
}

.twfg-single__container {
	margin-left: auto;
	margin-right: auto;
	max-width: var(--twfg-content-max);
	padding-left: var(--twfg-content-gutter);
	padding-right: var(--twfg-content-gutter);
	width: 100%;
}

.twfg-single__measure {
	margin-left: auto;
	margin-right: auto;
	max-width: 800px;
	width: 100%;
}

.twfg-single__intro {
	background: var(--twfg-paper);
	padding-bottom: clamp(42px, 5vw, 70px);
	padding-top: clamp(52px, 7vw, 100px);
}

.twfg-single__title {
	color: var(--twfg-plum);
	font-family: var(--twfg-serif);
	font-size: clamp(2.25rem, 4.4vw, 3.25rem);
	font-weight: 400;
	letter-spacing: -0.035em;
	line-height: 1.06;
	margin: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.twfg-single__meta {
	align-items: center;
	color: var(--twfg-muted);
	display: flex;
	flex-wrap: wrap;
	font-family: var(--twfg-body);
	font-size: 0.9rem;
	gap: 8px 16px;
	line-height: 1.55;
	margin: 24px 0 0;
}

.twfg-single__meta-primary {
	align-items: center;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0 7px;
}

.twfg-single__meta-by {
	color: var(--twfg-muted);
}

.twfg-single__author-link,
.twfg-single__category-link {
	color: var(--twfg-plum);
	text-decoration: none;
}

.twfg-single__author-link:hover,
.twfg-single__author-link:focus,
.twfg-single__category-link:hover,
.twfg-single__category-link:focus {
	color: var(--twfg-pink);
}

.twfg-single__category-link {
	border-left: 1px solid var(--twfg-border);
	padding-left: 16px;
}

.twfg-single__body-container {
	padding-bottom: clamp(48px, 7vw, 92px);
	padding-top: clamp(46px, 6vw, 84px);
}

.twfg-single__content {
	color: var(--twfg-ink);
	font-family: var(--twfg-body);
	font-size: clamp(1.06rem, 1.15vw, 1.18rem);
	line-height: 1.78;
	overflow-wrap: anywhere;
}

.twfg-single__content > * {
	max-width: 100%;
}

.twfg-single__content p {
	margin: 0 0 1.45em;
	text-align: left !important;
}

.twfg-single__content p:last-child {
	margin-bottom: 0;
}

.twfg-single__content h1,
.twfg-single__content h2,
.twfg-single__content h3,
.twfg-single__content h4,
.twfg-single__content h5,
.twfg-single__content h6 {
	color: var(--twfg-plum);
	font-family: var(--twfg-serif);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.18;
}

.twfg-single__content h1 {
	font-size: clamp(2rem, 4vw, 3rem);
	margin: 1.9em 0 0.65em;
}

.twfg-single__content h2 {
	font-size: clamp(1.8rem, 3.2vw, 2.45rem);
	margin: 2.2em 0 0.65em;
}

.twfg-single__content h3 {
	font-size: clamp(1.5rem, 2.5vw, 1.95rem);
	margin: 1.9em 0 0.6em;
}

.twfg-single__content h4 {
	font-size: clamp(1.3rem, 2.2vw, 1.6rem);
	margin: 1.7em 0 0.55em;
}

.twfg-single__content h5,
.twfg-single__content h6 {
	font-family: var(--twfg-body);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0;
	margin: 1.5em 0 0.45em;
}

.twfg-single__content ul,
.twfg-single__content ol {
	margin: 0 0 1.5em;
	padding-left: 1.4em;
}

.twfg-single__content li {
	margin-bottom: 0.45em;
	padding-left: 0.25em;
}

.twfg-single__content a {
	color: var(--twfg-pink);
	text-decoration: underline;
	text-decoration-thickness: 0.06em;
	text-underline-offset: 0.15em;
}

.twfg-single__content a:hover,
.twfg-single__content a:focus {
	color: var(--twfg-plum);
}

.twfg-single__content blockquote {
	border-left: 2px solid var(--twfg-lavender);
	color: var(--twfg-plum);
	font-style: italic;
	margin: 2em 0;
	padding: 0 0 0 1.35em;
}

.twfg-single__content blockquote p:last-child {
	margin-bottom: 0;
}

.twfg-single__content cite {
	color: var(--twfg-muted);
	display: block;
	font-family: var(--twfg-body);
	font-size: 0.88em;
	font-style: normal;
	margin-top: 0.75em;
}

.twfg-single__content img,
.twfg-single__content video,
.twfg-single__content iframe,
.twfg-single__content embed,
.twfg-single__content object {
	border: 0;
	height: auto;
	max-width: 100%;
}

.twfg-single__content img {
	display: block;
	width: auto;
}

.twfg-single__content .aligncenter {
	display: block;
	float: none;
	margin: 1.9rem auto;
}

.twfg-single__content .alignleft {
	float: left;
	margin: 0.45rem 1.6rem 1rem 0;
}

.twfg-single__content .alignright {
	float: right;
	margin: 0.45rem 0 1rem 1.6rem;
}

.twfg-single__content figure,
.twfg-single__content .wp-caption {
	margin: 1.9rem auto;
	max-width: 100%;
}

.twfg-single__content figure img,
.twfg-single__content .wp-caption img {
	margin-left: auto;
	margin-right: auto;
}

.twfg-single__content .wp-caption-text,
.twfg-single__content figcaption {
	color: var(--twfg-muted);
	font-family: var(--twfg-body);
	font-size: 0.8rem;
	line-height: 1.5;
	margin-top: 0.65rem;
	text-align: left;
}

.twfg-single__content table {
	border-collapse: collapse;
	display: block;
	overflow-x: auto;
	width: 100%;
}

.twfg-single__content th,
.twfg-single__content td {
	border-bottom: 1px solid var(--twfg-border);
	padding: 0.7em 0.85em;
	text-align: left;
}

.twfg-single__content pre {
	background: var(--twfg-paper);
	overflow-x: auto;
	padding: 1rem;
	white-space: pre-wrap;
}

.twfg-single__page-links {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.9rem;
	gap: 0.45rem 0.8rem;
	margin-top: 2.2rem;
}

.twfg-single__page-links a {
	color: var(--twfg-pink);
}

.twfg-single__tags {
	border-top: 1px solid var(--twfg-border);
	margin-top: clamp(38px, 5vw, 62px);
	padding-top: 20px;
}

.twfg-single__tags h2 {
	color: var(--twfg-muted);
	font-family: var(--twfg-body);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	margin: 0 0 10px;
}

.twfg-single__tags ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 15px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.twfg-single__tags li {
	margin: 0;
}

.twfg-single__tags a {
	color: var(--twfg-pink);
	font-size: 0.86rem;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.twfg-single__tags a:hover,
.twfg-single__tags a:focus {
	color: var(--twfg-plum);
}

.twfg-single__author {
	border-bottom: 1px solid var(--twfg-border);
	border-top: 1px solid var(--twfg-border);
	margin-top: 32px;
	padding: 24px 0;
}

.twfg-single__author-name {
	color: var(--twfg-plum);
	font-family: var(--twfg-body);
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0;
}

.twfg-single__author-name > span {
	color: var(--twfg-muted);
	margin-right: 0.35em;
}

.twfg-single__author-name a {
	color: var(--twfg-pink);
	font-weight: 600;
	text-decoration: none;
}

.twfg-single__author-name a:hover,
.twfg-single__author-name a:focus {
	color: var(--twfg-plum);
}

.twfg-single__author-bio {
	color: var(--twfg-muted);
	font-size: 0.92rem;
	line-height: 1.65;
	margin: 8px 0 0;
}

.twfg-single__related {
	border-top: 1px solid var(--twfg-border);
	padding-bottom: clamp(52px, 7vw, 92px);
	padding-top: clamp(44px, 6vw, 76px);
}

.twfg-single__related h2 {
	color: var(--twfg-plum);
	font-family: var(--twfg-serif);
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	font-weight: 400;
	letter-spacing: -0.025em;
	line-height: 1.1;
	margin: 0 0 27px;
}

.twfg-related-list {
	display: grid;
	gap: 30px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.twfg-related-item {
	min-width: 0;
}

.twfg-related-item__media {
	display: block;
	margin-bottom: 16px;
	width: fit-content;
}

.twfg-related-item__media img {
	display: block;
	height: auto;
	max-height: 180px;
	max-width: 100%;
	width: auto;
}

.twfg-related-item__body time,
.twfg-related-item__category {
	color: var(--twfg-muted);
	display: block;
	font-size: 0.76rem;
	line-height: 1.4;
	margin: 0;
}

.twfg-related-item__category {
	color: var(--twfg-pink);
	margin-bottom: 4px;
}

.twfg-related-item h3 {
	font-family: var(--twfg-serif);
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	font-weight: 400;
	line-height: 1.16;
	margin: 9px 0 0;
}

.twfg-related-item h3 a {
	color: var(--twfg-plum);
	text-decoration: none;
}

.twfg-related-item h3 a:hover,
.twfg-related-item h3 a:focus {
	color: var(--twfg-pink);
}

.twfg-single__comments-wrap {
	background: var(--twfg-paper);
	padding-bottom: clamp(52px, 7vw, 92px);
	padding-top: clamp(44px, 6vw, 76px);
}

.twfg-comments h2,
.twfg-comment-form .comment-reply-title {
	color: var(--twfg-plum);
	font-family: var(--twfg-serif);
	font-size: clamp(1.65rem, 2.5vw, 2.1rem);
	font-weight: 400;
	line-height: 1.15;
	margin: 0 0 24px;
}

.twfg-comments__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.twfg-comment {
	border-top: 1px solid var(--twfg-border);
	padding: 20px 0;
}

.twfg-comment:last-child {
	border-bottom: 1px solid var(--twfg-border);
}

.twfg-comment__meta {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
}

.twfg-comment__meta strong,
.twfg-comment__meta strong a {
	color: var(--twfg-plum);
	font-family: var(--twfg-body);
	font-size: 0.95rem;
	font-weight: 600;
}

.twfg-comment__meta time,
.twfg-comment__meta time a {
	color: var(--twfg-muted);
	font-size: 0.8rem;
}

.twfg-comment__content {
	font-size: 0.98rem;
	line-height: 1.65;
	margin-top: 10px;
}

.twfg-comment__content p:last-child {
	margin-bottom: 0;
}

.twfg-comment__reply {
	font-size: 0.8rem;
	margin-top: 10px;
}

.twfg-comment__reply a,
.twfg-comments__pagination a {
	color: var(--twfg-pink);
	text-decoration: none;
}

.twfg-comment__reply a:hover,
.twfg-comment__reply a:focus,
.twfg-comments__pagination a:hover,
.twfg-comments__pagination a:focus {
	color: var(--twfg-plum);
}

.twfg-comments__pagination {
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
}

.twfg-comments__closed {
	color: var(--twfg-muted);
	font-size: 0.9rem;
	margin: 24px 0 0;
}

.twfg-comment-form {
	display: grid;
	gap: 16px 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.twfg-comment-form .comment-reply-title,
.twfg-comment-form .comment-notes,
.twfg-comment-form .comment-form-comment,
.twfg-comment-form .comment-form-url,
.twfg-comment-form .form-submit,
.twfg-comment-form .comment-form-cookies-consent,
.twfg-comment-form .logged-in-as,
.twfg-comment-form .must-log-in {
	grid-column: 1 / -1;
}

.twfg-comment-form .comment-reply-title {
	margin-top: 30px;
}

.twfg-comment-form p {
	margin: 0;
}

.twfg-comment-form label {
	color: var(--twfg-plum);
	display: block;
	font-family: var(--twfg-body);
	font-size: 0.85rem;
	margin-bottom: 6px;
}

.twfg-comment-form .required {
	color: var(--twfg-pink);
}

.twfg-comment-form input,
.twfg-comment-form textarea {
	background: var(--twfg-white);
	border: 1px solid var(--twfg-border);
	border-radius: 0;
	color: var(--twfg-ink);
	display: block;
	font: inherit;
	line-height: 1.45;
	max-width: 100%;
	padding: 11px 12px;
	width: 100%;
}

.twfg-comment-form textarea {
	min-height: 150px;
	resize: vertical;
}

.twfg-comment-form input:focus,
.twfg-comment-form textarea:focus {
	border-color: var(--twfg-plum);
	box-shadow: 0 0 0 2px var(--twfg-light-lavender);
	outline: 0;
}

.twfg-comment-form .comment-notes,
.twfg-comment-form .logged-in-as,
.twfg-comment-form .must-log-in {
	color: var(--twfg-muted);
	font-size: 0.84rem;
	line-height: 1.5;
}

.twfg-comment-form .comment-notes {
	margin-top: -2px;
}

.twfg-comment-form .comment-notes a,
.twfg-comment-form .logged-in-as a,
.twfg-comment-form .must-log-in a {
	color: var(--twfg-pink);
}

.twfg-comment-form .form-submit {
	margin-top: 4px;
}

.twfg-comment-form .submit {
	background: var(--twfg-pink);
	border: 1px solid var(--twfg-pink);
	border-radius: 0;
	color: var(--twfg-white);
	cursor: pointer;
	font-family: var(--twfg-body);
	font-size: 0.84rem;
	font-weight: 600;
	padding: 12px 18px;
}

.twfg-comment-form .submit:hover,
.twfg-comment-form .submit:focus {
	background: var(--twfg-plum);
	border-color: var(--twfg-plum);
}

@media only screen and (max-width: 767px) {
	.twfg-single__intro {
		padding-bottom: 38px;
		padding-top: 44px;
	}

	.twfg-single__meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
	}

	.twfg-single__category-link {
		border-left: 0;
		padding-left: 0;
	}

	.twfg-single__content {
		font-size: 1.06rem;
		line-height: 1.72;
	}

	.twfg-single__content .alignleft,
	.twfg-single__content .alignright {
		float: none;
		margin: 1.7rem auto;
		max-width: 100%;
	}

	.twfg-related-list {
		grid-template-columns: 1fr;
	}

	.twfg-related-item__media img {
		max-height: none;
	}

	.twfg-comment-form {
		grid-template-columns: 1fr;
	}

	.twfg-comment-form .comment-form-author,
	.twfg-comment-form .comment-form-email {
		grid-column: 1;
	}
}
