/*
 * Visit Syria — shared foundation styles (Stage 0).
 * Token values come from theme.json (--wp--preset--* / --wp--custom--*); measurements from
 * Docs/DESIGN_SYSTEM.md and Docs/SHARED_LAYOUT.md. Desktop reference 1440px, mobile 375px.
 */

:root {
	--vs-primary: var(--wp--preset--color--primary);
	--vs-primary-text: var(--wp--preset--color--primary-text);
	--vs-dark-text: var(--wp--preset--color--dark-text);
	--vs-secondary-text: var(--wp--preset--color--secondary-text);
	--vs-gold: var(--wp--preset--color--gold);
	--vs-gold-soft: var(--wp--preset--color--gold-soft);
	--vs-bg: var(--wp--preset--color--bg);
	--vs-surface: var(--wp--preset--color--surface);
	--vs-focus: 0 0 0 2px var(--vs-bg), 0 0 0 4px var(--vs-primary);
	/* Audit r2 UX2-02 / C-18 (fix round 4, 2026-11-15): the one edge of every form field and of the unselected rating
	   star. #7d776d is 4.44 : 1 on white, 3.71 : 1 on the page beige (#EDEBE0) and 3.27 : 1 on the alternate beige
	   (#E3DDCB), so a field reads at ≥ 3 : 1 (WCAG 1.4.11) on every background a form sits on. The audit's #8f8a80 is
	   2.87 / 2.53 : 1 on the two beiges. The owner signs off the colour (fix-round-4/H6-colours.html). */
	--vs-field-edge: #7d776d;
	/* Error red (2026-11-17): the staff skin's --vsa-due, 6.6 : 1 on white; the planner uses it. */
	--vs-error: #b42318;
	--vs-container: min(1200px, calc(100% - 32px));
	/* Motion tokens (review round 3, UX M1; rules in motion.css). Every movement sits behind
	   prefers-reduced-motion: no-preference. */
	--vs-dur-press: 120ms; /* :active scale, colour changes */
	--vs-dur-fast: 180ms; /* hover colour/shadow, menu, chips, tab fade */
	--vs-dur-base: 320ms; /* image fade-in, slider crossfade */
	--vs-dur-slow: 560ms; /* scroll reveal (opacity); transform 480ms */
	--vs-dur-zoom: 600ms; /* kept for compatibility; card photos no longer zoom */
	--vs-dur-fade-hover: 450ms; /* card photo fade on hover */
	--vs-hover-dim: 0.86; /* card photo brightness on hover */
	--vs-ease-out: cubic-bezier(0.22, 1, 0.36, 1); /* entrances, reveal */
	--vs-ease-std: cubic-bezier(0.4, 0, 0.2, 1); /* hover, state changes */
	--vs-ease-in: cubic-bezier(0.4, 0, 1, 1); /* exits (menu close) */
	--vs-rise: 24px; /* 16px below 768px */
	--vs-slide: 32px; /* split blocks, from the inline start (20px below 768px) */
	--vs-stagger: 60ms; /* max 5 steps = 300ms */
	--vs-zoom: 1.04;
	--vs-press: 0.97;
	--vs-img-placeholder: var(--wp--preset--color--bg-alt);
	--vs-start: 1; /* Inline-start sign: +1 in RTL (the start is on the right), -1 in LTR. */
}

[dir="ltr"] {
	--vs-start: -1;
}

@media (max-width: 767px) {
	:root {
		--vs-rise: 16px;
		--vs-slide: 20px;
	}
}

/* Base */

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

body {
	margin: 0;
	background: var(--vs-bg);
	color: var(--vs-dark-text);
	font-family: var(--wp--preset--font-family--tajawal);
	font-size: 16px;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--vs-primary);
}

:focus-visible {
	/* A transparent outline is invisible normally but becomes a real outline in forced-colors mode,
	   where box-shadow is removed. */
	outline: 2px solid transparent;
	outline-offset: 2px;
	box-shadow: var(--vs-focus);
	border-radius: 4px;
}

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

.vs-skip-link {
	position: absolute;
	inset-block-start: -100px;
	inset-inline-start: 16px;
	z-index: 1000;
	padding: 12px 16px;
	background: var(--vs-primary);
	color: var(--vs-surface);
	font-weight: 700;
	border-radius: 0 0 12px 12px;
	text-decoration: none;
}

.vs-skip-link:focus {
	inset-block-start: var(--wp-admin--admin-bar--height, 0px);
}

.vs-icon {
	display: block;
	width: 24px;
	height: 24px;
	fill: currentColor;
	flex: none;
}

.vs-icon--flip {
	transform: scaleX(-1);
}

.vs-container {
	width: var(--vs-container);
	margin-inline: auto;
}

.vs-main:focus,
.vs-main:focus-visible {
	outline: none;
	box-shadow: none;
}

/* Plain fallback page (until each designed template exists). */

.vs-main--plain {
	padding-block: 140px 96px;
}

.vs-plain__title {
	margin: 0 0 24px;
	color: var(--vs-primary-text);
	font-size: var(--wp--preset--font-size--48, 40px); /* The preset is not defined on plain pages: 16 px without the fallback (P1A-FE-13). */
	line-height: 1.3;
}

.vs-plain__content {
	max-width: 760px;
	font-size: 18px;
	line-height: 1.6;
}

.vs-text-secondary {
	color: var(--vs-secondary-text);
}

/* Buttons and links */

.vs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 45px;
	padding: 14px 20px;
	border: 0; /* Figma strokes are inside the box: drawn as inset shadows so they add no width. */
	border-radius: var(--wp--custom--radius-md);
	font: 700 14px/1 var(--wp--preset--font-family--tajawal);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--vs-dur-fast) var(--vs-ease-std), color var(--vs-dur-fast) var(--vs-ease-std), scale var(--vs-dur-press) var(--vs-ease-std);
}

.vs-btn--primary {
	background: var(--vs-primary);
	color: var(--vs-surface);
}

@media (hover: hover) {
	.vs-btn--primary:hover {
		background: color-mix(in srgb, var(--vs-primary) 92%, #000);
	}
}

.vs-btn--secondary {
	background: var(--vs-bg);
	box-shadow: inset 0 0 0 1.5px var(--vs-primary);
	color: var(--vs-primary);
}

.vs-btn--secondary:focus-visible {
	box-shadow: inset 0 0 0 1.5px var(--vs-primary), var(--vs-focus);
}

/* Forced colors (Windows high contrast) drop backgrounds and shadows: give controls and surfaces a
   system-colored edge, and make focus an unmistakable outline. */
@media (forced-colors: active) {
	.vs-btn,
	.vs-arrow,
	.vs-chip.is-active,
	.vs-chip[aria-pressed="true"] {
		outline: 1px solid ButtonText;
		outline-offset: -1px;
	}

	.vs-arrow:disabled {
		outline-color: GrayText;
	}

	.vs-input-group__submit {
		border-inline-start: 1px solid ButtonText;
	}

	.vs-header__bar {
		outline: 1px solid CanvasText;
	}

	:focus-visible,
	.vs-btn:focus-visible,
	.vs-arrow:focus-visible,
	.vs-chip:focus-visible {
		outline: 2px solid Highlight;
		outline-offset: 2px;
	}
}

@media (hover: hover) {
	.vs-btn--secondary:hover {
		background: color-mix(in srgb, var(--vs-primary) 8%, var(--vs-bg));
	}
}

.vs-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 20px;
	border-radius: var(--wp--custom--radius-md);
	color: var(--vs-primary);
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	text-decoration: none;
}

