/*
 * ---------------------------------------------------------------------------
 * الملف:      assets/css/core.css
 * الوظيفة:    التصميم المشترك لكل الصفحات:
 *             1. المتغيرات (الألوان، الخطوط، المقاسات) — البيئة تغيّر اللون المميز فقط
 *             2. الخطوط   3. الأساس   4. الهيدر والبحث   5. القائمة الجانبية
 *             6. الفوتر   7. المحتوى المكتوب (مقال، صفحة، وصف منتج)
 *             8. عناصر الإضافة: الإعلانات، جدول المحتويات، الفيديو، نموذج الاتصال
 *             9. أدوات صغيرة   10. القوائم المشتركة بين المدونة والمتجر: الشبكة،
 *             رؤوس الأقسام، المسار، أرقام الصفحات، الشارة، الحالة الفارغة، 404
 * يستخدم الخصائص المنطقية (inline-start/end) فيعمل نفس الكود للعربية والإنجليزية.
 * ---------------------------------------------------------------------------
 */

/* 1. Variables ------------------------------------------------------------ */

:root {
	--c-dark: #0E0E12;
	--c-gold: #F2C230; /* Bright gold: logo, footer and menu on dark, lines and buttons on light. */
	--c-bronze: #8A6A16;
	--c-shop-dark: #C9505E;
	--c-shop: #7B1E2B;
	--c-text: #1A1A1F;
	--c-reading: #000000; /* Reading text: black, so thin Cairo strokes never look grey. */
	--c-muted: #55555F;
	--c-bg: #FFFFFF;
	--c-ivory: #FAF7F0;
	--c-line: #E6E2D6;
	--c-on-dark: #F4F2EC;
	--c-on-dark-muted: #B4B2AA;

	--accent: var(--c-bronze); /* Text on white (links): dark gold, readable. */
	--accent-on-dark: var(--c-gold);
	/* Filled buttons and lines: bright gold with dark text (bright gold is
	   too light to be read as text on white). */
	--accent-fill: linear-gradient(180deg, #F8D04A, #E2A919);
	--accent-fill-flat: #F2C230;
	--on-accent-fill: #1B1405;
	--accent-line: #EBB522;

	--font-ar: "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif;
	--font-en: "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
	--font: var(--font-ar);
	--fs-body: 17px;
	--lh-body: 1.9;

	--header-h: 56px;
	--container: 1200px;
	--reading: 700px; /* About 70 Arabic characters a line: easier to follow than 100. */
	--radius: 12px;
	--gap: 16px;
}

[data-env="shop"] {
	--accent: var(--c-shop);
	--accent-on-dark: var(--c-shop-dark);
	--accent-fill: var(--c-shop);
	--accent-fill-flat: var(--c-shop);
	--on-accent-fill: #fff;
	--accent-line: var(--c-shop);
}

html[lang="en"] {
	--font: var(--font-en);
	--lh-body: 1.75;
}

@media (min-width: 1024px) {
	:root {
		--fs-body: 18px;
		--gap: 24px;
	}

	html[lang="en"] {
		--fs-body: 17px;
	}
}

/* 2. Fonts (each page downloads only the one it uses) ---------------------- */

@font-face {
	font-family: "Cairo";
	src: url("../fonts/cairo-arabic.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Browser translation (Chrome, Google Translate): an Arabic page translated
   into a left-to-right language gets class "translated-ltr" on <html>. The
   translated text then starts on the left, as that language expects. */
html.translated-ltr,
html.translated-ltr [dir="rtl"] {
	direction: ltr;
}

html.translated-rtl,
html.translated-rtl [dir="ltr"] {
	direction: rtl;
}

/* 3. Base ------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

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

body.has-drawer-open {
	overflow: hidden;
}

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

img,
video {
	height: auto;
}

a {
	color: var(--accent);
	text-underline-offset: 0.2em;
}

h1,
h2,
h3,
h4 {
	line-height: 1.4;
	margin: 0 0 0.6em;
}

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

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

.site-header :focus-visible,
.drawer :focus-visible,
.site-footer :focus-visible {
	outline-color: var(--accent-on-dark);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	inset-inline-start: 12px;
	top: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 16px;
	margin: 0;
	clip: auto;
	clip-path: none;
	background: var(--c-gold);
	color: var(--c-dark);
	font-weight: 700;
	text-decoration: none;
	border-radius: 8px;
}

.site-main:focus {
	outline: none;
}

.container {
	width: min(100% - 32px, var(--container));
	margin-inline: auto;
}

.section {
	padding-block: 32px;
}

.page-title {
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
	font-weight: 700;
}

.plain-list {
	padding-inline-start: 1.2em;
}

/* 4. Header and search -------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--c-dark);
	color: var(--c-on-dark);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-bar .site-header {
	top: 46px;
}

@media (min-width: 783px) {
	.admin-bar .site-header {
		top: 32px;
	}
}

.site-header__bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 8px;
	height: var(--header-h);
	padding-inline: 8px;
	width: min(100%, var(--container));
	margin-inline: auto;
}

.site-header__brand {
	text-align: center;
	min-width: 0;
}

.site-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--c-gold);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.site-logo__image {
	display: block;
	max-height: 40px;
	width: auto;
}

/* The channel drawing beside the name: small and round, never a banner. */
.site-logo__mark {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
}

.site-footer .site-logo__mark {
	width: 40px;
	height: 40px;
}

.icon-button {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 10px;
	color: inherit;
	cursor: pointer;
}

.icon-button:hover {
	background: rgba(255, 255, 255, 0.08);
}

.icon {
	display: block;
	flex: none;
}

.site-header__lang {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 2px 12px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	color: var(--c-on-dark);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
}

.site-header__lang:hover {
	border-color: var(--accent-on-dark);
	color: var(--accent-on-dark);
}

.site-search {
	padding: 12px 16px 16px;
	background: var(--c-dark);
}

.search-form {
	display: flex;
	width: min(100%, 640px);
	margin-inline: auto;
	background: #fff;
	border-radius: 999px;
	overflow: hidden;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	padding: 10px 18px;
	background: none;
	border: 0;
	color: var(--c-text);
	font-size: 1rem;
}

.search-form__input:focus {
	outline: none;
}

.search-form:focus-within {
	box-shadow: 0 0 0 3px var(--accent-on-dark);
}

.search-form__submit {
	display: grid;
	place-items: center;
	width: 52px;
	background: var(--accent-fill);
	border: 0;
	color: var(--on-accent-fill);
	cursor: pointer;
}

/* Category row: desktop only, outside the sticky header, so it scrolls away. */
.site-header__categories {
	display: none;
	background: var(--c-dark);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 1024px) {
	:root {
		--header-h: 64px;
	}

	.site-header__bar {
		padding-inline: 16px;
	}

	.site-logo {
		font-size: 1.6rem;
	}

	.site-header__categories {
		display: block;
	}

	.site-header__categories ul {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 4px 28px;
		width: min(100% - 32px, var(--container));
		margin: 0 auto;
		padding: 10px 0 12px;
		list-style: none;
	}

	.site-header__categories a {
		color: var(--c-on-dark);
		font-size: 0.95rem;
		font-weight: 600;
		text-decoration: none;
		border-bottom: 2px solid transparent;
		padding-bottom: 2px;
	}

	.site-header__categories a:hover,
	.site-header__categories a[aria-current] {
		color: var(--accent-on-dark);
		border-bottom-color: var(--accent-on-dark);
	}
}

/* 5. Drawer --------------------------------------------------------------------- */

.drawer {
	position: fixed;
	inset: 0;
	z-index: 100;
}

.drawer[hidden] {
	display: none;
}

.drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(14, 14, 18, 0.6);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.drawer__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: min(86vw, 360px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--c-dark);
	color: var(--c-on-dark);
	transform: translateX(-100%);
	transition: transform 0.25s ease;
	padding-bottom: 24px;
}

[dir="rtl"] .drawer__panel {
	transform: translateX(100%);
}

.drawer.is-open .drawer__backdrop {
	opacity: 1;
}

.drawer.is-open .drawer__panel {
	transform: none;
}

.drawer__panel:focus {
	outline: none;
}

.drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-h);
	padding-inline: 16px 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer__title {
	font-weight: 700;
	color: var(--c-gold);
}

/* Categories of the current section, shown open (no arrows). */
.drawer__cats {
	padding-top: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* "Site sections": the same links, order and labels as the footer. */
.drawer__group {
	padding-top: 14px;
}

.drawer__label {
	margin: 0;
	padding-inline: 20px;
	color: var(--c-gold);
	font-size: 0.8rem;
	font-weight: 700;
}

.drawer__sections a.is-current {
	color: var(--accent-on-dark);
	font-weight: 700;
	box-shadow: inset 3px 0 0 var(--accent-on-dark);
}

[dir="rtl"] .drawer__sections a.is-current {
	box-shadow: inset -3px 0 0 var(--accent-on-dark);
}

.drawer__list {
	margin: 0;
	padding: 0 0 12px;
	list-style: none;
}

.drawer__list a {
	display: block;
	padding: 10px 20px;
	color: var(--c-on-dark-muted);
	text-decoration: none;
}

.drawer__list a:hover,
.drawer__list a[aria-current] {
	color: var(--c-on-dark);
	background: rgba(255, 255, 255, 0.05);
}

.drawer__list a[aria-current] {
	color: var(--accent-on-dark);
	font-weight: 700;
}

/* Pages under the sections: Our links, About, Contact. */
.drawer__pages {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
	padding: 16px 20px 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	list-style: none;
}

.drawer__pages a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 16px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	color: var(--c-on-dark);
	font-size: 0.9rem;
	text-decoration: none;
}

.drawer__pages a:hover {
	border-color: var(--accent-on-dark);
	color: var(--accent-on-dark);
}

@media (prefers-reduced-motion: reduce) {
	.drawer__panel,
	.drawer__backdrop {
		transition: none;
	}
}

/* 6. Footer ---------------------------------------------------------------------- */

.site-footer {
	margin-top: 48px;
	background: var(--c-dark);
	color: var(--c-on-dark-muted);
	font-size: 0.92rem;
}

/* Phones: author card and icons, then the two link columns side by side.
   Desktop: author card | sections | about. */
.site-footer__inner {
	display: grid;
	gap: 24px;
	width: min(100% - 32px, var(--container));
	margin-inline: auto;
	padding-block: 28px 20px;
}

@media (min-width: 768px) {
	.site-footer__inner {
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
		gap: 48px;
		padding-block: 36px 24px;
	}
}

.site-footer__links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-content: start;
}

