/*
  MirNova Hub — feed_matching.css
  Structural local matching carousel only.
  Visual layer lives in feed_matching_rebuild.css.
*/

.hub-match-outset .listing-match-carousel {
  margin-top: 0;
  padding: 10px 10px 9px;
}

.hub-match-outset .listing-match-carousel-heading {
  margin-bottom: 8px;
}

.hub-match-outset .listing-match-carousel-title {
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.hub-match-outset .listing-match-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 4px 10px;
  font-size: 16px;
  font-weight: 800;
}

.hub-match-outset .listing-match-carousel-hint {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.35;
}

.hub-match-outset .listing-match-scroll {
  gap: 6px;
  padding-bottom: 2px;
}

.hub-match-outset .listing-match-card {
  flex: 0 0 132px;
  width: 132px;
  min-width: 124px;
  max-width: 148px;
  padding: 6px 7px;
  gap: 3px;
  font-size: 9px;
}

.hub-match-outset .listing-match-card-more {
  min-height: 72px;
}

.hub-match-outset .listing-match-avatar,
.hub-match-outset .listing-match-avatar-letter {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.hub-match-outset .listing-match-name {
  font-size: 10px;
}

.hub-match-outset .listing-match-meta {
  font-size: 9px;
  opacity: 0.78;
}

.hub-match-outset .listing-match-meta.is-match {
  font-size: 8px;
}

.hub-match-outset .listing-match-profile,
.hub-match-outset .listing-match-invite {
  font-size: 10px;
  padding: 5px 6px;
}

/* Hard protection: matching is always horizontal scroll carousel */
.listing-match-scroll-wrap {
  position: relative;
}

.listing-match-scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.listing-match-scroll::-webkit-scrollbar {
  height: 8px;
}

.listing-match-scroll-wrap::before,
.listing-match-scroll-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 8px;
  width: 18px;
  pointer-events: none;
  z-index: 2;
}

/* Fixed widths by context */
.hub-match-outset .listing-match-card {
  flex: 0 0 160px;
  width: 160px;
  min-width: 160px;
  max-width: 160px;
}

.hub-modal-matching .listing-match-card {
  flex: 0 0 140px;
  width: 140px;
  min-width: 140px;
  max-width: 140px;
}

@media (max-width: 520px) {
  .hub-match-outset .listing-match-card,
  .hub-modal-matching .listing-match-card {
    flex: 0 0 150px;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
  }
}

/* Feed matching visual rules migrated from feed_matching_rebuild.css */

/* FEED MATCHING REBUILD — only matching under feed cards */

.hub-page .hub-match-outset {
  margin: 10px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hub-page .hub-match-outset .listing-match-carousel {
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid #ddd;
  background: transparent;
}

.hub-page .hub-match-outset .listing-match-carousel-title {
  color: #111;
  opacity: 1;
  font-weight: 600;
}

.hub-page .hub-match-outset .listing-match-count,
.hub-page .hub-match-outset .listing-match-carousel-hint {
  color: #555;
  opacity: 1;
}

.hub-page .hub-match-outset .listing-match-scroll {
  gap: 8px;
}

.hub-page .hub-match-outset .listing-match-scroll-wrap::before,
.hub-page .hub-match-outset .listing-match-scroll-wrap::after {
  display: none;
  content: none;
}

.hub-page .hub-match-outset .listing-match-card {
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
  box-shadow: none;
}

.hub-page .hub-match-outset .listing-match-name {
  color: #111;
  opacity: 1;
}

.hub-page .hub-match-outset .listing-match-meta,
.hub-page .hub-match-outset .listing-match-meta.is-match {
  color: #555;
  opacity: 1;
}

.hub-page .hub-match-outset .listing-match-profile,
.hub-page .hub-match-outset .listing-match-invite,
.hub-page .hub-match-outset .listing-match-see-all {
  color: #111;
  background: #fff;
  border: 1px solid #aaa;
  box-shadow: none;
  text-decoration: none;
}

.hub-page .hub-match-outset .listing-match-profile:hover,
.hub-page .hub-match-outset .listing-match-invite:hover,
.hub-page .hub-match-outset .listing-match-see-all:hover {
  background: #f5f5f5;
  color: #111;
}

/* keep existing sizing/mobile behavior from feed_matching.css + feed_mobile.css */
