/* =========================================================================
   PS Beton – detail příspěvku (stroje, reference, pronájem)
   ====================================================================== */
body.psb-post-detail .page-area article { float: none; width: 100%; }
body.psb-post-detail .page-area article > .post {
	display: block;
	margin: 8px 0 64px;
	font-family: var(--psb-font); color: var(--psb-ink);
}

/* Obrázek nahoře (jako dosud), v bílém rámečku */
body.psb-post-detail .news-thumb {
	display: block; width: fit-content; max-width: 100%;
	margin: 0 auto 24px !important; padding: 16px; border-radius: 16px; background: #FFFFFF; border: 1px solid var(--psb-line);
	text-align: center;
}
body.psb-post-detail .news-thumb img {
	display: block; width: auto !important; max-width: 100% !important; height: auto; max-height: 460px;
	margin: 0 auto !important; border-radius: 8px; object-fit: contain;
}

/* Hlavička */
body.psb-post-detail .single-head { margin: 0 0 8px; padding: 0; border: 0; text-align: left; }
body.psb-post-detail .single-head .single-title {
	margin: 0 0 6px; font-family: var(--psb-font); font-size: clamp(28px, 3vw, 40px); font-weight: 700;
	line-height: 1.12; letter-spacing: -0.01em; color: var(--psb-ink); text-transform: none; text-align: left;
}
body.psb-post-detail .single-head .posted-date,
body.psb-post-detail .single-head .comments-meta,
body.psb-post-detail .single-head .author-meta { display: none !important; }

