/*
Theme Name: Wallxer
Theme URI: https://wallxer.com/
Author: Wallxer
Author URI: https://wallxer.com/
Description: Custom theme for Wallxer, a digital growth agency in Dhaka, Bangladesh, serving small and medium online businesses. Provides the design tokens, base styles and fallback templates. Header, footer and page layouts are built in Elementor; custom widgets live in the Wallxer Core plugin.
Version: 1.0.5
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wallxer
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready, blog
*/

/* ==========================================================================
   1. Design tokens (the only place they are defined)
   ========================================================================== */

:root {
	/* Brand */
	--wlx-brand: #5b63d3;
	--wlx-brand-dark: #4a52c4;
	--wlx-brand-ink: #3f46a8;
	--wlx-brand-soft: #9aa0f0;

	/* Text */
	--wlx-ink-strong: #0d0d13;
	--wlx-ink: #14141c;
	--wlx-ink-2: #26263a;
	--wlx-text: #33334a;
	--wlx-muted: #4e4e63;
	--wlx-muted-2: #5a5a6e;
	--wlx-meta: #6a6a7e;

	/* Surfaces */
	--wlx-bg: #ffffff;
	--wlx-tint: #fbfbfe;
	--wlx-tint-2: #f7f8fd;
	--wlx-tint-3: #f1f2fa;
	--wlx-chip: #eceef9;

	/* Lines */
	--wlx-line: #e6e7f2;
	--wlx-line-soft: #ecedf5;
	--wlx-line-strong: #dcdef0;
	--wlx-line-hover: #cdd1f2;
	--wlx-field-line: #85889f;

	/* Dark surfaces */
	--wlx-dark: #14141c;
	--wlx-dark-2: #20202c;
	--wlx-dark-line: #2c2c3c;
	--wlx-on-dark: #c3c3d2;
	--wlx-on-dark-link: #b4b4c6;
	--wlx-on-dark-meta: #8a8aa0;

	/* Status */
	--wlx-success: #1a7a4a;
	--wlx-success-bg: #e7f6ee;
	--wlx-star: #f5a524;
	--wlx-whatsapp: #25d366;
	--wlx-whatsapp-ink: #06331a;

	/* Fonts */
	--wlx-font-body: "Hind Siliguri", system-ui, sans-serif;
	--wlx-font-heading: "Anek Bangla", "Hind Siliguri", sans-serif;
	--wlx-font-accent: "Baloo Da 2", "Anek Bangla", sans-serif;
	--wlx-font-mono: "IBM Plex Mono", ui-monospace, monospace;

	/* Type scale */
	--wlx-fs-body: 17px;
	--wlx-lh-body: 1.85;
	--wlx-fs-h1: clamp(30px, 4.8vw, 52px);
	--wlx-fs-h2: clamp(28px, 4vw, 44px);
	--wlx-fs-h3: clamp(20px, 2.3vw, 25px);
	--wlx-fs-lead: clamp(17px, 2vw, 19px);
	--wlx-fs-small: 14.5px;

	/* Layout */
	--wlx-container: 1200px;
	--wlx-container-narrow: 760px;
	--wlx-gutter: 20px;
	--wlx-section-y: clamp(56px, 7vw, 100px);
	--wlx-gap: clamp(14px, 2vw, 24px);

	/* Radii */
	--wlx-radius-pill: 999px;
	--wlx-radius-card: 22px;
	--wlx-radius-media: 16px;
	--wlx-radius-sm: 12px;

	/* Shadows */
	--wlx-shadow-card: 0 6px 18px rgba(20, 20, 40, 0.04);
	--wlx-shadow-hover: 0 22px 44px rgba(20, 20, 40, 0.1);
	--wlx-shadow-button: 0 10px 26px rgba(20, 20, 40, 0.18);
	--wlx-shadow-large: 0 28px 60px rgba(20, 20, 40, 0.18);

	/* Motion */
	--wlx-ease: cubic-bezier(0.3, 0.8, 0.3, 1);
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	overflow-x: clip;
	font-family: var(--wlx-font-body);
	font-size: var(--wlx-fs-body);
	line-height: var(--wlx-lh-body);
	color: var(--wlx-ink);
	text-wrap: pretty;
	background: var(--wlx-bg);
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--wlx-font-heading);
	font-weight: 600;
	line-height: 1.35;
	color: var(--wlx-ink);
}

