/*
 * page-companies.css
 * Loaded only on the Companies page. All company-card rules are scoped under
 * .av-page-companies so they beat any global definitions in main.css regardless
 * of cascade order.
 */

/* ── Page-level overrides ───────────────────────────────────── */

/* page-hero: restore companies padding overridden by events/sector-healthcare */
.av-page-companies .page-hero {
  padding-top: 140px;
  padding-bottom: 64px;
}

/* section-label: restore gray color, flex layout, and ruler ::after */
.av-page-companies .section-label {
  color: var(--gray);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.av-page-companies .section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  display: block;
}

/* hero-stats: restore gap and flex-wrap overridden by sectors */
.av-page-companies .hero-stats {
  gap: 32px;
  flex-wrap: nowrap;
}

/* ── Company grid cards — Logo Band Top ────────────────────── */

.av-page-companies .company-card {
  background: white;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
  gap: 0;
}
.av-page-companies .company-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(37,132,197,0.12);
}
.av-page-companies .company-card.hidden { display: none; }

/* Logo band */
.av-page-companies .card-logo-band {
  height: 82px;
  background: #f4f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-bottom: 1.5px solid var(--border);
  position: relative;
  flex-shrink: 0;
}
.av-page-companies .card-logo-band img {
  max-height: 48px;
  max-width: 140px;
  object-fit: contain;
}

/* Coloured top bar */
.av-page-companies .card-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
}

/* Body */
.av-page-companies .card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  gap: 0;
}

/* Status pill — absolute top-right of body */
.av-page-companies .card-status {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  color: var(--gray);
  white-space: nowrap;
  background: rgba(16,20,31,0.04);
}
.av-page-companies .status-studio   { background:rgba(37,132,197,0.08); border-color:rgba(37,132,197,0.2); color:var(--blue); }
.av-page-companies .status-investment { background:rgba(16,20,31,0.04); }
.av-page-companies .status-acquired,
.av-page-companies .status-exited  { background:rgba(34,197,94,0.08);  border-color:rgba(34,197,94,0.2);  color:#16a34a; }
.av-page-companies .status-exit     { background:rgba(240,120,48,0.08); border-color:rgba(240,120,48,0.2); color:var(--orange); }

/* Content */
.av-page-companies .card-sector {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 3px;
  padding-right: 72px; /* clear the absolute pill */
  text-align: left;
}
.av-page-companies .card-name {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 7px;
  letter-spacing: -0.01em;
  text-align: left;
}
.av-page-companies .card-desc {
  font-size: 0.77rem;
  color: var(--gray);
  line-height: 1.62;
  font-weight: 300;
  flex: 1;
  margin-bottom: 14px;
  text-align: left;
}

/* Links row */
.av-page-companies .card-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

/* Story — orange pill */
.av-page-companies .card-link-story {
  display: inline-flex;
  align-items: center;
  background: var(--orange);
  color: white;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.av-page-companies .card-link-story:hover { background: #d96820; }

/* Website — outlined ghost */
.av-page-companies .card-link-web {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: var(--dark);
  font-size: 0.64rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 7px;
  text-decoration: none;
  border: 1.5px solid rgba(16,20,31,0.18);
  white-space: nowrap;
  transition: border-color 0.15s;
}
.av-page-companies .card-link-web:hover { border-color: var(--dark); }
.av-page-companies .card-link-web::before {
  content: '';
  display: inline-block;
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  background: var(--dark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Acquired-by — on featured card banner (bottom-left overlay) */
.av-page-companies .featured-acquired-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 20, 31, 0.72);
  backdrop-filter: blur(6px);
  color: #4ade80;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

/* Acquired-by — in featured card body (below name) */
.av-page-companies .featured-acquired {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #16a34a;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

/* Acquired-by — on company grid card (below name) */
.av-page-companies .card-acquired {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 600;
  color: #16a34a;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

/* LinkedIn — brand blue */
.av-page-companies .card-link-li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(10,102,194,0.08);
  color: #0a66c2;
  font-size: 0.64rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 7px;
  text-decoration: none;
  border: 1.5px solid rgba(10,102,194,0.2);
  white-space: nowrap;
  transition: background 0.15s;
}
.av-page-companies .card-link-li:hover { background: rgba(10,102,194,0.14); }
.av-page-companies .card-link-li::before {
  content: 'in';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: #0a66c2;
  color: white;
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}
