
/*
==================================================
CNO ONCO FUTURE 2026
e-PROGRAMA — SEARCH
==================================================
*/

/*
==================================================
LAYOUT
==================================================
*/

.workspace:has(.search-workspace-body) {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}

.workspace:has(.search-workspace-body) > .topbar {
	flex: 0 0 auto;
	width: 100%;
	min-width: 0;
}

.workspace-body.search-workspace-body {
	display: flex;
	flex-direction: row;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}

.search-workspace-body > .search-pane {
	display: flex;
	flex-direction: column;
	flex: 1 1 0%;
	width: auto;
	min-width: 0;
	min-height: 0;
	max-width: none;
	overflow: hidden;
}

.search-scroll {
	display: block;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	min-height: 0;
	max-width: none;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(93, 163, 250, .35) transparent;
}

.search-scroll::-webkit-scrollbar {
	width: 6px;
}

.search-scroll::-webkit-scrollbar-track {
	background: transparent;
}

.search-scroll::-webkit-scrollbar-thumb {
	background: rgba(93, 163, 250, .35);
	border-radius: 10px;
}

/*
==================================================
CONTENT
==================================================
*/

.search-content {
	display: block;
	width: 100%;
	max-width: none;
	min-width: 0;
	margin: 0;
	padding: 28px 20px 50px;
}

.search-intro,
.search-console,
.search-results,
.search-results-list {
	width: 100%;
	max-width: none;
	min-width: 0;
	margin-left: 0;
	margin-right: 0;
}

/*
==================================================
INTRODUCTION
==================================================
*/

.search-intro {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.search-intro-copy {
	flex: 1 1 auto;
	min-width: 0;
}

.search-eyebrow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
	color: #5da3fa;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.7px;
}

.search-live-dot {
	display: inline-block;
	flex: 0 0 6px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #5da3fa;
	box-shadow: 0 0 10px rgba(93, 163, 250, .45);
}

.search-eyebrow-line {
	display: inline-block;
	width: 22px;
	height: 1px;
	background: rgba(93, 163, 250, .35);
}

.search-intro h1 {
	margin: 0;
	color: #ffffff;
	font-size: clamp(28px, 3vw, 42px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: .1px;
}

.search-intro p {
	margin: 12px 0 0;
	color: #a1aecb;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.4;
}

.search-intro-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 62px;
	width: 62px;
	height: 62px;
	border: 1px solid rgba(93, 163, 250, .22);
	border-radius: 14px;
	background: rgba(93, 163, 250, .035);
	color: #5da3fa;
	font-size: 28px;
}

/*
==================================================
SEARCH CONSOLE
==================================================
*/

.search-console {
	padding: 21px 22px;
	margin-bottom: 27px;
	border: 1px solid rgba(93, 163, 250, .18);
	border-radius: 12px;
	background: rgba(12, 18, 52, .58);
}

.search-console-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 16px;
}

.search-console-title {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #ffffff;
	font-size: 17px;
	font-weight: 700;
}

.search-console-title i {
	color: #5da3fa;
	font-size: 18px;
}

.search-console-reference {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #8295b9;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	white-space: nowrap;
}

.search-console-reference i {
	color: #5da3fa;
}

/*
==================================================
SEARCH FORM
==================================================
*/

.search-form {
	width: 100%;
	min-width: 0;
	margin: 0;
}

.search-input-wrapper {
	display: flex;
	align-items: center;
	gap: 13px;
	width: 100%;
	min-width: 0;
	min-height: 56px;
	padding: 5px 6px 5px 16px;
	border: 1px solid rgba(93, 163, 250, .25);
	border-radius: 9px;
	background: #070a29;
	transition: border-color .2s ease;
}

.search-input-wrapper:focus-within {
	border-color: #5da3fa;
}

.search-input-wrapper > i {
	flex-shrink: 0;
	color: #5da3fa;
	font-size: 20px;
}

