/*  GRZ News — single article, breadcrumb, post navigation, related, page template.  */
.grz-single {
	padding-block: clamp(24px, 3.5vw, 40px) clamp(40px, 5vw, 64px);
}
.grz-breadcrumb {
	display: flex;
	max-width: 800px;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 auto 18px;
	color: var(--grz-muted);
	font-size: 0.78rem;
	font-weight: 600;
}
.grz-breadcrumb a {
	color: var(--grz-ink-soft);
	text-decoration: none;
}
.grz-breadcrumb a:hover {
	color: var(--grz-blue);
}
.grz-breadcrumb__sep {
	color: var(--grz-muted-light);
}
.grz-breadcrumb__current {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.grz-article {
	max-width: 800px;
	margin-inline: auto;
}
.grz-article__header {
	margin-bottom: 24px;
}
.grz-article__title {
	margin: 0 0 14px;
	font-size: clamp(1.9rem, 4.2vw, 2.8rem);
	line-height: 1.08;
}
.grz-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin: 0;
	color: var(--grz-muted);
	font-size: 0.8rem;
	font-weight: 600;
}
.grz-article__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.grz-article__meta-item .grz-icon {
	width: 15px;
	height: 15px;
	color: var(--grz-blue);
}
.grz-article__thumbnail {
	margin: 0 0 28px;
	overflow: hidden;
	border: 1px solid var(--grz-line);
	border-radius: var(--grz-radius-md);
	background: var(--grz-blue-mist);
}
.grz-article__thumbnail img {
	display: block;
	width: 100%;
	height: auto;
}
/* ---- Article body typography ---- */
.grz-entry-content {
	color: #354258;
	font-size: clamp(1rem, 1.2vw, 1.06rem);
	line-height: 1.8;
}
.grz-entry-content > *:first-child {
	margin-top: 0;
}
.grz-entry-content > *:last-child {
	margin-bottom: 0;
}
.grz-entry-content a {
	font-weight: 650;
}
.grz-entry-content :where(h2, h3, h4, h5, h6) {
	margin-top: 1.65em;
	scroll-margin-top: 130px;
}
.grz-entry-content h2 {
	font-size: clamp(1.5rem, 3vw, 2.05rem);
}
.grz-entry-content h3 {
	font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}
