/**
 * Category archive — Bainsley title, no sidebar,
 * 3-column Վերջերս-style cards (image on top, text below).
 */

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

.granish-category {
	--author-font: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--author-hairline: #e5e5e5;
	--granish-category-max: 1360px;
	padding: 0 0 60px;
	background: #fff;
}

/* Beat theme .wrapper fixed widths (1050/930/700…) so the section can go full NY scale. */
.granish-category .wrapper.granish-category-inner,
.granish-category-inner.wrapper {
	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: 0 20px;
	box-sizing: border-box;
}

.granish-category-header {
	text-align: center;
	padding: 28px 0 32px;
	margin: 0 0 28px;
	border-bottom: 0;
}

.granish-category-title {
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-weight: 700;
	font-size: clamp(2.2rem, 5vw, 3.25rem);
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #111;
	margin: 0 0 10px;
}

.granish-category-tagline {
	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: #666;
	margin: 0;
}

.granish-category-section {
	margin: 0;
	padding: 0;
}

/* Equal space above/below the hairline between sections. */
.granish-category-section--award,
.granish-category-section--editor {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 1px solid #d0d0d0;
}

.granish-category-section-title {
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: clamp(1.55rem, 3vw, 2rem);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-align: center;
	color: #111;
	margin: 0 0 28px;
	padding: 0;
	border: 0;
}

/* Featured first post — New Yorker split layout. */
.granish-category-feature {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 0 56px;
	align-items: stretch;
	width: 100%;
	margin: 0 0 40px;
	padding: 0;
	border-bottom: 0;
}

.granish-category-feature-media,
.granish-category-placeholder--feature {
	display: block;
	margin: 0;
	padding: 0;
	line-height: 0;
	overflow: hidden;
	background: #f0f0f0;
	text-decoration: none;
}

.granish-category-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	background: var(--granish-ph-bg, #8b7355);
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
}

.granish-category-placeholder-label {
	font-family: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.3;
	text-align: center;
	padding: 12px;
}

.granish-category-placeholder--feature {
	min-height: clamp(280px, 38vw, 520px);
	height: 100%;
	line-height: normal;
}

.granish-category-placeholder--card {
	width: 100%;
	aspect-ratio: 4 / 3;
	height: auto;
	min-height: 0;
	line-height: normal;
}

.granish-category-feature-media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: clamp(280px, 38vw, 520px);
	object-fit: cover;
	border-radius: 0 !important;
}

.granish-category-feature-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px 12px;
	box-sizing: border-box;
}

.granish-category-feature-genre {
	font-family: var(--author-font);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
	color: #9b3346;
	margin: 0 0 16px;
}

.granish-category-feature-title {
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #111;
	margin: 0 0 18px;
	max-width: 18em;
}

.granish-category-feature-title a {
	color: #111;
	text-decoration: none;
}

.granish-category-feature-title a:hover {
	color: #333;
}

.granish-category-feature-excerpt {
	font-family: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	color: #444;
	margin: 0 0 20px;
	max-width: 28em;
}

.granish-category-feature-author {
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: #111;
	margin: 0;
}

.granish-category-feature-author a,
.granish-category-feature-author .author-pub-credit-link {
	font-family: inherit !important;
	font-weight: 700 !important;
	color: #111;
	text-decoration: none;
}

.granish-category-feature-author a:hover,
.granish-category-feature-author .author-pub-credit-link:hover {
	text-decoration: underline;
}

.granish-category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px);
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Stack: image on top, text below (override horizontal pub row). */
.granish-category .author-pub-item {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 14px;
	padding: 0;
	border-bottom: 0;
	margin: 0;
}

.granish-category .author-pub-thumb {
	flex: none;
	width: 100%;
	aspect-ratio: 4 / 3;
	align-self: stretch;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	line-height: 0;
	font-size: 0;
	overflow: hidden;
	background: #f0f0f0;
}

