/* Downloads page – scoped to .bs-downloads */
.bs-downloads {
	--dl-primary: var(--bs-primary, #175cff);
	--dl-navy: var(--bs-bicomthemeone, #0b163f);
	--dl-text: var(--bs-body-color, #575757);
	--dl-muted: var(--bs-gray-600, #6c757d);
	--dl-line: var(--bs-gray-300, #dee2e6);
	--dl-soft: var(--bs-bicomthemetwo, #f8f9fa);
	max-width: 960px;
	margin-inline: auto;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	color: var(--dl-text);
}

/* Title */
.bs-downloads .bs-dl-title {
	margin-top: 3rem;
	color: var(--dl-navy);
}

.bs-downloads .bs-dl-lead {
	margin: 1rem 0 0;
	color: var(--dl-navy);
}

/* Dropdown */
.bs-dl-picker {
	width: fit-content;
	max-width: 100%;
	margin: 2.5rem auto 0;
}

.bs-dl-picker select {
	width: 100%;
	border-radius: var(--bs-border-radius-lg, .5rem);
	cursor: pointer;
}

.bs-dl-picker select:focus {
	border-color: var(--dl-primary);
	box-shadow: 0 0 0 .25rem rgba(23, 92, 255, .15);
}

.bs-dl-panel {
	margin-top: 3rem;
	text-align: left;
}

/* Table card */
.bs-dl-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	border: 1px solid var(--dl-line);
	border-radius: var(--bs-border-radius-xl, 1rem);
	box-shadow: 0 .5rem 1.5rem rgba(11, 22, 63, .06);
	overflow: hidden;
}

.bs-dl-table th {
	padding: .85rem 1.25rem;
	background: var(--dl-soft);
	border-bottom: 1px solid var(--dl-line);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--dl-muted);
	text-align: center;
}

.bs-dl-table th:first-child {
	width: 34%;
	text-align: left;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	color: var(--dl-navy);
}

.bs-dl-table th:nth-child(2),
.bs-dl-table td:nth-child(2) {
	display: none;
}

.bs-dl-table td {
	padding: 1rem 1.25rem;
	text-align: center;
	vertical-align: middle;
}

.bs-dl-table td:first-child {
	text-align: left;
}

.bs-dl-table .bs-dl-spacer td {
	padding: 0;
	height: 1rem;
	background: #fff;
}

.bs-dl-previous:not(:last-child) td {
	border-bottom: 1px solid var(--dl-line);
}

.bs-dl-previous:hover td {
	background: var(--dl-soft);
}

/* Product + version */
.bs-dl-name {
	margin: 0;
	font-weight: 700;
	color: var(--dl-navy);
}

.bs-dl-latest .bs-dl-name {
	font-size: 18px;
	color: var(--dl-primary);
}

/* Download icons */
.bs-dl-files {
	white-space: normal;
}

.bs-dl-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 4px;
	border: 1px solid var(--dl-line);
	border-radius: var(--bs-border-radius-lg, .5rem);
	background: #fff;
	vertical-align: middle;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.bs-dl-icon img {
	display: block;
	opacity: .75;
	transition: opacity .15s ease;
}

.bs-dl-icon:hover {
	border-color: var(--dl-primary);
	box-shadow: 0 .25rem .75rem rgba(23, 92, 255, .15);
	transform: translateY(-1px);
}

.bs-dl-icon:hover img {
	opacity: 1;
}

/* Download text links */
.bs-downloads .bs-dl-text {
	display: inline-block;
	margin: 3px 2px;
	padding: 3px 12px;
	font-size: 13px;
	font-weight: 500;
	color: var(--dl-text);
	text-decoration: none;
	border: 1px solid var(--dl-line);
	border-radius: var(--bs-border-radius-pill, 50rem);
	background: #fff;
	transition: color .15s ease, border-color .15s ease;
}

.bs-downloads .bs-dl-text:hover {
	color: var(--dl-primary);
	border-color: var(--dl-primary);
}

/* Info column */
.bs-dl-info a {
	display: block;
	margin: 4px 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--dl-primary);
	text-decoration: underline;
	text-underline-offset: .2em;
}

.bs-dl-info a:hover {
	text-decoration: underline;
}

.bs-dl-note {
	margin: 6px 0 0;
	font-size: 12px;
	font-style: italic;
	color: var(--dl-muted);
}

/* Phones: stack the columns */
@media (max-width: 767.98px) {
	.bs-dl-table th:nth-child(3),
	.bs-dl-table th:nth-child(4) {
		display: none;
	}

	.bs-dl-table tr,
	.bs-dl-table th:first-child,
	.bs-dl-table td {
		display: block;
		width: auto;
		text-align: left;
	}

	.bs-dl-table td {
		padding: .35rem 1rem;
	}

	.bs-dl-table td:first-child {
		padding-top: 1rem;
	}

	.bs-dl-table td:last-child {
		padding-bottom: 1rem;
	}

	.bs-dl-previous:not(:last-child) {
		border-bottom: 1px solid var(--dl-line);
	}

	.bs-dl-previous:not(:last-child) td {
		border-bottom: 0;
	}

	.bs-dl-icon {
		margin: 4px 6px 4px 0;
	}

	.bs-dl-text {
		margin-left: 0;
	}
}
