/**
 * Single post — New Yorker–style hero + reading column.
 */

body.single-post .column-2,
body.single-post #sidebar,
body.single-post .sidebar {
	display: none !important;
}

.granish-single {
	--granish-single-max: 1120px;
	--granish-single-read: 720px;
	--granish-single-accent: #9b3346;
	--granish-single-font: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	padding-bottom: 60px;
	background: #fff;
}

.granish-single .wrapper.granish-single-hero,
.granish-single .wrapper.granish-single-gallery {
	width: min(var(--granish-single-max), calc(100% - 40px)) !important;
	max-width: var(--granish-single-max) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

/* Reading column: ~two theme columns, not full page width. */
.granish-single .wrapper.granish-single-body {
	width: min(var(--granish-single-read), calc(100% - 40px)) !important;
	max-width: var(--granish-single-read) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 40px 20px 0;
	box-sizing: border-box;
}

/* Hero: text block centered (H+V) beside image. */
.granish-single-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 0 48px;
	align-items: center;
	padding-top: 36px;
	padding-bottom: 36px;
	margin: 0 auto 0;
	border-bottom: none;
	position: relative;
}

/* Full-bleed hairline under the hero (edge to edge). */
.granish-single-hero::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 100vw;
	transform: translateX(-50%);
	border-bottom: 1px solid #d0d0d0;
	pointer-events: none;
}

body.single-post {
	overflow-x: clip;
}

.granish-single-hero--text-only {
	grid-template-columns: 1fr;
	width: min(var(--granish-single-read), calc(100% - 40px)) !important;
	max-width: var(--granish-single-read) !important;
}

.granish-single-hero-text {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	align-self: center;
	text-align: center;
}

.granish-single-genre {
	font-family: var(--granish-single-font);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--granish-single-accent);
	margin: 0 0 18px;
}

.granish-single-genre a {
	color: inherit;
	text-decoration: none;
}

.granish-single-genre a:hover {
	text-decoration: underline;
}

.granish-single-title {
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: clamp(1.85rem, 3.6vw, 2.75rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #111;
	margin: 0 0 16px;
	background: none !important;
	padding: 0 !important;
}

.granish-single-title::before,
.granish-single-title::after {
	display: none !important;
	content: none !important;
}

.granish-single-dek {
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: clamp(0.9rem, 1.35vw, 1.05rem);
	font-weight: 400;
	font-style: italic;
	line-height: 1.4;
	color: #555;
	margin: 0 auto 18px;
	max-width: 26em;
	text-align: center;
}

.granish-single-byline,
.granish-single-translator {
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	color: #111;
	margin: 0 0 8px;
}

.granish-single-byline-label {
	margin-right: 0.25em;
}

.granish-single-byline a,
.granish-single-translator a,
.granish-single-byline .author-pub-credit-link,
.granish-single-translator .author-pub-credit-link {
	color: #111;
	text-decoration: none;
	font-weight: 700;
}

.granish-single-byline a:hover,
.granish-single-translator a:hover {
	text-decoration: underline;
}

.granish-single-date {
	font-family: var(--granish-single-font);
	font-size: 13px;
	font-weight: 400;
	color: #777;
	margin: 12px 0 0;
}

.granish-single-hero-media {
	margin: 0;
	padding: 0;
	background: transparent;
	align-self: center;
}

.granish-single-hero-figure {
	margin: 0;
	padding: 0;
	line-height: 0;
	overflow: hidden;
	background: #f0f0f0;
}

.granish-single-hero-media img,
.granish-single-hero-media .wp-post-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(70vh, 640px);
	object-fit: cover;
	border-radius: 0 !important;
}

.granish-single .granish-single-caption {
	display: block !important;
	position: static !important;
	font-family: var(--granish-single-font) !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	font-style: normal !important;
	line-height: 1.35 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-align: right;
	color: #888 !important;
	background: transparent !important;
	padding: 8px 0 0 !important;
	margin: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	opacity: 1 !important;
	width: auto !important;
}

.granish-single-content {
	font-size: 1.125rem;
	line-height: 1.75;
	color: #222;
}

/*
 * Book paragraphs (as in your marked screenshot):
 * — each new paragraph’s first line indented ~one finger
 * — little vertical gap between paragraphs (indent marks the break)
 */
.granish-single .granish-single-content p,
.granish-single-content.entry-content p {
	text-indent: 2.5em !important;
	margin-top: 0 !important;
	margin-bottom: 0.35em !important;
}

.granish-single .granish-single-content p:has(.granish-dropcap),
.granish-single-content.entry-content > p:first-of-type {
	text-indent: 0 !important;
}

/* Poetry: no first-line indent — stanza spacing instead. */
.granish-single--poetry .granish-single-content p,
.granish-single--poetry.granish-single-content.entry-content p {
	text-indent: 0 !important;
	margin-bottom: 0.85em !important;
}

.granish-single .granish-single-content blockquote p,
.granish-single .granish-single-content .wp-caption-text,
.granish-single .granish-single-content figcaption {
	text-indent: 0 !important;
}

/*
 * Kill theme drop cap (.ltr .entry-content > p:first-of-type:first-letter).
 * It stacked with our span and enlarged the 2nd letter too.
 */
