/* ExpoJack company profile frontend */

/* Keep the WordPress template from squeezing the company profile. */
.single-exj_company .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.single-exj_company .wp-block-post-content,
.single-exj_company .entry-content {
  max-width: 1400px !important;
}

.single-exj_company .wp-block-post-title,
.single-exj_company .entry-title,
.single-exj_company .post-title {
  display: none !important;
}

.single-exj_company .wp-block-post-content > .exj-company-profile {
  margin-block-start: 0 !important;
}

.exj-company-profile,
.exj-company-profile * {
  box-sizing: border-box;
}

.exj-company-profile {
  --exj-bg: #f6f8fb;
  --exj-card: #ffffff;
  --exj-ink: #172033;
  --exj-heading: #0f172a;
  --exj-muted: #667085;
  --exj-line: #dbe3ee;
  --exj-soft-line: #edf2f7;
  --exj-accent: #0f766e;
  --exj-accent-soft: #e6fffb;
  --exj-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);

  width: min(1400px, 100%);
  max-width: 1400px;
  margin: 0 auto 56px;
  padding: 0 16px;
  color: var(--exj-ink);
  font-size: 16px;
  line-height: 1.55;
}

.exj-company-profile :where(h1, h2, h3, p, dl, dd) {
  margin-top: 0;
}

.exj-company-profile a {
  color: var(--exj-accent);
  text-decoration: none;
}

.exj-company-profile a:hover {
  text-decoration: underline;
}

/* Hero */
.exj-company-hero {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--exj-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, .14), transparent 34%),
    linear-gradient(145deg, #fff, #f8fafc);
  box-shadow: var(--exj-shadow);
}

.exj-logo-box {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  border: 1px solid var(--exj-line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.exj-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.exj-logo-box span {
  color: var(--exj-accent);
  font-size: 28px;
  font-weight: 850;
}

.exj-kicker {
  margin: 0 0 5px;
  color: var(--exj-accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.exj-hero-info h1 {
  margin: 0;
  color: var(--exj-heading);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.06;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.exj-location {
  margin: 8px 0 0;
  color: var(--exj-muted);
  font-weight: 650;
}

.exj-chip-row,
.exj-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.exj-chip,
.exj-card-tags span,
.exj-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--exj-line);
  border-radius: 999px;
  background: #fff;
  color: var(--exj-muted);
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.exj-hero-buttons {
  display: grid;
  gap: 9px;
}

.exj-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--exj-line);
  border-radius: 13px;
  background: #fff;
  color: var(--exj-ink) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 800;
}

.exj-btn-primary {
  border-color: var(--exj-accent);
  background: var(--exj-accent);
  color: #fff !important;
}

/* Stats */
.exj-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.exj-stats div {
  padding: 13px;
  border: 1px solid var(--exj-line);
  border-radius: 17px;
  background: #fff;
  text-align: center;
}

.exj-stats strong {
  display: block;
  color: var(--exj-heading);
  font-size: 22px;
  line-height: 1;
  font-weight: 850;
}

.exj-stats span {
  display: block;
  margin-top: 5px;
  color: var(--exj-muted);
  font-size: 12px;
  font-weight: 750;
}

/* Navigation */
.exj-profile-nav {
  position: sticky;
  top: 42px;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  margin: 16px 0;
  border: 1px solid var(--exj-line);
  border-radius: 17px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  scrollbar-width: thin;
}

.exj-profile-nav a {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--exj-muted);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none !important;
}

.exj-profile-nav a:hover {
  background: var(--exj-accent-soft);
  color: var(--exj-accent);
}

/* Sections */
.exj-section-card {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--exj-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}

.exj-section-title {
  margin-bottom: 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--exj-soft-line);
}

.exj-section-title h2 {
  margin: 0;
  color: var(--exj-heading);
  font-size: 24px;
  line-height: 1.16;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.exj-section-title p {
  margin: 6px 0 0;
  color: var(--exj-muted);
  font-size: 14px;
}

/* Overview */
.exj-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
}

.exj-about {
  padding: 16px;
  border: 1px solid var(--exj-soft-line);
  border-radius: 18px;
  background: #f8fafc;
}

.exj-about h3 {
  margin: 0 0 8px;
  color: var(--exj-heading);
  font-size: 18px;
  font-weight: 850;
}

