/* Exhibition Islam Toolkit — screens not built with Elementor:
   the title band, posts index/archives, single post, search, 404 and plain pages. */

/* ---------- title band ---------- */
.ei.band {
	position: relative; overflow: hidden; isolation: isolate; color: var(--ei-light);
	background: radial-gradient(80% 120% at 85% 40%, #1b2a66 0%, var(--ei-lapis) 55%, var(--ei-lapis-2) 100%);
	padding: calc(var(--ei-hdr) + clamp(40px, 6vw, 84px)) 0 clamp(48px, 6vw, 84px);
}
.ei .band__pattern { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ei-gold); opacity: .1; z-index: -1;
	-webkit-mask: linear-gradient(90deg, transparent 20%, #000 75%); mask: linear-gradient(90deg, transparent 20%, #000 75%); }
.ei .band__star { position: absolute; z-index: -1; right: max(-80px, calc((100vw - var(--ei-wrap)) / 2 - 120px)); top: 50%; width: clamp(240px, 30vw, 440px); height: auto; aspect-ratio: 1;
	transform: translateY(-38%); fill: none; stroke: var(--ei-gold-2); stroke-width: .008; opacity: .55; }
.ei .band__in { position: relative; }
.ei .band__crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--ei-light-2); margin-bottom: 22px; }
.ei .band__crumbs li { display: inline-flex; align-items: center; }
.ei .band__crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 12px; transform: rotate(45deg); border: 1px solid var(--ei-gold); flex: none; }
.ei .band__crumbs a { text-decoration: none; }
.ei .band__crumbs a:hover { color: var(--ei-gold-2); }
.ei .band__crumbs [aria-current] { color: var(--ei-light); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ei .band__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; font-weight: 600; color: var(--ei-gold-2); margin-bottom: 14px; }
.ei .band__meta a { text-decoration: none; }
.ei .band__meta a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ei .band__meta time { color: var(--ei-light-2); font-weight: 500; }
.ei .band__title { font: 400 clamp(38px, 5.4vw, 72px)/1.04 var(--ei-display); letter-spacing: -0.01em; max-width: 20ch; text-wrap: balance; margin: 0; color: inherit; }
.ei .band__intro { margin-top: 18px; max-width: 54ch; color: #cfd4e6; font-size: 18px; }

/* ---------- shared page body ---------- */
.ei.tlist, .ei.tpage, .ei.tsingle, .ei.t404 { background: var(--ei-ivory); padding: clamp(56px, 7vw, 100px) 0 clamp(72px, 9vw, 120px); }
.ei .tempty { padding: 40px 0; max-width: 54ch; color: var(--ei-body); }
.ei .tempty .link { display: inline-block; margin-top: 14px; }

/* post cards */
.ei .tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(20px, 3vw, 36px); }
.ei .tcard { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ei .tcard__link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ei-ink); }
.ei .tcard__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; margin-bottom: 8px; background: var(--ei-line); }
.ei .tcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ei .tcard__link:hover .tcard__img img { transform: scale(1.04); }
.ei .tcard__none { display: grid; place-items: center; width: 100%; height: 100%; background: var(--ei-lapis); }
.ei .tcard__star { width: 38%; height: auto; aspect-ratio: 1; fill: none; stroke: var(--ei-gold-2); stroke-width: .02; }
.ei .tcard time { font-size: 13.5px; color: var(--ei-muted); }
.ei .tcard__title { font: 400 23px/1.2 var(--ei-display); text-wrap: pretty; margin: 0; }
.ei .tcard__link:hover .tcard__title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: var(--ei-amber); }
.ei .tcard__ex { font-size: 15px; line-height: 1.55; color: var(--ei-body); }

