/*
 * Unión Alcoyana 150 — "Actualidad" (posts page, archives, search, single post).
 * Figma frames 77:469 (listing) and 77:565 (single), desktop 1920px.
 */

/* ================= Listing hero + featured slider ================= */
.ua-act-hero { min-height: clamp(420px, 43.75vw, 840px); }

.ua-act-slider-wrap {
	position: absolute;
	top: clamp(96px, 9.11vw, 175px);
	left: 0;
	right: 0;
	margin-inline: auto;
	display: flex;
	justify-content: flex-end;
	pointer-events: none;
}
.ua-act-slider {
	display: flex;
	flex-direction: column;
	width: min(658px, 50.2%);
	min-height: clamp(380px, 25.47vw, 489px);
	padding: clamp(24px, 1.875vw, 36px) clamp(28px, 2.6vw, 50px) clamp(28px, 2.6vw, 50px) clamp(24px, 2.08vw, 40px);
	background: rgba(255, 255, 255, .55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: var(--ua-black);
	pointer-events: auto;
}
.ua-act-slider__track { flex: 1; display: flex; flex-direction: column; }
.ua-act-slider__slide { display: flex; flex-direction: column; flex: 1; }
.ua-act-slider__slide.is-active { animation: ua-act-fade .45s var(--ua-ease); }
.ua-act-slider__title {
	font-family: var(--ua-serif);
	font-weight: 700;
	font-size: var(--ua-fs-title);
	line-height: .9;
	color: var(--ua-cyan);
}
.ua-act-slider__excerpt {
	margin-top: clamp(10px, .73vw, 14px);
	max-width: 590px;
	margin-bottom: 20px;
	font-size: var(--ua-fs-lead);
	line-height: 1.2;
}
.ua-act-slider__button {
	align-self: flex-end;
	min-width: clamp(160px, 9.9vw, 190px);
	margin-top: auto;
}
.ua-act-slider__nav {
	display: flex;
	justify-content: space-between;
	margin-top: clamp(24px, 2.19vw, 42px);
	padding-inline: 0 2px;
}
.ua-act-slider__arrow {
	display: inline-grid;
	place-items: center;
	min-width: 56px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ua-navy);
	cursor: pointer;
}
.ua-act-slider__arrow .ua-arrow { width: clamp(36px, 2.55vw, 49px); height: 2px; }
.ua-act-slider__arrow .ua-arrow::after { top: -4px; }
.ua-act-slider__arrow:hover .ua-arrow { width: clamp(44px, 3.2vw, 62px); }

@keyframes ua-act-fade {
	from { opacity: 0; transform: translateX(12px); }
	to { opacity: 1; transform: none; }
}

/* ================= Listing body ================= */
.ua-act-list .ua-breadcrumbs,
.ua-act-single .ua-breadcrumbs {
	margin-top: clamp(24px, 2.45vw, 47px);
	font-size: var(--ua-fs-text);
}

.ua-act-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	margin-top: clamp(24px, 2.4vw, 46px);
}
.ua-act-filters__tabs ul { display: flex; flex-wrap: wrap; gap: 12px clamp(20px, 2.19vw, 42px); }
.ua-act-filters__tab {
	display: inline-block;
	padding-bottom: 1px;
	border-bottom: 1px solid transparent;
	font-weight: 500;
	font-size: var(--ua-fs-text);
	line-height: 1.2;
	color: var(--ua-grey-text);
	transition: color .2s, border-color .2s;
}
.ua-act-filters__tab:hover { color: var(--ua-navy); }
.ua-act-filters__tab.is-placeholder,
.ua-act-filters__tab.is-placeholder:hover { color: var(--ua-grey-text); cursor: default; }
.ua-act-filters__tab.is-current { color: var(--ua-navy); border-bottom-color: var(--ua-navy); }

.ua-act-search { display: flex; align-items: flex-end; gap: 9px; }
.ua-act-search__label {
	font-weight: 500;
	font-size: var(--ua-fs-text);
	line-height: 1.2;
	color: var(--ua-navy);
}
.ua-site .ua-act-search__input {
	width: clamp(160px, 11.56vw, 222px);
	height: auto;
	padding: 0 0 2px;
	border: 0;
	border-bottom: 1px solid var(--ua-navy);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-family: var(--ua-sans);
	font-size: var(--ua-fs-text);
	line-height: 1.2;
	color: var(--ua-navy);
}
.ua-site .ua-act-search__input:focus { border-bottom-width: 2px; padding-bottom: 1px; }
.ua-act-search__input::-webkit-search-cancel-button { cursor: pointer; }

.ua-act-list__empty { margin-top: clamp(40px, 3.75vw, 72px); font-size: var(--ua-fs-lead); color: var(--ua-navy); }

