/**
 * IT Ecosystem Frontend Styles
 * Theme-agnostic professional directory design
 */

/* ===== CSS Custom Properties ===== */
:root {
    --eco-primary: #2563eb;
    --eco-primary-dark: #1d4ed8;
    --eco-primary-light: #dbeafe;
    --eco-secondary: #059669;
    --eco-secondary-light: #d1fae5;
    --eco-accent: #dc2626;
    --eco-accent-light: #fee2e2;
    --eco-gray-50: #f9fafb;
    --eco-gray-100: #f3f4f6;
    --eco-gray-200: #e5e7eb;
    --eco-gray-300: #d1d5db;
    --eco-gray-400: #9ca3af;
    --eco-gray-500: #6b7280;
    --eco-gray-600: #4b5563;
    --eco-gray-700: #374151;
    --eco-gray-800: #1f2937;
    --eco-gray-900: #111827;
    --eco-radius: 8px;
    --eco-radius-sm: 4px;
    --eco-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --eco-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --eco-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --eco-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ===== Theme Override — force white background ===== */
body.ecosystem-page {
    background: #fff !important;
    overflow-x: hidden !important;
}

body.ecosystem-page .site {
    background: #fff !important;
}

/* Override ALL theme width constraints */
body.ecosystem-page .site-main,
body.ecosystem-page .entry-content,
body.ecosystem-page .site-content,
body.ecosystem-page main,
body.ecosystem-page article,
body.ecosystem-page .default-max-width,
body.ecosystem-page .alignwide,
body.ecosystem-page .content-area {
    background: #fff !important;
    max-width: none !important;
}

/* ===== Force parent containers to full width when our content is present ===== */
/* This targets the theme wrappers ABOVE .eco-wrap */
.eco-wrap,
.eco-graph-fullscreen,
.eco-landing-wrap {
    /* Break out of any theme max-width */
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Force all ancestors to release width constraints */
:has(> .eco-wrap),
:has(> .eco-graph-fullscreen),
:has(> .eco-landing-wrap) {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ===== Layout Reset & Base ===== */
.eco-wrap {
    font-family: var(--eco-font);
    color: var(--eco-gray-800);
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    box-sizing: border-box;
    background: #fff;
}

.eco-wrap *,
.eco-wrap *::before,
.eco-wrap *::after {
    box-sizing: border-box;
}

.eco-wrap a {
    color: var(--eco-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.eco-wrap a:hover {
    color: var(--eco-primary-dark);
}

/* ===== Single Page Layout ===== */
.eco-single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}

.eco-main-content {
    min-width: 0;
}

/* ===== Hero Section ===== */
.eco-hero {
    padding: 2.5rem 2rem 2rem;
    width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--eco-gray-200);
}

.eco-hero-vendor {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
    color: #fff;
}

.eco-hero-company {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
    color: #fff;
}

.eco-hero .eco-breadcrumbs {
    margin-bottom: 1rem;
}

.eco-hero .eco-breadcrumbs,
.eco-hero .eco-breadcrumbs a,
.eco-hero .eco-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.6);
}

.eco-hero .eco-breadcrumbs a:hover {
    color: #fff;
}

.eco-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff !important;
    margin: 0 0 0.75rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* "Карта связей" CTA — solid pill, readable on light or dark hero. */
.eco-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.7rem 1.4rem;
    background: var(--eco-primary);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.eco-hero-cta:hover {
    background: var(--eco-primary-dark);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}
.eco-hero-cta-icon {
    font-size: 1.05em;
    line-height: 1;
}

.eco-hero .eco-badges {
    margin-bottom: 1rem;
}

.eco-hero .eco-badge-industry {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

.eco-hero .eco-badge-industry:hover {
    background: rgba(255, 255, 255, 0.25);
}

.eco-hero .eco-badge-role {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.eco-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.eco-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255, 255, 255, 0.85);
}

.eco-hero-meta-item a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 2px;
}

.eco-hero-meta-item a:hover {
    color: #fff;
    text-decoration-color: #fff;
}

.eco-hero-stat {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.375rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.eco-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.eco-hero-stat-item {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
}

.eco-hero-stat-item strong {
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
}

/* ===== Breadcrumbs ===== */
.eco-breadcrumbs {
    font-size: 0.875rem;
    color: var(--eco-gray-500);
    margin-bottom: 1.5rem;
    padding: 0;
}

.eco-breadcrumbs a {
    color: var(--eco-gray-500);
}

.eco-breadcrumbs a:hover {
    color: var(--eco-primary);
}

.eco-breadcrumbs .eco-breadcrumb-sep {
    margin: 0 0.5rem;
    color: var(--eco-gray-300);
}

/* ===== Page Header ===== */
.eco-page-header {
    margin-bottom: 2rem;
}

.eco-page-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--eco-gray-900);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.eco-page-subtitle {
    font-size: 1.125rem;
    color: var(--eco-gray-500);
    margin: 0 0 1rem;
}

/* ===== Badges ===== */
.eco-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.eco-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    line-height: 1.5;
    white-space: nowrap;
}

.eco-badge-industry {
    background: var(--eco-primary-light);
    color: var(--eco-primary-dark);
}

.eco-badge-role {
    background: var(--eco-secondary-light);
    color: #065f46;
}

/* Role-specific badge colors */
.eco-badge-role-vad-international {
    background: #fef3c7;
    color: #92400e;
}

.eco-badge-role-local-distributor {
    background: #dbeafe;
    color: #1e40af;
}

.eco-badge-role-system-integrator {
    background: #ede9fe;
    color: #5b21b6;
}

.eco-badge-role-government-operator {
    background: #fce7f3;
    color: #9d174d;
}

.eco-badge-role-retailer-b2c {
    background: #d1fae5;
    color: #065f46;
}

.eco-badge-role-service-center {
    background: #fee2e2;
    color: #991b1b;
}

.eco-badge-role-vendor-office {
    background: #e0e7ff;
    color: #3730a3;
}

.eco-badge-role-erp-crm-integrator {
    background: #fef9c3;
    color: #854d0e;
}

.eco-badge-role-niche-player {
    background: #f3e8ff;
    color: #6b21a8;
}

/* Partner status badges — notes can be long (e.g. "PLATINUM — единств. в
 * СНГ"), so let them wrap to multiple lines instead of clipping, especially
 * on narrow screens. */
.eco-badge-partner {
    padding: 0.2rem 0.6rem;
    border-radius: var(--eco-radius-sm);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: normal;
    text-align: left;
}

.eco-badge-platinum {
    background: linear-gradient(135deg, #e8e8e8, #c0c0c0);
    color: #333;
}

.eco-badge-gold {
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    color: #78350f;
}

.eco-badge-silver {
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    color: #374151;
}

.eco-badge-vad {
    background: linear-gradient(135deg, #bfdbfe, #3b82f6);
    color: #1e3a5f;
}

.eco-badge-default {
    background: var(--eco-gray-100);
    color: var(--eco-gray-700);
}

/* ===== Meta Info Row ===== */
.eco-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--eco-gray-200);
    border-bottom: 1px solid var(--eco-gray-200);
}

.eco-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--eco-gray-600);
}

.eco-meta-icon {
    font-size: 1.125rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.eco-meta-item a {
    color: var(--eco-primary);
    font-weight: 500;
}

/* ===== Content Area ===== */
.eco-content {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--eco-gray-700);
    margin-bottom: 2rem;
}

.eco-content p {
    margin-bottom: 1rem;
}

.eco-content h2,
.eco-content h3,
.eco-content h4 {
    color: var(--eco-gray-900);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* ===== Section Headers ===== */
.eco-section {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.eco-section-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--eco-gray-900);
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--eco-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.eco-section-title .eco-section-icon {
    font-size: 1.25rem;
}

.eco-section-count {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--eco-gray-400);
    margin-left: 0.5rem;
}

/* ===== Partners / Relationships List ===== */
.eco-partner-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eco-partner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 11px 12px;
    border-bottom: 1px solid var(--eco-gray-200);
    box-shadow: inset 3px 0 0 transparent;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

/* Same hover language as the landing tiles and the company catalog groups:
 * a soft background plus a red inset bar on the left edge. */
.eco-partner-item:hover {
    background: var(--eco-gray-50);
    box-shadow: inset 3px 0 0 var(--pp-red, #dd3333);
}

.eco-partner-name {
    font-weight: 600;
    color: var(--eco-gray-800);
    font-size: 0.9375rem;
}

.eco-partner-name a {
    color: var(--eco-gray-800);
}

.eco-partner-name a:hover {
    color: var(--eco-primary);
}

/* Optional muted secondary line under a relation-row name (e.g. a
 * distributor's site · phone in "Where to buy"). */
.eco-partner-sub {
    display: block;
    font-weight: 400;
    font-size: 12px;
    color: var(--eco-gray-500);
    margin-top: 2px;
}

/* Inline empty-state note used inside a section when a relation list has
 * no entries yet. */
.eco-empty-inline {
    color: var(--eco-gray-500);
    font-size: 14px;
    padding: 2px 0;
}

.eco-partner-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.375rem 0.5rem;
}