.site-footer .site-logo {
	font-size: 1.3rem;
}

.site-footer__tagline {
	margin: 6px 0 0;
}

/* Author card. */
.author-card {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.author-card__avatar {
	flex: none;
	width: 56px;
	height: 56px;
	border: 2px solid var(--accent-on-dark);
	border-radius: 50%;
	object-fit: cover;
}

.author-card__body {
	min-width: 0;
}

.author-card__label {
	margin: 0;
	color: var(--accent-on-dark);
	font-size: 0.78rem;
	font-weight: 700;
}

.author-card__name {
	margin: 2px 0 4px;
	color: var(--c-on-dark);
	font-size: 1.05rem;
	line-height: 1.4;
}

.author-card__bio {
	margin: 0 0 6px;
	font-size: 0.86rem;
	line-height: 1.75;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.site-footer .author-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	color: var(--accent-on-dark);
	font-size: 0.86rem;
	font-weight: 700;
}

.author-card__arrow {
	width: 16px;
	height: 16px;
}

[dir="rtl"] .author-card__arrow {
	transform: scaleX(-1);
}

.footer-title {
	margin: 0 0 8px;
	color: var(--accent-on-dark);
	font-size: 0.85rem;
	font-weight: 700;
}

.site-footer__nav ul,
.social-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__nav li {
	margin-bottom: 2px;
}

.site-footer__nav a {
	display: inline-block;
	padding-block: 4px;
}

.site-footer a {
	color: var(--c-on-dark);
	text-decoration: none;
}

/* The section the visitor is in (footer "Site sections"). */
.site-footer__nav .is-current {
	color: var(--accent-on-dark);
	font-weight: 700;
}

.site-footer a:hover {
	color: var(--accent-on-dark);
}

/* Account icons: one row of round buttons, 44px to tap comfortably. */
.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.social-links__item {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.social-links__item:hover {
	border-color: var(--accent-on-dark);
	transform: translateY(-2px);
}

/* Network mark: uploaded icon, or the first letter in a circle. */
.network-mark {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: var(--c-on-dark);
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1;
}

.network-mark.has-icon {
	background: none;
}

.network-mark img {
	width: 26px;
	height: 26px;
	object-fit: contain;
}

.site-footer__disclosure,
.site-footer__copy {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px 14px;
	width: min(100% - 32px, var(--container));
	margin: 0 auto;
	padding-block: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--c-on-dark);
	font-size: 0.82rem;
	font-weight: 500;
	text-align: center;
}

.site-footer__credit {
	color: var(--c-on-dark-muted);
}

/* 7. Written content: articles, pages, product descriptions -------------------------- */

.entry-content {
	max-width: var(--reading);
	overflow-wrap: break-word;
	/* Reading text in black (Cairo 400 looks faint in dark grey). */
	color: var(--c-reading);
}

.entry-content > * {
	margin-block: 0 1.1em;
}

/* A clear gap between paragraphs, larger than the gap between lines, so the
   text reads as separate paragraphs and not one long block. */
.entry-content > p {
	margin-block-end: 1.5em;
}

.entry-content a {
	text-decoration-color: var(--accent-line);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

.entry-content p,
.entry-content li {
	line-height: 1.95;
}

html[lang="en"] .entry-content p,
html[lang="en"] .entry-content li {
	line-height: 1.8;
}

.entry-content h2 {
	margin-top: 1.8em;
	font-size: 1.45em;
}

.entry-content h3 {
	margin-top: 1.5em;
	font-size: 1.2em;
}

.entry-content h2,
.entry-content h3 {
	scroll-margin-top: calc(var(--header-h) + 16px);
}

.entry-content ul,
.entry-content ol {
	padding-inline-start: 1.4em;
}

.entry-content li {
	margin-bottom: 0.35em;
}

.entry-content blockquote {
	margin-inline: 0;
	padding: 16px 20px;
	background: var(--c-ivory);
	border-inline-start: 4px solid var(--accent-line);
	border-radius: 0 var(--radius) var(--radius) 0;
}

[dir="rtl"] .entry-content blockquote {
	border-radius: var(--radius) 0 0 var(--radius);
}

/* Images inside text: a 16:9 frame that never crops the picture. */
.entry-content figure {
	margin-inline: 0;
}

.entry-content .wp-block-image img,
.entry-content > p > img,
.entry-content .wp-caption img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	background: #F2F2F4;
	border-radius: var(--radius);
}

.entry-content figcaption,
.entry-content .wp-caption-text {
	margin-top: 6px;
	color: var(--c-muted);
	font-size: 0.85em;
	text-align: center;
}

.entry-content .wp-caption {
	width: 100% !important;
	max-width: 100%;
}

.entry-content table {
	display: block;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 0.95em;
}

.entry-content th,
.entry-content td {
	padding: 8px 12px;
	border: 1px solid var(--c-line);
}

.entry-content pre {
	overflow-x: auto;
	white-space: pre-wrap;
	padding: 16px;
	background: var(--c-ivory);
	border-radius: var(--radius);
	direction: ltr;
	text-align: left;
}

.entry-content iframe,
.entry-content .wp-block-embed iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: var(--radius);
}

