/* The enterprise vertical agents (templates/enterprise/_verticals.html): the five cards on /enterprise and the
   "other agents" row on each agent's page, and the "one foundation" band. Each agent has a tone (tokens.css
   --va-*): its top bar, icon disc and tagline. */

.v2-va--red {
  --va-tone: var(--va-red);
}
.v2-va--indigo {
  --va-tone: var(--va-indigo);
}
.v2-va--teal {
  --va-tone: var(--va-teal);
}
.v2-va--green {
  --va-tone: var(--va-green);
}
.v2-va--amber {
  --va-tone: var(--va-amber);
}

/* One column on phones; three across from 720px, the last two centred under them (six tracks, two per card); all
   five in one row from 1200px. --4 is the agent pages' row of the other four. */
.v2-va-grid {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.v2-va-grid > li {
  display: grid;
  min-width: 0;
}
@media (min-width: 720px) {
  .v2-va-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .v2-va-grid > li {
    grid-column: span 2;
  }
  .v2-va-grid > li:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .v2-va-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .v2-va-grid--4 > li,
  .v2-va-grid--4 > li:nth-child(4) {
    grid-column: auto;
  }
}
@media (min-width: 1200px) {
  .v2-va-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .v2-va-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .v2-va-grid > li,
  .v2-va-grid > li:nth-child(4) {
    grid-column: auto;
  }
}

.v2-va-card {
  gap: var(--space-3);
  padding: var(--space-6) var(--space-5) var(--space-4);
  transition:
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.v2-va-card::before {
  content: "";
  position: absolute;
  inset: 0 var(--space-4) auto;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--va-tone);
}
a.v2-va-card:hover {
  transform: translateY(-2px);
}
.v2-va-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.v2-va-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--va-tone) 12%, var(--paper));
  color: var(--va-tone);
}
.v2-va-card__num {
  font: 400 14px/1 var(--font-mono);
  color: var(--muted);
}
.v2-va-card__name {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.v2-va-card__tagline {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--va-tone);
  text-wrap: balance;
}
.v2-va-card .v2-va-card__checks {
  gap: var(--space-2);
  margin: var(--space-1) 0 var(--space-2);
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.v2-va-card__checks li {
  gap: var(--space-2);
}
.v2-va-card__connects {
  display: grid;
  gap: 2px;
  margin-top: auto;
  font-size: var(--fs-caption);
  font-weight: 600;
  line-height: 1.45;
}
.v2-va-card__connects .v2-label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
}
.v2-va-card .v2-more {
  align-self: flex-start;
}

/* The "one foundation" band: a navy plate (.v2-night) under the cards. */
.v2-va-foundation {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-8);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: var(--ring);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}
.v2-va-foundation b {
  margin-right: var(--space-1);
  color: var(--accent-ink);
  font-weight: 600;
}
@media (max-width: 599px) {
  .v2-va-foundation {
    padding: var(--space-5);
    font-size: var(--fs-body);
  }
}
@media (prefers-reduced-motion: reduce) {
  a.v2-va-card:hover {
    transform: none;
  }
}
