/* Glue for the server-rendered pages: what the design system does not cover
   because it only arises once the markup is Django's rather than React's. */

/* The chip row is a radio group wearing chips. Bootstrap's `.btn-check` hides
   the input; the checked state has to travel to the label that shows it. */
.btn-check:checked + .chip {
  border-color: var(--color-brand);
  color: var(--color-brand);
}
.btn-check:focus-visible + .chip {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* The place name inside a row is a link, and the row itself is a control that
   flies the map. The link keeps the row's colour so it does not read as the
   only thing on the row worth clicking. */
.place-row__name {
  color: inherit;
  text-decoration: none;
}
.place-row__name:hover,
.place-row__name:focus-visible {
  color: var(--color-brand);
  text-decoration: underline;
}

/* Messages on a page the map owns. Centred over the frame rather than pushed
   into the layout: there is no page flow here to insert a banner into. */
.koorda-flash {
  position: fixed;
  z-index: 5;
  top: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - var(--space-8)));
  pointer-events: none;
}
.koorda-flash .alert {
  pointer-events: auto;
  box-shadow: var(--shadow-md);
}
