/* =========================================================
   Single post (článok) – scoped styles
   ========================================================= */

/* ---------- Hero ---------- */

body.oocr-post .oocr-post-hero {
	position: relative;
	overflow: hidden;
	background: #311a08;
	color: #fff;
	padding: 3.5rem 0 2.75rem;
	min-height: 18rem;
	display: flex;
	align-items: flex-end;
}

body.oocr-post .oocr-post-hero::before {
	content: "";
	position: absolute;
	inset: -30px;
	background-image: var(--oocr-hero-img, none);
	background-size: cover;
	background-position: center;
	filter: blur(18px) brightness(0.5) saturate(1.1);
	transform: scale(1.1);
}

body.oocr-post .oocr-post-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(49, 26, 8, 0.9) 0%, rgba(49, 26, 8, 0.45) 60%, rgba(49, 26, 8, 0.25) 100%);
}

body.oocr-post .oocr-post-hero > .container {
	position: relative;
	z-index: 1;
}

body.oocr-post .oocr-post-hero__back {
	display: inline-block;
	color: rgba(255, 255, 255, 0.85);
	font-family: OpenSansExtraBold, sans-serif;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 1.25rem;
}

body.oocr-post .oocr-post-hero__back:hover {
	color: #fff;
	text-decoration: none;
}

body.oocr-post .oocr-post-hero__title {
	color: #fff;
	font-family: AsapBold, sans-serif;
	font-size: 2.5rem;
	line-height: 1.15;
	margin: 0 0 1rem;
	max-width: 56rem;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

body.oocr-post .oocr-post-hero__meta {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	padding: 0;
	margin: 0;
}

body.oocr-post .oocr-post-hero__meta li {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-family: OpenSansExtraBold, sans-serif;
	font-size: 14px;
}

body.oocr-post .oocr-post-hero__meta svg {
	color: #a8d86a;
	flex: 0 0 18px;
}

/* ---------- Reading column ---------- */

body.oocr-post .oocr-post-body {
	padding-top: 2.5rem;
	padding-bottom: 1rem;
}

body.oocr-post .oocr-post-column {
	max-width: 50rem;
	margin: 0 auto;
}

body.oocr-post .oocr-post-figure {
	margin: 0 0 2rem;
	border-radius: 0.8rem;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(49, 26, 8, 0.15);
	background: #eef3e6;
}

body.oocr-post .oocr-post-figure img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 34rem;
	object-fit: cover;
}

body.oocr-post .oocr-post-content {
	font-size: 1.1rem;
	line-height: 1.75;
	color: #333;
}

body.oocr-post .oocr-post-content > :first-child {
	margin-top: 0;
}

body.oocr-post .oocr-post-content > .wp-block-spacer:first-child {
	display: none;
}

body.oocr-post .oocr-post-content p,
body.oocr-post .oocr-post-content div:not(.wp-block-spacer) {
	margin-bottom: 1.1rem;
}

body.oocr-post .oocr-post-content p:empty,
body.oocr-post .oocr-post-content div:empty {
	display: none;
}

body.oocr-post .oocr-post-content h2,
body.oocr-post .oocr-post-content h3,
body.oocr-post .oocr-post-content h4 {
	font-family: AsapBold, sans-serif;
	color: #212529;
	margin: 2rem 0 0.85rem;
	line-height: 1.25;
}

body.oocr-post .oocr-post-content h2 {
	font-size: 1.7rem;
	padding-top: 0.5rem;
}

body.oocr-post .oocr-post-content h3 {
	font-size: 1.35rem;
}

body.oocr-post .oocr-post-content h4 {
	font-size: 1.15rem;
}

body.oocr-post .oocr-post-content a {
	color: #71a621;
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.oocr-post .oocr-post-content a:hover {
	color: #56901d;
}

body.oocr-post .oocr-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 0.6rem;
}

body.oocr-post .oocr-post-content .alignleft,
body.oocr-post .oocr-post-content .alignright,
body.oocr-post .oocr-post-content .aligncenter {
	float: none;
	display: block;
	margin: 0 auto 1.25rem;
}

body.oocr-post .oocr-post-content figure {
	margin: 0 0 1.5rem;
}

body.oocr-post .oocr-post-content figcaption {
	font-size: 0.85rem;
	color: #6c757d;
	text-align: center;
	margin-top: 0.4rem;
}

body.oocr-post .oocr-post-content a[data-fslightbox] {
	display: block;
	border-radius: 0.6rem;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(49, 26, 8, 0.14);
	margin: 0 0 1.5rem;
}

body.oocr-post .oocr-post-content a[data-fslightbox] img {
	display: block;
	width: 100%;
	max-height: 40rem;
	object-fit: contain;
	background: #f4f7ee;
	border-radius: 0;
}

