/* Smart Match cards, gallery, states, container queries and responsive rules. */

.tccc-smart-match .sm-rec-card {
  background: var(--tccc-sm-surface);
  border: 1px solid var(--tccc-sm-line);
  border-radius: 12px;
  box-shadow: rgba(31, 48, 77, 0.08) 0 16px 34px -22px;
  container-type: inline-size;
  min-width: 0;
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease,
    transform 220ms ease;
}

.tccc-smart-match .sm-rec-card:hover {
  border-color: #c9c9fb;
  box-shadow: rgba(50, 50, 93, 0.16) 0 28px 46px -30px;
  transform: translateY(-3px);
}

.tccc-smart-match .sm-rec-card.is-top-match {
  border-color: var(--tccc-sm-line-active);
  box-shadow: rgba(83, 58, 253, 0.16) 0 26px 48px -30px;
}

.tccc-smart-match .sm-card-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tccc-smart-match .sm-rec-img {
  aspect-ratio: 16 / 10;
  background: #e9eef5;
  flex: 0 0 auto;
  overflow: hidden;
  position: relative;
}

.tccc-smart-match .sm-gallery-link {
  display: block;
  height: 100%;
  width: 100%;
}

.tccc-smart-match .sm-rec-img img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease, transform 260ms ease;
  width: 100%;
}

.tccc-smart-match .sm-rec-card:hover .sm-rec-img img {
  transform: scale(1.025);
}

.tccc-smart-match .sm-rec-city,
.tccc-smart-match .sm-rec-rank {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 590;
  padding: 6px 10px;
  position: absolute;
  z-index: 2;
}

.tccc-smart-match .sm-rec-city {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  bottom: 12px;
  color: var(--tccc-sm-ink);
  left: 12px;
}

