/* Join — the mailing list. Three shapes, chosen on the page
 * (SiteSetting.join_variant): the program header's light band with the
 * portrait framed beside the words; a navy band with the portrait filling
 * its right half; or no band, everything in one white room. Below the band,
 * what arrives beside the form, the form first on a phone because it is the
 * reason anyone came. */
.jn {
  display: grid; gap: var(--sp-7);
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  align-items: start;
}
.jn__eyebrow {
  margin: 0 0 var(--sp-4); font-size: var(--text-sm); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep);
}
.jn__points { list-style: none; margin: 0 0 var(--sp-6); padding: 0; }
.jn__points li {
  position: relative; padding: var(--sp-3) 0 var(--sp-3) 2.2rem;
  border-top: 1px solid var(--gold-soft); font-size: var(--text-lg); line-height: 1.5;
}
.jn__points li:last-child { border-bottom: 1px solid var(--gold-soft); }
/* A short gold rule where a bullet would be: the eyebrow's mark, carried down. */
.jn__points li::before {
  content: ""; position: absolute; left: 0; top: 1.55rem; width: 1.3rem; height: 3px;
  background: var(--gold); border-radius: 2px;
}
.jn__also { margin: 0; color: var(--ink-soft); font-size: var(--text-sm); }
.jn__also a { color: var(--navy); font-weight: 600; }

.jn__card {
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--crimson);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); padding: var(--sp-6);
}
.jn__card-title { font-size: var(--text-xl); margin: 0 0 var(--sp-4); }
.jn__form { min-height: 12rem; }
/* Kit's own frame carries a border and shadow; ours is the card. */
.jn__form .formkit-form[data-uid] { border: 0 !important; box-shadow: none !important; margin: 0 !important; max-width: none !important; }
.jn__note { margin: var(--sp-4) 0 0; }

/* The framed portrait: the landing page's gold frame; wide, not tall, so on
 * a phone it is a band and not a wall before the form. Beside the headline
 * in the light band; at the top of the card in the one-room shape. */
.jn__portrait { flex: none; width: 22rem; margin: 0; }
.jn__card .jn__portrait { width: auto; margin: 0 0 var(--sp-5); }
.jn__portrait-frame {
  border-radius: var(--radius-lg); padding: 6px; box-shadow: var(--shadow);
  background: linear-gradient(150deg, var(--gold) 0%, var(--gold-soft) 100%);
}
.jn__portrait-frame img {
  display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 20%;
  border-radius: 9px; background: var(--mist);
}
.jn__portrait-frame .ml-person__initials { display: none; }
.jn__portrait figcaption { margin-top: var(--sp-3); line-height: 1.3; }
.jn__portrait figcaption b { display: block; font-family: var(--font-serif); font-weight: 700; }
.jn__portrait figcaption span { font-size: var(--text-sm); color: var(--ink-soft); }

/* Navy band: the home hero's ground, the photograph as the right half with
 * the navy running into it, the name set into its foot. */
.ps-head.jn-head--dark { position: relative; overflow: hidden; background: var(--navy-deep); color: #fff; border-bottom: 0; }
.jn-head--dark .ps-head__inner { position: relative; z-index: 1; min-height: 24rem; }
.jn-head--dark .ps-head__text { max-width: 44%; }
.jn-head--dark .ps-head__eyebrow p { color: var(--gold-soft); }
.jn-head--dark h1 { color: #fff; }
.jn-head--dark .ps-head__lead { color: rgba(255,255,255,.82); }
.jn-head--dark .h2h-editable { color: inherit; }
.jn-head__photo { position: absolute; inset: 0 0 0 50%; margin: 0; }
.jn-head__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }
.jn-head__photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy-deep) 0%, rgba(13,31,58,.55) 22%, rgba(13,31,58,0) 50%); }
.jn-head__photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: var(--sp-6) var(--sp-6) var(--sp-4);
  text-align: right; background: linear-gradient(180deg, transparent, rgba(10,20,38,.88)); }
.jn-head__photo figcaption b { display: block; font-family: var(--font-serif); font-weight: 700; color: #fff; }
.jn-head__photo figcaption span { font-size: var(--text-xs, .75rem); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-soft); }

/* One room: the headline sits above the points, the portrait tops the card. */
.jn--single .ps-head__eyebrow { margin-bottom: var(--sp-3); }
.jn__h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 0 0 var(--sp-3); }
.jn__lead { font-size: var(--text-lg); color: var(--ink-soft); margin: 0 0 var(--sp-6); }

/* The staff picker, between the band and the room. */
.jn__switcher { max-width: 78rem; margin: var(--sp-4) auto 0; padding: 0 var(--sp-6); }

@media (max-width: 820px) {
  .jn__portrait { width: 100%; }
  .jn-head--dark .ps-head__text { max-width: none; }
  .jn-head__photo { position: relative; inset: auto; height: 16rem; }
  .jn-head__photo::after { background: linear-gradient(180deg, var(--navy-deep), rgba(13,31,58,0) 40%); }
}
@media (max-width: 52rem) {
  .jn { grid-template-columns: 1fr; gap: var(--sp-6); }
  .jn__card { order: -1; }
  .jn--single .jn__card { order: 0; }
}