.eco-partner-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

/* ===== Contact Info Block ===== */
.eco-contact-block {
    background: var(--eco-gray-50);
    border: 1px solid var(--eco-gray-200);
    border-radius: var(--eco-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.eco-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.eco-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.eco-contact-icon {
    font-size: 1.25rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--eco-primary-light);
    color: var(--eco-primary);
    border-radius: 50%;
    flex-shrink: 0;
    font-style: normal;
}

.eco-contact-detail {
    min-width: 0;
}

.eco-contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--eco-gray-400);
    margin-bottom: 0.125rem;
}

.eco-contact-value {
    font-size: 0.9375rem;
    color: var(--eco-gray-800);
    word-break: break-word;
}

.eco-contact-value a {
    color: var(--eco-primary);
    font-weight: 500;
}

/* ===== Stats Row ===== */
.eco-stats-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.eco-stat {
    flex: 1;
    text-align: center;
    padding: 1.25rem;
    background: var(--eco-gray-50);
    border: 1px solid var(--eco-gray-200);
    border-radius: var(--eco-radius);
}

.eco-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--eco-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.eco-stat-label {
    font-size: 0.8125rem;
    color: var(--eco-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== Sidebar ===== */
.eco-sidebar {
    position: sticky;
    top: 2rem;
}

.eco-sidebar-card {
    background: #fff;
    border: 1px solid var(--eco-gray-200);
    border-radius: var(--eco-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--eco-shadow);
}

.eco-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--eco-gray-900);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--eco-primary);
}

.eco-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eco-sidebar-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--eco-gray-100);
    font-size: 0.9375rem;
}

.eco-sidebar-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.eco-sidebar-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--eco-gray-400);
    display: block;
    margin-bottom: 0.25rem;
}

.eco-sidebar-value {
    color: var(--eco-gray-800);
    font-weight: 500;
}

.eco-sidebar-value a {
    color: var(--eco-primary);
}

/* AZ Partner badge in sidebar */
.eco-az-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--eco-secondary-light);
    color: var(--eco-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: var(--eco-radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ===== Brands List ===== */
.eco-brands-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.eco-brands-list li {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: var(--eco-gray-50);
    border: 1px solid var(--eco-gray-200);
    border-radius: var(--eco-radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--eco-gray-700);
    transition: all 0.2s;
}

.eco-brands-list li:hover {
    background: var(--eco-primary-light);
    border-color: var(--eco-primary);
    color: var(--eco-primary-dark);
}

/* ===== Info Cards (Leadership, Certifications) ===== */
.eco-info-card {
    background: var(--eco-gray-50);
    border: 1px solid var(--eco-gray-200);
    border-left: 4px solid var(--eco-primary);
    border-radius: 0 var(--eco-radius) var(--eco-radius) 0;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--eco-gray-700);
}

.eco-info-card p {
    margin: 0;
}

/* ===== Sources / Footnotes ===== */
.eco-sources {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--eco-gray-200);
}

.eco-sources-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--eco-gray-400);
    margin: 0 0 0.75rem;
}

.eco-sources-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8125rem;
    color: var(--eco-gray-500);
}

.eco-sources-list li {
    padding: 0.375rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.eco-sources-list li::before {
    content: attr(data-index);
    position: absolute;
    left: 0;
    color: var(--eco-gray-400);
    font-size: 0.75rem;
    font-weight: 600;
}

.eco-sources-list a {
    color: var(--eco-gray-500);
    word-break: break-all;
}

.eco-sources-list a:hover {
    color: var(--eco-primary);
}

/* ===== Archive Page ===== */
.eco-archive-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.eco-archive-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--eco-gray-900);
    margin: 0 0 0.5rem;
}

.eco-archive-count {
    font-size: 1rem;
    color: var(--eco-gray-500);
}

/* ===== Filter Bar ===== */
.eco-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--eco-gray-50);
    border: 1px solid var(--eco-gray-200);
    border-radius: var(--eco-radius);
}

.eco-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid var(--eco-gray-300);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--eco-gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: var(--eco-font);
}

.eco-filter-btn:hover {
    border-color: var(--eco-primary);
    color: var(--eco-primary);
    background: var(--eco-primary-light);
}

.eco-filter-btn.active {
    background: var(--eco-primary);
    border-color: var(--eco-primary);
    color: #fff;
}

.eco-filter-btn .eco-filter-count {
    margin-left: 0.375rem;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Legacy archive/taxonomy card grid (.eco-grid / .eco-card*) removed —
 * all entity listings now use the compact .eco-termlist index. */

/* ===== Pagination ===== */
.eco-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--eco-gray-200);
}

.eco-pagination a,
.eco-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--eco-gray-300);
    border-radius: var(--eco-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--eco-gray-600);
    text-decoration: none;
    transition: all 0.2s;
}

.eco-pagination a:hover {
    background: var(--eco-primary-light);
    border-color: var(--eco-primary);
    color: var(--eco-primary);
}

.eco-pagination .current {
    background: var(--eco-primary);
    border-color: var(--eco-primary);
    color: #fff;
}

/* ===== Featured Image ===== */
.eco-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--eco-radius);
    overflow: hidden;
}

.eco-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== Empty State ===== */
.eco-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--eco-gray-400);
}

.eco-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.eco-empty-text {
    font-size: 1.125rem;
    margin: 0;
}

/* ===== Tables ===== */
.eco-table-wrap {
    overflow-x: auto;
}

.eco-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.eco-table th,
.eco-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--eco-gray-200);
}

.eco-table th {
    background: var(--eco-gray-50);
    font-weight: 600;
    color: var(--eco-gray-700);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.eco-table tbody tr:nth-child(even) {
    background: var(--eco-gray-50);
}

.eco-table tbody tr:hover {
    background: var(--eco-primary-light);
}

/* ===== Reverse Map Table ===== */
.eco-reverse-map-table td.eco-reverse-map-vendor {
    font-weight: 600;
    white-space: nowrap;
    width: 220px;
    vertical-align: top;
}

.eco-reverse-map-table td.eco-reverse-map-vendor a {
    color: var(--eco-gray-800);
}

.eco-reverse-map-table td.eco-reverse-map-vendor a:hover {
    color: var(--eco-primary);
}

.eco-reverse-map-companies {
    line-height: 1.8;
}

.eco-reverse-map-company a {
    color: var(--eco-primary);
    font-weight: 500;
}

.eco-reverse-map-note {
    display: inline-block;
    background: var(--eco-gray-100);
    color: var(--eco-gray-600);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: var(--eco-radius-sm);
    margin-left: 0.25rem;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.eco-reverse-map-empty {
    color: var(--eco-gray-400);
}

/* ===== Taxonomy Archive ===== */
.eco-taxonomy-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: #fff;
    text-align: center;
    padding: 3rem 2rem 2.5rem;
    width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 2rem;
}

.eco-taxonomy-hero .eco-hero-title {
    font-size: 2.25rem;
}

.eco-taxonomy-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.0625rem;
    max-width: 640px;
    margin: 0.75rem auto 0;
    line-height: 1.6;
}

/* ===== Loading State ===== */
.eco-loading {
    position: relative;
    min-height: 200px;
}

.eco-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid var(--eco-gray-200);
    border-top: 3px solid var(--eco-primary);
    border-radius: 50%;
    animation: eco-spin 0.8s linear infinite;
}

@keyframes eco-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .eco-single-layout {
        grid-template-columns: 1fr 280px;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .eco-wrap {
        padding: 1rem;
    }

    .eco-single-layout {
        grid-template-columns: 1fr;
    }

    .eco-sidebar {
        position: static;
    }

    .eco-hero {
        padding: 1.5rem 1rem 1.25rem;
        margin: 0 -1rem 1.5rem;
    }

    .eco-hero-title {
        font-size: 1.75rem;
    }

    .eco-hero-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .eco-hero-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .eco-page-header h1 {
        font-size: 1.75rem;
    }

    .eco-meta-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .eco-contact-grid {
        grid-template-columns: 1fr;
    }

    .eco-stats-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .eco-partner-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .eco-archive-header h1 {
        font-size: 1.75rem;
    }

    .eco-filter-bar {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .eco-page-header h1 {
        font-size: 1.5rem;
    }

    .eco-section-title {
        font-size: 1.125rem;
    }
}

/* ===== Graph ===== */

/* Break out of theme container */
.eco-graph-fullscreen {
    max-width: none !important;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0 1rem;
    box-sizing: border-box;
}

.eco-graph-fullscreen #eco-graph-container {
    height: calc(100vh - 180px) !important;
    min-height: 500px;
    border-radius: 12px !important;
}

