/**
 * Modern single-post and page presentation.
 *
 * Loaded on individual posts and pages, after the legacy and modern base styles.
 */

.single .site-content {
	align-items: start;
	background: transparent;
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
	margin-bottom: 32px;
	padding: 0;
}

.single .site-content::before,
.single .site-content::after {
	content: none;
	display: none;
}

.single #primary,
.single #secondary {
	float: none;
	margin: 0;
	min-width: 0;
	width: auto;
}

.single .newsblock-single-article,
.page .newsblock-page-article,
.single .entry-related,
.single .author-box,
:where(.single, .page) .comments-area {
	background: var(--newsblock-surface);
	border: 1px solid var(--newsblock-line);
	border-radius: 20px;
	box-shadow:
		0 1px 2px rgba(23, 32, 42, 0.03),
		0 14px 38px rgba(23, 32, 42, 0.065);
}

.single .newsblock-single-article {
	overflow: hidden;
	padding: clamp(24px, 3vw, 34px);
}

/* Pages deliberately keep a clean title-to-content transition, without a divider. */
.page .site-content {
	align-items: start;
	background: transparent;
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
	margin-bottom: 32px;
	padding: 0;
}

.page .site-content::before,
.page .site-content::after {
	content: none;
	display: none;
}

.page #primary,
.page #secondary {
	float: none;
	margin: 0;
	min-width: 0;
	width: auto;
}

.page .newsblock-page-article {
	overflow: hidden;
	padding: clamp(24px, 3vw, 34px);
}

.page .newsblock-page-article > .entry-header {
	border: 0;
	margin: 0 0 20px;
	padding: 0;
}

.page .newsblock-page-article h1.page-title {
	color: var(--newsblock-ink);
	font-size: clamp(29px, 2.8vw, 38px);
	font-weight: 760;
	letter-spacing: -0.04em;
	line-height: 1.08;
	margin: 0;
	text-wrap: pretty;
}

.page .newsblock-page-article .entry-content {
	color: #344054;
	font-size: clamp(16.5px, 1.45vw, 18px);
	line-height: 1.8;
}

.page .newsblock-page-article .entry-content > :first-child {
	margin-top: 0;
}

.page .newsblock-page-article .entry-content p {
	line-height: inherit;
	margin: 0 0 1.45em;
}

.page .newsblock-page-article .entry-content h2,
.page .newsblock-page-article .entry-content h3,
.page .newsblock-page-article .entry-content h4,
.page .newsblock-page-article .entry-content h5,
.page .newsblock-page-article .entry-content h6 {
	color: var(--newsblock-ink);
	letter-spacing: -0.022em;
	line-height: 1.22;
	margin: 1.6em 0 0.68em;
	text-wrap: pretty;
}

.page .newsblock-page-article .entry-content h2 {
	font-size: clamp(25px, 2.35vw, 31px);
}

.page .newsblock-page-article .entry-content h3 {
	font-size: clamp(21px, 2vw, 25px);
}

.page .newsblock-page-article .entry-content h4 {
	font-size: clamp(18px, 1.7vw, 21px);
}

.page .newsblock-page-article .entry-content a {
	border-bottom: 1px solid color-mix(in srgb, var(--newsblock-accent) 42%, transparent);
	color: var(--newsblock-accent);
	font-weight: 650;
	text-decoration: none;
}

.page .newsblock-page-article .entry-content a:hover {
	border-bottom-color: var(--newsblock-ink);
	color: var(--newsblock-ink);
}

.page .newsblock-page-article .entry-content ul,
.page .newsblock-page-article .entry-content ol {
	margin: 0 0 1.45em 1.2em;
}

.page .newsblock-page-article .entry-content li {
	margin-bottom: 0.45em;
	padding-left: 0.2em;
}

