/* Custom styles for the Touche theme integration */

/* The fixed navbar is 72px high, so a scrolled-to element must stop below it. */
html {
  scroll-padding-top: 4.5rem;
}

/* On phones the month name takes its own row above the links. */
.calendar-nav h2 {
  width: 100%;
}

@media (min-width: 768px) {
  .calendar-nav h2 {
    width: auto;
  }
}

.calendar-month {
  table-layout: fixed;
}

.calendar-month td {
  height: 7rem;
  vertical-align: top;
}

/* A Mist border on an unchecked box is about 1.2:1 on Paper; Slate meets the 3:1 floor for controls. */
.form-check-input {
  border-color: #6c757d;
}

/*
 * Touche removes the focus ring, so keyboard users cannot see where they are.
 * Amber alone is about 2:1 on Paper, so an Ink ring sits inside it: one of the two meets 3:1 on any background.
 */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input[type="submit"]:focus-visible,
[role="button"]:focus-visible,
.form-check-input:focus-visible {
  outline: 2px solid #f5a637;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #000;
}
