/**
 * pSEO Directory Engine - front-end styles.
 *
 * Everything is scoped under .pseo-directory-root so the plugin never restyles
 * the theme, and every rule is written as a descendant of that root so theme
 * rules for ul/li/h2/p cannot win on specificity. Typography inherits from the
 * theme (font family and base colour); spacing, surfaces and borders come from
 * the tokens below.
 */

.pseo-directory-root {
	--pseo-surface: #ffffff;
	--pseo-surface-sunken: #f7f8fa;
	--pseo-border: #e5e7eb;
	--pseo-border-strong: #d4d8df;
	--pseo-muted: #5f6570;
	--pseo-accent: #262626;
	--pseo-accent-hover: #000000;
	--pseo-accent-soft: #f1f1f1;
	--pseo-success: #12805c;
	--pseo-success-soft: #e7f6ef;
	--pseo-danger: #b4232c;
	--pseo-danger-soft: #fdecec;
	--pseo-radius: 0px;
	--pseo-radius-sm: 0px;
	--pseo-container: 1160px;

	font-family: inherit;
	color: inherit;
}

.pseo-directory-root *,
.pseo-directory-root *::before,
.pseo-directory-root *::after {
	box-sizing: border-box;
}

/* Reset the elements themes most often style, then restore them only inside
   prose regions where the theme's rhythm is wanted. */
.pseo-directory-root ul,
.pseo-directory-root ol,
.pseo-directory-root dl,
.pseo-directory-root dd {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pseo-directory-root li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pseo-directory-root li::marker {
	content: "";
}

.pseo-directory-root h1,
.pseo-directory-root h2,
.pseo-directory-root h3,
.pseo-directory-root h4,
.pseo-directory-root p,
.pseo-directory-root figure {
	margin: 0;
	padding: 0;
}

.pseo-directory-root a {
	color: inherit;
}

.pseo-directory-root :focus-visible {
	outline: 2px solid var(--pseo-accent);
	outline-offset: 2px;
}

.pseo-directory-root .pseo-container {
	width: 100%;
	max-width: var(--pseo-container);
	margin-inline: auto;
	padding-inline: 20px;
}

.pseo-directory-root .pseo-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Prose ---------------------------------------------------------------- */

.pseo-directory-root .pseo-prose {
	line-height: 1.7;
	font-size: 1rem;
}

.pseo-directory-root .pseo-prose p,
.pseo-directory-root .pseo-feature__text p,
.pseo-directory-root .pseo-founder__bio p {
	margin: 0 0 1em;
}

.pseo-directory-root .pseo-prose > *:last-child,
.pseo-directory-root .pseo-feature__text > *:last-child,
.pseo-directory-root .pseo-founder__bio > *:last-child {
	margin-bottom: 0;
}

.pseo-directory-root .pseo-prose ul,
.pseo-directory-root .pseo-prose ol {
	margin: 0 0 1em;
	padding-left: 1.35em;
	list-style: disc;
}

.pseo-directory-root .pseo-prose ol {
	list-style: decimal;
}

.pseo-directory-root .pseo-prose li {
	margin: 0 0 0.35em;
	list-style: inherit;
}

.pseo-directory-root .pseo-prose li::marker {
	content: initial;
}

.pseo-directory-root .pseo-prose h2,
.pseo-directory-root .pseo-prose h3 {
	margin: 1.6em 0 0.5em;
	line-height: 1.3;
}

.pseo-directory-root .pseo-prose a {
	color: var(--pseo-accent);
}

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

.pseo-directory-root .pseo-breadcrumbs {
	font-size: 0.8125rem;
	color: var(--pseo-muted);
	padding: 20px 0 0;
}

.pseo-directory-root .pseo-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.pseo-directory-root .pseo-breadcrumbs li::after {
	content: "/";
	margin-left: 6px;
	color: var(--pseo-border-strong);
}

.pseo-directory-root .pseo-breadcrumbs li:last-child::after {
	content: "";
}

.pseo-directory-root .pseo-breadcrumbs a {
	text-decoration: none;
}

.pseo-directory-root .pseo-breadcrumbs a:hover {
	text-decoration: underline;
}

/* Hero ----------------------------------------------------------------- */

.pseo-directory-root.pseo-listing {
	padding: 0 0 64px;
}

.pseo-directory-root .pseo-hero {
	padding: 24px 0 0;
	margin: 0 0 36px;
}

.pseo-directory-root .pseo-hero__top {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 24px;
}

.pseo-directory-root .pseo-hero__identity {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
	flex: 1 1 380px;
}

.pseo-directory-root .pseo-hero__naming {
	min-width: 0;
}

.pseo-directory-root .pseo-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.pseo-directory-root .pseo-title {
	font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.3rem);
	line-height: 1.1;
	letter-spacing: -0.025em;
	font-weight: 700;
}