@media (hover: hover) {
	.vs-link-arrow:hover {
		text-decoration: underline;
		text-underline-offset: 6px;
	}
}

.vs-arrow {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--vs-primary);
	color: var(--vs-surface);
	cursor: pointer;
}

.vs-arrow .vs-icon {
	width: 20px;
	height: 20px;
}

.vs-arrow:disabled {
	background: var(--wp--custom--control-disabled);
	cursor: default;
}

.vs-chip {
	padding: 12px 16px;
	border: 0;
	border-radius: 99px;
	background: transparent;
	color: var(--vs-primary);
	font: 500 16px/19px var(--wp--preset--font-family--tajawal); /* Tajawal natural line height, as in Figma. */
	cursor: pointer;
}

.vs-chip.is-active,
.vs-chip[aria-pressed="true"] {
	padding: 8px 16px;
	background: rgba(185, 167, 120, 0.4);
	font-weight: 700;
	outline: 2px solid var(--vs-primary); /* Decision G19 B: the pill alone is ≈ 1.3:1 against the page. */
	outline-offset: -2px;
}

.vs-tag-glass {
	display: inline-flex;
	padding: 6px 16px;
	border-radius: 99px;
	background: rgba(0, 0, 0, 0.3);
	color: var(--vs-surface);
	font-weight: 700;
	position: relative;
	font-size: 16px;
	line-height: 19px;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

/* 1 px inside stroke, white 60% fading to transparent (Figma 103:1746 gradient stroke). */
.vs-tag-glass:not(.vs-tag-glass--light)::before {
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: linear-gradient(211deg, rgba(255, 255, 255, 0.6) -30%, rgba(255, 255, 255, 0) 127%);
	content: "";
	pointer-events: none;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.vs-tag-glass--light {
	padding: 6px 16px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.37);
	color: var(--vs-dark-text);
	font-weight: 500;
	font-size: 12px;
	line-height: 14px;
	-webkit-backdrop-filter: blur(9.6px);
	backdrop-filter: blur(9.6px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* «صورة أرشيفية» on an archive photo (DEZ-FE-1): printed by vs_image() right after the image, in the style of
   the S5 «صورة تخيلية» caption (white on dark green, ≥ 8:1 on any photo). It sits in a lower corner of the
   image's box; boxes that have no position get one (zero specificity, so a box's own position wins), and a
   section moves it where the corner holds a title or tag. */
.vs-archive-tag {
	position: absolute;
	z-index: 1;
	inset-block-end: 12px;
	inset-inline-start: 12px;
	padding: 4px 12px;
	border-radius: var(--wp--custom--radius-pill);
	background: rgba(0, 38, 35, 0.8);
	color: var(--vs-surface);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	pointer-events: none;
}

:where(:has(> .vs-archive-tag)) {
	position: relative;
}

/* Form primitives */

.vs-label {
	display: block;
	margin-block-end: 6px;
	color: var(--vs-dark-text);
	font-weight: 500;
}

.vs-input {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px; /* 1 + 11 + 24 + 11 + 1 = 48, as in Figma. */
	border: 1px solid var(--wp--custom--input-border);
	border-radius: var(--wp--custom--radius-sm);
	background: transparent;
	color: var(--vs-dark-text);
	font: 500 16px/24px var(--wp--preset--font-family--tajawal);
}

.vs-input::placeholder {
	color: var(--wp--custom--input-border);
	opacity: 1;
}

.vs-input:focus-visible {
	border-color: var(--vs-primary);
	box-shadow: none;
	outline: 2px solid var(--vs-primary);
	outline-offset: 1px;
}

.vs-input-group {
	display: flex;
	overflow: hidden;
	border: 1px solid var(--wp--custom--input-border);
	border-radius: var(--wp--custom--radius-sm);
}

.vs-input-group .vs-input {
	min-height: 46px;
	border: 0;
	border-radius: 0;
}

.vs-input-group:focus-within {
	outline: 2px solid var(--vs-primary);
	outline-offset: 1px;
}

.vs-input-group .vs-input:focus-visible {
	outline: none;
}

.vs-input-group__submit {
	flex: none;
	width: 87px;
	border: 0;
	background: var(--vs-primary);
	color: var(--vs-surface);
	font: 700 14px/1 var(--wp--preset--font-family--tajawal);
	cursor: pointer;
}

/* Header — mobile first (375 reference: 343 × 56, top 24) */

.vs-header {
	position: absolute;
	/* --wp-admin--admin-bar--height is set by WordPress only while the admin bar is shown. */
	inset-block-start: calc(24px + var(--wp-admin--admin-bar--height, 0px));
	inset-inline: 0;
	z-index: 100;
}

.vs-header__bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: var(--vs-container);
	min-height: 56px;
	margin-inline: auto;
	padding: 8px 16px;
	border-radius: 12px;
	background: var(--wp--custom--header-surface);
	-webkit-backdrop-filter: blur(40px);
	backdrop-filter: blur(40px);
}

/* 1px gradient border drawn on a masked layer so it does not tint the translucent surface. */
.vs-header__bar::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 1px;
	border-radius: inherit;
	background: var(--wp--custom--header-border);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	pointer-events: none;
}

.vs-logo {
	display: block;
	flex: none;
	line-height: 0;
}

.vs-logo img {
	display: block;
	width: auto;
}

.vs-logo--header img {
	height: 35px;
}

.vs-header__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0; /* Lets the CTA label shorten with an ellipsis instead of pushing the toggle out. */
}

.vs-header__cta {
	min-width: 0;
	max-width: 100%;
	min-height: 40px;
	padding: 11.5px 20px;
	overflow: hidden;
	border-radius: 12px;
	text-overflow: ellipsis; /* Safety net: labels are limited in the settings, but never widen the page. */
}

/* The 14/1 line box is shorter than the hamza on «ابدأ» (G1-FE SH-FE-1): 4 px of block padding, taken back by
   the negative margin, keep the marks inside the clip box while the ellipsis still guards the width. */
.vs-header__cta > span {
	min-width: 0;
	margin-block: -4px;
	padding-block: 4px;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Below the 375 px reference the bar is narrower: tighter button padding keeps the default label «ابدأ رحلتك»
   whole at 320 px (14 px still cut its last letter by a fraction of a pixel, DEZ-FE-12); a longer label ends
   with the ellipsis. */
@media (max-width: 359px) {
	.vs-header__cta {
		padding-inline: 12px;
	}
}

.vs-only-desktop {
	display: none;
}

.vs-nav-toggle {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	/* 44px touch target that occupies the icon's 24px in the layout (design position). */
	margin: -10px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--vs-primary);
	cursor: pointer;
}

