body { background: #f6f7f9; }
.card { border-color: #e3e6ea; }
.avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e7eefc; color: #2b54b8; font-weight: 600; flex-shrink: 0;
}
.avatar-lg { width: 4rem; height: 4rem; font-size: 1.4rem; }
.name-card { border-left: 4px solid #2b54b8; }
.contact-list .bi { width: 1.25rem; color: #6c757d; }
.table td, .table th { vertical-align: middle; }
.text-pre { white-space: pre-line; }
.contact-row .form-select { min-width: 9rem; }
.small-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #6c757d; }

/* ---------------------------------------------------------------- name cards */
.biz-card {
  --accent: #5c636a;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  /* Roughly the 85 x 55 mm proportions of a real card at typical widths; grows to fit content. */
  min-height: 14rem;
  padding: 1rem 1.15rem .9rem;
  background: #fff;
  border-radius: .75rem;
  border-top: 6px solid var(--accent);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 16px rgba(16, 24, 40, .08);
  transition: transform .12s ease, box-shadow .12s ease;
}
@media (hover: hover) {
  .biz-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(16, 24, 40, .08), 0 10px 24px rgba(16, 24, 40, .12);
  }
}
.biz-card:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, #fff), 0 6px 16px rgba(16, 24, 40, .08); }
@media (prefers-reduced-motion: reduce) {
  .biz-card { transition: none; }
  .biz-card:hover { transform: none; }
}
.bc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.bc-company {
  color: var(--accent); font-weight: 700; font-size: .85rem;
  letter-spacing: .06em; text-transform: uppercase; min-width: 0;
}
.bc-logo {
  flex-shrink: 0; width: 2.4rem; height: 2.4rem; border-radius: .5rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .95rem;
}
.bc-main { margin-top: auto; }
.bc-name { font-size: 1.4rem; font-weight: 650; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.bc-name a { color: #1d2433; text-decoration: none; }
.bc-title { color: #4a5160; font-size: 1rem; margin-top: .15rem; }
.bc-lines { list-style: none; padding: 0; margin: 0; color: #343a40; font-size: .95rem; }
.bc-lines li { line-height: 1.6; }
.bc-lines .bi { color: var(--accent); margin-right: .25rem; }
.bc-muted { color: #6c757d; font-weight: 400; text-transform: none; letter-spacing: 0; }
.bc-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
/* Buttons sit above the card-wide link so they keep working. */
.bc-action {
  position: relative; z-index: 2;
  min-height: 2.5rem; padding: .35rem .9rem;
  /* Plain fallbacks first for browsers without color-mix() (e.g. iOS before 16.2). */
  border: 1px solid #ced4da;
  background: #f8f9fa;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, #fff);
  color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, #fff);
  font-weight: 600; border-radius: 999px;
}
.bc-action:hover, .bc-action:focus-visible { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Cards in a grid row share the row's height. */
.row > .col > .biz-card { height: 100%; }

/* The big card on a person's page. */
.biz-card-lg { max-width: 32rem; min-height: 19rem; padding: 1.5rem 1.75rem 1.25rem; }
.biz-card-lg .bc-name { font-size: 2rem; }
.biz-card-lg .bc-title { font-size: 1.15rem; }
.biz-card-lg .bc-logo { width: 3.25rem; height: 3.25rem; font-size: 1.2rem; }
.biz-card-lg .bc-lines { font-size: 1.05rem; }

/* Large, labelled action buttons under the big card. */
.action-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.action-bar .btn { min-height: 3rem; padding: .5rem 1.1rem; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }

@media (max-width: 575.98px) {
  .biz-card-lg { padding: 1.25rem 1.25rem 1rem; }
  .biz-card-lg .bc-name { font-size: 1.65rem; }
  .action-bar .btn { flex: 1 1 calc(50% - .5rem); justify-content: center; }
}