.pseo-directory-root .pseo-logo {
	flex: 0 0 auto;
	width: 68px;
	height: 68px;
	display: grid;
	place-items: center;
	border: 1px solid var(--pseo-border);
	border-radius: 0;
	background: var(--pseo-surface);
	overflow: hidden;
}

.pseo-directory-root .pseo-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.pseo-directory-root .pseo-logo--round,
.pseo-directory-root .pseo-logo--round img {
	border-radius: 0;
}

.pseo-directory-root .pseo-logo__fallback {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--pseo-muted);
}

/* Stat bar ------------------------------------------------------------- */

.pseo-directory-root .pseo-statbar {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	border: 1px solid var(--pseo-border);
	border-radius: var(--pseo-radius);
	background: var(--pseo-surface);
	overflow: hidden;
}

.pseo-directory-root .pseo-statbar__item {
	padding: 14px 18px;
	border-right: 1px solid var(--pseo-border);
}

.pseo-directory-root .pseo-statbar__item:last-child {
	border-right: 0;
}

.pseo-directory-root .pseo-statbar dt {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pseo-muted);
}

.pseo-directory-root .pseo-statbar dd {
	margin-top: 3px;
	font-size: 1rem;
	font-weight: 650;
}

/* Body layout ---------------------------------------------------------- */

.pseo-directory-root .pseo-listing__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	align-items: start;
}

.pseo-directory-root .pseo-listing__main > .pseo-section + .pseo-section {
	margin-top: 40px;
}

.pseo-directory-root .pseo-listing__aside {
	position: sticky;
	top: 24px;
	align-self: start;
	display: grid;
	gap: 20px;
}

.pseo-directory-root .pseo-section__title {
	margin: 0 0 16px;
	font-size: 1.25rem;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.015em;
}

/* Panels --------------------------------------------------------------- */

.pseo-directory-root .pseo-panel {
	border: 1px solid var(--pseo-border);
	border-radius: var(--pseo-radius);
	background: var(--pseo-surface);
	padding: 20px;
}

.pseo-directory-root .pseo-panel--sunken {
	background: var(--pseo-surface-sunken);
}

.pseo-directory-root .pseo-panel__title {
	margin: 0 0 14px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--pseo-muted);
}

.pseo-directory-root .pseo-panel__actions {
	display: grid;
	gap: 8px;
	margin-top: 16px;
}

/* Spec list (sidebar) -------------------------------------------------- */

.pseo-directory-root .pseo-spec__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 0;
	border-bottom: 1px solid var(--pseo-border);
}

.pseo-directory-root .pseo-spec__row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.pseo-directory-root .pseo-spec dt {
	font-size: 0.8125rem;
	color: var(--pseo-muted);
	flex: 0 0 auto;
}

.pseo-directory-root .pseo-spec dd {
	font-size: 0.875rem;
	font-weight: 600;
	text-align: right;
	overflow-wrap: anywhere;
}

/* Fact grid (generic fallback template) -------------------------------- */

.pseo-directory-root .pseo-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1px;
	border: 1px solid var(--pseo-border);
	border-radius: var(--pseo-radius);
	background: var(--pseo-border);
	overflow: hidden;
}

