/* Document rows: a file with its title, date and type, and a download link.
 * Shared by the Access Gate and Document List blocks. The row list itself is styled by each block. */

.tv-base-document-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	border: 1px solid var(--color-surface-alt);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	transition: all 0.2s ease;
}

.tv-base-document-item:hover {
	border-color: var(--color-primary);
	background: color-mix(in srgb, var(--color-primary) 2%, transparent);
}

.tv-base-document-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-primary);
}

.tv-base-document-icon__svg {
	width: 100%;
	height: 100%;
}

.tv-base-document-info {
	flex: 1;
	min-width: 0;
}

.tv-base-document-title {
	font-family: var(--font-family);
	font-size: var(--font-size-body-sm);
	font-style: normal;
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-body-sm);
	letter-spacing: var(--letter-spacing-body-sm);
	color: var(--color-text);
	margin: 0;
	word-break: break-word;
}

.tv-base-document-meta {
	font-family: var(--font-family);
	font-size: 14px;
	font-style: normal;
	font-weight: var(--font-weight-regular);
	line-height: 20px;
	letter-spacing: 0;
	color: var(--color-text-muted);
	margin: 4px 0 0 0;
}

.tv-base-document-download {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid var(--color-primary);
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--color-primary);
	font-family: var(--font-family);
	font-size: 14px;
	font-weight: var(--font-weight-bold);
	line-height: 20px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
	flex-shrink: 0;
}

.tv-base-document-download:hover {
	background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

.tv-base-document-download__icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

@media (max-width: 768px) {
	.tv-base-document-item {
		flex-wrap: wrap;
	}

	.tv-base-document-download {
		flex-basis: 100%;
		min-width: auto;
		width: 100%;
		justify-content: center;
	}
}
