/*
 * Tinklaraščio straipsnių su .wm-article apvalkalu stiliai.
 * Įkeliama tik įrašuose, kurių turinyje yra „wm-article“ (functions.php).
 * Spalvos: #214B3B, #1EBA88, #FFF5EC, #001914. Šriftas – Nunito Sans.
 */

.wm-article {
	--wm-green: #214b3b;
	--wm-mint: #1eba88;
	--wm-sand: #fff5ec;
	--wm-deep: #001914;
	font-size: 18px;
	line-height: 1.7;
	color: #212529;
}

.wm-article h2 {
	font-size: 32px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--wm-green);
	margin: 56px 0 18px;
	scroll-margin-top: 110px;
}

.wm-article h3 {
	font-size: 23px;
	font-weight: 800;
	color: #000;
	margin: 36px 0 12px;
}

.wm-article a {
	color: var(--wm-green);
	text-decoration: underline;
	text-decoration-color: var(--wm-mint);
	text-underline-offset: 3px;
}

.wm-article a:hover {
	color: var(--wm-mint);
}

/* Autorius */
.wm-article .wm-byline {
	font-size: 15px;
	color: #555;
	border-bottom: 1px solid #e3e3e3;
	padding-bottom: 16px;
	margin-bottom: 28px;
}

/* Trumpas atsakymas */
.wm-article .wm-answer {
	background-color: var(--wm-sand);
	border-left: 6px solid var(--wm-mint);
	padding: 24px 28px;
	margin: 0 0 28px;
}

.wm-article .wm-answer p {
	margin: 0;
}

/* Turinys */
.wm-article .wm-toc {
	list-style: none;
	padding: 20px 24px;
	margin: 0 0 36px;
	border: 1px solid #000;
	font-size: 16px;
	columns: 2;
	column-gap: 32px;
}

.wm-article .wm-toc li {
	margin-bottom: 6px;
	break-inside: avoid;
}

.wm-article .wm-toc li::before {
	content: "→ ";
	color: var(--wm-mint);
	font-weight: 800;
}

.wm-article .wm-toc a {
	text-decoration: none;
}

/* Sąrašai */
.wm-article ul:not(.wm-toc):not(.wm-sources) {
	list-style: none;
	padding-left: 0;
}

.wm-article ul:not(.wm-toc):not(.wm-sources) li {
	position: relative;
	padding-left: 32px;
	margin-bottom: 10px;
}

.wm-article ul:not(.wm-toc):not(.wm-sources) li::before {
	content: "\f00c";
	font-family: FontAwesome;
	position: absolute;
	left: 0;
	top: 1px;
	color: var(--wm-mint);
}

.wm-article ol {
	list-style: none;
	counter-reset: wm-step;
	padding-left: 0;
}

.wm-article ol li {
	counter-increment: wm-step;
	position: relative;
	padding-left: 44px;
	margin-bottom: 14px;
}

.wm-article ol li::before {
	content: counter(wm-step);
	position: absolute;
	left: 0;
	top: 2px;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	font-size: 15px;
	font-weight: 800;
	color: var(--wm-sand);
	background-color: var(--wm-green);
}

/* Paveikslėliai */
.wm-article .wm-figure {
	margin: 28px 0 32px;
}

.wm-article .wm-figure img {
	width: 100%;
	height: auto;
	display: block;
}

/* Lentelės */
.wm-article .wm-table {
	margin: 24px 0 32px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.wm-article .wm-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}

.wm-article .wm-table th {
	background-color: var(--wm-green);
	color: var(--wm-sand);
	font-weight: 700;
	text-align: left;
	padding: 12px 14px;
	border: 1px solid var(--wm-green);
}

.wm-article .wm-table td {
	padding: 12px 14px;
	border: 1px solid #d9d9d9;
	vertical-align: top;
}

.wm-article .wm-table tbody tr:nth-child(even) td {
	background-color: var(--wm-sand);
}

.wm-article .wm-table td:first-child {
	font-weight: 700;
	color: var(--wm-green);
}

.wm-article .wm-table figcaption {
	font-size: 14px;
	color: #6c757d;
	margin-top: 8px;
	text-align: left;
}

/* Mygtukai */
.wm-article .wm-btn .wp-block-button__link {
	display: inline-block;
	font-weight: 800;
	font-size: 16px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wm-sand);
	background-color: var(--wm-mint);
	border-radius: 0;
	padding: 20px 30px;
}

.wm-article .wm-btn .wp-block-button__link:hover {
	color: var(--wm-sand);
	background-color: #40c49a;
}

.wm-article .wm-cta-inline {
	margin: 32px 0 8px;
}

.wm-article .wm-final-cta {
	background-color: var(--wm-deep);
	color: var(--wm-sand);
	padding: 36px 32px;
	margin-top: 48px;
}

.wm-article .wm-final-cta p {
	font-size: 22px;
	margin: 0 0 20px;
}

/* DUK (Yoast FAQ blokas) */
.wm-article .schema-faq-section {
	border-top: 1px solid #000;
	padding: 18px 0;
}

.wm-article .schema-faq-section:last-child {
	border-bottom: 1px solid #000;
}

.wm-article .schema-faq-question {
	display: block;
	font-size: 19px;
	color: #000;
	margin-bottom: 8px;
}

.wm-article .schema-faq-answer {
	margin: 0;
}

/* Šaltiniai */
.wm-article .wm-sources-title {
	font-size: 17px;
	margin-top: 40px;
}

.wm-article .wm-sources {
	font-size: 14px;
	color: #555;
	padding-left: 20px;
}

/* Telefonas */
@media (max-width: 575.98px) {
	.wm-article {
		font-size: 17px;
	}

	.wm-article h2 {
		font-size: 26px;
		margin-top: 44px;
	}

	.wm-article h3 {
		font-size: 20px;
	}

	.wm-article .wm-toc {
		columns: 1;
	}

	.wm-article .wm-table-wide table {
		min-width: 640px;
	}

	.wm-article .wm-btn,
	.wm-article .wm-btn .wp-block-button__link {
		width: 100%;
		text-align: center;
	}

	.wm-article .wm-final-cta {
		padding: 28px 20px;
	}
}
