/*
 * Orielle: page-specific layout for the pharmacy, practitioners, acute ailments,
 * location, about, booking and contact templates. Shared components live in main.css;
 * this file only arranges them, using the same custom properties.
 */

/* Hero: text with a label card or portrait beside it */
.pg-hero .split {
	align-items: start;
}

.pg-hero__text > * + * {
	margin-top: 1.25rem;
}

.pg-hero__text .lede {
	max-width: 40ch;
}

.pg-hero__solo {
	max-width: 52rem;
}

.pg-hero__label {
	align-self: start;
}

.pg-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
	margin-top: 2rem;
}

/* Portrait (about) */
.pg-portrait {
	margin: 0;
	background: var(--band);
	aspect-ratio: 4 / 5;
	overflow: hidden;
}

.pg-portrait img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

/* Labelled ruled list: "why this clinic", qualifications */
.pg-points__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.25rem;
}

.pg-points__name {
	font-weight: 400;
	color: var(--ink);
}

.pg-points__note {
	color: var(--muted);
}

@media (min-width: 720px) {
	.pg-points__item {
		grid-template-columns: minmax(12rem, 1fr) 2fr;
		gap: 2rem;
		align-items: baseline;
	}
}

/* Address inside a label row */
.pg-address {
	font-style: normal;
}

/* Clinic cards (booking, contact, pharmacy, acute ailments) */
.pg-clinics {
	margin-top: 2rem;
}

.pg-clinic {
	border-top: 1px solid var(--ink);
	padding-top: 1.5rem;
}

.pg-clinic + .pg-clinic {
	margin-top: 2.5rem;
}

.pg-clinics.grid .pg-clinic + .pg-clinic {
	margin-top: 0;
}

.pg-clinic__address {
	font-style: normal;
	margin-top: 0.75rem;
	font-variant-numeric: tabular-nums;
}

.pg-clinic__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
	margin-top: 1.5rem;
}

/* A single clinic: one card, kept to a readable width (no empty second column) */
.pg-clinics--single {
	max-width: 40rem;
}

/* Contact: ways to get in touch */
.pg-contact__ways > h2 + .ruled-list {
	margin-top: 1rem;
}

.pg-contact__ways > .ruled-list + h2 {
	margin-top: 2.5rem;
}

/* Safety note: uses .note from main.css (one dark rule above and below, no box). */
.pg-note p {
	margin: 0;
}

.pg-note strong {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 400;
}

/* Closing band: text and action side by side on wide screens */
.pg-cta {
	display: grid;
	gap: 1.5rem;
	align-items: end;
}

@media (min-width: 900px) {
	.pg-cta {
		grid-template-columns: 7fr 5fr;
		gap: 3rem;
	}

	.pg-cta > :last-child {
		justify-self: end;
	}
}

/* Extra page content and forms */
.pg-prose {
	margin-top: 2rem;
}

.pg-form {
	margin-top: 2rem;
}

.pg-reg {
	margin-top: clamp(2.5rem, 5vw, 4rem);
	max-width: 40rem;
}

/* Small screens */
@media (max-width: 599px) {
	.pg-actions,
	.pg-clinic__actions {
		flex-direction: column;
		align-items: flex-start;
	}

}

/* Medical consultations hub: the two tiles reuse the home tile styles */
.pg-tiles {
	max-width: calc(var(--max) + 2 * var(--gutter));
	padding-bottom: 0;
}

.home-tile__img--ink {
	background: var(--ink);
}

.home-tile__img--band {
	background: var(--band);
}

.pg-tiles__list {
	max-width: 34em;
}

.pg-band {
	padding-block: 0;
}

/* Skincare page image slot: flat tone block when no image is set */
.pg-media {
	background: var(--mid);
	aspect-ratio: 4 / 5;
	overflow: hidden;
}

.pg-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Lede pairs in a hero: the second is body-sized */
.pg-hero__text .lede + .lede {
	font-size: 18px;
}

/* Why a private pharmacy: a ruled grid of benefits. */
.benefits {
	list-style: none;
	margin: 48px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 40px 48px;
}
.benefits li {
	border-top: 1px solid var(--ink);
	padding-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.benefits p { margin: 0; }
