/* ── The join wizard ──────────────────────────────────────────────────
 *
 * Loaded only on /join/. Everything the page can borrow from
 * hrhs-system.css it borrows — .wrap, .phead, .sec, .fld, .inp, .chip, .btn,
 * .notice, .eyebrow — so what is left here is the step bar and the typeahead,
 * neither of which exists anywhere else. */

.jn { max-width: 720px; }
.jn__foot { text-align: center; }
.jn__acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.jn__acts .btn:first-child { flex: 1; justify-content: center; min-width: 200px; }

/* ── the step bar ────────────────────────────────────────────────── */
.jn__steps {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
    margin: 0 0 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.jn__step {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: var(--faint); white-space: nowrap;
}
.jn__step i {
    display: inline-grid; place-items: center; width: 22px; height: 22px;
    border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 700;
    background: var(--line-soft); color: var(--muted);
}
.jn__step.is-done { color: var(--ink-2); }
.jn__step.is-done i { background: var(--go-bed); color: var(--go); }
.jn__step.is-on { color: var(--ink); font-weight: 700; }
.jn__step.is-on i { background: var(--ink); color: #fff; }
.jn__step + .jn__step::before {
    content: ""; width: 18px; height: 1px; background: var(--line);
    margin-right: 8px; flex: 0 0 auto;
}

/* ── chips that are really inputs ────────────────────────────────── */
/* The control is a real radio or checkbox inside the label, so the form posts
 * with no script at all. It is clipped rather than display:none, because a
 * display:none control is not focusable and the keyboard loses the picker. */
.jn-pick { cursor: pointer; position: relative; }
.jn-pick input {
    position: absolute; opacity: 0; width: 100%; height: 100%;
    inset: 0; margin: 0; cursor: pointer;
}
.jn-pick:has(input:focus-visible) { outline: 2px solid var(--go); outline-offset: 2px; }
.jn-subs { display: flex; gap: 7px; flex-wrap: wrap; }

/* ── type-and-filter over a long list ────────────────────────────── */
/* The directory's control, ported. Twenty-seven trades as pills is most of a
 * screen before the pro has answered anything, and the list only grows. */
.jn-fgrp__n {
    display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
    background: var(--line-soft); color: var(--muted);
    font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0;
    text-transform: none; font-weight: 600; vertical-align: 1px;
}
.jn-minisearch { margin-bottom: 8px; }
.jn-flist {
    max-height: 268px; overflow-y: auto; padding-right: 3px;
    border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--card);
}
.jn-flist::-webkit-scrollbar { width: 5px; }
.jn-flist::-webkit-scrollbar-thumb { background: #D6DFEC; border-radius: 5px; }
.jn-flist__none { font-size: 13.5px; color: var(--muted); padding: 10px 12px; }
.jn-flist__none[hidden] { display: none; }

.jn-frow {
    display: block; margin: 0; padding: 0; cursor: pointer;
    text-transform: none; letter-spacing: normal; font-weight: 400;
}
.jn-frow[hidden] { display: none; }
/* Off-screen rather than display:none — a radio that is not rendered is not
 * focusable, and the group has to be reachable by keyboard. */
.jn-frow input { position: absolute; opacity: 0; width: 0; height: 0; }
.jn-frow__in {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; min-height: 44px; padding: 9px 12px;
    font-size: 14.5px; color: var(--ink-2); text-align: left;
    border-bottom: 1px solid var(--line-soft);
}
.jn-frow:last-child .jn-frow__in { border-bottom: 0; }
.jn-frow:hover .jn-frow__in { background: var(--tint); }
.jn-frow__t { min-width: 0; }
.jn-frow__tick { flex: 0 0 auto; color: transparent; font-size: 13px; font-weight: 700; }
.jn-frow input:checked ~ .jn-frow__in { background: var(--ink); color: #fff; font-weight: 600; }
.jn-frow input:checked ~ .jn-frow__in .jn-frow__tick { color: var(--green); }
.jn-frow input:focus-visible ~ .jn-frow__in { outline: 2px solid var(--go); outline-offset: -2px; }

/* ── the typeahead ───────────────────────────────────────────────── */
.jn-ta { position: relative; }
.jn-ta__spin {
    position: absolute; right: 13px; top: 50%; margin-top: -8px;
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid var(--line); border-right-color: var(--go);
    animation: hrhs-spin .8s linear infinite;
}
.jn-ta__pop {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-tile);
    box-shadow: var(--lift2); overflow: hidden; max-height: 340px; overflow-y: auto;
}
.jn-ta__hd, .jn-ta__ft, .jn-ta__none {
    margin: 0; padding: 10px 14px; font-size: 12.5px; color: var(--muted); line-height: 1.5;
}
.jn-ta__hd { border-bottom: 1px solid var(--line-soft); background: var(--tint); font-weight: 600; }
.jn-ta__ft { border-top: 1px solid var(--line-soft); background: var(--tint); }
.jn-ta__none { padding: 16px 14px; color: var(--ink-2); }

/* Every property a theme is likely to have opinions about, said here.
 *
 * The options used to be <button>s, and on the live site the theme's button
 * styling took them: bordered, centerd, shrink-to-fit, two to a row — a grid of
 * cards where a list belonged. They are divs now, which is also the correct
 * listbox structure, and this block states the rest so nothing inherited can
 * turn a row back into a card. */
.jn-ta__pop, .jn-ta__pop * { box-sizing: border-box; }
.jn-ta__opt, .jn-ta__picked {
    display: flex; align-items: center; gap: 11px;
    width: 100%; max-width: none; min-width: 0; float: none; clear: both;
    margin: 0; padding: 11px 14px;
    background: none; border: 0; border-radius: 0; box-shadow: none;
    text-align: left; text-transform: none; letter-spacing: normal;
    border-bottom: 1px solid var(--line-soft); font-family: inherit; cursor: pointer;
}
.jn-ta__opt:last-of-type { border-bottom: 0; }
.jn-ta__opt:hover, .jn-ta__opt.is-on { background: var(--tint); }
.jn-ta__opt.is-on { box-shadow: inset 3px 0 0 var(--go); }
.jn-ta__tile {
    width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
    display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px;
}
.jn-ta__t { flex: 1; min-width: 0; }
.jn-ta__t b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.jn-ta__t span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.jn-ta__go {
    flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--go);
    background: var(--go-bed); padding: 5px 11px; border-radius: 999px;
}

/* [hidden] is a zero-specificity UA rule, so ANY class rule that sets display
 * beats it — and .jn-ta__picked sets display:flex two rules up. Without this
 * the empty claim slot rendered as a green pill under the field on first load,
 * before anybody had searched for anything. Stated for the pop-up too, which
 * only survives today because nothing sets its display. */
.jn-ta__picked[hidden], .jn-ta__pop[hidden], .jn-ta__spin[hidden] { display: none !important; }

/* The field is replaced by the thing chosen, so it cannot be half-claimed. */
.jn-ta__picked {
    border: 1px solid var(--go); border-radius: var(--r-tile);
    background: var(--go-bed); padding: 12px 14px; margin-top: 4px;
}
.jn-ta__x, .jn-ta__x.btn--bare {
    flex: 0 0 auto; border: 0; background: rgba(255,255,255,.7);
    width: 28px; height: 28px; min-width: 0; min-height: 0; padding: 0; margin: 0;
    border-radius: 50%; font-size: 15px; line-height: 1; color: var(--ink-2);
    cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: normal;
}
.jn-ta__x:hover { background: #fff; color: var(--ink); }

/* ── step 4 preview ──────────────────────────────────────────────── */
.jn__preview { background: var(--tint); }

/* ── the claim-received screen ───────────────────────────────────── */
.jn__what-r { display: flex; gap: 13px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.jn__what-r:first-child { padding-top: 0; }
.jn__what-r:last-child { border-bottom: 0; padding-bottom: 0; }
.jn__what-n {
    width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
    background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
}
.jn__what-t { flex: 1; min-width: 0; }
.jn__what-t b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.jn__what-t span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-top: 3px; }

@media (max-width: 620px) {
    .jn__step + .jn__step::before { display: none; }
    .jn__steps { gap: 12px; }
    .jn__acts .btn { flex: 1 1 100%; justify-content: center; }
}
