/* Q8tly theme — the GeoDirectory archives (Sharjeel #7; core's hand-over §3.6, part (a); inc/archive-render.php): the category, tag,
   combo, hub and district pages in the theme's frame, drawn in the one visual system of theme.css (the owner's answer of 19 Nov 2026):
   Readex Pro only (a); the cream head band with the crumbs, the H1 and the meta line (c); the 1240 frame (e). The blocks q8tly-core
   keeps (its cards, filter bar, active filters, pager, SEO block and aside) keep core's own stylesheets (tokens, listing.css,
   archive.css: the lean plan), their fonts set to Readex through core's own font tokens, as on the container pages. The grid carries
   core's rules for the cards it holds: 3 columns, 2 below 1025 px, one stacked column below 768 px, no slot for a card core leaves out
   (a permanently closed place). Phone first; logical properties for Arabic. */

/* ---------- the page body (each theme template resets it in its own sheet) ---------- */
html[lang] body.q8t-tpl-archive {
	margin: 0;
	background: var(--q8t-paper);
	-webkit-text-size-adjust: 100%;
}
body.q8t-tpl-archive .modal:not(.show) {
	display: none;
}
.q8t-archives *,
.q8t-archives *::before,
.q8t-archives *::after {
	box-sizing: border-box;
}
.q8t-archives {
	padding-block-end: 48px;
	color: var(--q8t-ink);
	font-family: var(--q8t-font);
}
.q8t-archives :focus-visible {
	outline: 2px solid var(--q8t-navy);
	outline-offset: 2px;
}
/* core's blocks draw with core's font tokens: Readex here, as on the container pages */
.q8t-ar {
	--font-display: var(--q8t-font);
	--font-body: var(--q8t-font);
	--font-serif: var(--q8t-font);
	display: grid;
	gap: 20px;
}

/* ---------- the head: the cream band, full width from inside the frame ---------- */
.q8t-ar-head {
	display: grid;
	gap: 10px;
	padding-block: 24px 28px;
	background: var(--q8t-cream);
	box-shadow: 0 0 0 100vmax var(--q8t-cream);
	clip-path: inset(0 -100vmax);
}
.q8t-ar-crumbs {
	color: var(--q8t-ink-2);
	font: 400 var(--q8t-fs-s)/1.5 var(--q8t-font);
}
.q8t-ar-crumb {
	color: inherit;
	text-decoration: none;
}
a.q8t-ar-crumb:hover {
	text-decoration: underline;
}
.q8t-ar-crumb.is-current {
	color: var(--q8t-ink);
}
.q8t-ar-crumb-sep {
	margin-inline: 2px;
}
.q8t-ar-head__h1 {
	margin: 0;
	font: 600 var(--q8t-fs-3xl)/var(--q8t-lh-tight) var(--q8t-font);
}
.q8t-ar-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	color: var(--q8t-ink-2);
	font: 400 var(--q8t-fs-s)/1.4 var(--q8t-font);
}
.q8t-ar-meta__dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
}
.q8t-ar-meta__curated {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--q8t-ink);
	font-weight: 500;
}
.q8t-ar-meta__curated svg {
	width: 14px;
	height: 14px;
	color: var(--q8t-red);
}

/* ---------- the results: core's active filters, the grid of core's cards, core's pager ---------- */
.q8t-ar-body {
	display: grid;
	gap: 16px;
	min-width: 0;
}
.q8t-ar-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px 24px;
}
.q8t-ar-item {
	display: block;
	min-width: 0;
	margin: 0;
}
.q8t-ar-item.hentry {
	margin-block-end: 0;
}
/* core prints only a comment for a permanently closed place: no slot (core's archive.css, the same rule on its own item) */
.q8t-ar-item:not(:has(.q8tly-card)) {
	display: none;
}
.q8t-ar-pager:empty,
.q8t-ar-active:empty {
	display: none;
}

/* ---------- core's SEO block beside core's aside ---------- */
.q8t-ar-seo {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 32px;
	margin-block-start: 12px;
	padding-block-start: 28px;
	border-block-start: 1px solid var(--q8t-rule);
	color: var(--q8t-ink-2);
	line-height: 1.6;
}
.q8t-ar-seo__main,
.q8t-ar-seo__aside {
	min-width: 0;
}

/* ---------- part (b): the SEO block (core's words: heading, intro, FAQ) and the aside (core's areas and guides) ---------- */
.q8t-ar-about__h {
	margin: 0 0 12px;
	color: var(--q8t-ink);
	font: 600 var(--q8t-fs-2xl)/var(--q8t-lh-tight) var(--q8t-font);
}
.q8t-ar-about__intro p {
	margin: 0 0 12px;
	font-size: var(--q8t-fs-base);
}
.q8t-ar-faq {
	display: grid;
	gap: 8px;
	margin-block-start: 20px;
}
.q8t-ar-faq__item {
	border: 1px solid var(--q8t-rule);
	border-radius: var(--q8t-r-s);
	background: var(--q8t-paper);
}
.q8t-ar-faq__q {
	position: relative;
	padding: 14px 44px 14px 16px;
	color: var(--q8t-ink);
	font: 600 var(--q8t-fs-base)/1.4 var(--q8t-font);
	list-style: none;
	cursor: pointer;
}
[dir="rtl"] .q8t-ar-faq__q {
	padding: 14px 16px 14px 44px;
}
.q8t-ar-faq__q::-webkit-details-marker {
	display: none;
}
.q8t-ar-faq__q::after {
	content: "+";
	position: absolute;
	inset-inline-end: 16px;
	inset-block-start: 12px;
	color: var(--q8t-ink-2);
	font-size: 20px;
	line-height: 1;
}
.q8t-ar-faq__item[open] > .q8t-ar-faq__q::after {
	content: "−";
}
.q8t-ar-faq__a {
	padding: 0 16px 14px;
}
.q8t-ar-faq__a p {
	margin: 0 0 8px;
}
.q8t-ar-aside {
	display: grid;
	gap: 24px;
}
.q8t-ar-aside__h {
	margin: 0 0 10px;
	color: var(--q8t-ink);
	font: 600 var(--q8t-fs-l)/1.3 var(--q8t-font);
}
.q8t-ar-aside__areas {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.q8t-ar-aside__guides {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.q8t-ar-aside__guide a {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	color: var(--q8t-ink);
	text-decoration: none;
}
.q8t-ar-aside__guide a:hover .q8t-ar-aside__title {
	text-decoration: underline;
}
.q8t-ar-aside__thumb {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--q8t-r-xs);
	background: var(--q8t-sand);
}
.q8t-ar-aside__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.q8t-ar-aside__title {
	font: 600 var(--q8t-fs-m)/1.35 var(--q8t-font);
}

@media (max-width: 1024px) {
	.q8t-ar-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.q8t-ar-seo {
		grid-template-columns: minmax(0, 1fr);
	}
}
/* one stacked column on a phone: block flow, each card its own height (core's reason: the grid mis-measured the photo cards) */
@media (max-width: 767px) {
	.q8t-ar-grid {
		display: block;
	}
	.q8t-ar-item + .q8t-ar-item {
		margin-block-start: 20px;
	}
}
@media (min-width: 1025px) {
	.q8t-ar-head {
		padding-block: 40px 36px;
	}
	.q8t-ar-head__h1 {
		font-size: var(--q8t-fs-4xl);
	}
}
