/* Hero presentation — Shared frames and reading layout.
 * Styles inherited appearance controls for all supported content types.
 * Keeps decorative surfaces separate from accessible, wrapping titles.
 * Used by theme rendering and both plugin live preview canvases.
 */
:root {
	--iwut-news-navy-1: #2a4789;
	--iwut-news-navy-2: #1e3672;
	--iwut-news-navy-3: #16295a;
	--iwut-news-navy-4: #101f45;
	--iwut-news-navy-5: #0b1530;
	--iwut-news-turquoise-1: #3fc3ba;
	--iwut-news-turquoise-2: #17a9a1;
	--iwut-news-turquoise-3: #12938c;
	--iwut-news-turquoise-4: #0e7c77;
	--iwut-news-turquoise-5: #0a6a66;
	--iwut-news-gold-1: #eadfc4;
	--iwut-news-gold-2: #d4bc8b;
	--iwut-news-gold-3: #c0a165;
	--iwut-news-gold-4: #a98a4a;
	--iwut-news-gold-5: #6f5826;
}

body.single-iwut_news .iwut-news-single {
	box-sizing: border-box;
	width: min(calc(100% - clamp(24px, 6vw, 112px)), 1760px);
	margin-inline: auto;
	padding-block: 132px clamp(64px, 8vw, 112px);
}

body.single-iwut_course .iwut-course-single {
	box-sizing: border-box;
	width: min(calc(100% - clamp(24px, 6vw, 112px)), 1760px);
	margin-inline: auto;
	padding-block: 132px clamp(64px, 8vw, 112px);
}

body.single-iwut_research .iwut-cpt-single,
body.single-iwut_studlife .iwut-cpt-single,
body.single-iwut_cooperation .iwut-cpt-single {
	box-sizing: border-box;
	width: min(calc(100% - clamp(24px, 6vw, 112px)), 1760px);
	margin-inline: auto;
	padding-block: 132px clamp(64px, 8vw, 112px);
}

.iwut-news-hero {
	--iwut-news-hero-bg: var(--iwut-news-navy-5);
	--iwut-news-hero-fg: #fff;
	--iwut-news-svg-color: var(--iwut-news-turquoise-1);
	position: relative;
	display: grid;
	width: min(var(--iwut-news-hero-width), 100%);
	height: clamp(220px, var(--iwut-news-hero-height), min(720px, 72vh));
	margin-inline: auto;
	overflow: hidden;
	isolation: isolate;
	background: var(--iwut-news-hero-bg);
	color: var(--iwut-news-hero-fg);
}

.iwut-news-hero__template,
.iwut-news-hero__pattern {
	position: absolute;
	inset: -30%;
	z-index: 1;
	display: block;
	background-color: currentColor;
	-webkit-mask-position: center;
	mask-position: center;
	pointer-events: none;
}

.iwut-news-hero__template {
	color: var(--iwut-news-svg-color);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: min(72%, 760px) min(82%, 560px);
	mask-size: min(72%, 760px) min(82%, 560px);
	opacity: calc(var(--iwut-news-svg-opacity, .18) * .55);
}

.iwut-news-hero__pattern {
	mask-position: calc(50% + var(--iwut-news-svg-offset-x, 0%)) calc(50% + var(--iwut-news-svg-offset-y, 0px));
	-webkit-mask-position: calc(50% + var(--iwut-news-svg-offset-x, 0%)) calc(50% + var(--iwut-news-svg-offset-y, 0px));
	color: var(--iwut-news-svg-color);
	-webkit-mask-repeat: repeat;
	mask-repeat: repeat;
	-webkit-mask-size: var(--iwut-news-svg-cell) var(--iwut-news-svg-cell);
	mask-size: var(--iwut-news-svg-cell) var(--iwut-news-svg-cell);
	opacity: var(--iwut-news-svg-opacity, .18);
	transform: rotate(var(--iwut-news-svg-rotation));
}

