/* =====================================================
IVRD — MASTER STYLESHEET
Author: Ridho Muhammad
Email: ridho.yzd@gmail.com
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────── */
:root {
	--blue: #0d6efd;
	--blue-dark: #0a58ca;
	--blue-deeper: #084298;
	--blue-light: #cfe2ff;
	--blue-xlight: #e8f0fe;
	--white: #ffffff;
	--gray-50: #f8f9fa;
	--gray-100: #f1f3f5;
	--gray-200: #e9ecef;
	--gray-300: #dee2e6;
	--gray-400: #ced4da;
	--gray-500: #adb5bd;
	--gray-600: #6c757d;
	--gray-700: #495057;
	--gray-800: #343a40;
	--gray-900: #212529;
	--green: #198754;
	--orange: #fd7e14;
	--red: #dc3545;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, .08), 0 2px 4px rgba(0, 0, 0, .04);
	--shadow-lg: 0 10px 30px rgba(0, 0, 0, .10), 0 4px 8px rgba(0, 0, 0, .05);
	--shadow-blue: 0 4px 20px rgba(13, 110, 253, .20);
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 16px;
	--radius-xl: 24px;
	--font-ui: 'Sora', sans-serif;
	--font-serif: 'Source Serif 4', serif;
	--font-mono: 'JetBrains Mono', monospace;
	--transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base Reset ────────────────────────────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-ui);
	font-size: 14.5px;
	color: var(--gray-800);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.65;
}

a {
	color: var(--blue);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover {
	color: var(--blue-dark);
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

::-webkit-scrollbar-track {
	background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
	background: var(--gray-400);
	border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--blue);
}

/* ══════════════════════════════════════════════════
NAVBAR
══════════════════════════════════════════════════ */
.main-navbar {
	background: var(--white);
	border-bottom: 1.5px solid var(--gray-200);
	padding: 0;
	position: sticky;
	top: 0;
	z-index: 1030;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.navbar-brand-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 0;
}
.navbar-brand-wrap img.logo{
	height: 76px;
}

.brand-icon {
	width: 36px;
	height: 36px;
	background: var(--blue);
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.brand-icon svg {
	width: 20px;
	height: 20px;
	color: white;
}

.brand-name {
	font-size: 17px;
	font-weight: 700;
	color: var(--gray-900);
	letter-spacing: -0.3px;
}

.brand-name span {
	color: var(--blue);
}

.brand-sub {
	font-size: 10px;
	font-weight: 500;
	color: var(--gray-500);
	letter-spacing: 0.8px;
	text-transform: uppercase;
	line-height: 1;
	margin-top: 1px;
}

.nav-search-bar {
	max-width: 440px;
	width: 100%;
}

.nav-search-bar .input-group {
	border: 1.5px solid var(--gray-300);
	border-radius: var(--radius-xl);
	overflow: hidden;
	transition: border-color var(--transition), box-shadow var(--transition);
	background: var(--gray-50);
}

.nav-search-bar .input-group:focus-within {
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
	background: white;
}

.nav-search-bar input {
	border: none;
	background: transparent;
	padding: 8px 14px;
	font-family: var(--font-ui);
	font-size: 13.5px;
	color: var(--gray-800);
}

.nav-search-bar input:focus {
	box-shadow: none;
}

.nav-search-bar input::placeholder {
	color: var(--gray-400);
}

.nav-search-bar .btn {
	border: none;
	border-radius: 0;
	padding: 8px 14px;
	color: var(--gray-500);
	background: transparent;
	transition: color var(--transition);
}

.nav-search-bar .btn:hover {
	color: var(--blue);
}

.search-suggestions-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 1.5px solid var(--gray-300);
	border-top: none;
	border-radius: 0 0 var(--radius-xl) var(--radius-xl);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	z-index: 1000;
	max-height: 400px;
	overflow-y: auto;
	margin-top: -1px;
}

.search-suggestions-dropdown .suggestion-group {
	padding: 8px 0;
}

.search-suggestions-dropdown .suggestion-group:first-child {
	padding-top: 12px;
}

.search-suggestions-dropdown .suggestion-group:last-child {
	padding-bottom: 12px;
}

.search-suggestions-dropdown .group-label {
	font-size: 11px;
	font-weight: 600;
	color: var(--gray-500);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 0 12px 6px 12px;
	margin-top: 4px;
}

.search-suggestions-dropdown .suggestion-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px 8px 12px;
	cursor: pointer;
	transition: background-color var(--transition), color var(--transition);
	color: var(--gray-700);
	font-size: 13.5px;
}

.search-suggestions-dropdown .suggestion-item:hover {
	background-color: var(--blue-xlight);
	color: var(--blue);
}

.search-suggestions-dropdown .suggestion-item svg {
	width: 14px;
	height: 14px;
	opacity: 0.4;
	flex-shrink: 0;
}

.search-suggestions-dropdown .suggestion-item:hover svg {
	opacity: 0.8;
}

.search-suggestions-dropdown .suggestion-empty {
	padding: 24px 16px;
	text-align: center;
	color: var(--gray-500);
}

.search-suggestions-dropdown .suggestion-empty svg {
	width: 32px;
	height: 32px;
	margin: 0 auto 12px;
	color: var(--gray-300);
}

.search-suggestions-dropdown .suggestion-empty p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
}

.search-suggestions-dropdown .suggestion-empty strong {
	color: var(--gray-700);
	font-weight: 600;
}

.nav-search-bar {
	position: relative;
}

.navbar-nav .nav-link {
	font-size: 13.5px;
	font-weight: 500;
	color: var(--gray-600);
	padding: 8px 14px;
	border-radius: var(--radius-sm);
	transition: all var(--transition);
	display: flex;
	align-items: center;
	gap: 6px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
	color: var(--blue);
	background: var(--blue-xlight);
}

.navbar-nav .nav-link svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
MOBILE SIDEBAR
══════════════════════════════════════════════════ */
.mobile-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1040;
	display: none;
}

.mobile-sidebar.active {
	display: block;
}

.mobile-sidebar-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
}

.mobile-sidebar-content {
	position: absolute;
	top: 0;
	left: -300px;
	width: 280px;
	height: 100%;
	background: white;
	transition: left 0.3s ease;
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
	padding-top: 0;
}

.mobile-sidebar.active .mobile-sidebar-content {
	left: 0;
}

.mobile-sidebar-close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	font-size: 24px;
	color: var(--gray-600);
	cursor: pointer;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-sm);
	transition: background-color var(--transition);
}

.mobile-sidebar-close:hover {
	background: var(--gray-100);
	color: var(--gray-800);
}

.mobile-nav {
	list-style: none;
	padding: 1rem 20px 20px;
	margin: 0;
}

.mobile-nav li {
	margin-bottom: 10px;
}

.mobile-nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	color: var(--gray-700);
	text-decoration: none;
	border-radius: var(--radius-sm);
	transition: all var(--transition);
	font-size: 14px;
	font-weight: 500;
}

.mobile-nav a:hover {
	background: var(--blue-xlight);
	color: var(--blue);
}

.mobile-nav a i {
	width: 16px;
	flex-shrink: 0;
}

/* Mobile Sidebar Logo */
.mobile-sidebar-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 16px;
	border-bottom: 1px solid var(--gray-200);
	margin-bottom: 0;
}

.mobile-logo-link {
	display: inline-block;
	text-decoration: none;
}

.mobile-sidebar-logo-img {
	height: 40px;
	width: auto;
	display: block;
}

