.ilbm-section {
	--ilbm-yellow: var(--ilb-yellow, #ffd400);
	--ilbm-ink: var(--ilb-ink, #171717);
	--ilbm-muted: #626262;
	max-width: 1200px;
	margin: 0 auto 3.5rem;
	padding: 0 1.5rem;
	color: var(--ilbm-ink);
}

.ilbm-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 1.25rem;
}

.ilbm-heading h2,
.ilbm-heading p {
	margin: 0;
}

.ilbm-heading h2 {
	font-size: clamp(1.45rem, 3vw, 1.9rem);
	line-height: 1.15;
	letter-spacing: -.025em;
}

.ilbm-heading > p {
	max-width: 570px;
	color: var(--ilbm-muted);
	font-size: .94rem;
	line-height: 1.5;
	text-align: right;
}

.ilbm-heading .ilbm-eyebrow {
	margin-bottom: .3rem;
	color: #6b5a00;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .095em;
	line-height: 1.2;
	text-transform: uppercase;
}

.ilbm-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.ilbm-cards[aria-busy="true"] {
	opacity: .72;
	transition: opacity .15s ease;
}

.ilbm-card {
	display: flex;
	min-width: 0;
	min-height: 280px;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e8e8e8;
	border-top: 5px solid var(--ilbm-yellow);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .065);
}

.ilbm-card__header {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 18px 20px 16px;
	border-bottom: 1px solid #eeeeee;
}

.ilbm-icon {
	display: flex;
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	align-items: center;
	justify-content: center;
	border-radius: 13px;
	background: var(--ilbm-ink);
	color: var(--ilbm-yellow);
}

.ilbm-icon svg {
	display: block;
	width: 27px;
	height: 27px;
}

.ilbm-card__header > div {
	min-width: 0;
}

.ilbm-card__header h3,
.ilbm-card__header p {
	margin: 0;
}

.ilbm-card__header h3 {
	color: var(--ilbm-ink);
	font-size: 1.05rem;
	line-height: 1.25;
}

