summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	cursor: pointer;
}

.html-anchors-list__details[open] .details__icon-line--vertical {
	opacity: 0;
}

#wrapper:has(.modern-post) {
	overflow: clip;
}

.wp-block-heading {
	font-weight: 400;
	line-height: inherit;
	padding-block-start: 0;
	margin-block: 2.5rem;
}

.wp-block-heading::after {
	content: none;
}

.modern-post {
	font-family: var(--theme-font-primary);
	color: var(--wp--preset--color--primary);
	display: flex;
	flex-direction: column;
	column-gap: 2rem;
	align-items: start;
	margin-block-start: 2.5rem;
}

@media (min-width: 768px) {
	.modern-post {
		flex-direction: row-reverse;
	}
}

.modern-post h1,
.modern-post h2,
.modern-post h3,
.modern-post h4,
.modern-post h5,
.modern-post h6 {
	color: inherit;
	letter-spacing: 0;
}

.modern-post h1::after,
.modern-post h2::after,
.modern-post h3::after,
.modern-post h4::after,
.modern-post h5::after,
.modern-post h6::after {
	content: none;
}

.modern-post__details {
	font-size: 1rem;
	line-height: 1.5;
	margin-block-end: 2.5rem;
}

.modern-post__featured-image {
	border-radius: 1rem;
}

.modern-post__details a {
	color: inherit;
}

.modern-post__details a:hover {
	text-decoration: none;
}

.modern-post__content {
	flex: 0 1 100%;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	max-width: 100%;
}

.modern-post__content h1,
.modern-post__content h2,
.modern-post__content h3,
.modern-post__content h4,
.modern-post__content h5,
.modern-post__content h6 {
	padding-block-start: 0;
	margin-block: 2.5rem;
}

.modern-post__content h2 {
	font-size: var(--wp--preset--font-size--xx-large);
	color: var(--wp--preset--color--quaternary);
	scroll-margin-block-start: var(--wp-admin--admin-bar--height, 0px);
}

.modern-post__content h3 {
	font-size: var(--wp--preset--font-size--x-large);
	scroll-margin-block-start: var(--wp-admin--admin-bar--height, 0px);
}

.modern-post__content li {
	margin-block-end: 1rem;
}

.modern-post__content ul li::marker {
	color: var(--wp--preset--color--secondary);
}

.modern-post__content ol {
	padding-inline-start: 1.5rem;
}

.modern-post__content p {
	margin-block-end: 1rem;
}

.modern-post__content a {
	color: inherit;
	text-decoration: none;
	word-break: break-word;
}

.modern-post__content a:hover {
	text-decoration: underline;
}

.modern-post__content img {
	max-width: 100%;
	height: auto;
}

.modern-post__content iframe {
	max-width: 100%;
}

.modern-post__content blockquote {
	position: relative;
	border: 0;
	padding: 1.875rem;
	padding-inline-start: 3.125rem;
	color: inherit;
	background-color: var(--wp--preset--color--septenary);
	font-style: initial;
	border-radius: 1rem;
	margin-block: 2.5rem;
}

.modern-post__content blockquote::before {
	content: "";
	position: absolute;
	top: 1.875rem;
	left: 1.875rem;
	bottom: 1.875rem;
	border-inline-start: 1px solid var(--wp--preset--color--secondary);
}

.modern-post__content figure {
	margin-block: 2.5rem;
	margin-inline: 0;
}

.modern-post__content .wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	width: 100%;
	padding-block-end: 1rem;
}

.modern-post__content .wp-block-table table {
	display: table;
	width: 100%;
	min-width: 500px;
}

.modern-post__content *:last-child {
	margin-block-end: 0;
}

.modern-post__sidebar {
	font-size: 1rem;
	color: var(--wp--preset--color--tertiary);
	display: flex;
	gap: 0.25rem;
}

:root {
	--scroll-to-id-offsett-value: 60px;
}
@media (min-width: 768px) {
	:root {
		--scroll-to-id-offsett-value: var(--wp-admin--admin-bar--height, 0px);
	}
}

.modern-post__sidebar:empty {
	display: none;
}

@media (max-width: 767px) {
	.modern-post__sidebar {
		display: contents;
	}
}

@media (min-width: 768px) {
	.modern-post__sidebar {
		flex: 1 0 15rem;
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 1rem);
		flex-direction: column;

		max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 2rem);
		overflow-y: auto;
	}
}

@media (min-width: 1200px) {
	.modern-post__sidebar {
		flex: 1 0 20rem;
	}
}

.modern-post__sidebar h2,
.modern-post__sidebar__title {
	font-family: var(--theme-font-secondary);
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--wp--preset--color--senary);
	line-height: 1.5;
	padding-block: 0;
}

@media (min-width: 768px) {
	.modern-post__sidebar h2,
	.modern-post__sidebar__title {
		padding-block: 0.625rem;
	}
	.modern-post__sidebar__title .details__icon {
		display: none;
	}
}

.modern-post__sidebar__title .details__icon-line {
	stroke-width: 0.3rem;
}

.modern-post__sidebar__item[open] .modern-post__sidebar__title .details__icon-line--vertical {
	opacity: 0;
}

.modern-post__sidebar p {
	margin-block-end: 1.125rem;
}

.modern-post__sidebar a {
	display: inline-flex;
	gap: 0.75rem;
	color: inherit;
	text-decoration: none;

	font-family: var(--theme-font-primary);
	font-weight: 700;
}

.modern-post__sidebar a:hover {
	text-decoration: underline;
}

.modern-post__sidebar a svg {
	fill: var(--wp--preset--color--quaternary);
}

.modern-post__sidebar__item {
	background: var(--wp--preset--color--octonary);
	padding: 1rem;
}

@media (max-width: 767px) {
	.modern-post__sidebar__item--toc {
		width: 100%;
		margin-block-end: 2.5rem;
		position: sticky;
		top: 1rem;
		z-index: 100;
	}
	.modern-post__sidebar__item--links {
		order: 100;
		width: 100%;
		margin-block-end: 2.5rem;
	}
}

@media (min-width: 768px) {
	.modern-post__sidebar__item {
		padding: 1.875rem;
	}
	.modern-post__sidebar__item--toc {
		display: block;
	}
}

.modern-post__sidebar__item--links a {
	font-size: 0.875rem;
}

.modern-post__share {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;

	font-family: var(--theme-font-quaternary);
	font-size: 0.75rem;
	font-weight: 400;
}

@media (max-width: 767px) {
	.modern-post__share--desktop {
		display: none;
	}
}

.html-anchors-list {
	margin-block-start: 0.875rem;
}

.html-anchors-list__title {
	font-size: 1rem;
	font-weight: 500;
	padding-block: 0.9375rem;
	margin-block: 0;
}

.html-anchors-list__details[open] {
	padding-block-end: 2.5rem;
}

.html-anchors-list .details__icon {
	color: var(--wp--preset--color--quaternary);
}

.html-anchors-list__item .details__icon-line {
	stroke-width: 0.1875rem;
}

.html-anchors-list__item {
	border-block-start: 1px dashed rgba(15, 45, 88, 0.2);
}

.html-anchors-list__item:last-child {
	padding-block-end: 0;
}

.html-anchors-list__details .html-anchors-list__item {
	font-size: 0.8125rem;
	padding-inline-start: 1.1875rem;
	padding-block-end: 1rem;
	border-block-start: 0;
	border-inline-start: 1px solid var(--wp--preset--color--quinary);
	margin-inline-start: 0.6875rem;
}
