/* Page-only directory layout. Shared typography and navigation remain unchanged. */
.ba-locations .ba-locations-intro {
  padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem;
  background: var(--ba-x-cloud);
}
.ba-locations-intro .ba-display { color: var(--ba-x-navy); }
.ba-locations-intro .ba-lead { margin: 1.4rem 0 0; color: var(--ba-x-soft); }
.ba-locations .ba-locations-directory { padding-top: 1.5rem; }
.ba-location-group + .ba-location-group { margin-top: clamp(3rem, 5vw, 4.5rem); }
.ba-location-group > .ba-title { margin-bottom: 1.5rem; color: var(--ba-x-navy); }
.ba-location-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.ba-locations .ba-location-grid--offices { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.ba-location-card {
  min-width: 0;
  background: var(--ba-x-white);
  border: 1px solid var(--ba-x-line);
  border-top: 2px solid var(--ba-x-blue);
}
.ba-location-card__image { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.ba-location-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(.68) contrast(1.08);
}
.ba-location-card__body { padding: 1.35rem; }
.ba-location-card .ba-micro { color: var(--ba-x-soft); }
.ba-location-card h3 {
  margin: 0;
  color: var(--ba-x-navy);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 300;
  line-height: 1.3;
}
.ba-location-card .ba-micro + h3 { margin-top: .8rem; }
.ba-location-card address,
.ba-location-card p { margin: 1.1rem 0 0; color: var(--ba-x-soft); font-size: .9rem; line-height: 1.65; font-style: normal; }
.ba-location-card__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1.5rem; }
.ba-location-card__phone { color: var(--ba-x-navy); font-size: .9rem; }
.ba-locations-close__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.ba-locations a:focus-visible { outline: 2px solid var(--ba-x-blue); outline-offset: 4px; }
/* Office-only shared tracks: photo, label, title, address, copy, phone, directions.
   Empty label/phone slots align peers without inserting placeholder content. */
@media (min-width: 768px) {
  .ba-locations .ba-location-grid--offices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* !important: the shared balanced-grid rule in site.css sets grid-row: auto !important on every balanced grid child. */
  .ba-locations .ba-location-grid--offices > .ba-location-card {
    display: grid;
    grid-row: span 7 !important;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .ba-locations .ba-location-grid--offices .ba-location-card__image { grid-row: 1; }
  .ba-locations .ba-location-grid--offices .ba-location-card__body {
    display: grid;
    grid-row: 2 / span 6;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .ba-locations .ba-location-grid--offices .ba-micro { grid-row: 1; }
  .ba-locations .ba-location-grid--offices h3 { grid-row: 2; margin-top: .8rem; }
  .ba-locations .ba-location-grid--offices address { grid-row: 3; }
  .ba-locations .ba-location-grid--offices .ba-location-card__body > p { grid-row: 4; }
  .ba-locations .ba-location-grid--offices .ba-location-card__actions {
    display: grid;
    grid-row: 5 / span 2;
    grid-template-rows: subgrid;
    row-gap: 1rem;
    justify-items: start;
  }
  .ba-locations .ba-location-grid--offices .ba-location-card__phone { grid-row: 1; }
  .ba-locations .ba-location-grid--offices .ba-location-card__actions > .ba-button { grid-row: 2; }
}
@media (min-width: 1100px) {
  .ba-locations .ba-location-grid--offices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .ba-location-grid { grid-template-columns: minmax(0, 1fr); }
}
