/* Page-specific: signup, legal prose, admin. */

/* --- Signup -------------------------------------------------------------- */

.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-9);
  align-items: start;
}
.signup-aside {
  position: sticky;
  top: 100px;
  background: linear-gradient(165deg, var(--paper-brand), var(--paper-tint));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.signup-aside h2 { font-size: var(--text-xl); }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: var(--space-5);
  color: var(--text-muted);
  font-size: var(--text-base);
}
.steps li:last-child { margin-bottom: 0; }
.steps li strong { display: block; color: var(--ink-900); font-weight: 620; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-600);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 680;
}

.welcome-hero {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}
.welcome-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--positive-50);
  color: var(--positive-500);
}
.position-chip {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--brand-50);
  border: 1px solid color-mix(in srgb, var(--brand-300) 45%, transparent);
  color: var(--brand-700);
}
.position-chip strong { font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.02em; }

.share-box {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-3);
  background: var(--paper-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--ink-700);
  overflow: hidden;
}
.share-box span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 940px) {
  .signup-layout { grid-template-columns: minmax(0, 1fr); }
  .signup-aside { position: static; order: -1; }
}

/* --- Legal / long-form prose --------------------------------------------- */

.prose { max-width: 44rem; }
.prose h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  padding-top: var(--space-2);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--text-lg); margin-top: var(--space-6); }
.prose p, .prose li { color: var(--ink-700); }
.prose ul { padding-left: 1.2rem; }
.prose__updated {
  font-size: var(--text-sm);
  color: var(--text-subtle);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-6);
}

.toc {
  list-style: none;
  padding: var(--space-5);
  margin: 0 0 var(--space-7);
  background: var(--paper-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  columns: 2;
  column-gap: var(--space-6);
  font-size: var(--text-sm);
}
.toc li { margin-bottom: var(--space-2); break-inside: avoid; }
@media (max-width: 620px) { .toc { columns: 1; } }

/* --- Admin --------------------------------------------------------------- */

.admin { padding-block: var(--space-6) var(--space-9); }
.admin__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-6);
}
.admin__bar h1 { font-size: var(--text-2xl); margin: 0; }
.admin__bar .actions { margin-left: auto; }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.tile {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  background: #fff;
}
.tile__value { font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.03em; }
.tile__label { font-size: var(--text-sm); color: var(--text-muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th, .table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table th {
  background: var(--paper-tint);
  font-weight: 620;
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: sticky;
  top: 0;
}
.table tbody tr:hover { background: var(--paper-tint); }
.table td.wrap { white-space: normal; min-width: 18rem; }
.table tr:last-child td { border-bottom: 0; }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--ink-50);
  border: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--ink-700);
  text-decoration: none;
}
.chip b { color: var(--ink-900); }
.chip:hover { border-color: var(--brand-300); color: var(--brand-700); }

.empty {
  padding: var(--space-9);
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}
