/* === Work at ICRT ===========================================================
   A photograph, the station's real vacancies as hairline-separated rows, four
   true things about the place, and one way out. No tiles, no panels, no band.

   Rows rather than cards on purpose: a vacancy has no picture, so the card
   treatment in the design language does not apply to it. What a candidate does
   here is scan a list, which is what a list should look like.
   ========================================================================== */

.icrt-jobspage { padding: 1.75rem 0 3.5rem; }

/* --- the hero ------------------------------------------------------------- */

.icrt-jobspage__head { margin-bottom: 2.75rem; }

.icrt-jobspage__hero { margin: 0 0 1.6rem; }

/* 16:7, the page-hero crop. aspect-ratio alone is safe here — it is pairing it
   with a max-height that narrows the box and pulls it off the measure. */
.icrt-jobspage__hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 16px;
}

.icrt-jobspage__credit {
  margin: 0;
  padding: 0.55rem 0.25rem 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--icrt-muted);
}

/* The title and its one line sit in the reading column, not across the page. */
.icrt-jobspage__intro { max-width: 46rem; }

.icrt-jobspage__title {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.028em;
}

.icrt-jobspage__lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--icrt-ink-soft);
}

/* --- sections ------------------------------------------------------------- */

.icrt-jobspage__heading {
  margin: 0 0 1.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.icrt-jobspage__board { margin-bottom: 3.25rem; }
.icrt-jobspage__notes { margin-bottom: 3.25rem; }

/* --- search ---------------------------------------------------------------
   Kept across the top: "is there anything for me" is answered by typing a word
   more often than by reading a list, and the board is built to survive the day
   the station lists twenty roles rather than two. */

.icrt-jobs__search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.3rem 0.35rem 0.3rem 0.9rem;
  margin-bottom: 1.75rem;
  max-width: 26rem;
  border: 1px solid var(--icrt-line);
  border-radius: 999px;
  background: var(--icrt-paper);
  transition: border-color 0.15s ease;
}

.icrt-jobs__search:focus-within { border-color: var(--icrt-ink); }

.icrt-jobs__searchicon { width: 17px; height: 17px; color: var(--icrt-muted); flex: 0 0 auto; }

.icrt-jobs .icrt-jobs__q {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  border: 0;
  background: none;
  box-shadow: none;
  padding: 0.55rem 0;
  margin: 0;
  min-height: 0;
  font: inherit;
  font-size: 0.94rem;
  color: var(--icrt-ink);
}

.icrt-jobs .icrt-jobs__q:focus { outline: none; }

/* --- layout --------------------------------------------------------------- */

.icrt-jobs__cols { display: grid; gap: 2.25rem; }

@media (min-width: 62rem) {
  .icrt-jobs__cols { grid-template-columns: 13rem minmax(0, 1fr); align-items: start; }
  .icrt-jobs__rail { position: sticky; top: 1rem; }
}

.icrt-jobs__rail { display: grid; gap: 1.75rem; min-width: 0; }
.icrt-jobs__results { min-width: 0; }

.icrt-jobs__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--icrt-line);
}

.icrt-jobs__count { margin: 0; font-size: 0.84rem; font-weight: 600; color: var(--icrt-muted); }

.icrt-jobs button.icrt-jobs__clear {
  border: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  min-height: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--icrt-accent);
  cursor: pointer;
}

.icrt-jobs button.icrt-jobs__clear:hover { background: none; text-decoration: underline; }

/* --- facets ---------------------------------------------------------------
   Sentence case, not a tracked-out capital label: nothing on this site shouts. */

.icrt-facet__head {
  margin: 0 0 0.55rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--icrt-ink);
}

.icrt-facet__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.05rem; }

.icrt-facet__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.4rem;
  margin-left: -0.4rem;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--icrt-ink-soft);
}

.icrt-facet__row:hover { background: var(--icrt-mist); }

/* The native box is replaced rather than restyled: the theme sizes bare
   inputs, and a checkbox is the one control that must look exactly right. */
.icrt-facet__row input { position: absolute; opacity: 0; width: 0; height: 0; }