/* ══════════════════════════════════════════════════
HERO SECTION (index)
══════════════════════════════════════════════════ */
.hero-section {
	background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue) 50%, #4dabf7 100%);
	padding: 72px 0 60px;
	position: relative;
	overflow: hidden;
}

.hero-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.hero-section::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 48px;
	background: white;
	clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-kicker {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, .15);
	border: 1px solid rgba(255, 255, 255, .25);
	color: white;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 99px;
	margin-bottom: 20px;
	backdrop-filter: blur(8px);
}

.hero-kicker svg {
	width: 13px;
	height: 13px;
}

.hero-title {
	font-family: var(--font-serif);
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 600;
	color: white;
	line-height: 1.2;
	margin-bottom: 12px;
	letter-spacing: -0.5px;
}

.hero-subtitle {
	font-size: 15px;
	color: rgba(255, 255, 255, .80);
	margin-bottom: 36px;
	font-weight: 400;
	max-width: 520px;
}

/* ── Main Search Box ── */
.hero-search-box {
	background: white;
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .2);
	padding: 6px 6px 6px 20px;
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 740px;
}

.hero-search-box input {
	flex: 1;
	border: none;
	outline: none;
	font-family: var(--font-ui);
	font-size: 15px;
	color: var(--gray-800);
	background: transparent;
}

.hero-search-box input::placeholder {
	color: var(--gray-400);
}

.hero-search-box .search-divider {
	width: 1px;
	height: 28px;
	background: var(--gray-200);
	flex-shrink: 0;
}

.hero-search-box select {
	border: none;
	outline: none;
	font-family: var(--font-ui);
	font-size: 13px;
	color: var(--gray-600);
	background: transparent;
	padding: 4px 8px;
	cursor: pointer;
	min-width: 110px;
}

.btn-hero-search {
	background: var(--blue);
	color: white;
	border: none;
	border-radius: 14px;
	padding: 11px 22px;
	font-family: var(--font-ui);
	font-size: 14px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 7px;
	cursor: pointer;
	transition: all var(--transition);
	white-space: nowrap;
	flex-shrink: 0;
}

.btn-hero-search:hover {
	background: var(--blue-dark);
	transform: translateY(-1px);
	box-shadow: var(--shadow-blue);
}

.btn-hero-search svg {
	width: 16px;
	height: 16px;
}

.hero-tips {
	margin-top: 14px;
	color: rgba(255, 255, 255, .65);
	font-size: 12.5px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.hero-tips kbd,
.hero-tips a {
	background: rgba(255, 255, 255, .15);
	border: 1px solid rgba(255, 255, 255, .2);
	color: rgba(255, 255, 255, .85);
	padding: 2px 7px;
	border-radius: 4px;
	font-size: 11px;
	font-family: var(--font-mono);
}

/* ── Stat Counters ── */
.hero-stats {
	display: flex;
	gap: 28px;
	margin-top: 40px;
	flex-wrap: wrap;
}

.stat-item {
	color: white;
	text-align: center;
}

.stat-num {
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.5px;
}

.stat-label {
	font-size: 11px;
	font-weight: 500;
	color: rgba(255, 255, 255, .65);
	text-transform: uppercase;
	letter-spacing: 0.7px;
	margin-top: 3px;
}

/* ══════════════════════════════════════════════════
FILTER BAR
══════════════════════════════════════════════════ */
.filter-bar {
	background: var(--white);
	border-bottom: 1.5px solid var(--gray-200);
	padding: 12px 0;
	position: sticky;
	top: 61px;
	z-index: 100;
}

.filter-chips {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
	overflow-x: auto;
	padding-bottom: 2px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
	display: none;
}

.filter-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--gray-500);
	text-transform: uppercase;
	letter-spacing: 0.6px;
	white-space: nowrap;
	flex-shrink: 0;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 12px;
	border: 1.5px solid var(--gray-200);
	border-radius: 99px;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--gray-600);
	background: var(--white);
	cursor: pointer;
	white-space: nowrap;
	transition: all var(--transition);
	flex-shrink: 0;
}

.chip:hover {
	border-color: var(--blue);
	color: var(--blue);
	background: var(--blue-xlight);
}

.chip.active {
	border-color: var(--blue);
	color: var(--blue);
	background: var(--blue-xlight);
	font-weight: 600;
}

.chip svg {
	width: 12px;
	height: 12px;
}

.chip-count {
	background: var(--blue);
	color: white;
	font-size: 10px;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 99px;
}

.filter-divider {
	width: 1px;
	height: 20px;
	background: var(--gray-200);
	flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
MAIN CONTENT LAYOUT
══════════════════════════════════════════════════ */
.content-area {
	padding: 28px 0 60px;
}

/* ── Sidebar ── */
.sidebar {
	position: sticky;
	top: 110px;
	/* max-height: calc(100vh - 130px);
	overflow-y: auto;
	-ms-overflow-style: none;
	scrollbar-width: none;
	*/
}

.sidebar::-webkit-scrollbar {
	display: none;
}

.sidebar-card {
	background: var(--white);
	border: 1.5px solid var(--gray-200);
	border-radius: var(--radius-lg);
	margin-bottom: 16px;
	overflow: hidden;
}

.sidebar-card-header {
	padding: 14px 18px;
	font-size: 12px;
	font-weight: 700;
	color: var(--gray-600);
	text-transform: uppercase;
	letter-spacing: 0.7px;
	background: var(--gray-50);
	border-bottom: 1px solid var(--gray-200);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sidebar-card-header svg {
	width: 14px;
	height: 14px;
}

.sidebar-card-body {
	padding: 14px 18px;
}

/* ── Filter Items ── */
.filter-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 7px 0;
	border-bottom: 1px solid var(--gray-100);
	cursor: pointer;
	transition: color var(--transition);
}

.filter-item:last-child {
	border-bottom: none;
}

.filter-item:hover .fi-label {
	color: var(--blue);
}

.fi-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--gray-700);
	transition: color var(--transition);
}

.fi-check {
	width: 15px;
	height: 15px;
	border: 1.5px solid var(--gray-300);
	border-radius: 3px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--transition);
}

.filter-item.selected .fi-check {
	background: var(--blue);
	border-color: var(--blue);
}

.filter-item.selected .fi-check::after {
	content: '';
	width: 8px;
	height: 8px;
	background: white;
	border-radius: 1px;
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.fi-count {
	font-size: 11.5px;
	color: var(--gray-400);
	font-weight: 500;
	background: var(--gray-100);
	padding: 1px 7px;
	border-radius: 99px;
}

/* ── Year Slider ── */
.range-track {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}

.range-val {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--gray-600);
	min-width: 36px;
	font-weight: 500;
}

input[type=range] {
	flex: 1;
	height: 4px;
	-webkit-appearance: none;
	background: var(--gray-200);
	border-radius: 2px;
	outline: none;
}

input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--blue);
	cursor: pointer;
	box-shadow: 0 0 0 3px rgba(13, 110, 253, .2);
}

/* ══════════════════════════════════════════════════
YEAR FILTER
══════════════════════════════════════════════════ */
.year-filter-container {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.year-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--gray-700);
	margin-bottom: 8px;
	display: block;
}

.year-select {
	width: 100%;
	border: 1.5px solid var(--gray-200);
	border-radius: var(--radius-sm);
	padding: 8px 12px;
	font-family: var(--font-ui);
	font-size: 13px;
	color: var(--gray-700);
	background: white;
	cursor: pointer;
	transition: all var(--transition);
}

.year-select:hover {
	border-color: var(--gray-300);
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.year-select:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(13, 110, 253, .1);
}

.year-quick-select {
	display: flex;
	flex-direction: column;
}