/* 8. Plugin parts ----------------------------------------------------------------------- */

/* Ads: clear space around them, a label, and room kept so text does not jump. */
.alz-ad {
	clear: both;
	margin-block: 32px;
	padding-block: 4px;
	text-align: center;
	min-height: 280px;
}

.alz-ad__label {
	display: block;
	margin-bottom: 4px;
	color: var(--c-muted);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
}

.alz-ad:has(ins[data-ad-status="unfilled"]) {
	display: none;
}

@media (min-width: 768px) {
	.alz-ad {
		min-height: 120px;
	}
}

/* Table of contents. */
.alz-toc {
	margin-block: 24px;
	padding: 14px 20px;
	background: var(--c-ivory);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}

.alz-toc__title {
	font-weight: 700;
	cursor: pointer;
}

.alz-toc__list,
.alz-toc__list ol {
	margin: 8px 0 0;
	padding-inline-start: 1.3em;
}

/* Sub-headings: a dash instead of restarting the numbers. */
.alz-toc__list ol {
	margin-block: 4px;
	list-style: "– ";
	font-size: 0.94em;
}

.alz-toc a {
	color: var(--c-text);
	text-decoration: none;
}

.alz-toc a:hover {
	color: var(--accent);
	text-decoration: underline;
}

/* YouTube: picture until clicked. */
.alz-yt {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
	border-radius: var(--radius);
}