body.oocr-post .oocr-post-content ul,
body.oocr-post .oocr-post-content ol {
	padding-left: 1.5rem;
	margin-bottom: 1.25rem;
}

body.oocr-post .oocr-post-content li {
	margin-bottom: 0.35rem;
}

body.oocr-post .oocr-post-content blockquote {
	border-left: 4px solid #71a621;
	background: #f4f7ee;
	padding: 1rem 1.25rem;
	border-radius: 0 0.6rem 0.6rem 0;
	margin: 0 0 1.5rem;
	font-style: italic;
}

body.oocr-post .oocr-post-content iframe {
	max-width: 100%;
}

body.oocr-post .oocr-post-content table {
	width: 100%;
	margin-bottom: 1.5rem;
	border-collapse: collapse;
	font-size: 0.95rem;
}

body.oocr-post .oocr-post-content th,
body.oocr-post .oocr-post-content td {
	border: 1px solid #e5e9df;
	padding: 0.5rem 0.75rem;
	vertical-align: top;
}

/* ---------- Footer: tags + share ---------- */

body.oocr-post .oocr-post-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	border-top: 1px solid #e9ecef;
	border-bottom: 1px solid #e9ecef;
	padding: 1.25rem 0;
	margin: 2.5rem 0 1.5rem;
}

body.oocr-post .oocr-post-footer__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

body.oocr-post .oocr-chip {
	display: inline-flex;
	align-items: center;
	background: #fff;
	border: 2px solid #dfe7d0;
	border-radius: 999px;
	padding: 0.3rem 0.85rem;
	font-family: OpenSansExtraBold, sans-serif;
	font-size: 13px;
	color: #311a08;
	text-decoration: none;
	transition: all 0.15s ease;
}

body.oocr-post .oocr-chip:hover {
	border-color: #71a621;
	color: #71a621;
	text-decoration: none;
}

body.oocr-post .oocr-post-footer__share {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

body.oocr-post .oocr-post-footer__label {
	font-family: OpenSansExtraBold, sans-serif;
	font-size: 12px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #6c757d;
	margin-right: 0.25rem;
}

body.oocr-post .oocr-share {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	border: 2px solid #dfe7d0;
	background: #fff;
	color: #311a08;
	padding: 0;
	cursor: pointer;
	transition: all 0.15s ease;
}

body.oocr-post .oocr-share:hover {
	border-color: #71a621;
	color: #71a621;
	text-decoration: none;
}

body.oocr-post .oocr-share__done {
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	background: #311a08;
	color: #fff;
	font-size: 12px;
	white-space: nowrap;
	padding: 0.25rem 0.6rem;
	border-radius: 0.35rem;
}

/* ---------- Prev / next ---------- */

body.oocr-post .oocr-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
}

body.oocr-post .oocr-post-nav__item {
	display: block;
	background: #f4f7ee;
	border-radius: 0.8rem;
	padding: 1rem 1.25rem;
	color: #212529;
	text-decoration: none;
	transition: background 0.15s ease;
}

body.oocr-post .oocr-post-nav__item:hover {
	background: #e6eed7;
	text-decoration: none;
	color: #212529;
}

body.oocr-post .oocr-post-nav__item.is-next {
	text-align: right;
}

body.oocr-post .oocr-post-nav__label {
	display: block;
	font-family: OpenSansExtraBold, sans-serif;
	font-size: 12px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #71a621;
	margin-bottom: 0.3rem;
}

body.oocr-post .oocr-post-nav__title {
	display: block;
	font-family: AsapBold, sans-serif;
	font-size: 1.05rem;
	line-height: 1.3;
}

/* ---------- More news ---------- */

body.oocr-post .oocr-post-more {
	padding: 2.5rem 0 3rem;
	margin-top: 1.5rem;
	border-top: 1px solid #e9ecef;
}

body.oocr-post .oocr-post-more__title {
	text-align: center;
	margin-bottom: 1.75rem !important;
}

body.oocr-post .oocr-post-more__all {
	text-align: center;
	margin: 0.5rem 0 0;
}

body.oocr-post .btn-outline-primary {
	color: #71a621;
	border-color: #71a621;
	font-family: OpenSansExtraBold, sans-serif;
}

body.oocr-post .btn-outline-primary:hover {
	background: #71a621;
	color: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
	body.oocr-post .oocr-post-hero {
		padding: 2.5rem 0 2rem;
		min-height: 14rem;
	}

	body.oocr-post .oocr-post-hero__title {
		font-size: 1.8rem;
	}

	body.oocr-post .oocr-post-nav {
		grid-template-columns: 1fr;
	}

	body.oocr-post .oocr-post-nav__item.is-next {
		text-align: left;
	}
}
