/* Staging visual engineering. No outer Loop, query, data or form behavior rules. */
/* Two separately approved findings: only the six existing white-card headings per Strategy page. */
body.swed-night-visual:is(.page-id-121003,.page-id-121103) .swed-card :is([data-id="0000005d"],[data-id="00000061"],[data-id="00000065"],[data-id="00000069"],[data-id="0000006d"],[data-id="00000071"]) .elementor-heading-title{color:#0b1c3d!important}
/* Final five visual items: only the documented controls/widgets and page pairs. */
body.swed-night-visual.swed-final-public-library .swed-final-sort-control select[data-swed-proxy="sort"]{width:auto!important;max-width:none!important;min-inline-size:12.5em;flex:0 0 auto}
@media(max-width:768px){
	body.swed-night-visual.swed-final-public-library .swed-final-results-toolbar{flex-wrap:wrap;row-gap:10px}
}
body.swed-night-visual:is(.page-id-121010,.page-id-121110,.page-id-121020,.page-id-121120) .swed-closure-embedded-form .elementor-field-type-acceptance.elementor-field-group-field_13 > .elementor-field-label{display:none!important}
body.swed-night-visual:is(.page-id-3,.page-id-16) .swed-privacy-hero .swed-kicker,
body.swed-night-visual:is(.page-id-3,.page-id-16) .swed-privacy-hero .swed-kicker p,
body.swed-night-visual.single-swed_programme :is(.detail-ar-0017,.detail-en-0017),
body.swed-night-visual.single-swed_programme :is(.detail-ar-0017,.detail-en-0017) :is(a,p,span){color:#ffc60b!important}
body.swed-night-visual:is(.page-id-121003,.page-id-121103) .swed-split-image[data-id="00000020"] img{display:block;width:100%!important;height:auto!important;aspect-ratio:1400/933;object-fit:contain!important;object-position:center!important}
body.swed-night-visual:is(.page-id-121021,.page-id-121121) .swed-form-card .elementor-field-group-field_07 .elementor-field-option{display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;align-items:start}
body.swed-night-visual:is(.page-id-121021,.page-id-121121) .swed-form-card .elementor-field-group-field_07 input[type="checkbox"]{width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important;min-height:24px!important;padding:0!important;margin:2px 0 0!important}
body.swed-night-visual:is(.page-id-121021,.page-id-121121) .swed-form-card .elementor-field-group-field_07 .elementor-field-option > label{min-width:0;line-height:1.65;text-align:start}
/* Verified Government delivery-option links sit on dark image-panel buttons. */
body.swed-night-visual:is(.page-id-121010,.page-id-121110) :is(.government-ar-0161,.government-en-0161) :is(.elementor-button,.elementor-button-text){color:#fff!important}
/* Existing Programme sessions empty state must fit its narrow mobile tile. */
@media(max-width:767px){
	body.swed-night-visual.single-swed_programme .swed-v4-detail-sessions .swed-empty-state{padding:12px!important;min-width:0;max-width:100%;box-sizing:border-box}
	body.swed-night-visual.single-swed_programme .swed-v4-detail-sessions .swed-empty-state h2{font-size:20px!important;line-height:1.35!important;overflow-wrap:anywhere}
	body.swed-night-visual.single-swed_programme .swed-v4-detail-sessions .swed-empty-state .swed-discovery-button{display:block!important;width:100%;min-width:0;max-width:100%;height:auto!important;min-height:44px;box-sizing:border-box;padding:10px 6px!important;white-space:normal!important;overflow-wrap:anywhere;font-size:12px!important;line-height:1.35!important;text-align:center}
}
body.swed-night-visual{--swed-night-font:"SWED Manrope",Manrope,Arial,sans-serif}
body.swed-night-visual:is(.swed-night-lang-ar,.swed-v4-ar){--swed-night-font:"SWED Tajawal",Tajawal,Arial,sans-serif}
body.swed-night-visual :is(.swed-site,.swed-v4,.swed-final-library-pilot),
body.swed-night-visual .elementor :is(h1,h2,h3,h4,p,label,input,select,textarea,button,.elementor-heading-title,.elementor-widget-text-editor,.elementor-button,.elementor-icon-list-text){font-family:var(--swed-night-font)!important}

/* Undo the historical artwork crop without changing Media66 or its white plate. */
body.swed-night-visual header .swed-v4-logo.elementor-widget-image :is(a,.elementor-widget-container){display:block;width:100%;height:100%}
body.swed-night-visual header .swed-v4-logo.elementor-widget-image img{
	position:static!important;inset:auto!important;transform:none!important;
	display:block;width:100%!important;height:100%!important;max-width:100%!important;
	object-fit:contain!important;object-position:center!important;
}
body.swed-night-visual header :is(.swed-v4-hdr-en-0008,.swed-v4-hdr-ar-0008){font-family:var(--swed-night-font)!important}
/* These five existing white-header routes cannot inherit white hero-navigation text. */
body.swed-night-visual:is(.page-id-121028,.page-id-121128,.postid-29,.postid-30,.postid-31) header :is(.swed-v4-hdr-en-0008,.swed-v4-hdr-ar-0008) :is(a,span){color:#0b1c3d!important}
body.swed-night-visual:is(.page-id-121028,.page-id-121128,.postid-29,.postid-30,.postid-31) header :is(.swed-v4-hdr-en-0008,.swed-v4-hdr-ar-0008) a:is(:hover,:focus-visible),
body.swed-night-visual:is(.page-id-121028,.page-id-121128,.postid-29,.postid-30,.postid-31) header :is(.swed-v4-hdr-en-0008,.swed-v4-hdr-ar-0008) a:is(:hover,:focus-visible) span{color:#0354bb!important}
body.swed-night-visual header :is(.swed-v4-hdr-en-0002,.swed-v4-hdr-en-0003,.swed-v4-hdr-ar-0002,.swed-v4-hdr-ar-0003){color:#c3cede!important}
body.swed-night-visual header :is(.swed-v4-hdr-en-0007,.swed-v4-hdr-ar-0007){height:64px!important}
/* Elementor already applies the approved padding to the actual link; avoid a second copy on its widget. */
body.swed-night-visual .swed-v4 .elementor-widget-button{padding:0!important}
/* Existing gold native-form submits need the same navy text as gold page CTAs. */
body.swed-night-visual:is(.page-id-121010,.page-id-121110,.page-id-121020,.page-id-121120,.page-id-121022,.page-id-121122) .elementor-form .elementor-button{color:#0b1c3d!important;min-height:48px!important}

/* The public library uses the global overlay header; its former inner nav is gone. */
body.swed-night-visual.swed-final-public-library .swed-final-hero{padding-top:120px!important}
body.swed-night-visual.swed-final-public-library.swed-v4-ar .swed-final-hero{padding-top:124px!important}

/* Shared INNER cards only. Elementor continues to own the outer Loop grid. */
body.swed-night-visual :is(.swed-final-card-bookmark-icon,.swed-final-card-meta-icon) :is(.elementor-icon-wrapper,.elementor-icon){display:flex;align-items:center;justify-content:center;line-height:1}
body.swed-night-visual .swed-final-card-bookmark{display:grid!important;place-items:center;width:28px!important;height:28px!important;min-width:28px!important;padding:0!important}
body.swed-night-visual .swed-final-card-bookmark-icon{width:14px!important;height:14px!important;line-height:1!important}
body.swed-night-visual .swed-final-card-bookmark-icon :is(svg,i){width:14px!important;height:14px!important;font-size:14px!important}
body.swed-night-visual .swed-final-card-meta-icon{flex:0 0 14px!important;width:14px!important;min-width:14px!important}
body.swed-night-visual .swed-final-card-meta-icon :is(svg,i){width:12px!important;height:12px!important;font-size:12px!important}

body.swed-night-visual:is(.page-id-60,.page-id-79) .swed-final-card{display:flex!important;flex-direction:column!important;min-width:0;height:100%;overflow:hidden}
body.swed-night-visual:is(.page-id-60,.page-id-79) .swed-final-card-body{flex:1 1 auto!important;min-width:0;padding:16px!important;gap:9px!important}
body.swed-night-visual:is(.page-id-60,.page-id-79) :is(.swed-final-card-meta-row,.swed-final-card-badge):has(.swed-field-empty){display:none!important}
body.swed-night-visual:is(.page-id-60,.page-id-79) .swed-final-card-meta-row{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;min-height:20px!important}
body.swed-night-visual:is(.page-id-60,.page-id-79) .swed-final-card-meta-value{flex:1 1 auto!important;width:auto!important;min-width:0;font-size:12px;line-height:1.5}
body.swed-night-visual:is(.page-id-60,.page-id-79) .swed-final-card-title .elementor-heading-title{display:block!important;min-height:62px;font-size:16px!important;line-height:1.35!important;font-weight:800;text-wrap:pretty}
body.swed-night-visual.page-id-60 .swed-final-card-title .elementor-heading-title{font-size:17px!important;line-height:1.45!important;letter-spacing:0!important}
body.swed-night-visual:is(.page-id-60,.page-id-79) .swed-final-card-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;align-items:stretch!important;width:100%!important;margin-top:auto!important}
body.swed-night-visual:is(.page-id-60,.page-id-79) .swed-final-card-cta{width:100%!important;min-width:0!important}
body.swed-night-visual .swed-final-card-cta .elementor-button{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px!important;padding:10px 8px!important;font-size:12px!important;line-height:1.25!important;white-space:nowrap}
body.swed-night-visual.swed-night-lang-ar .swed-final-card-cta .elementor-button{font-size:13px!important}
body.swed-night-visual .swed-final-card-cta--gold .elementor-button{background:#ffc60b!important;border-color:#ffc60b!important;color:#0b1c3d!important}
body.swed-night-visual .swed-final-card-cta--ghost .elementor-button{background:#fff!important;border-color:#0b1c3d!important;color:#0b1c3d!important}

/* Restore the existing destination label placement above the approved bottom scrim. */
body.swed-night-visual:is(.page-id-121020,.page-id-121120) :is(
.destinations-en-0048,.destinations-en-0062,.destinations-en-0076,.destinations-en-0090,.destinations-en-0104,.destinations-en-0118,
.destinations-ar-0048,.destinations-ar-0062,.destinations-ar-0076,.destinations-ar-0090,.destinations-ar-0104,.destinations-ar-0118){
	position:absolute!important;top:auto!important;bottom:14px!important;
	left:auto!important;right:auto!important;inset-inline-start:16px!important;inset-inline-end:auto!important;
	display:block!important;width:auto!important;max-width:calc(100% - 32px)!important;z-index:2;
}
body.swed-night-visual:is(.page-id-121020,.page-id-121120) :is(
.destinations-en-0048,.destinations-en-0062,.destinations-en-0076,.destinations-en-0090,.destinations-en-0104,.destinations-en-0118,
.destinations-ar-0048,.destinations-ar-0062,.destinations-ar-0076,.destinations-ar-0090,.destinations-ar-0104,.destinations-ar-0118) :is(.elementor-widget-text-editor,.elementor-heading-title){display:block!important;margin:0!important;color:#fff!important}

/* Keep the existing Strategy photograph and preserve its chart focal point. */
body.swed-night-visual:is(.page-id-121003,.page-id-121103) .swed-hero-image img{object-fit:cover!important;object-position:50% 65%!important}

body.swed-night-visual:is(.page-id-60,.page-id-79) :is(
.home-en-0199,.home-en-0207,.home-en-0215,.home-en-0223,.home-en-0231,.home-en-0239,
.home-ar-0199,.home-ar-0207,.home-ar-0215,.home-ar-0223,.home-ar-0231,.home-ar-0239){
	position:absolute!important;top:auto!important;bottom:12px!important;
	left:auto!important;right:auto!important;inset-inline-start:12px!important;inset-inline-end:auto!important;
	width:auto!important;max-width:calc(100% - 24px)!important;z-index:2;
}

@media(max-width:1023px){
	body.swed-night-visual header :is(.swed-v4-hdr-en-0010,.swed-v4-hdr-ar-0010){height:56px!important}
	/* Empty imported logo plate and non-interactive duplicate icon, not the live menu. */
	body.swed-night-visual:is(.page-id-121020,.page-id-121120) :is(.destinations-en-0010,.destinations-ar-0010,.destinations-enm-0010,.destinations-arm-0010){visibility:hidden!important}
	body.swed-night-visual:is(.page-id-60,.page-id-79) :is(.home-en-0012,.home-ar-0012,.home-enm-0010,.home-arm-0010){visibility:hidden!important}
	body.swed-night-visual:is(.page-id-121022,.page-id-121122) :is(.proposal-en-0010,.proposal-ar-0010,.proposal-enm-0010,.proposal-arm-0010){visibility:hidden!important}
	body.swed-night-visual.single-swed_programme :is(.detail-en-0010,.detail-ar-0010,.detail-enm-0010,.detail-arm-0010){visibility:hidden!important}
	/* Imported mobile mock form labels, not the native form or its real consent. */
	body.swed-night-visual:is(.page-id-121022,.page-id-121122) :is(
	.proposal-enm-0018,.proposal-arm-0018,.proposal-enm-0032,.proposal-arm-0032,
	.proposal-enm-0050,.proposal-arm-0050,.proposal-enm-0066,.proposal-arm-0066,
	.proposal-enm-0096,.proposal-arm-0096){display:none!important}
	body.swed-night-visual.swed-final-public-library .swed-final-hero,
	body.swed-night-visual.swed-final-public-library.swed-v4-ar .swed-final-hero{padding-top:96px!important}
}
@media(max-width:768px){
	/* Bound the existing results wrapper to discovery's padded content box. Loop columns stay untouched. */
	body.swed-night-visual.swed-final-public-library .swed-final-results-layout{width:100%!important;max-width:100%!important;min-width:0}
}
@media(max-width:767px){
	body.swed-night-visual:is(.page-id-60,.page-id-79) .swed-final-card-title .elementor-heading-title{min-height:0}
	body.swed-night-visual:is(.page-id-60,.page-id-79) :is(
	.home-en-0252,.home-en-0257,.home-en-0262,.home-en-0267,.home-en-0272,
	.home-ar-0252,.home-ar-0257,.home-ar-0262,.home-ar-0267,.home-ar-0272){display:grid!important;grid-template-columns:21px minmax(0,1fr) 12px!important;gap:13px!important;align-items:center!important;text-align:start!important;min-height:0!important}
	body.swed-night-visual:is(.page-id-60,.page-id-79) :is(
	.home-en-0253,.home-en-0258,.home-en-0263,.home-en-0268,.home-en-0273,
	.home-ar-0253,.home-ar-0258,.home-ar-0263,.home-ar-0268,.home-ar-0273){width:21px!important;min-width:0!important}
	body.swed-night-visual:is(.page-id-60,.page-id-79) :is(
	.home-enm-0165,.home-enm-0171,.home-enm-0177,.home-enm-0183,.home-enm-0189,
	.home-arm-0165,.home-arm-0171,.home-arm-0177,.home-arm-0183,.home-arm-0189){min-width:0!important;width:auto!important;text-align:start!important}
	body.swed-night-visual:is(.page-id-60,.page-id-79) :is(
	.home-en-0256,.home-en-0261,.home-en-0266,.home-en-0271,.home-en-0276,
	.home-ar-0256,.home-ar-0261,.home-ar-0266,.home-ar-0271,.home-ar-0276){width:12px!important;min-width:0!important}
}

/* Major-photo polish only: existing image-backed text-legibility scrims are preserved,
 * never stacked. Only verified single direct-img widgets qualify; no logo/card/caption/link.
 * A vertical fade is direction-neutral for AR/EN. Image bytes, geometry and controls stay intact.
 */
body.swed-night-visual {
	--swed-photo-fade-hero:linear-gradient(180deg,rgba(11,28,61,0) 0%,rgba(11,28,61,.025) 58%,rgba(11,28,61,.14) 100%);
	--swed-photo-fade-editorial:linear-gradient(180deg,rgba(11,28,61,0) 0%,rgba(11,28,61,.02) 60%,rgba(11,28,61,.10) 100%);
}
body.swed-night-visual :is(.swed-hero-image,.swed-split-image).elementor-widget-image:has(>img:only-child),
body.swed-night-visual.swed-public-family-knowledge-article .swed-dyn-image[data-id="00000004"].elementor-widget-image:has(>img:only-child) {
	position:relative;
	isolation:isolate;
	--swed-photo-fade:var(--swed-photo-fade-editorial);
}
body.swed-night-visual .swed-hero-image.elementor-widget-image:has(>img:only-child) {
	--swed-photo-fade:var(--swed-photo-fade-hero);
}
body.swed-night-visual :is(.swed-hero-image,.swed-split-image).elementor-widget-image:has(>img:only-child)::after,
body.swed-night-visual.swed-public-family-knowledge-article .swed-dyn-image[data-id="00000004"].elementor-widget-image:has(>img:only-child)::after {
	content:"";
	position:absolute;
	inset:0;
	z-index:1;
	border-radius:inherit;
	background:var(--swed-photo-fade);
	pointer-events:none;
}