/* Fullscreen overlay mode */
.eco-graph-fullscreen.is-fullscreen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    background: #0f172a;
    margin: 0; padding: 0;
    width: 100%; height: 100%;
}

.eco-graph-fullscreen.is-fullscreen #eco-graph-container {
    height: 100vh !important;
    border-radius: 0 !important;
    margin: 0;
}

.eco-graph-fullscreen.is-fullscreen .eco-graph-controls {
    position: absolute;
    top: 1rem; left: 1rem;
    z-index: 100;
    background: rgba(15, 23, 42, 0.85);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
}

.eco-graph-fullscreen.is-fullscreen .eco-filter-btn {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

.eco-graph-fullscreen.is-fullscreen .eco-filter-btn:hover,
.eco-graph-fullscreen.is-fullscreen .eco-filter-btn.active {
    background: var(--eco-primary);
    border-color: var(--eco-primary);
}

.eco-graph-fullscreen.is-fullscreen .eco-graph-stats {
    color: rgba(255,255,255,0.6);
}

.eco-graph-controls { display:flex; gap:0.75rem; align-items:center; margin-bottom:0.75rem; flex-wrap:wrap; padding: 0.25rem 0; }
.eco-graph-stats { color:var(--eco-gray-500); font-size:0.875rem; margin-left:auto; }
.eco-graph-tooltip { position:fixed; background:#1e293b; color:#fff; padding:1rem 1.25rem; border-radius:8px; font-size:0.875rem; box-shadow:0 10px 25px rgba(0,0,0,0.3); z-index:1000; pointer-events:none; max-width:300px; }
.eco-graph-tooltip h4 { margin:0 0 0.5rem; font-size:1rem; }
.eco-graph-tooltip .eco-tooltip-type { display:inline-block; padding:0.125rem 0.5rem; border-radius:4px; font-size:0.75rem; font-weight:600; text-transform:uppercase; margin-bottom:0.5rem; }
.eco-graph-tooltip .eco-tooltip-link { color:#60a5fa; text-decoration:underline; display:block; margin-top:0.5rem; pointer-events:auto; }
.eco-graph-legend { position:absolute; top:1rem; right:1rem; background:rgba(15,23,42,0.9); padding:1rem; border-radius:8px; border:1px solid rgba(255,255,255,0.1); }
.eco-graph-legend-item { display:flex; align-items:center; gap:0.5rem; color:rgba(255,255,255,0.8); font-size:0.8125rem; margin-bottom:0.375rem; }
.eco-graph-legend-item:last-child { margin-bottom:0; }
.eco-graph-legend-dot { width:12px; height:12px; border-radius:50%; flex-shrink:0; }

/* ===== Landing Page ===== */
.eco-landing-wrap {
    max-width: 1200px;
    padding-bottom: 3rem;
}

/* Hero */
.eco-landing-hero {
    background: linear-gradient(135deg, #0a0f1c 0%, #0f1b3d 40%, #1e3a8a 100%);
    color: #fff;
    text-align: center;
    padding: 4rem 2rem 3.5rem;
    width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 2.5rem;
}

.eco-landing-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 1rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff !important;
}

.eco-landing-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 640px;
    margin: 0 auto 1.75rem;
    line-height: 1.6;
}

.eco-landing-hero-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.eco-landing-hero-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
}

.eco-landing-hero-stat-pill strong {
    font-weight: 700;
    font-size: 1.125rem;
    color: #fff;
}

.eco-landing-hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* CTA Buttons */
.eco-landing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: var(--eco-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.eco-landing-cta-primary {
    background: #fff;
    color: var(--eco-primary-dark);
}

.eco-landing-cta-primary:hover {
    background: var(--eco-primary-light);
    color: var(--eco-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.eco-landing-cta-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.eco-landing-cta-secondary:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Stats Bar */
.eco-landing-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.eco-landing-stat-card {
    background: #fff;
    border: 1px solid var(--eco-gray-200);
    border-radius: var(--eco-radius);
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: var(--eco-shadow);
    transition: all 0.2s ease;
}

.eco-landing-stat-card:hover {
    box-shadow: var(--eco-shadow-md);
    transform: translateY(-2px);
}

.eco-landing-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--eco-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.eco-landing-stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--eco-gray-500);
}

/* Section wrapper */
.eco-landing-section {
    margin-bottom: 3rem;
}

.eco-landing-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--eco-gray-900);
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--eco-primary);
}

/* 4-column grid */
.eco-landing-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

/* 3-column grid */
.eco-landing-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Vendor cards */
.eco-landing-vendor-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--eco-gray-200);
    border-radius: var(--eco-radius);
    padding: 1.25rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.eco-landing-vendor-card:hover {
    box-shadow: var(--eco-shadow-lg);
    transform: translateY(-4px);
    border-color: var(--eco-primary);
    color: inherit;
}

.eco-landing-vendor-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--eco-gray-900);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.eco-landing-vendor-count {
    display: inline-block;
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--eco-primary);
}

/* View All link */
.eco-landing-view-all {
    text-align: center;
    margin-top: 1.5rem;
}

.eco-landing-view-all-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--eco-primary);
    text-decoration: none;
}

.eco-landing-view-all-link:hover {
    color: var(--eco-primary-dark);
    text-decoration: underline;
}

/* Role cards */
.eco-landing-role-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--eco-gray-50);
    border: 1px solid var(--eco-gray-200);
    border-radius: var(--eco-radius);
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.eco-landing-role-card:hover {
    background: #fff;
    box-shadow: var(--eco-shadow-md);
    border-color: var(--eco-secondary);
    transform: translateY(-2px);
    color: inherit;
}

.eco-landing-role-name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--eco-gray-800);
    margin: 0 0 0.5rem;
}

.eco-landing-role-count {
    font-size: 0.875rem;
    color: var(--eco-gray-500);
    font-weight: 500;
}

/* Quick link cards */
.eco-landing-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid var(--eco-gray-200);
    border-radius: var(--eco-radius);
    padding: 2rem 1.5rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.eco-landing-link-card:hover {
    box-shadow: var(--eco-shadow-lg);
    transform: translateY(-4px);
    border-color: var(--eco-primary);
    color: inherit;
}

.eco-landing-link-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.eco-landing-link-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--eco-gray-900);
    margin: 0 0 0.5rem;
}

.eco-landing-link-desc {
    font-size: 0.875rem;
    color: var(--eco-gray-500);
    margin: 0;
    line-height: 1.5;
}

/* Recent list */
.eco-landing-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eco-landing-recent-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--eco-gray-200);
    border-radius: var(--eco-radius);
    margin-bottom: 0.5rem;
    background: #fff;
    transition: all 0.2s ease;
}

.eco-landing-recent-item:hover {
    border-color: var(--eco-primary);
    box-shadow: var(--eco-shadow);
}

.eco-landing-recent-item > a {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--eco-gray-800);
}

.eco-landing-recent-item > a:hover {
    color: var(--eco-primary);
}

.eco-landing-recent-date {
    margin-left: auto;
    font-size: 0.8125rem;
    color: var(--eco-gray-400);
}

/* Landing page responsive */
@media (max-width: 1024px) {
    .eco-landing-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .eco-landing-hero {
        padding: 2.5rem 1rem 2rem;
        margin: 0 -1rem 2rem;
    }

    .eco-landing-hero-title {
        font-size: 2rem;
    }

    .eco-landing-hero-subtitle {
        font-size: 1rem;
    }

    .eco-landing-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .eco-landing-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .eco-landing-grid-3 {
        grid-template-columns: 1fr;
    }

    .eco-landing-stat-number {
        font-size: 2rem;
    }

    .eco-landing-hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .eco-landing-stats {
        grid-template-columns: 1fr;
    }

    .eco-landing-grid-4 {
        grid-template-columns: 1fr;
    }

    .eco-landing-hero-title {
        font-size: 1.75rem;
    }
}

/* ===== FAQ Section ===== */
.eco-faq-list {
    border: 1px solid var(--eco-gray-200);
    border-radius: var(--eco-radius);
    overflow: hidden;
}

.eco-faq-item {
    border-bottom: 1px solid var(--eco-gray-200);
}

.eco-faq-item:last-child {
    border-bottom: none;
}