.grz-entry-content :where(ul, ol) {
	padding-inline-start: 1.4em;
}
.grz-entry-content li + li {
	margin-top: 0.4em;
}
.grz-entry-content blockquote {
	margin: 2rem 0;
	border-inline-start: 4px solid var(--grz-blue);
	border-radius: 0 var(--grz-radius-md) var(--grz-radius-md) 0;
	background: var(--grz-blue-mist);
	padding: 1.1rem 1.4rem;
}
[dir="rtl"] .grz-entry-content blockquote {
	border-radius: var(--grz-radius-md) 0 0 var(--grz-radius-md);
}
.grz-entry-content blockquote p:last-child {
	margin-bottom: 0;
}
.grz-entry-content :where(figure, .wp-block-image, .wp-block-gallery, .wp-block-video) {
	margin-block: 2rem;
}
.grz-entry-content figcaption {
	margin-top: 8px;
	color: var(--grz-muted);
	font-size: 0.78rem;
	text-align: center;
}
.grz-entry-content img {
	border-radius: var(--grz-radius-md);
}
.grz-entry-content :where(pre, code, kbd, samp) {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.grz-entry-content code:not(pre code) {
	padding: 0.16em 0.38em;
	border: 1px solid #dce5f1;
	border-radius: 4px;
	background: #f5f8fc;
	color: #b4234c;
	font-size: 0.88em;
}
.grz-entry-content pre {
	overflow: auto;
	max-width: 100%;
	padding: 18px;
	border: 1px solid #243650;
	border-radius: var(--grz-radius-md);
	background: #12233d;
	color: #eaf2ff;
	font-size: 0.86rem;
	line-height: 1.65;
	tab-size: 4;
}
.grz-entry-content table {
	width: 100%;
	margin-block: 2rem;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--grz-line);
	border-radius: var(--grz-radius-md);
	background: #fff;
	font-size: 0.9rem;
}
.grz-entry-content :where(th, td) {
	padding: 12px 14px;
	border-block-end: 1px solid var(--grz-line);
	text-align: start;
	vertical-align: top;
}
.grz-entry-content th {
	background: #f6f9fd;
	color: var(--grz-ink);
	font-weight: 800;
}
.grz-entry-content tr:last-child > :where(th, td) {
	border-block-end: 0;
}
.grz-entry-content hr {
	margin-block: 2.5rem;
	border: 0;
	border-block-start: 1px solid var(--grz-line);
}
/* ---- Page links (paginated posts) ---- */
.page-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 24px;
}
.page-links__label {
	color: var(--grz-muted);
	font-size: 0.78rem;
	font-weight: 800;
}
.page-links .post-page-numbers {
	display: inline-grid;
	min-width: 36px;
	height: 36px;
	place-items: center;
	border: 1px solid var(--grz-line);
	border-radius: var(--grz-radius-sm);
	background: #fff;
	font-size: 0.78rem;
	font-weight: 800;
	text-decoration: none;
}
.page-links .post-page-numbers.current {
	border-color: var(--grz-blue);
	background: var(--grz-blue);
	color: #fff;
}
/* ---- Back to news + post navigation ---- */
.grz-back-news {
	display: inline-flex;
	max-width: 800px;
	align-items: center;
	gap: 8px;
	margin: 34px auto 16px;
	color: var(--grz-blue);
	font-size: 0.82rem;
	font-weight: 800;
	text-decoration: none;
}
.grz-back-news:hover {
	color: var(--grz-blue-dark);
}
.grz-back-news .grz-icon {
	width: 14px;
	height: 14px;
}
.grz-back-news,
.post-navigation,
.grz-related {
	display: flex;
	width: 100%;
	max-width: 800px;
	margin-inline: auto;
}
.post-navigation {
	margin-top: 8px;
}
.post-navigation .nav-links {
	display: grid;
	width: 100%;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
	min-width: 0;
}
.post-navigation a {
	display: flex;
	min-height: 104px;
	flex-direction: column;
	justify-content: center;
	padding: 18px 20px;
	border: 1px solid var(--grz-line);
	border-radius: var(--grz-radius-md);
	background: #fff;
	box-shadow: var(--grz-shadow-xs);
	color: inherit;
	text-decoration: none;
	transition: border-color var(--grz-transition), box-shadow var(--grz-transition), transform var(--grz-transition);
}
.post-navigation .nav-next a {
	align-items: flex-end;
	text-align: end;
}
.post-navigation a:hover {
	border-color: rgba(8, 104, 242, 0.42);
	box-shadow: var(--grz-shadow-sm);
	transform: translateY(-2px);
}
.grz-post-nav__label {
	margin-bottom: 7px;
	color: var(--grz-blue);
	font-size: 0.7rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.grz-post-nav__title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--grz-ink);
	font-size: 0.96rem;
	font-weight: 800;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
/* ---- Related posts ---- */
.grz-related {
	flex-direction: column;
	margin-top: 40px;
}
.grz-related__title {
	margin-bottom: 16px;
	font-size: clamp(1.25rem, 2.4vw, 1.55rem);
}
/* ---- Static page template ---- */
.grz-page {
	padding-block: clamp(24px, 3.5vw, 40px) clamp(40px, 5vw, 64px);
}
.grz-article--page .grz-article__header {
	margin-bottom: 20px;
}
/* ---- Responsive ---- */
@media (max-width: 700px) {
	.grz-article__title {
		font-size: clamp(1.75rem, 9vw, 2.4rem);
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.post-navigation a {
		min-height: 92px;
	}

	.grz-entry-content table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}
}
@media (prefers-reduced-motion: reduce) {
	.post-navigation a {
		transition: none;
	}
}