.search-input-wrapper input {
	display: block;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 42px;
	padding: 0;
	border: 0;
	outline: 0;
	box-shadow: none;
	background: transparent;
	color: #ffffff;
	font-family: 'Rajdhani', sans-serif;
	font-size: 19px;
	font-weight: 600;
}

.search-input-wrapper input::placeholder {
	color: #8394b8;
	opacity: 1;
}

.search-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 7px;
	background: #5da3fa;
	color: #070a29;
	font-family: 'Rajdhani', sans-serif;
	font-size: 21px;
	cursor: pointer;
	transition: background .2s ease;
}

.search-submit:hover {
	background: #8bbfff;
}

.search-submit:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

/*
==================================================
FILTERS
==================================================
*/

.search-filter-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px 20px;
	width: 100%;
	margin-top: 15px;
}

.search-type-filters {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	min-width: 0;
}

.search-type-option {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 35px;
	padding: 7px 14px;
	border: 1px solid rgba(93, 163, 250, .16);
	border-radius: 6px;
	background: rgba(93, 163, 250, .035);
	color: #b3c0dc;
	font-family: 'Rajdhani', sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.search-type-option input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.search-type-option:hover {
	color: #ffffff;
	border-color: rgba(93, 163, 250, .45);
}

.search-type-option.active,
.search-type-option:has(input:checked) {
	background: #5da3fa;
	border-color: #5da3fa;
	color: #070a29;
}

.search-type-option:focus-within {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.search-select-filters {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
}

.search-select-filters select {
	display: block;
	min-width: 145px;
	max-width: 240px;
	min-height: 35px;
	padding: 6px 12px;
	border: 1px solid rgba(93, 163, 250, .2);
	border-radius: 6px;
	outline: 0;
	background: #0b1132;
	color: #e5edff;
	font-family: 'Rajdhani', sans-serif;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.search-select-filters select:focus {
	border-color: #5da3fa;
}

.search-select-filters select option {
	background: #0b1132;
	color: #ffffff;
}

/*
==================================================
RESULTS HEADING
==================================================
*/

.search-results {
	min-width: 0;
}

.search-results-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-bottom: 15px;
	margin-bottom: 14px;
	border-bottom: 1px solid rgba(93, 163, 250, .14);
}

.search-results-title {
	min-width: 0;
}

.search-results-heading h2 {
	margin: 0;
	color: #ffffff;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.15;
}

.search-results-count {
	display: flex;
	align-items: center;
	gap: 9px;
	color: #9daccb;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

.search-results-count i {
	color: #5da3fa;
	font-size: 15px;
}

/*
==================================================
RESULTS — FULL WIDTH
==================================================
*/

.search-results-list {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	width: 100%;
	max-width: none;
	min-width: 0;
}

/*
==================================================
RESULT CARDS
==================================================
*/

.search-result-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	max-width: none;
	min-width: 0;
	padding: 19px 22px;
	border: 1px solid rgba(93, 163, 250, .25);
	border-radius: 9px;
	background: rgba(24, 49, 94, .48);
	color: #ffffff;
	font-family: 'Rajdhani', sans-serif;
	text-decoration: none;
	text-align: left;
	cursor: pointer;
	transition: border-color .2s ease, background .2s ease;
}

.search-result-card:hover {
	border-color: rgba(93, 163, 250, .65);
	background: rgba(30, 59, 112, .6);
	color: #ffffff;
	text-decoration: none;
}

.search-result-card:focus-visible {
	outline: 2px solid #5da3fa;
	outline-offset: 2px;
}

.search-result-card.selected {
	border-color: #5da3fa;
	background: rgba(93, 163, 250, .15);
}

.search-result-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.search-result-type {
	color: #5da3fa;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.search-result-top > i {
	color: #5da3fa;
	font-size: 17px;
}

.search-result-title {
	margin: 0;
	color: #ffffff;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.search-result-parent {
	margin-top: 7px;
	color: #a2b0cd;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.search-result-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px 17px;
	margin-top: 12px;
}

.search-result-meta span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #a5b3cf;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.search-result-meta i {
	color: #5da3fa;
	font-size: 14px;
}

.search-result-link {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	color: #5da3fa;
	font-size: 15px;
	font-weight: 700;
}

.search-result-link i {
	font-size: 14px;
	transition: transform .2s ease;
}

.search-result-card:hover .search-result-link i {
	transform: translateX(4px);
}

/*
==================================================
SYMPOSIUM
==================================================
*/

.search-result-card.symposium {
	background: rgba(183, 151, 254, .20);
	border: 1px solid #b797fe;
}

.search-result-card.symposium:hover {
	background: rgba(183, 151, 254, .28);
	border-color: #b797fe;
}

.search-result-card.symposium.selected {
	background: rgba(183, 151, 254, .30);
	border-color: #b797fe;
}

.search-result-card.symposium .search-result-type,
.search-result-card.symposium .search-result-top > i,
.search-result-card.symposium .search-result-meta i,
.search-result-card.symposium .search-result-link {
	color: #b797fe;
}

.search-result-card.symposium .search-result-title {
	color: #ffffff;
}

/*
==================================================
LECTURES
==================================================
*/

.search-result-card.lecture .search-result-type {
	color: #a8c5ff;
}

/*
==================================================
EMPTY STATE
==================================================
*/

.search-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 135px;
	padding: 25px 20px;
	border: 1px dashed rgba(93, 163, 250, .18);
	border-radius: 10px;
	background: rgba(93, 163, 250, .018);
	text-align: center;
}