.alz-yt__link,
.alz-yt__thumb,
.alz-yt__frame {
	display: block;
	width: 100%;
	height: 100%;
}

.alz-yt__thumb {
	object-fit: cover;
	aspect-ratio: 16 / 9;
	border-radius: 0 !important;
	background: #000 !important;
}

.alz-yt__frame {
	border: 0;
	aspect-ratio: auto;
}

.alz-yt__play {
	position: absolute;
	inset: 50% auto auto 50%;
	width: 68px;
	height: 48px;
	transform: translate(-50%, -50%);
	background: rgba(14, 14, 18, 0.8);
	border-radius: 12px;
	transition: background 0.2s;
}

.alz-yt__play::after {
	content: "";
	position: absolute;
	inset: 50% auto auto 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 10px 0 10px 17px;
	border-color: transparent transparent transparent #fff;
}

.alz-yt__link:hover .alz-yt__play,
.alz-yt__link:focus-visible .alz-yt__play {
	background: var(--accent);
}

/* Contact form. */
.alz-form__field label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.alz-form input,
.alz-form textarea {
	width: 100%;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid #C9C5BA;
	border-radius: 10px;
}

.alz-form input:focus,
.alz-form textarea:focus {
	border-color: var(--accent);
	outline: 2px solid var(--accent);
	outline-offset: 0;
}