body.single-post .ltr .entry-content > p:first-of-type::first-letter,
body.single-post .entry-content > p:first-of-type::first-letter,
.granish-single .entry-content > p::first-letter,
.granish-single-content > p::first-letter {
	font-size: inherit !important;
	font-weight: inherit !important;
	font-family: inherit !important;
	line-height: inherit !important;
	float: none !important;
	padding: 0 !important;
	margin: 0 !important;
	color: inherit !important;
}

/* Only one drop cap: the PHP-wrapped first real letter. */
.granish-single-content .granish-dropcap {
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: 3.2em;
	font-weight: 700;
	font-style: normal;
	line-height: 0.85;
	float: left;
	padding: 0.05em 0.1em 0 0;
	margin: 0;
	color: #111;
}

/* Related posts: full hero width so 3 cards stay on one desktop row. */
.granish-single .wrapper.granish-single-related {
	width: min(var(--granish-single-max), calc(100% - 40px)) !important;
	max-width: var(--granish-single-max) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 48px 20px 0;
	box-sizing: border-box;
}

.granish-single .related-posts .title,
.granish-single .related-posts .title-with-sep .title {
	white-space: nowrap;
	text-align: center;
	max-width: none;
}

.granish-single .related-posts .title-with-sep {
	text-align: center;
}

.granish-single .related-posts .title-with-sep .title {
	margin-left: 12px;
	margin-right: 12px;
	padding-left: 12px;
	padding-right: 12px;
}

.granish-single .related-posts {
	margin-top: 0;
	border-bottom: none;
	overflow: visible;
}

.granish-single #comments {
	margin-top: 48px;
}

/* Tags: label + #tags on one line; thin full-bleed hairline (like hero). */
.granish-single .tag-box.granish-single-tags {
	position: relative;
	text-align: center;
	margin: 40px 0 30px;
	padding: 28px 0 0;
	border-top: none !important;
	line-height: 1.5;
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: 16px;
	color: #444;
}

.granish-single .tag-box.granish-single-tags::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: 100vw;
	transform: translateX(-50%);
	border-top: 1px solid #d0d0d0;
	pointer-events: none;
}

.granish-single .tag-box.granish-single-tags .granish-single-tags-label {
	display: inline;
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: 400;
	font-style: normal;
	text-transform: none;
	color: #555;
}

.granish-single .tag-box.granish-single-tags a {
	display: inline;
	margin: 0 0 0 0.35em;
	padding: 0;
	line-height: inherit;
	border: 0 !important;
	background: none !important;
	color: #111;
	text-decoration: none;
	font-weight: 700;
}

.granish-single .tag-box.granish-single-tags a:hover {
	text-decoration: underline;
}

@media (min-width: 901px) {
	.granish-single .related-posts .carousel {
		display: flex;
		flex-wrap: nowrap;
		justify-content: center;
		align-items: flex-start;
		gap: 28px;
		font-size: inherit;
		text-align: left;
	}

	.granish-single .related-posts .item {
		float: none !important;
		display: block !important;
		flex: 1 1 0;
		width: auto !important;
		max-width: 320px;
		margin-left: 0 !important;
		height: auto !important;
	}

	.granish-single .related-posts .entry-image {
		height: auto !important;
		aspect-ratio: 3 / 2;
		overflow: hidden;
		position: relative;
	}

	.granish-single .related-posts .entry-image img,
	.granish-single .related-posts .entry-image .wp-post-image {
		position: absolute !important;
		inset: 0;
		width: 100% !important;
		height: 100% !important;
		object-fit: cover;
	}

	.granish-single .related-posts .carousel-nav {
		display: none;
	}
}

@media (max-width: 900px) {
	.granish-single .related-posts .carousel {
		display: flex;
		flex-direction: column;
		gap: 28px;
		font-size: inherit;
	}

	.granish-single .related-posts .item {
		float: none !important;
		display: block !important;
		width: 100% !important;
		max-width: none;
		margin-left: 0 !important;
		height: auto !important;
	}

	.granish-single .related-posts .entry-image {
		height: auto !important;
		aspect-ratio: 16 / 10;
		overflow: hidden;
		position: relative;
	}

	.granish-single .related-posts .entry-image img {
		position: absolute !important;
		inset: 0;
		width: 100% !important;
		height: 100% !important;
		object-fit: cover;
	}
}

@media (max-width: 900px) {
	.granish-single-hero {
		grid-template-columns: 1fr;
		gap: 24px;
		align-items: start;
	}

	.granish-single-hero-media {
		order: -1;
	}

	.granish-single-hero-media img,
	.granish-single-hero-media .wp-post-image {
		max-height: 48vh;
	}

	.granish-single .wrapper.granish-single-body {
		padding-top: 32px;
	}
}

@media (max-width: 560px) {
	.granish-single .wrapper.granish-single-hero,
	.granish-single .wrapper.granish-single-body,
	.granish-single .wrapper.granish-single-gallery,
	.granish-single .wrapper.granish-single-related {
		width: calc(100% - 32px) !important;
		padding-left: 16px;
		padding-right: 16px;
	}

	.granish-single-title {
		font-size: 1.7rem;
	}
}