h1 {
	font-size: var(--wlx-fs-h1);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

h2 {
	font-size: var(--wlx-fs-h2);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.015em;
}

h3 {
	font-size: var(--wlx-fs-h3);
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--wlx-brand-ink);
	text-decoration: none;
	transition: color 0.2s;
}

a:hover {
	color: var(--wlx-ink);
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--wlx-brand-dark);
	outline-offset: 3px;
	border-radius: 4px;
}

[id] {
	scroll-margin-top: 90px;
}

/* ==========================================================================
   3. Accessibility helpers and WordPress core classes
   ========================================================================== */

.screen-reader-text {
	position: absolute;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	word-wrap: normal !important;
}

.skip-link:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	clip: auto;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 20px;
	border-radius: var(--wlx-radius-pill);
	font-weight: 600;
	color: #ffffff;
	background: var(--wlx-ink);
}

.alignleft {
	float: left;
	margin: 0 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.wp-caption {
	max-width: 100%;
	margin-bottom: 1.5em;
}

.wp-caption-text,
.gallery-caption {
	font-size: var(--wlx-fs-small);
	color: var(--wlx-meta);
	text-align: center;
}

.sticky,
.bypostauthor {
	display: block;
}

/* ==========================================================================
   4. Utility classes (usable from Elementor: Advanced → CSS Classes, or inline spans)
   ========================================================================== */

/* Highlighted words inside a heading: <span class="wlx-hl">…</span> */
.wlx-hl {
	font-family: var(--wlx-font-accent);
	font-weight: 700;
	color: var(--wlx-brand);
}

/* Text Editor widgets: no stray gap under the last paragraph. */
.elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

/* Brand-coloured words that keep the heading font: <span class="wlx-accent">…</span> */
.wlx-accent {
	color: var(--wlx-brand);
}

/*
 * Small label pill. Add "wlx-pill" to a Heading widget (Advanced → CSS Classes).
 * "wlx-pill--dot" adds a brand dot, "wlx-pill--live" a green one.
 */
.wlx-pill .elementor-heading-title {
	display: inline-flex;
	gap: 9px;
	align-items: center;
	margin: 0;
	padding: 7px 16px;
	border: 1px solid var(--wlx-line-strong);
	border-radius: var(--wlx-radius-pill);
	font-family: var(--wlx-font-body);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.06em;
	color: var(--wlx-muted-2);
	text-transform: uppercase;
	white-space: nowrap;
	background: #ffffff;
}

.wlx-pill--dot .elementor-heading-title::before,
.wlx-pill--live .elementor-heading-title::before {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wlx-brand);
}

.wlx-pill--live .elementor-heading-title {
	letter-spacing: 0;
	text-transform: none;
}

.wlx-pill--live .elementor-heading-title::before {
	width: 8px;
	height: 8px;
	background: #22a95b;
}

/*
 * Button with the round arrow. Add "wlx-arrow-btn" to a Button widget that has
 * an icon placed at the end. "wlx-arrow-btn--light" makes the circle white
 * (for buttons whose background is the brand colour).
 */
.wlx-arrow-btn .elementor-button {
	padding: 9px 12px 9px 26px;
	border-radius: var(--wlx-radius-pill);
	font-size: 16.5px;
	font-weight: 600;
	line-height: 1.4;
	color: #ffffff;
	background-color: var(--wlx-ink);
	box-shadow: var(--wlx-shadow-button);
	transition: transform 0.24s var(--wlx-ease), box-shadow 0.24s, background-color 0.24s;
}