.year-custom-range {
	display: none;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--gray-200);
}

.year-custom-range.active {
	display: block;
}

.year-range-inputs {
	display: flex;
	gap: 8px;
	align-items: flex-end;
	margin-bottom: 10px;
}

.year-input-group {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.year-input-group label {
	font-size: 12px;
	color: var(--gray-600);
	margin-bottom: 4px;
	font-weight: 500;
}

.year-input {
	border: 1.5px solid var(--gray-200);
	border-radius: var(--radius-sm);
	padding: 8px 10px;
	font-family: var(--font-ui);
	font-size: 13px;
	color: var(--gray-700);
	background: white;
	transition: all var(--transition);
}

.year-input:hover {
	border-color: var(--gray-300);
}

.year-input:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(13, 110, 253, .1);
}

.year-separator {
	color: var(--gray-400);
	font-weight: 500;
	margin-bottom: 8px;
}

.year-apply-btn,
.year-reset-btn {
	width: 100%;
	border: none;
	border-radius: var(--radius-sm);
	padding: 8px 12px;
	font-family: var(--font-ui);
	font-size: 12.5px;
	font-weight: 500;
	cursor: pointer;
	transition: all var(--transition);
	margin-bottom: 6px;
}

.year-apply-btn {
	background: var(--blue);
	color: white;
}

.year-apply-btn:hover {
	background: var(--blue-dark);
	box-shadow: 0 4px 8px rgba(13, 110, 253, .3);
}

.year-reset-btn {
	background: var(--gray-100);
	color: var(--gray-700);
	border: 1px solid var(--gray-200);
}

.year-reset-btn:hover {
	background: var(--gray-50);
	border-color: var(--gray-300);
}

.year-active-filters {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--gray-200);
}

.year-filter-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.year-badge-empty {
	display: block;
	font-size: 12px;
	color: var(--gray-500);
	text-align: center;
	padding: 8px 0;
	width: 100%;
}

.year-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--blue-xlight);
	color: var(--blue);
	padding: 6px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	border: 1px solid var(--blue-light);
}

.year-badge-remove {
	cursor: pointer;
	opacity: 0.7;
	transition: opacity var(--transition);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
}

.year-badge-remove:hover {
	opacity: 1;
}

/* ══════════════════════════════════════════════════
PUBLICATION CARDS
══════════════════════════════════════════════════ */
.results-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
	flex-wrap: wrap;
	gap: 10px;
}

.results-count {
	font-size: 13.5px;
	color: var(--gray-600);
}

.results-count strong {
	color: var(--gray-900);
	font-weight: 700;
}

.sort-select {
	border: 1.5px solid var(--gray-200);
	border-radius: var(--radius-sm);
	padding: 6px 12px;
	font-family: var(--font-ui);
	font-size: 12.5px;
	color: var(--gray-700);
	background: white;
	cursor: pointer;
	outline: none;
	transition: border-color var(--transition);
}

.sort-select:focus {
	border-color: var(--blue);
}

/* ── Article Card ── */
.article-card {
	background: var(--white);
	border: 1.5px solid var(--gray-200);
	border-radius: var(--radius-lg);
	padding: 22px 24px;
	margin-bottom: 14px;
	transition: all var(--transition);
	position: relative;
	overflow: hidden;
}

.article-card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: transparent;
	transition: background var(--transition);
}

.article-card:hover {
	border-color: var(--blue);
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}

.article-card:hover::before {
	background: var(--blue);
}

.card-meta-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.doc-type-badge {
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	padding: 2px 8px;
	border-radius: 4px;
}

.doc-type-badge.article {
	background: #dbeafe;
	color: #1d4ed8;
}

.doc-type-badge.conference {
	background: #dcfce7;
	color: #166534;
}

.doc-type-badge.review {
	background: #fef3c7;
	color: #92400e;
}

.doc-type-badge.book {
	background: #f3e8ff;
	color: #6b21a8;
}

.oa-badge {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.4px;
	padding: 2px 8px;
	border-radius: 4px;
	background: #fff7ed;
	color: #c2410c;
	display: flex;
	align-items: center;
	gap: 3px;
}

.oa-badge svg {
	width: 10px;
	height: 10px;
}

.year-tag {
	font-size: 12px;
	color: var(--gray-500);
	font-weight: 500;
	font-family: var(--font-mono);
}

.article-title {
	font-family: var(--font-serif);
	font-size: 16.5px;
	font-weight: 600;
	color: var(--gray-900);
	line-height: 1.4;
	margin-bottom: 10px;
	cursor: pointer;
	transition: color var(--transition);
	display: block;
}

.article-title:hover {
	color: var(--blue);
}

.article-authors {
	font-size: 13px;
	color: var(--gray-600);
	margin-bottom: 8px;
	line-height: 1.5;
}

.author-link {
	color: var(--blue);
	font-weight: 500;
	cursor: pointer;
}

.author-link:hover {
	color: var(--blue-dark);
	text-decoration: underline;
}

.article-source {
	font-size: 12.5px;
	color: var(--gray-500);
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.source-name {
	font-style: italic;
	color: var(--gray-600);
	font-weight: 500;
}

.source-detail {
	color: var(--gray-400);
	font-family: var(--font-mono);
	font-size: 11.5px;
}

.article-abstract {
	font-size: 13.5px;
	color: var(--gray-600);
	line-height: 1.65;
	margin-bottom: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.article-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}

.keyword-chips {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
	flex: 1;
}

.kw-chip {
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 4px;
	background: var(--gray-100);
	color: var(--gray-600);
	transition: all var(--transition);
	cursor: pointer;
	font-weight: 500;
}

.kw-chip:hover {
	background: var(--blue-xlight);
	color: var(--blue);
}

/* ── Article Keywords (Search Results) ────────────────────────────── */
.article-keywords-section {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 14px 0 14px 0;
	padding: 10px 0;
	border-top: 1px solid var(--gray-150);
	border-bottom: 1px solid var(--gray-150);
}

.keywords-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--gray-700);
	white-space: nowrap;
	margin-top: 1px;
}

.article-keywords {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	align-items: center;
	flex: 1;
	min-height: 24px;
}

.keyword-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.75rem;
	padding: 3px 12px;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--blue-xlight) 0%, rgba(13, 110, 253, 0.08) 100%);
	color: var(--blue);
	border: 1px solid rgba(13, 110, 253, 0.2);
	font-weight: 400;
	transition: all var(--transition);
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
}

.keyword-badge:hover {
	background: linear-gradient(135deg, var(--blue-light) 0%, rgba(13, 110, 253, 0.15) 100%);
	border-color: var(--blue);
	box-shadow: 0 2px 6px rgba(13, 110, 253, 0.15);
	transform: translateY(-1px);
	color: var(--blue);
}

.keyword-badge::before {
	content: '#';
	opacity: 0.6;
}

/* ── Search Highlighting ────────────────────────────── */
mark.search-highlight {
	background-color: #fff3cd;
	color: inherit;
	padding: 2px 4px;
	border-radius: 3px;
	font-weight: 600;
	box-shadow: inset 0 0 0 1px rgba(255, 193, 7, 0.3);
}

.article-title mark.search-highlight,
.article-abstract mark.search-highlight {
	animation: highlight-pulse 0.5s ease-out;
}

@keyframes highlight-pulse {
	0% {
		background-color: #fffacd;
		box-shadow: inset 0 0 0 2px rgba(255, 215, 0, 0.6);
	}
	100% {
		background-color: #fff3cd;
		box-shadow: inset 0 0 0 1px rgba(255, 193, 7, 0.3);
	}
}

