/*
Theme Name: Welatê Me
Theme URI: https://welateme.net
Author: Hedaa Tech
Author URI: https://www.hedaa.de
Description: قالب مخصص لموقع ولاتي مه (Welatê Me) مبني على تصميم Figma الجديد — صفحة رئيسية، صفحات التصنيفات، وصفحة المقال.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: welateme
*/

/* =========================================================================
   Design tokens (from Figma variables)
   ====================================================================== */
:root {
	--brand-50: #F7E9EA;
	--brand-100: #E7BABD;
	--brand-300: #CC6A70;
	--brand-500: #B3202A;
	--brand-600: #A31D26;
	--brand-700: #7F171E;
	--brand-800: #621217;
	--brand-900: #4B0D12;
	--brand-950: #0D0203;

	--sec-50: #FAF6E9;
	--sec-100: #EEE2BC;
	--sec-300: #DBC16E;
	--sec-500: #C9A227;
	--sec-600: #B79323;
	--sec-700: #8F731C;
	--sec-950: #2B2308;

	--white: #FFFFFF;
	--gray-50: #F9FAFB;
	--gray-100: #F2F4F7;
	--gray-200: #E4E7EC;
	--gray-300: #D0D5DD;
	--gray-400: #98A2B3;
	--gray-500: #667085;
	--gray-600: #475467;
	--gray-700: #344054;
	--gray-800: #1D2939;
	--gray-900: #101828;

	--heading: var(--brand-950);
	--body: var(--gray-600);
	--subtitle: var(--gray-500);
	--border: var(--gray-200);

	--font-primary: "Noto Sans Arabic", "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
	--font-secondary: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;

	--r-8: 8px;
	--r-12: 12px;
	--container: 1240px;
	--gutter: 24px;
	--shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
	--shadow-md: 0 8px 24px rgba(16, 24, 40, .08);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* =========================================================================
   Base
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-primary);
	font-size: 16px;
	line-height: 1.75;
	color: var(--body);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.wm-menu-open { overflow: hidden; }
h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 700; line-height: 1.4; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--brand-500); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-700); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--gray-800); }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }
[hidden] { display: none !important; }
:lang(en), :lang(de), :lang(ku), [lang="ku"], [lang="en"], [lang="de"] { font-family: var(--font-secondary); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); margin: -1px; padding: 0; border: 0;
}
.skip-link:focus { clip: auto; clip-path: none; width: auto; height: auto; top: 8px; inset-inline-start: 8px; z-index: 1000; background: var(--white); padding: 8px 12px; border-radius: 6px; }

.wm-container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wm-narrow { max-width: 920px; }
.wm-section { padding-block: 40px; }
.wm-section--tight { padding-block: 24px 48px; }
.wm-section--cream { background: var(--sec-50); }

.wm-icon { display: inline-flex; width: 1.25em; height: 1.25em; vertical-align: -0.3em; flex: none; }
.wm-icon svg { width: 100%; height: 100%; }

/* Section heading with red bar --------------------------------------- */
.wm-section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.wm-section__title {
	position: relative; font-size: 24px; font-weight: 700; margin: 0; padding-inline-start: 14px; line-height: 1.4;
}
.wm-section__title::before {
	content: ""; position: absolute; inset-inline-start: 0; top: 2px; bottom: 2px; width: 3px; border-radius: 2px; background: var(--brand-500);
}
.wm-more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--brand-500); white-space: nowrap; }
.wm-more .wm-icon { width: 1.1em; height: 1.1em; }
.wm-more:hover { color: var(--brand-700); }

