/* ==========================================================================
   Content — wspólne style treści (artykuł + strona statyczna).
   Ładowane na is_singular(). Zawiera: typografię treści (prose), wzorce
   (W skrócie, cytat), układ strony statycznej i komentarze.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Treść (prose)
   -------------------------------------------------------------------------- */
.ws-prose {
	max-width: 720px;
	font-size: var(--ws-text-lg);
	line-height: 1.72;
	color: var(--ws-ink-soft);
}

.ws-prose > p { margin: 0 0 var(--ws-space-5); text-wrap: pretty; }

.ws-prose h2 {
	font-size: var(--ws-text-3xl);
	color: var(--ws-ink);
	margin: var(--ws-space-7) 0 var(--ws-space-4);
	scroll-margin-top: 100px;
}

.ws-prose h3 {
	font-size: var(--ws-text-2xl);
	color: var(--ws-ink);
	margin: var(--ws-space-6) 0 var(--ws-space-3);
	scroll-margin-top: 100px;
}

.ws-prose a { text-decoration: underline; text-underline-offset: 2px; }
.ws-prose strong { color: var(--ws-ink); font-weight: 600; }

.ws-prose ul,
.ws-prose ol { margin: 0 0 var(--ws-space-5); padding-left: 1.4em; }
.ws-prose li { margin-bottom: var(--ws-space-2); }

.ws-prose img { border-radius: var(--ws-radius); margin-block: var(--ws-space-5); }

.ws-prose figcaption {
	font-size: var(--ws-text-xs);
	color: var(--ws-muted);
	margin-top: var(--ws-space-2);
}

/* --------------------------------------------------------------------------
   2. „W skrócie" — styl bloku Lista (is-style-ws-takeaways)
   Zwykła lista + wybrany styl. Etykieta „W skrócie" doklejana przez ::before.
   -------------------------------------------------------------------------- */
.wp-block-list.is-style-ws-takeaways {
	list-style: none;
	background: var(--ws-paper);
	border: 1px solid var(--ws-line);
	border-radius: var(--ws-radius);
	padding: var(--ws-space-5) var(--ws-space-6);
	margin-block: var(--ws-space-6);
	max-width: 720px;
}

.wp-block-list.is-style-ws-takeaways::before {
	content: "W skrócie";
	display: block;
	font-size: var(--ws-text-xs);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ws-accent);
	margin-bottom: var(--ws-space-4);
}

.wp-block-list.is-style-ws-takeaways li {
	position: relative;
	list-style: none;
	padding-left: var(--ws-space-5);
	margin-bottom: var(--ws-space-3);
	font-size: var(--ws-text-base);
	line-height: 1.5;
	color: var(--ws-ink);
}

.wp-block-list.is-style-ws-takeaways li:last-child { margin-bottom: 0; }

.wp-block-list.is-style-ws-takeaways li::before {
	content: "—";
	position: absolute;
	left: 0;
	color: var(--ws-accent);
	font-weight: 700;
}

/* --------------------------------------------------------------------------
   3. Cytat — wyróżniony wygląd domyślny dla każdego bloku Cytat
   -------------------------------------------------------------------------- */
.wp-block-quote {
	margin: var(--ws-space-6) 0;
	max-width: 720px;
	padding-left: var(--ws-space-5);
	border-left: 3px solid var(--ws-accent);
}

.wp-block-quote p {
	font-family: var(--ws-font-head);
	font-size: var(--ws-text-2xl);
	font-weight: 600;
	line-height: 1.4;
	color: var(--ws-ink);
	margin: 0 0 var(--ws-space-3);
	letter-spacing: -0.01em;
}

.wp-block-quote cite {
	font-family: var(--ws-font-body);
	font-style: normal;
	font-size: var(--ws-text-sm);
	color: var(--ws-muted);
}

/* --------------------------------------------------------------------------
   4. Strona statyczna
   -------------------------------------------------------------------------- */
.ws-page {
	max-width: 820px;
	margin-inline: auto;
	padding-block: var(--ws-space-7) var(--ws-space-8);
}

.ws-page__head {
	margin-bottom: var(--ws-space-6);
	padding-bottom: var(--ws-space-5);
	border-bottom: 1px solid var(--ws-line);
}

.ws-page__title {
	font-size: var(--ws-text-4xl);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0;
	text-wrap: balance;
}

.ws-page__thumb {
	margin-bottom: var(--ws-space-6);
	border-radius: var(--ws-radius);
	overflow: hidden;
}

.ws-page__thumb img { width: 100%; height: auto; display: block; }

.ws-page-links {
	margin-top: var(--ws-space-5);
	display: flex;
	gap: var(--ws-space-2);
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. Komentarze
   -------------------------------------------------------------------------- */
.ws-comments {
	max-width: 720px;
	margin-inline: auto;
	padding-block: var(--ws-space-7);
}

.ws-comments__title {
	font-size: var(--ws-text-2xl);
	margin: 0 0 var(--ws-space-5);
}

.ws-comments__list {
	list-style: none;
	margin: 0 0 var(--ws-space-6);
	padding: 0;
}

.ws-comments__list ol.children {
	list-style: none;
	margin: 0;
	padding-left: var(--ws-space-5);
}

.ws-comments__list .comment-body {
	padding: var(--ws-space-4) 0;
	border-top: 1px solid var(--ws-line-soft);
}

.ws-comments__list .comment-author {
	display: flex;
	align-items: center;
	gap: var(--ws-space-3);
	margin-bottom: var(--ws-space-2);
}

.ws-comments__list .comment-author img {
	border-radius: 50%;
}

.ws-comments__list .comment-author .fn {
	font-weight: 700;
	font-style: normal;
	color: var(--ws-ink);
}

.ws-comments__list .comment-metadata {
	font-size: var(--ws-text-xs);
	color: var(--ws-muted);
	margin-bottom: var(--ws-space-2);
}

.ws-comments__list .comment-metadata a { color: var(--ws-muted); }

.ws-comments .comment-respond {
	margin-top: var(--ws-space-6);
	padding-top: var(--ws-space-6);
	border-top: 1px solid var(--ws-line);
}

.ws-comments .comment-reply-title { font-size: var(--ws-text-xl); margin: 0 0 var(--ws-space-4); }

.ws-comments .comment-form label {
	display: block;
	font-size: var(--ws-text-sm);
	font-weight: 600;
	margin-bottom: var(--ws-space-1);
}

.ws-comments .comment-form input[type="text"],
.ws-comments .comment-form input[type="email"],
.ws-comments .comment-form input[type="url"],
.ws-comments .comment-form textarea {
	width: 100%;
	padding: var(--ws-space-3) var(--ws-space-4);
	border: 1px solid var(--ws-line);
	border-radius: var(--ws-radius);
	font: inherit;
	font-size: var(--ws-text-sm);
	margin-bottom: var(--ws-space-4);
	background: var(--ws-surface);
}

.ws-comments .comment-form .form-submit input {
	padding: var(--ws-space-3) var(--ws-space-6);
	border: 1px solid var(--ws-accent);
	border-radius: var(--ws-radius);
	background: var(--ws-accent);
	color: var(--ws-on-dark);
	font-weight: 600;
	cursor: pointer;
}

/* --------------------------------------------------------------------------
   6. Responsywność
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
	.ws-page__title { font-size: var(--ws-text-3xl); }
}