.search-empty > i {
	color: #5da3fa;
	font-size: 29px;
	opacity: .85;
}

.search-empty p {
	max-width: 500px;
	margin: 0;
	color: #9cacca;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.35;
}

/*
==================================================
DETAIL PANEL
==================================================
*/

.search-workspace-body > .detail-pane {
	display: none;
	flex-shrink: 0;
	min-width: 0;
}

.search-workspace-body.detail-open > .detail-pane {
	display: flex;
	flex-direction: column;
	flex: 0 0 360px;
	width: 360px;
	max-width: 360px;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}

.search-workspace-body.detail-open > .search-pane {
	flex: 1 1 0%;
	width: auto;
	min-width: 0;
}

.search-workspace-body.detail-open .search-content {
	padding-right: 18px;
}

.search-workspace-body.detail-open .search-intro-icon {
	display: none;
}

.search-workspace-body.detail-open .search-intro h1 {
	font-size: clamp(25px, 2.2vw, 34px);
}

.search-detail-loading,
.search-detail-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 180px;
	padding: 25px;
	color: #a5b3cf;
	text-align: center;
	font-size: 16px;
}

.search-detail-loading i {
	color: #5da3fa;
	font-size: 27px;
}

.search-detail-error i {
	color: #b797fe;
	font-size: 27px;
}

/*
==================================================
LARGE DESKTOP
==================================================
*/

@media (min-width: 1600px) {

	.search-content {
		padding: 30px 22px 60px;
	}

	.search-result-card {
		padding: 21px 24px;
	}

	.search-result-title {
		font-size: 21px;
	}

}

/*
==================================================
TABLET
==================================================
*/

@media (max-width: 1100px) {

	.search-content {
		padding: 25px 20px 45px;
	}

	.search-filter-row {
		align-items: stretch;
	}

	.search-select-filters {
		width: 100%;
	}

	.search-select-filters select {
		flex: 1 1 0%;
		min-width: 0;
		max-width: none;
	}

	.search-workspace-body.detail-open > .detail-pane {
		flex-basis: 330px;
		width: 330px;
		max-width: 330px;
	}

}

/*
==================================================
MOBILE
==================================================
*/

@media (max-width: 850px) {

	.search-workspace-body.detail-open > .detail-pane {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 1100;
		display: flex;
		width: 100%;
		max-width: none;
		height: 100%;
	}

	.search-workspace-body.detail-open > .search-pane {
		flex: 1 1 auto;
		width: 100%;
	}

}