.iwut-news-hero .iwut-pat-girih-khatim-8star { -webkit-mask-image: url("patterns/girih/girih-khatim-8star.svg"); mask-image: url("patterns/girih/girih-khatim-8star.svg"); }
.iwut-news-hero .iwut-pat-girih-octagon-star-tiling { -webkit-mask-image: url("patterns/girih/girih-octagon-star-tiling.svg"); mask-image: url("patterns/girih/girih-octagon-star-tiling.svg"); }
.iwut-news-hero .iwut-pat-girih-star-cross-tiling { -webkit-mask-image: url("patterns/girih/girih-star-cross-tiling.svg"); mask-image: url("patterns/girih/girih-star-cross-tiling.svg"); }
.iwut-news-hero .iwut-pat-girih-hexagon-rosette { -webkit-mask-image: url("patterns/girih/girih-hexagon-rosette.svg"); mask-image: url("patterns/girih/girih-hexagon-rosette.svg"); }
.iwut-news-hero .iwut-pat-girih-strap-interlace { -webkit-mask-image: url("patterns/girih/girih-strap-interlace.svg"); mask-image: url("patterns/girih/girih-strap-interlace.svg"); }
.iwut-news-hero .iwut-pat-arch-mihrab-pointed { -webkit-mask-image: url("patterns/arch/arch-mihrab-pointed.svg"); mask-image: url("patterns/arch/arch-mihrab-pointed.svg"); }
.iwut-news-hero .iwut-pat-arch-mihrab-ogee { -webkit-mask-image: url("patterns/arch/arch-mihrab-ogee.svg"); mask-image: url("patterns/arch/arch-mihrab-ogee.svg"); }
.iwut-news-hero .iwut-pat-arch-horseshoe { -webkit-mask-image: url("patterns/arch/arch-horseshoe.svg"); mask-image: url("patterns/arch/arch-horseshoe.svg"); }
.iwut-news-hero .iwut-pat-arch-panel-girih-window { -webkit-mask-image: url("patterns/arch/arch-panel-girih-window.svg"); mask-image: url("patterns/arch/arch-panel-girih-window.svg"); }
.iwut-news-hero .iwut-pat-arch-muqarnas-crest { -webkit-mask-image: url("patterns/arch/arch-muqarnas-crest.svg"); mask-image: url("patterns/arch/arch-muqarnas-crest.svg"); }
.iwut-news-hero .iwut-pat-medallion-shamse-16 { -webkit-mask-image: url("patterns/medallion/medallion-shamse-16.svg"); mask-image: url("patterns/medallion/medallion-shamse-16.svg"); }
.iwut-news-hero .iwut-pat-medallion-toranj-8lobe { -webkit-mask-image: url("patterns/medallion/medallion-toranj-8lobe.svg"); mask-image: url("patterns/medallion/medallion-toranj-8lobe.svg"); }
.iwut-news-hero .iwut-pat-medallion-star-rosette { -webkit-mask-image: url("patterns/medallion/medallion-star-rosette.svg"); mask-image: url("patterns/medallion/medallion-star-rosette.svg"); }
.iwut-news-hero .iwut-pat-medallion-lobed-cartouche { -webkit-mask-image: url("patterns/medallion/medallion-lobed-cartouche.svg"); mask-image: url("patterns/medallion/medallion-lobed-cartouche.svg"); }
.iwut-news-hero .iwut-pat-frame-tazhib-rect { -webkit-mask-image: url("patterns/frame/frame-tazhib-rect.svg"); mask-image: url("patterns/frame/frame-tazhib-rect.svg"); }
.iwut-news-hero .iwut-pat-frame-lobed-label { -webkit-mask-image: url("patterns/frame/frame-lobed-label.svg"); mask-image: url("patterns/frame/frame-lobed-label.svg"); }
.iwut-news-hero .iwut-pat-frame-arch-panel { -webkit-mask-image: url("patterns/frame/frame-arch-panel.svg"); mask-image: url("patterns/frame/frame-arch-panel.svg"); }
.iwut-news-hero .iwut-pat-frame-cartouche-scroll { -webkit-mask-image: url("patterns/frame/frame-cartouche-scroll.svg"); mask-image: url("patterns/frame/frame-cartouche-scroll.svg"); }
.iwut-news-hero .iwut-pat-frame-banner-plate { -webkit-mask-image: url("patterns/frame/frame-banner-plate.svg"); mask-image: url("patterns/frame/frame-banner-plate.svg"); }
.iwut-news-hero .iwut-pat-border-rosette-chain { -webkit-mask-image: url("patterns/border/border-rosette-chain.svg"); mask-image: url("patterns/border/border-rosette-chain.svg"); }
.iwut-news-hero .iwut-pat-border-khatai-vine { -webkit-mask-image: url("patterns/border/border-khatai-vine.svg"); mask-image: url("patterns/border/border-khatai-vine.svg"); }
.iwut-news-hero .iwut-pat-border-star-cross-band { -webkit-mask-image: url("patterns/border/border-star-cross-band.svg"); mask-image: url("patterns/border/border-star-cross-band.svg"); }
.iwut-news-hero .iwut-pat-border-palmette-pair { -webkit-mask-image: url("patterns/border/border-palmette-pair.svg"); mask-image: url("patterns/border/border-palmette-pair.svg"); }
.iwut-news-hero .iwut-pat-border-chevron-x { -webkit-mask-image: url("patterns/border/border-chevron-x.svg"); mask-image: url("patterns/border/border-chevron-x.svg"); }
.iwut-news-hero .iwut-pat-border-diamond-star { -webkit-mask-image: url("patterns/border/border-diamond-star.svg"); mask-image: url("patterns/border/border-diamond-star.svg"); }
.iwut-news-hero .iwut-pat-motif-star-8 { -webkit-mask-image: url("patterns/motif/motif-star-8.svg"); mask-image: url("patterns/motif/motif-star-8.svg"); }
.iwut-news-hero .iwut-pat-motif-khatai-leaf { -webkit-mask-image: url("patterns/motif/motif-khatai-leaf.svg"); mask-image: url("patterns/motif/motif-khatai-leaf.svg"); }
.iwut-news-hero .iwut-pat-motif-eslimi-scroll { -webkit-mask-image: url("patterns/motif/motif-eslimi-scroll.svg"); mask-image: url("patterns/motif/motif-eslimi-scroll.svg"); }
.iwut-news-hero .iwut-pat-motif-palmette { -webkit-mask-image: url("patterns/motif/motif-palmette.svg"); mask-image: url("patterns/motif/motif-palmette.svg"); }
.iwut-news-hero .iwut-pat-motif-rosette-small { -webkit-mask-image: url("patterns/motif/motif-rosette-small.svg"); mask-image: url("patterns/motif/motif-rosette-small.svg"); }