.eco-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.125rem 1.25rem;
    background: #fff;
    border: none;
    cursor: pointer;
    font-family: var(--eco-font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--eco-gray-800);
    text-align: left;
    transition: background 0.2s;
    gap: 1rem;
}

.eco-faq-question:hover {
    background: var(--eco-gray-50);
}

.eco-faq-open .eco-faq-question {
    background: var(--eco-primary-light);
    color: var(--eco-primary-dark);
}

.eco-faq-toggle {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--eco-primary);
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
    transition: transform 0.2s;
}

.eco-faq-open .eco-faq-toggle {
    transform: rotate(45deg);
}

.eco-faq-answer {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--eco-gray-700);
    background: #fff;
}

.eco-faq-answer p {
    margin: 0;
}

.eco-faq-answer a {
    color: var(--eco-primary);
    font-weight: 500;
}

/* ===== Print Styles ===== */
@media print {
    .eco-sidebar,
    .eco-filter-bar,
    .eco-pagination {
        display: none;
    }

    .eco-single-layout {
        grid-template-columns: 1fr;
    }

    .eco-partner-item:hover {
        box-shadow: none;
    }
}


/* =============================================================== */
/* ===== UNIFIED DESIGN SYSTEM — InfoCity.tech compatible      ==== */
/* ===== Vendor · Company · Product — same look, three CPTs    ==== */
/* ===== Matches Newspaper theme: Roboto + Open Sans + #dd3333 ==== */
/* =============================================================== */
/* Fonts enqueued via wp_enqueue_style in class-templates.php       */

:root {
    --pp-red:       #dd3333;          /* InfoCity brand red */
    --pp-red-dark:  #b41818;
    --pp-red-soft:  #ffe8e8;
    --pp-ink:       #000000;
    --pp-h:         #111111;          /* headline color */
    --pp-text:      #222222;          /* body text */
    --pp-muted:     #767676;
    --pp-paper:     #ffffff;
    --pp-paper-2:   #ffffff;
    --pp-bg-soft:   #f7f7f7;
    --pp-rule:      #222222;          /* hard rule colour matching dark labels */
    --pp-rule-soft: #ededed;
    --pp-rule-mid:  #d4d4d4;
    --pp-sans:    "Roboto", "Open Sans", -apple-system, "Segoe UI", Arial, sans-serif;
    --pp-sans-2:  "Open Sans", "Roboto", -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ----- 1. Base scoping ----- */
body.single-vendor .eco-wrap,
body.single-company .eco-wrap,
body.single-product .eco-wrap {
    font-family: var(--pp-sans);
    color: var(--pp-text);
    background: var(--pp-paper);
    max-width: 1200px;
    padding: 0 1.25rem 3rem;
    font-size: 14px;
    line-height: 21px;
}
body.single-vendor.ecosystem-page,
body.single-company.ecosystem-page,
body.single-product.ecosystem-page,
body.single-vendor.ecosystem-page .site,
body.single-vendor.ecosystem-page .site-main,
body.single-vendor.ecosystem-page .content-area,
body.single-company.ecosystem-page .site,
body.single-company.ecosystem-page .site-main,
body.single-company.ecosystem-page .content-area,
body.single-product.ecosystem-page .site,
body.single-product.ecosystem-page .site-main,
body.single-product.ecosystem-page .content-area {
    background: var(--pp-paper) !important;
}
body.single-vendor .eco-wrap a,
body.single-company .eco-wrap a,
body.single-product .eco-wrap a {
    color: var(--pp-red);
    text-decoration: none;
    transition: color .15s ease;
}
body.single-vendor .eco-wrap a:hover,
body.single-company .eco-wrap a:hover,
body.single-product .eco-wrap a:hover {
    color: var(--pp-red-dark);
}
/* Relationship-list names read as dark editorial titles (accent only on
 * hover) to match the product-catalog list and avoid a loud column of red. */
body.single-vendor .eco-wrap .eco-partner-name a,
body.single-company .eco-wrap .eco-partner-name a,
body.single-product .eco-wrap .eco-partner-name a {
    color: var(--pp-h);
}
body.single-vendor .eco-wrap .eco-partner-name a:hover,
body.single-company .eco-wrap .eco-partner-name a:hover,
body.single-product .eco-wrap .eco-partner-name a:hover {
    color: var(--pp-red);
}

/* ----- 2. HERO — neutral white with red brand accent ----- */
body.single-vendor .eco-hero,
body.single-company .eco-hero,
body.single-product .eco-hero,
body.single-vendor .eco-hero-vendor,
body.single-company .eco-hero-company,
body.single-product .eco-hero-product {
    background: var(--pp-paper) !important;
    color: var(--pp-text) !important;
    padding: 1.75rem 0 1.5rem;
    margin: 0 0 0 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    border-bottom: 1px solid var(--pp-rule-soft);
    border-top: 4px solid var(--pp-red);
    position: relative;
    overflow: visible;
}
body.single-vendor .eco-hero::before,
body.single-company .eco-hero::before,
body.single-product .eco-hero::before {
    display: none;
}

/* Breadcrumbs */
body.single-vendor .eco-hero .eco-breadcrumbs,
body.single-company .eco-hero .eco-breadcrumbs,
body.single-product .eco-hero .eco-breadcrumbs {
    font-family: var(--pp-sans-2);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 0 0 1.25rem;
    color: var(--pp-muted) !important;
}
body.single-vendor .eco-hero .eco-breadcrumbs a,
body.single-company .eco-hero .eco-breadcrumbs a,
body.single-product .eco-hero .eco-breadcrumbs a {
    color: var(--pp-muted) !important;
    text-decoration: none !important;
}
body.single-vendor .eco-hero .eco-breadcrumbs a:hover,
body.single-company .eco-hero .eco-breadcrumbs a:hover,
body.single-product .eco-hero .eco-breadcrumbs a:hover {
    color: var(--pp-red) !important;
}
body.single-vendor .eco-hero .eco-breadcrumb-sep,
body.single-company .eco-hero .eco-breadcrumb-sep,
body.single-product .eco-hero .eco-breadcrumb-sep {
    margin: 0 .5rem;
    color: var(--pp-rule-mid) !important;
}

/* Title — Roboto regular like InfoCity */
body.single-vendor .eco-hero .eco-hero-title,
body.single-company .eco-hero .eco-hero-title,
body.single-product .eco-hero .eco-hero-title {
    font-family: var(--pp-sans);
    font-weight: 700;
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1.15;
    letter-spacing: -.005em;
    color: var(--pp-h) !important;
    margin: 0 0 1rem;
    max-width: 28ch;
}

/* Hero badges row */
body.single-vendor .eco-hero .eco-badges,
body.single-company .eco-hero .eco-badges,
body.single-product .eco-hero .eco-badges {
    margin-bottom: 1rem;
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}
body.single-vendor .eco-hero .eco-badge,
body.single-company .eco-hero .eco-badge,
body.single-product .eco-hero .eco-badge,
body.single-vendor .eco-hero [class*="eco-badge-"],
body.single-company .eco-hero [class*="eco-badge-"],
body.single-product .eco-hero [class*="eco-badge-"] {
    background: var(--pp-rule) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 3px 8px 4px !important;
    font-family: var(--pp-sans-2) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
    backdrop-filter: none !important;
    background-image: none !important;
}
body.single-vendor .eco-hero .eco-badge:hover,
body.single-company .eco-hero .eco-badge:hover,
body.single-product .eco-hero .eco-badge:hover,
body.single-vendor .eco-hero [class*="eco-badge-"]:hover,
body.single-company .eco-hero [class*="eco-badge-"]:hover,
body.single-product .eco-hero [class*="eco-badge-"]:hover {
    background: var(--pp-red) !important;
}

/* Hero meta row */
body.single-vendor .eco-hero .eco-hero-meta,
body.single-company .eco-hero .eco-hero-meta,
body.single-product .eco-hero .eco-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 1rem;
    border-top: 1px solid var(--pp-rule-soft);
    border-bottom: 1px solid var(--pp-rule-soft);
    padding: .75rem 0;
}
body.single-vendor .eco-hero .eco-hero-meta-item,
body.single-company .eco-hero .eco-hero-meta-item,
body.single-product .eco-hero .eco-hero-meta-item {
    color: var(--pp-muted) !important;
    font-family: var(--pp-sans);
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding-right: 1.25rem;
    margin-right: 1.25rem;
    border-right: 1px solid var(--pp-rule-soft);
}
body.single-vendor .eco-hero .eco-hero-meta-item:last-child,
body.single-company .eco-hero .eco-hero-meta-item:last-child,
body.single-product .eco-hero .eco-hero-meta-item:last-child {
    border-right: 0; margin-right: 0; padding-right: 0;
}
body.single-vendor .eco-hero .eco-hero-meta-item strong,
body.single-company .eco-hero .eco-hero-meta-item strong,
body.single-product .eco-hero .eco-hero-meta-item strong,
body.single-vendor .eco-hero .eco-hero-meta-item code,
body.single-company .eco-hero .eco-hero-meta-item code,
body.single-product .eco-hero .eco-hero-meta-item code {
    color: var(--pp-h);
    font-weight: 700;
    margin-left: .35rem;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--pp-sans);
}
body.single-vendor .eco-hero .eco-hero-meta-item a,
body.single-company .eco-hero .eco-hero-meta-item a,
body.single-product .eco-hero .eco-hero-meta-item a {
    color: var(--pp-red) !important;
    text-decoration: none !important;
}
body.single-vendor .eco-hero .eco-hero-meta-item a:hover,
body.single-company .eco-hero .eco-hero-meta-item a:hover,
body.single-product .eco-hero .eco-hero-meta-item a:hover {
    color: var(--pp-red-dark) !important;
}