.alz-form__trap {
	position: absolute !important;
	inset-inline-start: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.alz-form__notice {
	padding: 12px 16px;
	border-radius: 10px;
}

.alz-form__notice--success {
	background: #E8F4EA;
	color: #1D5B2A;
}

.alz-form__notice--error {
	background: #FBEAEA;
	color: #8A1F1F;
}

/* "Our links" page buttons ([alezzi_links], inc/features/links-page.php in the plugin).
   Real text on a brand-coloured bar, like the old banner images, in both languages. */
.alz-links {
	display: grid;
	gap: 14px;
	max-width: 560px;
	margin: 8px auto 24px;
	padding: 0;
	list-style: none;
}

.entry-content .alz-links {
	margin-inline: auto;
	padding: 0;
}

.entry-content .alz-links li {
	margin: 0;
}

.alz-links__button {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 64px;
	padding: 10px 18px;
	border-radius: var(--radius);
	background: var(--c-dark);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	color: #fff;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.alz-links__button:hover,
.alz-links__button:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
	color: #fff;
}

.alz-links__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	font-weight: 700;
	font-size: 1.1rem;
}

.alz-links__icon.has-image {
	background: #fff;
}

.alz-links__icon img {
	width: 26px;
	height: 26px;
	object-fit: contain;
}

.alz-links__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.35;
}

.alz-links__label {
	font-size: 1.08rem;
	font-weight: 700;
}