.exj-about p {
  margin-bottom: 0;
  color: #344054;
}

.exj-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.exj-details div {
  padding: 12px;
  border: 1px solid var(--exj-soft-line);
  border-radius: 15px;
  background: #fff;
}

.exj-details dt {
  color: var(--exj-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.exj-details dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}

/* Products */
.exj-product-grid {
  display: grid;
  gap: 15px;
}

.exj-product-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--exj-line);
  border-radius: 20px;
  background: #fff;
}

.exj-product-image {
  min-height: 170px;
  background: linear-gradient(135deg, #eef4f8, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
}

.exj-product-image img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  display: block;
}

.exj-product-image span {
  color: var(--exj-muted);
  font-weight: 850;
}

.exj-product-body {
  padding: 17px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.exj-product-body h3 {
  margin: 0;
  color: var(--exj-heading);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 850;
}

.exj-product-body p {
  margin: 0;
  color: #475569;
  font-size: 14px;
}

.exj-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--exj-soft-line);
}

.exj-card-footer small {
  color: var(--exj-muted);
  font-size: 12px;
  font-weight: 750;
}

.exj-card-footer a {
  font-weight: 850;
}

/* People */
.exj-contact-grid,
.exj-event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.exj-contact-card,
.exj-event-card {
  padding: 16px;
  border: 1px solid var(--exj-line);
  border-radius: 19px;
  background: #fff;
}

.exj-contact-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 13px;
}

.exj-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--exj-accent-soft);
  color: var(--exj-accent);
  border: 1px solid rgba(15, 118, 110, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
}

.exj-contact-card h3,
.exj-event-card h3 {
  margin: 0;
  color: var(--exj-heading);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 850;
}

.exj-muted,
.exj-event-card p {
  margin: 5px 0 0;
  color: var(--exj-muted);
  font-size: 14px;
}