/* pagination */
.ei .tpager { margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--ei-line); }
.ei .tpager ul { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ei .tpager a, .ei .tpager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; box-shadow: inset 0 0 0 1px var(--ei-line); background: #fff; }
.ei .tpager a:hover { box-shadow: inset 0 0 0 1.5px var(--ei-amber); }
.ei .tpager .current { background: var(--ei-lapis); color: var(--ei-light); box-shadow: none; }
.ei .tpager .dots { background: none; box-shadow: none; }

/* search */
.ei .tsearch { display: flex; gap: 8px; max-width: 560px; }
.ei .tsearch input { flex: 1; min-width: 0; min-height: 50px; padding: 10px 20px; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--ei-line); font-size: 16px; color: var(--ei-ink); }
.ei .tsearch input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ei-amber); }
.ei .tsearch-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 36px; }
.ei .tresults { display: grid; gap: 0; border-top: 1.5px solid var(--ei-ink); }
.ei .tresults li { border-bottom: 1px solid var(--ei-line); }
.ei .tresults a { display: grid; gap: 6px; padding: 22px 0; text-decoration: none; max-width: 760px; }
.ei .tresults__type { font-size: 13px; font-weight: 600; color: var(--ei-gold-dark); }
.ei .tresults__title { font: 400 26px/1.2 var(--ei-display); margin: 0; }
.ei .tresults a:hover .tresults__title { text-decoration: underline; text-decoration-color: var(--ei-amber); text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.ei .tresults p { color: var(--ei-body); font-size: 15.5px; }

/* 404 */
.ei .t404__in { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ei .t404__mark { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.ei .t404__star { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--ei-lapis); stroke: var(--ei-gold); stroke-width: .012; }
.ei .t404__mark span { position: relative; font: 400 clamp(56px, 7vw, 96px)/1 var(--ei-display); color: var(--ei-gold-2); }
.ei .t404__body .h-md { margin: 40px 0 16px; }
.ei .t404__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* reading text (plain pages, posts) */
.ei .tprose { max-width: 70ch; color: var(--ei-body); font-size: 18px; line-height: 1.7; }
.ei .tprose > * + *, .ei .tprose .elementor-widget-text-editor > * + * { margin-top: 1.1em; }
.ei .tprose :where(h2, h3, h4) { font-family: var(--ei-display); font-weight: 400; color: var(--ei-ink); line-height: 1.15; margin-top: 1.8em; margin-bottom: .2em; }
.ei .tprose h2 { font-size: clamp(28px, 3vw, 36px); }
.ei .tprose h3 { font-size: clamp(23px, 2.3vw, 28px); }
.ei .tprose h4 { font-size: 21px; }
.ei .tprose :where(p, li) { margin: 0; }
.ei .tprose :where(p + p, p + ul, ul + p, p + ol, ol + p) { margin-top: 1.1em; }
.ei .tprose :where(ul, ol) { padding-left: 1.3em; list-style: revert; }
.ei .tprose li + li { margin-top: .4em; }
.ei .tprose li::marker { color: var(--ei-gold-dark); }
.ei .tprose a { color: var(--ei-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ei-amber); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.ei .tprose a:hover { text-decoration-thickness: 3px; }
.ei .tprose strong, .ei .tprose b { color: var(--ei-ink); font-weight: 600; }
.ei .tprose blockquote { margin: 1.6em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--ei-gold); font: 400 clamp(22px, 2.2vw, 27px)/1.35 var(--ei-display); color: var(--ei-ink); }
.ei .tprose blockquote p { margin: 0; }
.ei .tprose blockquote cite { display: block; margin-top: 10px; font: 600 14px/1.4 var(--ei-sans); color: var(--ei-muted); font-style: normal; }
.ei .tprose img { border-radius: 4px; height: auto; }
.ei .tprose figure { margin: 1.6em 0; }
.ei .tprose figcaption { margin-top: 8px; font-size: 14px; color: var(--ei-muted); }
.ei .tprose hr { border: 0; height: 1px; background: var(--ei-line); margin: 2em 0; }
.ei .tprose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.ei .tprose th, .ei .tprose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ei-line); }
/* posts whose body is an old Elementor text widget: drop its own boxes */
.ei .tprose .elementor, .ei .tprose .e-con, .ei .tprose .e-con-inner, .ei .tprose .elementor-widget { padding: 0 !important; margin: 0; max-width: none; --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; }
.ei .tprose .elementor-widget-text-editor { color: inherit; font-family: var(--ei-sans); font-size: inherit; line-height: inherit; }