@media (max-width: 600px) {

	.search-content {
		padding: 22px 16px 40px;
	}

	.search-intro {
		gap: 12px;
		margin-bottom: 23px;
	}

	.search-intro h1 {
		font-size: 30px;
	}

	.search-intro p {
		margin-top: 9px;
		font-size: 16px;
	}

	.search-eyebrow {
		gap: 7px;
		font-size: 10px;
		letter-spacing: 1px;
	}

	.search-eyebrow-line {
		width: 15px;
	}

	.search-intro-icon {
		display: none;
	}

	.search-console {
		padding: 16px;
		margin-bottom: 24px;
	}

	.search-console-header {
		margin-bottom: 13px;
	}

	.search-console-title {
		font-size: 16px;
	}

	.search-console-reference {
		font-size: 10px;
	}

	.search-input-wrapper {
		gap: 9px;
		min-height: 53px;
		padding: 5px 5px 5px 12px;
	}

	.search-input-wrapper > i {
		font-size: 18px;
	}

	.search-input-wrapper input {
		height: 40px;
		font-size: 17px;
	}

	.search-submit {
		flex-basis: 41px;
		width: 41px;
		height: 41px;
		font-size: 19px;
	}

	.search-filter-row {
		gap: 12px;
		margin-top: 13px;
	}

	.search-type-filters {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
		gap: 7px;
	}

	.search-type-option {
		width: 100%;
		min-height: 37px;
		padding: 8px 6px;
		font-size: 14px;
	}

	.search-select-filters {
		display: flex;
		flex-direction: column;
		gap: 8px;
		width: 100%;
	}

	.search-select-filters select {
		width: 100%;
		max-width: none;
		min-height: 41px;
		font-size: 15px;
	}

	.search-results-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
		padding-bottom: 12px;
	}

	.search-results-heading h2 {
		font-size: 20px;
	}

	.search-results-count {
		font-size: 14px;
	}

	.search-results-list {
		gap: 10px;
	}

	.search-result-card {
		padding: 17px;
	}

	.search-result-title {
		font-size: 19px;
	}

	.search-result-parent {
		font-size: 14px;
	}

	.search-result-meta {
		gap: 8px 13px;
	}

	.search-result-meta span {
		font-size: 13px;
	}

	.search-empty {
		min-height: 125px;
		padding: 23px 16px;
	}

	.search-empty p {
		font-size: 16px;
	}

}

/*
==================================================
SMALL MOBILE
==================================================
*/

@media (max-width: 380px) {

	.search-content {
		padding: 18px 12px 32px;
	}

	.search-intro h1 {
		font-size: 27px;
	}

	.search-console {
		padding: 13px;
	}

	.search-type-option {
		font-size: 13px;
	}

}

/*
==================================================
ACCESSIBILITY
==================================================
*/

@media (prefers-reduced-motion: reduce) {

	.search-input-wrapper,
	.search-submit,
	.search-type-option,
	.search-result-card,
	.search-result-link i {
		transition: none;
	}

}

/* DETAIL PANEL — MATCH HOME.PHP */

@media (min-width: 851px) {

	.search-workspace-body.detail-open > .detail-pane {
		flex: 0 0 420px;
		width: 420px;
		max-width: 420px;
	}

}

.search-workspace-body .detail-scroll {
	padding: 24px;
}

.search-workspace-body .detail-identity {
	text-align: left;
}

.search-workspace-body .detail-title {
	margin: 12px 0 21px;
	font-size: 30px;
	line-height: 1.18;
	text-align: left;
}

.search-workspace-body .detail-info {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 11px;
	margin-bottom: 12px;
	text-align: left;
}

.search-workspace-body .detail-info i {
	width: 18px;
	flex-shrink: 0;
	text-align: center;
}

.search-workspace-body .detail-tabs {
	margin-bottom: 25px;
}

.search-workspace-body .detail-content-inner {
	padding: 0;
}

.search-workspace-body .detail-tab-panel[hidden] {
	display: none !important;
}
/* Layout exclusivo da pesquisa. O painel de detalhes herda programme.css. */
.search-workspace-body {
	display: flex;
	flex: 1;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}