@media (hover: hover) {
	.vs-nav-toggle:hover {
		background: rgba(5, 66, 57, 0.08);
	}

	.vs-chip:not(.is-active):not([aria-pressed="true"]):hover {
		background: rgba(185, 167, 120, 0.2);
	}

	.vs-arrow:not(:disabled):hover,
	.vs-input-group__submit:hover {
		background: color-mix(in srgb, var(--vs-primary) 92%, #000);
	}
}

.vs-nav-toggle__close,
.vs-nav-toggle[aria-expanded="true"] .vs-nav-toggle__open {
	display: none;
}

.vs-nav-toggle[aria-expanded="true"] .vs-nav-toggle__close {
	display: block;
}

.vs-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vs-nav__list a {
	display: block;
	padding: 12px 16px;
	color: var(--vs-primary);
	font-size: 16px;
	line-height: 19px;
	text-decoration: none;
	overflow-wrap: anywhere; /* Long labels wrap inside the fixed-width panel instead of widening the page. */
}

@media (hover: hover) {
	.vs-nav__list a:hover {
		text-decoration: underline;
		text-underline-offset: 6px;
	}
}

.vs-nav__list .current-menu-item > a,
.vs-nav__list .current-menu-parent > a,
.vs-nav__list a[aria-current] {
	font-weight: 700;
}

/* Mobile menu panel (1003:10874): 255 wide, opening directly under the toggle, which sits at the
   inline end of the bar (left in RTL). User correction 2026-10-31. */
.vs-nav {
	order: 1;
	width: 100%;
}

.vs-js .vs-nav {
	position: absolute;
	inset-block-start: calc(100% + 8px);
	inset-inline-end: 0;
	display: none;
	width: 255px;
	padding: 10px 16px;
	border-radius: 16px;
	background: var(--wp--custom--menu-surface);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.vs-js .vs-nav.is-open {
	display: block;
}

/* At 200 % zoom or on a short landscape phone the panel is taller than the view: it scrolls inside itself, so
   «التسجيل» and «تسجيل الدخول» stay reachable and focus never lands off-screen (persona study R2 P0-7b, WCAG
   1.4.10). The limit is the view under the bar: its top (24 px), the bar (56 px), the 8 px gap and 16 px spare. */
@media (max-width: 1199px) {
	.vs-js .vs-nav {
		max-height: calc(100vh - 104px - var(--wp-admin--admin-bar--height, 0px));
		max-height: calc(100dvh - 104px - var(--wp-admin--admin-bar--height, 0px));
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}

/* Without JavaScript the menu stays visible inside the bar. */
.vs-header__bar {
	flex-wrap: wrap;
}

.vs-js .vs-header__bar {
	flex-wrap: nowrap;
}

html:not(.vs-js) .vs-nav-toggle {
	display: none;
}

/* Forced colors: the floating menu panel (mobile layout only) keeps an edge over the page. */
@media (forced-colors: active) and (max-width: 1199px) {
	.vs-js .vs-nav {
		outline: 1px solid CanvasText;
	}
}

/* Without JavaScript the expanded menu would cover the page: the header joins the page flow instead. */
@media (max-width: 1199px) {
	html:not(.vs-js) .vs-header {
		position: relative;
		inset-block-start: auto;
		padding-block-start: calc(24px + var(--wp-admin--admin-bar--height, 0px));
	}
}

/* Header — desktop (1440 reference: 1200 × 83, top 30) */

@media (min-width: 1200px) {
	.vs-header {
		inset-block-start: calc(30px + var(--wp-admin--admin-bar--height, 0px));
	}

	.vs-header__bar {
		min-height: 83px;
		padding: 8px 24px;
		border-radius: 20px;
		flex-wrap: nowrap;
	}

	.vs-logo--header img {
		height: 46px;
	}

	.vs-nav,
	.vs-js .vs-nav {
		position: static;
		order: 0;
		display: block;
		width: auto;
		padding: 12px 16px;
		border-radius: 999px;
		background: transparent;
		box-shadow: none;
		/* The Figma pill's 8px blur sits inside the already-blurred bar and is not visible there;
		   nesting backdrop filters in browsers paints a lighter pill instead, so it is omitted. */
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.vs-nav,
	.vs-js .vs-nav {
		min-width: 0; /* Long menu labels wrap the row instead of pushing the CTA off-screen. */
	}

	.vs-nav__list {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}

	.vs-nav__list a {
		padding: 12px;
		white-space: nowrap;
	}

	.vs-header__cta {
		min-height: 45px;
		padding: 14px 20px;
		border-radius: 16px;
	}

	.vs-only-desktop {
		display: inline;
	}

	.vs-only-mobile,
	.vs-nav-toggle {
		display: none;
	}
}

/* Footer — mobile first (375 reference) */

.vs-footer {
	position: relative;
	margin-block-start: 88px;
	padding-block: 0 35px;
}

.vs-logo--footer img {
	height: 72px;
}

.vs-newsletter {
	grid-area: news;
	display: grid;
	gap: 16px;
}

.vs-newsletter__title {
	max-width: 250px;
	margin: 0;
	color: var(--vs-primary);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.4;
}

.vs-newsletter__highlight {
	color: var(--vs-gold);
}

.vs-social {
	grid-area: social;
	display: flex;
	flex-wrap: wrap; /* Five icons fill the designed row; a sixth network wraps instead of overflowing. */
	justify-content: center;
	gap: 16px 27px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vs-social__link {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	color: var(--vs-primary);
}

@media (hover: hover) {
	.vs-social__link:hover,
	.vs-logo:hover {
		opacity: 0.75;
	}
}

.vs-social__link .vs-icon {
	width: 32px;
	height: 32px;
}

.vs-social__link--x {
	width: 28px;
}

.vs-social__link .vs-icon--x {
	width: 28px;
	height: 28px;
}

/* Footer — restructured at the user's request (2026-11-02): brand column (logo, one line about the platform,
   social accounts) and four titled groups («اكتشف», «المحافظات», «روح سوريا», «شارك معنا»), over a bottom bar
   with the copyright line and the legal pages. Phones: two columns, the governorates and the call to action full
   width; from 1024 px the brand sits beside the four groups. */

.vs-footer {
	padding-block: 48px 0;
	border-block-start: 1px solid color-mix(in srgb, var(--vs-primary) 12%, transparent);
	background-color: var(--wp--preset--color--bg-alt);
}

.vs-footer__top,
.vs-footer__bottom {
	width: var(--vs-container);
	margin-inline: auto;
}

.vs-footer__top {
	display: grid;
	gap: 40px;
}

.vs-footer__brand {
	display: grid;
	justify-items: start;
	align-content: start;
	gap: 16px;
}

.vs-footer__about {
	max-width: 320px;
	margin: 0;
	color: var(--vs-secondary-text);
	font-size: 15px;
	line-height: 1.8;
}

.vs-footer .vs-social,
.vs-footer .vs-newsletter {
	grid-area: auto; /* The old named areas would add implicit tracks to the brand column. */
}

.vs-footer .vs-social {
	justify-content: flex-start;
	gap: 12px 20px;
}

.vs-footer .vs-social__link,
.vs-footer .vs-social__link .vs-icon {
	width: 28px;
	height: 28px;
}

.vs-footer__groups {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-flow: row dense;
	gap: 32px 24px;
}

.vs-footer__group--governorates,
.vs-footer__cta {
	grid-column: 1 / -1;
}

.vs-footer__title {
	margin: 0 0 14px;
	color: var(--vs-primary-text);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.vs-footer__list {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vs-footer__list--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 24px;
}

.vs-footer__list a {
	display: inline-block;
	padding-block: 6px; /* 36 px rows: comfortable touch targets. */
	color: var(--vs-primary);
	font-size: 15px;
	line-height: 24px;
	text-decoration: none;
	transition: color var(--vs-dur-fast, 180ms) ease;
}

.vs-footer__list a[aria-current="page"] {
	font-weight: 700;
}

@media (hover: hover) {
	.vs-footer__list a:hover {
		color: var(--wp--custom--gold-text);
		text-decoration: underline;
		text-underline-offset: 6px;
	}
}

.vs-footer__text {
	max-width: 360px;
	margin: 0 0 16px;
	color: var(--vs-secondary-text);
	font-size: 14px;
	line-height: 1.7;
}

.vs-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 24px;
	margin-block-start: 40px;
	padding-block: 16px 24px;
	border-block-start: 1px solid color-mix(in srgb, var(--vs-primary) 15%, transparent);
}

.vs-footer__copy {
	margin: 0;
	color: var(--vs-secondary-text);
	font-size: 14px;
	line-height: 24px;
}

.vs-footer__legal .vs-footer__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
}

.vs-footer__legal .vs-footer__list a {
	font-size: 14px;
}

.vs-footer .vs-newsletter {
	max-width: 320px;
	margin-block-start: 8px;
}

@media (min-width: 768px) {
	.vs-footer__groups {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.vs-footer__group--governorates {
		grid-column: auto;
	}
}

@media (min-width: 1024px) {
	.vs-footer {
		margin-block-start: 120px;
		padding-block-start: 64px;
	}

	.vs-footer__top {
		grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
		column-gap: 64px;
	}

	.vs-footer__groups {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 1.3fr);
		column-gap: 32px;
	}

	.vs-footer__cta {
		grid-column: auto;
	}

	.vs-footer__bottom {
		margin-block-start: 56px;
	}
}


/* Style guide (editors only) */

.vs-styleguide__note {
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--wp--preset--color--bg-alt);
}

.vs-styleguide__section {
	margin-block: 48px;
}

.vs-styleguide__section h2 {
	color: var(--vs-primary-text);
	font-size: 24px;
}

.vs-styleguide__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-block: 16px;
}

.vs-styleguide__dark {
	padding: 16px;
	border-radius: 16px;
	background: #3a3a2e;
}

.vs-styleguide__swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
	padding: 0;
	list-style: none;
}

.vs-styleguide__swatches li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.vs-styleguide__swatch {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}

/* ==========================================================================
   Review round 3 — b3: navigation, linking, search and 404 (R3-D6, R3-D7).
   Not in the Figma frames; built from the existing tokens and components.
   ========================================================================== */

}

