@import url("https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.fluid.classless.min.css") layer(theme);
@import url("/main.css") layer(main);

.page-header {
	margin-block-end: 2rem;
	h1 {
		font-size: 2.5rem;
		line-height: 1.2;
		color: #ffffff;
		margin-block-end: 0.5rem;
	}
	p {
		font-size: 1rem;
		line-height: 1.6;
		color: #92a1c3;
	}
}

data-table {
	display: block;
	overflow-x: auto;
}

data-table caption {
	display: none;
}

data-table table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 0.8rem;
	line-height: 1.5;
}

data-table thead th {
	background: #1f2937;
	color: #92a1c3;
	font-weight: 700;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-align: left;
	padding: 0.75rem 1rem;
	border-bottom: 2px solid #374151;
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}
data-table thead th:first-child {
	border-radius: 8px 0 0 0;
}
data-table thead th:last-child {
	border-radius: 0 8px 0 0;
}
data-table thead th[aria-sort="none"] {
	cursor: default;
}
data-table thead th[aria-sort="ascending"]::after {
	content: " \25B2";
	font-size: 0.7em;
}
data-table thead th[aria-sort="descending"]::after {
	content: " \25BC";
	font-size: 0.7em;
}

data-table tbody td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #1f2937;
	vertical-align: top;
}
data-table tbody td:nth-child(7),
data-table tbody td:nth-child(8) {
	white-space: nowrap;
	text-align: end;
}
data-table tbody td:nth-child(9) {
	text-align: center;
}

data-table country-flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: auto;
	vertical-align: middle;
}
data-table country-flag img {
	width: 100%;
	height: auto;
	border-radius: 2px;
}
data-table tbody tr {
	background: #111827;
}
data-table tbody tr:nth-child(even) {
	background: #0d1117;
}
data-table tbody tr:hover {
	background: #1f2937;
}

.type-badge {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	border-radius: 0.25rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.type-purchase {
	background: #065f46;
	color: #6ee7b7;
}
.type-sale {
	background: #7f1d1d;
	color: #fca5a5;
}
.type-other {
	background: #374151;
	color: #9ca3af;
}

.source-link {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem;
	border-radius: 4px;
	transition: background-color 0.15s ease;
}
.source-link::after {
	display: none;
}
.source-link:hover {
	background: #1f2937;
	text-decoration: none;
}
.source-link svg {
	stroke: #01aaff;
	vertical-align: middle;
}

.pagination-controls {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	margin-block-start: 1rem;
}
.pagination-controls button {
	font-family: "Atkinson Hyperlegible", sans-serif;
	font-size: 0.85rem;
	background: #374151;
	color: #ffffff;
	border: 1px solid #4b5563;
	border-radius: 0.5rem;
	padding: 0.5rem 1rem;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.pagination-controls button:hover:not(:disabled) {
	background: #4b5563;
}
.pagination-controls button:disabled {
	opacity: 0.4;
	cursor: default;
}

.empty-state {
	text-align: center;
	padding: 3rem 1rem;
	font-size: 1.1rem;
	color: #6b7280;
}

.cta-banner {
	margin-block: 3rem;
	padding: 2rem;
	background: linear-gradient(#1f2937, #111827);
	border-radius: 1rem;
	border: 1px solid #374151;
	text-align: center;
	h2 {
		margin-block-start: 0;
	}
	p {
		margin-block-end: 1.5rem;
	}
}

.button {
	display: inline-block;
	text-decoration: none;
	text-align: center;
	border-radius: 1rem;
	color: #ffffff;
	background-color: #374151;
	border: 1px solid #374151;
	padding: 0.75rem 1.5rem;
	font-size: 0.9rem;
	transition: background-color 0.2s ease-in-out;
}
.button:hover {
	background-color: #4b5563;
	text-decoration: none;
}
.button:first-of-type {
	background-color: #0172ad;
	box-shadow: #0172ad 0px 0px 20px -4px;
}
.button:first-of-type:hover {
	background-color: #0284c7;
}
.button.outline {
	background: transparent;
	border-color: #374151;
	color: #92a1c3;
}
.button.outline:hover {
	background: #1f2937;
	color: #ffffff;
}

@media (min-width: 1296px) {
	body {
		max-width: 1280px;
		margin-inline: auto;
	}

	body > header {
		nav {
			a[href="/"] {
				flex: 0 0 auto;
			}
			a[href="/"]:not(:has(svg)) {
				flex: 1 0 auto;
				display: unset;
			}
		}
	}
}

@media (min-width: 1512px) {
	body {
		max-width: 1496px;
		margin-inline: auto;
	}
}