/*
 * Frame & Plaque hero shapes: 9-slice the chosen plaque so its ornaments frame
 * the rectangular hero instead of being stretched or shrunk into a watermark.
 * Browsers without mask-box-image keep the restrained centred watermark.
 */
@supports ( -webkit-mask-box-image: url("patterns/frame/frame-tazhib-rect.svg") 30% 22% stretch ) {
	.iwut-news-hero .iwut-news-hero__template.iwut-pat-frame-tazhib-rect {
		inset: 0;
		-webkit-mask-image: none;
		mask-image: none;
		-webkit-mask-box-image: url("patterns/frame/frame-tazhib-rect.svg") 30% 22% stretch;
		mask-border: url("patterns/frame/frame-tazhib-rect.svg") 30% 22% stretch;
		opacity: .9;
	}

	.iwut-news-hero .iwut-news-hero__template.iwut-pat-frame-arch-panel {
		inset: 0;
		-webkit-mask-image: none;
		mask-image: none;
		-webkit-mask-box-image: url("patterns/frame/frame-arch-panel.svg") 60% 48% stretch;
		mask-border: url("patterns/frame/frame-arch-panel.svg") 60% 48% stretch;
		opacity: .9;
	}

	.iwut-news-hero .iwut-news-hero__template.iwut-pat-frame-lobed-label {
		inset: 0;
		-webkit-mask-image: none;
		mask-image: none;
		-webkit-mask-box-image: url("patterns/frame/frame-lobed-label.svg") 24% 10% stretch;
		mask-border: url("patterns/frame/frame-lobed-label.svg") 24% 10% stretch;
		opacity: .9;
	}

	.iwut-news-hero .iwut-news-hero__template.iwut-pat-frame-cartouche-scroll {
		inset: 0;
		-webkit-mask-image: none;
		mask-image: none;
		-webkit-mask-box-image: url("patterns/frame/frame-cartouche-scroll.svg") 24% 12% stretch;
		mask-border: url("patterns/frame/frame-cartouche-scroll.svg") 24% 12% stretch;
		opacity: .9;
	}

	.iwut-news-hero .iwut-news-hero__template.iwut-pat-frame-banner-plate {
		inset: 0;
		-webkit-mask-image: none;
		mask-image: none;
		-webkit-mask-box-image: url("patterns/frame/frame-banner-plate.svg") 30% 12% stretch;
		mask-border: url("patterns/frame/frame-banner-plate.svg") 30% 12% stretch;
		opacity: .9;
	}
}

