/* © Copyright 2026 Canadian Data Solutions. Licensed under the GPL v2 or later. */
:root {
	--topspot-rev: "ehbpeefkcd5kwi9s0ed0vgoyst72a21e8rm674hy";
	--topspot-accent: currentColor;
	--topspot-border: rgba(0, 0, 0, 0.12);
	--topspot-card-bg: transparent;
	--topspot-gap: 28px;
	--topspot-radius: 6px;
	--topspot-logo-height: 90px;
}

.topspot-directory,
.topspot-listing {
	font: inherit;
	color: inherit;
}

.topspot-directory *,
.topspot-listing * {
	box-sizing: border-box;
}

.topspot-heading {
	margin: 0 0 20px;
}

.topspot-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 32px;
}

.topspot-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
}

.topspot-tab {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	padding: 6px 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
	letter-spacing: 0.02em;
	opacity: 0.7;
	transition: opacity 0.2s, border-color 0.2s;
}

.topspot-tab:hover,
.topspot-tab:focus-visible {
	opacity: 1;
	outline: none;
}

.topspot-tab.is-active {
	opacity: 1;
	border-bottom-color: var(--topspot-accent);
}

.topspot-search {
	position: relative;
	min-width: 220px;
}

.topspot-search .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.topspot-search-input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid var(--topspot-border);
	border-radius: var(--topspot-radius);
	background: transparent;
	color: inherit;
	font: inherit;
}

.topspot-section {
	margin: 0 0 48px;
}

.topspot-section[hidden],
.topspot-card[hidden],
.topspot-no-results[hidden] {
	display: none;
}

.topspot-section-title {
	margin: 0 0 12px;
}

.topspot-intro {
	max-width: 70ch;
	margin: 0 0 24px;
	opacity: 0.85;
}

.topspot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--topspot-gap);
}

.topspot-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--topspot-border);
	border-radius: var(--topspot-radius);
	background: var(--topspot-card-bg);
	padding: 24px;
	position: relative;
}

.topspot-card-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--topspot-logo-height);
	margin: 0 0 18px;
}

.topspot-card-logo img {
	max-height: 100%;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.topspot-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.topspot-card-title {
	margin: 0 0 6px;
	font-size: 1.05em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.topspot-card-title a {
	text-decoration: none;
	color: inherit;
}

.topspot-card-tagline {
	margin: 0 0 12px;
	opacity: 0.8;
	font-size: 0.95em;
}

.topspot-rows {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	font-size: 0.95em;
}

.topspot-row {
	margin: 0 0 6px;
	line-height: 1.5;
}

.topspot-card .topspot-row-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.topspot-listing .topspot-row-label {
	display: inline-block;
	min-width: 5.5em;
	opacity: 0.6;
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.topspot-rows a {
	text-decoration: none;
	color: inherit;
}

.topspot-rows a:hover {
	text-decoration: underline;
}

.topspot-button {
	display: inline-block;
	margin-top: auto;
	padding: 10px 18px;
	border: 1px solid currentColor;
	border-radius: var(--topspot-radius);
	text-decoration: none;
	color: inherit;
	font-size: 0.9em;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	align-self: flex-start;
	transition: background 0.2s, color 0.2s;
}

.topspot-button:hover {
	background: currentColor;
}

.topspot-button:hover {
	color: #fff;
}

.topspot-empty,
.topspot-no-results {
	opacity: 0.8;
}

/* Single listing */

.topspot-listing-head {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: flex-start;
	margin: 0 0 32px;
}

.topspot-listing-logo {
	flex: 0 0 240px;
	max-width: 100%;
}

.topspot-listing-logo img {
	max-width: 100%;
	height: auto;
	display: block;
}

.topspot-listing-summary {
	flex: 1 1 320px;
}

.topspot-listing-tagline {
	font-size: 1.1em;
	margin: 0 0 16px;
}

.topspot-website-button {
	margin: 8px 0 16px;
}

.topspot-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.topspot-socials a {
	text-decoration: none;
	color: inherit;
	font-size: 0.9em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.8;
}

.topspot-socials a:hover {
	opacity: 1;
	text-decoration: underline;
}

.topspot-listing-content {
	margin: 0 0 32px;
}

.topspot-back {
	margin: 32px 0 0;
}

.topspot-back a {
	text-decoration: none;
	color: inherit;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.9em;
}

.topspot-back a::before {
	content: "\2190\00a0";
}

@media (max-width: 600px) {
	.topspot-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.topspot-card {
		padding: 20px;
	}
}
/* © Copyright 2026 Canadian Data Solutions. Licensed under the GPL v2 or later. */
