#downloads-page {
  min-height: 100vh;
  padding: 54px 30px 0 30px;
}

#downloads-top-section {
	margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#downloads-subtitle {
	font-size: 20px;
}

#download-dropdowns-section {
  margin: 50px auto 100px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;

  @media (min-width: 1024px) {
		margin-bottom: 200px;
    flex-direction: row;
    align-items: unset;
    justify-content: center;
  }
}

#download-tables-section {
  margin-bottom: 60px;
}

.download-dropdown {
	position: relative;
}

.download-dropdown-trigger {
	padding: 8px 16px;
	display: flex;
	align-items: center;
	border-radius: 8px;
	background: #11171c;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	cursor: pointer;
	user-select: none;
}

.download-dropdown-labels {
	margin: 0px 22px 0px 12px;
	display: flex;
	flex-direction: column;
}

.download-dropdown-sublabel {
	color: #aab1d6;
	font-size: 12px;
}

.download-dropdown-label {
	color: var(--color-fg);
	font-size: 16px;
}

.download-dropdown-arrow {
	padding: 8px;
	width: 16px;
	height: 16px;
	opacity: 0.5;
	transition: transform 0.2s ease, opacity 0.2s ease;;
}

.download-dropdown-trigger:hover .download-dropdown-arrow {
	opacity: 1;
	transform: rotate(180deg);
}

/* Bridge the gap between trigger and options */
.download-dropdown-trigger::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: 12px;
}

.download-dropdown-options {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 100%;
	background: var(--color-fg);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	overflow: hidden;
	z-index: 10;
	animation: open-menu 0.15s ease;
}

.download-dropdown:hover .download-dropdown-options {
	display: block;
}

@keyframes open-menu {
	from { opacity: 0; transform: scaleY(0.9); }
	to   { opacity: 1; transform: scaleY(1); }
}

.download-dropdown-options a {
	display: block;
	padding: 10px 18px;
	color: var(--color-text);
	text-decoration: none;
	white-space: nowrap;
}

.download-dropdown-options a:hover {
	background: #f1f5f9;
	color: #3085c7;
}

.download-table-section {
	padding: 50px 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
	border-top: 1px solid var(--color-border);
  gap: 2rem;

  @media (min-width: 1024px) {
    flex-direction: row;
    align-items: unset;
    justify-content: center;
		gap: 8rem;
  }
}

.download-table-title {
	margin: 0px;

	@media (min-width: 1024px) {
    width: 237px;
  }
}

.download-table {
	@media (max-width: 1024px) {
		width: 100%;
  }
}

.download-table-row-separator {
	border-bottom: 1px solid var(--color-border);
}

.download-table-row {
	padding: 16px 0px;
	min-width: 100%;
	display: flex;
	justify-content: space-between;

	@media (min-width: 1024px) {
		width: 370px;
  }
}

.download-table-button-secondary-outline {
  border: 1px solid var(--color-secondary);
  background-color: var(--color-fg);
  color: var(--color-secondary);

  &:hover {
    background-color: var(--color-secondary-hover);
  }
}