.page .newsblock-page-article blockquote {
	background: color-mix(in srgb, var(--newsblock-accent) 5%, #f8fafc);
	border-left: 4px solid var(--newsblock-accent);
	border-radius: 0 14px 14px 0;
	color: #475467;
	font-size: 18px;
	font-style: normal;
	margin: 28px 0;
	padding: 20px 24px;
}

.page .newsblock-page-article blockquote::before {
	content: none;
}

.page .newsblock-page-article table {
	border: 1px solid var(--newsblock-line);
	border-collapse: collapse;
	display: block;
	margin: 24px 0;
	max-width: 100%;
	overflow-x: auto;
}

.page .newsblock-page-article th {
	background: #f7f8fa;
	color: var(--newsblock-ink);
	font-weight: 750;
}

.page .newsblock-page-article th,
.page .newsblock-page-article td {
	border: 1px solid var(--newsblock-line);
	padding: 11px 13px;
}

.page .newsblock-page-article .entry-footer {
	border: 0;
	margin-top: 24px;
	padding: 0;
}

.single .newsblock-single-article > .entry-header {
	border-bottom: 1px solid var(--newsblock-line);
	margin: 0 0 24px;
	padding: 0 0 22px;
}

.single .newsblock-single-article h1.entry-title {
	color: var(--newsblock-ink);
	font-size: clamp(29px, 2.8vw, 38px);
	font-weight: 760;
	letter-spacing: -0.04em;
	line-height: 1.08;
	margin: 0 0 18px;
	text-wrap: pretty;
}

.single .entry-header .entry-meta {
	align-items: center;
	color: var(--newsblock-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	gap: 10px 16px;
	line-height: 1.35;
	margin: 0;
	position: static;
}

.single .entry-header .entry-author,
.single .entry-header .entry-author__name {
	align-items: center;
	display: inline-flex;
	gap: 8px;
}

.single .entry-header .entry-author__avatar {
	border: 0;
	border-radius: 50%;
	flex: 0 0 auto;
	line-height: 0;
}

.single .entry-header .entry-author__avatar .avatar {
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(23, 32, 42, 0.12);
	height: 32px;
	margin: 0;
	object-fit: cover;
	width: 32px;
}

.single .entry-header .entry-author__name a,
.single .entry-header .entry-date,
.single .entry-header .entry-category a {
	color: #475467;
	font-weight: 700;
	text-decoration: none;
}

.single .entry-header .entry-author__name a:hover {
	color: var(--newsblock-accent);
}

.single .entry-header .entry-date {
	align-items: center;
	display: inline-flex;
	text-transform: capitalize;
}

.single .entry-header .entry-date::before {
	background: #c7cdd6;
	border-radius: 50%;
	content: "";
	height: 4px;
	margin-right: 16px;
	width: 4px;
}

.single .entry-header .entry-category {
	align-items: center;
	display: inline-flex;
}

.single .entry-header .entry-category a,
.single .entry-header .entry-category a:visited {
	align-items: center;
	background: color-mix(in srgb, var(--newsblock-accent) 8%, #fff);
	border: 1px solid color-mix(in srgb, var(--newsblock-accent) 20%, #fff);
	border-radius: 999px;
	color: var(--newsblock-accent);
	display: inline-flex;
	font-size: 10px;
	gap: 7px;
	letter-spacing: 0.075em;
	padding: 6px 9px;
	text-transform: uppercase;
}

.single .entry-header .entry-category a::before,
.single .related-card__category a::before {
	background: currentColor;
	border-radius: 50%;
	box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 11%, transparent);
	content: "";
	height: 5px;
	width: 5px;
}

.single .single-featured-media {
	aspect-ratio: 5 / 3;
	background: var(--newsblock-soft);
	border-radius: 16px;
	line-height: 0;
	margin: 0 0 28px;
	overflow: hidden;
}

.single .single-featured-media .wp-post-image {
	display: block;
	height: 100%;
	margin: 0;
	object-fit: cover;
	width: 100%;
}

.single .newsblock-single-article .entry-content {
	color: #344054;
	font-size: clamp(16.5px, 1.45vw, 18px);
	line-height: 1.8;
}

.single .newsblock-single-article .entry-content > :first-child {
	margin-top: 0;
}

.single .newsblock-single-article .entry-content p {
	line-height: inherit;
	margin: 0 0 1.45em;
}

.single .newsblock-single-article .entry-content h2,
.single .newsblock-single-article .entry-content h3,
.single .newsblock-single-article .entry-content h4,
.single .newsblock-single-article .entry-content h5,
.single .newsblock-single-article .entry-content h6 {
	color: var(--newsblock-ink);
	letter-spacing: -0.022em;
	line-height: 1.22;
	margin: 1.6em 0 0.68em;
	text-wrap: pretty;
}

.single .newsblock-single-article .entry-content h2 {
	font-size: clamp(25px, 2.35vw, 31px);
}

.single .newsblock-single-article .entry-content h3 {
	font-size: clamp(21px, 2vw, 25px);
}

.single .newsblock-single-article .entry-content h4 {
	font-size: clamp(18px, 1.7vw, 21px);
}

.single .newsblock-single-article .entry-content a {
	border-bottom: 1px solid color-mix(in srgb, var(--newsblock-accent) 42%, transparent);
	color: var(--newsblock-accent);
	font-weight: 650;
	text-decoration: none;
}

.single .newsblock-single-article .entry-content a:hover {
	border-bottom-color: var(--newsblock-ink);
	color: var(--newsblock-ink);
}

.single .newsblock-single-article .entry-content ul,
.single .newsblock-single-article .entry-content ol {
	margin: 0 0 1.45em 1.2em;
}

.single .newsblock-single-article .entry-content li {
	margin-bottom: 0.45em;
	padding-left: 0.2em;
}

.single .newsblock-single-article blockquote {
	background: color-mix(in srgb, var(--newsblock-accent) 5%, #f8fafc);
	border-left: 4px solid var(--newsblock-accent);
	border-radius: 0 14px 14px 0;
	color: #475467;
	font-size: 18px;
	font-style: normal;
	margin: 28px 0;
	padding: 20px 24px;
}

.single .newsblock-single-article blockquote::before {
	content: none;
}

.single .newsblock-single-article blockquote > :last-child {
	margin-bottom: 0;
}

.single .newsblock-single-article .wp-caption,
.single .newsblock-single-article figure {
	max-width: 100%;
}

.single .newsblock-single-article .wp-caption-text,
.single .newsblock-single-article figcaption {
	color: var(--newsblock-muted);
	font-size: 12px;
	line-height: 1.5;
	padding-top: 7px;
	text-align: center;
}

.single .newsblock-single-article table {
	border: 1px solid var(--newsblock-line);
	border-collapse: collapse;
	display: block;
	margin: 24px 0;
	max-width: 100%;
	overflow-x: auto;
}

.single .newsblock-single-article th {
	background: #f7f8fa;
	color: var(--newsblock-ink);
	font-weight: 750;
}

.single .newsblock-single-article th,
.single .newsblock-single-article td {
	border: 1px solid var(--newsblock-line);
	padding: 11px 13px;
}

.single .entry-tags {
	border-top: 1px solid var(--newsblock-line);
	display: block;
	margin: 26px 0 0;
	padding: 18px 0 0;
}

.single .entry-tags .tag-links {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.single .entry-tags .tag-links a,
.single .entry-tags .tag-links a:visited {
	background: #f4f6f8;
	border: 1px solid #e4e8ed;
	border-radius: 999px;
	box-shadow: none;
	color: #475467;
	font-size: 11px;
	height: auto;
	line-height: 1;
	margin: 0;
	padding: 7px 10px;
	text-transform: none;
}

.single .entry-tags .tag-links a::before {
	content: none;
}

.single .entry-tags .tag-links a:hover {
	background: var(--newsblock-accent);
	border-color: var(--newsblock-accent);
	color: #fff;
}

/* Related posts */
.single .entry-related {
	margin: 18px 0 0;
	padding: clamp(20px, 2.5vw, 26px);
}

.single .entry-related__header {
	border-bottom: 1px solid var(--newsblock-line);
	margin: 0 0 18px;
	padding: 0 0 15px;
}

.single .entry-related__eyebrow,
.single .author-box__eyebrow {
	color: var(--newsblock-accent);
	display: block;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.1em;
	margin-bottom: 4px;
	text-transform: uppercase;
}

.single .entry-related__header h2 {
	color: var(--newsblock-ink);
	font-size: clamp(21px, 2.1vw, 27px);
	letter-spacing: -0.025em;
	line-height: 1.2;
	margin: 0;
}

.single .entry-related .related-loop {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.single .entry-related .related-loop::before,
.single .entry-related .related-loop::after {
	content: none;
	display: none;
}

.single .entry-related .related-card {
	background: #fff;
	border: 1px solid var(--newsblock-line);
	border-radius: 15px;
	box-shadow: 0 6px 18px rgba(23, 32, 42, 0.045);
	float: none;
	margin: 0;
	overflow: hidden;
	transition:
		border-color var(--newsblock-ease),
		box-shadow var(--newsblock-ease),
		transform var(--newsblock-ease);
	width: auto;
}

.single .entry-related .related-card:hover,
.single .entry-related .related-card:focus-within {
	border-color: color-mix(in srgb, var(--newsblock-accent) 22%, var(--newsblock-line));
	box-shadow: 0 14px 30px rgba(23, 32, 42, 0.095);
	transform: translateY(-3px);
}

.single .related-card__media {
	aspect-ratio: 16 / 9;
	background: var(--newsblock-soft);
	border: 0;
	display: block;
	line-height: 0;
	overflow: hidden;
}

.single .related-card__media .wp-post-image {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1);
	width: 100%;
}

.single .related-card:hover .wp-post-image {
	transform: scale(1.025);
}

.single .related-card__placeholder {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent),
		var(--newsblock-soft);
	display: block;
	height: 100%;
}

.single .related-card__content {
	padding: 14px 15px 16px;
}

.single .related-card__meta {
	align-items: center;
	display: flex;
	font-size: 9px;
	gap: 10px;
	justify-content: space-between;
	letter-spacing: 0.055em;
	margin-bottom: 9px;
}

.single .related-card__category a {
	align-items: center;
	color: var(--newsblock-accent);
	display: inline-flex;
	font-weight: 800;
	gap: 7px;
	text-decoration: none;
	text-transform: uppercase;
}

.single .related-card__meta time {
	color: var(--newsblock-muted);
	text-transform: capitalize;
	white-space: nowrap;
}

.single .entry-related .related-card .entry-title {
	font-size: clamp(16px, 1.45vw, 19px);
	letter-spacing: -0.02em;
	line-height: 1.28;
	margin: 0;
	padding: 0;
}

.single .entry-related .related-card .entry-title a {
	color: var(--newsblock-ink);
	display: -webkit-box;
	overflow: hidden;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.single .entry-related .related-card .entry-title a:hover {
	color: var(--newsblock-accent);
}

/* Optional author box */
.single .author-box {
	align-items: center;
	display: grid;
	gap: 20px;
	grid-template-columns: 88px minmax(0, 1fr);
	margin: 18px 0 0;
	overflow: hidden;
	padding: 22px;
	position: relative;
}

.single .author-box::before {
	background: var(--newsblock-accent);
	content: "";
	inset: 0 auto 0 0;
	position: absolute;
	width: 4px;
}

.single .author-box__avatar {
	border: 0;
	line-height: 0;
}

.single .author-box .avatar {
	border: 4px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(23, 32, 42, 0.12);
	float: none;
	height: 84px;
	margin: 0;
	object-fit: cover;
	width: 84px;
}

.single .author-box .author-name {
	font-size: 21px;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 6px;
}

.single .author-box .author-name a {
	color: var(--newsblock-ink);
	text-decoration: none;
}

.single .author-box .author-desc {
	color: var(--newsblock-muted);
	font-size: 14px;
	line-height: 1.6;
}

.single .author-box .author-desc p {
	margin: 0 0 8px;
}

.single .author-box__archive {
	align-items: center;
	color: var(--newsblock-accent);
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	gap: 7px;
	text-decoration: none;
}

/* Comments and pingbacks */
:where(.single, .page) .comments-area {
	margin: 18px 0 0;
	padding: clamp(20px, 2.5vw, 26px);
}

:where(.single, .page) .comments-title,
:where(.single, .page) .comment-reply-title {
	color: var(--newsblock-ink);
	font-size: clamp(20px, 2vw, 24px);
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin-bottom: 20px;
}

:where(.single, .page) .comment-list {
	border: 0;
}

:where(.single, .page) .comment-list article,
:where(.single, .page) .comment-list .pingback,
:where(.single, .page) .comment-list .trackback {
	background: #f8fafc;
	border: 1px solid var(--newsblock-line);
	border-radius: 13px;
	margin-bottom: 14px;
	padding: 16px;
}

:where(.single, .page) .comment-list .pingback,
:where(.single, .page) .comment-list .trackback {
	align-items: center;
	display: flex;
	font-size: 13px;
	gap: 10px;
	line-height: 1.55;
	position: relative;
}

:where(.single, .page) .comment-list .pingback::before,
:where(.single, .page) .comment-list .trackback::before {
	align-items: center;
	background: color-mix(in srgb, var(--newsblock-accent) 10%, #fff);
	border: 1px solid color-mix(in srgb, var(--newsblock-accent) 20%, #fff);
	border-radius: 50%;
	color: var(--newsblock-accent);
	content: "\2197";
	display: inline-flex;
	flex: 0 0 30px;
	font-size: 15px;
	font-weight: 800;
	height: 30px;
	justify-content: center;
	width: 30px;
}

:where(.single, .page) .comment-list .pingback a,
:where(.single, .page) .comment-list .trackback a {
	color: var(--newsblock-ink);
	font-weight: 700;
	text-decoration: none;
}

:where(.single, .page) .comment-list .pingback a:hover,
:where(.single, .page) .comment-list .trackback a:hover {
	color: var(--newsblock-accent);
}

:where(.single, .page) .comment-list .children {
	margin-left: 28px;
}

:where(.single, .page) .comment-form .comment-form-author,
:where(.single, .page) .comment-form .comment-form-email,
:where(.single, .page) .comment-form .comment-form-url {
	float: none;
	margin: 0 0 15px;
	width: 100%;
}

:where(.single, .page) .comment-form label {
	color: #344054;
	display: block;
	font-size: 13px;
	margin-bottom: 6px;
}

:where(.single, .page) .comment-form input[type="text"],
:where(.single, .page) .comment-form input[type="email"],
:where(.single, .page) .comment-form input[type="url"],
:where(.single, .page) .comment-form textarea {
	background: #fff;
	border: 1px solid #dfe4eb;
	border-radius: 11px;
	box-shadow: inset 0 1px 2px rgba(23, 32, 42, 0.025);
	padding: 11px 12px;
	transition:
		border-color 160ms ease,
		box-shadow 160ms ease;
	width: 100%;
}

:where(.single, .page) .comment-form input:focus,
:where(.single, .page) .comment-form textarea:focus {
	border-color: var(--newsblock-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--newsblock-accent) 13%, transparent);
	outline: 0;
}

:where(.single, .page) .comment-form input[type="submit"] {
	background: var(--newsblock-accent);
	border: 0;
	border-radius: 10px;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	min-height: 42px;
	padding: 0 17px;
}

:where(.single, .page) .comment-form input[type="submit"]:hover {
	background: var(--newsblock-ink);
}

.single .newsblock-single-article a:focus-visible,
.page .newsblock-page-article a:focus-visible,
.single .entry-related a:focus-visible,
.single .author-box a:focus-visible,
:where(.single, .page) .comments-area a:focus-visible {
	border-radius: 5px;
	outline: 3px solid var(--newsblock-accent);
	outline-offset: 3px;
}

@media only screen and (max-width: 959px) {
	.single .site-content,
	.page .site-content {
		display: block;
	}

	.single #primary,
	.page #primary {
		margin-bottom: 22px;
	}
}

@media only screen and (max-width: 620px) {
	.single .newsblock-single-article,
	.page .newsblock-page-article,
	.single .entry-related,
	.single .author-box,
	:where(.single, .page) .comments-area {
		border-radius: 16px;
	}

	.single .newsblock-single-article {
		padding: 20px;
	}

	.page .newsblock-page-article {
		padding: 20px;
	}

	.single .newsblock-single-article h1.entry-title {
		font-size: clamp(26px, 7.8vw, 32px);
	}

	.page .newsblock-page-article h1.page-title {
		font-size: clamp(26px, 7.8vw, 32px);
	}

	.single .entry-header .entry-date::before {
		display: none;
	}

	.single .entry-related .related-loop {
		grid-template-columns: minmax(0, 1fr);
	}

	.single .author-box {
		grid-template-columns: 68px minmax(0, 1fr);
		padding: 18px;
	}

	.single .author-box .avatar {
		height: 64px;
		width: 64px;
	}

	:where(.single, .page) .comment-list .children {
		margin-left: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.single .entry-related .related-card,
	.single .related-card__media .wp-post-image {
		transition: none;
	}

	.single .entry-related .related-card:hover,
	.single .related-card:hover .wp-post-image {
		transform: none;
	}
}