.granish-category .author-pub-thumb img,
.granish-category .author-pub-thumb .wp-post-image {
	display: block;
	width: 100%;
	height: 100% !important;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0 !important;
	object-fit: cover;
	object-position: center center;
	vertical-align: top;
}

.granish-category .author-pub-text {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.granish-category .author-pub-genre {
	color: #9b3346;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
	margin: 0 0 8px;
	padding: 0;
}

.granish-category .author-pub-title {
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: none;
	letter-spacing: normal;
	margin: 0 0 10px;
	color: #111;
}

.granish-category .author-pub-title a {
	color: #111;
	text-decoration: none;
}

.granish-category .author-pub-title a:hover {
	color: #444;
}

.granish-category .author-pub-author {
	font-family: "Bainsley", Georgia, "Times New Roman", serif !important;
	font-size: 15px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.35;
	color: #555;
	margin: 0 0 8px;
}

.granish-category .author-pub-author a,
.granish-category .author-pub-author .author-pub-credit-link {
	font-family: inherit !important;
	font-weight: 400 !important;
	font-style: normal;
	color: #555;
	text-decoration: none;
}

.granish-category .author-pub-author a:hover,
.granish-category .author-pub-author .author-pub-credit-link:hover {
	color: #333;
	text-decoration: underline;
}

.granish-category .author-pub-translator {
	font-size: 13px;
	margin: 0 0 8px;
}

.granish-category .author-pub-excerpt {
	font-family: var(--author-font) !important;
	font-size: 14px;
	line-height: 1.5;
	color: #444;
	margin: 0 0 10px;
}

.granish-category .author-pub-date {
	font-family: var(--author-font);
	font-size: 11px;
	color: #999;
	margin: 0;
}

.granish-category-pagination {
	padding: 28px 0 0;
	text-align: center;
	border: 0;
}

/* Kill theme .loop-pagination black top/bottom rules under «Վերջին…». */
.granish-category .paging-navigation {
	margin-top: 0 !important;
}

.granish-category .paging-navigation .loop-pagination {
	padding: 0 !important;
	border: 0 !important;
	border-top: 0 !important;
	border-bottom: 0 !important;
}

.granish-category-pagination .page-numbers,
.granish-category .loop-pagination a,
.granish-category .loop-pagination span {
	display: inline-block;
	margin: 0 4px;
	padding: 6px 10px;
	text-decoration: none;
	color: #111;
	background: transparent !important;
	border: 0 !important;
}

.granish-category-pagination .page-numbers.current,
.granish-category .loop-pagination span.current {
	font-weight: 700;
	background: transparent !important;
}

.granish-category-empty {
	padding: 40px 0;
	text-align: center;
	color: #666;
}

/* Large tablet / small laptop: 2 columns keep card scale readable. */
@media (max-width: 1100px) {
	.granish-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.granish-category-feature {
		gap: 0 32px;
	}
}

/* Phone landscape / narrow tablet: feature stacks; still 2 cols if space. */
@media (max-width: 760px) {
	.granish-category .wrapper.granish-category-inner,
	.granish-category-inner.wrapper {
		width: calc(100% - 32px) !important;
		padding: 0 16px;
	}

	.granish-category-feature {
		grid-template-columns: 1fr;
		gap: 18px;
		margin-bottom: 32px;
	}

	.granish-category-feature-media img,
	.granish-category-placeholder--feature {
		min-height: 220px;
	}

	.granish-category-feature-body {
		padding: 4px 0 0;
	}

	.granish-category-section--award,
	.granish-category-section--editor {
		margin-top: 32px;
		padding-top: 32px;
	}

	.granish-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 16px;
	}

	.granish-category .author-pub-title {
		font-size: 18px;
	}
}

/* Mobile: single column. */
@media (max-width: 560px) {
	.granish-category-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.granish-category .author-pub-title {
		font-size: 22px;
	}

	.granish-category .author-pub-thumb,
	.granish-category-placeholder--card {
		aspect-ratio: 16 / 10;
	}
}
