/**
 * Contact details. Same border and corners as the accordion below it, and
 * the same icon tiles as the place rows on the home screen. Icons are Line
 * Awesome, which the site loads on every page (the header uses it too).
 * Each link covers its whole row, so the row is one tap target. Stacked on
 * phones, three across from 768px.
 */

.tc-contact-details {
  margin: 0;
  font-style: normal;
}

.tc-contact-details__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: var(--bs-border-radius, 0.375rem);
  background: #fff;
}

.tc-contact-details__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 16px;
}

.tc-contact-details__item + .tc-contact-details__item {
  border-top: 1px solid var(--bs-border-color, #dee2e6);
}

.tc-contact-details__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 6px;
  background: #f8f9fa;
  color: var(--bs-heritage-indigo, #191957);
}

.tc-contact-details__icon .la {
  font-size: 1.375rem;
  line-height: 1;
}

.tc-contact-details__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.tc-contact-details__label {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--bs-secondary-color, #6c757d);
}

.tc-contact-details__value {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: #212529;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.tc-contact-details__line {
  display: block;
}

a.tc-contact-details__value::after {
  content: "";
  position: absolute;
  inset: 0;
}

a.tc-contact-details__value:hover {
  color: #212529;
  text-decoration: underline;
}

a.tc-contact-details__value:focus-visible {
  outline: none;
}

.tc-contact-details__item:has(a.tc-contact-details__value:focus-visible) {
  outline: 3px solid var(--bs-primary, #c71c1c);
  outline-offset: -3px;
}

@media (min-width: 768px) {
  .tc-contact-details__list {
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
  }

  .tc-contact-details__item + .tc-contact-details__item {
    border-top: 0;
    border-left: 1px solid var(--bs-border-color, #dee2e6);
  }
}
