/*
 * Something Historic Castles & Forts: cinematic castle 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.
 */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.shk-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"] .shk-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%);
}

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

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

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

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

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

.shk-hero__title {
	margin: 0 0 0.9rem;
	color: #fff;
	font-family: var(--shk-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;
}

.shk-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(--shk-ui);
	font-size: 0.92rem;
	font-weight: 600;
}

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

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

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

.shk-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;
}

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

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

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

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

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

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

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

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

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

.shk-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;
}

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

/* Slider */

.shk-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Breadcrumbs and kicker */

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

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

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

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

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

/* Chevron used in links and buttons. */

.shk-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"] .shk-chev {
	transform: rotate(135deg);
}

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

.shk-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;
}

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

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

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

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

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

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

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

.shk-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)
 * ------------------------------------------------------------------- */

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

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

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

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

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

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

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

.shk-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(--shk-gutter) 22px;
	scroll-padding-inline: var(--shk-gutter);
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

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

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

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

.shk-page .shk-row__nav,
.shk-embed .shk-row__nav {
	position: absolute;
	z-index: 4;
	top: 12px;
	bottom: 22px;
	display: grid;
	place-items: center;
	width: max(44px, calc(var(--shk-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.shk-card__media {
	position: relative;
	z-index: 1;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--shk-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;
}

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

.shk-card__img,
.shk-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);
}

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

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

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

.shk-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%);
}

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

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

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

.shk-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;
}

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

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

.shk-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(--shk-ui);
	font-size: 0.64rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	backdrop-filter: blur(4px);
}

/* Ranked "top 10" posters */

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

.shk-card__rank {
	position: relative;
	z-index: 0;
	margin-inline-end: -0.14em;
	color: var(--shk-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(--shk-muted);
	paint-order: stroke fill;
	user-select: none;
}

/* Grid */

.shk-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);
}

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

/* ---------------------------------------------------------------------
 * Castle page
 * ------------------------------------------------------------------- */

.shk-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(--shk-border);
	border-radius: 14px;
	background: var(--shk-border);
	box-shadow: var(--shk-shadow), 0 20px 50px rgb(0 0 0 / 18%);
}

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

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

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

.shk-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);
}

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

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

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

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

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

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

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

.shk-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: shk-hl;
}

.shk-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(--shk-border);
	border-radius: 12px;
	background: var(--shk-surface);
	font-weight: 600;
	line-height: 1.45;
	counter-increment: shk-hl;
	transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.shk-glance {
	margin: 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	.shk-aside {
		position: static;
	}
}

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

	.shk-hero__shade,
	[dir="rtl"] .shk-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%);
	}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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