.walks-table-wrapper {
	overflow-x: auto;
	margin: 1.5em 0;
	-webkit-overflow-scrolling: touch;
}

.walks-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 8px;
	overflow: hidden;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	background: #fff;
	box-shadow: 0 4px 3px rgba(15, 23, 42, 0.06);
}

.walks-table caption {
	caption-side: top;
	text-align: left;
	font-weight: 600;
	margin-bottom: 0.5em;
}

.walks-table th,
.walks-table td {
	padding: 0.85em 1em;
	vertical-align: middle;
	text-align: left;
	border-bottom: 1px solid #e8edf2;
}

.walks-table thead th {
	background-color: #f4f6f8;
	color: #3d4f5f;
	font-weight: 600;
	font-size: 0.9375rem;
	text-transform: none !important;
	letter-spacing: normal;
}

.walks-table tbody tr:last-child td {
	border-bottom: none;
}

.walks-table tbody tr:nth-child(even) {
	background-color: #fafbfc;
}

.walks-table tbody tr:hover {
	background-color: #f3f7fa;
}

.walks-table__number {
	width: 1%;
	min-width: max-content;
	white-space: nowrap;
	color: #5c6b7a;
	font-variant-numeric: tabular-nums;
}

.walks-table thead th.walks-table__number {
	white-space: nowrap;
	width: 1%;
	min-width: max-content;
}

.walks-table__name strong {
	font-weight: 600;
	color: #1f2933;
}

.walks-table__name a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: rgba(31, 41, 51, 0.35);
	text-underline-offset: 0.15em;
}

.walks-table__name a:hover,
.walks-table__name a:focus {
	text-decoration-color: currentColor;
}

.walks-table__distance {
	color: #3d4f5f;
}

.walks-table__grade {
	text-align: left;
}

/* Metro-style grade pills */
.walks-grade {
	display: inline-block;
	padding: 0.3em 0.75em;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	min-width: 5.5em;
	border: 1px solid transparent;
	width: 100%;
}

.walks-grade--easy {
	background-color: #e8f5e9;
	color: #2e7d32;
	border-color: #c8e6c9;
}

.walks-grade--leisurely {
	background-color: #fff8e1;
	color: #b8860b;
	border-color: #ffecb3;
}

.walks-grade--moderate {
	background-color: #fff3e0;
	color: #e65100;
	border-color: #ffe0b2;
}

.walks-grade--none {
	background-color: #f4f6f8;
	color: #8a97a5;
	border-color: #e8edf2;
	min-width: auto;
}

.walks-grade-footnote {
	margin-top: 0.75em;
	font-size: 0.9em;
	color: #5c6b7a;
}

.walks-empty {
	margin: 1em 0;
}

@media screen and (max-width: 640px) {
	.walks-table-wrapper {
		overflow-x: visible;
	}

	.walks-table {
		display: block;
		font-size: 0.9375rem;
		border: none;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
	}

	/* Keep headers available to screen readers */
	.walks-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.walks-table tbody {
		display: block;
	}

	.walks-table tbody tr {
		display: flex;
		flex-direction: column;
		background: #fff;
		border: 1px solid #dde3ea;
		border-radius: 8px;
		box-shadow: 0 4px 3px rgba(15, 23, 42, 0.06);
		margin-bottom: 1rem;
		overflow: hidden;
	}

	.walks-table tbody tr:last-child {
		margin-bottom: 0;
	}

	.walks-table tbody tr:nth-child(even),
	.walks-table tbody tr:hover {
		background: #fff;
	}

	.walks-table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 1rem;
		padding: 0.75em 1em;
		border-bottom: 1px solid #e8edf2;
		text-align: right;
		width: 100%;
		min-width: 0;
	}

	.walks-table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: #3d4f5f;
		text-align: left;
		flex: 0 0 auto;
		margin-right: auto;
		padding-right: 1rem;
	}

	.walks-table td:last-child {
		border-bottom: none;
	}

	/* Walk name as card header */
	.walks-table__name {
		order: -1;
		display: block;
		text-align: left;
		background: #f4f6f8;
		border-bottom: 1px solid #dde3ea;
		padding: 1em;
	}

	.walks-table__name::before {
		display: none;
	}

	.walks-table__name strong {
		font-size: 1.05rem;
	}

	.walks-table__number {
		color: #3d4f5f;
	}

	.walks-table__grade {
		text-align: right;
	}

	.walks-grade {
		width: auto;
		min-width: 5.5em;
	}

	td.walks-table__name a:after {
	    content: '(View PDF)';
	}
}