/* HEADER SEARCH AND TABS */

.custom-search-select-container {
	display: flex;
	flex-direction: column;
	width: 100%;
	border-bottom: none !important;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

.cases-header-search-container {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	background-color: #f9f7f7;
	position: sticky;
	top: 74px;
	z-index: 1000;
}

@media (max-width: 1200px) {
	.cases-header-search-container {
		top: 66px;
	}
}

/* SUB HEADER */

.custom-search-header {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.custom-tabs-search-container {
	display: flex;
	flex-direction: column;
	width: 100%;
	align-items: center;
	background-color: #f9f7f7;
	border-bottom: 1px solid #e7e4e4;
}

/* SEARCH CATEGORY TABS */

.custom-tab-group::part(nav) {
	scrollbar-width: none;
	-ms-overflow-style: none;
	border-bottom: none !important;
	gap: 24px;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

.custom-tab-group::part(nav)::-webkit-scrollbar {
	display: none;
}

.custom-tab-group::part(active-tab-indicator) {
	display: none;
}

.custom-tab-group::part(base) {
	border-bottom: none !important;
	background-color: transparent !important;
}

.custom-tab-group {
	--track-color: transparent !important;
}

.custom-tab-group sl-tab {
	min-width: 0 !important;
	margin-right: 24px;
	font-family: 'Inter Variable';
	font-size: 16px !important;

	--sl-font-weight-bold: 400 !important;
	--sl-font-weight-semibold: 400 !important;
	--sl-tab-font-weight: 400 !important;
	--sl-tab-font-weight-active: 700 !important;
}

.custom-tab-group sl-tab::part(base) {
	border-bottom: none !important;
	background-color: transparent !important;
	padding-bottom: 0 !important;
	padding-top: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	display: inline-flex;
	flex-shrink: 0;
	height: auto !important;
	font-size: 16px !important;
	font-family: 'Inter Variable' !important;
}

.custom-tab-group sl-tab::part(content) {
	font-size: 16px !important;
	color: #29354e !important;
	font-weight: 400 !important;
	white-space: nowrap;
	text-align: center;
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.custom-tab-group sl-tab::part(label) {
	font-weight: 400 !important;
}

.custom-tab-group sl-tab[active]::part(label) {
	font-weight: 700 !important;
	color: #29354e !important;
}

.search-category-tabs {
	display: flex;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
	overflow-x: auto;
	border-bottom: none !important;
	gap: 24px;
}

.search-category-tab {
	background: none;
	border: none !important;
	color: #29354e !important;
	font-size: 16px !important;
	cursor: pointer;
	padding-bottom: 0 !important;
	transition: color 0.2s ease, border-color 0.2s ease;
	font-weight: 400 !important;
}

.search-category-tab:hover {
	color: #1e40af;
}

.search-category-tab.active {
	color: #29354e !important;
	font-weight: 700 !important;
	border-bottom: none !important;
	padding-bottom: 0 !important;
}

custom-tab-group sl-tab[active]::part(base) {
	font-weight: 700 !important;
}

.custom-tab-group sl-tab[active]::part(base),
.custom-tab-group sl-tab[active]::part(label),
.custom-tab-group sl-tab[active]::part(content) {
	font-weight: 700 !important;
}

sl-tab[active] {
	font-weight: 700 !important;
}

.custom-tab-group::part(scroll-button) {
	margin-top: 0px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: unset;
	min-height: unset;
}

.custom-tab-group::part(scroll-button)::part(base) sl-icon {
	font-size: 16px;
}

.custom-tab-group::part(scroll-button__base) {
	font-size: 16px;
}

.custom-tab-group::part(base) {
	border-bottom: none !important;
	background-color: transparent !important;
}

.custom-tab-group {
	--track-color: transparent !important;
}

.custom-tab-group sl-tab {
	min-width: 0 !important;
	margin-right: 24px;
	font-family: 'Inter Variable';
	font-size: 16px !important;

	--sl-font-weight-bold: 400 !important;
	--sl-font-weight-semibold: 400 !important;
	--sl-tab-font-weight: 400 !important;
	--sl-tab-font-weight-active: 700 !important;
}

.custom-tab-group sl-tab::part(base) {
	border-bottom: none !important;
	background-color: transparent !important;
	padding-bottom: 0 !important;
	padding-top: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	display: inline-flex;
	flex-shrink: 0;
	height: auto !important;
	font-size: 16px !important;
	font-family: 'Inter Variable' !important;
}

.custom-tab-group sl-tab::part(content) {
	font-size: 16px !important;
	color: #29354e !important;
	font-weight: 400 !important;
	white-space: nowrap;
	text-align: center;
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.custom-tab-group sl-tab::part(label) {
	font-weight: 400 !important;
}

.custom-tab-group sl-tab[active]::part(label) {
	font-weight: 700 !important;
	color: #29354e !important;
}

.search-category-tabs {
	display: flex;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
	overflow-x: auto;
	border-bottom: none !important;
	gap: 24px;
}

.search-category-tab {
	background: none;
	border: none !important;
	color: #29354e !important;
	font-size: 16px !important;
	cursor: pointer;
	padding-bottom: 0 !important;
	transition: color 0.2s ease, border-color 0.2s ease;
	font-weight: 400 !important;
}

.search-category-tab:hover {
	color: #1e40af;
}

.search-category-tab.active {
	color: #29354e !important;
	font-weight: 700 !important;
	border-bottom: none !important;
	padding-bottom: 0 !important;
}

custom-tab-group sl-tab[active]::part(base) {
	font-weight: 700 !important;
}

.custom-tab-group sl-tab[active]::part(base),
.custom-tab-group sl-tab[active]::part(label),
.custom-tab-group sl-tab[active]::part(content) {
	font-weight: 700 !important;
}

sl-tab[active] {
	font-weight: 700 !important;
}

.custom-tab-group::part(scroll-button) {
	margin-top: 0px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: unset;
	min-height: unset;
}

.custom-tab-group::part(scroll-button)::part(base) sl-icon {
	font-size: 16px;
}

/* SEARCHBAR */

.search-bar-animated-wrapper {
	display: flex;
	flex-direction: column;

	max-height: 0;
	margin-top: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-20px);
	overflow: hidden;

	transition: max-height 0.4s ease-out, margin-top 0.4s ease-out,
		opacity 0.4s ease-out, visibility 0.4s ease-out, transform 0.4s ease-out;
}

.search-bar-animated-wrapper.show-on-scroll {
	max-height: 56px;
	margin-top: 16px;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	overflow: visible;
}

.custom-search-wrapper {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 1230px;
	height: 40px;
	border-radius: 4px;
	border: 1px solid rgba(231, 228, 228, 1);

	background-color: #fff;
}

@media (min-width: 768px) {
	.custom-search-wrapper {
		width: 100%;
	}
}

.search-icon-subheader {
	background-color: rgba(41, 53, 78, 1);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 40px;
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
}

.search-icon-icon {
	font-size: 1rem;
	color: rgba(255, 255, 255, 1);
}

.custom-input-element {
	color: rgba(63, 63, 70, 1);
	background-color: transparent;
	width: 100% !important;
	padding-right: 16px;
	align-items: center;
	font-size: 16px;
}

.custom-input-element:focus-visible {
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
}

.custom-select-wrapper {
	position: relative;
	width: 120px;
	color: white;
	border-right: 1px solid rgba(231, 228, 228, 1);
}

.custom-select-arrow {
	color: rgba(70, 67, 67, 1);
	font-size: 0.6rem;
	margin-left: 0.3rem;
	transition: transform 0.2s ease;
}

.custom-select {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	padding: 0.5rem;
	background-color: rgb(255 255 255/0.1);
	border-right: 1px solid rgb(255 255 255/0.1);
	height: 40px;
	font-size: 0.8rem;
	width: 120px;
	padding-left: 12px;
	border-top-left-radius: 12px;
	border-bottom-left-radius: 12px;
	color: rgba(70, 67, 67, 1);
}

.custom-input {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-left: 0.5rem;
	background-color: rgb(255 255 255/0.1);
	border-top-right-radius: 12px;
	border-bottom-right-radius: 12px;
	height: 40px;
	border-left: none;
}

.custom-select-options {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background-color: #fff;
	border: 1px solid rgba(231, 228, 228, 1);
	border-top: none;
	border-radius: 0 0 4px 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	z-index: 10;
	list-style: none;
	padding: 0;
	margin: 0;
	width: 200px;
}

.custom-select-option-item {
	padding: 0.5rem 0.7rem;
	cursor: pointer;
	color: #464643;
	font-size: 0.8rem;
}

.custom-select-wrapper.open .custom-select-options {
	display: block;
}

.custom-select-option-item:hover {
	background-color: #f3f4f6;
}

.custom-select-option-item.selected {
	background-color: #f3f4f6;
}

.custom-select-wrapper.open .custom-select-arrow {
	transform: rotate(180deg);
}

.custom-input-element::placeholder {
	color: #787474;
	font-size: 16px;
}

/* VINCENT CARD  */

.case-vincent-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	background-color: #f9f7f7;
	border-radius: 4px;
	gap: 16px;
	border: 1px solid #d8d4d4;
	padding: 24px;
	overflow: hidden;
}

.case-vincent-card-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
}

.case-vincent-card-title,
.case-vincent-card-subtitle,
.case-vincent-card-button {
	position: relative;
	z-index: 1;
}

.case-vincent-card-title {
	color: #000;
	font-family: 'At Aero Retina';
	font-size: 24px;
	font-style: normal;
	font-weight: 350;
	line-height: 130%;
}

.case-vincent-card-subtitle {
	color: #000;
	font-family: 'Aeonik';
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 150%;
}

.case-vincent-card-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

/* CTA BUTTON */
.cta-button::part(base) {
	border-radius: 4px;
	background: #0061ff;
	color: #fff;
	font-family: 'Aeonik';
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 150%;
	height: 40px;
	width: 168px;
	display: flex;
	align-items: center;
	justify-content: center;
}

a.cta-button {
	border-radius: 4px;
	background: #0061ff !important;
	color: #fff;
	font-family: 'Aeonik';
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 150%;
	height: 40px;
	width: 168px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* TABS CASES  */
.tab-cases {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5em 1em;
	line-height: 1.5em;
}

sl-tab[active]::part(base) {
	color: #29354e;
}

.cases-grid {
	align-items: start;
	margin-bottom: 4em;
}

@media (min-width: 768px) {
	.cases-grid {
		display: grid;
		grid-template-columns: 3fr 1fr;
		gap: 2rem;
		align-items: start;
	}
}

.case-view-tab-group::part(indicator) {
	background-color: #0061ff !important;
	height: 3px;
	margin-top: 20px !important;
}

.case-view-tab-group sl-tab[active]::part(base),
.case-view-tab-group sl-tab[active]::part(label),
.case-view-tab-group sl-tab[active]::part(content) {
	color: #0061ff !important;
	font-weight: 400 !important;
	font-family: 'Inter Variable' !important;
	font-size: 16px !important;
}

.case-view-tab-group sl-tab::part(base) {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding-bottom: 20px !important;
	padding-top: 20px !important;
	font-family: 'Inter Variable' !important;
	font-size: 16px !important;
	/* margin-right: 12px !important; */
}

/* CASE CARD */

.case-card {
	display: flex;
	flex-direction: column;
	font-family: 'Inter Variable';
}

.case-meta {
	font-size: 14px;
	color: #787474;
	margin-bottom: 12px;
}

.case-dot {
	margin: 0 12px;
}

.case-title {
	font-size: 20px;
	font-weight: 500;
	color: #0061ff;
	cursor: pointer;
	margin-bottom: 16px;
}

.case-summary {
	font-size: 16px;
	color: #3f3f46;
	line-height: 160%;
	margin-bottom: 12px;
}

.case-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.case-tag {
	color: #0061ff;
	font-size: 14px;
	text-decoration: none;
}

.case-tag:hover {
	text-decoration: underline;
}

.case-cards-list {
	display: flex;
	flex-direction: column;
	gap: 40px;
	margin-top: 56px;
}

/* HEADER */

.header-buttons {
	color: #ffffff;
	font-size: 16px;
	font-weight: 400;
	line-height: 150%;
	display: flex;
	align-items: center;
	padding-top: 8px;
	font-family: 'Aeonik', sans-serif;
}

.cases-header-buttons-container {
	gap: 16px;
	display: flex;
	align-items: center;
	margin-left: 100px;
}

.cases-header-image-search {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.cases-header-search-desktop-container {
	display: none;
}

@media (min-width: 768px) {
	.cases-header-search-desktop-container {
		display: flex;
	}
}

.cases-header-container-search-mobile {
	display: flex;
	width: 100%;
	max-width: 1440px;
	padding-bottom: 1rem;
	justify-content: center;
	padding-left: 1rem;
	padding-right: 1rem;
}

@media (min-width: 768px) {
	.cases-header-container-search-mobile {
		display: none;
	}
}

.cases-header-container {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	/* background-color: rgb(14 27 42 / var(--tw-bg-opacity, 1)); */
	background-color: #29354e;
}

.sign-in-button::part(base) {
	color: white;
	border: 1px solid white;
	background-color: transparent;
	border-radius: 6px;
}

.sign-in-button::part(base):hover {
	background-color: white;
	color: #323b43;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.vincent-button::part(base) {
	color: #323b43;
	background-color: white;
	border: 1px solid white;
	border-radius: 6px;
}

.vincent-button::part(base):hover {
	background-color: transparent;
	color: white;
	border: 1px solid white;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.cases-header-img {
	width: 90px;
	height: 42px;
	align-self: center;
	object-fit: contain;
}

.cases-header-container-buttons {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	padding-bottom: 4px;
}

.cases-header-container-buttons sl-button::part(base) {
	vertical-align: middle;
}

.cases-header-container-buttons sl-button {
	align-self: center;
}

.cases-header-container-inside {
	color: black;
	font-size: 2em;
	display: flex;
	justify-content: space-between;
	width: 100%;
	max-width: 1440px;
	/* padding: 1rem; */
	align-items: center;
}

@media (min-width: 1440px) {
	.cases-header-container-inside {
		padding: 1rem 80px 2rem 80px;
		align-items: center;
		max-width: 1440px;
	}
}

.cases-header-padding-with-search {
	padding: 1rem 80px 2rem 80px;
}

.cases-header-padding-no-search {
	padding: 20px 80px;
}

@media (max-width: 1200px) {
	.cases-header-padding-no-search {
		padding: 20px 16px;
	}
}

.cases-header-tabs-container {
	background-color: #ffffff;
	display: flex;
	justify-content: center;
	width: 100%;
	padding-top: 0.1rem;
	border: 1px solid #e5e7eb;
}

.cases-header-tabs-container-inside {
	display: flex;
	width: 100%;
	max-width: 1440px;
	padding: 0 2rem;
}

.cases-header-tabs::part(base),
.cases-header-tabs::part(nav) {
	border: none !important;
	box-shadow: none !important;
}

.cases-header-tabs::part(indicator) {
	background-color: #1d4ed8 !important;
	height: 3px;
}

.cases-header-tabs::part(tab) {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #374151;
	padding: 0 0.75rem;
}

.cases-header-tabs sl-tab::part(base) {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.75rem;
	height: 40px;
	font-size: 14px;
	font-weight: 400;
	color: #374151;
	padding-bottom: 0.5rem;
}

.cases-header-tabs sl-tab[active]::part(base) {
	color: #333333;
	font-weight: 600;
}

.cases-header-tabs sl-tab:hover::part(base) {
	color: #333333;
}

.tab-scroll-wrapper {
	width: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background-color: white;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
	padding: 0;
}

.tab-scroll-container {
	overflow-x: auto;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	width: 1440px;
	padding: 0 1rem;
}

@media (min-width: 768px) {
	.tab-scroll-container {
		padding: 0 3rem;
	}
}


@media (max-width: 768px) {
	.cited-in-wrapper {
		background-image: none !important;
	}
}

/* ERROR PAGE STYLES */

.unstyled-element {
	all: unset;
	display: block;
	font-size: inherit;
	font-weight: inherit;
}

.error-container {
	display: flex;
	max-width: 584px;
	width: 100%;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	margin-top: 116px;
	margin-bottom: 224px;
	padding: 0 16px;
}

.bug-icon {
	font-size: 48px;
	color: #464343;
}

.error-title {
	color: #464343;
	text-align: right;
	font-family: 'At Aero Retina';
	font-size: 54px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
}

.error-subtitle {
	color: #464343;
	font-family: 'At Aero Retina';
	font-size: 24px;
	font-style: normal;
	font-weight: 400;
	line-height: 140%; /* 33.6px */
}

.error-text-code {
	color: #464343;
	font-family: 'Inter Variable';
	font-size: 16px;
	font-style: normal;
	font-weight: 600;
	line-height: 140%; /* 22.4px */
}

.error-message {
	color: #464343;
	font-family: 'Inter Variable';
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 150%; /* 24px */
}

.error-buttons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.search-icon-codes-books {
	padding: 0 0 0 16px;
}

.cited-in-wrapper {
    overflow: hidden;
    background-image: url(/img/bg-3.svg);
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: auto 100%;
    padding-block: 1.5rem;
    background-color: var(--colour-vincent-teal-mid);
}

.cited-in-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
	flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.cited-in-text {
    max-width: 530px;
    text-align: left;
    padding: 0px 16px 0px 48px;

	.tabs-marketing-title-global {
		font-weight: 400;
		font-size: 32px;
		max-width: 100%;
		color: #fff;
		font-family: 'Aeonik';
		padding-bottom: 24px;
	}

	.marketing-benefits-list {
		list-style: none;
		margin: 0;
		padding: 0;
	}
}

.button-modal-container {
    margin-top: 16px;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 2rem;
    padding-left: 48px;
}

.cta-button-gradient {
    font-family: 'Aeonik';
    border: 1px solid #fff;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 400;
    border-radius: 3px;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    background: var(--colour-vincent-font-white);
    color: var(--colour-vincent-dark-navy);
}

.cta-button-gradient:hover {
    background: var(--colour-vincent-dark-navy);
    color: var(--colour-vincent-font-white);
}

.cited-in-image {
    width: 100%;
    max-width: 400px;
    padding-right: 24px;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Search Results Styling */
.search-results-cta {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.search-results-cta .cta-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

.search-results-cta .cta-container p {
    color: #64748b;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search results container */
#search-results-list {
    border-radius: 4px;
    padding: 1.5rem;
    margin: 1rem 0;
}

/* Simple search result styling with separators */
#search-results-list .result-item {
    position: relative;
    padding: 1rem 0;
    margin-bottom: 0;
}

#search-results-list .result-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

/* Case card styling within results */
#search-results-list .case-card {
    border: none;
    box-shadow: none;
    padding: 0;
}

#search-results-list .case-card .case-meta {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
}

#search-results-list .case-card .case-title {
    font-size: 1.125rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.highlighted, mark {
    background-color: #ffeeb3;
}