/* The public application form and status page (/join/): on top of /css/style.css. */

.join-main {
  max-width: 760px;
}
.join-intro h1 {
  margin: 0 0 8px;
}
.join-intro {
  margin-bottom: 18px;
}
.join-form fieldset {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
  min-width: 0;
}
.join-form legend {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--gold);
  margin-bottom: 10px;
  padding: 0;
}
.join-form .field {
  margin-bottom: 12px;
}
.join-form .field em {
  text-transform: none;
  letter-spacing: 0;
  font-style: normal;
  color: var(--faint);
}
.join-form input[type="text"],
.join-form input[type="number"],
.join-form textarea {
  width: 100%;
}
.join-form textarea {
  resize: vertical;
  line-height: 1.45;
}
.join-form .count {
  align-self: flex-end;
  font-size: 12px;
  color: var(--faint);
  text-transform: none;
  letter-spacing: 0;
}
.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 14px;
}
.rules ol {
  margin: 0 0 12px;
  padding-left: 22px;
  line-height: 1.55;
}
.rules .check {
  color: var(--text);
  font-weight: 600;
}
.btn.big {
  min-height: 44px;
  padding: 8px 22px;
  font-size: 16px;
}
#turnstile:not(:empty) {
  margin-bottom: 12px;
}
/* The honeypot: out of sight and out of the tab order, but still in the form for whatever fills forms blindly. */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.join-thanks h2 {
  margin-top: 0;
}
.join-thanks h3 {
  margin: 16px 0 6px;
  font-size: 15px;
  color: var(--gold);
}
.join-thanks ol {
  padding-left: 22px;
  line-height: 1.55;
}
.status-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.status-link a {
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.join-status .status-title {
  margin: 4px 0 8px;
}
.status-new {
  color: var(--gold);
}
.status-accepted,
.status-joined {
  color: var(--good);
}
.status-declined {
  color: var(--bad);
}
.status-withdrawn {
  color: var(--muted);
}
.status-message {
  margin: 14px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--gold);
  background: var(--surface-2);
  border-radius: 0 8px 8px 0;
}
.status-message p:last-child {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.withdraw {
  margin-top: 16px;
}
.join-ask .inline-form input {
  flex: 1;
}
/* The Rules page's text, in a box of its own so that the form stays short. */
#rules-text {
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}
#rules-text h2,
#rules-text h3,
#rules-text h4 {
  font-size: 15px;
  margin: 12px 0 4px;
}
.join-thanks:focus {
  outline: none;
}