.tccc-smart-match .sm-rec-rank {
  background: rgba(8, 9, 10, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f7f8f8;
  font-variant-numeric: tabular-nums;
  right: 12px;
  top: 12px;
}

.tccc-smart-match .is-top-match .sm-rec-rank {
  background: var(--tccc-sm-brand);
}

.tccc-smart-match .sm-gallery-arrow {
  align-items: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(6, 27, 49, 0.08);
  border-radius: 50%;
  color: var(--tccc-sm-ink);
  display: flex;
  font-size: 28px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 3px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  z-index: 3;
}

.tccc-smart-match .sm-gallery-prev {
  left: 10px;
}

.tccc-smart-match .sm-gallery-next {
  right: 10px;
}

.tccc-smart-match .sm-gallery-dots {
  bottom: 2px;
  display: flex;
  gap: 0;
  left: 50%;
  max-width: calc(100% - 84px);
  position: absolute;
  transform: translateX(-50%);
  z-index: 3;
}

.tccc-smart-match .sm-gallery-dot {
  align-items: center;
  background: transparent;
  border: 0;
  display: flex;
  height: 32px;
  justify-content: center;
  min-height: 32px;
  padding: 0;
  width: 32px;
}

.tccc-smart-match .sm-gallery-dot::before {
  background: rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  content: "";
  height: 6px;
  transition: background-color 160ms ease, transform 160ms ease;
  width: 6px;
}

.tccc-smart-match .sm-gallery-dot.is-active::before {
  background: #ffffff;
  transform: scale(1.35);
}

.tccc-smart-match .sm-rec-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.tccc-smart-match .sm-rec-eyebrow {
  align-items: center;
  color: var(--tccc-sm-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  gap: 7px;
}

.tccc-smart-match .sm-rec-venue {
  color: var(--tccc-sm-ink);
  font-weight: 590;
}

.tccc-smart-match .sm-rec-room {
  background: var(--tccc-sm-soft);
  border-radius: 999px;
  color: var(--tccc-sm-body);
  padding: 4px 7px;
}

.tccc-smart-match .sm-rec-meta {
  align-items: center;
  color: var(--tccc-sm-muted);
  display: flex;
  font-size: 11px;
  gap: 8px 12px;
  justify-content: space-between;
}

.tccc-smart-match .sm-rec-window {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.tccc-smart-match .sm-rec-window::before {
  background: #16a34a;
  border-radius: 50%;
  content: "";
  height: 6px;
  width: 6px;
}

.tccc-smart-match .sm-rec-name {
  color: var(--tccc-sm-ink) !important;
  font-family: inherit !important;
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 590 !important;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
  text-wrap: balance;
}

.tccc-smart-match .sm-match-panel {
  align-items: center;
  background: rgba(83, 58, 253, 0.07);
  border: 1px solid rgba(83, 58, 253, 0.16);
  border-radius: 9px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 66px;
  padding: 10px 12px;
}

.tccc-smart-match .sm-match-panel--group {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.2);
}

.tccc-smart-match .sm-match-panel--uShape {
  background: rgba(148, 91, 32, 0.08);
  border-color: rgba(148, 91, 32, 0.22);
}

.tccc-smart-match .sm-match-panel--lecture {
  background: rgba(71, 85, 105, 0.08);
  border-color: rgba(71, 85, 105, 0.2);
}

.tccc-smart-match .sm-match-panel__label {
  color: var(--tccc-sm-muted);
  display: block;
  font-size: 10px;
  line-height: 1.2;
  margin-bottom: 3px;
}

.tccc-smart-match .sm-match-panel__value {
  color: var(--tccc-sm-brand-hover);
  display: block;
  font-size: 16px;
  font-weight: 590;
  line-height: 1.25;
}

.tccc-smart-match .sm-match-panel--group .sm-match-panel__value {
  color: var(--tccc-sm-group);
}

.tccc-smart-match .sm-match-panel--uShape .sm-match-panel__value {
  color: var(--tccc-sm-ushape);
}

.tccc-smart-match .sm-match-panel--lecture .sm-match-panel__value {
  color: var(--tccc-sm-lecture);
}

.tccc-smart-match .sm-match-panel__capacity {
  color: var(--tccc-sm-body);
  font-size: 11px;
  font-weight: 400;
  margin-left: 7px;
  white-space: nowrap;
}

.tccc-smart-match .sm-match-panel__fit {
  background: #ffffff;
  border: 1px solid rgba(83, 58, 253, 0.18);
  border-radius: 999px;
  color: var(--tccc-sm-ink);
  flex: 0 0 auto;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 510;
  padding: 6px 8px;
}

.tccc-smart-match .sm-space-facts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tccc-smart-match .sm-space-fact {
  background: var(--tccc-sm-soft);
  border: 1px solid var(--tccc-sm-line);
  border-radius: 8px;
  min-width: 0;
  padding: 8px 10px;
}

.tccc-smart-match .sm-space-fact span,
.tccc-smart-match .sm-space-fact b {
  display: block;
}

.tccc-smart-match .sm-space-fact span {
  color: var(--tccc-sm-muted);
  font-size: 10px;
  margin-bottom: 3px;
}

.tccc-smart-match .sm-space-fact b {
  color: var(--tccc-sm-ink);
  font-size: clamp(12px, 1.2vw, 14px);
  font-variant-numeric: tabular-nums;
  font-weight: 590;
  overflow-wrap: anywhere;
}

.tccc-smart-match .sm-layout-disclosure {
  border-block: 1px solid var(--tccc-sm-line);
  margin-top: 1px;
}

.tccc-smart-match .sm-layout-summary {
  align-items: center;
  color: var(--tccc-sm-body);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  list-style: none;
  min-height: 48px;
  padding: 8px 2px;
}

.tccc-smart-match .sm-layout-summary::-webkit-details-marker {
  display: none;
}

.tccc-smart-match .sm-layout-summary strong {
  align-items: center;
  color: var(--tccc-sm-brand-hover);
  display: inline-flex;
  font-size: 11px;
  font-weight: 510;
  gap: 6px;
}

.tccc-smart-match .sm-layout-summary strong::after {
  content: "＋";
  font-size: 14px;
}

.tccc-smart-match .sm-layout-disclosure[open] .sm-layout-summary strong::after {
  content: "−";
}

.tccc-smart-match .sm-layout-list {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.tccc-smart-match .sm-layout-item {
  align-items: center;
  background: var(--tccc-sm-soft);
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--tccc-sm-muted);
  display: flex;
  font-size: 10px;
  gap: 6px;
  justify-content: space-between;
  min-width: 0;
  padding: 7px 8px;
}

.tccc-smart-match .sm-layout-item b {
  color: var(--tccc-sm-ink);
  font-variant-numeric: tabular-nums;
  font-weight: 510;
  white-space: nowrap;
}

.tccc-smart-match .sm-layout-item.is-match {
  background: rgba(83, 58, 253, 0.07);
  border-color: rgba(83, 58, 253, 0.14);
  color: var(--tccc-sm-brand-hover);
}

.tccc-smart-match .sm-rec-ctas {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: auto;
  padding-top: 3px;
}

.tccc-smart-match .btn {
  border: 1px solid var(--tccc-sm-line);
  font-size: 13px;
  min-height: 48px;
  padding: 9px 8px;
  text-align: center;
}

.tccc-smart-match .btn-primary {
  background: var(--tccc-sm-brand);
  border-color: var(--tccc-sm-brand);
  color: #ffffff;
}

.tccc-smart-match .btn-dark {
  background: #ffffff;
  color: var(--tccc-sm-ink);
}

.tccc-smart-match .btn-dark:hover {
  background: var(--tccc-sm-soft);
  border-color: #cbd6e5;
  color: var(--tccc-sm-ink);
}

.tccc-smart-match .sm-no-match {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--tccc-sm-line);
  border-radius: 10px;
  color: var(--tccc-sm-body);
  grid-column: 1 / -1;
  line-height: 1.7;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}

.tccc-smart-match .sm-no-match b {
  color: var(--tccc-sm-ink);
}

.tccc-smart-match .sm-no-match a {
  color: var(--tccc-sm-brand-hover);
  font-weight: 590;
}

@container (min-width: 620px) {
  .tccc-smart-match .sm-card-shell {
    display: grid;
    grid-template-columns: minmax(250px, 42%) minmax(0, 1fr);
  }

  .tccc-smart-match .sm-card-shell > .sm-rec-img {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

@media (max-width: 1040px) {
  .tccc-smart-match--standalone .tccc-smart-match__head {
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  }

  .tccc-smart-match .sm-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tccc-smart-match .sm-submit {
    grid-column: 1 / -1;
    min-height: 54px;
  }

  .tccc-smart-match .sm-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .tccc-smart-match {
    padding-inline: 14px;
  }

  .tccc-smart-match::before {
    border-radius: 18px;
    inset-inline: 6px;
  }

  .tccc-smart-match--standalone .tccc-smart-match__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .tccc-smart-match__intro {
    text-align: left;
  }

  .tccc-smart-match .sm-match-principle {
    border-radius: 14px;
  }

  .tccc-smart-match .sm-match-principle ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tccc-smart-match .sm-match-principle li {
    min-height: 62px;
  }

  .tccc-smart-match .sm-result-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tccc-smart-match .sm-space-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .tccc-smart-match .sm-toggle-all {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .tccc-smart-match {
    padding-top: 38px;
  }

  .tccc-smart-match__head h1,
  .tccc-smart-match__head h2,
  .tccc-smart-match .smart-match-head h2 {
    font-size: clamp(40px, 12.5vw, 50px);
    line-height: 1.02;
  }

  .tccc-smart-match .sm-search-panel {
    border-radius: 14px;
    padding: 12px;
  }

  .tccc-smart-match .sm-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .tccc-smart-match .sm-submit {
    grid-column: auto;
    min-height: 54px;
  }

  .tccc-smart-match .sm-field {
    min-height: 72px;
  }

  .tccc-smart-match .sm-match-principle {
    padding: 18px;
  }

  .tccc-smart-match .sm-results-heading {
    margin-bottom: 14px;
  }

  .tccc-smart-match .sm-rec-body {
    padding: 16px;
  }
}

@media (max-width: 359px) {
  .tccc-smart-match .sm-match-principle ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .tccc-smart-match .sm-match-principle li {
    min-height: 54px;
  }

  .tccc-smart-match .sm-match-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .tccc-smart-match .sm-rec-ctas {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tccc-smart-match *,
  .tccc-smart-match *::before,
  .tccc-smart-match *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .tccc-smart-match .sm-rec-card:hover,
  .tccc-smart-match .sm-rec-card:hover .sm-rec-img img,
  .tccc-smart-match .sm-submit:hover::after {
    transform: none;
  }
}


