/* Downloads section */
.bs-downloads {
--dl-primary: #175cff;
--dl-hover: #1350e0;
--dl-navy: #0b163f;
--dl-muted: #6b7694;
--dl-line: #e3eaf5;

position: relative;
isolation: isolate;
width: 100%;
max-width: none;
margin: 0;
padding: clamp(56px, 7vw, 88px) 24px;
min-height: 0;
overflow: hidden;

background: transparent;
color: var(--dl-navy);

font-family: "Inter", system-ui, sans-serif;
font-size: 14px;
font-weight: 400;
line-height: 1.65;
text-align: left;

-webkit-font-smoothing: antialiased;
}

.bs-downloads *,
.bs-downloads *::before,
.bs-downloads *::after {
box-sizing: border-box;
}

.bs-downloads .bs-dl-inner {
position: relative;
z-index: 1;
max-width: 1120px;
margin: 0 auto;
}

/* Resource Center-style heading */
.bs-downloads .bs-dl-heading {
display: flex;
flex-direction: column;
align-items: center;

max-width: 820px;
margin: 0 auto 34px;
padding: 0;

background: transparent;
text-align: center;
}

/* Blue badge */
.bs-downloads .bs-dl-badge {
display: inline-block;
margin: 0 0 16px;
padding: 5px 10px;

border: 0;
border-radius: 4px;
background: #175cff;
color: #fff;

font-family: "Inter", system-ui, sans-serif;
font-size: 13px;
font-weight: 700;
line-height: 1.3;
letter-spacing: 0.06em;
text-transform: uppercase;
}

/* Main title */
.bs-downloads .bs-dl-title {
margin: 8px 0 16px;
padding: 0;

color: #0b163f;

font-family: "Inter", system-ui, sans-serif;
font-size: clamp(2.2rem, 4.2vw, 54px);
font-weight: 800;
line-height: 1.05;
letter-spacing: -0.02em;
}

/* Same gradient as the Resource Center heading */
.bs-downloads .bs-dl-gradient {
display: inline-block;

background: linear-gradient(
100deg,
#175cff 0%,
#1b7fcb 52%,
#5cc9a7 100%
);

-webkit-background-clip: text;
background-clip: text;

color: transparent;
-webkit-text-fill-color: transparent;
}

/* Subtitle */
.bs-downloads .bs-dl-subtitle {
max-width: 62ch;
margin: 0 auto;
padding: 0;

color: #6b7694;

font-family: "Inter", system-ui, sans-serif;
font-size: 16px;
font-weight: 400;
line-height: 1.65;

text-align: center;
}

/* Dropdown */
.bs-downloads .bs-dl-picker {
width: 480px;
max-width: 100%;
margin: 0 auto;
}

.bs-downloads .bs-dl-picker select {
display: block;
width: 100%;
min-height: 52px;
margin: 0;
padding: 12px 44px 12px 18px;

border: 1px solid #dce2ef;
border-radius: 10px;

background:
#fff
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%230b163f' stroke-width='1.8'%3E%3Cpath d='m4 7 5 5 5-5'/%3E%3C/svg%3E")
no-repeat right 16px center;

color: var(--dl-navy);

font-family: "Inter", system-ui, sans-serif;
font-size: 15px;
font-weight: 400;
line-height: 1.5;

appearance: none;
-webkit-appearance: none;
cursor: pointer;

box-shadow: 0 1px 3px rgba(11, 22, 63, 0.05);
}

.bs-downloads .bs-dl-picker select:hover {
border-color: var(--dl-primary);
}

.bs-downloads select:focus-visible,
.bs-downloads a:focus-visible {
outline: 3px solid rgba(23, 92, 255, 0.45);
outline-offset: 4px;
}

/* Results appear only after selecting an application */
.bs-downloads .bs-dl-panel {
margin: 0;
text-align: left;
}

.bs-downloads .bs-dl-panel:not(:empty) {
margin-top: 40px;
}

/* Download table */
.bs-downloads .bs-dl-table {
width: 100%;
table-layout: fixed;
margin: 0;

border-collapse: separate;
border-spacing: 0;
overflow: hidden;

border: 1px solid var(--dl-line);
border-radius: 10px;
background: #fff;

color: var(--dl-navy);
font: inherit;

box-shadow:
0 1px 2px rgba(11, 22, 63, 0.06),
0 1px 3px rgba(11, 22, 63, 0.08);
}

.bs-downloads .bs-dl-table th {
padding: 18px 24px;

border: 0;
border-bottom: 1px solid var(--dl-line);

background: #f8f9fa;
color: var(--dl-muted);

text-align: left;
font-size: 12px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
}

.bs-downloads .bs-dl-table th:first-child {
width: 32%;

color: var(--dl-navy);
font-size: 15px;
font-weight: 700;
letter-spacing: -0.015em;
text-transform: none;
}

.bs-downloads .bs-dl-table th:nth-child(3) {
width: 42%;
}

.bs-downloads .bs-dl-table th:nth-child(4) {
width: 26%;
}

.bs-downloads .bs-dl-table th:nth-child(2),
.bs-downloads .bs-dl-table td:nth-child(2) {
display: none;
}

