/* Joining pages: the alumni claim and the Door (Alumni-Claim and Door-* boards).
   Built on the sign-in split page (ic/screens/signin.css): on a phone full screen, porcelain or cobalt; on a computer the
   cobalt brand side with the line on the left and the door on the right. */
.jn .sign-box { gap: 0; }
.jn .sign-art .sign-line, .jn-art .sign-line { overflow: visible; }

/* the small mark and name at the top of a phone screen */
.jn-top { display: flex; align-items: center; gap: 10px; height: 40px; flex: none; text-decoration: none; color: var(--cobalt); align-self: flex-start; }
.jn-top span { font-family: var(--serif); font-size: 22px; line-height: 1.1; }

.jn-lines { display: flex; flex-direction: column; gap: 10px; }
.jn .jn-lines .sign-text, .jn .jn-step .sign-text { margin-top: 0; }
.jn-fine { font-size: 14px; line-height: 1.5; color: var(--soft); }
.jn .jn-founding { margin-top: 16px; }
.jn-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jn-err { padding: 12px 14px; border-radius: 4px; background: #FBE9E7; color: var(--danger); font-size: 14px; line-height: 1.4; }

/* forms */
.jn-form { display: flex; flex-direction: column; gap: 18px; }
.jn-field { display: flex; flex-direction: column; gap: 6px; }
.jn-field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.jn-input { height: 48px; padding: 0 14px; color: var(--ink); }
textarea.jn-input { height: auto; min-height: 0; padding: 12px 14px; line-height: 1.4; resize: vertical; }
.jn-input::placeholder { color: #6B6F8E; }
.jn-input[aria-invalid="true"] { border-color: var(--danger); }
.jn-help { font-size: 13px; line-height: 1.4; color: var(--soft); }
.jn-ferr { font-size: 13px; line-height: 1.4; color: var(--danger); font-weight: 500; }
.jn-inline { display: flex; gap: 8px; }
.jn-inline .input { flex: 1; min-width: 0; }
.sign .btn.jn-save { width: auto; flex: none; min-height: 48px; padding: 0 16px; }

/* plans: large radio choices */
.jn-plans { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.jn-plan { position: relative; min-height: 68px; padding: 12px 18px; background: var(--white); border: 1px solid var(--cobalt); border-radius: 4px;
  display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 500; cursor: pointer;
  transition: background .2s var(--ease), box-shadow .2s var(--ease); }
.jn-plan:hover { background: var(--wash); }
.jn-plan input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.jn-radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--cobalt); flex: none; display: grid; place-items: center; background: var(--white); }
.jn-plan input:checked + .jn-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cobalt); }
.jn-plan:has(input:checked) { background: var(--wash); box-shadow: inset 0 0 0 1px var(--cobalt); }
.jn-plan:has(input:focus-visible) { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.jn-plan-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.jn-plan-t small { font-size: 13px; font-weight: 400; color: var(--soft); }
.jn-plan-p { font-variant-numeric: tabular-nums lining-nums; text-align: right; }

/* the two welcome steps */
.jn-step { display: flex; flex-direction: column; gap: 12px; }
.jn-step-h { font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 1.4; }
.jn-done { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; font-size: 15px; }
.jn-done .link { margin-left: auto; }
.jn-check { flex: none; }

/* ---- phone ---- */
@media (max-width: 899px) {
  .jn.jn-top-row .sign-main { padding-top: 24px; }
  .jn.jn-top-row .sign-h1 { margin-top: 48px; }
  .jn .sign-h1.jn-big { font-size: 48px; line-height: 1.02; }
  .jn .jn-lines { margin-top: 14px; }
  .jn-plans, .jn-form, .jn-noplans { margin-top: 28px; }
  .jn-step { margin-top: 32px; }
  .jn-step + .jn-step { margin-top: 28px; }
  .jn-form + .jn-fine { margin-top: 14px; }

  /* cobalt screens: claim sent and you're in */
  .jn-blue { background: var(--cobalt); color: var(--white); }
  .jn-blue .sign-brand { display: none; }
  .jn-blue .sign-main, .jn-blue .sign-box { flex: 1; display: flex; flex-direction: column; }
  .jn-blue .sign-main { padding: 24px 24px calc(32px + env(safe-area-inset-bottom)); }
  .jn-blue .jn-top { color: var(--white); }
  .jn-blue .jn-top span { font-size: 17px; }
  .jn-art { margin-top: 32px; width: 100%; max-width: 342px; }
  .jn-art .sign-line { width: 100%; height: auto; }
  .jn-blue .sign-h1 { margin-top: 36px; }
  .jn-blue .sign-text { color: var(--white); font-size: 16px; }
  .jn-blue .sign-foot { margin-top: auto; padding-top: 32px; }
  .jn-blue .btn.jn-cta { background: var(--shell); border-color: var(--shell); color: var(--ink); }
  .jn-blue .btn.jn-cta:hover { background: #FFC3AA; border-color: #FFC3AA; }
  .jn-blue .btn.jn-back { background: transparent; color: var(--white); border-color: var(--white); }
  .jn-blue .btn.jn-back:hover { background: rgba(255, 255, 255, .1); }
  .jn-blue a:not(.btn) { color: var(--white); }
  .jn-blue :focus-visible { outline-color: var(--white); }
}

/* ---- computer ---- */
@media (min-width: 900px) {
  .jn-top, .jn-art { display: none; }
  .jn .sign-box { max-width: 420px; }
  .jn .sign-h1 + .sign-text, .jn .sign-h1 + .jn-lines { margin-top: 16px; }
  .jn-plans, .jn-form, .jn-noplans { margin-top: 32px; }
  .jn-step { margin-top: 32px; }
  .jn-step + .jn-step { margin-top: 28px; }
  .jn-form + .jn-fine { margin-top: 16px; }
  .jn .sign-foot { margin-top: 32px; }
  .jn-blue .btn.jn-back { background: transparent; color: var(--cobalt); }
  .jn-blue .btn.jn-back:hover { background: var(--wash); }
}

/* the shell dot where the line starts appears once the line is drawn */
.sign-draw .jn-dot-start { animation: jn-dot .6s var(--ease) 2.2s both; }
@keyframes jn-dot { from { opacity: 0; } to { opacity: 1; } }