.article-metrics {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}

.metric {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	color: var(--gray-500);
	font-weight: 500;
}

.metric svg {
	width: 13px;
	height: 13px;
}

.metric.cited {
	color: var(--orange);
}

.metric.cited svg {
	color: var(--orange);
}

.metric-val {
	font-family: var(--font-mono);
	font-weight: 600;
}

.btn-view-article {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--blue);
	padding: 6px 14px;
	border: 1.5px solid var(--blue-light);
	border-radius: var(--radius-sm);
	background: var(--blue-xlight);
	transition: all var(--transition);
	cursor: pointer;
	white-space: nowrap;
}

.btn-view-article:hover {
	background: var(--blue);
	color: white;
	border-color: var(--blue);
}

.btn-view-article svg {
	width: 12px;
	height: 12px;
}

/* ══════════════════════════════════════════════════
SEARCH RESULTS PAGE
══════════════════════════════════════════════════ */

.results-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding: 16px;
	background: var(--gray-50);
	border-radius: 8px;
	flex-wrap: wrap;
	gap: 16px;
}

.results-count {
	font-size: 14px;
	color: var(--gray-700);
}

.sort-select {
	padding: 6px 12px;
	border: 1px solid var(--gray-300);
	border-radius: 4px;
	font-size: 13px;
	background: white;
	cursor: pointer;
}

.article-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 32px;
}

.article-card {
	background: white;
	border: 1px solid var(--gray-200);
	border-radius: 8px;
	padding: 20px;
	transition: all 0.2s;
}

.article-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	border-color: var(--blue-light);
}

.article-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.article-title {
	font-size: 1.15rem;
	font-weight: 600;
	margin: 0;
	line-height: 1.4;
	flex: 1;
}

.article-title a {
	color: var(--blue-dark);
	text-decoration: none;
}

.article-title a:hover {
	text-decoration: underline;
}

.article-badges {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	white-space: nowrap;
}

.badge-doc, .badge-oa {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 14px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.badge-doc {
	background: var(--blue-xlight);
	color: var(--blue-dark);
}

.badge-oa {
	background: var(--bs-warning-border-subtle);
	color: var(--bs-warning-text-emphasis);
}

.article-meta {
	margin-bottom: 12px;
}

.meta-item {
	font-size: 13px;
	color: var(--gray-700);
	margin-bottom: 6px;
	line-height: 1.4;
}

.meta-item strong {
	color: var(--gray-800);
	font-weight: 600;
}

.author-name {
	color: var(--blue-main);
	text-decoration: none;
	font-weight: 500;
}

.author-name:hover {
	text-decoration: underline;
}

.source-name {
	font-style: italic;
	color: var(--gray-600);
}

.article-abstract {
	font-size: 13px;
	color: var(--gray-700);
	line-height: 1.5;
	margin-bottom: 12px;
	padding: 12px;
	background: var(--gray-50);
	border-left: 3px solid var(--blue-light);
	border-radius: 4px;
}

.article-footer {
	border-top: 1px solid var(--gray-200);
	padding-top: 12px;
}

.article-stats {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.stat {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--gray-600);
}

.stat svg {
	width: 14px;
	height: 14px;
	opacity: 0.6;
}

.stat .btn-list-cite{
	font-size: 12px;
	color: var(--gray-600);
}
.stat .btn-list-cite:focus,
.stat .btn-list-cite:active{
	border-color:transparent;
	appearance:none;
	outline:none;
}

.empty-state {
	text-align: center;
	padding: 60px 20px;
}

.empty-state svg {
	width: 64px;
	height: 64px;
	color: var(--gray-300);
	margin-bottom: 16px;
}

.empty-state h5 {
	font-size: 1.3rem;
	color: var(--gray-800);
	margin: 16px 0 8px;
}

.empty-state p {
	color: var(--gray-600);
	margin: 0;
}

.empty-state a {
	color: var(--blue-main);
	text-decoration: none;
	font-weight: 500;
}

.empty-state a:hover {
	text-decoration: underline;
}

.pagination-container {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.pagination {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 4px;
	flex-wrap: wrap;
	justify-content: center;
}

.page-item {
	display: inline-block;
}

.page-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 8px 12px;
	border: 1px solid var(--gray-300);
	border-radius: 4px;
	color: var(--blue-main);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s;
	cursor: pointer;
	min-width: 36px;
	height: 36px;
}

.page-link:hover {
	background: var(--blue-xlight);
	border-color: var(--blue-light);
}

.page-item.active .page-link {
	background: var(--blue-main);
	color: white;
	border-color: var(--blue-main);
}

.page-item.disabled .page-link {
	color: var(--gray-500);
	cursor: not-allowed;
	opacity: 0.5;
}

@media (max-width: 768px) {
	.article-header {
		flex-direction: column;
	}

	.hero-search-box {
		flex-wrap: wrap;
	}

	.results-header {
		flex-direction: column;
		align-items: flex-start;
	}
}

.fade-in {
	animation: fadeIn 0.3s ease-in;
}

mark {
	background: rgba(255, 255, 0, 0.3);
	color: inherit;
	font-weight: 600;
	padding: 2px 4px;
	border-radius: 3px;
}

/* --- Animation --- */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
@keyframes spin {
		to { transform: rotate(360deg); }
	}
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
.loading-spinner svg {
	animation: spin 1s linear infinite;
}
.fade-in {
	animation: fadeIn 0.3s ease-in-out;
}
/* ── Pagination ── */
.pagination-wrap {
	margin-top: 28px;
	display: flex;
	justify-content: center;
}

.pagination .page-link {
	font-family: var(--font-ui);
	font-size: 13.5px;
	font-weight: 500;
	color: var(--gray-600);
	border: 1.5px solid var(--gray-200);
	border-radius: var(--radius-sm) !important;
	margin: 0 3px;
	padding: 7px 13px;
	transition: all var(--transition);
}

.pagination .page-link:hover {
	border-color: var(--blue);
	color: var(--blue);
	background: var(--blue-xlight);
}

.pagination .page-item.active .page-link {
	background: var(--blue);
	border-color: var(--blue);
	color: white;
}

/* ══════════════════════════════════════════════════
ARTICLE DETAIL PAGE
══════════════════════════════════════════════════ */
.article-detail-hero {
	background: var(--gray-50);
	border-bottom: 1.5px solid var(--gray-200);
	padding: 36px 0 32px;
}

.breadcrumb-nav {
	margin-bottom: 18px;
	font-size: 12.5px;
}

.breadcrumb-nav a {
	color: var(--blue);
	font-weight: 500;
}

.breadcrumb-nav span {
	color: var(--gray-400);
	margin: 0 6px;
}

.breadcrumb-nav .current {
	color: var(--gray-500);
}

.detail-title {
	font-family: var(--font-serif);
	font-size: clamp(20px, 3vw, 30px);
	font-weight: 600;
	color: var(--gray-900);
	line-height: 1.35;
	margin-bottom: 18px;
	letter-spacing: -0.3px;
}

.detail-authors-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.detail-author-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: white;
	border: 1.5px solid var(--gray-200);
	border-radius: 99px;
	padding: 5px 12px 5px 5px;
	transition: all var(--transition);
	cursor: pointer;
}

.detail-author-chip:hover {
	border-color: var(--blue);
	text-decoration: none;
}

.detail-author-chip .author-name:hover {
	text-decoration: none;
}

.author-avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--blue);
	color: white;
	font-size: 10px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	text-transform: uppercase;
}

.detail-author-chip .author-name {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--gray-700);
}