/* Buttons -------------------------------------------------------------- */
.wm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding-inline: 20px; border-radius: var(--r-8);
	font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); white-space: nowrap;
}
.wm-btn--primary { background: var(--brand-500); color: var(--white); }
.wm-btn--primary:hover { background: var(--brand-700); color: var(--white); }
.wm-btn--outline { background: var(--white); color: var(--gray-700); border-color: var(--gray-300); }
.wm-btn--outline:hover { background: var(--gray-50); color: var(--brand-500); border-color: var(--brand-300); }
.wm-btn--outline.is-selected { background: var(--brand-50); color: var(--brand-600); border-color: var(--brand-300); }
.wm-btn--ghost { background: var(--brand-50); color: var(--brand-600); }
.wm-btn--ghost:hover { background: var(--brand-100); color: var(--brand-700); }
.wm-btn:disabled { cursor: default; opacity: .8; }

/* Badge ---------------------------------------------------------------- */
.wm-badge {
	display: inline-flex; align-items: center; height: 24px; padding-inline: 12px; border-radius: 6px; background: var(--sec-500); color: var(--sec-950);
	font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap;
}
a.wm-badge:hover { background: var(--sec-600); color: var(--sec-950); }
.wm-card__media .wm-badge { position: absolute; inset-inline-start: 12px; bottom: -12px; z-index: 2; box-shadow: var(--shadow-sm); }
.wm-badge--static { position: static; margin-bottom: 12px; }

/* =========================================================================
   Header
   ====================================================================== */
.wm-header { position: sticky; top: 0; z-index: 100; background: var(--white); transition: box-shadow .2s var(--ease); }
.wm-header.is-scrolled { box-shadow: var(--shadow-md); }
.wm-header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.wm-logo a, .wm-logo img { display: block; }
.wm-logo img { max-height: 64px; width: auto; }
.wm-logo__text { font-size: 26px; font-weight: 800; color: var(--brand-500); }
.wm-footer__logo img { max-height: 44px; width: auto; }

.wm-sections { display: flex; align-items: center; gap: 8px; list-style: none; }
.wm-sections a {
	display: inline-flex; align-items: center; height: 40px; padding-inline: 16px; border-radius: var(--r-8); font-size: 15px; font-weight: 600; color: var(--gray-700);
	transition: background .2s var(--ease), color .2s var(--ease);
}
.wm-sections a:hover { background: var(--gray-100); color: var(--gray-900); }
.wm-sections .current-menu-item > a, .wm-sections .current_page_item > a { background: var(--brand-500); color: var(--white); }
.wm-sections .current-menu-item > a:hover { background: var(--brand-700); }

.wm-header__nav { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.wm-nav__list { display: flex; align-items: center; justify-content: center; gap: 4px; list-style: none; flex-wrap: wrap; }
.wm-nav__list > li { position: relative; }
.wm-nav__list > li > a {
	display: inline-flex; align-items: center; gap: 4px; height: 48px; padding-inline: 14px; font-size: 15px; font-weight: 500; color: var(--gray-700); position: relative;
}
.wm-nav__list > li > a::after {
	content: ""; position: absolute; inset-inline: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--brand-500); transform: scaleX(0); transition: transform .2s var(--ease);
}
.wm-nav__list > li > a:hover, .wm-nav__list > li.current-menu-item > a, .wm-nav__list > li.current-menu-ancestor > a, .wm-nav__list > li.current-menu-parent > a { color: var(--brand-600); }
.wm-nav__list > li.current-menu-item > a::after, .wm-nav__list > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.wm-nav__list .menu-item-has-children > a::before {
	content: ""; width: 7px; height: 7px; border-inline-start: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateY(-2px) rotate(-45deg); margin-inline-end: 4px; order: -1;
}
.wm-nav__list .sub-menu {
	position: absolute; top: 100%; inset-inline-start: 0; min-width: 200px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-8); box-shadow: var(--shadow-md);
	padding: 8px; list-style: none; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s var(--ease); z-index: 20;
}
.wm-nav__list li:hover > .sub-menu, .wm-nav__list li.is-open > .sub-menu, .wm-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.wm-nav__list .sub-menu a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--gray-700); font-size: 14px; }
.wm-nav__list .sub-menu a:hover { background: var(--gray-100); color: var(--brand-600); }