/* Hero stat pill */
body.single-vendor .eco-hero .eco-hero-stat,
body.single-company .eco-hero .eco-hero-stat,
body.single-product .eco-hero .eco-hero-stat {
    background: var(--pp-red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 6px 12px !important;
    font-family: var(--pp-sans-2);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .02em;
    font-weight: 600;
    backdrop-filter: none !important;
}

body.single-vendor .eco-hero .eco-hero-stats,
body.single-company .eco-hero .eco-hero-stats,
body.single-product .eco-hero .eco-hero-stats {
    gap: 2rem;
    margin-top: 1rem;
}
body.single-vendor .eco-hero .eco-hero-stat-item,
body.single-company .eco-hero .eco-hero-stat-item,
body.single-product .eco-hero .eco-hero-stat-item {
    color: var(--pp-muted) !important;
    font-family: var(--pp-sans-2);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-weight: 600;
}
body.single-vendor .eco-hero .eco-hero-stat-item strong,
body.single-company .eco-hero .eco-hero-stat-item strong,
body.single-product .eco-hero .eco-hero-stat-item strong {
    color: var(--pp-h) !important;
    font-family: var(--pp-sans);
    font-size: 22px;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
    line-height: 1;
}

/* Hero inline code (SKU) */
body.single-vendor .eco-hero code,
body.single-company .eco-hero code,
body.single-product .eco-hero code {
    font-family: Menlo, Consolas, monospace;
    background: var(--pp-rule);
    color: #fff;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 0;
}

/* ----- 3. LAYOUT ----- */
body.single-vendor .eco-single-layout,
body.single-company .eco-single-layout,
body.single-product .eco-single-layout {
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    padding-top: 2rem;
    align-items: start;
}

/* ----- 4. SECTIONS ----- */
body.single-vendor .eco-section,
body.single-company .eco-section,
body.single-product .eco-section {
    margin-bottom: 2.5rem;
}
body.single-vendor .eco-section-title,
body.single-company .eco-section-title,
body.single-product .eco-section-title {
    font-family: var(--pp-sans);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--pp-h);
    margin: 0 0 1.25rem;
    padding: 0 0 .75rem;
    border-bottom: 2px solid var(--pp-rule);
    position: relative;
    display: block;
}
body.single-vendor .eco-section-title::before,
body.single-company .eco-section-title::before,
body.single-product .eco-section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--pp-red);
    margin-right: 10px;
    vertical-align: -2px;
}
body.single-vendor .eco-section-subtitle,
body.single-company .eco-section-subtitle,
body.single-product .eco-section-subtitle {
    color: var(--pp-muted);
    font-size: 13px;
    margin: -.25rem 0 1rem;
    line-height: 1.5;
}

/* Taxonomy pages split results into per-type sections (Vendors / Products /
 * Companies). Reuse the single-page section-title treatment (red bar) so the
 * headings match the rest of the plugin, and add breathing room before each
 * section that follows a grid. */
body.tax-industry .eco-section-title,
body.tax-company_role .eco-section-title,
body.tax-region .eco-section-title,
body.tax-competency .eco-section-title {
    font-family: var(--pp-sans);
    font-weight: 700;
    font-size: 18px;
    color: var(--pp-h);
    margin: 0 0 1.25rem;
    padding: 0 0 .75rem;
    border-bottom: 2px solid var(--pp-rule);
    position: relative;
    display: block;
}
body.tax-industry .eco-section-title::before,
body.tax-company_role .eco-section-title::before,
body.tax-region .eco-section-title::before,
body.tax-competency .eco-section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--pp-red);
    margin-right: 10px;
    vertical-align: -2px;
}
body.tax-industry .eco-termlist + .eco-section-title,
body.tax-company_role .eco-termlist + .eco-section-title,
body.tax-region .eco-termlist + .eco-section-title,
body.tax-competency .eco-termlist + .eco-section-title {
    margin-top: 2.5rem;
}

/* Compact term index — a multi-column A–Z list of names that replaces the
 * old card grid on taxonomy pages. Only the column layout is custom; the
 * type and link colours inherit / reuse the existing theme palette. */
.eco-termlist {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    columns: 3 240px;
    column-gap: 2.5rem;
}
.eco-termlist-item {
    break-inside: avoid;
    padding: 8px 0;
    border-bottom: 1px solid var(--pp-rule-soft, #ededed);
    font-size: 14px;
    line-height: 1.35;
}
.eco-wrap .eco-termlist-link {
    color: var(--pp-h, #111);
    font-weight: 600;
    text-decoration: none;
}
.eco-wrap .eco-termlist-link:hover {
    color: var(--pp-red, #dd3333);
}

/* Body content */
body.single-vendor .eco-content,
body.single-company .eco-content,
body.single-product .eco-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--pp-text);
    max-width: 70ch;
}
body.single-vendor .eco-content p,
body.single-company .eco-content p,
body.single-product .eco-content p {
    margin: 0 0 1rem;
}

/* ----- 5. CARDS (removed) -----
 * The single-page card / grid-2 / meta-list components are gone; product
 * "Where to buy" and the manufacturer block now use the shared
 * .eco-partner-list relation rows. */

/* ----- 6. SIDEBAR ----- */
body.single-vendor .eco-sidebar,
body.single-company .eco-sidebar,
body.single-product .eco-sidebar {
    position: sticky;
    top: 1.5rem;
}
body.single-vendor .eco-sidebar-card,
body.single-company .eco-sidebar-card,
body.single-product .eco-sidebar-card {
    background: var(--pp-paper-2);
    border: 1px solid var(--pp-rule-mid);
    border-top: 3px solid var(--pp-red);
    border-radius: 0;
    box-shadow: none;
    padding: 1.25rem 1.25rem 1rem;
    margin-bottom: 1.25rem;
}
body.single-vendor .eco-sidebar-title,
body.single-company .eco-sidebar-title,
body.single-product .eco-sidebar-title {
    font-family: var(--pp-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--pp-h);
    margin: 0 0 .85rem;
    padding: 0 0 .65rem;
    border-bottom: 1px solid var(--pp-rule-mid);
}
body.single-vendor .eco-sidebar-list,
body.single-company .eco-sidebar-list,
body.single-product .eco-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
body.single-vendor .eco-sidebar-list li,
body.single-company .eco-sidebar-list li,
body.single-product .eco-sidebar-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: .55rem 0;
    border-bottom: 1px solid var(--pp-rule-soft);
}
body.single-vendor .eco-sidebar-list li:last-child,
body.single-company .eco-sidebar-list li:last-child,
body.single-product .eco-sidebar-list li:last-child {
    border-bottom: 0;
}
body.single-vendor .eco-sidebar-label,
body.single-company .eco-sidebar-label,
body.single-product .eco-sidebar-label {
    font-family: var(--pp-sans-2);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--pp-muted) !important;
}
body.single-vendor .eco-sidebar-value,
body.single-company .eco-sidebar-value,
body.single-product .eco-sidebar-value {
    font-size: 14px;
    color: var(--pp-h);
    font-weight: 400;
}
body.single-vendor .eco-sidebar-value code,
body.single-company .eco-sidebar-value code,
body.single-product .eco-sidebar-value code {
    font-family: Menlo, Consolas, monospace;
    background: var(--pp-rule);
    color: #fff;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 0;
    font-weight: 600;
}
body.single-vendor .eco-sidebar-value a,
body.single-company .eco-sidebar-value a,
body.single-product .eco-sidebar-value a {
    color: var(--pp-red) !important;
    text-decoration: none !important;
}
body.single-vendor .eco-sidebar-value a:hover,
body.single-company .eco-sidebar-value a:hover,
body.single-product .eco-sidebar-value a:hover {
    color: var(--pp-red-dark) !important;
    text-decoration: underline !important;
}