.exj-contact-links {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.exj-pill {
  margin-top: 10px;
  background: #f8fafc;
}

.exj-event-card p {
  margin-bottom: 0;
}

.exj-empty {
  margin: 0;
  color: var(--exj-muted);
  border: 1px dashed var(--exj-line);
  border-radius: 15px;
  padding: 15px;
  background: #f8fafc;
}

.exj-archive-filters {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.exj-archive-filters input,
.exj-archive-filters select,
.exj-archive-filters button {
  min-height: 40px;
  border: 1px solid var(--exj-line);
  border-radius: 10px;
  padding: 8px 10px;
}
.exj-company-grid,
.exj-marketplace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.exj-marketplace-grid .exj-product-card--mini {
  grid-template-columns: 1fr;
  border-radius: 16px;
  overflow: hidden;
}

.exj-marketplace-grid .exj-product-card--mini .exj-product-image {
  min-height: 170px;
  max-height: 170px;
  background: linear-gradient(135deg, #eef4f8, #f8fafc);
}

.exj-marketplace-grid .exj-product-card--mini .exj-product-image img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.exj-marketplace-grid .exj-product-card--mini .exj-product-body {
  padding: 12px;
  gap: 6px;
}

.exj-marketplace-grid .exj-product-card--mini .exj-product-body h3 {
  font-size: 16px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.exj-marketplace-grid .exj-product-card--mini .exj-product-body p {
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.exj-marketplace-grid .exj-product-card--mini .exj-card-footer {
  padding-top: 8px;
}

.exj-marketplace-grid .exj-product-card--mini .exj-card-footer small,
.exj-marketplace-grid .exj-product-card--mini .exj-card-footer a {
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.exj-company-card {
  border: 1px solid var(--exj-line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}
.exj-company-card h3 { margin: 0 0 8px; }
.exj-company-card p { margin: 0 0 8px; }
.exj-pager { margin-top: 14px; }
.exj-pager a { margin-right: 6px; }
.exj-pager a.current { font-weight: 800; text-decoration: underline; }

/* Mobile */
@media (max-width: 820px) {
  .exj-company-hero {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .exj-hero-buttons {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .exj-overview-layout,
  .exj-product-card {
    grid-template-columns: 1fr;
  }

  .exj-product-image,
  .exj-product-image img {
    min-height: 220px;
  }
  .exj-company-grid,
  .exj-marketplace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .exj-archive-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .exj-company-profile {
    padding: 0 12px;
  }

  .exj-company-hero,
  .exj-section-card {
    padding: 16px;
    border-radius: 19px;
  }

  .exj-company-hero,
  .exj-hero-buttons,
  .exj-stats,
  .exj-contact-grid,
  .exj-event-grid {
    grid-template-columns: 1fr;
  }

  .exj-logo-box {
    width: 76px;
    height: 76px;
    border-radius: 18px;
  }

  .exj-hero-info h1 {
    font-size: 31px;
  }

  .exj-profile-nav {
    top: 0;
  }

  .exj-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .exj-company-grid,
  .exj-marketplace-grid,
  .exj-archive-filters {
    grid-template-columns: 1fr;
  }
}
.exj-mp-load-wrap{display:flex;justify-content:center;margin:24px 0}.exj-mp-load-more{border:0;border-radius:14px;background:#0f172a;color:#fff;padding:12px 18px;font-weight:800;cursor:pointer}.exj-mp-load-more[disabled]{opacity:.6;cursor:wait}.exj-mp-empty{padding:24px;border:1px dashed #cbd5e1;border-radius:18px;text-align:center;color:#64748b}.exj-mp-selected-item{display:flex;gap:10px;align-items:center;border:1px solid #e2e8f0;border-radius:14px;padding:10px;margin-bottom:10px}.exj-mp-selected-item img{width:54px;height:48px;object-fit:cover;border-radius:10px}.exj-mp-selected-item div{flex:1}.exj-mp-selected-item strong{display:block}.exj-mp-selected-item small{display:block;color:#64748b}.exj-mp-selected-item button{border:0;background:#f1f5f9;border-radius:999px;width:28px;height:28px;cursor:pointer}


/* ExpoJack Marketplace / Companies shared directory layout */
.exj-mp-wrap{--exj-slate-950:#020617;--exj-slate-900:#0f172a;--exj-slate-700:#334155;--exj-slate-600:#475569;--exj-slate-500:#64748b;--exj-slate-200:#e2e8f0;--exj-slate-100:#f1f5f9;--exj-slate-50:#f8fafc;max-width:1200px;margin:0 auto;padding:24px 14px}.exj-mp-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;background:var(--exj-slate-950);color:#fff;border-radius:28px;padding:30px;margin-bottom:18px;box-shadow:0 20px 45px rgba(15,23,42,.18)}.exj-mp-hero p{margin:0 0 8px!important;color:#cbd5e1!important;text-transform:uppercase;letter-spacing:.12em;font-weight:900;font-size:12px}.exj-mp-hero h1{margin:0!important;color:#fff!important;font-size:clamp(30px,5vw,54px);line-height:1;font-weight:950}.exj-mp-hero span{display:block;margin-top:12px;color:#cbd5e1;max-width:660px}.exj-mp-list-btn{border:0;border-radius:18px;background:rgba(255,255,255,.1);color:#fff;padding:13px 16px;font-weight:900;white-space:nowrap;cursor:pointer}.exj-mp-count{display:inline-flex;align-items:center;justify-content:center;margin-left:7px;background:#fff;color:var(--exj-slate-950);border-radius:999px;min-width:24px;height:24px;padding:0 7px}.exj-market-filters,.exj-mp-filters{display:grid;grid-template-columns:minmax(260px,1fr) 220px 260px 180px auto;gap:12px;align-items:end;background:#fff;border:1px solid var(--exj-slate-200);border-radius:22px;padding:14px;margin-bottom:14px;box-shadow:0 8px 24px rgba(15,23,42,.05)}.exj-filter-field label,.exj-market-filters label{display:block;margin:0 0 6px;color:var(--exj-slate-700);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.exj-filter-field input,.exj-filter-field select,.exj-market-filters input,.exj-market-filters select{width:100%;border:1px solid var(--exj-slate-200);border-radius:14px;background:var(--exj-slate-50);padding:12px 13px;color:var(--exj-slate-950);font-weight:700;min-height:46px}.exj-market-reset,.exj-mp-reset{border:0;border-radius:14px;background:var(--exj-slate-950);color:#fff;padding:13px 16px;font-weight:900;cursor:pointer;min-height:46px}.exj-mp-line{margin:0 0 14px;color:var(--exj-slate-500);font-size:14px}.exj-mp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}.exj-mp-card{overflow:hidden;border-radius:24px;border:1px solid var(--exj-slate-200);background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.06);transition:transform .18s ease,box-shadow .18s ease;display:flex;flex-direction:column}.exj-mp-card:hover{transform:translateY(-2px);box-shadow:0 18px 38px rgba(15,23,42,.12)}.exj-mp-img{height:205px;background:var(--exj-slate-100);display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.exj-mp-img img{width:100%;height:100%;object-fit:cover;position:relative;z-index:2}.exj-mp-img span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#94a3b8;font-weight:900;z-index:1}.exj-mp-body{padding:16px;display:flex;flex-direction:column;gap:12px;flex:1}.exj-mp-chip{display:inline-flex;width:max-content;border-radius:999px;background:var(--exj-slate-100);color:var(--exj-slate-700);padding:5px 9px;font-size:12px;font-weight:900}.exj-mp-body h3{margin:0!important;color:var(--exj-slate-950)!important;font-size:18px!important;line-height:1.25!important;font-weight:950!important}.exj-mp-body p{margin:0!important;color:var(--exj-slate-600)!important;font-size:14px!important;line-height:1.55!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.exj-mp-company{display:flex;align-items:center;gap:8px;border-top:1px solid var(--exj-slate-100);padding-top:10px;margin-top:auto}.exj-mp-company img{width:24px;height:24px;border-radius:8px;object-fit:contain;border:1px solid var(--exj-slate-200);background:#fff}.exj-mp-company a{font-weight:900;color:var(--exj-slate-700);text-decoration:none}.exj-mp-meta{display:grid;gap:5px;color:var(--exj-slate-500);font-size:12px}.exj-mp-add{appearance:none;-webkit-appearance:none;border:0;border-radius:14px;background:var(--exj-slate-950);color:#fff;padding:11px 14px;font-weight:900;cursor:pointer;font-family:inherit;line-height:1.2}.exj-mp-add:hover{background:#1e293b}.exj-market-load-more-wrap,.exj-mp-load-wrap{display:flex;justify-content:center;margin:24px 0}.exj-market-load-more,.exj-mp-load-more{border:0;border-radius:14px;background:var(--exj-slate-950,#0f172a);color:#fff;padding:13px 20px;font-weight:900;cursor:pointer}.exj-market-load-more[disabled],.exj-mp-load-more[disabled]{opacity:.6;cursor:wait}.exj-mp-empty{padding:24px;border:1px dashed #cbd5e1;border-radius:18px;text-align:center;color:#64748b}.exj-mp-panel{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:99999;display:none;justify-content:flex-end}.exj-mp-panel.is-open{display:flex}.exj-mp-panel-box{width:min(430px,92vw);height:100%;background:#fff;padding:20px;overflow:auto;box-shadow:-20px 0 50px rgba(0,0,0,.25)}.exj-mp-panel-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--exj-slate-200);padding-bottom:12px;margin-bottom:12px}.exj-mp-panel-head h2{margin:0}.exj-mp-close{border:0;background:var(--exj-slate-100);border-radius:999px;width:36px;height:36px;font-size:24px;cursor:pointer}.exj-mp-form input,.exj-mp-form textarea{width:100%;border:1px solid var(--exj-slate-200);border-radius:12px;background:var(--exj-slate-50);padding:11px 12px;margin-bottom:10px}.exj-mp-form textarea{min-height:110px}.exj-mp-form button{border:0;border-radius:14px;background:var(--exj-slate-950);color:#fff;padding:12px 16px;font-weight:900;cursor:pointer;width:100%}@media(max-width:900px){.exj-market-filters,.exj-mp-filters{grid-template-columns:1fr 1fr}.exj-filter-search{grid-column:1/-1}.exj-market-reset,.exj-mp-reset{grid-column:1/-1}}@media(max-width:760px){.exj-mp-wrap{padding:14px 10px}.exj-mp-hero{display:block;padding:22px;border-radius:24px}.exj-mp-list-btn{margin-top:18px;width:100%}.exj-mp-grid{grid-template-columns:1fr}.exj-mp-img{height:175px}.exj-market-filters,.exj-mp-filters{grid-template-columns:1fr}}