.wm-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--border); background: var(--white); border-radius: var(--r-8); color: var(--gray-700); align-items: center; justify-content: center; }
.wm-burger .wm-icon { width: 24px; height: 24px; }
.wm-burger__close { display: none; }
.wm-burger[aria-expanded="true"] .wm-burger__open { display: none; }
.wm-burger[aria-expanded="true"] .wm-burger__close { display: inline-flex; }

.wm-mobile { display: none; border-top: 1px solid var(--border); background: var(--white); max-height: calc(100vh - 88px); overflow: auto; padding-block: 16px 24px; }
.wm-mobile .wm-sections { flex-wrap: wrap; margin-bottom: 12px; }
.wm-mobile .wm-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
.wm-mobile .wm-nav__list > li > a { height: 46px; width: 100%; border-bottom: 1px solid var(--gray-100); }
.wm-mobile .wm-nav__list > li > a::after { display: none; }
.wm-mobile .wm-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 16px 8px; display: none; }
.wm-mobile .wm-nav__list li.is-open > .sub-menu { display: block; }
.wm-mobile__search { margin-top: 16px; }

/* =========================================================================
   Cards
   ====================================================================== */
.wm-grid { display: grid; gap: 24px; }
.wm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.wm-card {
	display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-8); overflow: hidden; height: 100%;
	transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.wm-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--gray-300); }
.wm-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--gray-100); }
.wm-card__img { display: block; width: 100%; height: 100%; overflow: hidden; }
.wm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.wm-card:hover .wm-card__media img { transform: scale(1.04); }
.wm-card__body { display: flex; flex-direction: column; gap: 6px; padding: 24px 16px 14px; flex: 1; }
.wm-card__label { font-size: 12px; font-weight: 600; color: var(--brand-500); }
.wm-card__title { font-size: 16px; font-weight: 700; line-height: 1.55; margin: 0; }
.wm-card__title a { color: var(--heading); }
.wm-card__title a:hover { color: var(--brand-600); }
.wm-card__excerpt {
	font-size: 14px; color: var(--gray-500); margin: 0; line-height: 1.75;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wm-card__meta { margin-top: auto; padding-top: 10px; display: flex; justify-content: flex-end; }
.wm-card__meta time { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gray-500); direction: ltr; font-family: var(--font-secondary); }
.wm-card__meta .wm-icon { width: 16px; height: 16px; vertical-align: middle; }

/* Kurdish list (side column) ------------------------------------------ */
.wm-latest__grid { display: grid; grid-template-columns: 3fr 1fr; gap: 24px; align-items: start; }
.wm-list { list-style: none; border: 1px solid var(--border); border-radius: var(--r-8); background: var(--white); overflow: hidden; }
.wm-list li + li { border-top: 1px solid var(--border); }
.wm-list a { display: block; padding: 14px 16px; font-size: 14px; line-height: 1.7; color: var(--gray-700); font-family: var(--font-secondary); transition: background .2s var(--ease); }
.wm-list a:hover { background: var(--gray-50); color: var(--brand-600); }
.wm-latest__side .wm-more { margin-top: 16px; }
.wm-empty { color: var(--gray-500); font-size: 14px; }

/* =========================================================================
   Newsletter
   ====================================================================== */
