/* Acofaen Archive Accordion — estilos alineados al DNA del sitio (Lato, acento #56b0d2) */

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

.aaa-year + .aaa-year {
	border-top: 1px solid rgba(167, 171, 173, 0.45);
}

/* Estados explícitos con especificidad (0,3,0): el tema Beclinic aplica
   `button:not(.pswp__button):hover {background:#333}` — (0,2,1) — y ganaba. */
.aaa-years .aaa-year-toggle,
.aaa-years .aaa-year-toggle:hover,
.aaa-years .aaa-year-toggle:focus,
.aaa-years .aaa-year-toggle:active {
	background: transparent;
	background-color: transparent;
	color: #333333;
	box-shadow: none;
	border: 0;
	border-radius: 0;
}

.aaa-year-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 11px 2px;
	background: none;
	border: 0;
	font-family: Lato, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #333333;
	cursor: pointer;
	text-align: left;
}

.aaa-year-toggle:hover .aaa-year-label,
.aaa-year-toggle:focus-visible .aaa-year-label {
	color: #56b0d2;
}

.aaa-year-toggle:focus-visible {
	outline: 2px solid #56b0d2;
	outline-offset: 2px;
}

.aaa-chevron {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	margin-right: 6px;
	border-right: 2px solid #56b0d2;
	border-bottom: 2px solid #56b0d2;
	transform: rotate(45deg);
	transition: transform 0.25s ease;
}

.aaa-year.is-open > .aaa-year-toggle .aaa-chevron {
	transform: rotate(225deg);
}

/* Despliegue vertical animado (grid-rows 0fr→1fr). Navegadores sin soporte
   muestran los meses siempre visibles: degradación aceptable, nunca rota. */
.aaa-months-wrap {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease;
}

.aaa-year.is-open > .aaa-months-wrap {
	grid-template-rows: 1fr;
}

.aaa-months {
	overflow: hidden;
	list-style: none;
	margin: 0;
	min-height: 0;
	padding: 0 0 6px 16px;
}

.aaa-months li {
	padding: 4px 0;
}

.aaa-months li a {
	color: #616262;
	font-family: Lato, sans-serif;
	text-decoration: none;
	transition: color 0.2s ease;
}

.aaa-months li a:hover {
	color: #56b0d2;
}