.iwut-news-hero__image {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .48;
}

.iwut-news-hero--source-image::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(11, 21, 48, .24);
	pointer-events: none;
}

.iwut-news-hero__content {
	position: absolute;
	left: clamp(24px, var(--iwut-news-title-x), calc(100% - 24px));
	right: auto;
	top: clamp(20px, var(--iwut-news-title-y), calc(100% - 20px));
	z-index: 2;
	width: max-content;
	max-width: min(80%, 1120px);
	direction: ltr;
	transform: translate(calc(-1 * var(--iwut-news-title-x)), calc(-1 * var(--iwut-news-title-y)));
}

.iwut-news-hero__title {
	max-width: min(24ch, 100%);
	margin: 0;
	color: inherit;
	font: 700 clamp(30px, 3.2vw, var(--iwut-news-title-size))/1.06 "IWUT Source Serif", "Source Serif 4", Georgia, serif;
	letter-spacing: -.025em;
	text-align: left;
	text-wrap: balance;
}

.iwut-news-hero--source-none {
	min-height: auto;
	height: auto;
	padding-block: clamp(38px, 5vw, 64px) clamp(22px, 3vw, 38px);
	background: transparent;
	color: var(--iwut-news-navy-5);
	border-block-end: 1px solid rgba(192, 161, 101, .48);
}
.iwut-news-hero--source-none .iwut-news-hero__content { position: relative; inset: auto; width: 100%; transform: none; }