.detail-author-chip .author-affil {
	font-size: 11px;
	color: var(--gray-400);
}

.detail-source-box {
	background: white;
	border: 1.5px solid var(--gray-200);
	border-radius: var(--radius-md);
	padding: 14px 18px;
	margin-bottom: 18px;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.source-journal-icon {
	width: 42px;
	height: 42px;
	background: var(--blue-xlight);
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.source-journal-icon svg {
	width: 22px;
	height: 22px;
	color: var(--blue);
}

.source-info {
	flex: 1;
	min-width: 0;
}

.source-journal-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--gray-800);
	margin-bottom: 3px;
}

.source-meta-row {
	font-size: 12px;
	color: var(--gray-500);
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.source-meta-item {
	display: flex;
	align-items: center;
	gap: 4px;
}

.source-meta-item svg {
	width: 12px;
	height: 12px;
}

.detail-badges {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

/* ── Article Detail Content ── */
.detail-content {
	padding: 32px 0 60px;
}

.section-card {
	background: white;
	border: 1.5px solid var(--gray-200);
	border-radius: var(--radius-lg);
	margin-bottom: 20px;
	overflow: hidden;
}

.section-header {
	padding: 16px 22px;
	display: flex;
	align-items: center;
	gap: 10px;
	border-bottom: 1px solid var(--gray-200);
	background: var(--gray-50);
}

.section-icon {
	width: 30px;
	height: 30px;
	border-radius: var(--radius-sm);
	background: var(--blue-xlight);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.section-icon svg {
	width: 15px;
	height: 15px;
	color: var(--blue);
}

.section-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--gray-700);
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

.section-body {
	padding: 20px 22px;
}

.abstract-text {
	font-size: 14.5px;
	color: var(--bs-body-color);
	line-height: 1.75;
	font-family: var(--font-serif);
	font-weight: 400;
}

.keywords-grid {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
}

.kw-tag {
	font-size: 12.5px;
	padding: 5px 12px;
	border-radius: var(--radius-sm);
	background: var(--gray-100);
	color: var(--gray-700);
	font-weight: 500;
	border: 1px solid var(--gray-200);
	transition: all var(--transition);
	cursor: pointer;
}

.kw-tag:hover {
	background: var(--blue-xlight);
	color: var(--blue);
	border-color: var(--blue-light);
}

.kw-tag.index {
	background: var(--blue-xlight);
	color: var(--blue);
	border-color: var(--blue-light);
}

/* ── Metric Cards (sidebar detail) ── */
.metric-card {
	background: white;
	border: 1.5px solid var(--gray-200);
	border-radius: var(--radius-lg);
	padding: 18px;
	margin-bottom: 14px;
}

.metric-card-title {
	font-size: 11px;
	font-weight: 700;
	color: var(--gray-700);
	text-transform: uppercase;
	letter-spacing: 0.7px;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.metric-card-title svg {
	width: 13px;
	height: 13px;
}

.big-metric {
	font-size: 42px;
	font-weight: 700;
	color: var(--blue);
	line-height: 1;
	font-family: var(--font-mono);
	letter-spacing: -2px;
}

.big-metric-label {
	font-size: 12px;
	color: var(--gray-600);
	margin-top: 4px;
}

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

.ids-list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px solid var(--gray-100);
	font-size: 12.5px;
}

.ids-list li:last-child {
	border-bottom: none;
}

.ids-list .id-label {
	color: var(--gray-700);
	font-weight: 600;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ids-list .id-val {
	font-family: var(--font-mono);
	color: var(--gray-700);
	font-size: 11.5px;
	word-break: break-all;
	text-align: right;
}

.action-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid var(--gray-200);
	border-radius: var(--radius-sm);
	font-family: var(--font-ui);
	font-size: 13px;
	font-weight: 600;
	color: var(--gray-700);
	background: white;
	cursor: pointer;
	transition: all var(--transition);
	margin-bottom: 8px;
	text-decoration: none;
}

.action-btn:hover {
	border-color: var(--blue);
	color: var(--blue);
	background: var(--blue-xlight);
}

.action-btn.primary {
	background: var(--blue);
	color: white;
	border-color: var(--blue);
}

.action-btn.primary:hover {
	background: var(--blue-dark);
	color: white;
}

.action-btn.info {
	background: var(--bs-info);
	border-color: var(var(--bs-info-border-subtle));
	color: white;
}

.action-btn.info:hover {
	background: #31d2f2;
	border-color:#25cff2;
	color: #000;
}
.action-btn svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

/* ── References ── */
.reference-item {
	display: flex;
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px solid var(--gray-100);
	align-items: flex-start;
}

.reference-item:last-child {
	border-bottom: none;
}

.ref-num {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 700;
	color: var(--blue);
	background: var(--blue-xlight);
	min-width: 26px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 3px;
	flex-shrink: 0;
	margin-top: 1px;
}

.ref-text {
	font-size: 12.5px;
	color: var(--gray-600);
	line-height: 1.55;
}

/* ── Funding ── */
.funding-item {
	padding: 12px 14px;
	background: var(--gray-50);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-sm);
	margin-bottom: 8px;
}

.funding-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--gray-800);
}

.funding-grant {
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--blue);
	margin-top: 3px;
}

.funding-text {
	font-size: 12px;
	color: var(--gray-700);
	margin-top: 5px;
	line-height: 1.5;
}

/* ══════════════════════════════════════════════════
AUTHOR PROFILE PAGE
══════════════════════════════════════════════════ */
.author-hero {
	background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue) 55%, #4dabf7 100%);
	border-bottom: 1.5px solid var(--gray-200);
	padding: 40px 0 32px;
}

.author-hero .breadcrumb-nav a {
	color: rgba(255, 255, 255, 0.8);
	font-weight: 800;
}
.author-avatar-lg {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
	color: white;
	font-size: 28px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	text-transform: uppercase;
	flex-shrink: 0;
	box-shadow: var(--shadow-blue);
}

.author-name-display {
	font-family: var(--font-serif);
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 600;
	color: var(--bs-light);
	margin-bottom: 6px;
	letter-spacing: -0.3px;
}

.scopus-id-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--blue);
	background: var(--blue-xlight);
	border: 1px solid var(--blue-light);
	padding: 3px 10px;
	border-radius: 99px;
	margin-bottom: 12px;
}

.author-affil-line {
	font-size: 14px;
	color: var(--bs-light);
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.author-affil-line svg {
	width: 14px;
	height: 14px;
	color: var(--gray-400);
}

.author-stats-row {
	display: flex;
	gap: 0;
	margin-top: 24px;
	background: white;
	border: 1.5px solid var(--gray-200);
	border-radius: var(--radius-lg);
	overflow: hidden;
	display: inline-flex;
}

.author-stat {
	padding: 16px 24px;
	text-align: center;
	border-right: 1px solid var(--gray-200);
	min-width: 110px;
}

.author-stat:last-child {
	border-right: none;
}

.author-stat-num {
	font-family: var(--font-mono);
	font-size: 24px;
	font-weight: 700;
	color: var(--blue);
	letter-spacing: -1px;
	line-height: 1;
}

.author-stat-label {
	font-size: 11px;
	color: var(--gray-500);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 4px;
}

/* ── Author Profile Content ── */
.profile-tabs {
	border-bottom: 1.5px solid var(--gray-200);
	margin-bottom: 0;
	background: white;
	position: sticky;
	top: 61px;
	z-index: 99;
}

.profile-tab-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 14px 20px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--gray-500);
	border-bottom: 2.5px solid transparent;
	transition: all var(--transition);
	cursor: pointer;
	text-decoration: none;
	margin-bottom: -1.5px;
}