.wlx-arrow-btn .elementor-button:hover,
.wlx-arrow-btn .elementor-button:focus-visible {
	color: #ffffff;
	background-color: var(--wlx-ink-2);
	box-shadow: 0 18px 34px rgba(20, 20, 40, 0.24);
	transform: translateY(-3px);
}

.wlx-arrow-btn .elementor-button-content-wrapper {
	gap: 14px;
	align-items: center;
}

.wlx-arrow-btn .elementor-button-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	font-size: 15px;
	color: #ffffff;
	background: var(--wlx-brand);
	transition: transform 0.24s var(--wlx-ease), background-color 0.24s, color 0.24s;
}

.wlx-arrow-btn .elementor-button-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.wlx-arrow-btn .elementor-button:hover .elementor-button-icon,
.wlx-arrow-btn .elementor-button:focus-visible .elementor-button-icon {
	color: var(--wlx-brand);
	background: #ffffff;
	transform: translateX(3px) rotate(-8deg);
}

.wlx-arrow-btn--light .elementor-button {
	background-color: var(--wlx-brand);
}

.wlx-arrow-btn--light .elementor-button:hover,
.wlx-arrow-btn--light .elementor-button:focus-visible {
	background-color: var(--wlx-brand-dark);
}

.wlx-arrow-btn--light .elementor-button-icon {
	color: var(--wlx-brand);
	background: #ffffff;
}

/* Outline pill button: add "wlx-outline-btn" to a Button widget. */
.wlx-outline-btn .elementor-button {
	padding: 15px 26px;
	border: 1px solid var(--wlx-line-strong);
	border-radius: var(--wlx-radius-pill);
	font-size: 16.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--wlx-ink-2);
	background-color: #ffffff;
	transition: transform 0.22s var(--wlx-ease), border-color 0.22s, color 0.22s;
}

.wlx-outline-btn .elementor-button:hover,
.wlx-outline-btn .elementor-button:focus-visible {
	border-color: var(--wlx-brand);
	color: var(--wlx-brand-ink);
	background-color: #ffffff;
	transform: translateY(-3px);
}

/*
 * Numbered anchor chips: add "wlx-chips" to a container that holds Button
 * widgets. The numbers (01, 02…) are added automatically.
 */
.wlx-chips {
	counter-reset: wlx-chip;
}

.wlx-chips .elementor-button {
	padding: 9px 16px;
	border: 1px solid var(--wlx-line);
	border-radius: var(--wlx-radius-pill);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--wlx-ink-2);
	white-space: nowrap;
	background-color: #ffffff;
	transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.wlx-chips .elementor-button:hover,
.wlx-chips .elementor-button:focus-visible {
	border-color: var(--wlx-brand);
	color: var(--wlx-brand-ink);
	background-color: #ffffff;
	transform: translateY(-2px);
}

.wlx-chips .elementor-button-text::before {
	content: counter(wlx-chip, decimal-leading-zero);
	counter-increment: wlx-chip;
	margin-right: 8px;
	font-family: var(--wlx-font-mono);
	font-size: 12.5px;
	font-weight: 400;
	color: var(--wlx-brand);
}

/* Breadcrumb line: add "wlx-crumbs" to a Text Editor widget. */
.wlx-crumbs,
.wlx-crumbs a {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--wlx-meta);
}

.wlx-crumbs a:hover,
.wlx-crumbs a:focus-visible {
	color: var(--wlx-ink);
}

.wlx-crumbs strong {
	font-weight: 600;
	color: var(--wlx-ink);
}

.wlx-crumbs span {
	margin: 0 4px;
}

/* Small upper-case label above a list: add "wlx-kicker" to a Heading widget. */
.wlx-kicker .elementor-heading-title {
	font-family: var(--wlx-font-body);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.08em;
	color: var(--wlx-meta);
	text-transform: uppercase;
}