.pseo-directory-root .pseo-fact {
	background: var(--pseo-surface);
	padding: 16px 18px;
}

.pseo-directory-root .pseo-fact__label {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pseo-muted);
}

.pseo-directory-root .pseo-fact__value {
	margin-top: 6px;
	font-size: 0.9375rem;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.pseo-directory-root .pseo-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin-top: 16px;
}

.pseo-directory-root .pseo-meta__label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pseo-muted);
}

.pseo-directory-root .pseo-meta__value {
	display: block;
	margin-top: 2px;
	font-size: 0.9375rem;
	font-weight: 600;
}

/* Features ------------------------------------------------------------- */

.pseo-directory-root .pseo-features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.pseo-directory-root .pseo-feature {
	display: flex;
	font-weight: 400;
	gap: 14px;
	padding: 18px 20px;
	border: 1px solid var(--pseo-border);
	border-radius: var(--pseo-radius);
	background: var(--pseo-surface);
}

.pseo-directory-root .pseo-feature__num {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 0;
	background: var(--pseo-accent-soft);
	color: var(--pseo-accent);
	font-size: 0.75rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.pseo-directory-root .pseo-feature__body {
	min-width: 0;
}

.pseo-directory-root .pseo-feature__title {
	margin: 2px 0 0;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.55;
	letter-spacing: 0;
}

.pseo-directory-root .pseo-feature__text {
	margin-top: 6px;
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.6;
	color: var(--pseo-muted);
}

/* Pros and cons -------------------------------------------------------- */

.pseo-directory-root .pseo-proscons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.pseo-directory-root .pseo-proscons__col {
	border: 1px solid var(--pseo-border);
	border-radius: var(--pseo-radius);
	padding: 18px 20px;
}

.pseo-directory-root .pseo-proscons__col h3 {
	margin: 0 0 12px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.pseo-directory-root .pseo-proscons__col--pros h3 {
	color: var(--pseo-success);
}

.pseo-directory-root .pseo-proscons__col--cons h3 {
	color: var(--pseo-danger);
}

.pseo-directory-root .pseo-proscons ul {
	display: grid;
	gap: 10px;
}

.pseo-directory-root .pseo-proscons li {
	position: relative;
	padding-left: 20px;
	font-size: 0.9375rem;
	line-height: 1.55;
}

.pseo-directory-root .pseo-proscons li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.62em;
	width: 6px;
	height: 6px;
	border-radius: 0;
	background: var(--pseo-border-strong);
}

.pseo-directory-root .pseo-proscons__col--pros li::before {
	background: var(--pseo-success);
}

.pseo-directory-root .pseo-proscons__col--cons li::before {
	background: var(--pseo-danger);
}

.pseo-directory-root .pseo-checklist {
	display: grid;
	gap: 10px;
}

.pseo-directory-root .pseo-checklist li {
	position: relative;
	padding-left: 26px;
	line-height: 1.55;
}

.pseo-directory-root .pseo-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.4em;
	width: 14px;
	height: 8px;
	border-left: 2px solid var(--pseo-accent);
	border-bottom: 2px solid var(--pseo-accent);
	transform: rotate(-45deg);
}

/* Founder -------------------------------------------------------------- */

.pseo-directory-root .pseo-founder {
	border: 1px solid var(--pseo-border);
	border-radius: var(--pseo-radius);
	padding: 20px 22px;
	background: var(--pseo-surface);
}

.pseo-directory-root .pseo-founder__name {
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -0.005em;
}

.pseo-directory-root .pseo-founder__role {
	margin-top: 2px;
	font-size: 0.875rem;
	color: var(--pseo-muted);
}

.pseo-directory-root .pseo-founder__bio {
	margin-top: 12px;
	font-size: 0.9375rem;
	line-height: 1.65;
}

.pseo-directory-root .pseo-founder__link {
	margin-top: 14px;
	font-size: 0.875rem;
	font-weight: 600;
}

.pseo-directory-root .pseo-founder__link a {
	color: var(--pseo-accent);
	text-decoration: none;
}

