/* Hugo-specific enhancements preserving Twenty Twenty's visual design */

.entry-content > .highlight {
	max-width: 72rem;
	width: calc(100% - 4rem);
	margin: 3.5rem auto;
}

.entry-content .highlight pre.chroma {
	background-color: #fff;
	border: 0.1rem solid #dcd7ca;
	font-size: 1.45rem;
	line-height: 1.55;
	margin: 0;
	overflow-x: auto;
	padding: 2rem 2.4rem;
}

.entry-content .highlight pre.chroma code {
	background: transparent;
	display: block;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	padding: 0;
	white-space: pre;
}

.code-block-title {
	background: #ede6d6;
	border: 0.1rem solid #dcd7ca;
	border-bottom: none;
	color: #4a4a4a;
	font-family: "Inter var", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, sans-serif;
	font-size: 1.35rem;
	font-weight: 600;
	margin: 3.5rem auto 0;
	max-width: 72rem;
	padding: 0.8rem 1.8rem;
	width: calc(100% - 4rem);
}

.code-block-title + .highlight {
	margin-top: 0;
}

/* External link-format post callout */
.entry-link-source {
	font-size: 1.6rem;
	margin-top: 1.8rem;
	color: #6d6d6d;
}

.entry-link-source a {
	color: #cd2653;
	text-decoration: underline;
	word-break: break-all;
}

.entry-link-source .svg-icon {
	display: inline-block;
	vertical-align: -0.25rem;
	margin-right: 0.5rem;
	fill: currentColor;
	width: 1.6rem;
	height: 1.6rem;
}

/* Centered images and responsive iframes */
.entry-content img.aligncenter,
.entry-content figure.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.entry-content iframe {
	display: block;
	margin: 2.5rem auto;
	max-width: 100%;
}

/* Static live search results inside Twenty Twenty's search modal */
.search-modal-results {
	border-top: 0.1rem solid #dcd7ca;
	margin: 0 auto;
	max-height: 65vh;
	max-width: 168rem;
	overflow-y: auto;
	padding: 2rem 4rem 3rem;
}

.search-modal-results[hidden] {
	display: none;
}

.search-results-status {
	color: #6d6d6d;
	font-size: 1.5rem;
	margin: 0 0 1.6rem;
}

.search-results-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.search-results-item {
	border-bottom: 0.1rem solid #ece7dc;
	margin: 0;
	padding: 1.4rem 0;
}

.search-results-item:last-child {
	border-bottom: none;
}

.search-results-item a {
	color: #000;
	display: block;
	text-decoration: none;
}

.search-results-item a:hover .search-results-title,
.search-results-item a:focus .search-results-title {
	color: #cd2653;
	text-decoration: underline;
}

.search-results-title {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.4rem;
}

.search-results-meta {
	color: #6d6d6d;
	font-size: 1.4rem;
	margin: 0 0 0.5rem;
}

.search-results-snippet {
	color: #4a4a4a;
	font-family: NonBreakingSpaceOverride, "Hoefler Text", Garamond, "Times New Roman", serif;
	font-size: 1.6rem;
	line-height: 1.45;
	margin: 0;
}

/* Historical comments threading spacing without avatars */
.hide-avatars .comments-inner .comment-body {
	margin-left: 0;
}

.comments .children {
	margin-left: 3rem;
	padding-left: 2rem;
	border-left: 0.2rem solid #dcd7ca;
}

@media (max-width: 699px) {
	.search-modal-results {
		padding: 1.6rem 2rem 2.4rem;
	}
	.comments .children {
		margin-left: 1.5rem;
		padding-left: 1.4rem;
	}
}
