/**
 * Homepage — hero, latest grid, comments testimonials carousel.
 */

/* Flush under the menu. */
body.home #masthead {
	margin-bottom: 0 !important;
}

/* No categories sidebar on the front page. */
body.home .column-2,
body.home #sidebar,
body.home .sidebar,
body.home .widget_categories {
	display: none !important;
}

body.home .grids > .grid-8.column-1 {
	width: 100% !important;
	float: none !important;
	max-width: none !important;
}

body.home {
	overflow-x: clip;
}

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

.granish-home-hero.wrapper,
.wrapper.granish-home-hero {
	padding-top: 36px;
	padding-bottom: 8px;
}

.granish-home-hero .granish-category-feature {
	margin-bottom: 28px;
}

/* Hero genre — black + yellow marker (moved off author name). */
.granish-home-hero .granish-category-feature-genre {
	display: inline-block;
	max-width: 100%;
	color: #111 !important;
	padding: 0 0.08em 0.05em;
	background-image: linear-gradient(
		104deg,
		rgba(255, 204, 13, 0) 0.5%,
		#ffcc0d 2.5%,
		#ffcc0d 96.5%,
		rgba(255, 204, 13, 0) 99%
	);
	background-size: 100% 0.38em;
	background-repeat: no-repeat;
	background-position: 0 100%;
}

.granish-home-hero .granish-category-feature-author,
.granish-home-hero .granish-category-feature-author a,
.granish-home-hero .granish-category-feature-author .author-pub-credit-link {
	color: #111 !important;
	text-decoration: none !important;
	background-image: none !important;
}

.granish-home-hero .granish-category-feature-author a:hover,
.granish-home-hero .granish-category-feature-author a:focus,
.granish-home-hero .granish-category-feature-author .author-pub-credit-link:hover,
.granish-home-hero .granish-category-feature-author .author-pub-credit-link:focus {
	text-decoration: underline !important;
}

/*
 * Homepage slogan (first title-text under the hero):
 * long thin gray hairlines above and below.
 */
body.home #content > section.home-section.title-text:first-of-type {
	position: relative;
	text-align: center;
	width: 100%;
	max-width: none !important;
	margin: 8px 0 12px !important;
	padding: 28px 24px !important;
	border: 0 !important;
	box-sizing: border-box;
	overflow: visible;
}

body.home #content > section.home-section.title-text:first-of-type::before,
body.home #content > section.home-section.title-text:first-of-type::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	border-top: 1px solid #e8e8e8;
	pointer-events: none;
}

body.home #content > section.home-section.title-text:first-of-type::before {
	top: 0;
}

body.home #content > section.home-section.title-text:first-of-type::after {
	bottom: 0;
}

body.home #content > section.home-section.title-text:first-of-type .title-with-sep,
body.home #content > section.home-section.title-text:first-of-type .section-header {
	background: none !important;
	border: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.home #content > section.home-section.title-text:first-of-type .title-with-sep .title,
body.home #content > section.home-section.title-text:first-of-type h1,
body.home #content > section.home-section.title-text:first-of-type h2,
body.home #content > section.home-section.title-text:first-of-type p,
body.home #content > section.home-section.title-text:first-of-type b {
	display: block !important;
	width: fit-content;
	max-width: 40em;
	margin: 0 auto !important;
	padding: 0 0.12em 0.05em !important;
	border: 0 !important;
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: clamp(0.85rem, 1.5vw, 1rem) !important;
	font-weight: 400 !important;
	font-style: normal !important;
	line-height: 1.45 !important;
	letter-spacing: 0.01em;
	text-transform: none !important;
	color: #333 !important;
	box-sizing: border-box;
	background-image: linear-gradient(
		104deg,
		rgba(255, 204, 13, 0) 0.5%,
		#ffcc0d 2.5%,
		#ffcc0d 96.5%,
		rgba(255, 204, 13, 0) 99%
	) !important;
	background-size: 100% 0.38em !important;
	background-repeat: no-repeat !important;
	background-position: 0 100% !important;
	background-color: transparent !important;
}

