/* ==========================================================================
   NAVAL ORIENTATION: Careers

   The listing, the category archives, the vacancy page and the application
   form. Built from the existing tokens, buttons and shared detail primitives.
   Loads only on careers views.
   ========================================================================== */

/* =========================================================================
   LISTING
   ========================================================================= */
.no-jlist { padding-block: var(--no-section-y-tight); }

.no-jhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

/* -------- Category filter -------- */
.no-jfilter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  min-width: 0;
}
.no-jfilter__chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1rem;
  font-family: var(--no-font-mono);
  font-size: var(--no-fs-3xs);
  font-weight: 700;
  letter-spacing: var(--no-tr-wide);
  text-transform: uppercase;
  color: var(--no-ink-700);
  background: #fff;
  border: 1px solid var(--no-border);
  border-radius: var(--no-r-pill);
  transition: color var(--no-dur) var(--no-ease),
              background-color var(--no-dur) var(--no-ease),
              border-color var(--no-dur) var(--no-ease);
}
.no-jfilter__chip:hover,
.no-jfilter__chip:focus-visible {
  color: var(--no-primary-action);
  border-color: var(--no-primary-300);
  background: var(--no-bg-soft);
}
.no-jfilter__chip.is-active {
  color: #fff;
  background: var(--no-ink-800);
  border-color: var(--no-ink-800);
}
.no-jfilter__chip span {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  padding: .0625rem .3125rem;
  font-size: var(--no-fs-3xs);
  line-height: 1.4;
  color: var(--no-text-muted);
  background: var(--no-bg-soft);
  border-radius: var(--no-r-xs);
}
.no-jfilter__chip.is-active span { color: var(--no-ink-800); background: rgba(255, 255, 255, .9); }

/* =========================================================================
   VACANCY ROWS

   A list, not a card grid. A vacancy has no photograph, and a row lets the
   title, the location and the contract sit on one scannable line.
   ========================================================================= */
.no-jgrid {
  display: grid;
  gap: .75rem;
  margin-top: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
}

.no-jcard {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  min-width: 0;
  padding: clamp(1.125rem, .9rem + .7vw, 1.5rem);
  background: #fff;
  border: 1px solid var(--no-border);
  border-left: 3px solid var(--no-primary-action);
  border-radius: var(--no-r-md);
  box-shadow: var(--no-sh-xs);
  transition: transform var(--no-dur, .52s) var(--no-ease-out),
              box-shadow var(--no-dur, .52s) var(--no-ease),
              border-color var(--no-dur, .52s) var(--no-ease);
}
.no-jcard:hover,
.no-jcard:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--no-sh-md);
  border-color: var(--no-card-hover);
}
/* A closed vacancy stays readable but stops competing with the open ones. */
.no-jcard--closed { border-left-color: var(--no-border); background: var(--no-bg-soft); }
.no-jcard--urgent { border-left-color: #7A4A06; }

.no-jcard__main { flex: 1 1 22rem; min-width: 0; }
.no-jcard__cat {
  font-family: var(--no-font-mono);
  font-size: var(--no-fs-3xs);
  font-weight: 700;
  letter-spacing: var(--no-tr-wide);
  text-transform: uppercase;
  color: var(--no-primary-action);
}
.no-jcard__title {
  margin-top: .25rem;
  font-size: var(--no-fs-md);
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}
.no-jcard__title a { color: inherit; }
/* Stretched link: the whole row is the target, the anchor stays the label. */
.no-jcard__title a::after { content: ""; position: absolute; inset: 0; }
.no-jcard:hover .no-jcard__title a { color: var(--no-primary-action); }

.no-jcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  margin: .5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--no-fs-sm);
  color: var(--no-text-muted);
}
/* A separator between facts that does not need an extra element per item. */
.no-jcard__meta li + li::before { content: "\00b7"; margin-right: .75rem; color: var(--no-text-faint); }

