/**
 * Niagara Transit — [place_routes] chips and the .nt-place-card tile
 *
 * Chips are spans: the card's Column Link is the link. Colours arrive as
 * inline styles from the PHP, except the night chip of a pair (#042935 on
 * white). The card rules follow the homepage .ntt-go tile (home/home.css).
 */

.nt-place-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}
.nt-pr-pair {
  display: inline-flex;
  position: relative;
}
/* Same shape as the route list's .nt-route-pill and the stop pages' badges:
   a 5px-radius rectangle in the route colour, heavy numerals. */
.nt-pr-chip {
  display: inline-block;
  min-width: 2.75rem;
  padding: 5px 8px;
  border-radius: 5px;
  font-family: Inter, sans-serif;
  font-weight: 800;
  font-size: .9375rem;
  line-height: 1.2;
  text-align: center;
  font-variant-numeric: tabular-nums lining-nums;
  box-sizing: border-box;
}
.nt-pr-pair .nt-pr-chip:first-child { border-radius: 5px 0 0 5px; }
.nt-pr-pair .nt-pr-chip.is-night {
  border-radius: 0 5px 5px 0;
  background: #042935;
  color: #FFFFFF;
}
.nt-pr-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* A place card: the whole tile is the builder's Column Link. A plain
   chevron top-right, and the heading underlines on hover. */
.nt-place-card { position: relative; }
/* Cards share one inner row and wrap; column_margin only spaces them
   sideways, so give wrapped rows the same 20px (phones already stack
   with Salient's own column margin). */
@media (min-width: 690px) {
  .nt-place-card { margin-bottom: 20px !important; }
}
.nt-place-card > .vc_column-inner::after {
  content: ""; position: absolute; top: 30px; right: 26px; width: 9px; height: 9px;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg); pointer-events: none;
}
/* Keep long titles clear of the chevron (it sits 26px in, 9px wide). */
html body .nt-place-card .nectar-responsive-text h3,
html body .nt-place-card h3 { padding-right: 28px !important; }
@media (hover: hover) {
  .nt-place-card:hover h3 {
    text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
  }
}
/* Salient forces its own focus ring on every :focus-visible in style.css;
   this out-specifies it. */
html body .nt-place-card > .vc_column-inner > a.column-link:focus-visible {
  outline: 3px solid #000014 !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
  border-radius: 20px;
}
