/* ============================================================
 * Public token pages (Task 6.3b): the syndicator offer reply, the
 * merchant funding confirmation and the invite / reset links.
 * Loaded by head.ejs on every page with no portal. Mobile first: a
 * single column at 360 px, and every target at least 44 px.
 * ============================================================ */

.portal-public .auth-shell {
  min-height: 100vh;
  padding: var(--s4);
  align-items: flex-start;
}

.portal-public .auth-card {
  width: 100%;
  max-width: 520px;
  margin: var(--s4) auto;
  padding: var(--s5) var(--s4);
}

.portal-public .auth-card h1 { font-size: 1.35rem; line-height: 1.3; }

.portal-public input,
.portal-public select,
.portal-public textarea,
.portal-public button,
.portal-public .btn-primary,
.portal-public .btn-secondary {
  min-height: 44px;
  font-size: 16px; /* no iOS zoom on focus */
}

.portal-public button,
.portal-public .btn-primary,
.portal-public .btn-secondary { width: 100%; justify-content: center; }

.portal-public .kv { display: grid; grid-template-columns: 1fr; gap: var(--s1); }
.portal-public .kv dt { color: var(--mute); font-size: var(--fs-sm); }
.portal-public .kv dd { margin: 0 0 var(--s2); font-variant-numeric: var(--num); }

/* The fragment-token pages show their form once the script has moved the token. */
.js .needs-token[hidden] { display: none; }

@media (min-width: 640px) {
  .portal-public .auth-card { padding: var(--s8); }
  .portal-public .kv { grid-template-columns: max-content 1fr; column-gap: var(--s4); }
  .portal-public button,
  .portal-public .btn-primary,
  .portal-public .btn-secondary { width: auto; }
}
