/* Faculty update form. Two columns: the form on the left, a live preview of the faculty card and
   the profile header on the right, so nobody submits a card without seeing it. */

.upwrap { max-width: 1180px; margin: 0 auto; padding: 28px 22px 70px; }

.uphead { background: var(--navy); color: #fff; padding: 30px 0 34px; }
.uphead .in { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.uphead .eb {
  font-family: "Source Sans 3", sans-serif; font-size: 11.5px; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase; color: var(--gold); margin-bottom: 9px;
}
.uphead h1 {
  font-family: "Merriweather", Georgia, serif; font-weight: 900; font-size: 33px;
  line-height: 1.15; margin: 0;
}
.uphead p { margin: 12px 0 0; max-width: 46em; color: #d5ddea; font-size: 16px; line-height: 1.55; }

/* Who are you */
.uppick { background: var(--cream); border: 1px solid var(--line); padding: 20px 22px; margin-bottom: 30px; }
.uppick label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.uppick select {
  font: inherit; font-size: 16px; padding: 10px 12px; width: 100%; max-width: 460px;
  border: 1px solid #b9c2cf; background: #fff; color: var(--ink); border-radius: 3px;
}
.uphint { font-size: 14px; color: var(--mut); margin: 9px 0 0; }

.upcols { display: grid; grid-template-columns: minmax(0,1.32fr) minmax(0,1fr); gap: 44px; align-items: start; }
@media (max-width: 900px) { .upcols { grid-template-columns: 1fr; gap: 30px; } }

/* Form */
.upsec { margin-bottom: 34px; }
.upsec > h2 {
  font-family: "Merriweather", Georgia, serif; font-weight: 900; font-size: 19px;
  color: var(--navy); margin: 0 0 4px; padding-bottom: 8px; border-bottom: 3px solid var(--navy);
}
.upsec > .sh { font-size: 14.5px; color: var(--mut); margin: 10px 0 20px; }

.upf { margin-bottom: 19px; }
.upf > label { display: block; font-weight: 700; font-size: 14.5px; color: var(--navy); margin-bottom: 5px; }
.upf .note { font-size: 13.5px; color: var(--mut); margin: 0 0 7px; }
.upin, .upta {
  font: inherit; font-size: 15.5px; width: 100%; padding: 9px 11px; color: var(--ink);
  border: 1px solid #b9c2cf; border-radius: 3px; background: #fff;
}
.upta { line-height: 1.5; resize: vertical; }
.upsel {
  font: inherit; font-size: 16px; padding: 9px 11px; width: 100%; max-width: 320px;
  border: 1px solid #b9c2cf; background: #fff; color: var(--ink); border-radius: 3px;
}
.upin:focus, .upta:focus, .upsel:focus, .uppick select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.upin[readonly] { background: #f1eee9; color: var(--mut); }

.upcount { font-size: 13px; color: var(--mut); margin-top: 4px; text-align: right; }
.upcount.warn { color: #8a5a1b; font-weight: 700; }
.upcount.over { color: var(--crim); font-weight: 700; }

.uplist .row { display: flex; gap: 8px; margin-bottom: 7px; }
.uplist .row .upin { flex: 1; }
.upx {
  font: inherit; font-size: 15px; width: 34px; flex: none; cursor: pointer; color: var(--mut);
  background: #fff; border: 1px solid #ccd3dd; border-radius: 3px; line-height: 1;
}
.upx:hover { color: var(--crim); border-color: var(--crim); }
.upadd {
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--navy);
  background: #fff; border: 1px solid var(--navy); border-radius: 3px; padding: 7px 13px;
}
.upadd:hover { background: var(--navy); color: #fff; }
.upfull { font-size: 13px; color: var(--crim); font-weight: 700; margin-top: 6px; }

/* Photograph */
.upphoto { display: grid; grid-template-columns: 128px minmax(0,1fr); gap: 18px; align-items: start; }
.upphoto img { width: 128px; height: 128px; object-fit: cover; display: block; border: 1px solid var(--line); }
.upphoto ul { margin: 9px 0 0; padding-left: 19px; font-size: 14px; color: var(--mut); line-height: 1.62; }
.upfile { font: inherit; font-size: 14.5px; margin-top: 4px; }

/* Preview rail */
.uppv { position: sticky; top: 22px; }
.uppv > h2 {
  font-family: "Merriweather", Georgia, serif; font-weight: 900; font-size: 17px;
  color: var(--navy); margin: 0 0 4px; padding-bottom: 8px; border-bottom: 3px solid var(--navy);
}
.uppv .sh { font-size: 14px; color: var(--mut); margin: 10px 0 18px; }
.pvlab {
  font-family: "Source Sans 3", sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--crim); margin: 0 0 8px;
}
.pvcard {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy);
  border-radius: 6px; overflow: hidden; margin-bottom: 26px; max-width: 330px;
}
.pvcard > img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.pvcard .bd { padding: 15px 17px 18px; }
.pvcard .nm { font-family: "Merriweather", Georgia, serif; font-weight: 900; font-size: 17px; color: var(--navy); }
.pvcard .ti { font-size: 13.5px; color: var(--mut); margin-top: 4px; line-height: 1.45; }
.pvcard .ex { font-size: 14px; margin-top: 11px; line-height: 1.5; }
.pvcard .ex b { color: var(--navy); display: block; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.pvcard .wd {
  font-family: "Merriweather", Georgia, serif; font-size: 14px; line-height: 1.55;
  color: var(--ink); margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line);
}
.pvhdr { background: var(--navy); color: #fff; padding: 18px 19px 20px; max-width: 330px; }
.pvhdr .r { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.pvhdr h3 { font-family: "Merriweather", Georgia, serif; font-weight: 900; font-size: 21px; margin: 7px 0 0; }
.pvhdr ul { margin: 9px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: #d5ddea; line-height: 1.5; }

/* Submit */
.upsend { border-top: 3px solid var(--navy); padding-top: 22px; margin-top: 6px; }
.upbtn {
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; color: #fff;
  background: var(--navy); border: 1px solid var(--navy); border-radius: 3px; padding: 12px 26px;
}
.upbtn:hover { background: #142d54; }
.upbtn:disabled { opacity: .55; cursor: default; }
.uperr {
  background: #fbeeed; border: 1px solid #d9b6b2; color: var(--crim); font-size: 14.5px;
  padding: 11px 13px; margin-bottom: 14px; border-radius: 3px;
}
.uperr ul { margin: 6px 0 0; padding-left: 19px; }
.updone {
  background: #eef4ee; border: 1px solid #b7cdba; color: #2f6b4f; font-size: 15.5px;
  padding: 16px 18px; border-radius: 3px; line-height: 1.55;
}
.upgate { color: var(--mut); font-size: 15.5px; }
[hidden] { display: none !important; }

/* Example teaching statement. It lives in a dialog, opened from a link under the field. */
.upex {
  border: 1px solid #DCD3C7; border-left: 4px solid #D4A230; border-radius: 6px;
  background: #fff; padding: 14px 16px 12px;
}
.upex p { margin: 0 0 10px; font: 14.5px/1.65 "Source Sans 3", sans-serif; color: #2E2A26; }
.upex p:last-child { margin-bottom: 0; }
.upex .n {
  border-top: 1px solid #E7E0D5; margin-top: 12px; padding-top: 10px;
  font-size: 13px; color: #6B655D;
}

.upexl {
  font: 600 13px/1.4 "Source Sans 3", sans-serif; letter-spacing: .06em;
  text-transform: uppercase; color: #661F17; margin: 0 0 10px !important;
}

/* Pronouns in the profile-heading preview, matching .pfpro on the live profile. */
.pvpro { margin: 8px 0 0; font: 15px/1.5 "Source Sans 3", sans-serif; color: #E6C9BF; }

/* Course picker. A row is either a catalog select or, marked, a course the catalog does not list. */
.upcsel { background: #fff; }
.uplist .row.off .upcfree { border-color: #D4A230; background: #FFFDF7; }

/* Standalone page: this form is hosted on its own, with no route into the rest of the site. */
.upstandalone { background: var(--cream, #FAF7F2); margin: 0; }
.uphead .wcmark {
  display: block; font: 700 15px/1.2 "Merriweather", Georgia, serif; letter-spacing: .01em;
  color: #fff; margin: 0 0 14px;
}
.upfoot {
  border-top: 1px solid #E2DACD; margin-top: 40px; padding: 20px 0 34px;
  font: 13px/1.5 "Source Sans 3", sans-serif; color: #6B655D;
}
.upfoot .in { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* The link that opens the example. A button, so it needs no href on a page that has none. */
.upexlink { margin: 0 0 10px; }
.upexbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 15px/1.5 "Source Sans 3", sans-serif; color: #661F17;
  border-bottom: 1px solid #C9A9A2;
}
.upexbtn:hover { color: #8A2A1F; border-bottom-color: #8A2A1F; }

/* Dialog. */
.upmodal { position: fixed; inset: 0; z-index: 60; }
.upmb { position: absolute; inset: 0; background: rgba(26, 22, 20, .55); }
.upmd {
  position: relative; max-width: 560px; margin: 8vh auto 0; max-height: 84vh; overflow: auto;
  background: #fff; border-radius: 6px; padding: 30px 26px 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.upmd .upex { border: 0; padding: 0; }
.upmx {
  position: absolute; top: 8px; right: 12px; background: none; border: 0; cursor: pointer;
  font-size: 26px; line-height: 1; color: #8A837A;
}
.upmx:hover { color: #2E2A26; }
body.upmopen { overflow: hidden; }
@media (max-width: 600px) { .upmd { margin: 4vh 14px 0; max-height: 90vh; } }