.alz-links__note {
	overflow: hidden;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.85rem;
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.alz-links__button--store { background: linear-gradient(90deg, #14141a, #6b5420); }
.alz-links__button--store .alz-links__icon { color: var(--c-gold); }
.alz-links__button--contact { background: linear-gradient(90deg, #8f1d14, #c5221f); }
.alz-links__button--instagram { background: linear-gradient(90deg, #f58529, #dd2a7b 55%, #8134af); }
.alz-links__button--facebook { background: linear-gradient(90deg, #1257c9, #1877f2); }
.alz-links__button--youtube { background: linear-gradient(90deg, #b00000, #ff0000); }
.alz-links__button--tiktok { background: linear-gradient(90deg, #000, #1f1f24); box-shadow: inset 3px 0 0 #25f4ee, 0 2px 6px rgba(0, 0, 0, 0.12); }
.alz-links__button--x { background: #000; }
.alz-links__button--whatsapp { background: linear-gradient(90deg, #128c4a, #25d366); }
.alz-links__button--telegram { background: linear-gradient(90deg, #1c86c8, #29a9eb); }

@media (prefers-reduced-motion: reduce) {
	.alz-links__button {
		transition: none;
	}
}

/* 9. Small tools --------------------------------------------------------------------------- */

.button,
.alz-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 10px 24px;
	background: var(--accent-fill);
	border: 0;
	border-radius: 999px;
	color: var(--on-accent-fill);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.button:hover,
.alz-button:hover {
	filter: brightness(1.1);
}

.button--ghost {
	background: none;
	border: 2px solid var(--accent);
	color: var(--accent);
}

/* 10. Shared listings (blog and store) ---------------------------------------------------- */

.grid {
	display: grid;
	gap: var(--gap);
	grid-template-columns: 1fr;
}

.grid__full {
	grid-column: 1 / -1;
}

.thumb--empty {
	display: block;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, var(--c-dark), #2A2A33);
}

.thumb--square {
	aspect-ratio: 1;
}

.badge {
	position: relative;
	z-index: 1;
	align-self: flex-start;
	display: inline-block;
	padding: 1px 10px;
	background: var(--c-ivory);
	border: 1px solid var(--c-line);
	border-radius: 999px;
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 700;
	text-decoration: none;
}

.badge:hover {
	border-color: var(--accent);
}

.home__intro {
	padding-block: 28px 8px;
	text-align: center;
}

.home__title {
	margin: 0;
	font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem);
}

.home__tagline {
	margin: 4px 0 0;
	color: var(--c-muted);
}

.home-section {
	padding-block: 24px;
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	margin-bottom: 14px;
	border-bottom: 2px solid var(--c-line);
}

.section-title {
	position: relative;
	margin: 0 0 -2px;
	padding-bottom: 8px;
	font-size: 1.3rem;
	border-bottom: 3px solid var(--accent-line);
}

.related .section-title,
.not-found .section-title {
	display: inline-block;
	margin-bottom: 16px;
}

/* "More in <category>" under a home section's cards: a clear, bold bar so
   readers see there are more articles of the same kind. */
.section-more-bar {
	margin: 14px 0 0;
}

.more-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 48px;
	padding: 10px 16px;
	background: var(--c-ivory);
	border: 1px solid var(--c-line);
	border-inline-start: 4px solid var(--accent-line);
	border-radius: var(--radius);
	color: var(--c-text);
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.more-link:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.more-link__icon {
	flex: none;
	width: 20px;
	height: 20px;
	color: var(--accent);
}

[dir="rtl"] .more-link__icon {
	transform: scaleX(-1);
}

@media (min-width: 768px) {
	.more-link {
		display: inline-flex;
		justify-content: flex-start;
		padding-inline: 20px;
	}
}

.section-cta {
	margin: 20px 0 0;
	text-align: center;
}

.empty-state {
	padding: 32px 16px;
	background: var(--c-ivory);
	border-radius: var(--radius);
	color: var(--c-muted);
	text-align: center;
}

.listing__head {
	margin-bottom: 20px;
}

.listing__description {
	max-width: var(--reading);
	color: var(--c-muted);
}

.listing__search .search-form {
	margin-inline: 0;
	border: 1px solid var(--c-line);
}

.pagination {
	margin-top: 32px;
}

.pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* WordPress gives the list itself the class page-numbers too: style the items only. */
.pagination li > .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--c-line);
	border-radius: 10px;
	color: var(--c-text);
	text-decoration: none;
}

.pagination a.page-numbers:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.pagination .current {
	background: var(--accent-fill-flat);
	border-color: var(--accent-fill-flat);
	color: var(--on-accent-fill);
	font-weight: 700;
}

/* Breadcrumbs. */
.breadcrumbs {
	margin-bottom: 12px;
	font-size: 0.85rem;
	color: var(--c-muted);
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
	content: "›";
	margin-inline: 8px;
	color: #9A988F;
}

[dir="rtl"] .breadcrumbs li:not(:last-child)::after {
	content: "‹";
}

.breadcrumbs a {
	color: var(--c-muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--accent);
	text-decoration: underline;
}

.breadcrumbs [aria-current] {
	color: var(--c-text);
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.button--small {
	min-height: 40px;
	padding: 6px 18px;
	font-size: 0.9rem;
}

/* Pages and 404. */
.page .page-title {
	margin-bottom: 20px;
}

.not-found {
	text-align: center;
}

.not-found__text {
	max-width: 560px;
	margin-inline: auto;
	color: var(--c-muted);
}

.not-found__search {
	margin: 24px 0;
}

.not-found__search .search-form {
	border: 1px solid var(--c-line);
}

.not-found .grid {
	text-align: start;
}
