/*
Theme Name: Moters laboratorija
Theme URI: https://moterslaboratorija.lt
Author: Moters laboratorija
Description: Moterų sveikata per neuromokslo prizmę. Blokinė tema su lašelio logotipu, Manrope šriftu ir žalia–terakotos palete.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.5.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moteru-laboratorija
*/

/* ---------- Bendri ---------- */
.ml-eyebrow,
.ml-eyebrow a {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-ink);
	text-decoration: none;
}
.ml-lead {
	font-size: 18px;
	line-height: 1.6;
	font-weight: 300;
	color: #3E4F49;
}
.ml-muted {
	color: var(--wp--preset--color--ink-muted);
}
.ml-light-300 {
	font-weight: 300;
}

/* ---------- Antraštė ---------- */
.ml-header {
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.ml-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--wp--preset--color--forest);
}
.ml-logo img {
	height: 36px;
	width: 36px;
	display: block;
	flex: none;
}
.ml-logo-text {
	font-size: 20px;
	line-height: 1;
	letter-spacing: -0.02em;
	font-weight: 300;
	white-space: nowrap;
}
.ml-logo-text strong {
	font-weight: 750;
}
.ml-logo-light {
	color: var(--wp--preset--color--cream);
}
.ml-footer .ml-logo-light,
.ml-footer .ml-logo-light:hover {
	color: var(--wp--preset--color--cream);
}
.ml-nav a {
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
}
.ml-nav a:hover {
	color: var(--wp--preset--color--accent-ink);
}

/* ---------- Kortelės ---------- */
.ml-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	padding: 24px;
	height: 100%;
	box-sizing: border-box;
}
.ml-card .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--forest);
}
.ml-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--accent-ink);
}
.ml-card .wp-block-post-excerpt__excerpt {
	color: var(--wp--preset--color--ink-muted);
	font-size: 15px;
	line-height: 1.55;
}
.ml-topic {
	background: var(--wp--preset--color--white);
	border-radius: 16px;
	padding: 24px;
	text-decoration: none;
	color: var(--wp--preset--color--forest);
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	box-sizing: border-box;
	transition: transform .15s ease;
}
.ml-topic:hover {
	transform: translateY(-2px);
	color: var(--wp--preset--color--forest);
}
.ml-topic strong {
	font-size: 20px;
}
.ml-topic span {
	font-size: 15px;
	line-height: 1.5;
	color: var(--wp--preset--color--ink-muted);
}
.ml-topic .ml-icon {
	width: 48px;
	height: 48px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--blush);
}
.ml-topic:nth-child(even) .ml-icon {
	background: var(--wp--preset--color--sage);
}
.ml-topics {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

/* ---------- Kategorijų filtrai ---------- */
.ml-pills,
.ml-pills ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ml-pills li a,
.ml-pill {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1.5px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--forest);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	box-sizing: border-box;
}
.ml-pills li a:hover,
.ml-pill:hover,
.ml-pills li.current-cat a,
.ml-pill.is-current {
	background: var(--wp--preset--color--forest);
	border-color: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--cream);
}

/* ---------- Įrašas ---------- */
.ml-meta {
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 16px 0;
	font-size: 14px;
	line-height: 1.5;
}
.ml-meta img {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	object-fit: cover;
	display: block;
}
.wp-block-post-content h2,
.ml-post-content h2 {
	margin-top: 1.6em;
	margin-bottom: 0.4em;
	font-size: 21px !important;
	line-height: 1.3;
	letter-spacing: -0.01em;
}
.wp-block-post-content {
	font-size: 16px;
	line-height: 1.7;
}
.ml-takeaways {
	background: var(--wp--preset--color--sage);
	border-radius: 16px;
	padding: 24px 28px;
}
.ml-takeaways h2 {
	margin-top: 0 !important;
	font-size: 18px !important;
}
.ml-sources {
	margin-top: 2em;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--border);
	font-size: 14px;
	line-height: 1.6;
	color: var(--wp--preset--color--ink-muted);
}
.ml-sources h2 {
	font-size: 16px !important;
	margin-top: 0 !important;
	color: var(--wp--preset--color--forest);
}
.ml-sources a {
	color: var(--wp--preset--color--accent-ink);
	word-break: break-word;
}
.ml-disclaimer {
	font-size: 14px;
	color: var(--wp--preset--color--ink-muted);
}

/* ---------- Blokai ---------- */
.ml-rounded-lg {
	border-radius: 28px;
	overflow: hidden;
}
.ml-rounded-lg img {
	border-radius: 28px;
}
.ml-art svg {
	display: block;
	width: 100%;
	height: auto;
}
.ml-stat {
	font-size: clamp(64px, 8vw, 104px);
	line-height: 1;
	font-weight: 750;
	letter-spacing: -0.04em;
	color: var(--wp--preset--color--blush);
}
.ml-principle {
	background: var(--wp--preset--color--cream);
	border-radius: 16px;
	padding: 20px;
}
.ml-principle strong {
	display: block;
	margin-bottom: 4px;
}
.ml-principle p {
	margin: 0;
}
.ml-badge {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	padding: 4px 14px;
	border-radius: 999px;
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--cream);
}
.ml-dark a {
	color: var(--wp--preset--color--blush);
}
.ml-footer a {
	color: #D6DED9;
	text-decoration: none;
}
.ml-footer a:hover {
	color: var(--wp--preset--color--blush);
}

/* ---------- Prenumeratos forma ---------- */
.ml-subscribe {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ml-sub-label {
	font-size: 14px;
	font-weight: 600;
}
.ml-sub-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.ml-sub-row input[type="email"] {
	flex: 1 1 220px;
	min-height: 52px;
	box-sizing: border-box;
	padding: 0 20px;
	border-radius: 999px;
	border: 1.5px solid #8FB5A6;
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--forest);
	font: inherit;
	font-size: 16px;
}
.ml-sub-row button {
	min-height: 52px;
	padding: 0 28px;
	border-radius: 999px;
	border: 0;
	background: var(--wp--preset--color--terracotta);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}
.ml-sub-row button:hover {
	background: var(--wp--preset--color--accent-ink);
}
.ml-sub-row input:focus-visible,
.ml-sub-row button:focus-visible,
.ml-sub-consent input:focus-visible {
	outline: 3px solid var(--wp--preset--color--blush);
	outline-offset: 2px;
}
.ml-sub-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.5;
	color: #D6DED9;
	cursor: pointer;
}
.ml-sub-consent input {
	width: 18px;
	height: 18px;
	margin-top: 1px;
	flex: none;
	accent-color: var(--wp--preset--color--terracotta);
}
.ml-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.ml-form-msg {
	margin: 0 0 6px;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
}
.ml-form-ok {
	background: var(--wp--preset--color--sage);
	color: var(--wp--preset--color--forest);
}
.ml-form-err {
	background: var(--wp--preset--color--blush);
	color: #8A3E24;
}

/* ---------- Įrašų filtras pagrindiniame ---------- */
.ml-pills button.ml-pill {
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.ml-posts li[hidden] {
	display: none !important;
}
.ml-filter-empty[hidden] {
	display: none;
}

@media (max-width: 781px) {
	.ml-hide-mobile {
		display: none;
	}
}
