/**
 * Reports archive styles — Figma 226-2601
 */

.post-type-archive-report .content-area,
.dian-reports-archive-page {
	width: 100%;
	max-width: 100%;
	flex: 1 1 auto;
}

.dian-reports-archive {
	width: 100%;
	max-width: 1224px;
	margin-inline: auto;
	padding-block: 0 var(--dian-spacing-96, 9.6rem);
	padding-inline: var(--dian-spacing-16, 1.6rem);
	box-sizing: border-box;
}

.dian-reports-archive__hero {
	margin-bottom: 64px;
}

.dian-reports-archive__breadcrumbs-wrap {
	width: auto;
	max-width: none;
	margin-inline: var(--dian-spacing-24);
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.02) 0%, rgba(215, 238, 235, 0.03) 100%);
}

.dian-reports-archive__breadcrumbs {
	width: 100%;
	max-width: 1224px;
	margin-inline: auto;
	padding: var(--dian-spacing-16, 1.6rem);
	box-sizing: border-box;
}

.dian-reports-archive__hero-inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.dian-reports-archive__title {
	margin: 0;
	font-family: var(--dian-bague-bold, "PF Bague Sans Pro Bold", sans-serif);
	font-size: 56px;
	font-weight: 700;
	line-height: 46px;
	letter-spacing: -1.12px;
	color: #1e1e1e;
}

.dian-reports-archive__description,
.dian-reports-archive__description p {
	margin: 0;
	font-family: var(--dian-regal-reg, "PF Regal Text Pro Regular A", Georgia, serif);
	font-size: 26px;
	font-weight: 300;
	line-height: 36px;
	color: #1e1e1e;
}

.dian-reports-archive__divider {
	width: 100%;
	height: 1px;
	background: #e0e0e0;
}

