/* SDF References — Frontend styles */

.sdfref-section {
	margin-top: 48px;
	padding: 36px 0 0;
	border-top: 2px solid #f0ede8;
}

.sdfref-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 24px;
}

.sdfref-label {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #999;
	margin: 0;
	line-height: 1;
}

.sdfref-header-line {
	flex: 1;
	height: 1px;
	background: #e8e4de;
}

.sdfref-count {
	font-size: 0.68rem;
	font-weight: 600;
	color: #bbb;
	background: #f0ede8;
	padding: 2px 8px;
	border-radius: 20px;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

/* List */
.sdfref-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	counter-reset: sdfref-counter;
}

.sdfref-item {
	display: grid;
	grid-template-columns: 26px 1fr;
	gap: 0 12px;
	padding: 16px 18px;
	background: #fff;
	border-radius: 10px;
	border: 1px solid #ede9e3;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sdfref-item:hover {
	border-color: #d4cec6;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sdfref-num {
	font-size: 0.7rem;
	font-weight: 700;
	color: #ccc;
	margin-top: 4px;
	text-align: right;
	line-height: 1;
}

.sdfref-body {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

/* Meta row (badge + year) */
.sdfref-meta {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
	margin-bottom: 2px;
}

/* Badges */
.sdfref-section .badge {
	display: inline-flex;
	align-items: center;
	font-size: 0.63rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 2px 7px;
	border-radius: 4px;
	line-height: 1.6;
}

.sdfref-section .badge-crossref {
	color: #1a6b3c;
	background: #e6f4ec;
	border: 1px solid #c3e6d1;
}

.sdfref-section .badge-pubmed {
	color: #6b3aaa;
	background: #f3ecfa;
	border: 1px solid #dcc8f0;
}

.sdfref-section .badge-who {
	color: #0055a5;
	background: #e8f0fb;
	border: 1px solid #c0d6f5;
}

.sdfref-year {
	font-size: 0.72rem;
	color: #aaa;
	font-weight: 500;
}

/* Text fields */
.sdfref-authors {
	font-size: 0.875rem;
	color: #222;
	font-weight: 600;
	line-height: 1.4;
}

.sdfref-title {
	font-size: 0.9rem;
	font-style: italic;
	color: #333;
	line-height: 1.5;
}

.sdfref-journal {
	font-size: 0.8rem;
	color: #777;
	line-height: 1.4;
}

.sdfref-journal em {
	font-style: normal;
	font-weight: 600;
	color: #555;
}

/* ID row */
.sdfref-id {
	margin-top: 4px;
}

.sdfref-doi-link {
	font-family: 'SF Mono', 'Fira Code', Consolas, 'Courier New', monospace;
	font-size: 0.72rem;
	color: #1a6b3c;
	text-decoration: none;
	font-weight: 500;
	word-break: break-all;
}

.sdfref-doi-link::before {
	content: 'DOI: ';
	color: #bbb;
	font-weight: 400;
}

.sdfref-doi-link:hover {
	color: #0f4424;
	text-decoration: underline;
}

.sdfref-pmid {
	font-family: 'SF Mono', 'Fira Code', Consolas, 'Courier New', monospace;
	font-size: 0.72rem;
	color: #6b3aaa;
	font-weight: 500;
	word-break: break-all;
}

/* Responsive */
@media (max-width: 600px) {
	.sdfref-item {
		grid-template-columns: 20px 1fr;
		gap: 0 8px;
		padding: 14px 14px;
	}

	.sdfref-num {
		font-size: 0.65rem;
	}

	.sdfref-title {
		font-size: 0.85rem;
	}
}
