.coast-route-page,
.coast-routes-page {
	color: var(--coast-navy, #152a59);
	margin: 0 auto;
	max-width: calc(var(--coast-content-max, 1140px) + (var(--coast-page-gutter, 1.25rem) * 2));
	padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
	padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

body.coast-schedules-page-body .site {
	max-width: 100%;
}

body.coast-schedules-page-body .site-content,
body.coast-schedules-page-body .content-area,
body.coast-schedules-page-body .site-main,
body.coast-schedules-page-body .inside-article,
body.coast-schedules-page-body .entry-content {
	margin: 0;
	max-width: none;
	padding: 0;
	width: 100%;
}

body.coast-schedules-page-body .entry-header {
	display: none;
}

body.coast-schedules-page-body #primary,
body.coast-schedules-page-body .content-area {
	float: none;
	width: 100%;
}

body.coast-schedules-page-body #right-sidebar,
body.coast-schedules-page-body #left-sidebar,
body.coast-schedules-page-body .widget-area.sidebar {
	display: none;
}

.coast-schedules-page {
	background: #fff;
	color: var(--coast-navy, #152a59);
	overflow: hidden;
}

/* GeneratePress constrains and pads legacy Group block inner containers. */
body.coast-schedules-page-body .coast-schedules-page > .wp-block-group__inner-container {
	margin: 0;
	max-width: none;
	padding: 0;
	width: 100%;
}

.coast-schedules-page .wp-block-cover,
.coast-schedules-page .wp-block-columns,
.coast-schedules-page .wp-block-group {
	margin-bottom: 0;
	margin-top: 0;
}

.coast-schedules-cover {
	align-items: center;
	min-height: clamp(17rem, 31vw, 24.5rem) !important;
	max-width: none !important;
	padding: clamp(1.5rem, 4vw, 3rem);
	position: relative;
	width: 100% !important;
}

.coast-schedules-cover .wp-block-cover__image-background {
	object-position: center center;
}

.coast-schedules-cover .wp-block-cover__inner-container {
	margin: 0 auto;
	max-width: 1120px;
	width: 100%;
}

.coast-schedules-hero-title {
	background: rgba(255, 255, 255, 0.55);
	border-radius: 0.5rem;
	box-shadow: 0 7px 16px rgba(21, 42, 89, 0.2);
	color: #fff;
	font-size: clamp(2rem, 4vw, 3.4rem);
	font-weight: 800;
	line-height: 1.04;
	margin: 0;
	max-width: 21rem;
	padding: clamp(1rem, 2.5vw, 1.6rem);
	text-shadow: 0 2px 7px rgba(0, 0, 0, 0.45);
	text-align: center;
	transform: translateX(-2rem);
}

.coast-schedules-page .coast-schedules-intro,
.coast-schedules-page .coast-schedules-route-section,
.coast-schedules-page .coast-schedules-map-planner {
	margin-left: auto;
	margin-right: auto;
}

.coast-schedules-intro {
	align-items: center !important;
	gap: clamp(1.5rem, 5vw, 3.5rem);
	margin: 0 auto;
	max-width: 1120px;
	padding: clamp(2rem, 5vw, 3.75rem) clamp(1.25rem, 3vw, 2rem);
}

.coast-schedules-intro .wp-block-image img {
	aspect-ratio: 1.58 / 1;
	border-radius: 0.5rem;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.coast-schedules-intro p {
	color: #3b3839;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.45;
	margin-bottom: 1rem;
}

.coast-schedules-transit-band {
	background-color: transparent;
	background-image: url("https://coastbus.wpenginepowered.com/wp-content/uploads/2026/09/transit-bg.png");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	color: #fff;
	max-width: none !important;
	padding: clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 3vw, 2rem);
	position: relative;
	text-align: center;
	width: 100% !important;
}

.coast-schedules-transit-band__inner {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin: 0 auto;
	max-width: 1000px;
}

.coast-schedules-transit-band__inner > div {
	width: 100%;
}

.coast-schedules-transit-band__logo {
	display: none;
}

.coast-schedules-transit-band h2 {
	align-items: center;
	color: #fff;
	display: flex;
	font-size: clamp(1.35rem, 2.4vw, 2rem);
	font-weight: 800;
	gap: 0.85rem;
	justify-content: center;
	line-height: 1.12;
	margin: 0 0 0.35rem;
}

.coast-schedules-transit-band h2::before {
	background: url('../routes/transit-logo.png') center / contain no-repeat;
	content: '';
	flex: 0 0 3.5rem;
	height: 3.5rem;
}

.coast-schedules-transit-band p {
	color: #fff;
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1.35;
	margin: 0 auto;
	max-width: 840px;
}

.coast-schedules-transit-band__stores {
	height: auto;
	margin-top: 0.25rem;
	max-width: min(100%, 395px);
}

.coast-schedules-route-section {
	margin: 0 auto;
	max-width: 1120px;
	padding: clamp(2rem, 5vw, 3.75rem) clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
}

.coast-schedule-route-group {
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.coast-schedule-route-group h2 {
	align-items: center;
	color: var(--coast-blue, #004280);
	display: flex;
	font-size: clamp(1.25rem, 2vw, 1.65rem);
	font-weight: 800;
	gap: 1rem;
	line-height: 1.1;
	margin: 0 0 1.35rem;
	text-transform: uppercase;
}

.coast-schedule-route-group h2::after {
	background: #d9dde2;
	content: "";
	display: block;
	flex: 1 1 auto;
	height: 1px;
}

.coast-schedule-route-items {
	display: grid;
	gap: 1.25rem 2rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.coast-schedule-route-link {
	align-items: center;
	color: #061942;
	display: grid;
	font-size: 0.86rem;
	font-weight: 700;
	gap: 0.8rem;
	grid-template-columns: 2.8rem minmax(0, 1fr);
	line-height: 1.25;
	text-decoration: none;
}

.coast-schedule-route-link:hover span:last-child,
.coast-schedule-route-link:focus-visible span:last-child {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.18em;
}

.coast-schedule-route-link:focus-visible {
	outline: 3px solid var(--coast-cyan-bright, #01bedb);
	outline-offset: 4px;
}

.coast-schedule-route-link .coast-route-pill {
	border-radius: 0.45rem;
	font-size: 1.15rem;
	height: 2.8rem;
	width: 2.8rem;
}

.coast-schedule-route-link .coast-route-pill--long {
	font-size: 0.85rem;
}

.coast-schedules-map-planner {
	align-items: start;
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
	grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.7fr);
	margin: 0 auto;
	max-width: 1120px;
	padding: 0 clamp(1.25rem, 3vw, 2rem) clamp(3rem, 6vw, 4.5rem);
}

.coast-schedules-map-planner > .wp-block-group__inner-container {
	display: contents;
}

.coast-schedules-map img {
	border: 0.45rem solid #e6f5f7;
	display: block;
	height: auto;
	width: 100%;
}

.coast-schedules-planner-card {
	background: #fff;
	border-radius: 0.5rem;
	box-shadow: 0 7px 16px rgba(21, 42, 89, 0.2);
	overflow: hidden;
}

.coast-schedules-planner-card h2 {
	align-items: center;
	background: var(--coast-blue, #004280);
	color: #fff;
	display: flex;
	font-size: 1rem;
	font-weight: 800;
	gap: 0.5rem;
	justify-content: center;
	margin: 0;
	padding: 0.8rem 1rem;
}

.coast-schedules-planner-card h2 img {
	height: 1.3rem;
	width: 1.3rem;
}

.coast-schedules-planner-card form {
	display: grid;
	gap: 1rem;
	padding: 1.5rem;
}

.coast-schedules-planner-card label {
	color: #061942;
	display: grid;
	font-size: 0.72rem;
	font-weight: 700;
	gap: 0.25rem;
}

.coast-schedules-planner-card input,
.coast-schedules-planner-card select {
	border: 1px solid #c9ced6;
	border-radius: 0;
	min-height: 2.7rem;
	padding: 0.35rem 0.5rem;
	width: 100%;
}

.coast-schedules-planner-card__row {
	display: grid;
	gap: 0.65rem;
	grid-template-columns: 1fr 1fr;
}

.coast-schedules-planner-card button {
	background: #004280;
	border: 0;
	border-radius: 0.35rem;
	color: #fff;
	cursor: pointer;
	font-size: 0.78rem;
	font-weight: 800;
	justify-self: start;
	min-height: 44px;
	padding: 0.65rem 1rem;
	text-transform: uppercase;
}

.coast-schedules-planner-card button:hover {
	background: #01a8c1;
}

.coast-route-hero,
.coast-routes-hero {
	align-items: center;
	display: flex;
	gap: 1.5rem;
	justify-content: space-between;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.coast-route-eyebrow {
	color: var(--coast-teal, #0c6b6d);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin: 0 0 0.35rem;
	text-transform: uppercase;
}

.coast-route-hero h1,
.coast-routes-hero h1 {
	color: var(--coast-navy, #152a59);
	font-size: clamp(2.2rem, 4vw, 4rem);
	font-weight: 800;
	line-height: 1.05;
	margin: 0;
}

.coast-route-summary {
	font-size: 1.1rem;
	line-height: 1.5;
	margin: 1rem 0 0;
	max-width: 46rem;
}

.coast-route-pill {
	--coast-route-color: #5d6369;
	--coast-route-contrast: #fff;
	align-items: center;
	background: var(--coast-route-color);
	border-radius: 50%;
	color: var(--coast-route-contrast);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: clamp(1.5rem, 3vw, 2.35rem);
	font-weight: 800;
	height: clamp(4.8rem, 9vw, 7rem);
	justify-content: center;
	line-height: 1;
	width: clamp(4.8rem, 9vw, 7rem);
}

.coast-route-pill--long {
	font-size: clamp(1rem, 2vw, 1.45rem);
}

.coast-route-alert,
.coast-route-section {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.coast-route-alert {
	background: var(--coast-light, #eefafc);
	border-left: 0.45rem solid var(--coast-cyan-bright, #01bedb);
	padding: 1.25rem 1.5rem;
}

.coast-route-alert h2,
.coast-route-section h2 {
	color: var(--coast-teal, #0c6b6d);
	font-size: clamp(1.45rem, 2.4vw, 2rem);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 0.85rem;
}

.coast-route-alert p,
.coast-route-section p {
	line-height: 1.55;
	margin: 0 0 1rem;
}

.coast-route-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.coast-route-above {
	max-width: 58rem;
}

.coast-route-action {
	background: var(--coast-blue, #004280);
	border: 2px solid var(--coast-blue, #004280);
	border-radius: var(--coast-radius, 0.35rem);
	color: #fff;
	display: inline-flex;
	font-weight: 800;
	line-height: 1.1;
	padding: 0.8rem 1rem;
	text-decoration: none;
}

.coast-route-action:hover,
.coast-route-action:focus-visible {
	background: #fff;
	color: var(--coast-blue, #004280);
	outline: 3px solid var(--coast-cyan-bright, #01bedb);
	outline-offset: 2px;
}

.coast-route-layout {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
	margin-bottom: clamp(2rem, 5vw, 4rem);
}

.coast-route-layout .coast-route-section {
	background: #f0f1f3;
	border-radius: var(--coast-radius, 0.45rem);
	margin: 0;
	padding: clamp(1.25rem, 3vw, 2rem);
}

.coast-route-placeholder {
	border: 2px dashed #79cdcd;
	border-radius: var(--coast-radius, 0.35rem);
	color: var(--coast-charcoal, #3b3839);
	margin-top: 1rem;
	min-height: 12rem;
	padding: 1rem;
}

.coast-route-effective-date {
	color: var(--coast-charcoal, #3b3839);
	display: inline-block;
	font-size: 0.9rem;
	font-weight: 700;
	margin-left: 0.35rem;
}

.coast-schedule-table-group {
	margin: 0 0 1.5rem;
}

.coast-schedule-table-group h3 {
	background: #3b3839;
	color: #fff;
	display: inline-flex;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	margin: 0;
	padding: 0.55rem 0.8rem;
	text-transform: uppercase;
}

.coast-schedule-table-scroll {
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--coast-border, #d9dde2);
	overflow-x: auto;
}

.coast-schedule-table-scroll:focus-visible {
	outline: 3px solid var(--coast-cyan-bright, #01bedb);
	outline-offset: 3px;
}

.coast-schedule-table {
	border-collapse: collapse;
	font-size: 0.82rem;
	min-width: 760px;
	width: 100%;
}

.coast-schedule-table caption {
	font-weight: 700;
	padding: 0.75rem;
	text-align: left;
}

.coast-schedule-table th,
.coast-schedule-table td {
	border: 1px solid var(--coast-border, #d9dde2);
	padding: 0.55rem 0.65rem;
	text-align: center;
	vertical-align: middle;
	white-space: nowrap;
}

.coast-schedule-table thead th {
	background: var(--coast-soft, #f7f7f8);
	color: var(--coast-navy, #152a59);
	font-weight: 800;
}

.coast-schedule-table tbody th {
	background: #fff;
	color: var(--coast-navy, #152a59);
	font-weight: 800;
	min-width: 14rem;
	text-align: left;
	white-space: normal;
}

.coast-schedule-table tbody th span {
	color: var(--coast-charcoal, #3b3839);
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	margin-top: 0.15rem;
}

.coast-schedule-table tbody tr:nth-child(even) td,
.coast-schedule-table tbody tr:nth-child(even) th {
	background: #f0f1f3;
}

.coast-route-notes {
	background: #fff;
	border: 2px solid #79cdcd;
	margin-top: 1.5rem;
	padding: 1rem 1.25rem;
}

.coast-route-notes h3 {
	color: var(--coast-teal, #0c6b6d);
	font-size: 1rem;
	font-weight: 800;
	margin: 0 0 0.75rem;
}

.coast-route-notes ul {
	margin: 0;
	padding-left: 1.25rem;
}

.coast-route-notes li {
	line-height: 1.45;
	margin-bottom: 0.45rem;
}

.coast-route-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.coast-route-card {
	align-items: center;
	background: #fff;
	border: 1px solid var(--coast-border, #d9dde2);
	border-radius: var(--coast-radius, 0.45rem);
	box-shadow: 0 4px 14px rgba(21, 42, 89, 0.1);
	display: flex;
	gap: 1rem;
	padding: 1rem;
}

.coast-route-card .coast-route-pill {
	font-size: 1.25rem;
	height: 3.75rem;
	width: 3.75rem;
}

.coast-route-card h2,
.coast-route-card h3 {
	font-size: 1.15rem;
	line-height: 1.25;
	margin: 0 0 0.25rem;
}

.coast-route-card h2 a,
.coast-route-card h3 a {
	color: var(--coast-blue, #004280);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
}

.coast-route-card-meta {
	color: var(--coast-charcoal, #3b3839);
	font-size: 0.9rem;
	margin: 0;
}

.coast-route-wotr .coast-wotr-directory {
	margin-top: 1.5rem;
}

@media (max-width: 1000px) {
	.coast-schedule-route-items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

@media (max-width: 760px) {
	.coast-schedules-intro {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.coast-schedule-route-items,
	.coast-schedules-map-planner {
		grid-template-columns: 1fr;
	}

	.coast-schedules-map-planner,
	.coast-schedules-route-section {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.coast-schedules-hero-title {
		max-width: 18rem;
		transform: none;
	}

	.coast-route-hero,
	.coast-routes-hero {
		align-items: flex-start;
		flex-direction: column;
	}

	.coast-route-layout {
		grid-template-columns: 1fr;
	}
}