/* Check list with round tinted marks: add "wlx-checks" to an Icon List widget. */
/*
 * The selectors repeat Elementor's own widget classes on purpose: Elementor's
 * icon-list stylesheet loads after the theme and sets display, icon margin and
 * icon width with up to three classes, so shorter selectors lose. The same
 * rules cover the list inside the booking template (.wlx-booking__list).
 */
.elementor-widget.elementor-widget-icon-list.wlx-checks .elementor-icon-list-icon,
.elementor-widget.elementor-widget-icon-list.wlx-booking__list .elementor-icon-list-icon {
	display: flex;
	flex: 0 0 22px;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 22px;
	height: 22px;
	margin: 3px 12px 0 0;
	padding: 0;
	border-radius: 50%;
	text-align: center;
	background: var(--wlx-chip);
}

.elementor-widget.elementor-widget-icon-list.wlx-booking__list .elementor-icon-list-icon {
	margin: 0 10px 0 0;
	background: #e6e8fa;
}

.elementor-widget.elementor-widget-icon-list.wlx-checks .elementor-icon-list-icon svg,
.elementor-widget.elementor-widget-icon-list.wlx-checks .elementor-icon-list-icon i,
.elementor-widget.elementor-widget-icon-list.wlx-booking__list .elementor-icon-list-icon svg,
.elementor-widget.elementor-widget-icon-list.wlx-booking__list .elementor-icon-list-icon i {
	display: block;
	flex: none;
	width: 11px;
	height: 11px;
	margin: 0;
	font-size: 11px;
	line-height: 1;
}

.elementor-widget.elementor-widget-icon-list.wlx-checks .elementor-icon-list-item {
	align-items: flex-start;
}

.elementor-widget.elementor-widget-icon-list.wlx-checks .elementor-icon-list-icon + .elementor-icon-list-text,
.elementor-widget.elementor-widget-icon-list.wlx-booking__list .elementor-icon-list-icon + .elementor-icon-list-text {
	align-self: flex-start;
	padding-inline-start: 0;
}

.elementor-widget.elementor-widget-icon-list.wlx-booking__list .elementor-icon-list-icon + .elementor-icon-list-text {
	align-self: center;
}

/* ---- Blog (classes used by the Theme Builder blog templates) ---- */

/* Category chip: add "wlx-chip-el" to a Heading widget. */
.wlx-chip-el .elementor-heading-title,
.wlx-chip-el .elementor-heading-title a {
	font-family: var(--wlx-font-body);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--wlx-brand-ink);
}

.wlx-chip-el .elementor-heading-title {
	display: inline-block;
	padding: 5px 12px;
	border-radius: var(--wlx-radius-pill);
	white-space: nowrap;
	background: var(--wlx-chip);
}

.wlx-chip-el--solid .elementor-heading-title {
	color: #ffffff;
	background: var(--wlx-brand);
}

/* Date and reading time line printed by [wallxer_post_meta]. */
.wlx-post-meta {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--wlx-meta);
}

/* Post cards in the blog grids: add "wlx-post-card" to the loop item's container. */
.wlx-post-card {
	transition: transform 0.24s var(--wlx-ease), box-shadow 0.24s, border-color 0.24s;
}

.wlx-post-card:hover,
.wlx-post-card:focus-visible {
	border-color: var(--wlx-line-hover);
	box-shadow: var(--wlx-shadow-hover);
	transform: translateY(-4px);
}

.wlx-post-card,
.wlx-post-card:hover {
	color: inherit;
}

/* Article text: add "wlx-post-content" to the Post Content widget. */
.wlx-post-content {
	font-size: 17.5px;
	line-height: 1.85;
	color: var(--wlx-text);
}

.wlx-post-content p {
	margin: 0 0 18px;
	text-wrap: pretty;
}

.wlx-post-content h2 {
	margin: 40px 0 14px;
	font-size: clamp(22px, 2.6vw, 27px);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	color: var(--wlx-ink);
}

