/* Bookmarks page */

.bookmarks-controls {
	margin: 1.5rem 0 1.25rem;
}

.bookmarks-form {
	margin-bottom: 0.5rem;
}

.bookmarks-input {
	width: 100%;
	padding: 0.7rem 0.75rem;
	border: 1px solid var(--color-gray-20);
	border-radius: 4px;
	font-family: var(--font-family);
	font-size: 0.95rem;
	line-height: 1.3;
	color: var(--text-color);
	background-color: var(--background-color);
	transition: border-color 0.2s ease;
}

.bookmarks-input:focus {
	outline: none;
	border-color: var(--text-color-link);
	box-shadow: 0 0 0 3px rgba(51, 100, 255, 0.25);
}

html[data-theme="dark"] .bookmarks-input:focus {
	box-shadow: 0 0 0 3px rgba(140, 180, 255, 0.28);
}

@media (prefers-color-scheme: dark) {
	html:not([data-theme]) .bookmarks-input:focus {
		box-shadow: 0 0 0 3px rgba(140, 180, 255, 0.28);
	}
}

.bookmarks-stats {
	margin: 0 0 1rem;
	font-size: 0.8125rem;
	color: var(--color-gray-90);
	opacity: 0.85;
	min-height: 1.25rem;
}

.bookmark-list {
	margin: 1.5rem 0;
	list-style: decimal;
	padding-left: 1.5rem;
}

.bookmark-list li {
	padding: 0.6rem 0;
}

.bookmark-item.is-hidden {
	display: none;
}

.bookmark-title {
	font-weight: 500;
}

.bookmark-author {
	opacity: 0.6;
}

.bookmark-note {
	display: grid;
	grid-template-columns: 1.15em 1fr;
	column-gap: 0.35rem;
	align-items: start;
	opacity: 0.6;
	margin-top: 0.15rem;
	line-height: 1.5;
}

.bookmark-note-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.15em;
	height: 1.5em;
	color: var(--text-color-muted);
}

.bookmark-note-icon svg {
	width: 0.9em;
	height: 0.9em;
	display: block;
}

.bookmark-note-text {
	min-width: 0;
}

.bookmark-meta {
	display: block;
	opacity: 0.5;
	margin-top: 0.15rem;
	font-size: 0.85em;
	line-height: 1.5;
}

.bookmarks-empty {
	margin: 1.5rem 0;
	color: var(--text-color-muted);
}

.bookmarks-empty code {
	font-family: var(--font-family-monospace);
	font-size: 0.9em;
}
