/**
 * Minimal account usability styles (not final branding).
 */

.nds-library__list,
.nds-dashboard__list,
.nds-help__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nds-library-card {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid #d4d4d4;
}

.nds-library-card__media img,
.nds-library-card__placeholder {
	display: block;
	width: 120px;
	height: 160px;
	object-fit: cover;
	background: #f0f0f0;
	color: #555;
	text-align: center;
	line-height: 160px;
	font-size: 0.85rem;
}

.nds-library-card__facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
	gap: 0.5rem 1rem;
	margin: 0.75rem 0;
}

.nds-library-card__facts dt {
	font-size: 0.8rem;
	color: #555;
	margin: 0;
}

.nds-library-card__facts dd {
	margin: 0;
}

.nds-library-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.nds-library-card__details {
	margin-left: 0.25rem;
}

.nds-status {
	display: inline-block;
	font-weight: 600;
}

.nds-status--active { color: #1a5f2a; }
.nds-status--expired,
.nds-status--limit_reached,
.nds-status--revoked { color: #8a1f1f; }

.nds-download-btn:focus-visible,
.nds-pagination__link:focus-visible,
.nds-library-card a:focus-visible,
.nds-dashboard a:focus-visible {
	outline: 2px solid #1a4d7c;
	outline-offset: 2px;
}

.nds-download-btn[aria-busy="true"] {
	opacity: 0.7;
	cursor: wait;
}

.nds-download-status {
	margin: 0.5rem 0 0;
	font-size: 0.9rem;
}

.nds-download-status.is-error { color: #8a1f1f; }
.nds-download-status.is-ok { color: #1a5f2a; }

.nds-dashboard__summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 1rem;
	list-style: none;
	margin: 1rem 0;
	padding: 0;
}

.nds-dashboard__label {
	display: block;
	font-size: 0.85rem;
	color: #555;
}

.nds-history__table {
	width: 100%;
	border-collapse: collapse;
}

.nds-history__table th,
.nds-history__table td {
	text-align: left;
	padding: 0.5rem;
	border-bottom: 1px solid #ddd;
	vertical-align: top;
}

.nds-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 1rem 0;
}

.nds-pagination__link {
	display: inline-block;
	padding: 0.35rem 0.65rem;
	border: 1px solid #ccc;
	text-decoration: none;
}

.nds-pagination__link.is-active {
	font-weight: 700;
	border-color: #333;
}

.nds-empty {
	padding: 1rem 0;
}

@media (max-width: 600px) {
	.nds-library-card {
		grid-template-columns: 1fr;
	}
}