.wm-newsletter { background: var(--brand-800); color: var(--white); padding-block: 48px; text-align: center; }
.wm-newsletter__title { color: var(--white); font-size: 32px; margin-bottom: 8px; }
.wm-newsletter__sub { color: var(--brand-100); font-size: 16px; margin-bottom: 24px; }
.wm-newsletter__form { display: flex; gap: 12px; justify-content: center; max-width: 720px; margin-inline: auto; }
.wm-newsletter__form input[type="email"] { flex: 1; height: 48px; border-radius: var(--r-8); border: 1px solid transparent; padding-inline: 16px; font-size: 14px; }
.wm-newsletter__form input[type="email"]:focus { outline: 2px solid var(--sec-500); }
.wm-newsletter__form .wm-btn { height: 48px; padding-inline: 32px; }
.wm-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }
.wm-newsletter__form { position: relative; }
.wm-newsletter__msg { margin: 12px 0 0; font-size: 14px; min-height: 1.5em; }
.wm-newsletter__msg.is-ok { color: var(--sec-300); }
.wm-newsletter__msg.is-error { color: #FDAAA4; }

/* =========================================================================
   Footer
   ====================================================================== */
.wm-footer { background: var(--white); border-top: 1px solid var(--border); padding-block: 40px 24px; }
.wm-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.wm-footer__desc { font-size: 14px; color: var(--gray-600); max-width: 520px; margin: 16px 0 20px; }
.wm-footer__contact { display: flex; align-items: center; gap: 12px; }
.wm-footer__contact-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-50); color: var(--brand-500); }
.wm-footer__contact-icon .wm-icon { width: 20px; height: 20px; }
.wm-footer__contact-label { display: block; font-size: 13px; color: var(--gray-500); }
.wm-footer__email { font-family: var(--font-secondary); color: var(--gray-800); direction: ltr; display: inline-block; }
.wm-footer__heading { font-size: 16px; margin-bottom: 8px; }
.wm-acc__item + .wm-acc__item { border-top: 1px solid var(--gray-100); }
.wm-acc__btn { display: flex; width: 100%; align-items: center; justify-content: space-between; background: none; border: 0; padding: 12px 0; font-weight: 600; color: var(--gray-800); font-size: 15px; }
.wm-acc__btn .wm-icon { width: 18px; height: 18px; color: var(--gray-500); transition: transform .2s var(--ease); }
.wm-acc__item.is-open .wm-acc__btn .wm-icon { transform: rotate(180deg); }
.wm-acc__panel { padding-bottom: 12px; }
.wm-footer__links { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.wm-footer__links a { display: block; padding: 4px 12px; font-size: 14px; color: var(--gray-600); }
.wm-footer__links a:hover { color: var(--brand-600); }
.wm-footer__links .sub-menu { display: none; }
.wm-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--gray-500); flex-wrap: wrap; }
.wm-footer__bottom p { margin: 0; }
.wm-footer__dev a { color: var(--brand-500); font-weight: 700; }

/* =========================================================================
   Category banner + filters
   ====================================================================== */
.wm-banner { background: var(--brand-800); color: var(--white); padding-block: 32px 36px; text-align: center; }
.wm-banner .wm-crumbs { justify-content: center; color: var(--brand-100); margin-bottom: 8px; }
.wm-banner .wm-crumbs a { color: var(--brand-100); }
.wm-banner .wm-crumbs strong { color: var(--white); }
.wm-banner__title { color: var(--white); font-size: 36px; margin-bottom: 8px; }
.wm-banner__desc { color: var(--brand-100); font-size: 15px; max-width: 900px; margin: 0 auto; }

.wm-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-500); flex-wrap: wrap; }
.wm-crumbs a { color: var(--gray-600); }
.wm-crumbs a:hover { color: var(--brand-600); }
.wm-crumbs strong { color: var(--gray-900); font-weight: 600; }
.wm-crumbs__sep { color: var(--gray-400); }
.wm-crumbbar { background: var(--gray-50); border-bottom: 1px solid var(--border); padding-block: 12px; }

.wm-filters { background: var(--white); border-bottom: 1px solid var(--border); padding-block: 16px; }
.wm-filters__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wm-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.wm-pill {
	display: inline-flex; align-items: center; height: 40px; padding-inline: 16px; border-radius: var(--r-8); border: 1px solid var(--border); background: var(--white); color: var(--gray-700); font-size: 14px; font-weight: 500;
	transition: all .2s var(--ease);
}
.wm-pill:hover { border-color: var(--brand-300); color: var(--brand-600); }
.wm-pill.is-active { background: var(--brand-500); border-color: var(--brand-500); color: var(--white); }