/* Sources sidebar list — numbered */
body.single-vendor .eco-sources-list,
body.single-company .eco-sources-list,
body.single-product .eco-sources-list {
    counter-reset: src;
    list-style: none;
    padding: 0;
    margin: 0;
}
body.single-vendor .eco-sources-list li,
body.single-company .eco-sources-list li,
body.single-product .eco-sources-list li {
    counter-increment: src;
    padding: .45rem 0 .45rem 1.65rem;
    position: relative;
    font-size: 12px;
    word-break: break-all;
    border-bottom: 1px solid var(--pp-rule-soft);
    display: block;
}
body.single-vendor .eco-sources-list li:last-child,
body.single-company .eco-sources-list li:last-child,
body.single-product .eco-sources-list li:last-child {
    border-bottom: 0;
}
body.single-vendor .eco-sources-list li::before,
body.single-company .eco-sources-list li::before,
body.single-product .eco-sources-list li::before {
    content: counter(src, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: .5rem;
    font-family: Menlo, Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    color: var(--pp-red);
    letter-spacing: 0;
}
body.single-vendor .eco-sources-list a,
body.single-company .eco-sources-list a,
body.single-product .eco-sources-list a {
    color: var(--pp-text) !important;
    text-decoration: none !important;
}
body.single-vendor .eco-sources-list a:hover,
body.single-company .eco-sources-list a:hover,
body.single-product .eco-sources-list a:hover {
    color: var(--pp-red) !important;
}

/* Page header */
body.single-vendor .eco-page-header h1,
body.single-company .eco-page-header h1,
body.single-product .eco-page-header h1 {
    font-family: var(--pp-sans);
    font-weight: 700;
    color: var(--pp-h);
}

/* Responsive */
@media (max-width: 980px) {
    body.single-vendor .eco-single-layout,
    body.single-company .eco-single-layout,
    body.single-product .eco-single-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    body.single-vendor .eco-sidebar,
    body.single-company .eco-sidebar,
    body.single-product .eco-sidebar { position: static; }
    body.single-vendor .eco-hero,
    body.single-company .eco-hero,
    body.single-product .eco-hero { padding: 1.25rem 0 1rem; }
    body.single-vendor .eco-hero .eco-hero-meta,
    body.single-company .eco-hero .eco-hero-meta,
    body.single-product .eco-hero .eco-hero-meta {
        flex-direction: column;
        gap: .5rem;
    }
    body.single-vendor .eco-hero .eco-hero-meta-item,
    body.single-company .eco-hero .eco-hero-meta-item,
    body.single-product .eco-hero .eco-hero-meta-item {
        border-right: 0;
        padding-right: 0;
        margin-right: 0;
    }
}

/* ----- 9. PRODUCT CATALOG on company page ----- */
body.single-company .eco-catalog {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--pp-rule-mid);
    border-left: 1px solid var(--pp-rule-mid);
}
body.single-company .eco-catalog-group {
    border-right: 1px solid var(--pp-rule-mid);
    border-bottom: 1px solid var(--pp-rule-mid);
    background: var(--pp-paper-2);
    padding: 1rem 1.25rem 1.1rem;
    transition: background .15s ease, box-shadow .15s ease;
    box-shadow: inset 3px 0 0 transparent;
    min-width: 0; /* let the grid cell shrink so long names ellipsis instead of blowing out the column */
}
body.single-company .eco-catalog-group:hover {
    background: #fafafa;
    box-shadow: inset 3px 0 0 var(--pp-red);
}
body.single-company .eco-catalog-vendor {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    padding-bottom: .6rem;
    margin-bottom: .65rem;
    border-bottom: 1px solid var(--pp-rule-soft);
}
body.single-company .eco-catalog-vendor-name {
    font-family: var(--pp-sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--pp-h) !important;
    text-decoration: none !important;
    letter-spacing: 0;
}
body.single-company .eco-catalog-vendor-name:hover { color: var(--pp-red) !important; }
body.single-company .eco-catalog-vendor-count {
    font-family: var(--pp-sans-2);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--pp-muted);
}
body.single-company .eco-catalog-products {
    list-style: none;
    padding: 0;
    margin: 0;
}
body.single-company .eco-catalog-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .35rem 0;
    border: none;
}
body.single-company .eco-catalog-product + .eco-catalog-product {
    border-top: 1px dotted var(--pp-rule-soft);
}
body.single-company .eco-catalog-product-name {
    font-family: var(--pp-sans);
    font-size: 13px;
    color: var(--pp-text) !important;
    text-decoration: none !important;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.single-company .eco-catalog-product-name:hover {
    color: var(--pp-red) !important;
}
body.single-company .eco-catalog-product-sku {
    font-family: Menlo, Consolas, monospace;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--pp-muted);
    background: var(--pp-bg-soft);
    border: 1px solid var(--pp-rule-soft);
    padding: 1px 5px;
    flex-shrink: 0;
    border-radius: 0;
}

@media (max-width: 720px) {
    body.single-company .eco-catalog { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================ */
/* ===== ARCHIVE & TAXONOMY pages — same look as singles    ==== */
/* ============================================================ */

body.post-type-archive-vendor .eco-wrap,
body.post-type-archive-company .eco-wrap,
body.post-type-archive-product .eco-wrap,
body.tax-industry .eco-wrap,
body.tax-company-role .eco-wrap,
body.tax-region .eco-wrap,
body.tax-competency .eco-wrap,
body.tax-product-category .eco-wrap {
    font-family: var(--pp-sans);
    color: var(--pp-text);
    background: var(--pp-paper);
    max-width: 1200px;
    padding: 0 1.25rem 3rem;
    font-size: 14px;
    line-height: 21px;
}

body.post-type-archive-vendor.ecosystem-page,
body.post-type-archive-company.ecosystem-page,
body.post-type-archive-product.ecosystem-page,
body.tax-industry.ecosystem-page,
body.tax-company-role.ecosystem-page,
body.tax-region.ecosystem-page,
body.tax-competency.ecosystem-page,
body.tax-product-category.ecosystem-page {
    background: var(--pp-paper) !important;
}

/* Hero on archive — same neutral as singles */
body.post-type-archive-vendor .eco-hero,
body.post-type-archive-company .eco-hero,
body.post-type-archive-product .eco-hero,
body.tax-industry .eco-hero,
body.tax-company-role .eco-hero,
body.tax-region .eco-hero,
body.tax-competency .eco-hero,
body.tax-product-category .eco-hero {
    background: var(--pp-paper) !important;
    color: var(--pp-text) !important;
    padding: 1.75rem 0 1.5rem;
    margin: 0 0 1.25rem !important;
    width: 100%;
    border-bottom: 1px solid var(--pp-rule-soft);
    border-top: 4px solid var(--pp-red);
}
body.post-type-archive-vendor .eco-hero-title,
body.post-type-archive-company .eco-hero-title,
body.post-type-archive-product .eco-hero-title,
body.tax-industry .eco-hero-title,
body.tax-company-role .eco-hero-title,
body.tax-region .eco-hero-title,
body.tax-competency .eco-hero-title,
body.tax-product-category .eco-hero-title {
    font-family: var(--pp-sans);
    font-weight: 700;
    font-size: clamp(28px, 3.2vw, 38px);
    line-height: 1.15;
    letter-spacing: -.005em;
    color: var(--pp-h);
    margin: 0 0 .85rem;
}
body.post-type-archive-vendor .eco-breadcrumbs,
body.post-type-archive-company .eco-breadcrumbs,
body.post-type-archive-product .eco-breadcrumbs,
body.tax-industry .eco-breadcrumbs,
body.tax-company-role .eco-breadcrumbs,
body.tax-region .eco-breadcrumbs,
body.tax-competency .eco-breadcrumbs,
body.tax-product-category .eco-breadcrumbs {
    font-family: var(--pp-sans-2);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 0 0 1.25rem;
    color: var(--pp-muted);
}
body.post-type-archive-vendor .eco-breadcrumbs a,
body.post-type-archive-company .eco-breadcrumbs a,
body.post-type-archive-product .eco-breadcrumbs a,
body.tax-industry .eco-breadcrumbs a,
body.tax-company-role .eco-breadcrumbs a,
body.tax-region .eco-breadcrumbs a,
body.tax-competency .eco-breadcrumbs a,
body.tax-product-category .eco-breadcrumbs a {
    color: var(--pp-muted);
    text-decoration: none;
}
body.post-type-archive-vendor .eco-breadcrumbs a:hover,
body.post-type-archive-company .eco-breadcrumbs a:hover,
body.post-type-archive-product .eco-breadcrumbs a:hover,
body.tax-industry .eco-breadcrumbs a:hover,
body.tax-company-role .eco-breadcrumbs a:hover,
body.tax-region .eco-breadcrumbs a:hover,
body.tax-competency .eco-breadcrumbs a:hover,
body.tax-product-category .eco-breadcrumbs a:hover {
    color: var(--pp-red);
}
body.post-type-archive-vendor .eco-hero-meta,
body.post-type-archive-company .eco-hero-meta,
body.post-type-archive-product .eco-hero-meta,
body.tax-industry .eco-hero-meta,
body.tax-company-role .eco-hero-meta,
body.tax-region .eco-hero-meta,
body.tax-competency .eco-hero-meta,
body.tax-product-category .eco-hero-meta {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    border: 0;
    padding: 0;
}
body.post-type-archive-vendor .eco-hero-meta-item,
body.post-type-archive-company .eco-hero-meta-item,
body.post-type-archive-product .eco-hero-meta-item,
body.tax-industry .eco-hero-meta-item,
body.tax-company-role .eco-hero-meta-item,
body.tax-region .eco-hero-meta-item,
body.tax-competency .eco-hero-meta-item,
body.tax-product-category .eco-hero-meta-item {
    color: var(--pp-muted);
    font-family: var(--pp-sans);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    border: 0;
    margin: 0;
    padding: 0;
}
body.post-type-archive-vendor .eco-hero-meta-item strong,
body.post-type-archive-company .eco-hero-meta-item strong,
body.post-type-archive-product .eco-hero-meta-item strong,
body.tax-industry .eco-hero-meta-item strong,
body.tax-company-role .eco-hero-meta-item strong,
body.tax-region .eco-hero-meta-item strong,
body.tax-competency .eco-hero-meta-item strong,
body.tax-product-category .eco-hero-meta-item strong {
    color: var(--pp-h);
    font-family: var(--pp-sans);
    font-weight: 700;
    margin-left: .35rem;
    text-transform: none;
}

/* Filter chips */
.eco-archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 1rem;
    padding: 0;
}
.eco-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 6px;
    background: var(--pp-paper-2);
    border: 1px solid var(--pp-rule-mid);
    color: var(--pp-h) !important;
    font-family: var(--pp-sans);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none !important;
    line-height: 1;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.eco-filter-chip:hover {
    border-color: var(--pp-red);
    color: var(--pp-red) !important;
}
.eco-filter-chip.is-active {
    background: var(--pp-rule);
    border-color: var(--pp-rule);
    color: #fff !important;
}
.eco-filter-chip .eco-filter-count {
    font-family: var(--pp-sans-2);
    font-size: 10px;
    font-weight: 600;
    color: var(--pp-muted);
    background: var(--pp-bg-soft);
    padding: 1px 5px;
    border-radius: 0;
    line-height: 1.3;
}
.eco-filter-chip.is-active .eco-filter-count {
    color: #fff;
    background: rgba(255,255,255,.18);
}

/* Archive card grid removed — archives now use the .eco-termlist index. */

/* Pagination */
.eco-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 2rem 0;
}
.eco-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: var(--pp-paper-2);
    border: 1px solid var(--pp-rule-mid);
    color: var(--pp-h) !important;
    font-family: var(--pp-sans);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}
