/* Contacts page: the clinic's map in the banner, today's hours under the address, the week, the phones and the address set large,
   how to get there, the questions before a visit, then the booking card. */

/* Banner with the map: copy on the left, the map on the right inside the card. */
.brxe-section:is(.st-pagehero--map, .st-pagehero--aside) .brxe-container.st-pagehero__inner {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: center;
}
.st-pagehero:is(.st-pagehero--map, .st-pagehero--aside) .brxe-shortcode { min-width: 0; }
.st-map { margin: 0; overflow: hidden; border-radius: var(--radius-card); background: var(--color-deep-2); box-shadow: 0 0 0 var(--rule-hair) color-mix(in oklab, var(--color-on-deep) 18%, transparent); }
.st-map__frame { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border: 0; }

.st-today { display: flex; align-items: center; gap: var(--space-xs); margin: 0; font-size: var(--text-md); line-height: 1.4; color: color-mix(in oklab, var(--color-on-deep) 88%, transparent); }
.st-today__icon { display: block; flex: 0 0 auto; width: 20px; height: 20px; }
.st-today.is-live .st-today__text { color: var(--color-on-deep); font-weight: var(--weight-strong); }

/* Hours, phones, address: three columns of facts on paper, divided by hairlines, no boxes. */
.brxe-section.st-visit { display: block; width: 100%; padding: var(--space-3xl) 0; background: var(--color-paper); font-family: var(--font-body); color: var(--color-ink); }
.brxe-container.st-visit__inner, .brxe-container.st-routes__inner { display: block; width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--section-inset); }
.st-facts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.st-fact { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); min-width: 0; padding: 0 var(--space-xl); }
.st-fact:first-child { padding-left: 0; }
.st-fact:last-child { padding-right: 0; }
.st-fact + .st-fact { border-left: var(--rule-hair) solid var(--color-rule); }
.st-fact__label { display: flex; align-items: center; gap: var(--space-xs); margin: 0; font-family: var(--font-body); font-size: var(--text-md); font-weight: var(--weight-strong); line-height: 1.3; letter-spacing: 0; color: var(--color-muted); }
.st-fact__icon { display: block; width: 20px; height: 20px; color: var(--color-accent); }

.st-hours { width: 100%; border-collapse: collapse; font-size: var(--text-md); font-variant-numeric: tabular-nums; }
.st-hours__row > * { padding: var(--space-2xs) 0; text-align: left; font-weight: 400; color: var(--color-ink-2); }
.st-hours__row > .st-hours__time { text-align: right; }
.st-hours__row.is-off > * { color: var(--color-muted); }
.st-hours__row.is-today > * { color: var(--color-ink); font-weight: var(--weight-strong); }
.st-hours__tag { margin-left: var(--space-2xs); padding: 0 var(--space-xs); border-radius: var(--radius-pill); background: var(--color-mint); font-size: var(--text-sm); font-weight: 400; color: var(--color-ink); }

.st-fact__phones { display: grid; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.st-fact__phone {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); line-height: 1.2;
  font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--color-ink); text-decoration: none;
}
.st-fact__address { margin: 0; max-width: 22ch; font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); line-height: 1.25; color: var(--color-ink); }
.st-fact__mail { margin: var(--space-xs) 0 0; }
.st-fact__link { font-size: var(--text-md); font-weight: var(--weight-strong); color: var(--color-ink); }
:is(.st-fact__phone, .st-fact__link):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: var(--space-3xs); }

/* How to get there: three mint cards, an icon chip on each. */
.brxe-section.st-routes { display: block; width: 100%; padding: 0 0 var(--space-3xl); background: var(--color-paper); font-family: var(--font-body); color: var(--color-ink); }
.st-route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.st-route__item { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); min-width: 0; margin: 0; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-mint); }
/* Concentric: the card's 24 px radius minus its 24 px padding would be 0, so the chip takes the small radius. */
.st-route__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--space-xs); border-radius: var(--radius-md); background: var(--color-deep); color: var(--color-on-deep); }
.st-route__svg { display: block; width: 24px; height: 24px; }
.st-route__title { margin: 0; font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--display-weight); letter-spacing: var(--tracking-display); line-height: 1.25; color: var(--color-ink); }
.st-route__text { margin: 0; font-size: var(--text-md); line-height: 1.5; color: var(--color-ink-2); }

/* Fact links take the same drawn underline as the rest of the site's links. */
:is(.st-fact__phone, .st-fact__link) {
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(color-mix(in oklab, currentColor 30%, transparent), color-mix(in oklab, currentColor 30%, transparent));
  background-position: 0 100%, 0 100%; background-repeat: no-repeat; background-size: 0% 1px, 100% 1px;
  text-decoration: none; transition: background-size 420ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  :is(.st-fact__phone, .st-fact__link):hover { background-size: 100% 1px, 100% 1px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.st-fact__phone, .st-fact__link) { transition: none; }
}

@media (max-width: 60rem) {
  .brxe-section:is(.st-pagehero--map, .st-pagehero--aside) .brxe-container.st-pagehero__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .st-map__frame { aspect-ratio: 16 / 10; }
  .brxe-container.st-visit__inner, .brxe-container.st-routes__inner { padding-inline: var(--section-inset); }
  .st-facts3 { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .st-fact, .st-fact:first-child, .st-fact:last-child { padding: 0; }
  .st-fact + .st-fact { padding-top: var(--space-xl); border-left: 0; border-top: var(--rule-hair) solid var(--color-rule); }
  .st-route { grid-template-columns: minmax(0, 1fr); }
  .brxe-section.st-visit { padding: var(--space-2xl) 0; }
}
