.hg-single-main {
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--gotham);
	margin: 0 auto;
	padding: var(--wp--preset--spacing--page-gutter) var(--wp--preset--spacing--page-gutter-inline);
	width: 100%;
}

.hg-single-hero.wp-block-cover {
	align-items: stretch;
	background: var(--wp--preset--color--accent-5);
	border-radius: 10px;
	margin: 0 0 var(--wp--preset--spacing--column-gap);
	min-height: 0;
	overflow: hidden;
	padding: 0 !important;
}

.hg-single-hero .wp-block-cover__inner-container {
	box-sizing: border-box;
	margin: 0;
	max-width: none;
	padding: 2rem 1rem;
	position: relative;
	text-align: center;
	width: 100%;
}

.hg-single-hero__category {
	background-color: var(--wp--preset--color--accent-2);
	border-radius: 5px 0 0 5px;
	color: var(--wp--preset--color--base);
	display: inline-block;
	font-weight: 800;
	margin: 0;
	padding: 0.25em 15px;
	position: absolute;
	right: 0;
	top: 15px;
	z-index: 1;
}

.hg-single-hero__category a,
.hg-single-hero__category .wp-block-post-terms__separator {
	color: var(--wp--preset--color--base) !important;
	font-weight: 800;
	text-decoration: none;
}

.hg-single-hero .wp-block-post-title {
	color: var(--wp--preset--color--base);
	font-size: 40px;
	font-weight: 800;
	line-height: 1.1;
	margin: 0.67em 0 15px;
}

.hg-single-hero__meta {
	align-items: center;
	color: var(--wp--preset--color--base);
	display: flex;
	flex-direction: column;
	font-size: var(--wp--preset--font-size--base);
	gap: 0;
	line-height: 24px;
}

.hg-single-hero__meta .wp-block-post-author-name,
.hg-single-hero__meta .wp-block-post-date,
.hg-single-hero__meta .wp-block-post-date a,
.hg-single-hero__meta .wp-block-post-date time {
	margin: 0;
}

.hg-single-hero__meta a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

.hg-single-hero__meta .wp-block-post-date,
.hg-single-hero__meta .wp-block-post-date a,
.hg-single-hero__meta .wp-block-post-date time {
	font-size: var(--wp--preset--font-size--xs);
	line-height: 18px;
}

.hg-single-layout.wp-block-columns {
	align-items: flex-start !important;
	gap: var(--wp--preset--spacing--column-gap);
	margin: 0;
}

.hg-single-layout .wp-block-column:last-child {
	align-self: flex-start;
}

.hg-single-content {
	min-width: 0;
}

.hg-single-content .wp-block-post-content,
.hg-single-content .wp-block-post-content p,
.hg-single-content .wp-block-post-content li,
.hg-single-content .wp-block-post-content p:first-of-type {
	font-size: var(--wp--preset--font-size--base);
	line-height: 24px;
}

.hg-single-content .wp-block-post-content h1,
.hg-single-content .wp-block-post-content h2,
.hg-single-content .wp-block-post-content h3,
.hg-single-content .wp-block-post-content h4,
.hg-single-content .wp-block-post-content h5,
.hg-single-content .wp-block-post-content h6 {
	color: var(--wp--preset--color--blue-heading);
}

.hg-single-content strong {
	font-weight: 800;
}

.hg-single-author.wp-block-post-author {
	align-items: flex-start;
	background: var(--wp--preset--color--accent-5);
	border: 0;
	border-radius: 10px;
	box-sizing: border-box;
	display: flex;
	flex-wrap: nowrap;
	gap: var(--wp--preset--spacing--card-gap);
	margin: 1.5em 0 0;
	padding: 20px;
}

.hg-single-author .wp-block-post-author__avatar {
	flex: 0 0 auto;
	margin: 0;
}

.hg-single-author .wp-block-post-author__avatar img {
	border-radius: 50%;
	display: block;
	height: auto;
	max-width: 150px;
	width: 96px;
}

.hg-single-author .wp-block-post-author__content {
	min-width: 0;
}