/* Hide leftover theme slider + old composer blocks. */
body.home .posts-slider-section,
body.home .flexslider.posts-slider,
body.home .slider-latest,
body.home .home-section.featured-posts,
body.home .home-section.latest-posts,
body.home .home-section.format-posts,
body.home .all-news-link,
body.home #content > section.home-section.title-text:not(:first-of-type) {
	display: none !important;
}

/*
 * Homepage section headings — same as «Վերջին հրապարակումները», a bit bolder.
 */
body.home .granish-category-section-title,
.granish-home-projects-title,
.granish-home-critics-title,
.granish-home-awards-title {
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: clamp(1.55rem, 3vw, 2rem) !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-align: center;
}

body.home .granish-category-section-title,
.granish-home-critics-title,
.granish-home-awards-title {
	color: #111;
}

/* Editor's choice — same width as hero, sits after slogan in composer order. */
.granish-home-editor.wrapper,
.wrapper.granish-home-editor {
	--granish-category-max: 1360px;
	width: min(var(--granish-category-max), calc(100% - 40px)) !important;
	max-width: var(--granish-category-max) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 28px 20px 8px;
	box-sizing: border-box;
}

.granish-home-editor .granish-category-section--editor {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.granish-home-editor .granish-category-section-title {
	margin-bottom: 8px;
}

/* Editor's choice — genre black + yellow marker. */
.granish-home-editor .author-pub-genre {
	display: inline-block;
	max-width: 100%;
	color: #111 !important;
	padding: 0 0.08em 0.05em;
	background-image: linear-gradient(
		104deg,
		rgba(255, 204, 13, 0) 0.5%,
		#ffcc0d 2.5%,
		#ffcc0d 96.5%,
		rgba(255, 204, 13, 0) 99%
	);
	background-size: 100% 0.38em;
	background-repeat: no-repeat;
	background-position: 0 100%;
}

.granish-home-editor .granish-category-tagline {
	text-align: center;
	margin: 0 0 28px;
}

/* Full-bleed black strip — literary media projects. */
.granish-home-projects {
	--granish-home-projects-max: 1360px;
	width: 100vw;
	max-width: 100vw;
	margin: 40px 0 0;
	margin-left: calc(50% - 50vw);
	padding: 56px 0 64px;
	background: #161616;
	color: #fff;
	box-sizing: border-box;
}

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

.granish-home-projects-title {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	color: #fff !important;
}

.granish-home-projects-tagline {
	margin: 0 0 36px;
	padding: 0;
	text-align: center;
	font-family: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: #b8b8b8;
}

.granish-home-projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 32px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.granish-home-project-card-link {
	display: block;
	color: inherit;
	text-decoration: none !important;
}

.granish-home-project-card-cover {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	margin: 0 0 14px;
	background: #2a2a2a;
}

.granish-home-project-card-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.granish-home-project-card-cover--empty {
	background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
}

.granish-home-project-card-title {
	margin: 0 0 8px;
	font-family: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	color: #fff !important;
}

.granish-home-project-card-link:hover .granish-home-project-card-title,
.granish-home-project-card-link:focus .granish-home-project-card-title {
	color: #e8e8e8 !important;
}

.granish-home-project-card-excerpt {
	margin: 0;
	font-family: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: #b8b8b8;
}

/* Critics — 8 reviews with dedicated book/art covers. */
.granish-home-critics {
	--granish-home-critics-max: 1360px;
	padding: 48px 0 40px;
	background: #fff;
}

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

.granish-home-critics-header {
	text-align: center;
	margin: 0 0 36px;
}

.granish-home-critics-title {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
}

.granish-home-critics-tagline {
	margin: 0;
	font-family: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	color: #666;
}

.granish-home-critics-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 36px 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.granish-home-critics-card {
	padding: 0 22px;
	border-right: 1px solid #e5e5e5;
	text-align: center;
	box-sizing: border-box;
}

.granish-home-critics-card:nth-child(4n) {
	border-right: 0;
}

.granish-home-critics-cover {
	display: block;
	margin: 0 auto 16px;
	max-width: 180px;
	background: transparent;
	text-decoration: none;
	overflow: visible;
}

.granish-home-critics-cover img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.granish-home-critics-rubric {
	margin: 0 0 8px;
	font-family: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #9b3346;
}

.granish-home-critics-card-title {
	margin: 0 0 10px;
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	color: #111;
}

.granish-home-critics-card-title a {
	color: inherit !important;
	text-decoration: none !important;
}

.granish-home-critics-card-title a:hover,
.granish-home-critics-card-title a:focus {
	color: #444 !important;
}

.granish-home-critics-excerpt {
	margin: 0 0 12px;
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.45;
	color: #444;
}

.granish-home-critics-byline {
	margin: 0;
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
	color: #111;
}

.granish-home-critics-byline a {
	color: inherit !important;
	text-decoration: none !important;
}

.granish-home-critics-byline a:hover,
.granish-home-critics-byline a:focus {
	text-decoration: underline !important;
}

.granish-home-critics-more {
	margin: 36px 0 0;
	padding: 0;
	text-align: center;
}

/* Award winners — Persons of Interest style. */
.granish-home-awards {
	--granish-home-awards-max: 1360px;
	padding: 48px 0 40px;
	background: #fff;
}

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

.granish-home-awards-header {
	text-align: center;
	margin: 0 0 32px;
}

.granish-home-awards-title {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
}

.granish-home-awards-tagline {
	margin: 0;
	font-family: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	color: #666;
}

.granish-home-awards-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.granish-home-awards-card-link {
	display: block;
	color: inherit;
	text-decoration: none !important;
}

.granish-home-awards-media {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	margin: 0 0 12px;
	background: #ececec;
}

.granish-home-awards-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.granish-home-awards-year {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: inline;
	padding: 0.05em 0.14em 0.08em;
	color: #111;
	font-family: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	background-image: linear-gradient(
		104deg,
		rgba(255, 204, 13, 0) 0.5%,
		#ffcc0d 2.5%,
		#ffcc0d 96.5%,
		rgba(255, 204, 13, 0) 99%
	);
	background-size: 100% 1.05em;
	background-repeat: no-repeat;
	background-position: 0 55%;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.granish-home-awards-genre {
	display: inline-block;
	max-width: 100%;
	margin: 0 0 8px;
	padding: 0 0.08em 0.05em;
	font-family: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
	color: #111 !important;
	background-image: linear-gradient(
		104deg,
		rgba(255, 204, 13, 0) 0.5%,
		#ffcc0d 2.5%,
		#ffcc0d 96.5%,
		rgba(255, 204, 13, 0) 99%
	);
	background-size: 100% 0.38em;
	background-repeat: no-repeat;
	background-position: 0 100%;
}

.granish-home-awards-name {
	margin: 0 0 6px;
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	color: #111;
}

.granish-home-awards-work {
	margin: 0;
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.35;
	color: #444;
}

.granish-home-awards-card-link:hover .granish-home-awards-name,
.granish-home-awards-card-link:focus .granish-home-awards-name {
	color: #444;
}

.granish-home-awards-card-link:hover .granish-home-awards-work,
.granish-home-awards-card-link:focus .granish-home-awards-work {
	color: #222;
}

.granish-home-awards-more {
	margin: 32px 0 0;
	padding: 0;
	text-align: center;
}

/* Bottom blocks sit after composer, before footer. */
.granish-home-bottom {
	padding: 20px 0 64px;
	background: #fff;
}

/* Latest sits under the slogan (early in composer). */
.granish-home-latest-block {
	padding: 12px 0 8px;
	background: #fff;
}

.granish-home-latest {
	margin-top: 0;
	padding-top: 24px;
	border-top: 0;
}

.granish-home-latest .granish-category-section-title {
	margin-bottom: 8px;
}

.granish-home-latest .granish-category-tagline {
	text-align: center;
	margin: 0 0 28px;
}

/* Latest cards — genre in black + yellow marker under it. */
.granish-home-latest .author-pub-genre {
	display: inline-block;
	max-width: 100%;
	color: #111 !important;
	padding: 0 0.08em 0.05em;
	background-image: linear-gradient(
		104deg,
		rgba(255, 204, 13, 0) 0.5%,
		#ffcc0d 2.5%,
		#ffcc0d 96.5%,
		rgba(255, 204, 13, 0) 99%
	);
	background-size: 100% 0.38em;
	background-repeat: no-repeat;
	background-position: 0 100%;
}

.granish-home-latest-more {
	margin: 32px 0 0;
	padding: 0;
	text-align: center;
}

.granish-home-latest-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	border: 1px solid #111;
	border-radius: 999px;
	background: #fff;
	color: #111 !important;
	font-family: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	transition: background 0.15s ease, color 0.15s ease;
}

a.granish-home-latest-pill:hover,
a.granish-home-latest-pill:focus,
.granish-home-latest-pill:hover,
.granish-home-latest-pill:focus {
	background: #ffcc0d !important;
	border-color: #ffcc0d !important;
	color: #111 !important;
	outline: none;
}

/* —— Comments testimonials carousel —— */
.granish-home-comments {
	margin-top: 48px;
	padding-top: 40px;
	border-top: 1px solid #d0d0d0;
}

.granish-home-comments-wrap {
	position: relative;
	display: grid;
	grid-template-columns: 40px 1fr 40px;
	gap: 12px;
	align-items: stretch;
}

.granish-home-comments-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 4px 2px 12px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.granish-home-comments-track::-webkit-scrollbar {
	display: none;
}

.granish-home-comment-card {
	flex: 0 0 calc((100% - 60px) / 4);
	min-width: 0;
	scroll-snap-align: start;
	box-sizing: border-box;
	padding: 20px 16px 18px;
	background: #f6f4ef;
	border: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 180px;
}

.granish-home-comment-text {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: 0.9rem;
	font-weight: 400;
	font-style: italic;
	line-height: 1.4;
	color: #222;
	quotes: none;
}

.granish-home-comment-author {
	margin: 0 0 6px;
	font-family: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #111;
}

.granish-home-comment-post {
	margin: 0;
	font-family: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 13px;
	line-height: 1.35;
	color: #777;
}

.granish-home-comment-post a {
	color: #9b3346;
	text-decoration: none;
}

.granish-home-comment-post a:hover {
	text-decoration: underline;
}

.granish-home-comments-nav {
	appearance: none;
	border: 1px solid #d0d0d0;
	background: #fff;
	width: 40px;
	height: 40px;
	align-self: center;
	border-radius: 0;
	cursor: pointer;
	color: #111;
	font-size: 18px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.granish-home-comments-nav:hover,
.granish-home-comments-nav:focus {
	border-color: #111;
	outline: none;
}

.granish-home-comments-nav:disabled {
	opacity: 0.35;
	cursor: default;
}

@media (max-width: 1100px) {
	.granish-home-critics-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.granish-home-critics-card {
		border-right: 0;
		padding: 0 16px 28px;
		border-bottom: 1px solid #e5e5e5;
	}

	.granish-home-critics-card:nth-last-child(-n + 2) {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.granish-home-awards-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 1000px) {
	.granish-home-comment-card {
		flex-basis: calc((100% - 20px) / 2);
	}
}

@media (max-width: 760px) {
	.granish-home-hero.wrapper,
	.wrapper.granish-home-hero,
	.granish-home-bottom .wrapper.granish-category-inner,
	.wrapper.granish-home-projects-inner,
	.wrapper.granish-home-critics-inner,
	.wrapper.granish-home-awards-inner {
		padding-left: 16px;
		padding-right: 16px;
	}

	.granish-home-critics-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.granish-home-awards-grid {
		grid-template-columns: 1fr;
	}

	.granish-home-critics-card {
		padding: 0 0 28px;
		border-bottom: 1px solid #e5e5e5;
	}

	.granish-home-critics-card:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.granish-home-projects {
		padding: 40px 0 48px;
		margin-top: 28px;
	}

	.granish-home-projects-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.granish-home-comments-wrap {
		grid-template-columns: 1fr;
	}

	.granish-home-comments-nav {
		display: none;
	}

	.granish-home-comment-card {
		flex-basis: 85%;
	}
}
