body {
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  z-index: 1000;
  padding: 0.5rem 0.75rem;
  background: #000;
  color: #fff;
}

.skip-link:focus {
  left: 0.75rem;
}

main {
  max-width: 960px;
}

.public-page {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.75rem 1rem 3rem;
  font-size: 1.125rem;
  line-height: 1.5;
}

.public-page:has(.scheduling-shell) {
  max-width: 36rem;
}

.public-page h1 {
  font-size: 1.6rem;
  font-weight: 600;
}

.public-slot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  cursor: pointer;
}

.public-slot:focus-within {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.public-slot input {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.scheduling-shell {
  color: #1a2b3c;
}

.scheduling-kicker {
  margin-bottom: 0.85rem;
  color: #5b6b7c;
  font-size: 0.95rem;
}

.scheduling-card {
  padding: 1.25rem 1.15rem 1.35rem;
  background: #fff;
  border: 1px solid #e4eaf0;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(26, 43, 60, 0.06);
}

.scheduling-card-header {
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid #e8eef3;
}

.scheduling-date {
  margin: 0;
  font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  color: #152536;
}

.scheduling-slot-list {
  margin: 0;
  padding: 0;
  border: 0;
}

.scheduling-slot {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.35rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  border: 1px solid #d7e0e8;
  border-radius: 0.75rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.scheduling-slot:last-of-type {
  margin-bottom: 1rem;
}

.scheduling-slot:hover {
  border-color: #b7c8d6;
}

.scheduling-slot:focus-within {
  border-color: #3b82c4;
  box-shadow: 0 0 0 3px rgba(59, 130, 196, 0.18);
}

.scheduling-slot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scheduling-slot-check {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  border: 1.5px solid #8eb4d4;
  border-radius: 0.3rem;
  background: #fff;
}

.scheduling-slot input:checked + .scheduling-slot-check {
  border-color: #2f6fa8;
  background: #2f6fa8;
  box-shadow: inset 0 0 0 0.2rem #fff;
}

.scheduling-slot-time {
  font-size: 1.05rem;
  font-weight: 700;
  color: #152536;
}

.scheduling-submit {
  margin-top: 0.25rem;
}

.legal-page {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.55;
}

.legal-page h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.legal-page p,
.legal-page ul {
  margin-bottom: 0.85rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-meta {
  color: #6c757d;
  font-size: 0.95rem;
}

.legal-callout {
  padding: 0.85rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  background: #fff;
}

.legal-footer {
  margin-top: 2rem;
  color: #6c757d;
  font-size: 0.95rem;
}

.legal-consent-check {
  /* Extra left padding so Bootstrap's negatively-margined checkbox
     stays inside the bordered box. */
  padding: 0.85rem 1rem 0.85rem calc(1.5em + 1rem);
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  background: #fff;
}

.legal-consent-check .form-check-input {
  margin-top: 0.35rem;
}

.legal-consent-check .form-check-label {
  font-size: 1rem;
  line-height: 1.5;
}

.legal-consent-note,
.legal-inline-links {
  margin-top: 0.85rem;
}

.legal-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.legal-page .btn:focus-visible,
.legal-page .form-check-input:focus-visible,
.legal-page .form-control:focus-visible,
.legal-page a:focus-visible {
  outline: 3px solid #0d6efd;
  outline-offset: 2px;
}

/* Legal pages need a wider column than booking screens. */
.public-page:has(.legal-page),
.public-page:has(.home-page) {
  max-width: 42rem;
}

.home-page h1 {
  font-size: 1.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.home-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.home-page p {
  margin-bottom: 0.85rem;
}

.home-lede {
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.home-section {
  margin-bottom: 2rem;
}

.home-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.home-nav-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.home-nav-button {
  display: block;
  line-height: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  outline-offset: 3px;
}

.home-nav-button img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 576px) {
  .home-nav-buttons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home-links li {
  margin-bottom: 0.65rem;
}

.home-links a {
  font-size: 1.05rem;
}

.legal-nav-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.legal-nav-buttons .home-nav-button img {
  width: 100%;
  height: auto;
}

/* Administrator User Guide */
.user-guide-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .user-guide-layout {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }
}

.user-guide-toc {
  font-size: 0.95rem;
}

.user-guide-toc-heading {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.user-guide-toc-list {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.user-guide-toc-list a {
  text-decoration: none;
}

.user-guide-toc-list a.active {
  font-weight: 600;
  text-decoration: underline;
}

.user-guide-body {
  max-width: 42rem;
}

.user-guide-body h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.user-guide-body h2 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.user-guide-body ol.user-guide-steps > li {
  margin-bottom: 0.5rem;
}

.user-guide-callout {
  border-left: 4px solid #6c757d;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  background: #f8f9fa;
}

.user-guide-callout-warning {
  border-left-color: #dc3545;
  background: #fff5f5;
}

.user-guide-figure {
  margin: 1.25rem 0;
}

.user-guide-figure img {
  display: block;
  width: 100%;
  max-width: 40rem;
  height: auto;
  border: 1px solid #dee2e6;
  background: #e9ecef;
}

.user-guide-figure figcaption {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 0.35rem;
}

.user-guide-topic-list {
  padding-left: 1.25rem;
}

.user-guide-topic-list li {
  margin-bottom: 0.4rem;
}

.settlement-signup {
  max-width: 48rem;
}

.settlement-grid-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  background: #fff;
}

.settlement-grid {
  width: 100%;
  min-width: max-content;
  border-collapse: collapse;
  margin: 0;
}

.settlement-grid th,
.settlement-grid td {
  border: 1px solid #e9ecef;
  text-align: center;
  vertical-align: middle;
}

.settlement-grid-corner {
  width: 4.5rem;
  background: #f8f9fa;
}

.settlement-grid-day {
  min-width: 4.75rem;
  padding: 0.55rem 0.4rem;
  background: #f8f9fa;
  font-weight: 600;
  line-height: 1.2;
}

.settlement-grid-weekday {
  display: block;
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 500;
}

.settlement-grid-date {
  display: block;
  font-size: 0.95rem;
  color: #212529;
}

.settlement-grid-time {
  padding: 0.35rem 0.5rem;
  background: #f8f9fa;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  color: #495057;
}

.settlement-grid-cell {
  padding: 0.35rem;
  min-width: 3.5rem;
  height: 2.75rem;
}

.settlement-grid-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  cursor: pointer;
}

.settlement-grid-slot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settlement-grid-check {
  width: 1.2rem;
  height: 1.2rem;
  border: 1.5px solid #8eb4d4;
  border-radius: 0.3rem;
  background: #fff;
}

.settlement-grid-slot:hover .settlement-grid-check {
  border-color: #2f6fa8;
}

.settlement-grid-slot:focus-within .settlement-grid-check {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.settlement-grid-slot input:checked + .settlement-grid-check {
  border-color: #2f6fa8;
  background: #2f6fa8;
  box-shadow: inset 0 0 0 0.2rem #fff;
}

.settlement-grid-empty {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
}

.availability-preview {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.85rem 1rem;
  background: #f8f9fa;
}

.availability-period-list,
.availability-slot-list {
  margin: 0;
}

.availability-period,
.availability-slot {
  font-size: 0.9rem;
  line-height: 1.35;
  padding: 0.15rem 0;
}

.availability-period--busy {
  color: #6c757d;
}

.availability-period--free {
  color: #198754;
  font-weight: 500;
}

.availability-slot {
  color: #212529;
}