.iwut-news-hero--bg-navy-1 { --iwut-news-hero-bg: var(--iwut-news-navy-1); }
.iwut-news-hero--bg-navy-2 { --iwut-news-hero-bg: var(--iwut-news-navy-2); }
.iwut-news-hero--bg-navy-3 { --iwut-news-hero-bg: var(--iwut-news-navy-3); }
.iwut-news-hero--bg-navy-4 { --iwut-news-hero-bg: var(--iwut-news-navy-4); }
.iwut-news-hero--bg-navy-5 { --iwut-news-hero-bg: var(--iwut-news-navy-5); }
.iwut-news-hero--bg-turquoise-1 { --iwut-news-hero-bg: var(--iwut-news-turquoise-1); --iwut-news-hero-fg: #000; }
.iwut-news-hero--bg-turquoise-2 { --iwut-news-hero-bg: var(--iwut-news-turquoise-2); --iwut-news-hero-fg: #000; }
.iwut-news-hero--bg-turquoise-3 { --iwut-news-hero-bg: var(--iwut-news-turquoise-3); }
.iwut-news-hero--bg-turquoise-4 { --iwut-news-hero-bg: var(--iwut-news-turquoise-4); }
.iwut-news-hero--bg-turquoise-5 { --iwut-news-hero-bg: var(--iwut-news-turquoise-5); }
.iwut-news-hero--bg-gold-1 { --iwut-news-hero-bg: var(--iwut-news-gold-1); --iwut-news-hero-fg: #000; }
.iwut-news-hero--bg-gold-2 { --iwut-news-hero-bg: var(--iwut-news-gold-2); --iwut-news-hero-fg: #000; }
.iwut-news-hero--bg-gold-3 { --iwut-news-hero-bg: var(--iwut-news-gold-3); --iwut-news-hero-fg: #000; }
.iwut-news-hero--bg-gold-4 { --iwut-news-hero-bg: var(--iwut-news-gold-4); --iwut-news-hero-fg: #000; }
.iwut-news-hero--bg-gold-5 { --iwut-news-hero-bg: var(--iwut-news-gold-5); }


.iwut-news-hero--bg-white-1,
.iwut-news-hero--bg-white-2,
.iwut-news-hero--bg-white-3,
.iwut-news-hero--bg-white-4,
.iwut-news-hero--bg-white-5 { --iwut-news-hero-bg: #ffffff; --iwut-news-hero-fg: #000; }

.iwut-news-hero--fg-black { --iwut-news-hero-fg: #000; }
.iwut-news-hero--fg-white { --iwut-news-hero-fg: #fff; }

/* SVG weight: repeat the masked shape with a tight halo instead of editing the SVG files. */
.iwut-news-hero--svg-weight-medium .iwut-news-hero__pattern,
.iwut-news-hero--svg-weight-medium .iwut-news-hero__template {
	filter: drop-shadow(0.5px 0 0 currentColor) drop-shadow(-0.5px 0 0 currentColor) drop-shadow(0 0.5px 0 currentColor) drop-shadow(0 -0.5px 0 currentColor);
}

.iwut-news-hero--svg-weight-bold .iwut-news-hero__pattern,
.iwut-news-hero--svg-weight-bold .iwut-news-hero__template {
	filter: drop-shadow(0.9px 0 0 currentColor) drop-shadow(-0.9px 0 0 currentColor) drop-shadow(0 0.9px 0 currentColor) drop-shadow(0 -0.9px 0 currentColor) drop-shadow(0.6px 0.6px 0 currentColor) drop-shadow(-0.6px -0.6px 0 currentColor);
}

/* Continuous title: run to the hero edges and wrap naturally with generous leading. */
.iwut-news-hero--title-continuous .iwut-news-hero__content {
	max-width: min(calc(100% - 48px), 1120px);
}

.iwut-news-hero--title-continuous .iwut-news-hero__title {
	max-width: 100%;
	line-height: 1.18;
	text-wrap: pretty;
	overflow-wrap: anywhere;
}

.iwut-news-hero--svg-navy-1 { --iwut-news-svg-color: var(--iwut-news-navy-1); }
.iwut-news-hero--svg-navy-2 { --iwut-news-svg-color: var(--iwut-news-navy-2); }
.iwut-news-hero--svg-navy-3 { --iwut-news-svg-color: var(--iwut-news-navy-3); }
.iwut-news-hero--svg-navy-4 { --iwut-news-svg-color: var(--iwut-news-navy-4); }
.iwut-news-hero--svg-navy-5 { --iwut-news-svg-color: var(--iwut-news-navy-5); }
.iwut-news-hero--svg-turquoise-1 { --iwut-news-svg-color: var(--iwut-news-turquoise-1); }
.iwut-news-hero--svg-turquoise-2 { --iwut-news-svg-color: var(--iwut-news-turquoise-2); }
.iwut-news-hero--svg-turquoise-3 { --iwut-news-svg-color: var(--iwut-news-turquoise-3); }
.iwut-news-hero--svg-turquoise-4 { --iwut-news-svg-color: var(--iwut-news-turquoise-4); }
.iwut-news-hero--svg-turquoise-5 { --iwut-news-svg-color: var(--iwut-news-turquoise-5); }
.iwut-news-hero--svg-gold-1 { --iwut-news-svg-color: var(--iwut-news-gold-1); }
.iwut-news-hero--svg-gold-2 { --iwut-news-svg-color: var(--iwut-news-gold-2); }
.iwut-news-hero--svg-gold-3 { --iwut-news-svg-color: var(--iwut-news-gold-3); }
.iwut-news-hero--svg-gold-4 { --iwut-news-svg-color: var(--iwut-news-gold-4); }
.iwut-news-hero--svg-gold-5 { --iwut-news-svg-color: var(--iwut-news-gold-5); }

body.wp-singular.single-iwut_news.iwut-page-hero-system .iwut-news-single .news-post-meta,
body.wp-singular.single-iwut_news.iwut-page-hero-system .iwut-news-single .iwut-news-single__content {
	width: min(100%, 1080px);
	margin-inline: auto;
}

body.wp-singular.single-iwut_news.iwut-page-hero-system .iwut-news-single .news-post-meta {
	gap: 10px 24px;
	margin-block: clamp(20px, 3vw, 34px);
	padding-block-end: 14px;
	border-block-end: 1px solid rgba(192, 161, 101, .42);
}

/* Courses & Events reuse the shared Hero, so the legacy post-title meta offset must not overlap it. */
body.wp-singular.single-iwut_course.iwut-page-hero-system .iwut-course-single .news-post-meta {
	gap: 10px 24px;
	margin-block: clamp(20px, 3vw, 34px);
	padding-block: 0 14px;
	border-block-end: 1px solid rgba(192, 161, 101, .42);
}

body.wp-singular.single-iwut_research.iwut-page-hero-system .iwut-cpt-single .news-post-meta,
body.wp-singular.single-iwut_studlife.iwut-page-hero-system .iwut-cpt-single .news-post-meta,
body.wp-singular.single-iwut_cooperation.iwut-page-hero-system .iwut-cpt-single .news-post-meta {
	gap: 10px 24px;
	margin-block: clamp(20px, 3vw, 34px);
	padding-block: 0 14px;
	border-block-end: 1px solid rgba(192, 161, 101, .42);
}

body.single-iwut_news .news-post-meta a { color: var(--iwut-news-turquoise-dark); }
body.single-iwut_news .iwut-news-single__content { max-width: 72ch; font-size: clamp(17px, 1.2vw, 19px); line-height: 1.8; }
body.single-iwut_news .iwut-news-single__content > :first-child { margin-block-start: 0; }

@media (max-width: 700px) {
	body.single-iwut_news .iwut-news-single { width: min(100% - 24px, 1760px); padding-block: 112px 64px; }
	body.single-iwut_course .iwut-course-single,
	body.single-iwut_research .iwut-cpt-single,
	body.single-iwut_studlife .iwut-cpt-single,
	body.single-iwut_cooperation .iwut-cpt-single { width: min(100% - 24px, 1760px); padding-block: 112px 64px; }
	.iwut-news-hero { width: 100%; height: clamp(220px, var(--iwut-news-hero-height), 70vh); }
	.iwut-news-hero__content { max-width: min(88%, 1120px); }
	.iwut-news-hero__title { font-size: clamp(28px, 8.2vw, min(var(--iwut-news-title-size), 48px)); }
}

@media (prefers-reduced-motion: reduce) {
	.iwut-news-hero *,
	.iwut-news-hero::before { transition: none; }
}

/* Original ornamental silhouettes; the rectangular default stays unchanged. */
.iwut-news-hero__surface { position: absolute; inset: 0; overflow: hidden; }
.iwut-news-hero__frame { display: none; pointer-events: none; }
.iwut-news-hero--shape-toranj { --iwut-frame-mask: url("hero-frames/toranj-mask.svg"); --iwut-frame-art: url("hero-frames/toranj-frame.svg"); }
.iwut-news-hero--shape-eslimi { --iwut-frame-mask: url("hero-frames/eslimi-mask.svg"); --iwut-frame-art: url("hero-frames/eslimi-frame.svg"); }
.iwut-news-hero--shape-rosette { --iwut-frame-mask: url("hero-frames/rosette-mask.svg"); --iwut-frame-art: url("hero-frames/rosette-frame.svg"); }
.iwut-news-hero--shape-scroll { --iwut-frame-mask: url("hero-frames/scroll-mask.svg"); --iwut-frame-art: url("hero-frames/scroll-frame.svg"); }
.iwut-news-hero--shape-sarbarg { --iwut-frame-mask: url("hero-frames/sarbarg-mask.svg"); --iwut-frame-art: url("hero-frames/sarbarg-frame.svg"); }
/* The traced endcaps carry a few gold beads that sit on, and just past, the
 * plate outline. Clipping the artwork with its own silhouette keeps those
 * beads flush with the edge instead of floating outside the navy field. */
.iwut-news-hero--shape-sarbarg .iwut-news-hero__frame {
 -webkit-mask: var(--iwut-frame-mask) center / 100% 100% no-repeat;
 mask: var(--iwut-frame-mask) center / 100% 100% no-repeat;
}
.iwut-news-hero[class*="iwut-news-hero--shape-"]:not(.iwut-news-hero--shape-rectangle):not(.iwut-news-hero--source-none) {
 background: transparent;
 border: 0;
 padding: 0;
 height: auto;
 min-height: clamp(240px, var(--iwut-news-hero-height), 720px);
 color: var(--iwut-news-hero-fg);
}
.iwut-news-hero[style] { box-sizing: border-box; }
.iwut-news-hero[class*="iwut-news-hero--shape-"]:not(.iwut-news-hero--shape-rectangle):not(.iwut-news-hero--source-none) .iwut-news-hero__surface {
 background: var(--iwut-news-hero-bg);
 -webkit-mask: var(--iwut-frame-mask) center / 100% 100% no-repeat;
 mask: var(--iwut-frame-mask) center / 100% 100% no-repeat;
}
.iwut-news-hero[class*="iwut-news-hero--shape-"]:not(.iwut-news-hero--shape-rectangle):not(.iwut-news-hero--source-none)::after { display: none; }
.iwut-news-hero[class*="iwut-news-hero--shape-"]:not(.iwut-news-hero--shape-rectangle):not(.iwut-news-hero--source-none) .iwut-news-hero__frame {
 display: block; position: absolute; inset: 0; z-index: 2;
 background: var(--iwut-frame-art) center / 100% 100% no-repeat;
}
/* A safe central reading area keeps long titles inside every silhouette.
 * Position offsets remain available for the rectangular layout. */
.iwut-news-hero[class*="iwut-news-hero--shape-"]:not(.iwut-news-hero--shape-rectangle):not(.iwut-news-hero--source-none) .iwut-news-hero__content {
 position: relative; inset: auto; transform: none; z-index: 3;
 box-sizing: border-box; width: 66%; max-width: none;
 margin: auto; padding-block: clamp(60px, 7vw, 100px);
 direction: inherit;
}
.iwut-news-hero[class*="iwut-news-hero--shape-"]:not(.iwut-news-hero--shape-rectangle):not(.iwut-news-hero--source-none) .iwut-news-hero__title {
 max-width: 100%; text-align: center; line-height: 1.45;
 overflow-wrap: anywhere;
}
@media (max-width: 640px) {
 .iwut-news-hero[class*="iwut-news-hero--shape-"]:not(.iwut-news-hero--shape-rectangle):not(.iwut-news-hero--source-none) { min-height: 240px; }
 .iwut-news-hero[class*="iwut-news-hero--shape-"]:not(.iwut-news-hero--shape-rectangle):not(.iwut-news-hero--source-none) .iwut-news-hero__content { width: 62%; padding-block: 64px; }
 .iwut-news-hero[class*="iwut-news-hero--shape-"]:not(.iwut-news-hero--shape-rectangle):not(.iwut-news-hero--source-none) .iwut-news-hero__title { font-size: clamp(24px, 6vw, 36px); }
}

/* Gold accents follow the selected ornament palette in both site and preview. */
.iwut-news-hero--shape-eslimi[class*="iwut-news-hero--svg-gold-"] {
 --iwut-frame-art: url("hero-frames/eslimi-gold-frame.svg");
}

/* The sarbarg plate is mostly gold at its two ends, so it keeps a narrower
 * reading area than the other silhouettes and never lets a title reach the caps. */
.iwut-news-hero--shape-sarbarg.iwut-news-hero[class*="iwut-news-hero--shape-"]:not(.iwut-news-hero--shape-rectangle):not(.iwut-news-hero--source-none) .iwut-news-hero__content {
 width: 54%;
}
@media (max-width: 640px) {
 .iwut-news-hero--shape-sarbarg.iwut-news-hero[class*="iwut-news-hero--shape-"]:not(.iwut-news-hero--shape-rectangle):not(.iwut-news-hero--source-none) .iwut-news-hero__content {
  width: 52%;
 }
}

/* Sarbarg is a letterhead band: a short, wide plate. It keeps the full page
 * width and caps its own height, so the gold endcaps stay a thin ribbon
 * instead of growing into tall panels. A smaller stored hero height still wins. */
.iwut-news-hero--shape-sarbarg.iwut-news-hero[class*="iwut-news-hero--shape-"]:not(.iwut-news-hero--shape-rectangle):not(.iwut-news-hero--source-none) {
 min-height: min(clamp(150px, 12.5vw, 235px), var(--iwut-news-hero-height, 235px));
}
.iwut-news-hero--shape-sarbarg.iwut-news-hero[class*="iwut-news-hero--shape-"]:not(.iwut-news-hero--shape-rectangle):not(.iwut-news-hero--source-none) .iwut-news-hero__content {
 padding-block: clamp(14px, 1.9vw, 28px);
}
@media (max-width: 640px) {
 .iwut-news-hero--shape-sarbarg.iwut-news-hero[class*="iwut-news-hero--shape-"]:not(.iwut-news-hero--shape-rectangle):not(.iwut-news-hero--source-none) {
  min-height: min(150px, var(--iwut-news-hero-height, 150px));
 }
 .iwut-news-hero--shape-sarbarg.iwut-news-hero[class*="iwut-news-hero--shape-"]:not(.iwut-news-hero--shape-rectangle):not(.iwut-news-hero--source-none) .iwut-news-hero__content {
  padding-block: 12px;
 }
}

/* Approved image artwork is shared by the site and both editor previews.
 * Its own colors replace the configurable decorative surface. Natural 3:1
 * proportions are preferred; exceptionally long titles can grow the frame. */
.iwut-news-hero--shape-art-mandala { --iwut-frame-art: url("hero-frames/mandala-symmetric.webp"); --iwut-art-title-width: 48%; }
.iwut-news-hero--shape-art-diagonal { --iwut-frame-art: url("hero-frames/mandala-diagonal.webp"); --iwut-art-title-width: 52%; }
.iwut-news-hero--shape-art-cartouche { --iwut-frame-art: url("hero-frames/blue-gold-cartouche.webp"); --iwut-art-title-width: 62%; }
.iwut-news-hero.iwut-news-hero[class*="--shape-art-"]:not(.iwut-news-hero--source-none) {
 container-type: inline-size;
 grid-template-columns: minmax(0, 1fr);
 aspect-ratio: auto;
 height: auto;
 min-height: 0;
 background: #fff;
 color: #10284a;
}
.iwut-news-hero.iwut-news-hero[class*="--shape-art-"]:not(.iwut-news-hero--source-none)::before {
 content: "";
 grid-area: 1 / 1;
 width: 100%;
 aspect-ratio: 3 / 1;
 pointer-events: none;
}
.iwut-news-hero.iwut-news-hero[class*="--shape-art-"]:not(.iwut-news-hero--source-none) .iwut-news-hero__surface { display: none; }
/* Floral medallions keep their circular proportions as long headings grow.
 * Their white reading area can extend above and below the original banner. */
.iwut-news-hero.iwut-news-hero:is(.iwut-news-hero--shape-art-mandala, .iwut-news-hero--shape-art-diagonal):not(.iwut-news-hero--source-none) .iwut-news-hero__frame {
 background-size: 100% auto;
}
.iwut-news-hero.iwut-news-hero[class*="--shape-art-"]:not(.iwut-news-hero--source-none) .iwut-news-hero__content {
 align-self: center;
 grid-area: 1 / 1;
 width: var(--iwut-art-title-width);
 margin-block: auto;
 margin-inline: auto;
 padding-block: 6%;
 font-size: clamp(18px, 4cqw, min(var(--iwut-news-title-size, 64px), 64px));
 line-height: 1.45;
}
/* Keep the diagonal artwork on its original left side in both languages. */
.iwut-news-hero.iwut-news-hero.iwut-news-hero--shape-art-diagonal:not(.iwut-news-hero--source-none) .iwut-news-hero__content {
 margin-left: 46%;
 margin-right: 2%;
}
.iwut-news-hero.iwut-news-hero[class*="--shape-art-"]:not(.iwut-news-hero--source-none) .iwut-news-hero__title {
 color: inherit;
 font-size: clamp(18px, 4cqw, min(var(--iwut-news-title-size, 64px), 64px));
 line-height: 1.45;
}
.iwut-news-hero.iwut-news-hero.iwut-news-hero--shape-art-cartouche:not(.iwut-news-hero--source-none) .iwut-news-hero__content { padding-block: 2lh; }

/* A selected front-page Hero shares the page gutter and clears the fixed header. */
body.home main > .iwut-news-hero {
 width: min(calc(100% - 40px), 1760px);
 margin-block: 132px 24px;
}
@media (max-width: 640px) {
 body.home main > .iwut-news-hero { width: calc(100% - 24px); margin-block-start: 104px; }
}

body.home:has(main > .iwut-news-hero) header.wp-block-template-part {
 background: var(--wp--preset--color--surface, #fff);
 color: var(--wp--preset--color--green, #043927);
 box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
body.home.scheme-blue:has(main > .iwut-news-hero) header.wp-block-template-part { color: #002e5b; }