.pseo-directory-root .pseo-founder__link a:hover {
	text-decoration: underline;
}

/* Buttons -------------------------------------------------------------- */

.pseo-directory-root .pseo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 22px;
	border: 1px solid var(--pseo-border-strong);
	border-radius: var(--pseo-radius-sm);
	background: var(--pseo-surface);
	font-size: 0.9375rem;
	font-weight: 650;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 120ms ease, border-color 120ms ease;
}

.pseo-directory-root .pseo-btn:hover {
	background: var(--pseo-surface-sunken);
}

.pseo-directory-root .pseo-btn--primary {
	background: var(--pseo-accent);
	border-color: var(--pseo-accent);
	color: #fff;
}

.pseo-directory-root .pseo-btn--primary:hover {
	background: var(--pseo-accent-hover);
	border-color: var(--pseo-accent-hover);
	color: #fff;
}

.pseo-directory-root .pseo-btn--block {
	width: 100%;
}

.pseo-directory-root .pseo-btn--sm {
	min-height: 34px;
	padding: 0 14px;
	font-size: 0.8125rem;
}

.pseo-directory-root .pseo-btn[disabled] {
	opacity: 0.6;
	pointer-events: none;
}

/* Chips and badges ----------------------------------------------------- */

.pseo-directory-root .pseo-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.pseo-directory-root .pseo-chip {
	display: inline-flex;
	align-items: center;
	padding: 3px 11px;
	border: 1px solid var(--pseo-border);
	border-radius: 0;
	background: var(--pseo-surface);
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--pseo-muted);
	text-decoration: none;
	white-space: nowrap;
}

.pseo-directory-root a.pseo-chip:hover {
	border-color: var(--pseo-border-strong);
	color: inherit;
}

.pseo-directory-root .pseo-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 9px;
	border-radius: 0;
	background: var(--pseo-surface-sunken);
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--pseo-muted);
}

.pseo-directory-root .pseo-badge--yes,
.pseo-directory-root .pseo-badge--success {
	background: var(--pseo-success-soft);
	color: var(--pseo-success);
}

.pseo-directory-root .pseo-badge--accent {
	background: var(--pseo-accent-soft);
	color: var(--pseo-accent);
}

.pseo-directory-root .pseo-badge--danger {
	background: var(--pseo-danger-soft);
	color: var(--pseo-danger);
}

/* Cards ---------------------------------------------------------------- */

.pseo-directory-root .pseo-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.pseo-directory-root .pseo-cards--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pseo-directory-root .pseo-cards--list {
	grid-template-columns: minmax(0, 1fr);
}

.pseo-directory-root .pseo-cards > li {
	display: flex;
}

.pseo-directory-root .pseo-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	border: 1px solid var(--pseo-border);
	border-radius: 0;
	background: var(--pseo-surface);
	overflow: hidden;
	transition: border-color 120ms ease, box-shadow 120ms ease;
}

.pseo-directory-root .pseo-card:hover {
	border-color: var(--pseo-border-strong);
	box-shadow: 0 2px 10px rgba(16, 18, 24, 0.05);
}

/* Full-bleed image band: square so a square logo fills the card width edge to
   edge, and a wider source is centre-cropped rather than letterboxed. */
.pseo-directory-root .pseo-card__media {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: var(--pseo-surface-sunken);
	border-bottom: 1px solid var(--pseo-border);
}

.pseo-directory-root .pseo-card__logo {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 0;
	background: transparent;
	overflow: hidden;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--pseo-muted);
}

.pseo-directory-root .pseo-card__logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	padding: 0;
	display: block;
}

.pseo-directory-root .pseo-card__title {
	margin: 0;
	padding: 16px 18px;
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.35;
	letter-spacing: -0.005em;
	overflow-wrap: anywhere;
}

.pseo-directory-root .pseo-card__title a {
	text-decoration: none;
}