/* plain pages */
.ei .tpage--app .tpage__content { max-width: none; }

/* single post */
.ei.tsingle { padding-top: 0; }
.ei .tsingle__in { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; }
.ei .tsingle__media { position: relative; width: 100%; max-width: 1040px; margin: calc(-1 * clamp(28px, 4vw, 56px)) 0 clamp(40px, 5vw, 64px); aspect-ratio: 16 / 9;
	clip-path: polygon(5% 0, 95% 0, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0 95%, 0 5%); background: var(--ei-lapis); }
.ei .tsingle__media img { width: 100%; height: 100%; object-fit: cover; }
.ei .tsingle__frame { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); pointer-events: none; }
.ei .tsingle__frame polygon { fill: none; stroke: rgba(240, 196, 106, .85); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ei .tsingle__in > .tsingle__body:first-child { margin-top: clamp(48px, 6vw, 80px); }
.ei .tsingle__foot { width: 100%; max-width: 70ch; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--ei-line); display: grid; gap: 28px; }
.ei .tsingle__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ei .tsingle__tags a { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--ei-line); font-size: 14px; text-decoration: none; }
.ei .tshare { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; }
.ei .tshare__k { font-size: 14px; font-weight: 600; color: var(--ei-gold-dark); }
.ei .tshare ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ei .tshare a { font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--ei-amber); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.ei .tsingle__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ei .tsingle__nav a { display: grid; gap: 4px; padding: 18px 20px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--ei-line); text-decoration: none; }
.ei .tsingle__nav a:hover { box-shadow: inset 0 0 0 2px var(--ei-amber); }
.ei .tsingle__nav span { font-size: 13px; font-weight: 600; color: var(--ei-muted); }
.ei .tsingle__nav b { font: 400 19px/1.25 var(--ei-display); }
.ei .tsingle__next { grid-column: 2; text-align: right; }
.ei .tsingle__comments { width: 100%; max-width: 70ch; margin-top: 48px; }

.ei .trelated { margin-top: clamp(72px, 9vw, 120px); }
.ei .trelated__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-bottom: 18px; border-bottom: 1.5px solid var(--ei-ink); margin-bottom: 28px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
	.ei .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ei .band__star { opacity: .3; right: -120px; }
}
@media (max-width: 720px) {
	.ei.band { padding: calc(var(--ei-hdr) + 36px) 0 44px; }
	.ei .band__title { font-size: clamp(34px, 9.5vw, 44px); }
	.ei .band__intro { font-size: 16px; }
	.ei .band__crumbs ol { margin-bottom: 16px; font-size: 13.5px; }
	.ei .band__crumbs [aria-current] { max-width: 24ch; }
	.ei .band__star { width: 260px; right: -130px; top: 30%; }
	.ei.tlist, .ei.tpage, .ei.t404 { padding: 48px 0 72px; }
	.ei .tgrid { grid-template-columns: minmax(0, 1fr); }
	.ei .tprose { font-size: 16.5px; }
	.ei .tsingle__media { margin-top: -20px; aspect-ratio: 4 / 3; }
	.ei .tsingle__nav { grid-template-columns: minmax(0, 1fr); }
	.ei .tsingle__next { grid-column: auto; text-align: left; }
	.ei .t404__in { grid-template-columns: minmax(0, 1fr); }
	.ei .t404__mark { max-width: 220px; }
	.ei .tsearch .btn { padding-inline: 18px; }
}