.no-jcard__side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
}
.no-jcard__more {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--no-font-mono);
  font-size: var(--no-fs-3xs);
  font-weight: 700;
  letter-spacing: var(--no-tr-wide);
  text-transform: uppercase;
  color: var(--no-primary-action);
  transition: gap var(--no-dur, .52s) var(--no-ease-out);
}
.no-jcard:hover .no-jcard__more { gap: .875rem; }

/* -------- Status pill -------- */
.no-jstatus {
  display: inline-flex;
  align-items: center;
  padding: .3125rem .625rem;
  font-family: var(--no-font-mono);
  font-size: var(--no-fs-3xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  border-radius: var(--no-r-xs);
  background: #0B5D33;
}
.no-jstatus--urgent { background: #7A4A06; }
.no-jstatus--closed { background: var(--no-ink-700); }
.no-jstatusline { margin-top: .875rem; }

/* -------- Empty listing -------- */
.no-jempty {
  max-width: 60ch;
  margin-top: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  padding: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
  background: var(--no-bg-soft);
  border: 1px solid var(--no-border);
  border-radius: var(--no-r-lg);
}
.no-jempty p + p { margin-top: .75rem; }
.no-jempty .no-btn { margin-top: 1.5rem; }

/* =========================================================================
   SINGLE VACANCY

   The description leads and the facts sit beside it. The shared showcase grid
   is reused, flipped, because here the wide column is the text.
   ========================================================================= */
.no-show--text .no-show__grid--flip { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 900px) { .no-show--text .no-show__grid--flip { grid-template-columns: minmax(0, 1fr); } }

.no-jintro { margin-top: 1.25rem; max-width: 68ch; }
.no-jintro > * + * { margin-top: .9em; }

.no-jreq__title { margin-top: 1.75rem; font-size: var(--no-fs-lg); }
.no-jreq {
  display: grid;
  gap: .5rem;
  margin: .875rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 68ch;
}
.no-jreq li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  min-width: 0;
  font-size: var(--no-fs-sm);
  line-height: var(--no-lh-relaxed);
  color: var(--no-ink-700);
}
.no-jreq li > span:first-child {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: .125rem;
  border-radius: 50%;
  color: var(--no-primary-action);
  background: rgba(19, 134, 179, .1);
}
.no-jreq li > span:last-child { min-width: 0; }

/* -------- Facts panel -------- */
.no-jaside {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--no-bg-soft);
  border: 1px solid var(--no-border);
  border-radius: var(--no-r-lg);
}
/* Sticks beside a long description on a desktop, scrolls normally on a phone. */
@media (min-width: 901px) {
  .no-jaside { position: sticky; top: calc(var(--no-header-h) + 1.5rem); }
}

.no-jfacts { margin: 0; display: grid; gap: 0; }
.no-jfacts > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .625rem 0;
  border-bottom: 1px solid var(--no-border);
}
.no-jfacts > div:first-child { border-top: 1px solid var(--no-border); }
.no-jfacts dt { font-size: var(--no-fs-sm); color: var(--no-text-muted); min-width: 0; }
.no-jfacts dd {
  margin: 0;
  font-family: var(--no-font-display);
  font-weight: 700;
  font-size: var(--no-fs-sm);
  color: var(--no-ink-800);
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

.no-jaside .no-btn { width: 100%; margin-top: 1.25rem; justify-content: center; }
.no-jaside__note {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  margin-top: 1.25rem;
  font-size: var(--no-fs-sm);
  line-height: var(--no-lh-relaxed);
  color: var(--no-text-muted);
}
.no-jaside__note svg { flex: none; margin-top: .125rem; color: var(--no-primary-action); }
.no-jaside__all { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; }

/* The client's own "how to apply" line, shown under the button when the field
   holds guidance rather than an address. Smaller than the closed-vacancy note
   above it: it supports the form, it does not replace it. */
.no-jaside__note--how {
  margin-top: .875rem;
  font-size: var(--no-fs-xs);
  padding-top: .875rem;
  border-top: 1px solid var(--no-border);
}

/* =========================================================================
   APPLICATION FORM
   ========================================================================= */
.no-japply {
  padding-block: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
  background: var(--no-bg-soft);
  border-top: 1px solid var(--no-border);
}
.no-japply--page { background: transparent; border-top: 0; }
.no-japply__lead { max-width: 68ch; color: var(--no-text-muted); }
/* Underlined, not just coloured: a link inside muted body text is not
   distinguishable by colour alone at this contrast. */
.no-japply__lead a {
  color: var(--no-primary-action);
  text-decoration: underline;
  text-underline-offset: .18em;
}
.no-japply__lead a:hover { color: var(--no-primary-700); }

.no-apply {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--no-border);
  border-radius: var(--no-r-lg);
  box-shadow: var(--no-sh-xs);
}
.no-japply--page .no-apply { margin-top: 1.5rem; }
.no-apply__title { font-size: var(--no-fs-xl); line-height: 1.25; }

