/* Specta on the site: lists of members (companies, directors…) and member pages.
   Colors come from the theme's text color; logical properties work in RTL and LTR. */

.specta-page {
	display: block;
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 16px 40px;
	box-sizing: border-box;
}
.specta-members-title,
.specta-member-title {
	margin: 0 0 20px;
	font-size: 1.6em;
	line-height: 1.4;
}

/* ---------- The list ---------- */
.specta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 16px;
}
.specta-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	padding: 20px 16px 18px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.specta-card:hover,
.specta-card:focus-visible {
	border-color: rgba(0, 0, 0, 0.18);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
	transform: translateY(-2px);
	text-decoration: none;
}
.specta-card-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 84px;
}
.specta-page .specta-card-media img {
	max-width: 80%;
	max-height: 84px;
	object-fit: contain;
}
.specta-card-letter {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.06);
	font-size: 26px;
	font-weight: 700;
}
.specta-card-title {
	font-weight: 700;
	font-size: 1.05em;
	line-height: 1.4;
}
.specta-card-text {
	font-size: 0.88em;
	line-height: 1.8;
	opacity: 0.75;
}
.specta-members .pagination,
.specta-members .navigation {
	margin-top: 28px;
	text-align: center;
}
.specta-members .nav-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
}
.specta-members .page-numbers {
	display: inline-block;
	min-width: 36px;
	padding: 6px 10px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	text-decoration: none;
}
.specta-members .page-numbers.current {
	background: rgba(0, 0, 0, 0.08);
	font-weight: 700;
}

/* ---------- A member ---------- */
.specta-member {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	padding: 28px;
}
.specta-member-head {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}
.specta-page .specta-member-image {
	width: auto;
	max-width: 140px;
	height: auto;
	max-height: 140px;
	margin: 0;
	object-fit: contain;
	float: none;
}
.specta-member-head .specta-member-title {
	margin-bottom: 10px;
}
.specta-member-link {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.07);
	color: inherit;
	text-decoration: none;
	font-weight: 600;
}
.specta-member-link:hover {
	background: rgba(0, 0, 0, 0.12);
	text-decoration: none;
}
.specta-member-desc {
	line-height: 2;
	margin-bottom: 18px;
}
.specta-specs {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 8px 20px;
	margin: 0;
	padding: 16px 0 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.specta-specs dt {
	font-weight: 600;
	opacity: 0.75;
}
.specta-specs dd {
	margin: 0;
}
.specta-specs img {
	max-height: 48px;
}
.specta-unit {
	opacity: 0.7;
}

@media (max-width: 600px) {
	.specta-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.specta-member {
		padding: 18px;
	}
	.specta-member-head {
		flex-direction: column;
		text-align: center;
	}
	.specta-specs {
		grid-template-columns: 1fr;
		gap: 2px;
	}
	.specta-specs dd {
		margin-bottom: 8px;
	}
}

/* Dark themes (SoftSara's dark mode and others using prefers-color-scheme) */
@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) .specta-card,
	html:not([data-theme="light"]) .specta-member {
		background: transparent;
		border-color: rgba(255, 255, 255, 0.12);
	}
}

/* ---------- A member's posts ---------- */
.specta-member-posts {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.specta-member-posts h2 {
	margin: 0 0 12px;
	font-size: 1.2em;
}
.specta-member-posts ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 6px 20px;
}
.specta-member-posts li {
	padding: 6px 0;
	border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

/* ---------- The specs box of a post ---------- */
.specta-box {
	margin: 24px 0;
	padding: 16px 20px 18px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.015);
}
.specta-box-title {
	font-weight: 700;
	font-size: 1.1em;
	margin-bottom: 10px;
}
.specta-box .specta-specs {
	padding-top: 0;
	border-top: 0;
}
.specta-box .specta-specs dt,
.specta-box .specta-specs dd {
	padding: 6px 0;
	border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}
.specta-box .specta-specs dt:nth-last-of-type(1),
.specta-box .specta-specs dd:last-child {
	border-bottom: 0;
}
.specta-box .specta-t-image img {
	max-height: 48px;
	width: auto;
}
.specta-member-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}
.specta-member-chip img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}
.specta-box a[dir="ltr"] {
	unicode-bidi: isolate;
}

/* ---------- Specs box: label and value, in one or two columns ---------- */
.specta-grid-specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 24px;
}
.specta-spec {
	display: flex;
	gap: 12px;
	align-items: baseline;
	padding: 8px 0;
	border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
	min-width: 0;
}
.specta-spec.specta-span-full {
	grid-column: 1 / -1;
}
.specta-spec-label {
	flex: 0 0 auto;
	min-width: 120px;
	font-weight: 600;
	opacity: 0.75;
}
.specta-spec-value {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}
.specta-spec.specta-t-image .specta-spec-value img {
	max-height: 48px;
	width: auto;
}
@media (max-width: 600px) {
	.specta-grid-specs {
		grid-template-columns: 1fr;
	}
	.specta-spec {
		flex-direction: column;
		gap: 2px;
	}
}
