/*
 * Assisted Living section styles.
 *
 * ISOLATION: every selector is prefixed with .csc-al-* so this stylesheet can
 * never cascade into the existing nursing-home theme. Loaded only on AL hub
 * pages, the AL CPT, and pages whose content contains a `[csc_al_*]` shortcode
 * (see Frontend\Assets). Safe to delete the file with zero NH-side impact.
 */

.csc-al-breadcrumb {
	font-size: 0.85rem;
	color: #4b5563;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}
.csc-al-breadcrumb li { display: inline; }
.csc-al-breadcrumb li + li::before {
	content: " \203A ";
	margin: 0 0.35rem;
	color: #9ca3af;
}
.csc-al-breadcrumb a { color: #1d4ed8; text-decoration: none; }
.csc-al-breadcrumb a:hover { text-decoration: underline; }

.csc-al-intro {
	font-size: 1.05rem;
	color: #374151;
	margin: 0.25rem 0 1.25rem;
}
.csc-al-updated {
	display: inline-block;
	margin-left: 0.5rem;
	font-size: 0.85rem;
	color: #6b7280;
}

.csc-al-tldr {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem;
	margin: 0 0 1.75rem;
	padding: 1rem 1.25rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}
.csc-al-tldr-label {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7280;
	margin-bottom: 0.25rem;
}
.csc-al-tldr-value {
	font-size: 1.5rem;
	font-weight: 600;
	color: #111827;
	line-height: 1.1;
}
.csc-al-tldr-sub {
	font-size: 0.8rem;
	color: #6b7280;
	margin-top: 0.15rem;
}

.csc-al-section { margin: 2rem 0; }
.csc-al-section h2 { font-size: 1.35rem; margin: 0 0 0.85rem; color: #111827; }

.csc-al-city-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.csc-al-city-grid li {
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 0.85rem 1rem;
	background: #fff;
	transition: border-color .12s ease, box-shadow .12s ease;
}
.csc-al-city-grid li:hover {
	border-color: #c7d2fe;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.csc-al-city-grid a {
	display: block;
	font-weight: 600;
	color: #1d4ed8;
	text-decoration: none;
	font-size: 1rem;
	margin-bottom: 0.2rem;
}
.csc-al-city-grid a:hover { text-decoration: underline; }
.csc-al-city-meta { font-size: 0.8rem; color: #6b7280; }

.csc-al-sibling-pills {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}
.csc-al-sibling-pills a {
	display: inline-block;
	padding: 0.3rem 0.65rem;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #fff;
	color: #1f2937;
	text-decoration: none;
	font-size: 0.85rem;
}
.csc-al-sibling-pills a:hover { border-color: #1d4ed8; color: #1d4ed8; }

.csc-al-facility-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.75rem;
}
.csc-al-facility-list li {
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 1rem 1.15rem;
	background: #fff;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.4rem 1rem;
	align-items: center;
}
.csc-al-facility-list .csc-al-facility-name {
	font-weight: 600;
	font-size: 1.05rem;
	color: #1d4ed8;
	text-decoration: none;
}
.csc-al-facility-list .csc-al-facility-name:hover { text-decoration: underline; }
.csc-al-facility-list .csc-al-facility-meta {
	grid-column: 1 / -1;
	font-size: 0.85rem;
	color: #6b7280;
}

.csc-al-pill {
	display: inline-block;
	padding: 0.25rem 0.6rem;
	font-size: 0.85rem;
	font-weight: 600;
	border-radius: 999px;
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
	white-space: nowrap;
}
.csc-al-pill--pending {
	background: #f3f4f6;
	color: #6b7280;
	border-color: #e5e7eb;
}

.csc-al-header { margin: 0 0 1rem; }
.csc-al-header h1 { margin: 0 0 0.35rem; }
.csc-al-sub { color: #4b5563; margin: 0; }

.csc-al-signal {
	margin: 1.5rem 0;
	padding: 1.5rem;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 8px;
	text-align: center;
}
.csc-al-score-value {
	font-size: 3rem;
	font-weight: 700;
	color: #0c4a6e;
	line-height: 1;
}
.csc-al-score-max { font-size: 1.25rem; color: #075985; }
.csc-al-band {
	display: block;
	margin-top: 0.4rem;
	font-weight: 600;
	color: #0c4a6e;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.85rem;
}
.csc-al-score-note { margin: 0.75rem 0 0; font-size: 0.9rem; color: #475569; }
.csc-al-score--pending { background: #f9fafb; border-color: #e5e7eb; }

.csc-al-details dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.4rem 1rem;
	margin: 0;
}
.csc-al-details dt { color: #6b7280; font-size: 0.9rem; }
.csc-al-details dd { margin: 0; color: #111827; }

.csc-al-nearby-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.75rem;
}
.csc-al-nearby-list li {
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 0.85rem 1rem;
}
.csc-al-nearby-list a { font-weight: 600; color: #1d4ed8; text-decoration: none; }
.csc-al-nearby-list a:hover { text-decoration: underline; }

.csc-al-methodology {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	background: #f9fafb;
	border-left: 3px solid #1d4ed8;
	font-size: 0.95rem;
	color: #374151;
}
.csc-al-methodology a { color: #1d4ed8; }

.csc-al-cross-link {
	margin: 2rem 0 1rem;
	padding: 0.85rem 1.15rem;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #fafafa;
	font-size: 0.95rem;
	color: #4b5563;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}
.csc-al-cross-link a { color: #1d4ed8; font-weight: 600; text-decoration: none; }
.csc-al-cross-link a:hover { text-decoration: underline; }

.csc-al-pagination {
	margin: 1.5rem 0 0;
	font-size: 0.9rem;
	color: #4b5563;
}
.csc-al-pagination a { color: #1d4ed8; text-decoration: none; margin: 0 0.4rem; }

.csc-al-empty {
	padding: 1.5rem;
	background: #f9fafb;
	border: 1px dashed #d1d5db;
	border-radius: 6px;
	color: #6b7280;
	text-align: center;
}