.no-apply__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (max-width: 620px) { .no-apply__grid { grid-template-columns: minmax(0, 1fr); } }
.no-field--wide { grid-column: 1 / -1; }

.no-field { display: flex; flex-direction: column; gap: .375rem; min-width: 0; margin: 0; }
.no-field label {
  font-family: var(--no-font-mono);
  font-size: var(--no-fs-3xs);
  font-weight: 700;
  letter-spacing: var(--no-tr-wide);
  text-transform: uppercase;
  color: var(--no-ink-700);
}
.no-req { color: #7A2530; }

.no-field input,
.no-field textarea {
  width: 100%;
  min-height: 46px;
  padding: .625rem .875rem;
  font: inherit;
  font-size: var(--no-fs-sm);
  color: var(--no-ink-800);
  background: #fff;
  border: 1px solid var(--no-border);
  border-radius: var(--no-r-sm);
  transition: border-color var(--no-dur) var(--no-ease), box-shadow var(--no-dur) var(--no-ease);
}
.no-field textarea { min-height: 8rem; resize: vertical; }
.no-field input:focus,
.no-field textarea:focus {
  outline: none;
  border-color: var(--no-primary-action);
  box-shadow: 0 0 0 3px rgba(19, 134, 179, .16);
}
.no-field input[type="file"] { padding: .5rem .625rem; line-height: 1.6; }
.no-field__hint { font-size: var(--no-fs-xs); line-height: var(--no-lh-relaxed); color: var(--no-text-muted); }

.no-apply__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin-top: 1.5rem;
}
.no-apply__note { font-size: var(--no-fs-xs); color: var(--no-text-muted); }
@media (max-width: 520px) {
  .no-apply__foot .no-btn { width: 100%; justify-content: center; }
}

/* The honeypot: hidden from people, left in the document for bots to fill. */
.no-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* -------- Result message -------- */
.no-formmsg {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  margin-top: 1.25rem;
  padding: .875rem 1rem;
  font-size: var(--no-fs-sm);
  line-height: var(--no-lh-relaxed);
  border-radius: var(--no-r-sm);
  border: 1px solid transparent;
}
.no-formmsg svg { flex: none; margin-top: .125rem; }
.no-formmsg--ok  { color: #0B5D33; background: rgba(11, 93, 51, .08);  border-color: rgba(11, 93, 51, .24); }
.no-formmsg--bad { color: #7A2530; background: rgba(122, 37, 48, .08); border-color: rgba(122, 37, 48, .24); }

/* =========================================================================
   WHAT HAPPENS TO YOUR APPLICATION
   ========================================================================= */
.no-jprivacy {
  max-width: 720px;
  margin: clamp(2rem, 1.5rem + 2vw, 3rem) auto 0;
}
.no-jprivacy h2 { font-size: var(--no-fs-lg); }
.no-jprivacy ul {
  display: grid;
  gap: .625rem;
  margin: 1rem 0 0;
  padding-left: 1.125rem;
}
.no-jprivacy li {
  font-size: var(--no-fs-sm);
  line-height: var(--no-lh-relaxed);
  color: var(--no-text-muted);
}