.hg-single-author .wp-block-post-author__name a:hover,
.hg-single-author .wp-block-post-author__name a:focus-visible {
	color: var(--wp--preset--color--blue-hover);
	text-decoration: underline;
}

.hg-single-author .wp-block-post-author__bio {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 22px;
	margin: 0;
}

.hg-single-terms {
	align-items: center;
	color: var(--wp--preset--color--accent-4);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wp--preset--font-size--xs);
	gap: 0 0.5em;
	line-height: 18px;
	margin: 0 0 1.5em;
}

.hg-single-terms .wp-block-post-terms {
	font-size: var(--wp--preset--font-size--xs);
	line-height: 18px;
	margin: 0;
}

.hg-single-terms__tags {
	border-left: 1px solid var(--wp--preset--color--accent-6);
	padding-left: 0.5em;
}

.hg-single-terms__tags:first-child {
	border-left: 0;
	padding-left: 0;
}

.hg-single-terms a {
	color: var(--wp--preset--color--blue-link);
	text-decoration: none;
}

.hg-single-terms a:hover,
.hg-single-terms a:focus-visible {
	color: var(--wp--preset--color--blue-hover);
	text-decoration: underline;
}

.hg-single-terms .hg-search-card__tags {
	padding-left: .5em;
    border-left: 1px solid var(--wp--preset--color--accent-6);
    margin-left: .5em;
}

.hg-single-content .wp-block-post-navigation-link {
	background: var(--wp--preset--gradient--orange-cta);
	border-radius: 2em;
	display: inline-block;
	max-width: 49%;
	padding: 0.5em 1em;
}

.hg-single-content .wp-block-post-navigation-link:hover {
	background: var(--wp--preset--color--accent-1);
}

/* Core still outputs the wrapper on the first and last post, with no link inside. */
.hg-single-content .wp-block-post-navigation-link:empty {
	display: none;
}

.hg-single-content .post-navigation-link-next {
	margin-left: auto;
	text-align: right;
}

.hg-single-content .wp-block-post-navigation-link a {
	color: var(--wp--preset--color--base);
	display: inline-block;
	font-size: var(--wp--preset--font-size--xs);
	line-height: 18px;
	max-width: 80%;
	text-decoration: none;
	vertical-align: middle;
}

