/* ============================================================
   components/company-row.css
   A company row in the directory listing. Rows, not cards: a
   reader comparing companies wants the names in ONE column.
   No outer margin on the root; the list owns the gaps.
   ============================================================ */
.rfi-crow {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--rfi-surface); border-radius: var(--rfi-radius); box-shadow: var(--rfi-shadow);
  padding: 18px 20px; transition: box-shadow .16s, transform .16s;
}
.rfi-crow:hover { box-shadow: var(--rfi-shadow-up); transform: var(--rfi-lift); }
.rfi-crow:hover .rfi-crow__name { color: var(--rfi-teal); }

/* No border around the logo: the mark sits in the slot on the card's own surface,
   not in a boxed frame (owner decision, desktop and mobile). */
.rfi-crow__logo {
  flex: none; border-radius: var(--rfi-radius-sm);
  display: flex; align-items: center; justify-content: center; background: var(--rfi-surface);
  overflow: hidden;
}
.rfi-crow__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.rfi-crow__body { flex: 1; min-width: 0; }
.rfi-crow__top { display: flex; align-items: flex-start; gap: 12px; }
.rfi-crow__head { min-width: 0; }
.rfi-crow__name { display: block; font-family: var(--rfi-font-ui); font-size: 18px; font-weight: 600; line-height: 1.2; }
.rfi-crow__spec { display: block; font-size: 12.5px; color: var(--rfi-text-3); margin-top: 5px; }

.rfi-crow__tier {
  flex: none; margin-left: auto;
  font-family: var(--rfi-font-ui); font-size: 9.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: var(--rfi-navy); background: var(--rfi-partner-tint);
  box-shadow: 0 0 0 1px var(--rfi-partner-line) inset;
  padding: 4px 9px; border-radius: var(--rfi-radius-xs);
}

.rfi-crow__desc {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  font-size: var(--rfi-desc); line-height: 1.55; color: var(--rfi-text-2); margin-top: 9px;
}

/* Prominence. A rich row is what a partner is paying for: a bigger logo and a third
   line of description. Which tiers get it is decided in config/tier-weights.php
   (directory_row_rich), never here. The min-height keeps a rich row the same height
   whether or not its description actually fills three lines, so a partner block does
   not look ragged next to the free rows. */
.rfi-crow--rich .rfi-crow__logo { width: 150px; height: 94px; }
.rfi-crow--rich .rfi-crow__desc { -webkit-line-clamp: 3; min-height: calc(1.55em * 3); }
.rfi-crow--plain .rfi-crow__logo { width: 120px; height: 76px; }
.rfi-crow--plain .rfi-crow__desc { -webkit-line-clamp: 2; }

/* Compact: the same row inside a panel rather than in the directory (Featured
   partners on a free profile). It is the same component because it is the same thing,
   a company in a list; only the scale changes with the context. */
.rfi-crow--compact { gap: 16px; padding: 16px 18px; }
.rfi-crow--compact:hover { transform: translateY(-1px); }
.rfi-crow--compact .rfi-crow__logo { width: 120px; height: 76px; }
.rfi-crow--compact .rfi-crow__name { font-size: 16px; }
.rfi-crow--compact .rfi-crow__spec { font-size: 12px; margin-top: 4px; }
.rfi-crow--compact .rfi-crow__desc { font-size: 12.5px; line-height: 1.5; margin-top: 8px; -webkit-line-clamp: 2; }
.rfi-crow--compact .rfi-crow__tier { font-size: 9px; padding: 3px 8px; }

.rfi-colist { display: flex; flex-direction: column; gap: 12px; }