.wlx-post-content h3 {
	margin: 32px 0 12px;
	font-size: 21px;
}

.wlx-post-content ul,
.wlx-post-content ol {
	display: grid;
	gap: 10px;
	margin: 0 0 20px;
	padding: 0 0 0 4px;
	font-size: 17px;
	line-height: 1.75;
	list-style: none;
}

.wlx-post-content ul > li {
	position: relative;
	padding-left: 30px;
}

.wlx-post-content ul > li::before {
	content: "";
	position: absolute;
	top: 0.72em;
	left: 7px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wlx-brand);
}

.wlx-post-content ol {
	padding-left: 24px;
	list-style: decimal;
}

.wlx-post-content a {
	color: var(--wlx-brand-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wlx-post-content img {
	border-radius: var(--wlx-radius-media);
}

/* Tip box inside an article: a Group block with the class "wlx-tip". */
.wlx-post-content .wlx-tip {
	margin: 26px 0;
	padding: 20px 22px;
	border: 1px solid #e3e5f6;
	border-radius: 18px;
	background: #f3f4fb;
}

.wlx-post-content .wlx-tip p {
	margin: 0;
	font-size: 16.5px;
	line-height: 1.75;
	color: var(--wlx-ink-2);
}

.wlx-post-content .wlx-tip .wlx-tip__label {
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--wlx-brand);
}

/* "In this article" list: add "wlx-toc" to the Table of Contents widget. */
.elementor-widget-table-of-contents.wlx-toc {
	--box-border-width: 0px;
	--box-padding: 0px;
	--separator-width: 0px;
}

.elementor-widget-table-of-contents.wlx-toc .elementor-toc__header {
	padding: 0 0 12px;
}

.elementor-widget-table-of-contents.wlx-toc .elementor-toc__header-title {
	font-family: var(--wlx-font-body);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.06em;
	color: var(--wlx-meta);
}

.elementor-widget-table-of-contents.wlx-toc .elementor-toc__body {
	padding: 0;
}

.elementor-widget-table-of-contents.wlx-toc .elementor-toc__list-wrapper {
	margin: 0;
	padding: 0;
	list-style: none;
}

.elementor-widget-table-of-contents.wlx-toc .elementor-toc__list-item-text-wrapper i,
.elementor-widget-table-of-contents.wlx-toc .elementor-toc__list-item-text-wrapper svg {
	display: none;
}

.elementor-widget-table-of-contents.wlx-toc .elementor-toc__list-item {
	margin: 0;
}

.elementor-widget-table-of-contents.wlx-toc .elementor-toc__list-item-text {
	display: block;
	padding: 6px 0 6px 14px;
	border-left: 2px solid var(--wlx-line);
	font-size: 15px;
	line-height: 1.6;
	color: var(--wlx-muted);
	text-decoration: none;
	transition: color 0.2s, border-color 0.2s;
}

.elementor-widget-table-of-contents.wlx-toc .elementor-toc__list-item-text:hover,
.elementor-widget-table-of-contents.wlx-toc .elementor-toc__list-item-text.elementor-item-active {
	border-color: var(--wlx-brand);
	color: var(--wlx-brand-ink);
}

.wlx-container {
	width: 100%;
	max-width: calc(var(--wlx-container) + 2 * var(--wlx-gutter));
	margin-right: auto;
	margin-left: auto;
	padding-right: var(--wlx-gutter);
	padding-left: var(--wlx-gutter);
}

.wlx-container--narrow {
	max-width: calc(var(--wlx-container-narrow) + 2 * var(--wlx-gutter));
}

/* Scroll reveal: theme.js adds the pending class only to elements below the fold. */
.wlx-reveal--pending {
	opacity: 0;
}

.wlx-reveal--in {
	animation: wlx-reveal 0.75s cubic-bezier(0.22, 0.7, 0.25, 1) both;
}

@keyframes wlx-reveal {

	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   5. Fallback header and footer (shown only until Theme Builder templates exist)
   ========================================================================== */

.wlx-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid #efeff3;
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.wlx-header__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	padding-top: 10px;
	padding-bottom: 10px;
}

.wlx-branding,
.wlx-branding a {
	display: flex;
	gap: 9px;
	align-items: center;
	font-family: var(--wlx-font-heading);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: #0f0f14;
}

.wlx-branding .custom-logo {
	display: block;
	width: auto;
	max-height: 28px;
}

.wlx-menu-toggle {
	display: grid;
	gap: 5px;
	place-items: center;
	align-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #e6e6ec;
	border-radius: var(--wlx-radius-sm);
	background: #ffffff;
	cursor: pointer;
}

.wlx-menu-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: #0f0f14;
}