.hg-single-content .wp-block-post-navigation-link a:hover,
.hg-single-content .wp-block-post-navigation-link a:focus-visible {
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

.hg-single-content .wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous,
.hg-single-content .wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next {
	color: var(--wp--preset--color--base);
	display: inline-block;
	vertical-align: middle;
}

.hg-single-content .wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous {
	margin-right: 0.5em;
}

.hg-single-content .wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next {
	margin-left: 0.5em;
}

.hg-single-comments {
	margin: var(--wp--preset--spacing--column-gap) 0 0;
}

.hg-single-comments__title {
	color: var(--wp--preset--color--blue-heading);
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 400;
	line-height: 1.2;
	margin: 0 0 15px;
}

.hg-single-comments .wp-block-comment-template {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hg-single-comment.wp-block-group {
	background: var(--wp--preset--color--accent-5);
	border-radius: 10px;
	margin: 15px 0;
	padding: 15px;
}

.hg-single-comments .wp-block-comment-template ol .hg-single-comment.wp-block-group {
	background: rgba(255, 255, 255, 0.5);
	box-shadow: inset 5px 0 0 0 var(--wp--preset--color--blue-link), 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.hg-single-comment__author {
	align-items: center;
	column-gap: 0.5em;
	display: flex;
	flex-wrap: wrap;
	row-gap: 0;
}

.hg-single-comment__avatar.wp-block-avatar,
.hg-single-comment__avatar.wp-block-avatar img {
	border-radius: 0;
}

.hg-single-comment__avatar.wp-block-avatar img {
	display: block;
	height: 32px;
	width: 32px;
}

.hg-single-comment__name.wp-block-comment-author-name {
	color: var(--wp--preset--color--gray-comment);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
}

.hg-single-comment__name.wp-block-comment-author-name a,
.hg-single-comment__date.wp-block-comment-date a,
.hg-single-comment__actions a,
.hg-single-comments__pagination a {
	color: var(--wp--preset--color--blue-link);
	text-decoration: none;
}

.hg-single-comment__name.wp-block-comment-author-name a:hover,
.hg-single-comment__name.wp-block-comment-author-name a:focus-visible,
.hg-single-comment__date.wp-block-comment-date a:hover,
.hg-single-comment__date.wp-block-comment-date a:focus-visible,
.hg-single-comment__actions a:hover,
.hg-single-comment__actions a:focus-visible,
.hg-single-comments__pagination a:hover,
.hg-single-comments__pagination a:focus-visible {
	color: var(--wp--preset--color--blue-hover);
	text-decoration: underline;
}

.hg-single-comment__says {
	color: var(--wp--preset--color--gray-comment);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.5;
	margin: 0;
}

.hg-single-comment__date.wp-block-comment-date {
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.5;
	margin: 0;
}

.hg-single-comment__date.wp-block-comment-date a,
.hg-single-comment__date.wp-block-comment-date time {
	color: var(--wp--preset--color--blue-link);
	text-decoration: none;
}

.hg-single-comment__content.wp-block-comment-content {
	color: var(--wp--preset--color--gray-comment);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.5;
	margin: 0;
}

.hg-single-comment__content.wp-block-comment-content p {
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.5;
	margin: 0 0 1.5em;
}

.hg-single-comment__content.wp-block-comment-content p:last-child {
	margin-bottom: 0;
}

.hg-single-comment__actions .wp-block-comment-edit-link,
.hg-single-comment__actions .wp-block-comment-reply-link {
	font-size: var(--wp--preset--font-size--sm);
	line-height: 22px;
	margin: 10px 0 0;
}

.hg-single-comments__pagination {
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.5;
	margin: 15px 0 0;
}

.hg-single-comments__closed {
	color: var(--wp--preset--color--gray-comment);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.5;
	margin: 15px 0 1.5em;
}

.hg-single-comments__form.wp-block-post-comments-form {
	padding: 0;
}

.hg-single-comments__form .comment-reply-title {
	color: var(--wp--preset--color--blue-heading);
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 400;
	line-height: 1.2;
	margin: 1.5em 0 15px;
}

.hg-single-comments__form input[type="submit"] {
	background: var(--wp--preset--gradient--orange-cta);
	border: 1px solid var(--wp--preset--color--orange-dark);
	border-radius: 3px;
	color: var(--wp--preset--color--base);
	cursor: pointer;
	font: 800 1rem/1 inherit;
	padding: var(--wp--preset--spacing--btn-padding);
	width: 100%;
}

.hg-single-comments__form input[type="submit"]:hover,
.hg-single-comments__form input[type="submit"]:focus-visible {
	background: var(--wp--preset--color--accent-1);
}

h2.wp-block-heading {
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 800;
}

h3.wp-block-heading,
h4.wp-block-heading {
	font-size: var(--wp--preset--font-size--md);
	font-weight: 800;
}

@media (min-width: 768px) {
	.hg-single-hero .wp-block-cover__inner-container {
		padding: 4rem 2rem;
		text-align: left;
	}

	.hg-single-hero .wp-block-post-title {
		font-size: 56px;
	}

	.hg-single-hero__meta {
		align-items: flex-start;
	}

	.hg-single-comments__form input[type="submit"] {
		max-width: 360px;
		min-width: 140px;
		padding: var(--wp--preset--spacing--btn-padding);
		width: auto;
	}

	h2.wp-block-heading {
		font-size: var(--wp--preset--font-size--2-xl);
	}

	h3.wp-block-heading, 
	h4.wp-block-heading {
		font-size: var(--wp--preset--font-size--lg);
	}
}

@media (max-width: 781px) {
	.hg-single-layout.wp-block-columns {
		display: block;
	}

	.hg-single-layout .wp-block-column {
		flex-basis: 100% !important;
		width: 100%;
	}

	.hg-single-content .wp-block-post-navigation-link a {
		max-width: 90%;
	}
}

@media (max-width: 575px) {
	.hg-single-author.wp-block-post-author {
		align-items: center;
		flex-direction: column;
		gap: 15px;
		text-align: center;
	}
}