/* Obsah */
body.psb-post-detail .single-content { min-width: 0; }
body.psb-post-detail .single-entry-summary,
body.psb-post-detail .single-content .elementor-widget-text-editor {
	font-family: var(--psb-font); font-size: 17px; line-height: 1.7; color: #2D3A48;
}
body.psb-post-detail .single-content .elementor-section .elementor-container { max-width: none; }
body.psb-post-detail .single-content .elementor-column-gap-default > .elementor-column > .elementor-element-populated { padding: 0; }
body.psb-post-detail .single-content p { margin: 0 0 14px; }
body.psb-post-detail .single-content p:empty,
body.psb-post-detail .single-content p:has(> br:only-child) { display: none; }
body.psb-post-detail .single-content strong { color: var(--psb-ink); }
body.psb-post-detail .single-content ul { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 8px; }
body.psb-post-detail .single-content ul li { position: relative; padding-left: 30px; }
body.psb-post-detail .single-content ul li::before {
	content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
	background: var(--psb-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}
body.psb-post-detail .single-content ol { margin: 4px 0 18px 20px; }
body.psb-post-detail .single-content table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15.5px; border: 1px solid var(--psb-line); }
body.psb-post-detail .single-content th,
body.psb-post-detail .single-content td { padding: 10px 14px; border-bottom: 1px solid var(--psb-line); text-align: left; }
body.psb-post-detail .single-content tr:nth-child(even) { background: #F7F8FA; }
body.psb-post-detail .single-content h2,
body.psb-post-detail .single-content h3,
body.psb-post-detail .single-content .elementor-heading-title {
	margin: 28px 0 14px; font-family: var(--psb-font); font-size: 22px; font-weight: 700; line-height: 1.3;
	color: var(--psb-ink); text-transform: none; text-align: left;
}

/* Štítky rubrik */
body.psb-post-detail .psb-post-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px !important; }
body.psb-post-detail .psb-post-cats a {
	display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px;
	background: #EEF3FB; color: var(--psb-brand) !important; font-size: 13px; font-weight: 600; text-decoration: none;
}
body.psb-post-detail .psb-post-cats a:hover { background: var(--psb-brand); color: #FFFFFF !important; }

/* Tlačítka z Elementoru (např. „Zakoupit na e-shopu“) */
body.psb-post-detail .single-content .elementor-button-wrapper { text-align: left; }
body.psb-post-detail .single-content .elementor-widget-button { text-align: left !important; }
body.psb-post-detail .single-content a.elementor-button {
	display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px !important;
	border-radius: 10px !important; border: 0 !important;
	background: var(--psb-brand) !important; color: #FFFFFF !important;
	font-family: var(--psb-font) !important; font-size: 16px !important; font-weight: 600 !important;
	text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important;
	transition: background-color .15s;
}
body.psb-post-detail .single-content a.elementor-button:hover { background: var(--psb-brand-dark) !important; }
body.psb-post-detail .single-content a.elementor-button .elementor-button-icon { color: var(--psb-accent); }

/* Galerie (Elementor / WordPress) */
body.psb-post-detail .single-content .gallery,
body.psb-post-detail .single-content .elementor-image-gallery {
	border: 0 !important; box-shadow: none !important; padding: 0 !important; outline: 0 !important;
}
body.psb-post-detail .single-content .gallery {
	display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px !important;
}
body.psb-post-detail .single-content .gallery::before,
body.psb-post-detail .single-content .gallery::after,
body.psb-post-detail .single-content .gallery br { display: none !important; }
body.psb-post-detail .single-content .gallery .gallery-item { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; float: none !important; }
body.psb-post-detail .single-content .gallery .gallery-icon a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #FFFFFF; border: 1px solid var(--psb-line); }
body.psb-post-detail .single-content .gallery img { width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; border: 0 !important; transition: transform .4s; }
body.psb-post-detail .single-content .gallery .gallery-icon a:hover img { transform: scale(1.05); }
body.psb-post-detail .single-content .gallery .gallery-caption { display: none; }

/* Výzva k poptávce */
body.psb-post-detail .psb-post-cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
	margin: 28px 0 8px; padding: 24px 26px; border-radius: 14px; background: #FFF7DE; border: 1px solid #F3DE9A;
}
body.psb-post-detail .psb-post-cta strong { display: block; font-size: 19px; color: var(--psb-ink); }
body.psb-post-detail .psb-post-cta span { display: block; margin-top: 4px; font-size: 15px; color: #5C4A12; }
body.psb-post-detail .psb-post-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
body.psb-post-detail .psb-post-cta .psb-dbtn { flex: 0 0 auto; min-height: 48px; padding: 0 24px; font-size: 16px; }

/* Formulář „Dotaz na produkt“ pod textem */
body.psb-post-detail .single-content h2.psb-post-formhead {
	margin: 40px 0 0; padding: 28px 30px 0; scroll-margin-top: 110px;
	background: #FFFFFF; border: 1px solid var(--psb-line); border-bottom: 0; border-radius: 16px 16px 0 0;
	font-size: 26px;
}
body.psb-post-detail .single-content h2.psb-post-formhead + style + .wpforms-container,
body.psb-post-detail .single-content h2.psb-post-formhead + .wpforms-container {
	margin: 0 !important; padding: 20px 30px 30px;
	background: #FFFFFF; border: 1px solid var(--psb-line); border-top: 0; border-radius: 0 0 16px 16px;
}

@media (max-width: 900px) {
	body.psb-post-detail .news-thumb { display: block; padding: 12px; }
	body.psb-post-detail .single-content .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	body.psb-post-detail .psb-post-cta__actions, body.psb-post-detail .psb-post-cta .psb-dbtn { width: 100%; }
	body.psb-post-detail .single-content h2.psb-post-formhead { padding: 22px 20px 0; }
	body.psb-post-detail .single-content h2.psb-post-formhead + .wpforms-container { padding: 16px 20px 24px; }
}

/* Bez navigace na předchozí/další příspěvek a bez spodního seznamu rubrik (rubriky jsou nahoře jako štítky) */
body.psb-post-detail .post-navigation,
body.psb-post-detail .entry-footer .cat-links { display: none !important; }
body.psb-post-detail .single-content p.psb-empty { display: none !important; }
/* Rámeček galerie z nastavení Elementoru (3px double) a šedé okraje fotek */
body.psb-post-detail .single-content .elementor-widget-image-gallery > .elementor-widget-container { border: 0 !important; padding: 0 !important; box-shadow: none !important; }
body.psb-post-detail .single-content .gallery img { border: 0 !important; }