.profile-tab-link:hover {
	color: var(--blue);
}

.profile-tab-link.active {
	color: var(--blue);
	border-bottom-color: var(--blue);
}

.profile-tab-link svg {
	width: 15px;
	height: 15px;
}

.tab-content-panel {
	padding: 28px 0 60px;
	display: none;
}

.tab-content-panel.active {
	display: block;
}

/* ── Co-authors ── */
.coauthor-card {
	background: white;
	border: 1.5px solid var(--gray-200);
	border-radius: var(--radius-md);
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	transition: all var(--transition);
	cursor: pointer;
	text-decoration: none;
	margin-bottom: 10px;
}

.coauthor-card:hover {
	border-color: var(--blue);
	box-shadow: var(--shadow-sm);
}

.coauthor-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--gray-200);
	color: var(--gray-600);
	font-size: 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	text-transform: uppercase;
	flex-shrink: 0;
}

.coauthor-name {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--gray-800);
}

.coauthor-pubs {
	font-size: 12px;
	color: var(--gray-500);
	margin-top: 2px;
}

.collab-count {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	color: var(--blue);
	background: var(--blue-xlight);
	padding: 2px 8px;
	border-radius: 99px;
	margin-left: auto;
	flex-shrink: 0;
}

/* ── Timeline / Publication List ── */
.year-group {
	margin-bottom: 28px;
}

.year-group-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.year-badge {
	font-family: var(--font-mono);
	font-size: 14px;
	font-weight: 700;
	color: white;
	background: var(--blue);
	padding: 3px 12px;
	border-radius: var(--radius-sm);
}

.year-line {
	flex: 1;
	height: 1px;
	background: var(--gray-200);
}

.year-pub-count {
	font-size: 12px;
	color: var(--gray-400);
	font-weight: 500;
}

/* ── Affiliation History ── */
.affil-timeline {
	position: relative;
	padding-left: 24px;
}

.affil-timeline::before {
	content: '';
	position: absolute;
	left: 7px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: var(--gray-200);
}

.affil-item {
	position: relative;
	padding: 14px 0 14px 20px;
}

.affil-dot {
	position: absolute;
	left: -17px;
	top: 20px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: white;
	border: 2.5px solid var(--blue);
}

.affil-institution {
	font-size: 14px;
	font-weight: 600;
	color: var(--gray-800);
}

.affil-dept {
	font-size: 12.5px;
	color: var(--gray-500);
	margin-top: 2px;
}

.affil-location {
	font-size: 12px;
	color: var(--gray-400);
	margin-top: 4px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.affil-location svg {
	width: 11px;
	height: 11px;
}

/* ══════════════════════════════════════════════════
SEARCH SUGGESTIONS DROPDOWN
══════════════════════════════════════════════════ */
.search-suggestions {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: white;
	border: 1.5px solid var(--gray-200);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	z-index: 500;
	overflow: hidden;
	display: none;
}

.search-suggestions.show {
	display: block;
}

.suggestion-group-label {
	font-size: 10.5px;
	font-weight: 700;
	color: var(--gray-400);
	text-transform: uppercase;
	letter-spacing: 0.7px;
	padding: 10px 16px 6px;
}

.suggestion-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 16px;
	cursor: pointer;
	transition: background var(--transition);
	font-size: 13.5px;
	color: var(--gray-700);
}

.suggestion-item:hover {
	background: var(--blue-xlight);
}

.suggestion-icon {
	width: 28px;
	height: 28px;
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.suggestion-icon.type-article {
	background: #dbeafe;
}

.suggestion-icon.type-author {
	background: #dcfce7;
}

.suggestion-icon.type-keyword {
	background: #fef3c7;
}

.suggestion-icon svg {
	width: 14px;
	height: 14px;
}

.suggestion-icon.type-article svg {
	color: #1d4ed8;
}

.suggestion-icon.type-author svg {
	color: #166534;
}

.suggestion-icon.type-keyword svg {
	color: #92400e;
}

.suggestion-label {
	flex: 1;
	font-weight: 500;
}

.suggestion-sub {
	font-size: 11.5px;
	color: var(--gray-400);
}

.suggestion-divider {
	height: 1px;
	background: var(--gray-100);
	margin: 4px 0;
}

/* ══════════════════════════════════════════════════
FOOTER
══════════════════════════════════════════════════ */
.footer {
	background: linear-gradient(135deg, var(--gray-900) 0%, #0a1428 50%, var(--gray-900) 100%);
	color: var(--gray-400);
	padding: 64px 0 24px;
	margin-top: 80px;
	position: relative;
	overflow: hidden;
}

.footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.3), transparent);
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

/* ─ Footer Column ─ */
.footer-column {
	position: relative;
}

.footer-column:first-child {
	min-width: 320px;
}

/* ─ Footer Brand ─ */
.footer-brand {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
}

.brand-icon-footer {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	color: var(--blue);
	opacity: 0.8;
	transition: opacity var(--transition);
}

.footer-brand:hover .brand-icon-footer {
	opacity: 1;
}

.brand-name-footer {
	font-size: 20px;
	font-weight: 700;
	color: white;
	letter-spacing: -0.5px;
	line-height: 1.2;
}

.brand-name-footer span {
	color: var(--blue);
}

.brand-sub-footer {
	font-size: 11px;
	color: var(--gray-500);
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin-top: 2px;
}

.footer-description {
	font-size: 13px;
	color: var(--gray-500);
	line-height: 1.7;
	margin-bottom: 20px;
	max-width: 320px;
}

/* ─ Stats Grid ─ */
.footer-stats-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.stat-mini {
	background: rgba(13, 110, 253, 0.05);
	border: 1px solid rgba(13, 110, 253, 0.15);
	border-radius: var(--radius-md);
	padding: 12px;
	transition: all var(--transition);
}

.stat-mini:hover {
	background: rgba(13, 110, 253, 0.10);
	border-color: rgba(13, 110, 253, 0.3);
	transform: translateY(-2px);
}

.stat-value {
	font-size: 18px;
	font-weight: 700;
	color: var(--blue);
	line-height: 1.2;
}

.stat-label {
	font-size: 11px;
	color: var(--gray-500);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 4px;
}

/* ─ Footer Title ─ */
.footer-title {
	font-size: 12px;
	font-weight: 700;
	color: var(--gray-200);
	text-transform: uppercase;
	letter-spacing: 0.8px;
	margin-bottom: 16px;
	position: relative;
	display: inline-block;
}

.footer-title::after {
	content: '';
	position: absolute;
	bottom: -6px;
	left: 0;
	width: 24px;
	height: 2px;
	background: var(--blue);
	border-radius: 1px;
}

/* ─ Recent Publications ─ */
.footer-links-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-pub-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px;
	border-radius: var(--radius-md);
	transition: all var(--transition);
	text-decoration: none;
	color: inherit;
	background: transparent;
}

.footer-pub-item:hover {
	background: rgba(13, 110, 253, 0.08);
	padding-left: 12px;
}

.pub-icon {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--blue);
	opacity: 0.6;
	transition: opacity var(--transition);
}

.footer-pub-item:hover .pub-icon {
	opacity: 1;
}

.pub-icon svg {
	width: 16px;
	height: 16px;
}

.pub-content {
	min-width: 0;
}