.wlx-nav {
	display: none;
	width: 100%;
}

.wlx-nav.is-open {
	display: block;
}

.wlx-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wlx-nav a {
	display: block;
	padding: 12px 6px;
	border-bottom: 1px solid #f0f0f4;
	font-size: 16px;
	font-weight: 500;
	color: #2a2a34;
}

.wlx-nav a:hover,
.wlx-nav .current-menu-item > a {
	color: #0f0f14;
}

.wlx-footer {
	padding: 40px 0 26px;
	font-size: 16px;
	color: var(--wlx-on-dark);
	background: var(--wlx-dark);
}

.wlx-footer a {
	color: var(--wlx-on-dark-link);
}

.wlx-footer a:hover {
	color: #ffffff;
}

.wlx-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	align-items: center;
	justify-content: space-between;
}

.wlx-footer__inner p {
	margin: 0;
}

.wlx-footer ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ==========================================================================
   6. Fallback content templates (posts, pages, archives, search, 404)
   ========================================================================== */

.wlx-main {
	display: block;
	min-height: 40vh;
}

.wlx-page {
	padding-top: clamp(36px, 6vw, 80px);
	padding-bottom: var(--wlx-section-y);
}

.wlx-page__header {
	margin-bottom: clamp(24px, 4vw, 44px);
	text-align: center;
}

.wlx-page__header p {
	max-width: 54ch;
	margin: 0 auto;
	font-size: var(--wlx-fs-lead);
	color: var(--wlx-muted);
}

.wlx-page__header .wlx-page__actions {
	margin-top: 28px;
}

.wlx-page__notice {
	text-align: center;
}

.wlx-entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	justify-content: center;
	font-size: var(--wlx-fs-small);
	color: var(--wlx-meta);
}

.wlx-prose {
	font-size: 17.5px;
	color: var(--wlx-text);
}

.wlx-prose > * {
	max-width: 100%;
}

.wlx-prose h2 {
	margin: 40px 0 14px;
	font-size: clamp(22px, 2.6vw, 27px);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
}

.wlx-prose h3 {
	margin: 32px 0 12px;
}

.wlx-prose a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wlx-prose img {
	border-radius: var(--wlx-radius-media);
}

.wlx-prose blockquote {
	margin: 26px 0;
	padding: 20px 22px;
	border: 1px solid #e3e5f6;
	border-radius: 18px;
	background: #f3f4fb;
}

.wlx-thumb {
	overflow: hidden;
	margin-bottom: clamp(24px, 4vw, 44px);
	border: 1px solid var(--wlx-line);
	border-radius: 24px;
	background: #f4f4fb;
}

.wlx-thumb img {
	display: block;
	width: 100%;
}

.wlx-posts {
	display: grid;
	gap: var(--wlx-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wlx-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 12px;
	border: 1px solid var(--wlx-line);
	border-radius: var(--wlx-radius-card);
	background: #ffffff;
	box-shadow: var(--wlx-shadow-card);
	transition: transform 0.24s var(--wlx-ease), box-shadow 0.24s, border-color 0.24s;
}

.wlx-card:hover {
	border-color: var(--wlx-line-hover);
	box-shadow: var(--wlx-shadow-hover);
	transform: translateY(-4px);
}

.wlx-card__media {
	overflow: hidden;
	border-radius: 14px;
	background: #f4f4fb;
}

.wlx-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.wlx-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: 20px 12px 12px;
}