.icrt-facet__box {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid var(--icrt-line);
  border-radius: 0.26rem;
  background: var(--icrt-paper);
  position: relative;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.icrt-facet__row input:checked + .icrt-facet__box {
  background: var(--icrt-ink);
  border-color: var(--icrt-ink);
}

.icrt-facet__row input:checked + .icrt-facet__box::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.09rem;
  width: 0.26rem;
  height: 0.52rem;
  border: solid var(--icrt-paper);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.icrt-facet__row input:focus-visible + .icrt-facet__box {
  box-shadow: 0 0 0 3px rgba(17, 96, 212, 0.25);
}

.icrt-facet__label { flex: 1 1 auto; }
.icrt-facet__n { font-size: 0.78rem; font-weight: 600; color: var(--icrt-muted); }

/* --- rows ------------------------------------------------------------------ */

.icrt-jobs__list { list-style: none; margin: 0; padding: 0; }

/* A class that sets `display` beats the `hidden` attribute, so filtering with
   el.hidden silently did nothing — .icrt-job is display:flex. This is the same
   trap the voice recorder hit and it is already written down in CLAUDE.md. */
.icrt-jobs [hidden] { display: none !important; }

.icrt-job {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--icrt-line);
}

.icrt-job__body { min-width: 0; flex: 1 1 auto; max-width: 46rem; }

.icrt-job__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.014em;
}

.icrt-job__team { margin: 0.15rem 0 0; font-size: 0.84rem; font-weight: 600; color: var(--icrt-muted); }

.icrt-job__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.65rem 0 0;
  padding: 0;
}

.icrt-job__tags li {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: var(--icrt-mist);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--icrt-ink-soft);
}

.icrt-job__blurb {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--icrt-ink-soft);
}

/* Pay and hours: labelled facts, so a description list rather than more chips. */
.icrt-job__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 2.25rem;
  margin: 0.9rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--icrt-line);
}

.icrt-job__fact dt {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--icrt-muted);
}

.icrt-job__fact dd {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--icrt-ink);
}

/* margin-left:auto, because the body is capped at a 46rem measure: without it
   the side column sat wherever the paragraph happened to end, halfway across a
   1350px row, instead of lining up under the save button at the edge. */
.icrt-job__side {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  padding-right: 2.2rem;
  text-align: right;
}

.icrt-job__place { margin: 0; font-size: 0.86rem; font-weight: 600; color: var(--icrt-ink); }
.icrt-job__age { margin: 0; font-size: 0.78rem; color: var(--icrt-muted); white-space: nowrap; }

.icrt-job__apply {
  margin-top: 0.7rem;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  background: var(--icrt-ink);
  color: var(--icrt-paper);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.icrt-job__apply:hover { background: var(--icrt-accent); color: var(--icrt-paper); }

/* Saved roles live in this browser only — nothing is sent anywhere. */
.icrt-jobs button.icrt-job__save {
  position: absolute;
  top: 1.55rem;
  right: 0;
  box-sizing: border-box;
  width: 1.9rem;
  height: 1.9rem;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  box-shadow: none;
  /* Muted, not invisible: at --icrt-line it disappeared into the row. */
  color: var(--icrt-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.icrt-jobs button.icrt-job__save:hover { background: var(--icrt-mist); color: var(--icrt-ink); }
.icrt-jobs button.icrt-job__save svg { width: 15px; height: 15px; }

.icrt-jobs button.icrt-job__save.is-on { color: var(--icrt-ink); }
.icrt-jobs button.icrt-job__save.is-on svg { fill: currentColor; }

@media (max-width: 44rem) {
  .icrt-job { flex-wrap: wrap; gap: 0.85rem; }
  .icrt-job__side {
    margin-left: 0;
    align-items: flex-start;
    text-align: left;
    padding-right: 0;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }
  .icrt-job__apply { margin-top: 0; }
}

.icrt-jobs__none,
.icrt-jobs__empty {
  margin: 0;
  padding: 1.5rem 0 0;
  max-width: 46rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--icrt-ink-soft);
}

/* --- working here ---------------------------------------------------------
   An editorial list in two columns, separated by hairlines. Every line of it
   comes off the station's own About page. */

.icrt-jobnotes {
  display: grid;
  gap: 0 3.5rem;
  border-top: 1px solid var(--icrt-line);
}

@media (min-width: 54rem) {
  .icrt-jobnotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.icrt-jobnotes__item {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--icrt-line);
}

.icrt-jobnotes__item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.008em;
}

.icrt-jobnotes__item p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--icrt-ink-soft);
  max-width: 40rem;
}

/* --- closing --------------------------------------------------------------
   A light line and one button. Not the dark band that used to close every
   page on this site. */

.icrt-jobspage__close {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  padding: 1.9rem 2rem;
  border-radius: 14px;
  background: var(--icrt-mist);
}

.icrt-jobspage__closeText {
  margin: 0;
  max-width: 44rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--icrt-ink-soft);
}