.pseo-directory-root .pseo-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* Thin divider spanning the full card width, then the action. */
.pseo-directory-root .pseo-card__link {
	position: relative;
	z-index: 1;
	display: block;
	margin-top: auto;
	padding: 13px 18px;
	border-top: 1px solid var(--pseo-border);
	font-size: 0.8125rem;
	font-weight: 650;
	color: var(--pseo-accent);
	text-decoration: none;
}

.pseo-directory-root .pseo-card__link:hover {
	background: var(--pseo-surface-sunken);
	text-decoration: underline;
}

/* Archive -------------------------------------------------------------- */

.pseo-directory-root .pseo-archive__header {
	padding: 40px 0 24px;
	border-bottom: 1px solid var(--pseo-border);
	margin-bottom: 28px;
}

.pseo-directory-root .pseo-archive__title {
	font-size: clamp(1.85rem, 1.3rem + 2vw, 2.5rem);
	line-height: 1.1;
	letter-spacing: -0.03em;
	font-weight: 700;
}

.pseo-directory-root .pseo-archive__intro {
	margin-top: 10px;
	font-size: 1.0625rem;
	color: var(--pseo-muted);
	max-width: 70ch;
}

.pseo-directory-root .pseo-archive__count {
	margin-top: 14px;
	font-size: 0.875rem;
	color: var(--pseo-muted);
	font-variant-numeric: tabular-nums;
}

.pseo-directory-root .pseo-directory-layout {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	padding-bottom: 64px;
}

.pseo-directory-root .pseo-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.pseo-directory-root .pseo-search {
	position: relative;
	flex: 1 1 280px;
	max-width: 460px;
}

.pseo-directory-root .pseo-search input[type="search"] {
	width: 100%;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--pseo-border-strong);
	border-radius: var(--pseo-radius-sm);
	background: var(--pseo-surface);
	font: inherit;
	font-size: 0.9375rem;
}

.pseo-directory-root .pseo-suggestions {
	position: absolute;
	z-index: 20;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	padding: 6px;
	background: var(--pseo-surface);
	border: 1px solid var(--pseo-border);
	border-radius: var(--pseo-radius-sm);
	box-shadow: 0 8px 24px rgba(16, 18, 24, 0.08);
	max-height: 340px;
	overflow-y: auto;
}

.pseo-directory-root .pseo-suggestions:empty {
	display: none;
}

.pseo-directory-root .pseo-suggestion a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 0;
	text-decoration: none;
	font-size: 0.875rem;
}

.pseo-directory-root .pseo-suggestion a:hover,
.pseo-directory-root .pseo-suggestion a:focus {
	background: var(--pseo-surface-sunken);
}

.pseo-directory-root .pseo-suggestion__type {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--pseo-muted);
	white-space: nowrap;
}

.pseo-directory-root .pseo-sort {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	color: var(--pseo-muted);
}

.pseo-directory-root .pseo-sort select {
	min-height: 40px;
	padding: 0 10px;
	border: 1px solid var(--pseo-border-strong);
	border-radius: var(--pseo-radius-sm);
	background: var(--pseo-surface);
	font: inherit;
	font-size: 0.875rem;
}

/* Filters -------------------------------------------------------------- */

.pseo-directory-root .pseo-filters {
	border: 1px solid var(--pseo-border);
	border-radius: var(--pseo-radius);
	background: var(--pseo-surface);
	padding: 4px 18px 18px;
	position: sticky;
	top: 24px;
}

.pseo-directory-root .pseo-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 14px 0 18px;
}

.pseo-directory-root .pseo-filters__title {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--pseo-muted);
}

.pseo-directory-root .pseo-filter-group {
	border: 0;
	padding: 0;
	margin: 0 0 22px;
}

.pseo-directory-root .pseo-filter-group:last-of-type {
	margin-bottom: 0;
}

.pseo-directory-root .pseo-filter-group__title {
	margin: 0 0 10px;
	padding: 0;
	font-size: 0.875rem;
	font-weight: 700;
}

.pseo-directory-root .pseo-filter-options {
	display: grid;
	gap: 8px;
	max-height: 260px;
	overflow-y: auto;
}

