/* [ts_periodical_browser] — controls, card stats line, "not yet in the archive"
   list. Pills match the .tag-cloud filter pills (tag-filter.css). Dark site. */
.ts-pb-controls {
	padding: 12px 15px;
	background: #303030;
	border-radius: 5px;
	margin-bottom: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ts-pb-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
}
.ts-pb-label {
	flex: 0 0 5.5em;
	color: #b0b0b0;
	font-size: 14px;
	font-weight: 600;
}
.ts-pb-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.ts-pb-pill {
	padding: 5px 12px;
	background: #404040;
	border: 2px solid #505050;
	border-radius: 20px;
	color: #e0e0e0;
	font: inherit;
	font-size: 13px;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	transition: all 0.2s ease;
}
.ts-pb-pill:hover {
	border-color: #4a9eff;
	background: #3a4a5a;
	color: #fff;
}
.ts-pb-pill.active {
	background: #0066cc;
	border-color: #0056b3;
	color: #fff;
}
.ts-pb-pill .tag-count {
	font-size: 11px;
	opacity: 0.8;
	margin-left: 4px;
}
.ts-pb-bottom {
	align-items: center;
	flex-wrap: wrap;
}
.ts-pb-sort {
	background: #404040;
	color: #e0e0e0;
	border: 2px solid #505050;
	border-radius: 4px;
	padding: 4px 8px;
	font-size: 14px;
}
.ts-pb-count {
	margin-left: auto;
	color: #b0b0b0;
	font-size: 14px;
}
.ts-pb-count strong {
	color: #fff;
}
.ts-pb-reset {
	padding: 5px 15px;
	background: #cc4444;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 13px;
	cursor: pointer;
}
.ts-pb-reset:hover {
	background: #e74c3c;
}
.ts-pb-reset[hidden],
.ts-pb-none[hidden] {
	display: none;
}
.ts-pb-none {
	text-align: center;
	padding: 30px;
	color: #b0b0b0;
}

/* Stats line under each card title */
.ts-pb .card article p.ts-pb-stats {
	color: #f0a020;
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 .5em;
}

/* Known titles not yet in the archive */
.ts-pb-empty {
	margin-top: 2.5em;
	padding-top: 1em;
	border-top: 3px solid rgba(2, 112, 186, 0.27);
}
.ts-pb-empty p {
	color: #b0b0b0;
}
.ts-pb-empty ul {
	columns: 3 14em;
	column-gap: 2em;
}
.ts-pb-empty li {
	break-inside: avoid;
}

@media (max-width: 640px) {
	.ts-pb-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
	.ts-pb-bottom {
		flex-direction: row;
		align-items: center;
	}
	.ts-pb-label {
		flex: none;
	}
	.ts-pb-count {
		margin-left: 0;
		width: 100%;
	}
}

.ts-pb-band > .item.hidden {
	display: none;
}

/* --- [ts_periodical_index]: compact rows (general computing / academic / news) */
.ts-pi-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 12px 24px;
}
.ts-pi-row {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 10px;
	background: #303030;
	border-radius: 5px;
	margin: 0;
}
.ts-pi-row.hidden {
	display: none;
}
.ts-pi-thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 72px;
	background: #fff;
	border-radius: 3px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ts-pi-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.ts-pi-body {
	min-width: 0;
	line-height: 1.35;
}
.ts-pi-title {
	font-weight: 700;
	font-size: 1.05em;
}
.ts-pi-stats {
	display: block;
	color: #f0a020;
	font-size: 14px;
	font-weight: 600;
	margin-top: 2px;
}
.ts-pi-articles {
	margin: 6px 0 0;
	padding-left: 1.1em;
	font-size: 15px;
}
.ts-pi-articles li {
	margin: 0 0 3px;
}
.ts-pi-date {
	color: #b0b0b0;
	font-size: 13px;
	white-space: nowrap;
}
.ts-pi .ts-pb-count {
	margin-left: auto;
}
@media (max-width: 640px) {
	.ts-pi-list {
		grid-template-columns: 1fr;
	}
}

/* --- [ts_periodicals_hub]: Periodicals landing page */
.ts-ph-intro strong {
	color: #fff;
}
.ts-ph-find {
	padding: 14px 16px;
	background: #303030;
	border-radius: 5px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	margin: 1.2em 0 1.6em;
}
.ts-ph-find label {
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
}
.ts-ph-q {
	width: 100%;
	max-width: 32em;
	box-sizing: border-box;
	padding: 8px 12px;
	background: #404040;
	color: #e0e0e0;
	border: 2px solid #505050;
	border-radius: 4px;
	font-size: 16px;
}
.ts-ph-q:focus {
	outline: none;
	border-color: #4a9eff;
}
.ts-ph-results {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}
.ts-ph-results li {
	padding: 4px 0;
	border-bottom: 1px solid #404040;
}
.ts-ph-results li:last-child {
	border-bottom: 0;
}
.ts-ph-results li a {
	font-weight: 700;
}
.ts-ph-section,
.ts-ph-stats {
	font-size: 13px;
	color: #b0b0b0;
	margin-left: .5em;
}
.ts-ph-stats {
	color: #f0a020;
}
.ts-ph-nomatch {
	margin: 8px 0 0;
	color: #b0b0b0;
}
.ts-ph-nomatch[hidden],
.ts-ph-results li[hidden] {
	display: none;
}
.ts-ph-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
.ts-ph-card {
	display: flex;
	flex-direction: column;
	padding: 16px 18px;
	background: #303030;
	border-radius: 5px;
}
.ts-ph-card h3 {
	margin: 0 0 4px;
	line-height: 1.2;
}
.ts-ph-card h3 a {
	text-decoration: none;
}
.ts-ph-card .ts-pb-stats {
	color: #f0a020;
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 .6em;
}
.ts-ph-card p {
	margin: 0 0 .7em;
}
.ts-ph-top {
	font-size: 15px;
}
.ts-ph-top span {
	color: #b0b0b0;
	font-weight: 600;
}
.ts-ph-more {
	margin-top: auto !important;
	margin-bottom: 0 !important;
	padding-top: .4em;
}
.ts-ph-foot {
	margin-top: 1.6em;
}
@media (max-width: 700px) {
	.ts-ph-grid {
		grid-template-columns: 1fr;
	}
}