/* Cards */
.ua-act-card__media { display: block; overflow: hidden; background: var(--ua-grey); }
.ua-act-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .8s var(--ua-ease);
}
.ua-act-card:hover .ua-act-card__media img { transform: scale(1.03); }
.ua-act-card__title {
	font-family: var(--ua-serif);
	font-weight: 700;
	color: var(--ua-cyan);
}
.ua-act-card__title a { transition: color .2s; }
.ua-act-card__title a:hover { color: var(--ua-navy); }
.ua-act-card__meta {
	font-weight: 500;
	font-size: var(--ua-fs-text);
	line-height: 1.2;
	color: var(--ua-grey-text);
}

.ua-act-list__featured {
	display: grid;
	gap: clamp(48px, 3.8vw, 73px);
	margin-top: clamp(32px, 3.75vw, 72px);
}
.ua-act-card--featured .ua-act-card__media { aspect-ratio: 1315 / 797; }
.ua-act-card--featured .ua-act-card__title {
	max-width: 900px;
	margin-top: clamp(24px, 2.7vw, 52px);
	font-size: var(--ua-fs-title);
	line-height: .9;
}
.ua-act-card--featured .ua-act-card__excerpt {
	margin-top: clamp(10px, .73vw, 14px);
	font-size: var(--ua-fs-lead);
	line-height: 1.2;
}
.ua-act-card--featured .ua-act-card__meta { margin-top: clamp(10px, .73vw, 14px); }

.ua-act-list__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(40px, 3.33vw, 64px) clamp(16px, 1.15vw, 22px);
	margin-top: clamp(40px, 2.5vw, 48px);
}
.ua-act-card--grid .ua-act-card__media { aspect-ratio: 426 / 329; }
.ua-act-card--grid .ua-act-card__meta { margin-top: clamp(16px, 1.46vw, 28px); }
.ua-act-card--grid .ua-act-card__title {
	margin-top: 12px;
	font-size: clamp(26px, 2.29vw, 44px);
	line-height: .9;
}

.ua-act-list__more { display: flex; justify-content: center; margin-top: clamp(36px, 2.4vw, 46px); }
.ua-act-list__more-btn { min-width: clamp(160px, 9.9vw, 190px); }

.ua-act-prevnext { padding-top: clamp(48px, 3.125vw, 60px); padding-bottom: clamp(56px, 5vw, 96px); }
.ua-act-prevnext .ua-arrow-link { font-size: clamp(18px, 1.39vw, 26.7px); }
.ua-act-prevnext .ua-arrow { height: 2px; }
.ua-act-prevnext--single { padding-top: clamp(56px, 4.43vw, 85px); padding-bottom: clamp(56px, 4.69vw, 90px); }

/* ================= Single post ================= */
.ua-act-single-hero.ua-hero--image::after {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 72.5%, rgba(0, 0, 0, .85) 100%);
}

.ua-act-single__top { display: flex; flex-direction: column; }
.ua-act-single__top .ua-act-search { align-self: flex-end; margin-top: clamp(20px, 2.4vw, 46px); }

.ua-act-single__layout {
	display: grid;
	grid-template-columns: 24% minmax(0, 76%);
	grid-template-areas:
		". title"
		"meta content";
	margin-top: clamp(24px, 3.07vw, 59px);
}
.ua-act-single__title {
	grid-area: title;
	font-family: var(--ua-serif);
	font-weight: 700;
	font-size: var(--ua-fs-hero);
	line-height: .9;
	letter-spacing: -0.015em;
	color: var(--ua-cyan);
	overflow-wrap: break-word;
	hyphens: auto;
}
.ua-act-single__meta {
	grid-area: meta;
	margin-top: calc(clamp(32px, 2.5vw, 48px) - clamp(0px, 4.3vw, 83px));
	padding-right: 24px;
}
.ua-act-single__meta dl { display: grid; gap: clamp(24px, 2.19vw, 42px); margin: 0; }
.ua-act-single__meta dt,
.ua-act-single__meta dd {
	margin: 0;
	font-size: var(--ua-fs-lead);
	line-height: 1.2;
	font-weight: 400;
}
.ua-act-single__meta dt { color: var(--ua-grey-text); }
.ua-act-single__meta dd { color: var(--ua-navy); }
.ua-act-single__meta dd a:hover { color: var(--ua-cyan); }

.ua-act-share { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 10px; }
.ua-act-share li { position: relative; }
.ua-act-share__link {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	color: var(--ua-navy);
	transition: color .2s, transform .2s var(--ua-ease);
}
.ua-act-share__link:hover { color: var(--ua-cyan); transform: translateY(-2px); }
.ua-act-share .ua-icon { width: 39px; height: 40px; }
.ua-act-share__status {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 6px;
	font-size: 14px;
	white-space: nowrap;
	color: var(--ua-navy);
}