.pseo-directory-root .pseo-filter-option {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.875rem;
	line-height: 1.4;
	cursor: pointer;
}

.pseo-directory-root .pseo-filter-option input {
	flex: 0 0 auto;
	margin: 0;
}

.pseo-directory-root .pseo-filter-option__count {
	margin-left: auto;
	font-size: 0.75rem;
	color: var(--pseo-muted);
	font-variant-numeric: tabular-nums;
}

.pseo-directory-root .pseo-filter-range {
	display: flex;
	gap: 8px;
}

.pseo-directory-root .pseo-filter-range input {
	width: 100%;
	min-height: 36px;
	padding: 0 10px;
	border: 1px solid var(--pseo-border-strong);
	border-radius: var(--pseo-radius-sm);
	font: inherit;
	font-size: 0.875rem;
}

.pseo-directory-root .pseo-filters__actions {
	display: flex;
	gap: 8px;
	padding-top: 18px;
	margin-top: 4px;
}

.pseo-directory-root .pseo-filters-toggle {
	display: none;
}

.pseo-directory-root .pseo-active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

/* Results -------------------------------------------------------------- */

.pseo-directory-root .pseo-results {
	min-height: 200px;
}

.pseo-directory-root .pseo-results.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.pseo-directory-root .pseo-empty-state {
	padding: 56px 24px;
	text-align: center;
	border: 1px dashed var(--pseo-border-strong);
	border-radius: var(--pseo-radius);
	color: var(--pseo-muted);
}

.pseo-directory-root .pseo-empty-state h2 {
	margin-bottom: 8px;
	font-size: 1.125rem;
}

.pseo-directory-root .pseo-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-top: 32px;
}

.pseo-directory-root .pseo-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	min-height: 38px;
	padding: 0 10px;
	border: 1px solid var(--pseo-border);
	border-radius: var(--pseo-radius-sm);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
}

.pseo-directory-root .pseo-pagination .page-numbers.current {
	background: var(--pseo-accent);
	border-color: var(--pseo-accent);
	color: #fff;
}

/* Forms ---------------------------------------------------------------- */

.pseo-directory-root .pseo-form {
	display: grid;
	gap: 20px;
	max-width: 720px;
}

.pseo-directory-root .pseo-form__field label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.875rem;
	font-weight: 650;
}

.pseo-directory-root .pseo-form__field input[type="text"],
.pseo-directory-root .pseo-form__field input[type="url"],
.pseo-directory-root .pseo-form__field input[type="email"],
.pseo-directory-root .pseo-form__field input[type="number"],
.pseo-directory-root .pseo-form__field input[type="date"],
.pseo-directory-root .pseo-form__field input[type="file"],
.pseo-directory-root .pseo-form__field select,
.pseo-directory-root .pseo-form__field textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--pseo-border-strong);
	border-radius: var(--pseo-radius-sm);
	background: var(--pseo-surface);
	font: inherit;
	font-size: 0.9375rem;
}

.pseo-directory-root .pseo-form__field textarea {
	min-height: 140px;
	resize: vertical;
}

.pseo-directory-root .pseo-form__field fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

.pseo-directory-root .pseo-form__field legend {
	padding: 0;
	margin-bottom: 6px;
	font-size: 0.875rem;
	font-weight: 650;
}

.pseo-directory-root .pseo-form__hint {
	margin-top: 6px;
	font-size: 0.8125rem;
	color: var(--pseo-muted);
}

.pseo-directory-root .pseo-form__error {
	margin-top: 6px;
	font-size: 0.8125rem;
	color: var(--pseo-danger);
}

.pseo-directory-root .pseo-form__options {
	display: grid;
	gap: 8px;
}

.pseo-directory-root .pseo-form__option {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.9375rem;
	font-weight: 400;
}

.pseo-directory-root .pseo-form__required {
	color: var(--pseo-danger);
}

.pseo-directory-root .pseo-honeypot {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0;
	height: 0;
	overflow: hidden;
}