/* Way-finding row of the record heroes (PM-2, PM-8): governorate, map and onward links. */

.vs-record-links {
	margin-block-start: 12px;
}

.vs-record-links ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vs-record-links__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: var(--vs-primary);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.vs-record-links--on-dark .vs-record-links__link {
	color: inherit; /* The hero's light text on its dark scrim. */
}

.vs-record-links__icon {
	flex: none;
	width: 18px;
	height: 18px;
}

@media (hover: hover) {
	.vs-record-links__link:hover {
		text-decoration-thickness: 2px;
	}
}

/* With the record heroes' desktop layout from 1024 px (UX-SW-10). */
@media (min-width: 1024px) {
	.vs-record-links__link {
		min-height: 36px;
		font-size: 16px;
	}
}

/* Home hero (and 404) search: the visible «ابحث في» label before the listing choice (UX-P01-3). */

.vs-hero-search__label {
	flex: none;
	color: var(--vs-secondary-text);
	font-size: 12px;
	line-height: 1.4;
	white-space: nowrap;
}

@media (min-width: 768px) {
	.vs-hero-search__label {
		font-size: 14px;
	}
}

/* Listing search results (UX-P05-1/2, PM-10): the keyword chip and the empty state with suggestions. */

.vs-listing__label {
	overflow-wrap: anywhere; /* «نتائج البحث عن …» with a long keyword (up to 80 characters). */
}

.vs-listing__query {
	margin: 8px 0 0;
}

.vs-query-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	min-height: 40px;
	padding: 8px 16px;
	border-radius: var(--wp--custom--radius-pill);
	background: color-mix(in srgb, var(--vs-gold-soft) 40%, transparent);
	outline: 2px solid var(--vs-primary);
	outline-offset: -2px;
	color: var(--vs-primary);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.vs-query-chip__icon {
	flex: none;
	width: 16px;
	height: 16px;
}

@media (hover: hover) {
	.vs-query-chip:hover {
		background: color-mix(in srgb, var(--vs-gold-soft) 60%, transparent);
	}
}

.vs-listing__empty--suggest {
	gap: 16px;
	padding: 24px;
	border-radius: var(--wp--custom--radius-lg);
	background: var(--vs-surface);
}

.vs-listing__empty-title {
	color: var(--vs-primary-text);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.vs-listing__suggest {
	display: grid;
	justify-items: start;
	gap: 12px;
	min-width: 0;
	max-width: 100%;
}

.vs-listing__suggest-other {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	max-width: 100%;
	margin: 0;
}

.vs-listing__suggest-other .vs-btn {
	max-width: 100%;
	line-height: 1.3;
	white-space: normal; /* A long keyword wraps inside the button. */
	overflow-wrap: anywhere;
	text-align: center;
}

.vs-listing__suggest-count {
	color: var(--vs-secondary-text);
	font-size: 14px;
}

.vs-listing__suggest-title {
	margin: 8px 0 0;
	color: var(--vs-primary-text);
	font-size: 16px;
	font-weight: 700;
}

.vs-listing__suggest-govs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vs-listing__suggest-govs .vs-btn {
	min-height: 44px;
	padding: 12px 16px;
}

.vs-listing__suggest-place {
	margin: 8px 0 0;
	color: var(--vs-secondary-text);
}

.vs-listing__suggest-place a {
	font-weight: 700;
}

/* Article: the way back to the blog and its category (PM-2). */

.vs-article-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0 24px;
	margin: 48px 0 0;
	padding: 16px 0 0;
	border-block-start: 1px solid color-mix(in srgb, var(--vs-primary) 20%, transparent);
	list-style: none;
}

