/* Transit Card element — see docs/superpowers/specs/2026-08-06-transit-card-element-design.md */

.nt-transit-card {
	max-width: 100%;
	border-radius: 14px;
	font-family: inherit;
	container-type: inline-size;
}

.nt-transit-card--border {
	border: 1px solid #d1d9e6;
}

.nt-transit-card--shadow {
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

.nt-transit-card--border-shadow {
	border: 1px solid #d1d9e6;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.nt-transit-card__header {
	padding: 28px 28px 24px;
	border-radius: 14px 14px 0 0;
}

.nt-transit-card__icon {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}

.nt-transit-card__icon i {
	font-size: 24px;
	line-height: 1;
}

.nt-transit-card__title {
	font-size: 26px;
	line-height: 1.25;
	font-weight: 700;
	margin: 0 0 12px;
}

.nt-transit-card__desc {
	font-size: 16px;
	line-height: 1.55;
	margin: 0;
}

.nt-transit-card__body {
	background: #ffffff;
	padding: 22px 28px 26px;
	border-radius: 0 0 14px 14px;
}

.nt-transit-card__badge {
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	padding: 10px 18px;
	border-radius: 20px;
	margin-bottom: 18px;
	word-break: break-word;
}

.nt-transit-card__row {
	border-top: 1px dashed #e5e7eb;
	padding: 12px 0;
	font-size: 15px;
	line-height: 1.5;
}

.nt-transit-card__cta {
	display: block;
	width: 100%;
	text-align: center;
	border: 0;
	border-radius: 8px;
	padding: 16px;
	font-weight: 700;
	font-size: 16px;
	margin-top: 16px;
	text-decoration: none;
	box-sizing: border-box;
}

.nt-transit-card__cta:focus-visible {
	outline: 3px solid #111111;
	outline-offset: 2px;
}

/* Narrow columns (Salient supports down to 1/4-width, ~270-350px) — text wraps,
   button stays full width and tappable. Uses a container query (not a media
   query) because this needs to key off the card's own rendered width, which
   can be narrow even on a wide desktop viewport when placed in a narrow
   Salient column — a viewport media query would miss that case entirely. */
@container (max-width: 340px) {
	.nt-transit-card__header,
	.nt-transit-card__body {
		padding-left: 20px;
		padding-right: 20px;
	}
}