.ilbm-card__header p {
	margin-top: .2rem;
	overflow: hidden;
	color: var(--ilbm-muted);
	font-size: .82rem;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ilbm-live {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	border-radius: 999px;
	padding: .38em .72em;
	font-size: .67rem;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

.ilbm-live::before {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	content: "";
}

.ilbm-live.is-live {
	background: #e4f5e9;
	color: #12632b;
}

.ilbm-live.is-recent {
	background: #fff2c2;
	color: #705700;
}

.ilbm-live.is-unavailable {
	background: #eeeeee;
	color: #555555;
}

.ilbm-departures,
.ilbm-road-events {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ilbm-departures li {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) auto;
	align-items: center;
	gap: 13px;
	padding: 13px 20px;
	border-bottom: 1px solid #f0f0f0;
}

.ilbm-departures time {
	color: var(--ilbm-ink);
	font-size: 1.1rem;
	font-weight: 850;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.ilbm-departure__journey {
	display: block;
	min-width: 0;
}

.ilbm-departure__journey strong,
.ilbm-departure__journey > span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ilbm-departure__journey strong {
	font-size: .92rem;
	line-height: 1.3;
}

.ilbm-departure__journey > span {
	margin-top: .16rem;
	color: var(--ilbm-muted);
	font-size: .75rem;
	line-height: 1.3;
}

.ilbm-status {
	border-radius: 999px;
	padding: .38em .68em;
	font-size: .7rem;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

.ilbm-status.is-ontime {
	background: #e4f5e9;
	color: #12632b;
}

.ilbm-status.is-delayed {
	background: #fff2c2;
	color: #705700;
}

.ilbm-status.is-cancelled {
	background: #fde7e7;
	color: #9b1c1c;
}

.ilbm-road-events li {
	padding: 14px 20px;
	border-bottom: 1px solid #f0f0f0;
}

.ilbm-road-events strong,
.ilbm-road-events li > span:last-child {
	display: block;
}

.ilbm-road-events strong {
	margin-top: .5rem;
	font-size: .9rem;
	line-height: 1.42;
}

.ilbm-road-events li > span:last-child {
	margin-top: .3rem;
	color: var(--ilbm-muted);
	font-size: .76rem;
	line-height: 1.4;
}

.ilbm-road-type {
	display: inline-block;
	border-radius: 999px;
	padding: .34em .7em;
	font-size: .66rem;
	font-weight: 800;
	line-height: 1;
}

.ilbm-road-type.is-critical {
	background: #fde7e7;
	color: #9b1c1c;
}

.ilbm-road-type.is-warning {
	background: #fff2c2;
	color: #705700;
}

.ilbm-road-type.is-info {
	background: #e9eef7;
	color: #284d81;
}

.ilbm-clear,
.ilbm-empty {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 14px;
	margin: 18px 20px;
	border-radius: 12px;
	padding: 18px;
}

.ilbm-clear {
	background: #edf8f0;
	color: #145b29;
}

.ilbm-clear > span {
	display: flex;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #19703a;
	color: #fff;
	font-size: 1rem;
	font-weight: 800;
}

.ilbm-clear strong,
.ilbm-clear p,
.ilbm-empty strong,
.ilbm-empty span {
	display: block;
	margin: 0;
}

.ilbm-clear strong,
.ilbm-empty strong {
	font-size: .92rem;
	line-height: 1.35;
}

.ilbm-clear p,
.ilbm-empty span {
	margin-top: .32rem;
	font-size: .78rem;
	line-height: 1.45;
}

.ilbm-empty {
	display: block;
	background: #f4f4f4;
	color: #494949;
}

.ilbm-empty--warning {
	background: #fff7da;
	color: #624e00;
}

.ilbm-card__source {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: auto;
	padding: 11px 20px;
	background: #fafafa;
	color: #6a6a6a;
	font-size: .68rem;
	line-height: 1.35;
}

.ilbm-card__source time {
	flex: 0 0 auto;
}

.ilbm-card__times {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .15rem .5rem;
}

.ilbm-card__times > span::before {
	margin-right: .5rem;
	content: "·";
}

.ilbm-card__source a {
	color: var(--ilbm-ink);
	font-weight: 700;
	text-decoration-color: var(--ilbm-yellow);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.ilbm-card__source a:hover,
.ilbm-card__source a:focus-visible {
	background: var(--ilbm-yellow);
	color: #111;
	outline: 2px solid var(--ilbm-ink);
	outline-offset: 2px;
	text-decoration: none;
}

/* ---------- Compact homepage road check ---------- */
.ilb-now-dashboard {
	display: grid;
	grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
	align-items: stretch;
	gap: 18px;
	max-width: 1200px;
	margin: 2.5rem auto 3.5rem;
	padding: 0 1.5rem;
}

.ilb-now-dashboard .ilb-weather,
.ilb-now-dashboard .ilbm-section--compact {
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	padding: 0;
}

.ilb-now-dashboard .ilb-weather__card {
	grid-template-columns: minmax(0, 1fr);
	align-content: start;
	gap: 16px;
	height: 100%;
	padding: 20px;
}

.ilb-now-dashboard .ilb-weather__metrics {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid rgba(255, 255, 255, .16);
	border-left: 0;
	padding-top: 14px;
}

.ilb-now-dashboard .ilb-weather__metrics > div {
	padding: 2px 13px;
}

.ilb-now-dashboard .ilb-weather__metrics > div:first-child {
	padding-left: 0;
}

.ilb-now-dashboard .ilb-weather__metrics > div:last-child {
	padding-right: 0;
	border-right: 0;
}

.ilb-now-dashboard .ilb-weather__source {
	max-width: none;
	text-align: left;
}

.ilb-now-dashboard .ilb-weather__source time {
	display: inline;
}

.ilb-now-dashboard .ilb-weather__source time::after {
	content: " · ";
}

.ilbm-section--compact {
	overflow: hidden;
	border: 1px solid #e5e5e5;
	border-top: 5px solid var(--ilbm-yellow);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .065);
}

.ilbm-heading--compact {
	align-items: start;
	margin: 0;
	padding: 17px 20px 14px;
	border-bottom: 1px solid #eeeeee;
}

.ilbm-heading--compact h2 {
	font-size: clamp(1.25rem, 2.3vw, 1.55rem);
}

.ilbm-heading--compact > p {
	max-width: 330px;
	font-size: .82rem;
	line-height: 1.4;
}

.ilbm-section--compact .ilbm-cards {
	display: block;
}

.ilbm-compact-row {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 13px 20px;
	border-bottom: 1px solid #efefef;
}

.ilbm-compact-row__mark {
	display: flex;
	width: 34px;
	height: 34px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #eeeeee;
	color: #555555;
	font-size: .88rem;
	font-weight: 900;
}

.ilbm-compact-row.is-clear .ilbm-compact-row__mark {
	background: #19703a;
	color: #fff;
}

.ilbm-compact-row.is-warning .ilbm-compact-row__mark,
.ilbm-compact-row.is-recent .ilbm-compact-row__mark {
	background: #f2c500;
	color: #362c00;
}

.ilbm-compact-row.is-critical .ilbm-compact-row__mark {
	background: #b42318;
	color: #fff;
}

.ilbm-compact-row.is-info .ilbm-compact-row__mark {
	background: #315f9c;
	color: #fff;
}

.ilbm-compact-row__body {
	min-width: 0;
}

.ilbm-compact-row__route {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 9px;
}

.ilbm-compact-row__route h3,
.ilbm-compact-row__body > strong,
.ilbm-compact-row__body > p {
	margin: 0;
}

.ilbm-compact-row__route h3 {
	color: var(--ilbm-ink);
	font-size: .92rem;
	line-height: 1.25;
}

.ilbm-compact-row__route span {
	border-radius: 999px;
	padding: .32em .62em;
	background: #eeeeee;
	color: #555555;
	font-size: .62rem;
	font-weight: 800;
	line-height: 1.1;
}

.ilbm-compact-row.is-clear .ilbm-compact-row__route span {
	background: #e4f5e9;
	color: #12632b;
}

.ilbm-compact-row.is-warning .ilbm-compact-row__route span,
.ilbm-compact-row.is-recent .ilbm-compact-row__route span {
	background: #fff2c2;
	color: #705700;
}

.ilbm-compact-row.is-critical .ilbm-compact-row__route span {
	background: #fde7e7;
	color: #9b1c1c;
}

.ilbm-compact-row.is-info .ilbm-compact-row__route span {
	background: #e9eef7;
	color: #284d81;
}

.ilbm-compact-row__body > strong {
	display: block;
	margin-top: .32rem;
	color: #272727;
	font-size: .8rem;
	font-weight: 750;
	line-height: 1.32;
}

.ilbm-compact-row__body > p {
	margin-top: .18rem;
	overflow: hidden;
	color: var(--ilbm-muted);
	font-size: .7rem;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ilbm-compact-row > time {
	align-self: end;
	color: #777777;
	font-size: .62rem;
	line-height: 1.2;
	white-space: nowrap;
}

.ilbm-compact__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 11px 20px;
	background: #fafafa;
	color: #6a6a6a;
	font-size: .68rem;
	line-height: 1.35;
}

.ilbm-compact__footer a {
	color: var(--ilbm-ink);
	font-weight: 800;
	text-decoration-color: var(--ilbm-yellow);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.ilbm-compact__footer a:hover,
.ilbm-compact__footer a:focus-visible {
	background: var(--ilbm-yellow);
	color: #111;
	outline: 2px solid var(--ilbm-ink);
	outline-offset: 2px;
	text-decoration: none;
}

/* ---------- Detailed Getting Around view ---------- */
.ilb-archive > .ilbm-section--full {
	margin-top: 2.25rem;
	margin-bottom: 1rem;
}

@media (max-width: 720px) {
	.ilbm-section {
		margin-bottom: 2.8rem;
		padding: 0 1rem;
	}

	.ilbm-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.ilbm-heading {
		display: block;
	}

	.ilbm-heading > p {
		margin-top: .55rem;
		text-align: left;
	}

	.ilbm-card {
		min-height: 0;
	}

	.ilbm-card__header {
		padding: 16px;
	}

	.ilbm-departures li {
		grid-template-columns: 50px minmax(0, 1fr);
		gap: 10px;
		padding: 12px 16px;
	}

	.ilbm-status {
		grid-column: 2;
		justify-self: start;
		margin-top: -5px;
	}

	.ilbm-road-events li {
		padding: 13px 16px;
	}

	.ilbm-clear,
	.ilbm-empty {
		margin: 16px;
		padding: 16px;
	}

	.ilbm-card__source {
		padding: 11px 16px;
	}

	.ilbm-compact-row {
		grid-template-columns: 34px minmax(0, 1fr);
		padding: 13px 16px;
	}

	.ilbm-compact-row > time {
		grid-column: 2;
		justify-self: start;
	}

	.ilbm-compact__footer {
		display: block;
		padding: 11px 16px;
	}

	.ilbm-compact__footer a {
		display: inline-block;
		margin-top: .35rem;
	}
}

@media (max-width: 430px) {
	.ilbm-card__header {
		align-items: flex-start;
	}

	.ilbm-icon {
		width: 42px;
		height: 42px;
		flex-basis: 42px;
	}

	.ilbm-live {
		padding: .38em .58em;
	}

	.ilbm-card__source {
		display: block;
	}

	.ilbm-card__source a {
		display: inline-block;
		margin-top: .35rem;
	}

	.ilbm-card__times {
		display: block;
	}

	.ilbm-card__times > span {
		display: block;
		margin-top: .2rem;
	}

	.ilbm-card__times > span::before {
		display: none;
	}
}

@media (max-width: 920px) {
	.ilb-now-dashboard {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 2.25rem;
		margin-bottom: 2.8rem;
	}

	.ilb-now-dashboard .ilb-weather__card {
		height: auto;
	}

	.ilb-now-dashboard .ilbm-section--compact {
		height: auto;
	}
}

@media (max-width: 600px) {
	.ilb-now-dashboard {
		padding: 0 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ilbm-cards[aria-busy="true"] {
		transition: none;
	}
}