.vs-article-nav .vs-link-arrow {
	padding-inline: 0;
	line-height: 1.4;
}

/* 404 (UX-SW-2, PM-12): heading, one sentence, the hero search and onward links. */

.vs-404 {
	position: relative;
	padding-block: calc(132px + var(--wp-admin--admin-bar--height, 0px)) 24px;
}

.vs-404__band {
	position: absolute;
	inset: 0 0 auto;
	z-index: -1;
	height: 258px;
	background: url("../img/governorates/damascus-band.webp") center top / auto 100% repeat-x;
	opacity: 0.3;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(#000 40%, transparent); /* Fades out instead of ending in a hard line. */
	mask-image: linear-gradient(#000 40%, transparent);
}

.vs-404__wrap {
	display: grid;
	justify-items: center;
	gap: 16px;
	text-align: center;
}

.vs-404__code {
	margin: 0;
	color: var(--wp--custom--gold-strong);
	font-size: 64px;
	font-weight: 800;
	line-height: 1;
}

.vs-404__title {
	margin: 0;
	color: var(--vs-primary-text);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.3;
}

.vs-404__text {
	max-width: 560px;
	margin: 0;
	color: var(--vs-secondary-text);
	font-size: 16px;
	line-height: 1.6;
	text-wrap: balance;
}

.vs-404 .vs-hero-search {
	width: min(560px, 100%);
	order: 0; /* home.css moves the hero form after the photo. */
	margin-block-start: 8px;
	text-align: start;
}

.vs-404__links ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.vs-404 .vs-hero-search {
		width: min(721px, 100%);
	}
}

/* Desktop sizes from 1024 px, as the home hero search it reuses (UX-SW-10). */
@media (min-width: 1024px) {
	.vs-404 {
		padding-block-start: calc(161px + var(--wp-admin--admin-bar--height, 0px));
	}

	.vs-404__code {
		font-size: 96px;
	}

	.vs-404__title {
		font-size: 48px;
	}

	.vs-404__text {
		font-size: 18px;
	}

	.vs-404 .vs-hero-search {
		margin-block-start: 16px;
	}
}

/* ------------------------------------------------------------------------------------------------------------------
 * 2026-11-03 — likes and saves (Docs/pages/P29-likes-and-saves.md, owner request). The card «حفظ» button
 * (parts/cards/save.php), the detail pages' «أعجبني» and «حفظ» (parts/saves/actions.php) and the polite notice
 * (vs_saves_footer()). The heart is the design's «favourite» icon (1237:31251, 1237:31262); the bookmark is drawn
 * locally in the same stroke style (the design has none).
 * ---------------------------------------------------------------------------------------------------------------- */

.vs-icon--bookmark {
	fill: none;
}

[aria-pressed="true"] > .vs-icon--bookmark {
	fill: currentColor;
}

/* The card button: a 44 px round target over the photo, outside the card's link. */
.vs-save {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--vs-primary);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
	cursor: pointer;
	pointer-events: auto;
	transition: background-color var(--vs-dur-fast) var(--vs-ease-std), color var(--vs-dur-fast) var(--vs-ease-std);
}

.vs-save .vs-icon {
	width: 22px;
	height: 22px;
}

.vs-save[aria-pressed="true"] {
	background: var(--vs-primary);
	color: var(--vs-surface);
}

.vs-save:focus-visible {
	outline: 2px solid transparent;
	box-shadow: var(--vs-focus);
}

.vs-save[aria-busy="true"] {
	cursor: progress;
	opacity: 0.7;
}

@media (hover: hover) {
	.vs-save:hover {
		background: var(--vs-surface);
	}

	.vs-save[aria-pressed="true"]:hover {
		background: var(--vs-primary-text);
	}
}

/* A box over the card's photo (no pointer events of its own), so the button keeps to the photo at every width. */
.vs-save-spot {
	position: absolute;
	z-index: 2;
	pointer-events: none;
}

.vs-place-card,
.vs-article-card,
.vs-activity-card {
	position: relative;
}

/* Place cards (destination, event, hotel, restaurant): the photo 16 px inside the card, 3 : 2; the button at its
   lower inline end (an archive mark is at the lower start). */
.vs-place-card > .vs-save-spot {
	inset-block-start: 16px;
	inset-inline: 16px;
	aspect-ratio: 3 / 2;
}

.vs-place-card > .vs-save-spot > .vs-save {
	inset-block-end: 8px;
	inset-inline-end: 8px;
}

/* Event place cards (SAV-FE-1): the date badge runs down the photo's inline end at every width, and the «قريباً»
   ribbon hangs from the upper start, so the button takes the free lower start corner; an archive mark moves beside it. */
.vs-place-card--event > .vs-save-spot > .vs-save {
	inset-inline-end: auto;
	inset-inline-start: 8px;
}

.vs-place-card--event:has(> .vs-save-spot) .vs-place-card__media > .vs-archive-tag {
	inset-inline-start: 64px;
}

/* Activity and destination pills: halfway down the inline end, clear of the type tag, the badge and the title. */
.vs-activity-card > .vs-save-spot {
	inset: 0;
}

.vs-activity-card > .vs-save-spot > .vs-save {
	inset-block-start: calc(50% - 22px);
	inset-inline-end: 8px;
}

/* Article cards: the photo is the top of the card; the upper inline end (the place label is at the start). */
.vs-article-card > .vs-save-spot {
	inset-block-start: 0;
	inset-inline: 0;
}

.vs-article-card > .vs-save-spot > .vs-save {
	inset-block-start: 12px;
	inset-inline-end: 12px;
}

/* Cards with a stretched title link (P07 events, P09 hotels, P16 blog): on the photo's upper inline end, above the link. */
.vs-ev-card__media > .vs-save {
	z-index: 4;
	inset-block-start: 12px;
	inset-inline-end: 12px;
}

/* Below 1024 px a status pill (ended, cancelled) is at the photo's upper end with the button: it moves beside it.
   From 1024 px events.css puts the pill at the upper start, opposite the button, so the P07 layout is left as it is
   (SAV-FE-2). */
@media (max-width: 1023px) {
	.vs-ev-card__media:has(> .vs-save) > .vs-ev-card__state {
		inset-block-start: 20px;
		inset-inline-end: 64px;
	}
}

.vs-ho-card > .vs-save,
.vs-blog-card > .vs-save {
	inset-block-start: 28px;
	inset-inline-end: 28px;
}

/* The return point of a press or a sign-in (#vs-item-{post}, a button): shown in the middle of the screen, so the
   card's photo and title above it stay in view. */
[id^="vs-item-"] {
	scroll-margin-block-start: 40vh;
}

/* One focus ring: the button's, not the card's as well. */
.vs-ho-card:has(.vs-save:focus-visible) {
	box-shadow: none;
}

