/*
 * Something Historic Ancient Cities: cinematic city pages.
 *
 * Colours follow the Something Historic theme tokens (--sh-*), including
 * its dark mode, with fallbacks so the pages also work with other themes.
 * Layout uses logical properties, so Urdu (RTL) pages mirror correctly.
 */

.shc-page,
.shc-embed {
	--shc-bg: var(--sh-bg, #f4ecd8);
	--shc-text: var(--sh-text, #2b2118);
	--shc-muted: var(--sh-muted, #6f5d4a);
	--shc-surface: var(--sh-surface, #fbf6ea);
	--shc-border: var(--sh-border, #dcc9a3);
	--shc-accent: var(--sh-accent, #b08d3c);
	--shc-accent-strong: var(--sh-accent-strong, #7a5a1e);
	--shc-shadow: var(--sh-shadow, 0 1px 2px rgb(43 33 24 / 6%), 0 10px 30px rgb(43 33 24 / 10%));
	--shc-heading: var(--sh-font-heading, "Playfair Display", Georgia, serif);
	--shc-body: var(--sh-font-body, Lora, Georgia, serif);
	--shc-cinema: var(--sh-cinema, #0b0907);
	--shc-gold: var(--sh-gold, #e2c387);
	--shc-gutter: var(--sh-gutter, clamp(16px, 4vw, 56px));
	--shc-ui: var(--sh-font-ui, system-ui, -apple-system, "Segoe UI", sans-serif);
	--shc-max: var(--sh-max, 1320px);
	--shc-radius: 10px;
	color: var(--shc-text);
	font-family: var(--shc-body);
}

/* GeneratePress: let our pages run edge to edge. */
body.shc-body {
	overflow-x: clip;
}

body.shc-body .site-content,
body.shc-body .content-area,
body.shc-body .site-main {
	padding: 0;
	margin: 0;
}

body.shc-body .site-content {
	display: block;
}

body.shc-body .site.grid-container,
body.shc-body .site-content > .content-area {
	max-width: none;
	width: 100%;
}

.shc-page {
	background: var(--shc-bg);
	padding-bottom: 1px;
}

.shc-page *,
.shc-embed * {
	box-sizing: border-box;
}

.shc-wrap {
	width: 100%;
	max-width: var(--shc-max);
	margin-inline: auto;
	padding-inline: var(--shc-gutter);
}

.shc-page a,
.shc-embed a {
	text-decoration: none;
}

/* ---------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------- */

.shc-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: clamp(520px, 80vh, 820px);
	overflow: hidden;
	background: var(--shc-cinema);
	color: #fff;
}

.shc-hero--slider {
	display: block;
	height: clamp(560px, 86vh, 860px);
	min-height: 0;
}

.shc-hero--region {
	min-height: clamp(380px, 58vh, 580px);
}

.shc-hero__media,
.shc-hero__shade {
	position: absolute;
	inset: 0;
}

.shc-hero__media {
	z-index: -2;
}

.shc-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transform-origin: 60% 70%;
}

.shc-hero--single .shc-hero__img,
.shc-hero--region .shc-hero__img,
.shc-slide.is-active .shc-hero__img {
	animation: shc-kenburns 22s ease-out both;
}

@keyframes shc-kenburns {
	from {
		transform: scale(1.12);
	}
	to {
		transform: scale(1);
	}
}

.shc-hero__shade {
	z-index: -1;
	background:
		linear-gradient(to right, rgb(8 6 4 / 92%) 0%, rgb(8 6 4 / 62%) 34%, rgb(8 6 4 / 10%) 68%, rgb(8 6 4 / 0%) 100%),
		linear-gradient(to top, rgb(8 6 4 / 95%) 0%, rgb(8 6 4 / 40%) 26%, rgb(8 6 4 / 0%) 48%),
		linear-gradient(to bottom, rgb(8 6 4 / 55%) 0%, rgb(8 6 4 / 0%) 22%);
}

[dir="rtl"] .shc-hero__shade {
	background:
		linear-gradient(to left, rgb(8 6 4 / 92%) 0%, rgb(8 6 4 / 62%) 34%, rgb(8 6 4 / 10%) 68%, rgb(8 6 4 / 0%) 100%),
		linear-gradient(to top, rgb(8 6 4 / 95%) 0%, rgb(8 6 4 / 40%) 26%, rgb(8 6 4 / 0%) 48%),
		linear-gradient(to bottom, rgb(8 6 4 / 55%) 0%, rgb(8 6 4 / 0%) 22%);
}

.shc-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--shc-max);
	margin-inline: auto;
	padding: calc(var(--sh-header-h, 0px) + 40px) var(--shc-gutter) clamp(56px, 11vh, 120px);
}

.shc-hero--single .shc-hero__content {
	padding-bottom: clamp(100px, 14vh, 150px);
}

.shc-hero__content > * {
	max-width: 680px;
}

.shc-eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1rem;
	color: var(--shc-gold);
	font-family: var(--shc-ui);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.shc-eyebrow__mark {
	width: 4px;
	height: 1.4em;
	border-radius: 2px;
	background: var(--shc-gold);
	box-shadow: 0 0 18px rgb(226 195 135 / 70%);
}

.shc-hero__title {
	margin: 0 0 0.9rem;
	color: #fff;
	font-family: var(--shc-heading);
	font-size: clamp(2.6rem, 6.4vw, 5.6rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.015em;
	text-shadow: 0 4px 30px rgb(0 0 0 / 45%);
	text-wrap: balance;
}

.shc-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	color: rgb(255 255 255 / 82%);
	font-family: var(--shc-ui);
	font-size: 0.92rem;
	font-weight: 600;
}

.shc-hero__meta li {
	display: inline-flex;
	align-items: center;
	margin: 0;
}

.shc-hero__meta li + li::before {
	content: "";
	width: 4px;
	height: 4px;
	margin-inline: 0.7rem;
	border-radius: 50%;
	background: rgb(255 255 255 / 55%);
}

.shc-hero__meta .shc-hero__unesco {
	padding: 0.18rem 0.55rem;
	border: 1px solid rgb(226 195 135 / 65%);
	border-radius: 4px;
	color: var(--shc-gold);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.shc-hero__tagline {
	margin: 0 0 1.7rem;
	color: rgb(255 255 255 / 88%);
	font-size: clamp(1.05rem, 1.6vw, 1.32rem);
	line-height: 1.55;
	text-shadow: 0 2px 12px rgb(0 0 0 / 50%);
	max-width: 46ch;
}

.shc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.shc-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	min-height: 48px;
	padding: 0.75rem 1.6rem;
	border-radius: 6px;
	font-family: var(--shc-ui);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
	transition: background-color 0.2s, transform 0.2s;
}

.shc-page .shc-btn--primary {
	background: #fff;
	color: #141414;
}

.shc-page .shc-btn--primary:hover,
.shc-page .shc-btn--primary:focus-visible {
	background: rgb(255 255 255 / 80%);
	color: #141414;
}

.shc-page .shc-btn--ghost {
	background: rgb(109 109 110 / 62%);
	color: #fff;
	backdrop-filter: blur(6px);
}

.shc-page .shc-btn--ghost:hover,
.shc-page .shc-btn--ghost:focus-visible {
	background: rgb(109 109 110 / 42%);
	color: #fff;
}

.shc-btn:active {
	transform: scale(0.97);
}

.shc-btn__play {
	width: 0;
	height: 0;
	border-block: 0.5em solid transparent;
	border-inline-start: 0.8em solid currentColor;
}

[dir="rtl"] .shc-btn__play {
	border-inline-start: 0;
	border-inline-end: 0.8em solid currentColor;
	transform: scaleX(-1);
}

.shc-btn__info {
	display: inline-grid;
	place-items: center;
	width: 1.35em;
	height: 1.35em;
	border: 2px solid currentColor;
	border-radius: 50%;
	font-family: Georgia, serif;
	font-size: 0.85em;
	font-style: italic;
	line-height: 1;
}

.shc-btn__pin {
	width: 0.85em;
	height: 0.85em;
	border: 2px solid currentColor;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
}

/* Slider */

.shc-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

.shc-slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.9s ease;
}

.shc-slide .shc-hero__content > * {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.shc-slide.is-active .shc-hero__content > * {
	opacity: 1;
	transform: none;
}

.shc-slide.is-active .shc-hero__content > :nth-child(2) {
	transition-delay: 0.08s;
}

.shc-slide.is-active .shc-hero__content > :nth-child(3) {
	transition-delay: 0.16s;
}

.shc-slide.is-active .shc-hero__content > :nth-child(4) {
	transition-delay: 0.24s;
}

.shc-slide.is-active .shc-hero__content > :nth-child(5) {
	transition-delay: 0.32s;
}

.shc-dots {
	position: absolute;
	z-index: 3;
	inset-inline-end: var(--shc-gutter);
	bottom: clamp(24px, 5vh, 48px);
	display: flex;
	gap: 6px;
}

.shc-page .shc-dot {
	position: relative;
	width: 34px;
	height: 24px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.shc-dot::before,
.shc-dot span {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 50%;
	height: 4px;
	margin-top: -2px;
	border-radius: 2px;
}

.shc-dot::before {
	inset-inline-end: 0;
	background: rgb(255 255 255 / 35%);
}

.shc-dot span {
	width: 0;
	background: #fff;
}

.shc-dot.is-active span {
	width: 100%;
}

.shc-hero--slider.is-playing .shc-dot.is-active span {
	animation: shc-progress var(--shc-interval, 7s) linear both;
}

.shc-hero--slider.is-paused .shc-dot.is-active span {
	animation-play-state: paused;
}

@keyframes shc-progress {
	from {
		width: 0;
	}
	to {
		width: 100%;
	}
}

/* Breadcrumbs and kicker */

.shc-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 1rem;
	font-family: var(--shc-ui);
	font-size: 0.88rem;
	font-weight: 600;
	color: rgb(255 255 255 / 75%);
}

.shc-page .shc-crumbs a {
	color: rgb(255 255 255 / 85%);
}

.shc-page .shc-crumbs a:hover {
	color: #fff;
	text-decoration: underline;
}

.shc-kicker {
	margin: 0 0 0.4rem;
	color: var(--shc-accent-strong);
	font-family: var(--shc-ui);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.shc-hero .shc-kicker {
	color: var(--shc-gold);
}

/* Chevron used in links and buttons. */

.shc-chev {
	display: inline-block;
	width: 0.48em;
	height: 0.48em;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(-45deg);
	flex: none;
}

[dir="rtl"] .shc-chev {
	transform: rotate(135deg);
}

/* ---------------------------------------------------------------------
 * Landing intro and region chips
 * ------------------------------------------------------------------- */

.shc-intro {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	padding-block: clamp(32px, 4vw, 52px) 0.5rem;
}

.shc-intro__title {
	margin: 0 0 0.35rem;
	font-family: var(--shc-heading);
	font-size: clamp(1.7rem, 3vw, 2.4rem);
	font-weight: 800;
	line-height: 1.15;
}

.shc-intro__text {
	margin: 0;
	max-width: 52ch;
	color: var(--shc-muted);
	font-size: 1.05rem;
}

.shc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-block: 1.5rem 0.5rem;
}

.shc-intro .shc-chips {
	margin: 0;
}

.shc-page .shc-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 40px;
	padding: 0.45rem 1rem;
	border: 1px solid var(--shc-border);
	border-radius: 999px;
	background: var(--shc-surface);
	color: var(--shc-text);
	font-family: var(--shc-ui);
	font-size: 0.9rem;
	font-weight: 600;
	white-space: nowrap;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.shc-page .shc-chip:hover {
	border-color: var(--shc-accent);
	color: var(--shc-text);
}

.shc-page .shc-chip.is-active {
	border-color: var(--shc-text);
	background: var(--shc-text);
	color: var(--shc-bg);
}

.shc-chip__count {
	min-width: 1.6em;
	padding: 0.05rem 0.4rem;
	border-radius: 999px;
	background: rgb(127 127 127 / 18%);
	font-size: 0.75rem;
	text-align: center;
}

/* ---------------------------------------------------------------------
 * Rows (shelves)
 * ------------------------------------------------------------------- */

.shc-row {
	margin-block: clamp(26px, 3.6vw, 44px);
}

.shc-row__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.shc-row__title {
	margin: 0;
	color: var(--shc-text);
	font-family: var(--shc-heading);
	font-size: clamp(1.3rem, 2.2vw, 1.75rem);
	font-weight: 800;
	line-height: 1.25;
}

.shc-page .shc-row__more,
.shc-embed .shc-row__more {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--shc-accent-strong);
	font-family: var(--shc-ui);
	font-size: 0.9rem;
	font-weight: 700;
	white-space: nowrap;
}

.shc-row__more:hover .shc-chev {
	transform: translateX(3px) rotate(-45deg);
}

[dir="rtl"] .shc-row__more:hover .shc-chev {
	transform: translateX(-3px) rotate(135deg);
}

.shc-row__viewport {
	position: relative;
	margin-inline: calc(var(--shc-gutter) * -1);
}

.shc-row__track {
	display: grid;
	grid-auto-columns: clamp(240px, 26vw, 340px);
	grid-auto-flow: column;
	gap: 14px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	padding: 12px var(--shc-gutter) 22px;
	scroll-padding-inline: var(--shc-gutter);
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.shc-row__track::-webkit-scrollbar {
	display: none;
}

.shc-row--poster .shc-row__track {
	grid-auto-columns: clamp(148px, 15vw, 200px);
}

.shc-row--poster:has(.shc-card--ranked) .shc-row__track {
	grid-auto-columns: clamp(210px, 21vw, 280px);
	gap: 6px;
}

.shc-page .shc-row__nav,
.shc-embed .shc-row__nav {
	position: absolute;
	z-index: 4;
	top: 12px;
	bottom: 22px;
	display: grid;
	place-items: center;
	width: max(44px, calc(var(--shc-gutter) - 4px));
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgb(11 9 7 / 58%);
	color: #fff;
	font-size: 1.6rem;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.25s, background-color 0.2s;
}

.shc-row__nav[hidden] {
	display: none;
}

.shc-row__nav--prev {
	inset-inline-start: 0;
}

.shc-row__nav--next {
	inset-inline-end: 0;
}

.shc-row__nav--prev .shc-chev {
	transform: rotate(135deg);
}

[dir="rtl"] .shc-row__nav--prev .shc-chev {
	transform: rotate(-45deg);
}

.shc-row__viewport:hover .shc-row__nav,
.shc-row__nav:focus-visible {
	opacity: 1;
}

.shc-page .shc-row__nav:hover {
	background: rgb(11 9 7 / 78%);
}

@media (hover: none) {
	.shc-page .shc-row__nav,
	.shc-embed .shc-row__nav {
		display: none;
	}
}

/* ---------------------------------------------------------------------
 * Cards
 * ------------------------------------------------------------------- */

.shc-card {
	min-width: 0;
	margin: 0;
	scroll-snap-align: start;
}

.shc-card__link {
	display: block;
	position: relative;
	border-radius: var(--shc-radius);
	color: #fff;
	outline-offset: 3px;
}

.shc-page .shc-card__link,
.shc-page .shc-card__link:hover,
.shc-embed .shc-card__link,
.shc-embed .shc-card__link:hover {
	color: #fff;
}

.shc-card__link:focus-visible {
	outline: 3px solid var(--shc-accent);
}

.shc-card__media {
	position: relative;
	z-index: 1;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--shc-radius);
	background: #1d1610;
	box-shadow: 0 6px 18px rgb(0 0 0 / 18%);
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s;
}

.shc-card--poster .shc-card__media {
	aspect-ratio: 2 / 3;
}

.shc-card__img,
.shc-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.shc-card__placeholder {
	background: linear-gradient(160deg, #3b2a1a, #120d09);
}

.shc-card__link:hover .shc-card__media,
.shc-card__link:focus-visible .shc-card__media {
	transform: translateY(-4px);
	box-shadow: 0 18px 38px rgb(0 0 0 / 34%);
}

.shc-card__link:hover .shc-card__img {
	transform: scale(1.06);
}

.shc-card__body {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 2.6rem 1rem 0.9rem;
	background: linear-gradient(to top, rgb(8 6 4 / 94%) 0%, rgb(8 6 4 / 62%) 52%, rgb(8 6 4 / 0%) 100%);
}

.shc-card__title {
	font-family: var(--shc-heading);
	font-size: 1.18rem;
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 0 2px 8px rgb(0 0 0 / 50%);
}

.shc-card--poster .shc-card__title {
	font-size: 1.02rem;
}

.shc-card__meta {
	color: rgb(255 255 255 / 75%);
	font-family: var(--shc-ui);
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.shc-card__tagline {
	display: -webkit-box;
	max-height: 0;
	overflow: hidden;
	color: rgb(255 255 255 / 88%);
	font-size: 0.86rem;
	line-height: 1.45;
	opacity: 0;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
}

.shc-card__link:hover .shc-card__tagline,
.shc-card__link:focus-visible .shc-card__tagline {
	max-height: 3em;
	margin-top: 0.2rem;
	opacity: 1;
}

@media (hover: none) {
	.shc-card__tagline {
		max-height: 3em;
		opacity: 1;
	}
}

.shc-badge {
	position: absolute;
	z-index: 2;
	top: 0.6rem;
	inset-inline-start: 0.6rem;
	padding: 0.22rem 0.5rem;
	border: 1px solid rgb(243 217 164 / 45%);
	border-radius: 4px;
	background: rgb(0 0 0 / 55%);
	color: #f3d9a4;
	font-family: var(--shc-ui);
	font-size: 0.64rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	backdrop-filter: blur(4px);
}

/* Ranked "top 10" posters */

.shc-card--ranked .shc-card__link {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: end;
}

.shc-card__rank {
	position: relative;
	z-index: 0;
	margin-inline-end: -0.14em;
	color: var(--shc-bg);
	font-family: "Arial Black", "Helvetica Neue", Impact, sans-serif;
	font-size: clamp(6rem, 10vw, 8.6rem);
	font-weight: 900;
	line-height: 0.78;
	letter-spacing: -0.06em;
	-webkit-text-stroke: 3px var(--shc-muted);
	paint-order: stroke fill;
	user-select: none;
}

/* Grid */

.shc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 22px 18px;
	margin-block: 1.25rem clamp(40px, 6vw, 72px);
}

.shc-empty {
	padding: 3rem 0;
	color: var(--shc-muted);
	text-align: center;
}

/* ---------------------------------------------------------------------
 * City page
 * ------------------------------------------------------------------- */

.shc-facts {
	position: relative;
	z-index: 3;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
	gap: 1px;
	margin: -64px 0 0;
	overflow: hidden;
	border: 1px solid var(--shc-border);
	border-radius: 14px;
	background: var(--shc-border);
	box-shadow: var(--shc-shadow), 0 20px 50px rgb(0 0 0 / 18%);
}

.shc-fact {
	padding: 1.1rem 1.35rem 1.2rem;
	background: var(--shc-surface);
}

.shc-fact dt,
.shc-glance dt {
	margin: 0 0 0.25rem;
	color: var(--shc-muted);
	font-family: var(--shc-ui);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.shc-fact dd {
	margin: 0;
	color: var(--shc-text);
	font-family: var(--shc-heading);
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.3;
}

.shc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
	gap: clamp(28px, 4.5vw, 72px);
	padding-block: clamp(40px, 5.5vw, 72px);
}

.shc-block + .shc-block {
	margin-top: clamp(40px, 5vw, 60px);
}

.shc-block__title,
.shc-panel__title {
	margin: 0 0 1.1rem;
	color: var(--shc-text);
	font-family: var(--shc-heading);
	font-size: clamp(1.45rem, 2.4vw, 1.9rem);
	font-weight: 800;
	line-height: 1.2;
}

.shc-block__title::before {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	margin-bottom: 0.75rem;
	border-radius: 2px;
	background: var(--shc-accent);
}

.shc-prose {
	max-width: 68ch;
	font-size: 1.14rem;
	line-height: var(--sh-line-height, 1.8);
}

.shc-prose > p {
	margin: 0 0 1.25em;
}

.shc-prose > p:first-child::first-letter {
	float: left;
	margin: 0.08em 0.12em 0 0;
	color: var(--shc-accent-strong);
	font-family: var(--shc-heading);
	font-size: 3.7em;
	font-weight: 800;
	line-height: 0.85;
}

[dir="rtl"] .shc-prose > p:first-child::first-letter {
	float: none;
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.shc-highlights {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: shc-hl;
}

.shc-highlights li {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 84px;
	margin: 0;
	padding: 1rem 1.2rem;
	padding-inline-start: 4.1rem;
	border: 1px solid var(--shc-border);
	border-radius: 12px;
	background: var(--shc-surface);
	font-weight: 600;
	line-height: 1.45;
	counter-increment: shc-hl;
	transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.shc-highlights li:hover {
	border-color: var(--shc-accent);
	box-shadow: var(--shc-shadow);
	transform: translateY(-2px);
}

.shc-highlights li::before {
	content: counter(shc-hl, decimal-leading-zero);
	position: absolute;
	inset-inline-start: 1.1rem;
	top: 50%;
	color: var(--shc-accent);
	font-family: var(--shc-heading);
	font-size: 1.7rem;
	font-weight: 800;
	line-height: 1;
	transform: translateY(-50%);
}

.shc-timeline {
	position: relative;
	margin: 0;
	padding: 0;
	padding-inline-start: 1.9rem;
	list-style: none;
}

.shc-timeline::before {
	content: "";
	position: absolute;
	inset-inline-start: 6px;
	top: 0.5rem;
	bottom: 0.5rem;
	width: 2px;
	background: linear-gradient(to bottom, var(--shc-accent), var(--shc-border));
}

.shc-timeline li {
	position: relative;
	margin: 0 0 1.6rem;
}

.shc-timeline li:last-child {
	margin-bottom: 0;
}

.shc-timeline li::before {
	content: "";
	position: absolute;
	inset-inline-start: calc(-1.9rem + 1px);
	top: 0.35rem;
	width: 12px;
	height: 12px;
	border: 3px solid var(--shc-bg);
	border-radius: 50%;
	background: var(--shc-accent);
	box-shadow: 0 0 0 2px var(--shc-accent);
}

.shc-timeline__year {
	display: block;
	margin-bottom: 0.15rem;
	color: var(--shc-accent-strong);
	font-family: var(--shc-ui);
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.shc-timeline__text {
	font-size: 1.05rem;
	line-height: 1.5;
}

.shc-aside {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	align-self: start;
}

.admin-bar .shc-aside {
	top: 56px;
}

.shc-panel {
	padding: 1.3rem 1.4rem;
	border: 1px solid var(--shc-border);
	border-radius: 14px;
	background: var(--shc-surface);
}

.shc-panel__title {
	font-size: 1.25rem;
}

.shc-glance {
	margin: 0;
}

.shc-glance > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.7rem;
	border-top: 1px dashed var(--shc-border);
}

.shc-glance > div:first-child {
	border-top: 0;
	padding-top: 0;
}

.shc-glance dt {
	flex: none;
	margin: 0.2rem 0 0;
}

.shc-glance dd {
	margin: 0;
	font-weight: 600;
	line-height: 1.45;
	text-align: end;
}

.shc-page .shc-glance a {
	color: var(--shc-accent-strong);
}

.shc-map {
	padding: 0;
	overflow: hidden;
	scroll-margin-top: 80px;
}

.shc-map iframe {
	display: block;
	width: 100%;
	height: 300px;
	border: 0;
}

:root[data-theme="dark"] .shc-map iframe {
	filter: invert(0.9) hue-rotate(180deg) brightness(0.95) contrast(0.9);
}

.shc-page .shc-map__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.9rem 1.2rem;
	color: var(--shc-accent-strong);
	font-family: var(--shc-ui);
	font-size: 0.92rem;
	font-weight: 700;
}

#shc-story {
	scroll-margin-top: 80px;
}

.shc-more {
	padding-bottom: clamp(24px, 4vw, 48px);
	border-top: 1px solid var(--shc-border);
}

/* Shortcode embed (e.g. on the homepage) */

.shc-embed .shc-row__viewport {
	margin-inline: 0;
}

.shc-embed .shc-row__track {
	padding-inline: 2px;
	scroll-padding-inline: 2px;
}

/* ---------------------------------------------------------------------
 * Urdu: Nastaliq needs room to breathe.
 * ------------------------------------------------------------------- */

[dir="rtl"] .shc-hero__title {
	font-size: clamp(2.1rem, 5vw, 4.2rem);
	line-height: 1.75;
	letter-spacing: 0;
}

[dir="rtl"] .shc-hero__tagline,
[dir="rtl"] .shc-intro__text {
	line-height: 2.1;
}

[dir="rtl"] .shc-eyebrow,
[dir="rtl"] .shc-kicker,
[dir="rtl"] .shc-fact dt,
[dir="rtl"] .shc-glance dt,
[dir="rtl"] .shc-badge {
	font-family: inherit;
	letter-spacing: 0;
	text-transform: none;
	font-size: 0.85rem;
}

[dir="rtl"] .shc-card__title {
	font-size: 1.05rem;
	line-height: 1.9;
}

[dir="rtl"] .shc-card__meta,
[dir="rtl"] .shc-hero__meta,
[dir="rtl"] .shc-btn,
[dir="rtl"] .shc-chip,
[dir="rtl"] .shc-row__more,
[dir="rtl"] .shc-crumbs,
[dir="rtl"] .shc-map__link,
[dir="rtl"] .shc-timeline__year {
	font-family: inherit;
	letter-spacing: 0;
}

[dir="rtl"] .shc-row__title,
[dir="rtl"] .shc-block__title,
[dir="rtl"] .shc-intro__title,
[dir="rtl"] .shc-fact dd {
	line-height: 1.9;
}

[dir="rtl"] .shc-prose {
	line-height: 2.2;
}

[dir="rtl"] .shc-row__more:hover .shc-chev {
	transform: rotate(135deg);
}

/* ---------------------------------------------------------------------
 * Small screens
 * ------------------------------------------------------------------- */

@media (max-width: 960px) {
	.shc-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.shc-aside {
		position: static;
	}
}

@media (max-width: 640px) {
	.shc-hero--slider {
		height: clamp(560px, 88vh, 720px);
	}

	.shc-hero__shade,
	[dir="rtl"] .shc-hero__shade {
		background:
			linear-gradient(to top, rgb(8 6 4 / 96%) 0%, rgb(8 6 4 / 70%) 42%, rgb(8 6 4 / 10%) 75%),
			linear-gradient(to bottom, rgb(8 6 4 / 50%) 0%, rgb(8 6 4 / 0%) 20%);
	}

	.shc-dots {
		inset-inline: var(--shc-gutter) auto;
		bottom: 18px;
	}

	.shc-hero__content {
		padding-bottom: 64px;
	}

	.shc-btn {
		flex: 1 1 auto;
		justify-content: center;
		padding-inline: 1.1rem;
	}

	.shc-intro .shc-chips,
	.shc-chips {
		flex-wrap: nowrap;
		margin-inline: calc(var(--shc-gutter) * -1);
		padding-inline: var(--shc-gutter);
		overflow-x: auto;
		scrollbar-width: none;
	}

	.shc-row__track {
		grid-auto-columns: 78%;
		gap: 10px;
	}

	.shc-row--poster .shc-row__track {
		grid-auto-columns: 42%;
	}

	.shc-row--poster:has(.shc-card--ranked) .shc-row__track {
		grid-auto-columns: 62%;
	}

	.shc-facts {
		grid-template-columns: 1fr 1fr;
		margin-top: -48px;
	}

	.shc-fact {
		padding: 0.9rem 1rem;
	}

	.shc-fact dd {
		font-size: 1rem;
	}

	.shc-glance > div {
		flex-direction: column;
		gap: 0.15rem;
	}

	.shc-glance dd {
		text-align: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shc-hero__img,
	.shc-slide.is-active .shc-hero__img {
		animation: none !important;
	}

	.shc-slide,
	.shc-slide .shc-hero__content > *,
	.shc-card__media,
	.shc-card__img,
	.shc-highlights li {
		transition: none !important;
	}
}

@media (max-width: 640px) {
	.shc-hero__meta li:nth-child(n + 4),
	.shc-hero__meta li:not(.shc-hero__unesco):nth-child(3) {
		display: none;
	}
}
