/**
 * TechList — public pages (profiles, directory, category/location landing).
 * Editorial layout: a quiet hero, generous whitespace, cards with a thin
 * border rather than a shadow. No gradients, no glass.
 */

#techlist-app-main {
	max-width: 1040px;
	margin: 0 auto;
}

/* ---- Profile hero ---- */

.tl-profile-hero {
	display: flex;
	gap: var(--tl-space-6);
	align-items: flex-start;
	padding-bottom: var(--tl-space-6);
	border-bottom: 1px solid var(--tl-color-border);
	margin-bottom: var(--tl-space-6);
}

.tl-profile-hero__photo {
	width: 128px;
	height: 128px;
	border-radius: var(--tl-radius-md);
	object-fit: cover;
	border: 1px solid var(--tl-color-border);
	flex-shrink: 0;
}

.tl-profile-hero__name {
	font-size: 34px;
	margin: 0 0 var(--tl-space-2);
	display: flex;
	align-items: center;
	gap: var(--tl-space-3);
	flex-wrap: wrap;
}

.tl-profile-hero__headline {
	font-size: 17px;
	color: var(--tl-color-muted);
	margin: 0 0 var(--tl-space-2);
}

.tl-profile-hero__meta {
	font-size: 14px;
	color: var(--tl-color-muted);
	margin: 0 0 var(--tl-space-3);
}

.tl-profile-hero__roles {
	display: flex;
	gap: var(--tl-space-2);
	flex-wrap: wrap;
	margin: 0 0 var(--tl-space-3);
}

.tl-profile-hero__links {
	display: flex;
	gap: var(--tl-space-2);
	flex-wrap: wrap;
	margin: 0;
}

/* ---- Profile sections ---- */

.tl-profile-section {
	margin-bottom: var(--tl-space-7);
}

.tl-profile-section h2 {
	font-size: 20px;
	margin: 0 0 var(--tl-space-4);
}

.tl-profile-content {
	font-size: 15px;
	line-height: 1.7;
	color: var(--tl-color-ink);
}

.tl-tag-list {
	display: flex;
	gap: var(--tl-space-2);
	flex-wrap: wrap;
}

/* ---- Achievements ---- */

.tl-achievement-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--tl-space-4);
}

.tl-achievement {
	border-left: 2px solid var(--tl-color-accent);
	padding-left: var(--tl-space-4);
}

.tl-achievement__title {
	font-weight: 700;
	font-size: 15px;
	display: flex;
	align-items: center;
	gap: var(--tl-space-2);
}

.tl-achievement__year {
	color: var(--tl-color-muted);
	font-weight: 400;
}

.tl-achievement__org {
	font-size: 13px;
	color: var(--tl-color-muted);
}

.tl-achievement__desc {
	font-size: 14px;
	margin: var(--tl-space-1) 0;
}

.tl-achievement__link {
	font-size: 13px;
	color: var(--tl-color-accent);
}

/* ---- Related grid / listing cards ---- */

.tl-related-grid,
.tl-directory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--tl-space-4);
}

.tl-card-link {
	color: inherit;
	text-decoration: none;
}

.tl-listing-card {
	border: 1px solid var(--tl-color-border);
	border-radius: var(--tl-radius-md);
	overflow: hidden;
	background: var(--tl-color-surface);
	height: 100%;
	transition: border-color 120ms ease;
}

.tl-card-link:hover .tl-listing-card {
	border-color: var(--tl-color-ink);
}

.tl-listing-card__media {
	aspect-ratio: 4 / 3;
	background: var(--tl-color-bg);
}

.tl-listing-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tl-listing-card__media-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--tl-color-bg) 25%, var(--tl-color-border) 25%, var(--tl-color-border) 50%, var(--tl-color-bg) 50%, var(--tl-color-bg) 75%, var(--tl-color-border) 75%, var(--tl-color-border));
	background-size: 12px 12px;
	opacity: 0.3;
}

.tl-listing-card__body {
	padding: var(--tl-space-3) var(--tl-space-4);
}

.tl-listing-card__title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 4px;
	display: flex;
	align-items: center;
	gap: var(--tl-space-2);
	flex-wrap: wrap;
}

.tl-listing-card__headline {
	font-size: 13px;
	color: var(--tl-color-muted);
	margin: 0 0 4px;
	line-height: 1.4;
}

.tl-listing-card__location {
	font-size: 12px;
	color: var(--tl-color-muted);
	margin: 0;
}

/* ---- Directory ---- */

.tl-directory-header {
	padding: var(--tl-space-7) 0 var(--tl-space-5);
}

.tl-directory-header h1 {
	font-size: 36px;
	margin: 0 0 var(--tl-space-2);
}

.tl-directory-tabs {
	display: flex;
	gap: var(--tl-space-2);
	border-bottom: 1px solid var(--tl-color-border);
	margin-bottom: var(--tl-space-6);
}

.tl-directory-tabs__tab {
	padding: var(--tl-space-3) var(--tl-space-4);
	font-size: 14px;
	font-weight: 600;
	color: var(--tl-color-muted);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.tl-directory-tabs__tab.is-active,
.tl-directory-tabs__tab:hover {
	color: var(--tl-color-accent);
	border-bottom-color: var(--tl-color-accent);
}

.tl-directory-layout {
	display: flex;
	gap: var(--tl-space-6);
	align-items: flex-start;
}

.tl-directory-filters {
	width: 240px;
	flex-shrink: 0;
	background: var(--tl-color-surface);
	border: 1px solid var(--tl-color-border);
	border-radius: var(--tl-radius-md);
	padding: var(--tl-space-4);
}

.tl-directory-results {
	flex: 1;
}

.tl-directory-results__count {
	font-size: 13px;
	color: var(--tl-color-muted);
	margin: 0 0 var(--tl-space-4);
}

.tl-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--tl-space-4);
	margin-top: var(--tl-space-6);
	font-size: 14px;
}

.tl-pagination a {
	color: var(--tl-color-accent);
	font-weight: 600;
	text-decoration: none;
}

/* ---- Breadcrumbs ---- */

.tl-breadcrumbs {
	padding: var(--tl-space-4) 0 0;
	font-size: 13px;
}

.tl-breadcrumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
}

.tl-breadcrumbs li {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--tl-color-muted);
}

.tl-breadcrumbs a {
	color: var(--tl-color-muted);
	text-decoration: none;
}

.tl-breadcrumbs a:hover {
	color: var(--tl-color-accent);
	text-decoration: underline;
}

.tl-breadcrumbs [aria-current="page"] {
	color: var(--tl-color-ink);
	font-weight: 600;
}

@media (max-width: 800px) {
	.tl-profile-hero {
		flex-direction: column;
	}
	.tl-directory-layout {
		flex-direction: column;
	}
	.tl-directory-filters {
		width: 100%;
	}
}
