/* Minimal, no-build styling for the public site. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1c2430;
  background: #f7f8fa;
  overflow-wrap: break-word;
}

.container {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.site-header {
  background: #1c2430;
  padding: 0.75rem 1rem;
}

.site-name {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.site-footer {
  text-align: center;
  color: #6b7280;
  padding: 1rem;
  font-size: 0.85rem;
}

.site-footer a { color: inherit; }

h1, h2 { line-height: 1.25; }

a { color: #1d4ed8; }

.breadcrumb { font-size: 0.9rem; }

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.cta { text-align: left; }

.course-list { list-style: none; padding: 0; }

.course-list li { padding: 0.35rem 0; }

.badge {
  display: inline-block;
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.badge.open { background: #dcfce7; color: #166534; }
.badge.waiting { background: #fef9c3; color: #854d0e; }

.topics li { margin-bottom: 0.75rem; }
.topics p { margin: 0.25rem 0 0; }
.topics summary {
  cursor: pointer;
  font-weight: 600;
}
.topics summary::marker { color: #1d4ed8; }

.button {
  display: inline-block;
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1.1rem;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: #1e40af; }

.stacked-form p { margin: 0.5rem 0; }
.stacked-form label { display: block; font-weight: 600; }
.stacked-form input {
  width: 100%;
  max-width: 22rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
}
.stacked-form .helptext {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
}
.stacked-form .errorlist {
  color: #b91c1c;
  font-size: 0.9rem;
  list-style: none;
  padding: 0;
}

.messages { list-style: none; padding: 0; max-width: 46rem; margin: 0.75rem auto; }
.messages li {
  border-radius: 0.375rem;
  padding: 0.6rem 1rem;
  margin: 0.25rem 1rem;
}
.messages .success { background: #dcfce7; color: #166534; }
.messages .info { background: #dbeafe; color: #1e40af; }
.messages .warning { background: #fef9c3; color: #854d0e; }
.messages .error { background: #fee2e2; color: #991b1b; }