.wm-search { display: flex; align-items: center; position: relative; width: 100%; max-width: 380px; }
.wm-search input { width: 100%; height: 40px; border: 1px solid var(--border); border-radius: var(--r-8); padding-inline: 14px 40px; font-size: 14px; background: var(--white); }
.wm-search input:focus { border-color: var(--brand-300); outline: none; box-shadow: 0 0 0 3px var(--brand-50); }
.wm-search button { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: none; color: var(--gray-500); display: inline-flex; align-items: center; justify-content: center; }
.wm-search button:hover { color: var(--brand-500); }

/* Featured (first) post in archive ------------------------------------ */
.wm-feature {
	display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-12); overflow: hidden; margin-bottom: 24px;
}
.wm-feature__media { display: block; min-height: 320px; background: var(--gray-100); }
.wm-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.wm-feature__body { padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; max-width: 100%; }
.wm-feature__media, .wm-feature__body > * { min-width: 0; max-width: 100%; }
.wm-card__title, .wm-feature__title, .wm-article__title { overflow-wrap: anywhere; }
.wm-feature__title { font-size: 28px; line-height: 1.45; margin: 0; }
.wm-feature__title a { color: var(--heading); }
.wm-feature__title a:hover { color: var(--brand-600); }
.wm-feature__excerpt { font-size: 15px; color: var(--gray-500); margin: 0; }
.wm-feature .wm-card__meta { width: 100%; margin-top: 0; }
.wm-feature .wm-btn--ghost { margin-top: auto; height: 40px; font-size: 14px; }

.wm-pagination { margin-top: 32px; text-align: center; }
.wm-pagination__more { margin-bottom: 20px; }
.wm-pagination__more a { display: inline-block; font-weight: 700; color: var(--brand-500); padding-bottom: 4px; border-bottom: 2px solid var(--brand-500); }
.wm-pagination .page-numbers { display: flex; justify-content: center; gap: 6px; list-style: none; flex-wrap: wrap; }
.wm-pagination .page-numbers li a, .wm-pagination .page-numbers li span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding-inline: 12px; border: 1px solid var(--border); border-radius: var(--r-8); color: var(--gray-700); font-size: 14px; font-family: var(--font-secondary);
}
.wm-pagination .page-numbers li a:hover { border-color: var(--brand-300); color: var(--brand-600); }
.wm-pagination .page-numbers li span.current { background: var(--brand-500); border-color: var(--brand-500); color: var(--white); }

/* =========================================================================
   Article
   ====================================================================== */
.wm-article__header { padding-block: 28px 8px; }
.wm-article__title { font-size: 32px; line-height: 1.5; margin: 4px 0 12px; }
.wm-article__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wm-article__meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--gray-500); }
.wm-article__meta > * { display: inline-flex; align-items: center; gap: 6px; }
.wm-article__meta time { direction: ltr; font-family: var(--font-secondary); }
.wm-article__meta .wm-icon { width: 16px; height: 16px; color: var(--brand-500); }
.wm-share { height: 40px; padding-inline: 16px; font-size: 14px; }

.wm-article__content { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-12); padding: 32px; }
.wm-article__thumb { float: inline-end; width: min(46%, 460px); margin: 0 0 16px 24px; border-radius: var(--r-8); overflow: hidden; }
.wm-article__thumb img { width: 100%; height: auto; }
[dir="rtl"] .wm-article__thumb { margin: 0 0 16px 24px; }
[dir="ltr"] .wm-article__thumb { margin: 0 24px 16px 0; }

