/**
 * Temple introduction (home page), directly under the welcome hero.
 *
 * Two columns on desktop: the temple photograph on the left, the invitation
 * on the right. Below 900px they stack, picture first.
 *
 * The darshan timings sit under the photograph as a small card with a live
 * marker showing where the current moment falls in the day's darshan window
 * - see assets/js/darshan-status.js. Without JavaScript the card still reads
 * correctly, it simply has no marker.
 *
 * Roboto Slab and Montserrat are already loaded by the page; #ed9321 is the
 * accent used elsewhere on the site.
 */

.temple-intro {
	--ti-accent: #ed9321;
	--ti-ink: #17323f;
	--ti-body: #4d6069;
	--ti-cream: #fbf6ee;

	/* Full-bleed: escape the 1240px container this sits inside. */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);

	background: var(--ti-cream);
	font-family: "Montserrat", sans-serif;
}

.temple-intro__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	align-items: center;
	gap: 3.5rem;
	max-width: 1240px;
	margin: 0 auto;
	padding: 4.5rem 1.25rem;
}

/* ---- photograph ---- */

.temple-intro__figure {
	position: relative;
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(23, 50, 63, 0.18);
}

.temple-intro__figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

/* The thin inset rule that sits just inside the picture's edge. */
.temple-intro__figure::after {
	content: "";
	position: absolute;
	inset: 0.9rem;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 10px;
	pointer-events: none;
}

/* ---- darshan timings ---- */

.darshan {
	margin-top: 1.25rem;
	padding: 1.15rem 1.35rem 1.3rem;
	border: 1px solid rgba(23, 50, 63, 0.12);
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 4px 14px rgba(23, 50, 63, 0.06);
}

.darshan__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.1rem;
}

.darshan__label {
	color: var(--ti-ink);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.darshan__status {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--ti-body);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.darshan__dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	background: rgba(23, 50, 63, 0.28);
}

.darshan.is-open .darshan__dot {
	background: #2e9e5b;
	box-shadow: 0 0 0 3px rgba(46, 158, 91, 0.18);
}

.darshan.is-open .darshan__status {
	color: #2e7d51;
}

/* Opening and closing times. */
.darshan__track {
	display: flex;
	align-items: baseline;
	gap: 0.7rem;
}

.darshan__sep {
	color: rgba(23, 50, 63, 0.4);
	font-family: "Roboto Slab", Georgia, serif;
	font-size: 1.25rem;
	line-height: 1;
}

.darshan__time {
	flex: none;
	color: var(--ti-ink);
	font-family: "Roboto Slab", Georgia, serif;
	font-size: 1.35rem;
	line-height: 1;
	white-space: nowrap;
}

.darshan__time small {
	font-size: 0.62em;
	letter-spacing: 0.06em;
}

.darshan__note {
	margin: 0.9rem 0 0;
	color: var(--ti-body);
	font-size: 0.78rem;
	letter-spacing: 0.02em;
}

/* ---- copy ---- */

.temple-intro__eyebrow {
	margin: 0 0 0.85rem;
	color: var(--ti-accent);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

.temple-intro__title {
	margin: 0 0 1.4rem;
	color: var(--ti-ink);
	font-family: "Roboto Slab", Georgia, serif;
	font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
	font-weight: 400;
	line-height: 1.15;
}

.temple-intro__body {
	margin: 0 0 1.5rem;
	color: var(--ti-body);
	font-size: 1.02rem;
	line-height: 1.75;
}

.temple-intro__quote {
	margin: 0 0 1.5rem;
	padding: 0.15rem 0 0.15rem 1.15rem;
	border-left: 3px solid var(--ti-accent);
	color: var(--ti-ink);
	font-family: "Roboto Slab", Georgia, serif;
	font-size: 1.02rem;
	font-style: italic;
	line-height: 1.7;
}

.temple-intro__quote cite {
	display: block;
	margin-top: 0.5rem;
	color: var(--ti-body);
	font-family: "Montserrat", sans-serif;
	font-size: 0.76rem;
	font-style: normal;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.temple-intro__link {
	display: inline-block;
	margin-top: 0.4rem;
	padding: 0.85rem 1.9rem;
	border: 2px solid var(--ti-accent);
	border-radius: 999px;
	color: var(--ti-ink);
	font-size: 0.98rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease,
		transform 0.15s ease;
}

.temple-intro__link:hover,
.temple-intro__link:focus {
	background: var(--ti-accent);
	color: #ffffff;
	transform: translateY(-1px);
}

@media (max-width: 900px) {
	.temple-intro__inner {
		grid-template-columns: 1fr;
		gap: 2.25rem;
		padding: 3rem 1.25rem;
	}

	.temple-intro__figure img {
		aspect-ratio: 16 / 10;
	}
}

@media (max-width: 520px) {
	.darshan__track {
		gap: 0.6rem;
	}

	.darshan__time {
		font-size: 1.1rem;
	}

	.temple-intro__link {
		display: block;
		text-align: center;
	}
}