.eco-pagination .page-numbers:hover { border-color: var(--pp-red); color: var(--pp-red) !important; }
.eco-pagination .page-numbers.current {
    background: var(--pp-rule);
    border-color: var(--pp-rule);
    color: #fff !important;
}
.eco-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* Empty state */
.eco-empty {
    padding: 3rem 1rem;
    text-align: center;
    border: 1px solid var(--pp-rule-mid);
    background: var(--pp-paper-2);
    color: var(--pp-muted);
}
.eco-empty-text { font-size: 15px; margin: 0 0 .5rem; }
.eco-empty-link { color: var(--pp-red) !important; font-weight: 600; }

@media (max-width: 600px) {
    .eco-archive-grid { grid-template-columns: 1fr; }
}

/* ===== FAQ — unified neutral InfoCity style ===== */
body.single-vendor .eco-faq-list,
body.single-company .eco-faq-list,
body.single-product .eco-faq-list {
    margin-top: 0;
    border-top: 1px solid var(--pp-rule-mid);
}
body.single-vendor .eco-faq-item,
body.single-company .eco-faq-item,
body.single-product .eco-faq-item {
    background: var(--pp-paper-2);
    border: none;
    border-bottom: 1px solid var(--pp-rule-mid);
    border-radius: 0;
    margin: 0;
    padding: 0;
}
body.single-vendor .eco-faq-question,
body.single-company .eco-faq-question,
body.single-product .eco-faq-question {
    width: 100% !important;
    background: var(--pp-paper-2) !important;
    color: var(--pp-h) !important;
    border: none !important;
    text-align: left !important;
    padding: .9rem 1.25rem !important;
    font-family: var(--pp-sans) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .75rem !important;
    line-height: 1.35 !important;
    transition: background .12s ease, color .12s ease !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
body.single-vendor .eco-faq-question:hover,
body.single-company .eco-faq-question:hover,
body.single-product .eco-faq-question:hover {
    background: var(--pp-bg-soft) !important;
    color: var(--pp-red) !important;
}
body.single-vendor .eco-faq-open .eco-faq-question,
body.single-company .eco-faq-open .eco-faq-question,
body.single-product .eco-faq-open .eco-faq-question {
    background: var(--pp-bg-soft) !important;
    color: var(--pp-h) !important;
    font-weight: 700 !important;
    border-left: 3px solid var(--pp-red) !important;
    padding-left: calc(1.25rem - 3px) !important;
}
body.single-vendor .eco-faq-toggle,
body.single-company .eco-faq-toggle,
body.single-product .eco-faq-toggle {
    font-family: var(--pp-sans);
    font-size: 18px;
    font-weight: 400;
    color: var(--pp-red);
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    border-radius: 0;
    line-height: 1;
}
body.single-vendor .eco-faq-open .eco-faq-toggle,
body.single-company .eco-faq-open .eco-faq-toggle,
body.single-product .eco-faq-open .eco-faq-toggle {
    color: var(--pp-h);
}
body.single-vendor .eco-faq-answer,
body.single-company .eco-faq-answer,
body.single-product .eco-faq-answer {
    padding: 0 1.25rem 1rem;
    background: var(--pp-paper-2);
    color: var(--pp-text);
    font-size: 14px;
    line-height: 1.65;
}
body.single-vendor .eco-faq-open .eco-faq-answer,
body.single-company .eco-faq-open .eco-faq-answer,
body.single-product .eco-faq-open .eco-faq-answer {
    background: var(--pp-bg-soft);
    border-left: 3px solid var(--pp-red);
    padding-left: calc(1.25rem - 3px);
}
body.single-vendor .eco-faq-answer p,
body.single-company .eco-faq-answer p,
body.single-product .eco-faq-answer p {
    margin: 0 0 .5rem;
}
body.single-vendor .eco-faq-answer a,
body.single-company .eco-faq-answer a,
body.single-product .eco-faq-answer a {
    color: var(--pp-red) !important;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
body.single-vendor .eco-faq-answer a:hover,
body.single-company .eco-faq-answer a:hover,
body.single-product .eco-faq-answer a:hover {
    border-bottom-color: var(--pp-red);
}

/* ============================================================ */
/* ===== DASHBOARD landing — unified InfoCity style         ==== */
/* ============================================================ */

body.page-template-page-ecosystem .eco-wrap,
body.page .eco-dashboard {
    font-family: var(--pp-sans);
    color: var(--pp-text);
    background: var(--pp-paper);
    max-width: 1280px;
    padding: 0 1.25rem 4rem;
    font-size: 14px;
    line-height: 21px;
}

body.page-template-page-ecosystem.ecosystem-page,
body.page-template-page-ecosystem.ecosystem-page .site,
body.page-template-page-ecosystem.ecosystem-page .site-main,
body.page-template-page-ecosystem.ecosystem-page .content-area {
    background: var(--pp-paper) !important;
}

/* Dashboard hero */
body.page-template-page-ecosystem .eco-hero {
    background: var(--pp-paper) !important;
    color: var(--pp-text) !important;
    padding: 2rem 0 1.75rem;
    margin: 0 0 2rem !important;
    border-bottom: 1px solid var(--pp-rule-soft);
    border-top: 4px solid var(--pp-red);
    width: 100%;
}
body.page-template-page-ecosystem .eco-hero-title {
    font-family: var(--pp-sans);
    font-weight: 700;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.1;
    letter-spacing: -.005em;
    color: var(--pp-h);
    margin: 0 0 .75rem;
    max-width: 24ch;
}
body.page-template-page-ecosystem .eco-breadcrumbs {
    font-family: var(--pp-sans-2);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 0 0 1.25rem;
    color: var(--pp-muted);
}
body.page-template-page-ecosystem .eco-breadcrumbs a {
    color: var(--pp-muted);
    text-decoration: none;
}
body.page-template-page-ecosystem .eco-breadcrumbs a:hover { color: var(--pp-red); }

.eco-dashboard-intro {
    color: var(--pp-text);
    font-size: 16px;
    line-height: 1.6;
    max-width: 80ch;
    margin: 0;
}

/* Stats row */
.eco-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    border: 1px solid var(--pp-rule-mid);
    margin: 0 0 2.5rem;
}
.eco-dashboard-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 1.25rem 1.5rem;
    border-right: 1px solid var(--pp-rule-mid);
    background: var(--pp-paper-2);
    color: var(--pp-h) !important;
    text-decoration: none !important;
    transition: background .15s ease, box-shadow .15s ease;
    box-shadow: inset 0 3px 0 transparent;
}
.eco-dashboard-stat:last-child { border-right: 0; }
.eco-dashboard-stat:not(.eco-dashboard-stat-static):hover {
    background: var(--pp-bg-soft);
    box-shadow: inset 0 3px 0 var(--pp-red);
}
.eco-dashboard-stat-number {
    font-family: var(--pp-sans);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: var(--pp-h);
}
.eco-dashboard-stat-label {
    font-family: var(--pp-sans-2);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--pp-muted);
}

