/*
 * Join and thanks (public/join.html, public/thanks.html), Daylight desk. A marble head band, then a paper band with the form card (join) or
 * the place on the SIGNAL screen and the next steps (thanks). Buttons, the CRT, the slab and the bands come from qz.css; the press, spinner
 * and input styles come from qz-quest-board.css (loaded first). Tokens only; component sizes are the custom properties below.
 */
:root {
  --jn-body-min: min(100svh, 40rem);
  --jn-art-w: 40rem;
  --jn-num: 3rem;
  --jn-title: 1.25rem;
}

.jn-head { display: grid; gap: var(--space-3); justify-items: start; }
.jn-head .qz-h1 { overflow-wrap: anywhere; }

.jn-page { min-height: var(--jn-body-min); }
.jn-grid { display: grid; gap: var(--space-8); align-items: start; }
.jn-main { display: grid; gap: var(--space-4); min-width: 0; }
.jn-card { gap: var(--space-6); max-width: var(--size-form-max); }
.jn-step { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
/* The human check lands after the page paints: its space is held so the button below does not move. A 300px widget scrolls inside the card at 320px. */
.jn-card .captcha { max-inline-size: 100%; overflow-x: auto; }
.jn-card .captcha:empty { display: block; border-radius: var(--radius-sm); background: var(--color-sunk); }
#signed-in.jn-step { gap: var(--space-8); }
.jn-group { display: grid; gap: var(--space-3); }
.jn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.jn-card .qz-btn { inline-size: 100%; }
.jn-row .qz-btn { flex: 1 1 auto; inline-size: auto; }
.jn-who, .jn-handle { overflow-wrap: anywhere; }
.jn-handle { font-weight: 600; }
.jn-msg { color: var(--color-risk); font-size: var(--text-caption-size); line-height: var(--text-caption-line); font-weight: 600; overflow-wrap: anywhere; }
.jn-msg:empty { display: none; }
.jn-msg--muted { color: var(--color-ink-muted); font-weight: 400; }
.jn-notice { font-weight: 600; overflow-wrap: anywhere; }
#error-text { color: var(--color-risk); }
.jn-terms { max-width: var(--measure); text-wrap: pretty; }
.jn-link { justify-self: start; display: inline-flex; align-items: center; min-height: var(--hit); padding: 0; border: 0; background: none; color: var(--color-link); font: inherit; text-decoration: underline; text-underline-offset: var(--underline-offset); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.jn-art { display: none; margin: 0; overflow: hidden; border: var(--border-hair) solid var(--color-hairline); border-radius: var(--radius-md); background: var(--color-sunk); aspect-ratio: 3 / 2; }
.jn-art img { inline-size: 100%; block-size: 100%; object-fit: cover; }
@media (min-width: 60rem) {
  .jn-grid { grid-template-columns: minmax(0, var(--size-form-max)) minmax(0, var(--jn-art-w)); justify-content: space-between; gap: var(--space-16); }
  .jn-art { display: block; }
}

/* Thanks: a loading card, then the place on the screen and three blocks of next steps. */
.jn-stack { display: grid; gap: var(--space-8); }
#loading { min-height: var(--space-16); }
#loading .skeleton + .skeleton { margin-block-start: var(--space-2); }
.jn-ready { display: grid; gap: var(--space-12); align-items: start; min-width: 0; }
.jn-place { display: grid; gap: var(--space-3); min-width: 0; }
.jn-place .qz-crt__label { font-size: inherit; line-height: inherit; font-weight: inherit; }
.jn-readout { display: grid; gap: var(--crt-gap); }
.jn-readout .qz-crt__amount { font-size: var(--qb-amount); font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-crt-val); overflow-wrap: anywhere; }
.jn-readout .qz-crt__val { font-variant-numeric: tabular-nums; }
.jn-readout .qz-crt__val:empty { display: none; }
#points-line { font-variant-numeric: tabular-nums; text-transform: none; }
.jn-block { display: grid; gap: var(--space-3); min-width: 0; }
.jn-copy { display: grid; gap: var(--space-2); }
.jn-copy .qb-input { min-width: 0; }
.jn-steps { display: grid; gap: var(--space-6); max-width: var(--measure); }
.jn-steps li { display: grid; grid-template-columns: var(--jn-num) minmax(0, 1fr); gap: var(--space-3); align-items: baseline; }
.jn-n { color: var(--color-ink-muted); font-family: var(--font-display); font-weight: var(--font-display-weight); font-size: var(--text-h3-size); line-height: 1; font-variant-numeric: tabular-nums; }
.jn-steps .jn-body { display: grid; gap: var(--space-1); }
.jn-step-title { font-size: var(--jn-title); line-height: var(--text-lead-line); letter-spacing: var(--tracking-wide); }
.jn-steps p { color: var(--color-ink-muted); text-wrap: pretty; }
.jn-moves .jn-row { margin-block-start: var(--space-2); }
.jn-share-text { padding: var(--space-3) var(--space-4); border: var(--border-hair) solid var(--color-hairline); border-radius: var(--radius-sm); background: var(--color-sunk); overflow-wrap: anywhere; }
@media (min-width: 40rem) {
  .jn-row .qz-btn { flex: 0 1 auto; }
  .jn-copy { grid-template-columns: minmax(0, 1fr) auto; }
  .jn-copy .qz-btn { inline-size: auto; }
}
@media (min-width: 60rem) {
  .jn-ready { grid-template-columns: minmax(0, var(--qb-streak-w)) minmax(0, 1fr); column-gap: var(--space-16); }
  .jn-place { grid-column: 1; grid-row: 1 / span 3; position: sticky; inset-block-start: var(--space-8); }
  .jn-block { grid-column: 2; }
}
