/* Rounds — calendar index, planner form, and walkthrough show page */

/* Calendar (rounds#index) */
.rounds-calendar {
  display: flex;
  flex-direction: column;
}

.rounds-calendar-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--bs-border-color);
}

.rounds-calendar-header {
  border-top: none;
}

.rounds-calendar-header .rounds-calendar-cell {
  padding: 0.5rem;
  min-height: auto;
}

.rounds-calendar-cell {
  padding: 0.5rem;
  border-right: 1px solid var(--bs-border-color);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rounds-calendar-cell:last-child {
  border-right: none;
}

.rounds-calendar-cell--out-of-month {
  background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
}

.rounds-calendar-cell--today {
  background: hsl(from var(--accent-hsl) h s calc(l + 35) / 0.75);
}

.rounds-calendar-cell__date {
  font-weight: 600;
  font-size: 0.9rem;
}

.rounds-calendar-cell__date-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  width: 1.6rem;
  height: 1.6rem;
  line-height: 1.6rem;
  text-align: center;
  border-radius: 50%;
}

.rounds-calendar-cell__date-link:hover {
  background: var(--bs-tertiary-bg);
}

.rounds-calendar-cell__round {
  display: block;
  padding: 0.15rem 0.4rem;
  background: var(--accent-hex);
  color: #fff !important;
  border-radius: 0.25rem;
  font-size: 0.78rem;
  line-height: 1.3;
}

.rounds-calendar-cell__round:hover {
  filter: brightness(0.9);
}

/* Planner form (rounds#new / rounds#edit) */
.rounds-planner-search-results {
  z-index: 1000;
}

.rounds-planner-map {
  height: 500px;
  border-radius: 4px;
}

/* Walkthrough show (rounds#show) */
.rounds-show-map {
  height: 480px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.rounds-stop-position {
  font-size: 1.5rem;
  min-width: 2.5rem;
}
