/* Careers: index list, role pages, application form. Loaded after site.css on careers pages. */

.crumb { margin: 0 0 0.7rem; font-size: var(--fs-small); text-align: center; }
.crumb a { color: var(--graphite); }
.masthead.compact .subline { margin-top: 1rem; }

.list-title { margin-bottom: 0.6rem; }
.roles { margin: 0 0 1.4rem; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.roles li + li { border-top: 1px solid var(--rule); }
.roles a { display: block; padding: 1rem 0 1.05rem; color: var(--ink); text-decoration: none; }
.roles .role-title { display: block; font-size: 1.3125rem; line-height: 1.3; }
.roles .role-focus { display: block; margin-top: 0.2rem; color: var(--graphite); font-size: var(--fs-small); line-height: 1.45; }
.roles a:hover .role-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.roles-note, .form-note, .form-status { text-align: left; hyphens: manual; }
.roles-note { color: var(--graphite); font-size: var(--fs-small); }

.role-intro .lead { font-size: 1.1875rem; line-height: 1.62; }
.specs { display: grid; row-gap: 1.5rem; }
.spec { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.spec h2 { margin: 0; color: var(--ink); font-size: var(--fs-body); font-weight: 700; line-height: 1.6; }
.spec ul { margin: 0; padding-left: 1.1em; }
.spec li { margin: 0 0 0.45em; padding-left: 0.2em; line-height: 1.55; }
.spec li::marker { color: var(--graphite); }

.apply > h2 { margin-bottom: 1.2rem; }
.application .group { margin: 0 0 1.9rem; padding: 0; border: 0; min-width: 0; }
.application .group > legend { width: 100%; margin: 0 0 1rem; padding: 0 0 0.45rem; border-bottom: 1px solid var(--rule); color: var(--ink); font-weight: 700; }
.application .field { margin: 0 0 1.15rem; padding: 0; border: 0; min-width: 0; }
.application .field > label, .application .choices > legend { display: block; margin: 0 0 0.4rem; padding: 0; color: var(--ink); font-size: var(--fs-small); line-height: 1.45; }
.application .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.application input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.application select,
.application textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #c4c4c4;
  border-radius: 4px;
  background: var(--paper);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}
.application textarea { min-height: 7.5rem; resize: vertical; }
.application input:focus, .application select:focus, .application textarea:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 1px; }
.application input[type="file"] { width: 100%; font: inherit; font-size: var(--fs-small); }
.application .choice { display: flex; align-items: center; gap: 0.55rem; margin: 0.3rem 0; color: var(--text); font-size: 1rem; }
.application .choice input, .application .consent input { width: 1rem; height: 1rem; accent-color: var(--ink); }
.application .optional, .application .hint { color: var(--graphite); font-weight: 400; }
.application .hint { margin-left: 0.35rem; }
.application .invalid input, .application .invalid textarea, .application .invalid select { border-color: #a32020; }
.application .invalid > label, .application .invalid > legend, .application .consent.invalid { color: #a32020; }
.application .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.application .consent { display: flex; align-items: flex-start; gap: 0.65rem; margin: 0.3rem 0 1.4rem; font-size: var(--fs-small); line-height: 1.5; }
.application .consent input { flex: none; margin-top: 0.22rem; }
.application .submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; }
.application button { padding: 0.68rem 1.35rem 0.62rem; border: 1px solid var(--ink); border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); font: inherit; font-size: 1rem; cursor: pointer; }
.application button:hover { background: var(--paper); color: var(--ink); }
.application button[disabled] { opacity: 0.55; cursor: progress; }
.form-status { flex: 1 1 14rem; margin: 0; color: var(--graphite); font-size: var(--fs-small); }
.form-status.error { color: #a32020; }
.form-status.ok { color: var(--ink); }
.form-note { margin: 1.1rem 0 0; color: var(--graphite); font-size: var(--fs-small); }

@media (max-width: 40rem) {
  .spec { grid-template-columns: 1fr; gap: 0.4rem; }
  .application .field-row { grid-template-columns: 1fr; }
  .role-intro .lead { font-size: 1.0625rem; }
}

/* the CV picker gets a proper button instead of the browser's tiny default */
.application input[type="file"]::file-selector-button {
  margin-right: 0.8rem; padding: 0.5rem 0.9rem; border: 1px solid var(--ink); border-radius: var(--radius-pill);
  background: var(--paper); color: var(--ink); font: inherit; font-size: var(--fs-small); cursor: pointer;
}
.application input[type="file"]::file-selector-button:hover { background: var(--ink); color: var(--paper); }

@media (pointer: coarse) {
  .application .choice { min-height: 2.75rem; margin: 0; padding: 0.35rem 0; }
  .application .choice input, .application .consent input { width: 1.3rem; height: 1.3rem; }
  .application .consent { padding: 0.3rem 0; }
  .application .consent input { margin-top: 0.12rem; }
  .application input[type="file"] { min-height: 2.75rem; }
  .application input[type="file"]::file-selector-button { padding: 0.7rem 1rem; }
  .application button { min-height: 3rem; padding-left: 1.6rem; padding-right: 1.6rem; }
}

/* same white field on every browser, with a plain arrow (Safari otherwise draws a grey control) */
.application select {
  -webkit-appearance: none; appearance: none; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 0.75rem;
}
