/**
 * Hub, public welcome, and Organization page header.
 * Load after styles.css — same design tokens and button chrome as Match Booth (.btn).
 */

.hub-wrap {
  width: min(720px, 94vw);
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}

.hub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hub-head h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.hub-sub {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 42rem;
}

.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  flex: 0 0 auto;
}

/* Match styles.css .btn — works for both <a> and <button>. */
.hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  box-sizing: border-box;
  min-height: 2rem;
  padding: 0.34rem 0.64rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

button.hub-btn {
  appearance: none;
  margin: 0;
}

.hub-btn:hover:not(:disabled) {
  background: var(--surface-hover);
}

.hub-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hub-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

/* App picker cards — same surface/border language as .admin-backup-list shells. */
.hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  min-height: 5.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.hub-card:hover:not(:disabled) {
  background: var(--surface-hover);
}

.hub-card:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hub-card__title {
  font-size: 1rem;
  font-weight: 700;
}

.hub-card__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.hub-card__tag {
  font-size: 0.75rem;
  color: var(--muted);
}

.hub-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 5.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.hub-tile__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.hub-tile__desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.hub-feedback {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.4;
}

.hub-foot {
  margin: 2rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 42rem;
}

.hub-foot a {
  color: inherit;
}

.hub-loading {
  font-size: 0.82rem;
  color: var(--muted);
}