@media (min-width: 1024px) {
	.vs-article-card > .vs-save-spot > .vs-save {
		inset-block-start: 24px;
		inset-inline-end: 24px;
	}
}

/* The detail pages: «أعجبني» (with the public count from 1) and «حفظ» under the title. */
.vs-saves-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-block: 16px 12px;
}

.vs-saves-bar__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 8px 18px;
	border: 1px solid currentColor;
	border-radius: var(--wp--custom--radius-pill, 999px);
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 14px; /* The site's button language (.vs-btn, the design's pill CTA 1237:31245): Bold 14 (SAV-FE-11). */
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background-color var(--vs-dur-fast) var(--vs-ease-std), color var(--vs-dur-fast) var(--vs-ease-std);
}

/* The label's line box centred on the icon: Tajawal's ascent sits high, so the box is nudged to the optical centre. */
.vs-saves-bar__label {
	display: block;
	padding-block-start: 2px;
}

.vs-saves-bar__btn .vs-icon {
	flex: none;
	width: 24px;
	height: 24px;
}

.vs-saves-bar__btn:focus-visible {
	outline: 2px solid transparent;
	box-shadow: var(--vs-focus);
}

.vs-saves-bar__btn[aria-busy="true"] {
	cursor: progress;
	opacity: 0.7;
}

.vs-saves-bar__on,
.vs-saves-bar__btn[aria-pressed="true"] > .vs-saves-bar__off {
	display: none;
}

/* Saved, the label reads «محفوظ» (committee P2, UX F13): one of the two words is shown, and it is the button's name.
   Only the save button has two words: «أعجبني» has one label, which stays when pressed (persona study R2 P0-7a). */
.vs-saves-bar__label--on,
.vs-saves-bar__btn--save[aria-pressed="true"] > .vs-saves-bar__label:not(.vs-saves-bar__label--on) {
	display: none;
}

.vs-saves-bar__btn[aria-pressed="true"] > .vs-saves-bar__label--on {
	display: inline;
}

/* The pressed heart in the design's own red (P08 1237:31283, #E03B3B): 4.3 : 1 on the white pill and on the light
   page, so above 3 : 1 for a graphic (SAV-FE-11). */
.vs-saves-bar__btn[aria-pressed="true"] > .vs-saves-bar__on {
	display: block;
	color: #e03b3b;
}

