/* ==========================================================================
   JAS header (hero) styles. One class on the hero element selects the style:
   jas-hero--soft | jas-hero--navy | jas-hero--split | jas-hero--card | jas-hero--duotone
   (no class = the original striped banner from jas-banner.css)
   ========================================================================== */

/* shared: clean photo, no stripes */
.journal_index.jas-hero[class*="jas-hero--"]::before,
.journal_index.jas-hero[class*="jas-hero--"]::after { content: ""; display: block !important; position: absolute; pointer-events: none; }

/* ---------------------------------------------------------------- A. Soft fade */
body .journal_index.jas-hero.jas-hero--soft { background: #fff !important; }
body .journal_index.jas-hero.jas-hero--soft::before {
	top: 0; bottom: 0; right: 0; left: auto;
	width: 62%;
	background: url('../img/header/jas-theatre.jpg') center 40% / cover no-repeat;
	transform: none;
	opacity: 1;
}
/* eased (smooth-step) white fade: no visible edge where the photo starts */
body .journal_index.jas-hero.jas-hero--soft::after {
	inset: 0;
	background: linear-gradient(90deg,
		#fff 0%, #fff 38%,
		rgba(255,255,255,.97) 41%, rgba(255,255,255,.91) 44%, rgba(255,255,255,.82) 47%,
		rgba(255,255,255,.70) 50%, rgba(255,255,255,.56) 53%, rgba(255,255,255,.42) 56%,
		rgba(255,255,255,.29) 59%, rgba(255,255,255,.18) 62%, rgba(255,255,255,.09) 65%,
		rgba(255,255,255,.03) 68%, rgba(255,255,255,0) 71%);
}

/* ---------------------------------------------------------------- B. Navy overlay (full width photo) */
body .journal_index.jas-hero.jas-hero--navy,
body .journal_index.jas-hero.jas-hero--duotone { background: #061831 !important; border-bottom: 0; }
body .journal_index.jas-hero.jas-hero--navy::before {
	inset: 0; width: auto;
	background: url('../img/header/jas-theatre.jpg') right 40% / cover no-repeat;
	transform: none;
}
body .journal_index.jas-hero.jas-hero--navy::after {
	inset: 0;
	background:
		linear-gradient(90deg, rgba(6,24,49,.96) 0%, rgba(6,24,49,.92) 30%, rgba(10,40,79,.78) 48%,
			rgba(15,61,122,.52) 64%, rgba(15,61,122,.28) 80%, rgba(15,61,122,.18) 100%),
		linear-gradient(0deg, rgba(6,24,49,.35), rgba(6,24,49,0) 40%);
}

/* ---------------------------------------------------------------- E. Duotone (full width, brand colours) */
body .journal_index.jas-hero.jas-hero--duotone::before {
	inset: 0; width: auto;
	background: url('../img/header/jas-theatre.jpg') right 40% / cover no-repeat;
	/* duotone made in the browser: grey photo laid over the navy background */
	filter: grayscale(1) contrast(1.15) brightness(1.05);
	mix-blend-mode: luminosity;
	opacity: .62;
	transform: none;
}
body .journal_index.jas-hero.jas-hero--duotone::after {
	inset: 0;
	background: linear-gradient(90deg, rgba(6,24,49,.92) 0%, rgba(6,24,49,.80) 35%, rgba(6,24,49,.35) 65%, rgba(6,24,49,.05) 100%);
}

/* light text for the dark styles */
body .journal_index.jas-hero--navy .jas-hero__title, body .journal_index.jas-hero--duotone .jas-hero__title { color: #fff !important; }
body .journal_index.jas-hero--navy .jas-hero__tagline, body .journal_index.jas-hero--duotone .jas-hero__tagline { color: rgba(255,255,255,.86) !important; }
body .journal_index.jas-hero--navy .jas-hero__eyebrow, body .journal_index.jas-hero--duotone .jas-hero__eyebrow { color: #8cc4f2 !important; }
body .journal_index.jas-hero--navy .jas-hero__eyebrow::before, body .journal_index.jas-hero--duotone .jas-hero__eyebrow::before { background: #8cc4f2 !important; }
body .journal_index.jas-hero--navy .jas-hero__meta li, body .journal_index.jas-hero--duotone .jas-hero__meta li { background: rgba(255,255,255,.1) !important; border-color: rgba(255,255,255,.25) !important; color: rgba(255,255,255,.75) !important; }
body .journal_index.jas-hero--navy .jas-hero__meta strong, body .journal_index.jas-hero--duotone .jas-hero__meta strong { color: #fff !important; }
body .journal_index.jas-hero--navy .jas-btn--primary, body .journal_index.jas-hero--duotone .jas-btn--primary { background: #fff !important; border-color: #fff !important; color: #061831 !important; }
body .journal_index.jas-hero--navy .jas-btn--primary:hover, body .journal_index.jas-hero--duotone .jas-btn--primary:hover { background: #8cc4f2 !important; border-color: #8cc4f2 !important; }
body .journal_index.jas-hero--navy .jas-btn--ghost, body .journal_index.jas-hero--duotone .jas-btn--ghost { background: transparent !important; border-color: rgba(255,255,255,.55) !important; color: #fff !important; }
body .journal_index.jas-hero--navy .jas-btn--ghost:hover, body .journal_index.jas-hero--duotone .jas-btn--ghost:hover { background: rgba(255,255,255,.12) !important; }

/* ---------------------------------------------------------------- C. Diagonal split */
body .journal_index.jas-hero.jas-hero--split { background: linear-gradient(120deg, #fff 0%, #f3f6fa 100%) !important; }
body .journal_index.jas-hero.jas-hero--split::before,
body .journal_index.jas-hero.jas-hero--split::after { top: 0; bottom: 0; right: 0; left: auto; width: 48%; transform: none; }
body .journal_index.jas-hero.jas-hero--split::before {
	background: url('../img/header/jas-theatre.jpg') center 40% / cover no-repeat;
	clip-path: polygon(19% 0, 100% 0, 100% 100%, 5% 100%);
}
/* brand stripe running parallel to the photo edge (same box, so it lines up at every width) */
body .journal_index.jas-hero.jas-hero--split::after {
	background: linear-gradient(180deg, #4a9ae0, #0f3d7a);
	clip-path: polygon(13.5% 0, 16.5% 0, 2.5% 100%, -0.5% 100%);
}

/* ---------------------------------------------------------------- D. Photo card */
body .journal_index.jas-hero.jas-hero--card {
	background:
		radial-gradient(circle at 85% 20%, rgba(74,154,224,.14), transparent 45%),
		linear-gradient(180deg, #f3f6fa, #fff) !important;
}
body .journal_index.jas-hero.jas-hero--card::before {
	top: 28px; bottom: 28px; right: var(--jas-edge); left: auto;
	width: min(40%, 470px);
	background: url('../img/header/jas-theatre.jpg') center 40% / cover no-repeat;
	border-radius: 18px;
	box-shadow: 0 18px 40px rgba(6,24,49,.22), 0 0 0 6px #fff;
	transform: none;
}
body .journal_index.jas-hero.jas-hero--card::after {
	top: 14px; right: calc(var(--jas-edge) - 14px); left: auto;
	width: 90px; height: 90px; bottom: auto;
	background-image: radial-gradient(#4a9ae0 2px, transparent 2.5px);
	background-size: 14px 14px;
	opacity: .6;
	z-index: 0;
}

/* ---------------------------------------------------------------- right-to-left (Arabic): mirror */
body.rtl .journal_index.jas-hero.jas-hero--soft::before, body[dir="rtl"] .journal_index.jas-hero.jas-hero--soft::before { right: auto; left: 0; transform: scaleX(-1); }
body.rtl .journal_index.jas-hero.jas-hero--soft::after, body[dir="rtl"] .journal_index.jas-hero.jas-hero--soft::after { transform: scaleX(-1); }
body.rtl .journal_index.jas-hero.jas-hero--navy::before, body[dir="rtl"] .journal_index.jas-hero.jas-hero--navy::before,
body.rtl .journal_index.jas-hero.jas-hero--duotone::before, body[dir="rtl"] .journal_index.jas-hero.jas-hero--duotone::before { transform: scaleX(-1); }
body.rtl .journal_index.jas-hero.jas-hero--navy::after, body[dir="rtl"] .journal_index.jas-hero.jas-hero--navy::after,
body.rtl .journal_index.jas-hero.jas-hero--duotone::after, body[dir="rtl"] .journal_index.jas-hero.jas-hero--duotone::after { transform: scaleX(-1); }
body.rtl .journal_index.jas-hero.jas-hero--split::before, body[dir="rtl"] .journal_index.jas-hero.jas-hero--split::before,
body.rtl .journal_index.jas-hero.jas-hero--split::after, body[dir="rtl"] .journal_index.jas-hero.jas-hero--split::after { right: auto; left: 0; transform: scaleX(-1); }
body.rtl .journal_index.jas-hero.jas-hero--card::before, body[dir="rtl"] .journal_index.jas-hero.jas-hero--card::before { right: auto; left: var(--jas-edge); }
body.rtl .journal_index.jas-hero.jas-hero--card::after, body[dir="rtl"] .journal_index.jas-hero.jas-hero--card::after { right: auto; left: calc(var(--jas-edge) - 14px); }

/* ---------------------------------------------------------------- compact header on inner pages: lighter */
body .journal_index.jas-hero--compact.jas-hero--card::before { top: 14px; bottom: 14px; width: min(28%, 320px); }
body .journal_index.jas-hero--compact.jas-hero--card::after { display: none !important; }

/* ---------------------------------------------------------------- tablets and phones */
@media (max-width: 991px) {
	body .journal_index.jas-hero.jas-hero--soft::before { width: 100%; opacity: .5; }
	body .journal_index.jas-hero.jas-hero--soft::after { background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.8)) !important; }
	body .journal_index.jas-hero.jas-hero--split::before,
	body .journal_index.jas-hero.jas-hero--split::after,
	body .journal_index.jas-hero.jas-hero--card::after { display: none !important; }
	body .journal_index.jas-hero.jas-hero--card::before { opacity: 1 !important; position: relative !important; display: block; inset: auto !important; width: auto; height: 180px; margin: 16px 15px 4px; }
	body .journal_index.jas-hero.jas-hero--navy::after,
	body .journal_index.jas-hero.jas-hero--duotone::after { background: linear-gradient(180deg, rgba(6,24,49,.78), rgba(6,24,49,.9)) !important; }
}
