/* כרטיס מסמך מהארכיון התורני. הצבעים נגזרים ממשתני התבנית, עם ערך גיבוי. */

.ov-archive-file {
	--c-gold: var(--ov-gold, #d4af37);
	--c-navy: var(--ov-navy, #1b2a4a);
	--c-border: var(--ov-border, #e3e0d8);
	--c-surface: var(--ov-surface-alt, #faf8f3);

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	padding: 1.25rem 1.5rem;
	margin-block: 1.5rem;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-inline-start: 4px solid var(--c-gold);
	border-radius: var(--ov-radius, 10px);
}

.ov-archive-file__info {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.ov-archive-file__title {
	font-weight: 600;
	color: var(--c-navy);
	line-height: 1.4;
}

.ov-archive-file__meta {
	font-size: 0.85rem;
	color: var(--ov-text-soft, #6b6b6b);
}

.ov-archive-file__link {
	flex-shrink: 0;
	display: inline-block;
	padding: 0.6rem 1.4rem;
	background: var(--c-navy);
	color: #fff;
	border-radius: var(--ov-radius-pill, 999px);
	text-decoration: none;
	font-weight: 600;
	transition: var(--ov-transition, all 0.2s ease);
}

.ov-archive-file__link:hover,
.ov-archive-file__link:focus {
	background: var(--c-gold);
	color: var(--c-navy);
}

.ov-archive-file__missing {
	padding: 1rem;
	border: 1px dashed var(--ov-border, #e3e0d8);
	border-radius: var(--ov-radius-sm, 6px);
	color: var(--ov-text-soft, #6b6b6b);
}

@media (max-width: 480px) {
	.ov-archive-file {
		flex-direction: column;
		align-items: stretch;
	}

	.ov-archive-file__link {
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ov-archive-file__link {
		transition: none;
	}
}