.vs-saves-bar__count {
	min-width: 1ch;
	margin-inline-start: -4px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.vs-saves-bar__count[hidden] {
	display: none;
}

/* On a photo hero: white on the hero's dark layer; pressed, a white pill. */
.vs-saves-bar--dark {
	color: var(--vs-surface);
}

.vs-saves-bar--dark .vs-saves-bar__btn {
	border-color: rgba(255, 255, 255, 0.6);
	background: rgba(0, 0, 0, 0.28);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.vs-saves-bar--dark .vs-saves-bar__btn[aria-pressed="true"] {
	border-color: var(--vs-surface);
	background: var(--vs-surface);
	color: var(--vs-primary-text);
}

/* The focus ring on a photo (SAV-FE-8): dark against the white pill, white against the photo, both 2 px. */
.vs-saves-bar--dark .vs-saves-bar__btn:focus-visible {
	box-shadow: 0 0 0 2px var(--vs-primary-text), 0 0 0 4px var(--vs-surface);
}

/* On a light page (restaurant, article): the Primary outline; «حفظ» pressed fills it. */
.vs-saves-bar--light {
	color: var(--vs-primary-text);
}

.vs-saves-bar--light .vs-saves-bar__btn {
	color: var(--vs-primary);
}

.vs-saves-bar--light .vs-saves-bar__btn--save[aria-pressed="true"] {
	background: var(--vs-primary);
	color: var(--vs-surface);
}

.vs-saves-bar--light .vs-saves-bar__btn--like[aria-pressed="true"] {
	border-color: #e03b3b;
	background: rgba(224, 59, 59, 0.08);
}

@media (hover: hover) {
	.vs-saves-bar--dark .vs-saves-bar__btn:not([aria-pressed="true"]):hover {
		background: rgba(0, 0, 0, 0.45);
	}

	.vs-saves-bar--light .vs-saves-bar__btn:not([aria-pressed="true"]):hover {
		background: rgba(20, 88, 80, 0.08);
	}
}

/* The shared form has no content of its own (the buttons point to it). */
.vs-saves-form {
	display: contents;
}

/* The polite notice: off screen (still a live region) until it has a message, then a short-lived toast. The notice
   of a reload (no JavaScript, .is-static) stays while it has focus and fades only 10 s after the visitor moves on;
   screen readers also hear it at the pressed item (SAV-FE-7). */
.vs-saves-toast {
	position: fixed;
	inset-block-end: 16px;
	inset-inline: 16px;
	z-index: 1000;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.vs-saves-toast.is-shown {
	width: auto;
	max-width: 420px;
	height: auto;
	margin: 0 auto;
	padding: 12px 20px;
	overflow: visible;
	clip-path: none;
	border-radius: 12px;
	background: var(--vs-primary-text);
	color: var(--vs-surface);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
	white-space: normal;
	animation: vs-saves-toast 6s var(--vs-ease-std) forwards;
	pointer-events: none;
}

.vs-saves-toast.is-static {
	animation-duration: 10s;
}

.vs-saves-toast.is-static:focus {
	outline: 2px solid transparent;
	box-shadow: var(--vs-focus), 0 6px 20px rgba(0, 0, 0, 0.25);
	animation: none;
}

.vs-saves-toast.is-error {
	background: #8c1d18;
}

/* A notice with a next step (committee P2, UX F13): «عرض المحفوظات» or «تراجع». It can be reached and pressed, stays
   longer, and pauses while the pointer or the focus is on it. */
.vs-saves-toast.has-action {
	animation-duration: 12s;
	pointer-events: auto;
}

.vs-saves-toast.has-action:hover,
.vs-saves-toast.has-action:focus-within {
	animation-play-state: paused;
}

.vs-saves-toast__action {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-inline-start: 8px;
	padding: 0 12px;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.vs-saves-toast__action:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.vs-acct__notice .vs-saves-toast__action {
	min-height: 36px;
	color: var(--vs-primary);
}

@keyframes vs-saves-toast {
	0%,
	85% {
		opacity: 1;
	}

	100% {
		opacity: 0;
		visibility: hidden;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vs-saves-toast.is-shown {
		animation-timing-function: steps(1, end);
	}
}

@media (forced-colors: active) {
	.vs-save,
	.vs-saves-toast.is-shown {
		outline: 1px solid CanvasText;
	}

	.vs-save[aria-pressed="true"],
	.vs-saves-bar__btn[aria-pressed="true"] {
		outline: 3px solid Highlight;
	}
}

/* Ways onward from a listing with nothing public yet (parts/listing/onward.php, review P02-FE-2). */
.vs-listing__onward {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.vs-blog-bare {
	padding-block: 8px 48px;
}

/* «صحّح معلومة» on any record page (parts/record/trust-links.php, review P1A-FE-14); destination.css repeats it. */
.vs-record-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 8px 0 0;
	font-size: 14px;
}

.vs-record-trust a {
	color: var(--vs-primary-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Pages that end with the links (governorate, shop, article; review P1B-FE-1). */
.vs-gov-trust {
	padding-block: 32px 48px;
}

.vs-shop .vs-rest-trust {
	padding-block: 32px 48px;
}

.vs-article-trust {
	margin-block: 32px 0;
}

/* Plain pages (privacy, guidelines, «كيف نُعِدّ المعلومات»): section headings stay below the page title on phones (review P1A-FE-13). */
.vs-plain__content h2 {
	margin: 32px 0 12px;
	color: var(--vs-primary-text);
	font-size: 22px;
	line-height: 1.4;
}

.vs-plain__content .vs-page-updated {
	color: var(--vs-secondary-text);
	font-size: 14px;
}

@media (max-width: 767px) {
	.vs-plain__title {
		font-size: 30px;
	}

	.vs-plain__content h2 {
		font-size: 20px;
	}
}

/*
 * Visit-safety notice at the top of a place page, above its hero (owner request, 2026-11-05; parts/record/safety.php):
 * red for «يُنصح بتأجيل الزيارة», amber for «يُنصح بالحذر». Contrast on the tint: body text 9.4:1 (red) and 8.6:1 (amber);
 * the labels 5.7:1 and 8.6:1 (review SAF-FE-1).
 *
 * The notice clears the floating header (bottom edge 80 px, 113 px from 1200 px; the admin bar already shifts the
 * page). The hero after it is pulled up by the header height, so the room each hero keeps for the header lies
 * behind the notice, and the hero text moves down only by the notice itself (review SAF-FE-2).
 */
.vs-safety-wrap {
	margin-block: 96px 16px;
	position: relative;
	z-index: 5;
}

.vs-safety-wrap + * {
	margin-block-start: -80px;
}

@media (min-width: 1200px) {
	.vs-safety-wrap {
		margin-block: 137px 24px;
	}

	.vs-safety-wrap + * {
		margin-block-start: -113px;
	}
}

/* Without JavaScript the header joins the page flow below 1200 px (see the header rules). */
@media (max-width: 1199px) {
	html:not(.vs-js) .vs-safety-wrap {
		margin-block-start: 16px;
	}

	html:not(.vs-js) .vs-safety-wrap + * {
		margin-block-start: 0;
	}
}

.vs-safety {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 20px;
	padding-inline-start: 26px;
	border: 1px solid var(--vs-safety-line);
	border-radius: 12px;
	/* The start bar as an inset shadow (on the right in RTL): a thick start border with round corners tapers (SAF-FE-14). */
	box-shadow: inset -6px 0 0 var(--vs-safety-line);
	background: var(--vs-safety-tint);
	color: var(--vs-safety-ink);
	font-size: 1rem;
	line-height: 1.6;
}

.vs-safety--unsafe {
	--vs-safety-line: #b3261e;
	--vs-safety-label: #b3261e;
	--vs-safety-tint: #fdeceb;
	--vs-safety-ink: #7a1610;
}

.vs-safety--caution {
	--vs-safety-line: #c26a00;
	--vs-safety-label: #6b3a00;
	--vs-safety-tint: #fff3e0;
	--vs-safety-ink: #6b3a00;
}

.vs-safety__icon {
	flex: none;
	color: var(--vs-safety-line);
	margin-block-start: 2px;
}

.vs-safety__title {
	margin: 0;
	color: inherit;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.5;
}

.vs-safety__label {
	color: var(--vs-safety-label);
}

.vs-safety__reason,
.vs-safety__date {
	margin: 6px 0 0;
}

.vs-safety__date {
	font-size: 0.875rem;
}

@media (max-width: 767px) {
	.vs-safety {
		padding: 14px 16px;
		padding-inline-start: 22px;
		gap: 10px;
	}

	.vs-safety__title {
		font-size: 1rem;
	}
}

@media (forced-colors: active) {
	.vs-safety {
		border-inline-start: 6px solid CanvasText;
	}
}

/* Print: a plain page (/terms/, /privacy/, the guides…) prints its text without the site chrome (review F16-02). */
@media print {
	body:has(.vs-main--plain) .vs-header,
	body:has(.vs-main--plain) .vs-footer,
	body:has(.vs-main--plain) .vs-skip-link,
	body:has(.vs-main--plain) .vs-flash {
		display: none !important;
	}

	.vs-main--plain {
		padding-block: 0;
	}
}

@media print {
	.vs-safety {
		border-color: #000;
		box-shadow: none;
		background: none;
		color: #000;
	}
}

/*
 * Safety tag on cards, search results and «أماكن قريبة» (owner, 2026-11-05; vs_safety_tag()): under the title, in the
 * card's flow, a solid pill that reads on a photo and on a plain card alike, with a white ring. White on red 7.6:1;
 * dark brown on amber 7.4:1 (review SAFTAG-FE-8: amber, as the page notice, and unlike the red). Clicks pass through
 * it to the card's link (SAFTAG-FE-6); it wraps in a very narrow card (SAFTAG-FE-12).
 */
.vs-safety-tag {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	inline-size: fit-content;
	max-inline-size: 100%;
	margin-block: 6px 0;
	padding: 3px 10px;
	border-radius: 999px;
	box-shadow: 0 0 0 2px #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.4;
	pointer-events: none;
}

.vs-safety-tag--unsafe {
	background: #a1221a;
	color: #fff;
}

.vs-safety-tag--caution {
	background: #f2a516;
	color: #3a2200;
}

.vs-safety-tag__icon {
	flex: none;
}

/* Pill cards (home, الوجهات, الأنشطة, search): centred under the title, or under the governorate line, smaller, and
   taking most of its room from the margin under them, so the title rises by about 10–14 px only (SAFTAG-FE-1). */
.vs-activity-card .vs-safety-tag {
	order: 3;
	align-self: center;
	margin: -26px 12px 12px;
	padding: 2px 8px;
	font-size: 0.75rem;
}

.vs-listing .vs-activity-card .vs-safety-tag {
	margin: 0 12px 14px;
}

.vs-listing .vs-activity-card__title:has(+ .vs-safety-tag),
.vs-listing .vs-activity-card__place:has(+ .vs-safety-tag) {
	margin-block-end: 4px;
}

/* Below 360 px the governorate line is hidden and the title keeps its distance to the bottom: the tag takes it. */
@media (max-width: 359px) {
	.vs-listing .vs-activity-card__title:has(+ .vs-activity-card__place + .vs-safety-tag) {
		margin-block-end: 4px;
	}
}

/* Place cards in rows and carousels: close to the title, which keeps room for two lines (SAFTAG-FE-4). */
.vs-place-card .vs-safety-tag {
	margin-block-start: -8px;
}

/* «أماكن قريبة»: in line with the title and text (SAFTAG-FE-2). */
.vs-near-card .vs-safety-tag {
	margin: 2px 12px 8px;
}

/* Governorate highlights: at the foot of the circle, under the name (SAFTAG-FE-3). */
.vs-gov-hl .vs-safety-tag {
	grid-area: 1 / 1;
	align-self: end;
	justify-self: center;
	margin-block-end: 9%;
}

@media (forced-colors: active) {
	.vs-safety-tag {
		border: 1px solid CanvasText;
	}
}

@media print {
	.vs-safety-tag {
		border: 1px solid #000;
		background: none;
		color: #000;
		box-shadow: none;
	}
}

/* FR1-FE-15 (2026-11-07): the new visitor-facing classes of fix round 1. An empty listing or section names itself in
   one muted look; the record's evidence line («المصدر» · «آخر تحديث») reads like the «آخر تحديث» lines beside it; a
   missing fact keeps its card, its text muted. */
.vs-empty-section {
	color: var(--vs-secondary-text);
	font-size: 16px;
	line-height: 1.7;
}

.vs-record-evidence {
	margin: 8px 0 0;
	color: var(--vs-secondary-text);
	font-size: 14px;
	line-height: 1.6;
}

.vs-record-evidence a {
	color: var(--vs-primary-text);
	text-underline-offset: 3px;
}

.vs-about-place__missing,
.vs-dest-card--missing p,
.vs-dest-card--missing .vs-dest-card__text {
	color: var(--vs-secondary-text);
}

/* FR1-FE-18 (2026-11-07): tables in the practical guides (the transport guide's «المسافات بين المدن»): a caption, cell
   padding and row rules, so neighbouring cells do not touch and wrapped durations stay readable at 375. */
.vs-plain__content .wp-block-table {
	margin: 16px 0 24px;
	overflow-x: auto;
}

.vs-plain__content .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}

.vs-plain__content .wp-block-table caption {
	margin-block-end: 8px;
	color: var(--vs-secondary-text);
	font-size: 14px;
	text-align: start;
}

.vs-plain__content .wp-block-table th,
.vs-plain__content .wp-block-table td {
	padding: 8px 10px;
	border-block-end: 1px solid rgba(0, 38, 35, 0.12);
	text-align: start;
	vertical-align: top;
}

@media (max-width: 480px) {
	.vs-plain__content .wp-block-table table {
		font-size: 14px;
	}

	.vs-plain__content .wp-block-table th,
	.vs-plain__content .wp-block-table td {
		padding: 8px 6px;
	}
}

/* Footer group «قبل أن تسافر» (audit round 2, BIZ2-01 / C-23, 2026-11-10): five groups from 1200 px; on phones the
   suggest call to action shares a row with the fifth group instead of leaving half a row empty. FR2-FE-01 (2026-11-10):
   at 1024–1199 the brand column leaves the groups about 630 px, where five columns were 80–120 px wide and the links
   wrapped to three lines; that band keeps the three-column grid of 768 instead (three groups, then two). */

.vs-footer__groups--prep .vs-footer__cta {
	grid-column: auto;
}

@media (min-width: 1024px) {
	.vs-footer__groups--prep {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.vs-footer__groups--prep {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
	}
}

/* Header with eight or more top-level menu items (the «قبل أن تسافر» item of audit fix round 2, BIZ2-01, beside the
   seven designed ones; 2026-11-10): tighter item and pill padding from 1200 px, so the row stays single (measured: the
   designed 12 px wrapped the eighth item onto a second row at 1200–1440 and squeezed the button label). Fewer items
   keep the design's spacing; a browser without :has() wraps the row instead. */
@media (min-width: 1200px) {
	.vs-nav:has(> .vs-nav__list > li:nth-child(8)) {
		padding-inline: 8px;
	}

	.vs-nav__list:has(> li:nth-child(8)) a {
		padding-inline: 8px;
	}
}

/* ------------------------------------------------------------------------------------------------------------------
 * Audit round 2, fix round 4 (H6, 2026-11-15).
 * ---------------------------------------------------------------------------------------------------------------- */

/* BIZ2-09: «أعجبني», «حفظ» and «شارك» in one wrapping row under a record's title (parts/saves/actions.php). The share
   box reuses the saves pill (and its tone); share.js shows it only where the device can share or copy. */
.vs-record-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-block: 16px 12px;
}

.vs-record-actions > .vs-saves-bar {
	margin-block: 0;
}

.vs-share[hidden] {
	display: none;
}

.vs-share__done:empty {
	display: none;
}

.vs-share__done {
	font-size: 14px;
	font-weight: 700;
}

/* UX2-08: a listing link whose filter the site does not know (vs_theme_listing_refine(), vs_theme_blog_notice()). */
.vs-listing__notice {
	margin: 8px 0 16px;
	padding: 10px 14px;
	border-inline-start: 3px solid var(--vs-gold);
	background: var(--vs-surface);
	color: var(--vs-dark-text);
	font-size: 15px;
	line-height: 1.5;
}

/* UX2-04: the travel tables (visitsyria-ai shortcodes [vs_visa_table], [vs_entry_points]): cell padding and row rules
   like the guides' tables; at ≤ 480 px 8/6 px and 14 px text, and the visa table's one «آخر تحقق» date (stated once in
   its caption by inc/front-helpers.php) leaves the rows, which were about 117 px tall at 375. */
.vs-travel-table {
	margin: 16px 0 24px;
}

.vs-travel-table table {
	width: 100%;
	margin-block-end: 16px;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}

.vs-travel-table caption {
	margin-block-end: 8px;
	color: var(--vs-secondary-text);
	font-size: 14px;
	text-align: start;
}

.vs-travel-table th,
.vs-travel-table td {
	padding: 8px 10px;
	border-block-end: 1px solid rgba(0, 38, 35, 0.12);
	text-align: start;
	vertical-align: top;
}

@media (max-width: 480px) {
	.vs-travel-table table {
		font-size: 14px;
	}

	.vs-travel-table th,
	.vs-travel-table td {
		padding: 8px 6px;
	}

	.vs-travel-table--one-date th:nth-child(5),
	.vs-travel-table--one-date td:nth-child(5) {
		display: none;
	}
}

/* Responsive embeds (white label, 2026-11-16): core keys its aspect ratios on the body class wp-embed-responsive,
   which the site no longer prints. Same result with aspect-ratio on the embed's iframe. */
.wp-block-embed.wp-has-aspect-ratio iframe {
	width: 100%;
	height: auto;
}
.wp-embed-aspect-21-9 iframe { aspect-ratio: 21 / 9; }
.wp-embed-aspect-18-9 iframe { aspect-ratio: 2 / 1; }
.wp-embed-aspect-16-9 iframe { aspect-ratio: 16 / 9; }
.wp-embed-aspect-4-3 iframe { aspect-ratio: 4 / 3; }
.wp-embed-aspect-1-1 iframe { aspect-ratio: 1; }
.wp-embed-aspect-9-16 iframe { aspect-ratio: 9 / 16; }
.wp-embed-aspect-1-2 iframe { aspect-ratio: 1 / 2; }