/* Post content typography */
.ua-act-single__content {
	grid-area: content;
	min-width: 0;
	margin-top: clamp(32px, 2.5vw, 48px);
	font-size: var(--ua-fs-lead);
	line-height: 1.2;
	color: var(--ua-black);
}
.ua-act-single__content > * + * { margin-top: 1.2em; }
.ua-act-single__content p { margin: 0; }
.ua-act-single__content a { color: var(--ua-cyan); text-decoration: underline; text-underline-offset: 3px; }
.ua-act-single__content a:hover { color: var(--ua-navy); }
.ua-act-single__content strong { font-weight: 700; }
.ua-act-single__content h2,
.ua-act-single__content h3,
.ua-act-single__content h4 {
	margin-top: 1.6em;
	font-family: var(--ua-serif);
	font-weight: 700;
	line-height: 1;
	color: var(--ua-cyan);
}
.ua-act-single__content h2 { font-size: clamp(30px, 2.29vw, 44px); }
.ua-act-single__content h3 { font-size: clamp(24px, 1.67vw, 32px); }
.ua-act-single__content h4 { font-size: var(--ua-fs-lead); color: var(--ua-navy); }
.ua-act-single__content h2 + *,
.ua-act-single__content h3 + *,
.ua-act-single__content h4 + * { margin-top: .6em; }
.ua-act-single__content ul,
.ua-act-single__content ol { padding-left: 1.3em; }
.ua-act-single__content ul { list-style: disc; }
.ua-act-single__content ol { list-style: decimal; }
.ua-act-single__content li + li { margin-top: .4em; }
.ua-act-single__content li::marker { color: var(--ua-cyan); }
.ua-act-single__content blockquote {
	margin-inline: 0;
	padding: 0 0 0 clamp(20px, 1.67vw, 32px);
	border-left: 3px solid var(--ua-cyan);
	font-family: var(--ua-serif);
	font-style: italic;
	font-size: clamp(22px, 1.67vw, 32px);
	line-height: 1.2;
	color: var(--ua-navy);
}
.ua-act-single__content blockquote cite { display: block; margin-top: .6em; font-family: var(--ua-sans); font-style: normal; font-size: var(--ua-fs-body); }
.ua-act-single__content figure,
.ua-act-single__content .wp-block-image { margin-inline: 0; }
.ua-act-single__content > figure,
.ua-act-single__content > .wp-block-image,
.ua-act-single__content > p > img:only-child { margin-block: 1.55em; }
.ua-act-single__content img { width: 100%; height: auto; }
.ua-act-single__content figcaption { margin-top: 8px; font-size: var(--ua-fs-body); color: var(--ua-grey-text); }
.ua-act-single__content iframe,
.ua-act-single__content video { max-width: 100%; }
.ua-act-single__content table { display: block; overflow-x: auto; }

.ua-act-single__video {
	position: relative;
	margin: clamp(24px, 1.6vw, 31px) 0 0;
	aspect-ratio: 996 / 619;
	overflow: hidden;
	background: var(--ua-navy);
}
.ua-act-single__video img { width: 100%; height: 100%; object-fit: cover; }
.ua-act-single__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.ua-act-single__play:hover { transform: translate(-50%, -50%) scale(1.08); }

/* ================= Tablet ================= */
@media (max-width: 1024px) {
	.ua-act-hero--slider {
		flex-direction: column;
		justify-content: flex-end;
		align-items: stretch;
		padding-top: 120px;
	}
	.ua-act-slider-wrap { position: static; margin-top: 24px; }
	.ua-act-slider { width: 100%; min-height: 0; padding: 24px; background: rgba(255, 255, 255, .8); }
	.ua-act-slider__excerpt { max-width: none; }
	.ua-act-slider__button { margin-top: 20px; }
	.ua-act-slider__nav { margin-top: 12px; }

	.ua-act-list__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.ua-act-single__layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "title" "meta" "content";
	}
	.ua-act-single__meta { margin-top: 32px; padding: 0 0 28px; border-bottom: 1px solid var(--ua-grey); }
	.ua-act-single__meta dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
}

/* ================= Mobile (390px reference) ================= */
@media (max-width: 767px) {
	.ua-act-hero--slider { padding-top: 96px; }
	.ua-act-slider__title { font-size: 30px; }
	.ua-act-slider__button { align-self: flex-start; }

	.ua-act-filters { flex-direction: column; align-items: stretch; }
	.ua-act-search { width: 100%; }
	.ua-site .ua-act-search__input { flex: 1; width: auto; min-width: 0; }

	.ua-act-card--featured .ua-act-card__media { aspect-ratio: 4 / 3; }
	.ua-act-card--featured .ua-act-card__title { font-size: 32px; }
	.ua-act-card--featured .ua-act-card__title br { display: none; }

	.ua-act-list__grid { grid-template-columns: minmax(0, 1fr); }
	.ua-act-card--grid .ua-act-card__title { font-size: 28px; }

	.ua-act-prevnext .ua-prevnext__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
	.ua-act-prevnext .ua-prevnext__next { align-self: flex-end; }

	.ua-act-single__top .ua-act-search { align-self: stretch; }
	.ua-act-single__title { font-size: clamp(40px, 11vw, 56px); }
	.ua-act-single__meta dl { grid-template-columns: minmax(0, 1fr); }
	.ua-act-single__content { font-size: 18px; }
	.ua-act-single__video .ua-play--lg { width: 64px; }
}

@media (prefers-reduced-motion: reduce) {
	.ua-act-slider__slide.is-active { animation: none; }
}
