section {
	padding: 4em 0;
}

.tn-p {
	display: flex;
	justify-content: center;
}

/* Device Downloads List Styles */
.device-downloads {
	margin: 2rem 0;
}

.device-downloads h3 {
	margin-bottom: 1.5rem;
	font-size: 1.25rem;
	font-weight: 600;
}

.download-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.download-item {
	border-radius: 8px;
	transition: background-color 0.2s ease;
}

.download-item:last-child {
	border-bottom: none;
}

/* Full link styling */
.download-link-full {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 1rem;
	text-decoration: none;
	color: inherit;
	border-radius: 8px;
	transition: background-color 0.2s ease;
	min-height: 44px; /* Ensure touch target size */
}

/* Prevent underlines on hover for all text elements */
.download-link-full:hover {
	text-decoration: none;
}

.download-link-full .device-name,
.download-link-full .link {
	text-decoration: none;
}

.download-link-full:hover .device-name,
.download-link-full:hover .link {
	text-decoration: none;
}

/* Light theme hover state */
.download-link-full:hover {
	background-color: rgb(232, 232, 237);
}

/* Dark theme hover state */
body[data-color-scheme="dark"] .download-link-full:hover {
	background-color: rgb(51, 51, 54);
}

/* Device name styling */
.download-link-full .device-name {
	flex: 1;
	margin-right: 1rem;
	line-height: 1.4;
}

/* Download link styling */
.download-link-full .link {
	flex-shrink: 0;
	align-self: center;
}

/* Hide badges mobile */
@media only screen and (max-width: 734px) {
	.badge {
		display: none;
	}
}

@media only screen and (max-width: 734px) {
	section {
		padding: 2em 0;
	}

	.download-link-full {
		align-items: center;
		padding: 0.75rem 1rem;
		min-height: 60px;
	}

	.download-link-full .device-name {
		margin-right: 0.75rem;
		font-size: 0.95rem;
		line-height: 1.3;
		max-width: calc(100% - 120px);
	}

	.download-link-full .link {
		align-self: center;
		width: fit-content;
		margin-top: 0.125rem;
		flex-shrink: 0;
		min-width: 100px;
	}
}

@media only screen and (max-width: 480px) {
	.download-link-full {
		align-items: stretch;
		padding: 1rem;
		gap: 0.5rem;
	}

	.download-link-full .device-name {
		margin-right: 0;
		max-width: none;
		margin-bottom: 0.5rem;
	}

	.download-link-full .link {
		align-self: center;
		margin-top: 0;
		min-width: auto;
	}
}
