/**
 * Příspěvky (single.php, content.php, content-excerpt.php) — sjednocení nadpisů a typografie
 * se vzhledem šablony Grohman Theme (vychází z components/template-page.css).
 *
 * Bez těchto pravidel Tailwind preflight resetuje nadpisy → příspěvky „nedrží" styl.
 * Načítá se podmíněně jen na příspěvcích/výpisu blogu (inc/grohman-theme-handmade-assets.php).
 */

/* --- Featured image --- */
.post-image-content {
	margin-bottom: 1.5rem;
}

.post-featured-image {
	margin: 0;
}

.post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0.75rem;
}

/* --- Titulek příspěvku (h1 single / h2 výpis) --- */
.entry-title {
	margin: 0 0 0.5rem;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--sk-font-heading);
	font-size: clamp(1.9rem, 4.5vw, 2.6rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--sk-color-brand-heavy);
}

.entry-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.entry-title a:hover,
.entry-title a:focus-visible {
	color: var(--sk-color-brand);
	outline: none;
}

/* Výpis blogu — titulek o něco menší než na detailu */
body.blog .entry-title,
body.archive .entry-title,
body.search .entry-title {
	font-size: clamp(1.5rem, 3vw, 1.9rem);
}

/* --- Meta (autor, rubrika, štítky) --- */
.entry-header .entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.85rem;
	margin: 0.35rem 0 1.25rem;
	font-family: var(--sk-font-sans);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--color-gray-500);
}

.entry-header .entry-meta a {
	color: var(--color-gray-500);
	text-decoration: none;
	transition: color 0.15s ease;
}

.entry-header .entry-meta a:hover,
.entry-header .entry-meta a:focus-visible {
	color: var(--sk-color-brand);
	outline: none;
}

/* --- Drobečky pod titulkem --- */
.entry-header .grohman-theme-handmade-breadcrumb,
.entry-header .grohman-theme-handmade-breadcrumb__list {
	margin: 0 0 0.75rem;
}

/* --- Obsah příspěvku --- */
.entry-content,
.entry-summary {
	font-family: var(--sk-font-sans);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--color-gray-800);
}

.entry-content > :first-child,
.entry-summary > :first-child {
	margin-top: 0;
}

.entry-content p,
.entry-summary p {
	margin: 0 0 1rem;
}

.entry-content p:last-child,
.entry-summary p:last-child {
	margin-bottom: 0;
}

.entry-content strong,
.entry-content b {
	font-weight: 600;
	color: var(--sk-color-brand-heavy);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.entry-content .wp-block-heading {
	margin: 2rem 0 0.85rem;
	font-family: var(--sk-font-heading);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--sk-color-brand-heavy);
}

.entry-content h1,
.entry-content h2,
.entry-content h2.wp-block-heading {
	font-size: 1.5rem;
}

.entry-content h3 {
	font-size: 1.25rem;
}

.entry-content h4 {
	font-size: 1.0625rem;
}

.entry-content h5,
.entry-content h6 {
	font-size: 1rem;
}

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child,
.entry-content h4:first-child,
.entry-content .wp-block-heading:first-child {
	margin-top: 0;
}

.entry-content ul,
.entry-content ol,
.entry-content .wp-block-list {
	margin: 0 0 1.15rem;
	padding-left: 1.35rem;
}

.entry-content li {
	margin-bottom: 0.45rem;
}

.entry-content li:last-child {
	margin-bottom: 0;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
	margin-top: 0.45rem;
	margin-bottom: 0.35rem;
}

.entry-content img,
.entry-content figure,
.entry-summary img {
	max-width: 100%;
	height: auto;
}

.entry-content figure {
	margin: 1.5rem 0;
}

.entry-content img {
	border-radius: 0.5rem;
}

.entry-content figcaption {
	margin-top: 0.5rem;
	font-size: 0.8125rem;
	color: var(--color-gray-500);
	text-align: center;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
	margin: 1.25rem 0;
	padding: 0.85rem 1rem;
	border-left: 3px solid var(--sk-color-brand-soft);
	background: color-mix(in srgb, var(--sk-color-brand-light) 55%, transparent);
	border-radius: 0 0.5rem 0.5rem 0;
	color: var(--color-gray-700);
}

.entry-content hr,
.entry-content .wp-block-separator {
	margin: 1.75rem 0;
	border: 0;
	border-top: 1px solid color-mix(in srgb, var(--sk-color-brand) 22%, var(--color-gray-200));
}

.entry-content table {
	width: 100%;
	margin: 0 0 1.25rem;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.entry-content th,
.entry-content td {
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--color-gray-200);
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	font-weight: 600;
	background: color-mix(in srgb, var(--sk-color-brand-light) 40%, var(--color-white));
	color: var(--sk-color-brand-heavy);
}