.search-main-pane {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
}
.search-main-content {
	width: 100%;
	max-width: none;
	padding: 26px 20px 48px;
	box-sizing: border-box;
}
.search-workspace-body .detail-pane {
	display: flex;
	flex-direction: column;
	flex: 0 0 0;
	width: 0;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	visibility: hidden;
	border-left: 0;
}
.search-workspace-body.detail-open .detail-pane {
	flex: 0 0 420px;
	width: 420px;
	max-width: 420px;
	visibility: visible;
	border-left: 1px solid #26365f;
}
.search-workspace-body.detail-open .search-main-pane {
	flex: 1 1 0;
}
.search-workspace-body .detail-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 24px;
}
.search-workspace-body .detail-tab-panel[hidden] {
	display: none !important;
}
.search-workspace-body .detail-footer {
	margin-top: auto;
}
.search-results-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	width: 100%;
}
.search-results-grid > * {
	width: 100%;
	max-width: none;
	min-width: 0;
	box-sizing: border-box;
}
.search-results-grid .search-result-card {
	width: 100%;
	max-width: none;
	margin: 0;
}
.search-detail-error,
.search-detail-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 220px;
	padding: 24px;
	text-align: center;
	color: #91a9d5;
	font-size: 15px;
}
.search-detail-error i,
.search-detail-loading i {
	color: #b797fe;
	font-size: 27px;
}
.search-detail-loading i {
	animation: search-detail-spin 1s linear infinite;
}
@keyframes search-detail-spin {
	to { transform: rotate(360deg); }
}
@media (min-width: 701px) and (max-width: 1200px) {
	.search-workspace-body.detail-open .detail-pane {
		flex-basis: 350px;
		width: 350px;
		max-width: 350px;
	}
}
@media (max-width: 700px) {
	.search-main-content {
		padding: 20px 12px 36px;
	}
	.search-workspace-body .detail-pane {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 1100;
		width: 100%;
		max-width: 100%;
		height: 100dvh;
		transform: translateX(100%);
		transition: transform .25s ease;
		background: #0c1334;
		visibility: hidden;
	}
	.search-workspace-body.detail-open .detail-pane {
		width: 100%;
		max-width: 100%;
		flex-basis: auto;
		transform: translateX(0);
		visibility: visible;
	}
}

/* SEARCH — SPACE GRID BACKGROUND */

.search-scroll,
.search-main-pane {
	background-color: #070a29;
	background-image:
		linear-gradient(
			to right,
			rgba(93, 163, 250, 0.035) 1px,
			transparent 1px
		),
		linear-gradient(
			to bottom,
			rgba(93, 163, 250, 0.035) 1px,
			transparent 1px
		),
		radial-gradient(
			ellipse at 50% 0%,
			rgba(93, 163, 250, 0.055),
			transparent 65%
		);

	background-size:
		18px 18px,
		18px 18px,
		100% 100%;
}

/* SEARCH — CUSTOM SCROLLBAR */

.search-main-pane,
.search-scroll,
.detail-scroll {
	scrollbar-width: thin;
	scrollbar-color: #354d7d transparent;
}

.search-main-pane::-webkit-scrollbar,
.search-scroll::-webkit-scrollbar,
.detail-scroll::-webkit-scrollbar {
	width: 6px;
}

.search-main-pane::-webkit-scrollbar-track,
.search-scroll::-webkit-scrollbar-track,
.detail-scroll::-webkit-scrollbar-track {
	background: transparent;
}

.search-main-pane::-webkit-scrollbar-thumb,
.search-scroll::-webkit-scrollbar-thumb,
.detail-scroll::-webkit-scrollbar-thumb {
	background: #354d7d;
	border-radius: 10px;
}

.search-main-pane::-webkit-scrollbar-thumb:hover,
.search-scroll::-webkit-scrollbar-thumb:hover,
.detail-scroll::-webkit-scrollbar-thumb:hover {
	background: #5da3fa;
}

