html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
/* Home page cards */
.home-card .card-header {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.home-stat {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.home-stat-number {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
}

/* Occasion detail: collapsible "Spend per person" card */
.spend-toggle {
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.spend-toggle:focus-visible {
  outline: 2px solid #258cfb;
  outline-offset: -2px;
}

.spend-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
}

.spend-toggle:not(.collapsed) .spend-chevron {
  transform: rotate(180deg);
}

/* Keep the money columns together on wide screens instead of spreading across the page;
   on a phone the table simply fills the card. */
.spend-table {
  max-width: 36rem;
}

.spend-table td:not(:first-child),
.spend-table th:not(:first-child) {
  white-space: nowrap;
  width: 1%;
  padding-left: 0.75rem;
}