.dian-reports-archive__content {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Tabs + filters */

.dian-reports-toolbar {
	display: flex;
	flex-direction: column;
}

.dian-reports-tabs {
	display: flex;
	align-items: stretch;
	border-bottom: 1px solid #e0dcd7;
}

.dian-reports-tabs__tab {
	margin: 0;
	padding: 16px 24px;
	font-family: var(--dian-bague-medium, "PF Bague Sans Pro Medium", sans-serif);
	font-size: 20px;
	font-weight: 500;
	line-height: 28px;
	color: #556566;
	background: transparent;
	border: 0;
	border-bottom: 3px solid transparent;
	cursor: pointer;
}

.dian-reports-tabs__tab:not(.is-active) {
	font-family: var(--dian-bague-reg, "PF Bague Sans Pro Regular", sans-serif);
	font-weight: 400;
}

.dian-reports-tabs__tab.is-active {
	border-bottom-color: #00b8c0;
}

.dian-reports-filters {
	display: flex;
	align-items: stretch;
	border-bottom: 1px solid #e0dcd7;
}

.dian-reports-filters__field {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 16px 24px;
	border-right: 1px solid #e0dcd7;
	box-sizing: border-box;
}

.dian-reports-filters__field--category {
	position: relative;
	gap: 40px;
	min-width: 0;
	flex: 1 1 auto;
	cursor: pointer;
}

.dian-reports-filters__field--search {
	justify-content: space-between;
	gap: 16px;
	width: 350px;
	max-width: 100%;
	flex-shrink: 0;
}

.dian-reports-filters__field select,
.dian-reports-filters__field input[type="search"] {
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	font-family: var(--dian-bague-reg, "PF Bague Sans Pro Regular", sans-serif);
	font-size: 20px;
	line-height: 28px;
	color: #556566;
	background: transparent;
	border: 0;
	border-radius: 0;
	appearance: none;
	-webkit-appearance: none;
}

.dian-reports-filters__field input[type="search"]::placeholder {
	color: #556566;
	opacity: 1;
}

.dian-reports-filters__field input[type="search"]::-webkit-search-decoration,
.dian-reports-filters__field input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.dian-reports-filters__field select:focus,
.dian-reports-filters__field input[type="search"]:focus {
	outline: none;
}

.dian-reports-filters__field--category select {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.dian-reports-filters__select-value {
	font-family: var(--dian-bague-reg, "PF Bague Sans Pro Regular", sans-serif);
	font-size: 20px;
	line-height: 28px;
	color: #556566;
	white-space: nowrap;
}

.dian-reports-filters__icon {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.dian-reports-filters__field--category:has(select:open) .dian-reports-filters__icon,
.dian-reports-filters__field--category.is-select-open .dian-reports-filters__icon {
	transform: rotate(180deg);
}

/* Table */

.dian-reports-table {
	width: 100%;
}

.dian-reports-table__head,
.dian-report-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 255px 194px 88px;
	align-items: stretch;
}

.dian-reports-table__head-cell,
.dian-report-row__cell {
	border-bottom: 1px solid #e0dcd7;
	box-sizing: border-box;
}

.dian-reports-table__head-cell {
	padding: 16px 24px;
	font-family: var(--dian-bague-medium, "PF Bague Sans Pro Medium", sans-serif);
	font-size: 18px;
	font-weight: 500;
	line-height: 22px;
	color: #556566;
}

.dian-report-row__cell {
	min-height: 152px;
	padding: 24px;
}

.dian-report-row__cell--research {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
}

.dian-report-row__title {
	margin: 0;
	font-family: var(--dian-bague-medium, "PF Bague Sans Pro Medium", sans-serif);
	font-size: 18px;
	font-weight: 500;
	line-height: 22px;
	color: #1e1e1e;
}

.dian-report-row__excerpt,
.dian-report-row__full,
.dian-report-row__full .dynamic-entry-content,
.dian-report-row__full .dynamic-entry-content :is(p, li, blockquote):not(.number-quote):not(.bmwp-rp-title) {
	margin: 0;
	color: var(--brand-grey, #556566);
	font-family: "PF Bague Sans Pro", sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	line-height: 22px;
}

.dian-report-row__full .dynamic-entry-content :is(p, li, blockquote):not(.number-quote):not(.bmwp-rp-title):not(:last-child) {
	margin-bottom: 8px;
}

.dian-report-row__full .dynamic-entry-content strong {
	font-family: "PF Bague Sans Pro", sans-serif;
	font-weight: 400;
	color: var(--brand-grey, #556566);
}

.dian-report-row__full .dynamic-entry-content a {
	color: var(--brand-grey, #556566);
	text-decoration: underline;
}

.dian-report-row__full .dynamic-entry-content a:hover,
.dian-report-row__full .dynamic-entry-content a:focus-visible {
	color: var(--primary, #009ca7);
}

.dian-report-row__content {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dian-report-row__more {
	display: inline-block;
	align-self: flex-start;
	margin: 0;
	padding: 0;
	font-family: var(--dian-bague-reg, "PF Bague Sans Pro Regular", sans-serif);
	font-size: 18px;
	line-height: 22px;
	color: #1e1e1e;
	text-decoration: underline;
	background: transparent;
	background-color: transparent;
	border: 0;
	box-shadow: none;
	cursor: pointer;
}

.dian-report-row__more:hover,
.dian-report-row__more:focus,
.dian-report-row__more:focus-visible,
.dian-report-row__more:active {
	background: transparent;
	background-color: transparent;
	box-shadow: none;
}

.dian-report-row__more:hover,
.dian-report-row__more:focus-visible {
	color: var(--primary, #009ca7);
}

.dian-report-row__more:focus {
	color: #1e1e1e;
}

.dian-report-row__full-inner > :first-child {
	margin-top: 0;
}

.dian-report-row__full-inner > :last-child {
	margin-bottom: 0;
}

.dian-report-row__cell--category {
	display: flex;
	align-items: center;
}

.dian-report-row__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dian-report-row__tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	font-family: var(--dian-bague-reg, "PF Bague Sans Pro Regular", sans-serif);
	font-size: 16px;
	line-height: 20px;
	color: #1e1e1e;
	background: rgba(0, 156, 167, 0.05);
}

.dian-report-row__cell--year {
	display: flex;
	align-items: center;
}

.dian-report-row__years {
	margin: 0;
	padding-block: 8px;
	font-family: var(--dian-bague-reg, "PF Bague Sans Pro Regular", sans-serif);
	font-size: 18px;
	line-height: 22px;
	color: #556566;
	white-space: normal;
	word-break: break-word;
}

.dian-report-row__cell--links {
	display: flex;
	align-items: center;
	position: relative;
}

/* Download menu */

.dian-report-links {
	position: relative;
}

.dian-report-links__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 12px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.dian-report-links__toggle.is-active,
.dian-report-links__toggle:hover,
.dian-report-links__toggle:focus-visible {
	background: rgba(85, 101, 102, 0.06);
	border-radius: 2px;
}

.dian-report-links__menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 20;
	width: 400px;
	max-width: min(400px, calc(100vw - 32px));
	padding: 8px;
	background: #fff;
	border: 1px solid #d1d1d1;
	box-shadow: 8px 9px 0 rgba(0, 156, 167, 0.09);
	box-sizing: border-box;
}

.dian-report-links__year {
	margin: 0;
	padding: 16px 16px 4px;
	font-family: var(--dian-bague-reg, "PF Bague Sans Pro Regular", sans-serif);
	font-size: 18px;
	line-height: 22px;
	color: #556566;
}

.dian-report-links__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px;
	font-family: var(--dian-bague-reg, "PF Bague Sans Pro Regular", sans-serif);
	font-size: 18px;
	line-height: 22px;
	color: #1e1e1e;
	text-decoration: underline;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dian-report-links__item:last-child {
	border-bottom: 0;
}

.dian-report-links__item-badge {
	color: #556566;
	text-decoration: underline;
	white-space: nowrap;
}

.dian-report-links__item--dataset,
.dian-report-links__item--dataset .dian-report-links__item-badge {
	color: #009ca7;
}

.dian-reports-empty {
	padding: 32px 0;
	font-family: var(--dian-bague-reg, "PF Bague Sans Pro Regular", sans-serif);
	font-size: 18px;
	line-height: 22px;
	color: #556566;
	text-align: center;
}

.dian-report-row.is-hidden,
.dian-report-row[hidden] {
	display: none;
}

@media screen and (max-width: 1100px) {
	.dian-reports-table__head {
		display: none;
	}

	.dian-report-row {
		grid-template-columns: 1fr;
		border-bottom: 1px solid #e0dcd7;
	}

	.dian-report-row__cell {
		min-height: 0;
		border-bottom: 0;
	}

	.dian-report-row__cell--links {
		padding-bottom: 32px;
	}

	.dian-report-links__menu {
		right: auto;
		left: 0;
	}
}

@media screen and (max-width: 782px) {
	.dian-reports-archive__title {
		font-size: 40px;
		line-height: 44px;
	}

	.dian-reports-archive__description,
	.dian-reports-archive__description p {
		font-size: 22px;
		line-height: 30px;
	}

	.dian-reports-filters {
		flex-direction: column;
	}

	.dian-reports-filters__field {
		width: 100%;
		border-right: 0;
		border-bottom: 1px solid #e0dcd7;
	}

	.dian-reports-filters__field--search {
		width: 100%;
	}
}
