table.dataTable {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	background-color: #FCFCFC;
	color: #222;
	border: 1px solid #DDD;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Header */
table.dataTable thead th {
	background-color: #8B0000;
	color: #FFF;
	font-weight: normal;
	letter-spacing: 0.5px;
	text-transform: none;
	text-shadow: unset;
	font-size: 0.85rem;
	padding: 10px 14px;
	border-bottom: 2px solid #660000;
}

/* Hover & Sorting */
table.dataTable thead th.sorting:hover,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
	background-color: #660000;
	color: #FFF;
}

/* Body Rows */
table.dataTable tbody tr {
	border-bottom: 1px solid #EEE;
}

table.dataTable tbody tr:nth-child(even) {
	background-color: #F8F8F8;
}

table.dataTable tbody tr:hover {
	background-color: #F2E6E6;
}

/* Cells */
table.dataTable td {
	padding: 10px 14px;
	vertical-align: middle;
	font-size: 0.95rem;
	line-height: 1.4;
}

/* Footer (if used) */
table.dataTable tfoot th {
	background-color: #F0F0F0;
	color: #444;
	font-weight: 600;
}

/* Pagination */
.dataTables_wrapper .dataTables_paginate .paginate_button {
	background-color: #F8F8F8;
	border: 1px solid #DDD;
	border-radius: 4px;
	color: #222 !important;
	margin: 0 2px;
	padding: 4px 10px;
	font-size: 0.9rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
	background-color: #8B0000 !important;
	border-color: #8B0000;
	color: #FFF !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
	background-color: #660000 !important;
	color: #FFF !important;
}

/* Search + Info */
.dataTables_wrapper .dataTables_filter input {
	border: 1px solid #CCC;
	border-radius: 4px;
	padding: 4px 8px;
	font-size: 0.9rem;
}

.dataTables_wrapper .dataTables_info {
	font-size: 0.85rem;
	color: #555;
	padding-top: 10px;
}

.author-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
}

.author-item {
	background: #f9f9f9;
	border: 1px solid #ddd;
	padding: 0.75rem 1rem;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s ease;
	user-select: none;
}

.author-item:hover {
	background-color: #e3e3e3;	
}

.author-name {
	font-weight: 600;
	color: #1d274a;
	text-decoration: underline;
}

.article-count {
	font-size: 0.9rem;
	color: #555;
	margin-top: 0.25rem;
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: #64121b;
}
.badge {
	--bs-border-radius: 0.375rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-xxl: 2rem;
    --bs-border-radius-2xl: var(--bs-border-radius-xxl);
    --bs-badge-padding-x: 0.65em;
    --bs-badge-padding-y: 0.35em;
    --bs-badge-font-size: 0.75em;
    --bs-badge-color: #fff;
    --bs-badge-border-radius: var(--bs-border-radius);
    display: inline-block;
    padding: var(--bs-badge-padding-y) var(--bs-badge-padding-x);
    font-size: var(--bs-badge-font-size);
    line-height: 1;
    color: var(--bs-badge-color);
    text-align: center;
    text-indent: 0;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--bs-badge-border-radius);
}

/* Container to position input and button */
.dataTables_filter {
    position: relative;
    display: inline-block;
}

.dataTables_filter input {
    padding-right: 20px; /* space for the clear button */
}

.dataTables_filter .clear-search {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    color: #888;
    user-select: none;
    display: none; /* hidden when input empty */
}