.wm-prose { font-size: 16px; line-height: 1.95; color: var(--gray-700); }
.wm-prose::after { content: ""; display: table; clear: both; }
.wm-prose p { margin-bottom: 1.1em; }
.wm-prose h2, .wm-prose h3, .wm-prose h4 { clear: none; margin: 1.4em 0 .5em; }
.wm-prose h2 { font-size: 22px; }
.wm-prose h3 { font-size: 18px; }
.wm-prose strong { color: var(--gray-900); }
.wm-prose img { border-radius: var(--r-8); margin-block: 12px; }
.wm-prose img.alignleft { float: left; margin: 6px 20px 12px 0; }
.wm-prose img.alignright { float: right; margin: 6px 0 12px 20px; }
.wm-prose img.aligncenter { margin-inline: auto; }
.wm-prose figure { margin: 16px 0; }
.wm-prose figcaption { font-size: 13px; color: var(--gray-500); text-align: center; margin-top: 6px; }
.wm-prose blockquote { margin: 20px 0; padding: 12px 20px; border-inline-start: 3px solid var(--brand-500); background: var(--gray-50); border-radius: 6px; color: var(--gray-700); }
.wm-prose ul, .wm-prose ol { padding-inline-start: 24px; margin-bottom: 1em; }
.wm-prose a { text-decoration: underline; text-underline-offset: 3px; }
.wm-prose iframe, .wm-prose video { max-width: 100%; }
.wm-prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wm-prose td, .wm-prose th { border: 1px solid var(--border); padding: 8px; }
.wm-pages { margin-top: 16px; font-size: 14px; }
.wm-tags { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.wm-tags a { font-size: 12px; padding: 4px 10px; border-radius: 6px; background: var(--gray-100); color: var(--gray-600); }
.wm-tags a:hover { background: var(--brand-50); color: var(--brand-600); }

/* Helpful box ----------------------------------------------------------- */
.wm-helpful {
	display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; margin-top: 24px; padding: 24px 28px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-12);
}
.wm-helpful__text h2 { font-size: 22px; margin-bottom: 4px; }
.wm-helpful__text p { margin: 0; color: var(--gray-500); font-size: 14px; }
.wm-helpful__actions { display: flex; gap: 12px; }
.wm-helpful__actions .wm-btn { height: 40px; font-size: 14px; }
.wm-helpful__actions .wm-icon { width: 18px; height: 18px; }
.wm-helpful__stat { display: flex; flex-direction: column; align-items: center; text-align: center; padding-inline-start: 24px; border-inline-start: 1px solid var(--border); min-width: 150px; }
.wm-helpful__pct { font-size: 40px; font-weight: 800; color: var(--sec-500); line-height: 1; font-family: var(--font-secondary); }
.wm-helpful__label { font-size: 12px; color: var(--gray-500); margin-top: 6px; line-height: 1.5; }

/* Comments ------------------------------------------------------------- */
.wm-comments { margin-top: 32px; }
.wm-comments__title { font-size: 22px; margin-bottom: 16px; }
.wm-comments__form { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-12); padding: 24px; margin-bottom: 24px; }
.wm-comments__form-title { font-size: 16px; margin-bottom: 16px; }
.wm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wm-field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.wm-field--full, .wm-form .form-submit, .wm-form .comment-notes, .wm-form .logged-in-as, .wm-form .comment-form-cookies-consent { grid-column: 1 / -1; }
.wm-field label { font-size: 13px; color: var(--gray-600); }
.wm-field input, .wm-field textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--r-8); padding: 10px 14px; font-size: 14px; background: var(--white); }
.wm-field input { height: 44px; }
.wm-field input:focus, .wm-field textarea:focus { border-color: var(--brand-300); outline: none; box-shadow: 0 0 0 3px var(--brand-50); }
.wm-form .form-submit { margin: 0; display: flex; align-items: center; gap: 12px; }
.wm-form .form-submit .wm-btn { height: 40px; font-size: 14px; }
.wm-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--gray-500); margin: 0; }
.wm-form .logged-in-as { font-size: 13px; color: var(--gray-500); margin: 0; }
.wm-comments__list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.wm-comments__list .children { list-style: none; margin-top: 12px; padding-inline-start: 40px; display: flex; flex-direction: column; gap: 12px; }
.wm-comment__box { display: flex; gap: 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-12); padding: 16px 20px; }
.wm-comment__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-500); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.wm-comment__body { flex: 1; min-width: 0; }
.wm-comment__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 4px; }
.wm-comment__name { font-weight: 700; color: var(--gray-900); font-size: 15px; }
.wm-comment__date { font-size: 12px; color: var(--gray-500); direction: ltr; font-family: var(--font-secondary); }
.wm-comment__text { font-size: 14px; color: var(--gray-600); }
.wm-comment__text p:last-child { margin-bottom: 0; }
.wm-comment__pending { font-size: 12px; color: var(--sec-700); }
.wm-comment__reply { margin-top: 8px; font-size: 13px; }
.wm-comment__reply a { color: var(--brand-500); font-weight: 600; }
.wm-comments .comment-navigation, .wm-comments .comments-pagination { margin-top: 16px; font-size: 14px; }

