/* ------------------------------------------------------------------
   TSC Clinics – single clinic page
   Colors are variables so they're easy to match to the theme.
   ------------------------------------------------------------------ */

.clinic-single {
	--clinic-accent: #1c5a96;      /* icons, headings */
	--clinic-badge: #e8762d;       /* default badge if a designation has no Badge Color */
	--clinic-border: #e2e6ea;
	--clinic-muted: #5b6670;
	--clinic-soft: #f5f7f9;
}

.clinic-single__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-top: 1.5rem;
}

@media (min-width: 900px) {
	.clinic-single__layout {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 3rem;
	}
}

/* Designation badges */
.clinic-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.clinic-badge {
	display: inline-block;
	padding: 0.35em 0.8em;
	background: var(--badge-bg, var(--clinic-badge));
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
}

.clinic-single__institution {
	margin: 0 0 1.25rem;
	font-size: 1.15rem;
	font-weight: 600;
}

/* Icon + text rows */
.clinic-row {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.clinic-icon {
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.15em;
	color: var(--clinic-accent);
}

.clinic-row address {
	margin: 0;
	font-style: normal;
}

.clinic-directions {
	display: inline-block;
	margin-top: 0.35rem;
	font-weight: 600;
}

.clinic-contact__title,
.clinic-contact__name {
	display: block;
}

.clinic-contact-list {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.clinic-contact-list .clinic-row {
	margin-bottom: 0.6rem;
	padding: 0;
}

.clinic-contact-list .clinic-row::before {
	display: none; /* Cancel theme bullets, if any. */
}

.clinic-contact-list a {
	word-break: break-word;
}

/* Sections */
.clinic-single__description,
.clinic-section {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--clinic-border);
}

.clinic-section h2 {
	margin-top: 0;
	color: var(--clinic-accent);
}

.clinic-services {
	columns: 2 14rem;
	column-gap: 2rem;
}

.clinic-services li {
	break-inside: avoid;
}

/* Sidebar */
.clinic-logo,
.clinic-designation-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.25rem;
	padding: 1.25rem;
	background: var(--clinic-soft);
}

.clinic-logo img,
.clinic-designation-logo img {
	display: block;
	max-width: 100%;
	max-height: 140px;
	width: auto;
	height: auto;
}

.clinic-designation-logo {
	background: transparent;
	padding: 0;
}

.clinic-features {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--clinic-border);
	list-style: none;
}

.clinic-feature {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.4rem 0;
	font-weight: 600;
}

.clinic-feature::before {
	display: none;
}

.clinic-feature .clinic-icon {
	width: 1.75rem;
	height: 1.75rem;
	margin: 0;
}

.clinic-map {
	width: 100%;
	height: 260px;
	border: 1px solid var(--clinic-border);
	z-index: 0; /* Keep Leaflet panes under the site header/menus. */
}

/* Footer of the page */
.clinic-back {
	margin-top: 2.5rem;
	font-weight: 600;
}

.clinic-disclaimer {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--clinic-border);
	color: var(--clinic-muted);
	font-size: 0.85rem;
	line-height: 1.5;
}

/* In case the theme doesn't define it */
.clinic-single .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
