/* ==========================================================================
   Contract → Catalog Handoff Strip
   Purpose: Visualises the 1:1 relationship between a data contract and its
   corresponding data product, and surfaces role ownership at the seam between
   the Contract and Catalog sections.
   ========================================================================== */

.contract-to-catalog {
  background-color: var(--color-jet-black);
  padding-block: var(--space-10);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctc__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  max-width: var(--max-width-content);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

/* --------------------------------------------------------------------------
   Bridge row: [panel] [connector] [panel]
   -------------------------------------------------------------------------- */
.ctc__bridge {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 1100px;
}

/* --------------------------------------------------------------------------
   Panels — styled like a wider info-card
   -------------------------------------------------------------------------- */
.ctc__panel {
  flex: 1;
  background-color: var(--color-dark-grey-1);
  border: 1px solid var(--color-dark-grey-2);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ctc__panel-eyebrow {
  font-family: var(--font-text);
  font-size: var(--font-size-caption);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-frozen-blue);
  margin: 0;
}

.ctc__panel-name {
  font-family: var(--font-display);
  font-size: var(--font-size-heading-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  line-height: var(--line-height-heading);
  margin: 0;
}

.ctc__panel-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: var(--space-1);
}

.ctc__panel-person {
  font-family: var(--font-text);
  font-size: var(--font-size-small);
  color: var(--color-light-grey-2);
  margin: 0;
  line-height: var(--line-height-body);
}

.ctc__panel-badges {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  margin-top: var(--space-1);
}

.ctc__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-1);
  border-radius: var(--radius-full);
  font-family: var(--font-text);
  font-size: var(--font-size-caption);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

.ctc__badge--role {
  background-color: color-mix(in srgb, var(--color-frozen-blue) 12%, transparent);
  color: var(--color-frozen-blue);
  border: 1px solid color-mix(in srgb, var(--color-frozen-blue) 30%, transparent);
}

.ctc__badge--status {
  background-color: color-mix(in srgb, #34c77b 12%, transparent);
  color: #34c77b;
  border: 1px solid color-mix(in srgb, #34c77b 30%, transparent);
}

.ctc__badge--type {
  background-color: color-mix(in srgb, var(--color-light-grey-2) 15%, transparent);
  color: var(--color-light-grey-2);
  border: 1px solid color-mix(in srgb, var(--color-light-grey-2) 25%, transparent);
}

.ctc__badge--available {
  background-color: color-mix(in srgb, var(--color-frozen-blue) 12%, transparent);
  color: var(--color-frozen-blue);
  border: 1px solid color-mix(in srgb, var(--color-frozen-blue) 30%, transparent);
}

/* --------------------------------------------------------------------------
   Connector — simple text label between panels
   -------------------------------------------------------------------------- */
.ctc__connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 88px;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.ctc__connector-line {
  display: none;
}

.ctc__connector-pill {
  font-family: var(--font-text);
  font-size: var(--font-size-caption);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-white);
  opacity: 0.75;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  display: block;
  text-align: center;
}

.ctc__connector-label {
  display: block;
  text-align: center;
  font-family: var(--font-text);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-light-grey-2);
  opacity: 0.5;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Catalog panel — product list
   -------------------------------------------------------------------------- */
.ctc__catalog-list {
  list-style: none;
  margin: var(--space-2) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ctc__catalog-item {
  font-family: var(--font-text);
  font-size: var(--font-size-small);
  color: var(--color-light-grey-2);
  opacity: 0.4;
  padding-inline-start: var(--space-2);
  position: relative;
  line-height: var(--line-height-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ctc__catalog-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: currentColor;
}

.ctc__catalog-item--active {
  color: var(--color-frozen-blue);
  opacity: 1;
  font-weight: 600;
}

.ctc__catalog-item--more {
  font-style: italic;
  opacity: 0.25;
}

/* --------------------------------------------------------------------------
   Caption below the bridge
   -------------------------------------------------------------------------- */
.ctc__caption {
  font-family: var(--font-text);
  font-size: var(--font-size-small);
  line-height: var(--line-height-body);
  color: var(--color-light-grey-2);
  opacity: 0.7;
  text-align: center;
  max-width: 560px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive — stack panels vertically on narrow viewports
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .ctc__bridge {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .ctc__connector {
    width: auto;
    height: 48px;
  }

  .ctc__catalog-item {
    white-space: normal;
  }
}