.pub-title {
	font-size: 12px;
	color: var(--gray-300);
	line-height: 1.4;
	margin-bottom: 4px;
	word-break: break-word;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.pub-meta {
	font-size: 11px;
	color: var(--gray-500);
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.pub-authors {
	max-width: 150px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pub-year {
	color: var(--blue);
	font-weight: 500;
}

/* ─ Footer Keywords/Tags ─ */
.footer-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.footer-tag {
	display: inline-block;
	padding: 6px 12px;
	background: rgba(13, 110, 253, 0.08);
	border: 1px solid rgba(13, 110, 253, 0.2);
	border-radius: 20px;
	font-size: 12px;
	color: var(--gray-300);
	text-decoration: none;
	transition: all var(--transition);
	white-space: nowrap;
	cursor: pointer;
}

.footer-tag:hover {
	background: rgba(13, 110, 253, 0.15);
	border-color: rgba(13, 110, 253, 0.4);
	color: var(--blue);
	transform: translateY(-1px);
}

/* ─ Footer Links ─ */
.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.footer-links li a {
	display: block;
	font-size: 13px;
	color: var(--gray-500);
	text-decoration: none;
	padding: 4px 0;
	transition: all var(--transition);
	position: relative;
}

.footer-links li a::before {
	content: '';
	position: absolute;
	left: 0;
	bottom: 1px;
	width: 0;
	height: 1px;
	background: var(--blue);
	transition: width var(--transition);
}

.footer-links li a:hover {
	color: var(--blue);
	padding-left: 8px;
}

.footer-links li a:hover::before {
	width: calc(100% - 8px);
}

/* ─ Footer Social ─ */
.footer-social {
	display: flex;
	gap: 12px;
	margin-top: 12px;
}

.social-link {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(13, 110, 253, 0.08);
	color: var(--gray-500);
	text-decoration: none;
	transition: all var(--transition);
}

.social-link svg {
	width: 16px;
	height: 16px;
}

.social-link:hover {
	background: var(--blue);
	color: white;
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

/* ─ Footer Divider ─ */
.footer-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.2), transparent);
	margin: 32px 0;
	border: none;
}

/* ─ Footer Bottom ─ */
.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	font-size: 12px;
	color: var(--gray-600);
	padding-top: 20px;
}

.footer-copyright {
	flex: 1;
	min-width: 200px;
}

.footer-copyright p {
	margin: 0;
	line-height: 1.5;
}

.footer-copyright strong {
	color: var(--gray-300);
}

.footer-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.footer-meta a {
	color: var(--gray-600);
	text-decoration: none;
	transition: color var(--transition);
}

.footer-meta a:hover {
	color: var(--blue);
}

.separator {
	color: var(--gray-700);
}

/* ─ Loading & Empty States ─ */
.loading-placeholder,
.no-data {
	padding: 20px;
	text-align: center;
	color: var(--gray-600);
	font-size: 12px;
}

/* ══════════════════════════════════════════════════
UTILITY / SHARED
══════════════════════════════════════════════════ */
.text-blue {
	color: var(--blue) !important;
}

.bg-blue-xlight {
	background: var(--blue-xlight) !important;
}

.loading-skeleton {
	background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
	background-size: 200% 100%;
	animation: shimmer 1.4s infinite;
	border-radius: var(--radius-sm);
}

@keyframes shimmer {
	0% {
		background-position: 200% 0;
	}

	100% {
		background-position: -200% 0;
	}
}

.fade-in {
	animation: fadeIn 0.35s ease forwards;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.highlight {
	background: #fef08a;
	padding: 0 2px;
	border-radius: 2px;
}

.empty-state {
	text-align: center;
	padding: 60px 20px;
	color: var(--gray-400);
}

.empty-state svg {
	width: 52px;
	height: 52px;
	color: var(--gray-300);
	margin-bottom: 14px;
}

.empty-state h5 {
	color: var(--gray-600);
	font-size: 16px;
	margin-bottom: 6px;
}

.empty-state p {
	font-size: 13.5px;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
	.hero-section {
		padding: 48px 0 44px;
	}

	.sidebar {
		position: static;
		max-height: none;
	}

	.filter-bar {
		position: static;
	}

	.author-stats-row {
		width: 100%;
	}

	.author-stat {
		flex: 1;
		min-width: 80px;
		padding: 12px;
	}
}

@media (max-width: 767.98px) {
	.hero-search-box {
		flex-wrap: wrap;
		border-radius: var(--radius-lg);
		padding: 12px;
		gap: 10px;
	}

	.hero-search-box .search-divider {
		display: none;
	}

	.hero-search-box select {
		min-width: unset;
	}

	.btn-hero-search {
		width: 100%;
		justify-content: center;
	}

	.nav-search-bar {
		display: none !important;
	}

	.article-card {
		padding: 16px;
	}

	.detail-title {
		font-size: 20px;
	}

	.author-stats-row {
		flex-wrap: wrap;
	}
}

@media (max-width: 575.98px) {
	.hero-title {
		font-size: 24px;
	}

	.hero-stats {
		gap: 16px;
	}

	.stat-num {
		font-size: 22px;
	}

	.article-footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.article-metrics {
		flex-wrap: wrap;
	}

	/* Year filter mobile adjustments */
	.year-range-inputs {
		flex-direction: column;
		gap: 8px;
	}

	.year-input-group {
		width: 100%;
	}

	.year-separator {
		display: none;
	}

	.year-apply-btn,
	.year-reset-btn {
		font-size: 12px;
		padding: 7px 10px;
	}

	.year-badge {
		font-size: 11px;
		padding: 5px 8px;
	}
}

/* ══════════════════════════════════════════════════
LIST AUTHORS
══════════════════════════════════════════════════ */
/* =====================================================
   AUTHORS INDEX — STYLESHEET
   Scope   : authors.html only
   Depends : style.css (loaded first — CSS variables)
   ===================================================== */

/* ══════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════ */
.authors-hero {
  background: linear-gradient(135deg, var(--blue-deeper) 0%, #1a72fb 45%, #3b8ff5 100%);
  padding: 52px 0 48px;
  position: relative;
  overflow: hidden;
}

.authors-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.07) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.05) 0%, transparent 40%);
  pointer-events: none;
}

.authors-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 44px;
  background: white;
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* ── Subject Tile (hero) ── */
.subject-tile {
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.22);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  color: white;
}

.subject-tile:hover {
  background: rgba(255,255,255,.22);
  transform: translateY(-2px);
}

.subject-tile-emoji { font-size: 20px; margin-bottom: 6px; line-height: 1; }
.subject-tile-name  { font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.subject-tile-count { font-size: 11px; opacity: .65; margin-top: 3px; }

/* ── Author Search Bar ── */
.author-search-wrap {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 5px 5px 5px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 620px;
}

.author-search-wrap .search-icon {
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  flex-shrink: 0;
}

.author-search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--gray-800);
  background: transparent;
}

.author-search-wrap input::placeholder { color: var(--gray-400); }

.author-search-wrap .aw-divider {
  width: 1px;
  height: 26px;
  background: var(--gray-200);
  flex-shrink: 0;
}

.author-search-wrap select {
  border: none;
  outline: none;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--gray-600);
  background: transparent;
  padding: 4px 8px;
  cursor: pointer;
}

.btn-author-search {
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 13px;
  padding: 10px 20px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-author-search:hover {
  background: var(--blue-dark);
  box-shadow: var(--shadow-blue);
}

.btn-author-search svg { width: 15px; height: 15px; }

/* ══════════════════════════════════════════════════
   ALPHABET STRIP
══════════════════════════════════════════════════ */
.alpha-bar {
  background: var(--white);
  border-bottom: 1.5px solid var(--gray-200);
  padding: 10px 0;
  position: sticky;
  top: 61px;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.03);
}

