/*
 * Futbolika catalogue card, 2026-11-14.
 * Load after company-card-design-20260827.css. Every rule is scoped to ID 6.
 * Existing React nodes, links, favourite handlers and promotion tracking remain intact.
 */

.company-card[data-organization-id="6"] > .card-cover {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  align-items: center;
  gap: 10px 12px;
  height: auto;
  min-height: 0;
  padding: 12px 16px 14px;
}

.company-card[data-organization-id="6"] > .card-cover::before,
.company-card[data-organization-id="6"] > .card-cover > .cover-orb {
  pointer-events: none;
  z-index: -1;
}

/* The promotion and favourite occupy their own row, clear of the artwork. */
.company-card[data-organization-id="6"] > .card-cover > .promo-badge {
  position: static;
  inset: auto;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 7px 11px;
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.company-card[data-organization-id="6"] > .card-cover > .favorite {
  position: static;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
}

/* Generic fallback also displays any replacement logo in full. */
.company-card[data-organization-id="6"] > .card-cover > .company-card-logo {
  box-sizing: border-box;
  position: relative;
  inset: auto;
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  align-self: center;
  display: block;
  width: min(100%, 320px);
  height: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  transform: none;
  overflow: hidden;
}

.company-card[data-organization-id="6"] > .card-cover > .company-card-logo > img {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  transform: none;
}

/*
 * This exact 3508 x 2481 PNG has baked-in blank green margins.
 * Its complete artwork occupies x=524..2984, y=782..1700.
 * Show x=460..3048, y=718..1764: the full logo plus 64px on all sides.
 * Only empty background is outside the viewport; the source file is unchanged.
 * The source selector prevents this framing from affecting a future replacement.
 */
@supports selector(:has(*)) {
  .company-card[data-organization-id="6"] > .card-cover > .company-card-logo:has(> img[src*="/PSplcJMCva6J-ytChOH7QD0n.png"]) {
    aspect-ratio: 2588 / 1046;
    background: #2b8037;
  }

  .company-card[data-organization-id="6"] > .card-cover > .company-card-logo > img[src*="/PSplcJMCva6J-ytChOH7QD0n.png"] {
    position: absolute;
    top: -68.642447%;
    left: -17.774343%;
    right: auto;
    bottom: auto;
    width: 135.548686%;
    height: auto;
    max-width: none;
    max-height: none;
  }
}

.company-card[data-organization-id="6"] > .card-cover > .expanded-badge {
  position: static;
  inset: auto;
  grid-column: 1;
  grid-row: 3;
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 5px 9px;
  font-size: 10px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.company-card[data-organization-id="6"] > .card-cover > .cover-category {
  position: static;
  inset: auto;
  grid-column: 2;
  grid-row: 3;
  justify-self: end;
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
}

/* Keep the full disclosure once, at the bottom of the existing card body. */
.company-card[data-organization-id="6"] > .card-cover > .advertising-badge {
  display: none;
}

.company-card[data-organization-id="6"] > .card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.company-card[data-organization-id="6"] > .card-body > .category-ad-meta {
  box-sizing: border-box;
  position: static;
  order: 99;
  display: block;
  min-width: 0;
  max-width: 100%;
  margin: 14px 0 0;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid #e1e9e5;
  border-radius: 0;
  background: transparent;
  color: #5d6f72;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
}

.company-card[data-organization-id="6"] > .card-body > .category-ad-meta::before {
  content: "Реклама · ";
  font-weight: 700;
}

.company-card[data-organization-id="6"] > .card-body > .category-ad-meta > small {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  color: inherit;
  font: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.company-card[data-organization-id="6"] > .card-body > .promo-line {
  min-width: 0;
  max-width: 100%;
  height: auto;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  line-height: 1.45;
}