.wlx-card__title {
	margin: 0;
	font-size: clamp(20px, 2vw, 23px);
	line-height: 1.4;
}

.wlx-card__title a {
	color: var(--wlx-ink);
}

.wlx-card__excerpt {
	flex: 1;
	margin: 0;
	font-size: 16px;
	color: var(--wlx-muted-2);
}

.wlx-card .wlx-entry-meta {
	justify-content: flex-start;
}

.wlx-chip {
	display: inline-block;
	padding: 5px 12px;
	border-radius: var(--wlx-radius-pill);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--wlx-brand-ink);
	white-space: nowrap;
	background: var(--wlx-chip);
}

.wlx-button,
.wlx-search-form button,
.wlx-comments input[type="submit"] {
	display: inline-block;
	padding: 12px 24px;
	border: 0;
	border-radius: var(--wlx-radius-pill);
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
	background: var(--wlx-ink);
	cursor: pointer;
	transition: background 0.2s;
}

.wlx-button:hover,
.wlx-search-form button:hover,
.wlx-comments input[type="submit"]:hover {
	color: #ffffff;
	background: var(--wlx-ink-2);
}

.wlx-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	max-width: 560px;
	margin: 24px auto 0;
}

.wlx-search-form input[type="search"],
.wlx-comments input[type="text"],
.wlx-comments input[type="email"],
.wlx-comments input[type="url"],
.wlx-comments textarea {
	flex: 1 1 220px;
	width: 100%;
	padding: 11px 18px;
	border: 1.5px solid var(--wlx-field-line);
	border-radius: var(--wlx-radius-sm);
	background: #ffffff;
}

.wlx-search-form input[type="search"] {
	border-radius: var(--wlx-radius-pill);
}

.pagination,
.post-navigation {
	margin-top: clamp(32px, 5vw, 56px);
}

.pagination .nav-links,
.post-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.post-navigation .nav-links {
	justify-content: space-between;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--wlx-line-strong);
	border-radius: var(--wlx-radius-pill);
	font-weight: 600;
	color: var(--wlx-ink-2);
	background: #ffffff;
}

.pagination .page-numbers.current {
	border-color: var(--wlx-ink);
	color: #ffffff;
	background: var(--wlx-ink);
}

.wlx-comments {
	margin-top: clamp(40px, 6vw, 64px);
	padding-top: 32px;
	border-top: 1px solid var(--wlx-line-soft);
}

.wlx-comments ol {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.wlx-comments ol ol {
	margin: 0;
	padding-left: 24px;
}

.wlx-comments .comment-body {
	margin-bottom: 18px;
	padding: 18px 20px;
	border: 1px solid var(--wlx-line);
	border-radius: 18px;
}

.wlx-comments label {
	display: block;
	font-size: var(--wlx-fs-small);
	font-weight: 500;
	color: var(--wlx-meta);
}

/* ==========================================================================
   7. Larger screens
   ========================================================================== */

@media (min-width: 621px) {

	.wlx-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1001px) {

	.wlx-menu-toggle {
		display: none;
	}

	.wlx-nav,
	.wlx-nav.is-open {
		display: block;
		width: auto;
	}

	.wlx-nav ul {
		display: flex;
		gap: clamp(14px, 2vw, 28px);
		align-items: center;
	}

	.wlx-nav a {
		padding: 6px 2px;
		border-bottom: 0;
		font-size: 15px;
		color: #3a3a46;
		white-space: nowrap;
	}

	.wlx-posts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ==========================================================================
   8. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto !important;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.wlx-reveal--pending {
		opacity: 1 !important;
	}
}