/* 404 -------------------------------------------------------------------- */
.wm-404 { display: flex; flex-direction: column; align-items: center; gap: 24px; }

/* Elementor pages inside the theme --------------------------------------- */
.wm-elementor-page { min-height: 40vh; }

/* Alignment helpers (WP) -------------------------------------------------- */
.alignwide { max-width: 1240px; margin-inline: auto; }
.alignfull { width: 100%; }
.wp-caption { max-width: 100%; }

/* =========================================================================
   Responsive
   ====================================================================== */
@media (max-width: 1100px) {
	.wm-latest__grid { grid-template-columns: 2fr 1fr; }
	.wm-latest__main .wm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wm-helpful { grid-template-columns: 1fr auto; }
	.wm-helpful__stat { grid-column: 1 / -1; flex-direction: row; gap: 12px; justify-content: center; border-inline-start: 0; padding: 12px 0 0; border-top: 1px solid var(--border); }
}

@media (max-width: 900px) {
	.wm-header__row { min-height: 72px; }
	.wm-logo img { max-height: 48px; }
	.wm-header__sections, .wm-header__nav { display: none; }
	.wm-burger { display: inline-flex; }
	.wm-mobile { display: block; }
	.wm-latest__grid { grid-template-columns: 1fr; }
	.wm-grid--3, .wm-latest__main .wm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wm-footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.wm-feature { grid-template-columns: 1fr; }
	.wm-feature__media { min-height: 220px; aspect-ratio: 16 / 9; }
	.wm-feature__body { padding: 24px; }
	.wm-feature__title { font-size: 22px; }
	.wm-banner__title { font-size: 28px; }
	.wm-article__title { font-size: 26px; }
	.wm-article__content { padding: 20px; }
	.wm-article__thumb { float: none; width: 100%; margin: 0 0 16px !important; }
	.wm-newsletter__title { font-size: 26px; }
}

@media (max-width: 600px) {
	.wm-section { padding-block: 32px; }
	.wm-grid--3, .wm-latest__main .wm-grid--3 { grid-template-columns: 1fr; }
	.wm-section__title { font-size: 20px; }
	.wm-newsletter__form { flex-direction: column; }
	.wm-filters__row { flex-direction: column; align-items: stretch; }
	.wm-search { max-width: none; }
	.wm-helpful { grid-template-columns: 1fr; padding: 20px; }
	.wm-helpful__actions .wm-btn { flex: 1; }
	.wm-form { grid-template-columns: 1fr; }
	.wm-comment__box { padding: 14px; }
	.wm-comments__list .children { padding-inline-start: 16px; }
	.wm-footer__bottom { flex-direction: column; text-align: center; }
	.wm-article__bar { align-items: stretch; }
	.wm-share { width: 100%; }
}

@media print {
	.wm-header, .wm-footer, .wm-newsletter, .wm-helpful, .wm-comments, .wm-related, .wm-share { display: none !important; }
}
