/*
 * Evidence explorer component island.
 *
 * The OpenAlex explorer is owned by the patient-tools platform and should not
 * live in the global Swiss base stylesheet.
 */

.hong-swiss-modern .hong-evidence-explorer,
.hong-swiss-modern .hong-evidence-explorer * {
	box-sizing: border-box;
}

.hong-swiss-modern .hong-patient-tools__active-app .hong-evidence-explorer {
	margin: 0;
	max-width: none;
	width: 100%;
}

.hong-swiss-modern .hong-evidence-explorer {
	background: var(--hong-white);
	border: 1px solid var(--hong-line);
	color: var(--hong-gray-600);
	display: grid;
	grid-template-columns: minmax(280px, 0.34fr) 1fr;
	margin: 72px auto;
	max-width: 1180px;
}

.hong-swiss-modern .hong-evidence-explorer__intro {
	background: linear-gradient(180deg, #0a0a0a 0%, #121f1c 100%);
	color: var(--hong-white);
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 42px;
}

.hong-swiss-modern .hong-evidence-explorer__visual {
	aspect-ratio: 3 / 5;
	background: #f7f3ea;
	border: 1px solid rgba(255, 255, 255, 0.22);
	margin: 0;
	overflow: hidden;
}

.hong-swiss-modern .hong-evidence-explorer__visual img {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.hong-swiss-modern .hong-evidence-explorer__eyebrow {
	color: var(--hong-accent);
	font-family: var(--hong-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.3;
	margin: 0;
	text-transform: uppercase;
}

.hong-swiss-modern .hong-evidence-explorer__title {
	color: inherit;
	font-size: 44px;
	margin: 0;
	max-width: 410px;
}

.hong-swiss-modern .hong-evidence-explorer__lede,
.hong-swiss-modern .hong-evidence-explorer__note {
	color: var(--hong-pale);
	font-size: 17px;
	line-height: 1.55;
	margin: 0;
}

.hong-swiss-modern .hong-evidence-explorer__note {
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	font-size: 14px;
	margin-top: auto;
	padding-top: 22px;
}

.hong-swiss-modern .hong-evidence-explorer__workspace {
	padding: 34px;
}

.hong-swiss-modern .hong-evidence-explorer__form {
	align-items: end;
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr 128px auto;
}

.hong-swiss-modern .hong-evidence-explorer__form.is-loading {
	opacity: 0.72;
}

.hong-swiss-modern .hong-evidence-explorer__search span,
.hong-swiss-modern .hong-evidence-explorer__year span {
	color: var(--hong-ink);
	display: block;
	font-family: var(--hong-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-bottom: 9px;
	text-transform: uppercase;
}

.hong-swiss-modern .hong-evidence-explorer__search input,
.hong-swiss-modern .hong-evidence-explorer__year select {
	background: var(--hong-paper);
	border: 1px solid var(--hong-line);
	border-radius: 0;
	color: var(--hong-ink);
	font-family: var(--hong-sans);
	font-size: 16px;
	min-height: 48px;
	padding: 12px 14px;
	width: 100%;
}

.hong-swiss-modern .hong-evidence-explorer__button,
.hong-swiss-modern .hong-evidence-explorer__presets button {
	align-items: center;
	border: 1px solid var(--hong-ink);
	border-radius: 4px;
	cursor: pointer;
	display: inline-flex;
	font-family: var(--hong-mono);
	font-size: 11px;
	font-weight: 700;
	justify-content: center;
	letter-spacing: 0.08em;
	line-height: 1.2;
	min-height: 48px;
	padding: 13px 15px;
	text-align: center;
	text-transform: uppercase;
}

.hong-swiss-modern .hong-evidence-explorer__button {
	background: var(--hong-accent);
	border-color: var(--hong-accent);
	color: var(--hong-white);
}

.hong-swiss-modern .hong-evidence-explorer__button:hover,
.hong-swiss-modern .hong-evidence-explorer__button:focus {
	background: var(--hong-ink);
	border-color: var(--hong-ink);
	color: var(--hong-white);
}

.hong-swiss-modern .hong-evidence-explorer__button:disabled {
	cursor: wait;
	opacity: 0.65;
}

.hong-swiss-modern .hong-evidence-explorer__presets {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 18px;
}

.hong-swiss-modern .hong-evidence-explorer__presets button {
	background: var(--hong-white);
	border-color: var(--hong-line);
	color: var(--hong-gray-600);
	font-size: 10px;
	min-height: 38px;
	padding: 10px 12px;
}

.hong-swiss-modern .hong-evidence-explorer__presets button:hover,
.hong-swiss-modern .hong-evidence-explorer__presets button.is-active {
	background: #fff5f2;
	border-color: var(--hong-accent);
	color: var(--hong-ink);
}

.hong-swiss-modern .hong-evidence-explorer__status {
	border-bottom: 1px solid var(--hong-line);
	border-top: 1px solid var(--hong-line);
	color: var(--hong-gray-600);
	font-family: var(--hong-mono);
	font-size: 12px;
	margin: 24px 0 0;
	padding: 14px 0;
}

.hong-swiss-modern .hong-evidence-explorer__status[data-tone="error"] {
	color: var(--hong-accent);
}

.hong-swiss-modern .hong-evidence-explorer__status[data-tone="success"] {
	color: var(--hong-jade);
}

.hong-swiss-modern .hong-evidence-explorer__result {
	margin-top: 28px;
}

.hong-swiss-modern .hong-evidence-explorer__result[hidden] {
	display: none;
}

.hong-swiss-modern .hong-evidence-explorer__headline {
	align-items: end;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	margin-bottom: 22px;
}

.hong-swiss-modern .hong-evidence-explorer__headline h3 {
	font-size: 32px;
	margin: 6px 0 0;
}

.hong-swiss-modern .hong-evidence-explorer__headline strong,
.hong-swiss-modern .hong-evidence-explorer__headline span {
	display: block;
	font-family: var(--hong-mono);
	font-size: 12px;
	text-align: right;
	text-transform: uppercase;
}

.hong-swiss-modern .hong-evidence-explorer__headline strong {
	color: var(--hong-jade);
	letter-spacing: 0.08em;
}

.hong-swiss-modern .hong-evidence-explorer__stats {
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: 28px;
}

.hong-swiss-modern .hong-evidence-explorer__stat {
	background: var(--hong-paper);
	border: 1px solid var(--hong-line);
	padding: 18px;
}

.hong-swiss-modern .hong-evidence-explorer__stat span,
.hong-swiss-modern .hong-evidence-explorer__stat small {
	display: block;
	font-family: var(--hong-mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.35;
	text-transform: uppercase;
}

.hong-swiss-modern .hong-evidence-explorer__stat strong {
	color: var(--hong-ink);
	display: block;
	font-size: 30px;
	line-height: 1;
	margin: 12px 0;
}

.hong-swiss-modern .hong-evidence-explorer__stat small {
	color: var(--hong-gray-600);
	font-weight: 600;
}

.hong-swiss-modern .hong-evidence-explorer__panels {
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
	margin-bottom: 28px;
}

.hong-swiss-modern .hong-evidence-explorer__panel,
.hong-swiss-modern .hong-evidence-explorer__papers {
	border: 1px solid var(--hong-line);
	padding: 22px;
}

.hong-swiss-modern .hong-evidence-explorer__panel h3,
.hong-swiss-modern .hong-evidence-explorer__section-head h3 {
	font-size: 22px;
	margin: 0 0 18px;
}

.hong-swiss-modern .hong-evidence-explorer__year-row {
	align-items: center;
	display: grid;
	gap: 12px;
	grid-template-columns: 54px 1fr 72px;
	margin-bottom: 10px;
}

.hong-swiss-modern .hong-evidence-explorer__year-row span,
.hong-swiss-modern .hong-evidence-explorer__year-row strong {
	color: var(--hong-ink);
	font-family: var(--hong-mono);
	font-size: 11px;
	font-weight: 700;
}

.hong-swiss-modern .hong-evidence-explorer__year-row div {
	background: var(--hong-paper);
	height: 9px;
	overflow: hidden;
}

.hong-swiss-modern .hong-evidence-explorer__year-row i {
	background: linear-gradient(90deg, var(--hong-accent) 0%, var(--hong-jade) 100%);
	display: block;
	height: 100%;
}

.hong-swiss-modern .hong-evidence-explorer__types {
	margin: 0;
}

.hong-swiss-modern .hong-evidence-explorer__types li {
	align-items: center;
	border-bottom: 1px solid var(--hong-line);
	display: flex;
	justify-content: space-between;
	list-style: none;
	padding: 10px 0;
}

.hong-swiss-modern .hong-evidence-explorer__types span,
.hong-swiss-modern .hong-evidence-explorer__types strong {
	font-family: var(--hong-mono);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.hong-swiss-modern .hong-evidence-explorer__section-head {
	align-items: end;
	display: flex;
	justify-content: space-between;
	margin-bottom: 16px;
}

.hong-swiss-modern .hong-evidence-explorer__section-head p,
.hong-swiss-modern .hong-evidence-explorer__empty {
	color: var(--hong-gray-600);
	font-size: 14px;
	margin: 0;
}

.hong-swiss-modern .hong-evidence-explorer__paper {
	border-top: 1px solid var(--hong-line);
	padding: 16px 0;
}

.hong-swiss-modern .hong-evidence-explorer__paper h3 {
	font-size: 20px;
	line-height: 1.18;
	margin: 0 0 8px;
}

.hong-swiss-modern .hong-evidence-explorer__paper p,
.hong-swiss-modern .hong-evidence-explorer__paper span {
	color: var(--hong-gray-600);
	display: block;
	font-family: var(--hong-mono);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
	text-transform: uppercase;
}

body.hong-swiss-modern .hong-evidence-explorer {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
	max-width: var(--hong-width-visual);
	transform: none;
	width: var(--hong-box-visual);
}

@media only screen and (max-width: 1199px) {
	.hong-swiss-modern .hong-evidence-explorer {
		margin-left: 5%;
		margin-right: 5%;
	}

	.hong-swiss-modern .hong-evidence-explorer__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hong-swiss-modern .hong-evidence-explorer__panels {
		grid-template-columns: 1fr;
	}
}

@media only screen and (max-width: 767px) {
	.hong-swiss-modern .hong-evidence-explorer {
		grid-template-columns: 1fr;
	}

	.hong-swiss-modern .hong-evidence-explorer__intro,
	.hong-swiss-modern .hong-evidence-explorer__workspace {
		padding: 28px 22px;
	}

	.hong-swiss-modern .hong-evidence-explorer__title {
		font-size: 34px;
		max-width: none;
	}

	.hong-swiss-modern .hong-evidence-explorer__form,
	.hong-swiss-modern .hong-evidence-explorer__stats,
	.hong-swiss-modern .hong-evidence-explorer__panels {
		grid-template-columns: 1fr;
	}

	.hong-swiss-modern .hong-evidence-explorer__headline,
	.hong-swiss-modern .hong-evidence-explorer__section-head {
		align-items: stretch;
		flex-direction: column;
	}

	.hong-swiss-modern .hong-evidence-explorer__headline strong,
	.hong-swiss-modern .hong-evidence-explorer__headline span {
		text-align: left;
	}

	.hong-swiss-modern .hong-evidence-explorer__button {
		width: 100%;
	}

	.hong-swiss-modern .hong-evidence-explorer__presets {
		flex-direction: column;
	}

	.hong-swiss-modern .hong-evidence-explorer__year-row {
		grid-template-columns: 42px 1fr 58px;
	}
}
