/* The join form (join.js), on the .jp- parts in styles.css; and the email previews of Try these pages (try-mail.js). */
.jn h1 { margin-bottom: 6px; }
.jn .note { margin: 0 0 14px; }
.jn-who { margin: 0 0 18px; }
.jn .jp-field > label { line-height: 1.35; }
.jn .jp-field textarea { min-height: 84px; }
.jn .jp-role { gap: 8px; }
.jn .jp-role .chip { min-height: 40px; padding: 0 16px; font-size: 14px; }
.jn .jp-role .chip[aria-checked="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.jn-sub { margin: 0 0 8px; }
.jn [data-for-role="student"] + .jn-sub, .jn .jp-field + .jn-sub { margin-top: 2px; }
.jn-span { position: relative; padding: 0; }
.jn-span + .jn-span { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.jn-span .jp-err { margin: 0 0 10px; }
.jn button.linkish { background: none; border: 0; padding: 0; min-height: 0; height: auto; color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 0; }
.jn button.linkish:hover { text-decoration: underline; }
/* One height for every box, in rows or not. */
.jn .jp-field input:not([type="checkbox"]):not([type="radio"]), .jn .jp-field select { height: 46px; box-sizing: border-box; }
.jn .jp-row input[type="checkbox"] { height: auto; }
.jn-block { margin: 0 0 16px; }
.jn-block.jn-taught { margin: 0; }
/* "Take this away": at the end of the second span's label line. */
.jn-lab { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.jn-lab label { font-weight: 600; font-size: 15px; line-height: 1.35; }
.jn button.jn-drop { font-size: 13px; line-height: 1.35; color: var(--muted); font-weight: 600; text-decoration: underline; }
.jn-more { margin: 4px 0 14px; }
.jn-intro { margin: -6px 0 14px; }
.jn-opts { margin: 8px 0 8px; }
.jn-vis-note { margin: 0 0 16px; }
.jn-phone { align-items: end; }
.jn-phone .jp-field { margin-bottom: 6px; }
/* Beside the number's box, centred on it (the box is 46px, under its label). */
.jn-phone .jp-wa { align-self: end; height: 46px; margin: 0 0 6px; display: inline-flex; align-items: center; }
.jn-phone-note { margin: 0 0 14px; }
.jn-ask { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--line); }
.jn-ask p { margin: 0 0 10px; font-size: 14px; }
.jn-ask-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.jp-err { margin: 0; color: var(--danger); font-weight: 600; }
.jn [aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 1px var(--danger); }
.jn-foot { text-align: center; margin: 0 0 32px; }
@media (max-width: 560px) {
  .jn .jp-card { padding: 16px 14px 18px; }
  .jn .jp-row.jp-range { grid-template-columns: 1fr 1fr; gap: 0 10px; }
  .jn .jp-role .chip { flex: 1 1 calc(50% - 4px); justify-content: center; text-align: center; }
  .jp-send { flex-direction: column; align-items: stretch; text-align: center; }
  .jp-send .primary { width: 100%; }
}

/* Try these pages (app.js renderFeedback): the pages, then the emails. */
.try-h2 { font-size: 18px; margin: 26px 0 0; }

/* Email previews: an email app's view of one message, the message as sent; a browser's for the pages links open. */
.tm { max-width: 680px; margin: 0 auto 40px; }
.tm h1 { margin-bottom: 4px; }
.tm-when { margin: 0 0 18px; }
.tm-mail { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.tm-head { padding: 16px 20px 14px; border-bottom: 1px solid var(--line); }
.tm-subj { font-family: var(--sans); font-size: 18px; font-weight: 700; margin: 0 0 12px; letter-spacing: 0; overflow-wrap: anywhere; }
.tm-from { display: flex; align-items: center; gap: 12px; }
.tm-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #006600; color: #ffcc00; font: 700 11px/1 var(--serif); }
.tm-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.tm-time { margin-left: auto; }
.tm-host { display: block; }
.tm-fine { margin: 10px 2px 0; }
.tm-h2 { font-size: 17px; margin: 22px 0 10px; }
.tm-browser { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.tm-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.tm-dots { display: inline-flex; gap: 5px; }
.tm-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.tm-url { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 3px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-contact .prose { max-width: 680px; margin: 0 auto; }
@media (max-width: 560px) { .tm-head { padding: 14px 14px 12px; } }

/* "You now" (optional): where they live, what they do, how they'd help the Alumni Association (join.js) */
.jn-opt { font-weight: 500; font-size: .8em; }
.jn-inv, .jn-rep { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px; }
.jn-inv legend, .jn-rep legend { padding: 0; margin: 0 0 8px; }
.jn-inv label.check, .jn-rep label.check { font-size: 15px; }
.jn-inv input[type=text] { grid-column: 1 / -1; }
.jn-rep-opts { display: flex; flex-wrap: wrap; gap: 8px 18px; grid-column: 1 / -1; }
@media (pointer: coarse) { .jn-inv label.check, .jn-rep label.check { min-height: 40px; } }
