/* =====================================================================
   Single Fundo › modal de download do histórico de cotas (3 formatos).
   Usa o modal global (.modal) com o modifier .modal--download.
   ===================================================================== */

/* O gatilho é <button>, mas deve ler como o link que era antes. */
.single-fundo .fundo-hist__dl {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: var(--leto-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: var(--leto-green);
	text-decoration-thickness: 2px;
	cursor: pointer;
	transition: color .25s var(--ease);
}

.single-fundo .fundo-hist__dl:hover,
.single-fundo .fundo-hist__dl:focus-visible {
	color: var(--leto-green-deep, #5e6b3a);
}

/* ---------------- painel ---------------- */

.modal__panel.modal--download {
	width: min(468px, 100%);
}

.modal--download .modal__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: .4rem;
}

/* ---------------- opções ---------------- */

.modal--download .fundo-dl__opt {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 13px 15px;
	border: 1px solid var(--border-default, #d8d4c9);
	border-radius: 10px;
	background: #fff;
	color: var(--leto-ink);
	text-decoration: none;
	transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}

.modal--download .fundo-dl__opt:hover,
.modal--download .fundo-dl__opt:focus-visible {
	border-color: var(--leto-ink);
	background: #fbfcf7;
	transform: translateY(-1px);
	color: var(--leto-ink);
}

.modal--download .fundo-dl__ext {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 8px;
	background: var(--leto-green, #d8eea9);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .04em;
	color: #1c1e1d;
}

.modal--download .fundo-dl__txt {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.modal--download .fundo-dl__txt strong {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
}

.modal--download .fundo-dl__txt span {
	font-size: 12.5px;
	line-height: 1.35;
	color: #6b7069;
}

@media (max-width: 480px) {
	.modal--download .fundo-dl__opt { padding: 11px 12px; gap: 11px; }
	.modal--download .fundo-dl__ext { width: 40px; height: 40px; }
}
