/* ============================================================
   Stop Hubs – Schedule Table  v1.3.22
   Design: Matches trolleyco.ca timetable screenshot
   Author: Vista Radio - Ashley Roberts
   ============================================================ */

.sh-schedule-wrap {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	max-width: 960px;
	margin: 0 auto 40px;
}

.sh-schedule-title {
	font-size: 1.4em;
	font-weight: 700;
	margin: 0 0 8px;
	color: #1a1a1a;
}

.sh-schedule-desc {
	font-size: .93em;
	color: #4b5563;
	margin: 0 0 10px;
	line-height: 1.6;
}

.sh-schedule-time-note {
	margin: 0 0 14px;
	color: #5c2d6e;
	font-size: .86em;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.sh-schedule-empty {
	color: #6b7280;
	font-style: italic;
}

/* ── Table shell ── */
.sh-schedule-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* ── Table base ── */
.sh-schedule-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .88em;
	min-width: 520px;
}

/* ── Header row ── */
.sh-schedule-table thead tr {
	background: #f5f0eb;
}

.sh-schedule-table thead th {
	padding: 11px 14px;
	font-weight: 600;
	font-size: .85em;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #4b3728;
	border: 1px solid #ddd6cc;
	text-align: center;
}

.sh-sch-col-label {
	text-align: left !important;
	min-width: 160px;
	width: 200px;
}

.sh-sch-col-time {
	min-width: 110px;
}

/* ── Section divider rows (DOWNTOWN, NORTHBOUND, SOUTHBOUND) ── */
.sh-sch-section td.sh-sch-section-label {
	background: #5c2d6e;   /* purple/maroon matching screenshot */
	color: #ffffff;
	font-weight: 700;
	font-size: .82em;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 9px 14px;
	border: none;
}

/* ── Stop rows ── */
.sh-sch-stop:nth-child(odd)  { background: #ffffff; }
.sh-sch-stop:nth-child(even) { background: #faf8f5; }

.sh-sch-stop-name {
	padding: 10px 14px;
	font-weight: 600;
	font-size: .83em;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #2d1f12;
	border: 1px solid #e5ddd4;
	text-align: center;
	vertical-align: middle;
	line-height: 1.3;
}

/* ── Time cells ── */
.sh-sch-cell {
	padding: 10px 12px;
	text-align: center;
	vertical-align: middle;
	border: 1px solid #e5ddd4;
	font-size: .88em;
	color: #1a1a1a;
	font-weight: 500;
	line-height: 1.35;
	white-space: nowrap;
}

.sh-sch-empty {
	background: #fdf9f6;
	color: transparent; /* hide empty cells */
}

.sh-sch-has-time {
	background: #ffffff;
}

.sh-sch-cell-value {
	display: block;
}

/* Note line inside a cell (e.g. "FINAL DROP OFF") */
.sh-sch-cell-note {
	display: block;
	font-size: .78em;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #5c2d6e;
	margin-top: 2px;
	white-space: normal;
}

/* ── Hover highlight ── */
.sh-sch-stop:hover .sh-sch-stop-name,
.sh-sch-stop:hover .sh-sch-cell {
	background: #f0e8f5;
}

/* ── Responsive stacked schedule ── */
@media (max-width: 720px) {
	.sh-schedule-wrap {
		max-width: 100%;
	}

	.sh-schedule-scroll {
		overflow-x: visible;
	}

	.sh-schedule-table {
		border-collapse: separate;
		display: block;
		font-size: .95em;
		min-width: 0;
		width: 100%;
	}

	.sh-schedule-table thead {
		clip: rect(0 0 0 0);
		height: 1px;
		overflow: hidden;
		position: absolute;
		white-space: nowrap;
		width: 1px;
	}

	.sh-schedule-table tbody,
	.sh-schedule-table tr,
	.sh-schedule-table td {
		display: block;
		width: 100%;
	}

	.sh-sch-section {
		margin: 18px 0 10px;
	}

	.sh-sch-section td.sh-sch-section-label {
		border-radius: 6px;
		box-sizing: border-box;
		padding: 10px 13px;
	}

	.sh-sch-stop {
		background: #ffffff;
		border: 1px solid #e5ddd4;
		border-radius: 6px;
		box-shadow: 0 3px 12px rgba(45, 31, 18, .08);
		margin: 0 0 12px;
		overflow: hidden;
	}

	.sh-sch-stop-name {
		background: #f5f0eb;
		border: 0;
		border-bottom: 1px solid #e5ddd4;
		box-sizing: border-box;
		font-size: .86em;
		letter-spacing: .04em;
		min-width: 0;
		padding: 12px 14px;
		text-align: left;
	}

	.sh-sch-cell {
		align-items: center;
		border: 0;
		border-bottom: 1px solid #eee6dc;
		box-sizing: border-box;
		display: flex;
		font-size: .95em;
		gap: 16px;
		justify-content: space-between;
		min-height: 44px;
		padding: 10px 14px;
		text-align: right;
		white-space: normal;
	}

	.sh-sch-cell:last-child {
		border-bottom: 0;
	}

	.sh-sch-cell::before {
		color: #6b5a49;
		content: attr(data-label);
		flex: 1 1 auto;
		font-size: .78em;
		font-weight: 800;
		letter-spacing: .07em;
		text-align: left;
		text-transform: uppercase;
	}

	.sh-sch-cell-value {
		flex: 0 1 auto;
		min-width: 84px;
	}

	.sh-schedule-table td.sh-sch-empty {
		display: none;
	}

	.sh-sch-has-time {
		background: #ffffff;
	}

	.sh-sch-stop:hover .sh-sch-stop-name {
		background: #f5f0eb;
	}

	.sh-sch-stop:hover .sh-sch-cell {
		background: #ffffff;
	}

	.sh-sch-cell-note {
		text-align: right;
	}
}