/* Sections */
body.page-template-page-ecosystem .eco-section {
    margin-bottom: 2.5rem;
}
body.page-template-page-ecosystem .eco-section-title {
    font-family: var(--pp-sans);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--pp-h);
    margin: 0 0 1rem;
    padding: 0 0 .65rem;
    border-bottom: 2px solid var(--pp-rule);
    display: flex;
    align-items: baseline;
    gap: .65rem;
}
body.page-template-page-ecosystem .eco-section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--pp-red);
    vertical-align: -2px;
    flex-shrink: 0;
}
body.page-template-page-ecosystem .eco-section-count {
    color: var(--pp-muted);
    font-family: var(--pp-sans-2);
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}
body.page-template-page-ecosystem .eco-section-subtitle {
    color: var(--pp-muted);
    font-size: 13px;
    margin: -.25rem 0 1.25rem;
    line-height: 1.55;
}

/* Industry grid */
.eco-dashboard-industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0;
    border-top: 1px solid var(--pp-rule-mid);
    border-left: 1px solid var(--pp-rule-mid);
}
.eco-dashboard-industry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    background: var(--pp-paper-2);
    border-right: 1px solid var(--pp-rule-mid);
    border-bottom: 1px solid var(--pp-rule-mid);
    color: var(--pp-h) !important;
    text-decoration: none !important;
    font-family: var(--pp-sans);
    font-size: 13.5px;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
    box-shadow: inset 3px 0 0 transparent;
}
.eco-dashboard-industry:hover {
    background: var(--pp-bg-soft);
    color: var(--pp-red) !important;
    box-shadow: inset 3px 0 0 var(--pp-red);
}
.eco-dashboard-industry-name { font-weight: 500; }
.eco-dashboard-industry-count {
    font-family: var(--pp-sans-2);
    font-size: 10px;
    font-weight: 600;
    color: var(--pp-muted);
    background: var(--pp-bg-soft);
    padding: 2px 6px;
    flex-shrink: 0;
}
.eco-dashboard-industry:hover .eco-dashboard-industry-count {
    background: #fff;
    color: var(--pp-red);
}

/* Top grid (vendor / company) */
.eco-dashboard-top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0;
    border-top: 1px solid var(--pp-rule-mid);
    border-left: 1px solid var(--pp-rule-mid);
}
.eco-dashboard-top-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .9rem 1.1rem;
    background: var(--pp-paper-2);
    border-right: 1px solid var(--pp-rule-mid);
    border-bottom: 1px solid var(--pp-rule-mid);
    color: var(--pp-h) !important;
    text-decoration: none !important;
    transition: background .15s ease, box-shadow .15s ease;
    box-shadow: inset 3px 0 0 transparent;
}
.eco-dashboard-top-card:hover {
    background: var(--pp-bg-soft);
    box-shadow: inset 3px 0 0 var(--pp-red);
}
.eco-dashboard-top-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    background: var(--pp-rule);
    color: #fff;
    font-family: var(--pp-sans);
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}
.eco-dashboard-top-card:hover .eco-dashboard-top-rank {
    background: var(--pp-red);
}
.eco-dashboard-top-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.eco-dashboard-top-name {
    font-family: var(--pp-sans);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pp-h);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}
.eco-dashboard-top-meta {
    font-family: var(--pp-sans-2);
    font-size: 11px;
    font-weight: 500;
    color: var(--pp-muted);
    text-transform: uppercase;
    letter-spacing: .02em;
}

/* Featured products */
.eco-dashboard-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0;
    border-top: 1px solid var(--pp-rule-mid);
    border-left: 1px solid var(--pp-rule-mid);
}
.eco-dashboard-product {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 1rem 1.15rem;
    background: var(--pp-paper-2);
    border-right: 1px solid var(--pp-rule-mid);
    border-bottom: 1px solid var(--pp-rule-mid);
    color: var(--pp-h) !important;
    text-decoration: none !important;
    transition: background .15s ease, box-shadow .15s ease;
    box-shadow: inset 3px 0 0 transparent;
}
.eco-dashboard-product:hover {
    background: var(--pp-bg-soft);
    box-shadow: inset 3px 0 0 var(--pp-red);
}
.eco-dashboard-product-name {
    font-family: var(--pp-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--pp-h);
}
.eco-dashboard-product:hover .eco-dashboard-product-name {
    color: var(--pp-red);
}
.eco-dashboard-product-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 11.5px;
}
.eco-dashboard-product-vendor {
    color: var(--pp-muted);
    font-family: var(--pp-sans-2);
}
.eco-dashboard-product code {
    font-family: Menlo, Consolas, monospace;
    font-size: 10.5px;
    background: var(--pp-bg-soft);
    border: 1px solid var(--pp-rule-soft);
    padding: 1px 5px;
    color: var(--pp-muted);
    border-radius: 0;
}

/* View all link */
.eco-dashboard-view-all {
    margin-top: .75rem;
    text-align: right;
}
.eco-dashboard-view-all a {
    color: var(--pp-red) !important;
    font-family: var(--pp-sans);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
}
.eco-dashboard-view-all a:hover {
    color: var(--pp-red-dark) !important;
    text-decoration: underline !important;
}

@media (max-width: 600px) {
    .eco-dashboard-stats { grid-template-columns: repeat(2, 1fr); }
    .eco-dashboard-stat { border-bottom: 1px solid var(--pp-rule-mid); }
    .eco-dashboard-stat:nth-child(2n) { border-right: 0; }
    .eco-dashboard-stat:nth-last-child(-n+2) { border-bottom: 0; }
}

/* =============================================================
 * Newspaper theme compatibility
 *
 * When body has both .ecosystem-page and .theme-newspaper, the plugin
 * yields to the theme: inherit fonts, respect Newspaper's container width
 * (1140px), drop the !important width breakouts and the forced white bg.
 * Scoping under .theme-newspaper keeps the original "theme-agnostic"
 * behaviour intact for every other theme.
 * ============================================================= */

body.ecosystem-page.theme-newspaper,
body.ecosystem-page.theme-newspaper .site,
body.ecosystem-page.theme-newspaper .site-main,
body.ecosystem-page.theme-newspaper .site-content,
body.ecosystem-page.theme-newspaper .entry-content,
body.ecosystem-page.theme-newspaper main,
body.ecosystem-page.theme-newspaper article {
    background: transparent !important;
}

body.ecosystem-page.theme-newspaper .eco-wrap,
body.ecosystem-page.theme-newspaper .eco-landing-wrap,
body.ecosystem-page.theme-newspaper .eco-graph-fullscreen {
    width: auto !important;
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    font-family: inherit !important;
    color: inherit;
}

body.ecosystem-page.theme-newspaper .eco-wrap *,
body.ecosystem-page.theme-newspaper .eco-landing-wrap *,
body.ecosystem-page.theme-newspaper .eco-graph-fullscreen * {
    font-family: inherit;
}

body.ecosystem-page.theme-newspaper :is(.eco-wrap, .eco-landing-wrap) :is(h1, h2, h3, h4, h5, h6) {
    font-family: inherit;
}