.pseo-directory-root .pseo-alert {
	padding: 14px 16px;
	border: 1px solid var(--pseo-border);
	border-left-width: 3px;
	border-radius: var(--pseo-radius-sm);
	margin-bottom: 20px;
}

.pseo-directory-root .pseo-alert--success {
	border-left-color: var(--pseo-success);
	background: var(--pseo-success-soft);
}

.pseo-directory-root .pseo-alert--error {
	border-left-color: var(--pseo-danger);
	background: var(--pseo-danger-soft);
}

.pseo-directory-root .pseo-alert--info {
	border-left-color: var(--pseo-accent);
	background: var(--pseo-accent-soft);
}

/* Tables (user dashboard) ---------------------------------------------- */

.pseo-directory-root .pseo-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.pseo-directory-root .pseo-table th,
.pseo-directory-root .pseo-table td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid var(--pseo-border);
}

.pseo-directory-root .pseo-table thead th {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--pseo-muted);
}

.pseo-directory-root .pseo-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--pseo-border);
	border-radius: var(--pseo-radius);
}

.pseo-directory-root .pseo-dashboard__tabs {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid var(--pseo-border);
	margin-bottom: 24px;
}

.pseo-directory-root .pseo-dashboard__tab {
	padding: 10px 14px;
	border-bottom: 2px solid transparent;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--pseo-muted);
}

.pseo-directory-root .pseo-dashboard__tab.is-active {
	color: var(--pseo-accent);
	border-bottom-color: var(--pseo-accent);
}

/* Share and footer ----------------------------------------------------- */

.pseo-directory-root .pseo-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 0.8125rem;
	color: var(--pseo-muted);
}

.pseo-directory-root .pseo-share a,
.pseo-directory-root .pseo-share button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--pseo-border);
	border-radius: 0;
	background: var(--pseo-surface);
	font: inherit;
	font-size: 0.8125rem;
	text-decoration: none;
	cursor: pointer;
}

.pseo-directory-root .pseo-updated {
	margin-top: 40px;
	padding-top: 24px;
	font-size: 0.8125rem;
	color: var(--pseo-muted);
	border-top: 1px solid var(--pseo-border);
}

/* Responsive ----------------------------------------------------------- */

@media (max-width: 1080px) {
	.pseo-directory-root .pseo-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.pseo-directory-root .pseo-listing__body {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.pseo-directory-root .pseo-listing__aside {
		position: static;
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	}
}

@media (max-width: 860px) {
	.pseo-directory-root .pseo-directory-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.pseo-directory-root .pseo-filters {
		position: static;
	}

	.pseo-directory-root .pseo-filters-toggle {
		display: inline-flex;
	}

	.pseo-directory-root .pseo-filters.is-collapsed .pseo-filter-group,
	.pseo-directory-root .pseo-filters.is-collapsed .pseo-filters__actions {
		display: none;
	}

	.pseo-directory-root .pseo-cards,
	.pseo-directory-root .pseo-cards--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pseo-directory-root .pseo-features,
	.pseo-directory-root .pseo-proscons {
		grid-template-columns: minmax(0, 1fr);
	}

	.pseo-directory-root .pseo-statbar__item {
		border-right: 0;
		border-bottom: 1px solid var(--pseo-border);
	}

	.pseo-directory-root .pseo-statbar__item:last-child {
		border-bottom: 0;
	}
}

@media (max-width: 560px) {
	.pseo-directory-root .pseo-cards,
	.pseo-directory-root .pseo-cards--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.pseo-directory-root .pseo-card__title {
		padding: 12px 14px;
		font-size: 0.9375rem;
	}

	.pseo-directory-root .pseo-card__link {
		padding: 11px 14px;
	}


	.pseo-directory-root .pseo-logo {
		width: 56px;
		height: 56px;
	}

	.pseo-directory-root .pseo-hero__identity {
		gap: 14px;
	}

	.pseo-directory-root .pseo-hero__actions,
	.pseo-directory-root .pseo-hero__actions .pseo-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pseo-directory-root * {
		transition: none !important;
	}
}