.alpha-strip {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.alpha-strip::-webkit-scrollbar { display: none; }

.alpha-btn {
  min-width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  padding: 0;
}

.alpha-btn:hover           { background: var(--blue-xlight); color: var(--blue); }
.alpha-btn.active          { background: var(--blue); color: white; }
.alpha-btn.disabled        { color: var(--gray-300); cursor: default; pointer-events: none; }

.alpha-strip-divider {
  width: 1px;
  height: 18px;
  background: var(--gray-200);
  flex-shrink: 0;
  margin: 0 4px;
}

.alpha-count-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════
   TOOLBAR (sort / per-page / view toggle)
══════════════════════════════════════════════════ */
.view-toggle {
  display: flex;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.view-toggle-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: white;
  color: var(--gray-400);
  cursor: pointer;
  transition: all var(--transition);
}

.view-toggle-btn:hover  { background: var(--gray-50); color: var(--gray-600); }
.view-toggle-btn.active { background: var(--blue-xlight); color: var(--blue); }
.view-toggle-btn svg    { width: 15px; height: 15px; }

/* ══════════════════════════════════════════════════
   ACTIVE FILTER TAGS
══════════════════════════════════════════════════ */
.active-filters-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.active-filters-row-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--blue);
  color: white;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}

.active-filter-tag button {
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  line-height: 1;
  font-size: 16px;
  transition: color var(--transition);
}

.active-filter-tag button:hover { color: white; }

.clear-all-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 99px;
  transition: all var(--transition);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.clear-all-btn:hover { color: var(--red); }

/* ══════════════════════════════════════════════════
   AUTHOR CARD  (Grid View)
══════════════════════════════════════════════════ */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.author-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
}

/* Top accent stripe */
.author-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--transition);
}

.author-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.author-card:hover::before { background: var(--blue); }

/* ── Card Header ── */
.author-card-header {
  padding: 20px 20px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 1px solid var(--gray-100);
}

.author-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  flex-shrink: 0;
  letter-spacing: -0.5px;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
}

.author-card-info {
  flex: 1;
  min-width: 0;
}

.author-card-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 6px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: color var(--transition);
}

.author-card-name:hover { color: var(--blue); }

.author-card-id-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.author-card-scopus {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--blue);
  background: var(--blue-xlight);
  border: 1px solid var(--blue-light);
  padding: 2px 7px;
  border-radius: 99px;
}

.author-card-scopus svg { width: 9px; height: 9px; }

.author-verified-icon {
  width: 15px;
  height: 15px;
  color: var(--blue);
  flex-shrink: 0;
}

/* ── Card Body ── */
.author-card-body {
  padding: 14px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.author-card-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.4;
}

.author-card-meta-row .meta-icon {
  width: 12px;
  height: 12px;
  color: var(--gray-400);
  flex-shrink: 0;
  margin-top: 2px;
}

.author-card-meta-row .meta-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.author-card-meta-row .meta-bold {
  font-weight: 600;
  color: var(--gray-700);
}

/* ── Stats Bar ── */
.author-card-stats {
  display: flex;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.ac-stat {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  border-right: 1px solid var(--gray-100);
}

.ac-stat:last-child { border-right: none; }

.ac-stat-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -0.5px;
}

.ac-stat-label {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  margin-top: 3px;
}

/* ── Card Footer ── */
.author-card-footer {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.author-subject-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

/* ══════════════════════════════════════════════════
   SUBJECT CHIPS  (shared card + row)
══════════════════════════════════════════════════ */
.subject-chip {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-weight: 600;
  white-space: nowrap;
  cursor: default;
}

.subject-chip.cs   { background: #dbeafe; color: #1d4ed8; }
.subject-chip.eng  { background: #dcfce7; color: #166534; }
.subject-chip.med  { background: #fee2e2; color: #991b1b; }
.subject-chip.env  { background: #d1fae5; color: #065f46; }
.subject-chip.phys { background: #f3e8ff; color: #6b21a8; }
.subject-chip.soc  { background: #fef3c7; color: #92400e; }
.subject-chip.math { background: #e0f2fe; color: #0369a1; }

/* ══════════════════════════════════════════════════
   VIEW PROFILE BUTTON  (shared card + row)
══════════════════════════════════════════════════ */
.btn-view-profile {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  padding: 6px 12px;
  border: 1.5px solid var(--blue-light);
  border-radius: var(--radius-sm);
  background: var(--blue-xlight);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

.btn-view-profile:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.btn-view-profile svg { width: 11px; height: 11px; }

/* ══════════════════════════════════════════════════
   AUTHOR ROW  (List View)
══════════════════════════════════════════════════ */
.authors-list-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.author-row {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

/* Left accent stripe */
.author-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background var(--transition);
}

.author-row:hover                { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.author-row:hover::before        { background: var(--blue); }

.author-row-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  flex-shrink: 0;
}

.author-row-main { flex: 1; min-width: 0; }

.author-row-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.author-row-name a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.author-row-name a:hover { color: var(--blue); }

.author-row-scopus {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--blue);
  background: var(--blue-xlight);
  border: 1px solid var(--blue-light);
  padding: 1px 6px;
  border-radius: 99px;
}

.author-row-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--gray-500);
  flex-wrap: wrap;
}

.author-row-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.author-row-meta-item svg {
  width: 11px;
  height: 11px;
  color: var(--gray-400);
  flex-shrink: 0;
}

/* Numeric metrics column */
.author-row-metrics {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  align-items: center;
}

.arm           { text-align: center; }
.arm-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.5px;
  line-height: 1;
}
.arm-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-400);
  font-weight: 600;
  margin-top: 2px;
}

/* Subject chips column */
.author-row-subjects {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  flex-wrap: wrap;
  max-width: 160px;
}

.author-row-actions { flex-shrink: 0; }

/* ══════════════════════════════════════════════════
   SIDEBAR — RANK LIST (Top by Citations)
══════════════════════════════════════════════════ */
.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.rank-item:last-child { border-bottom: none; }
.rank-item:hover .rank-name { color: var(--blue); }

.rank-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  min-width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.rank-num.top3 { color: var(--orange); }

.rank-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.rank-info       { flex: 1; min-width: 0; }

.rank-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-800);
  transition: color var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-sub   { font-size: 11px; color: var(--gray-400); margin-top: 1px; }

.rank-score {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════ */
.no-authors-state {
  text-align: center;
  padding: 70px 20px;
  grid-column: 1 / -1;  /* spans full grid in grid view */
}

.no-authors-state svg {
  width: 60px;
  height: 60px;
  color: var(--gray-300);
  margin: 0 auto 16px;
  display: block;
}

.no-authors-state h5 { font-size: 17px; color: var(--gray-600); margin-bottom: 8px; }
.no-authors-state p  { font-size: 13.5px; color: var(--gray-400); }

/* ══════════════════════════════════════════════════
   SKELETON LOADERS
══════════════════════════════════════════════════ */
.author-card-skeleton {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.sk-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.sk-line {
  height: 12px;
  border-radius: 4px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .alpha-bar            { position: static; }
  .authors-grid         { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .author-row-metrics   { display: none; }
  .author-row-subjects  { display: none; }
}

@media (max-width: 767.98px) {
  .authors-hero { padding: 36px 0 32px; }

  .author-search-wrap {
    flex-wrap: wrap;
    padding: 10px;
    gap: 8px;
    border-radius: var(--radius-lg);
  }

  .author-search-wrap .aw-divider { display: none; }
  .btn-author-search               { width: 100%; justify-content: center; }
  .authors-grid                    { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .author-card-footer { flex-wrap: wrap; }
  .view-toggle        { display: none; }
}