.bs-downloads .bs-dl-table td {
padding: 24px;
border: 0;

text-align: left;
vertical-align: middle;
overflow-wrap: anywhere;
}

.bs-downloads .bs-dl-table .bs-dl-spacer td {
height: 16px;
padding: 0;
background: #fff;
}

.bs-downloads .bs-dl-previous:not(:last-child) td {
border-bottom: 1px solid #eef1f8;
}

.bs-downloads .bs-dl-previous:hover td {
background: #f8faff;
}

/* Product names */
.bs-downloads .bs-dl-name {
margin: 0;
color: var(--dl-navy);

font-size: 15px;
font-weight: 700;
line-height: 1.45;
letter-spacing: -0.015em;
}

.bs-downloads .bs-dl-latest .bs-dl-name {
font-size: 20px;
}

/* Download buttons
Sized to match the mega menu buttons (Articles, Videos, eBooks):
8px padding, 6px radius, 13px / 600 text, 6px icon gap, 75px width. */
.bs-downloads .bs-dl-files {
white-space: normal;
}

.bs-downloads .bs-dl-icon,
.bs-downloads .bs-dl-text {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;

min-width: 75px;
min-height: 0;
margin: 3px 6px 3px 0;
padding: 7px;

border: 1px solid #dce2ef;
border-radius: 6px;

background: #fff;
color: var(--dl-navy);

font-family: "Inter", system-ui, sans-serif;
font-size: 13px;
font-weight: 600;
line-height: 1.3;

text-decoration: none;
white-space: nowrap;
vertical-align: middle;

transition:
background 0.15s ease,
color 0.15s ease,
border-color 0.15s ease;
}

/* Latest version: primary blue buttons, same size as the menu buttons */
.bs-downloads .bs-dl-latest .bs-dl-icon,
.bs-downloads .bs-dl-latest .bs-dl-text {
padding: 8px;

border: 0;
border-radius: 6px;

background: var(--dl-primary);
color: #fff;
font-size: 13px;
}

.bs-downloads .bs-dl-icon img {
display: block;
flex: none;
width: 15px;
height: 15px;
object-fit: contain;
filter: brightness(0) invert(1);
}

.bs-downloads .bs-dl-icon img[hidden] {
display: none;
}

.bs-downloads .bs-dl-latest .bs-dl-icon:hover,
.bs-downloads .bs-dl-latest .bs-dl-text:hover {
background: var(--dl-hover);
color: #fff;
}

.bs-downloads .bs-dl-text:hover {
border-color: var(--dl-primary);
color: var(--dl-primary);
}

/* Documentation links: underlined text, no arrow */
.bs-downloads .bs-dl-info a {
display: block;
width: fit-content;
max-width: 100%;
margin: 7px 0;

color: var(--dl-navy);
font-size: 13px;
font-weight: 600;

text-decoration: underline;
text-decoration-color: rgba(11, 22, 63, 0.35);
text-decoration-thickness: 1px;
text-underline-offset: 4px;

transition:
color 0.15s ease,
text-decoration-color 0.15s ease;
}

.bs-downloads .bs-dl-info a:hover {
color: var(--dl-primary);
text-decoration-color: currentColor;
}

.bs-downloads .bs-dl-note {
margin: 8px 0 0;
color: var(--dl-muted);
font-size: 12px;
font-style: italic;
}

/* Mobile */
@media (max-width: 767.98px) {
.bs-downloads {
padding: 56px 20px;
}

.bs-downloads .bs-dl-heading {
margin-bottom: 28px;
}

.bs-downloads .bs-dl-picker {
width: 100%;
}

.bs-downloads .bs-dl-picker select {
font-size: 14px;
}

.bs-downloads .bs-dl-panel:not(:empty) {
margin-top: 28px;
}

.bs-downloads .bs-dl-table,
.bs-downloads .bs-dl-table tbody,
.bs-downloads .bs-dl-table tr,
.bs-downloads .bs-dl-table th:first-child,
.bs-downloads .bs-dl-table td {
display: block;
width: 100%;
}

.bs-downloads .bs-dl-table th:nth-child(3),
.bs-downloads .bs-dl-table th:nth-child(4),
.bs-downloads .bs-dl-table td:nth-child(2) {
display: none;
}

.bs-downloads .bs-dl-table th:first-child {
padding: 16px 20px;
}

.bs-downloads .bs-dl-table td {
padding: 6px 20px;
}

.bs-downloads .bs-dl-table td:first-child {
padding-top: 22px;
}

.bs-downloads .bs-dl-table td:last-child {
padding-bottom: 22px;
}

.bs-downloads .bs-dl-previous:not(:last-child) {
border-bottom: 1px solid #eef1f8;
}

.bs-downloads .bs-dl-previous:not(:last-child) td {
border-bottom: 0;
}

.bs-downloads .bs-dl-table .bs-dl-spacer td {
height: 8px;
padding: 0;
}

.bs-downloads .bs-dl-info a {
display: inline-block;
margin-right: 16px;
}
}

@media (prefers-reduced-motion: reduce) {
.bs-downloads *,
.bs-downloads *::before,
.bs-downloads *::after {
animation: none !important;
transition: none !important;
}
}