@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-condensed-800.woff2") format("woff2");
}

:root {
  --ink: #141414;
  --paper: #f4f1e8;
  --white: #ffffff;
  --yellow: #ffc20e;
  --yellow-hot: #ffd100;
  --muted: #3a3a3a;
  --soft: #d9d3c5;
  --header: #141414;
  --header-text: #f4f1e8;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.45;
}

img {
  display: block;
  max-width: 100%;
}

p {
  overflow-wrap: break-word;
}

button,
input,
select {
  font: inherit;
  color: inherit;
  border-radius: 0;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 80;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  background: var(--yellow);
  color: var(--ink);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
  padding: 0.85rem 0 0.95rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  flex: none;
}

.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.85rem, 6vw, 2.8rem);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  line-height: 0.9;
}

.amp {
  color: var(--ink);
}

.tagline {
  margin: 0;
  flex: 1 1 16rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.site-header a:focus-visible {
  outline-color: var(--ink);
}

.hazard {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    #141414 0 10px,
    var(--yellow) 10px 20px
  );
}

main {
  flex: 1 0 auto;
  padding-top: 0.35rem;
  padding-bottom: 2.75rem;
}

.filter-bar {
  position: relative;
  display: block;
  margin-top: 0.9rem;
}

.filters-title {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.btn.filters-toggle {
  width: 100%;
  justify-content: space-between;
}

.filters-toggle::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.75rem;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  flex: none;
}

.filter-bar.is-open .filters-toggle::after {
  transform: translateY(0.12rem) rotate(225deg);
}

.filter-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem 0.85rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
  flex: 1 1 10.5rem;
  min-width: min(100%, 10.5rem);
  font-weight: 700;
}

.field-keyword {
  flex: 1.6 1 14rem;
  min-width: min(100%, 14rem);
}

.field input,
.field select {
  min-height: 44px;
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 2px solid var(--ink);
  background: var(--white);
  font-weight: 400;
}

fieldset {
  border: 0;
  margin: 0.85rem 0 0;
  padding: 0;
}

legend {
  font-weight: 700;
  padding: 0;
  margin-bottom: 0.45rem;
}

.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cat {
  min-height: 44px;
  padding: 0.35rem 0.6rem;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.cat[aria-pressed="true"] {
  background: var(--yellow);
  color: var(--ink);
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 0.85rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  margin: 0;
  font-weight: 700;
}

.check input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--paper);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn-yellow:hover {
  background: var(--yellow-hot);
}

.btn:disabled {
  background: var(--paper);
  color: var(--muted);
  border-color: var(--muted);
  cursor: not-allowed;
}

.btn-apply {
  min-height: 48px;
  padding-inline: 1.15rem;
  background: var(--ink);
  color: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}

.btn-apply:hover {
  background: #2a2a2a;
  color: var(--white);
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-apply:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 15;
  padding: 0.65rem 0;
  background: var(--paper);
}

.result-count {
  margin: 0;
  font-weight: 700;
}

.noscript,
.status,
.empty {
  margin: 0.75rem 0 0;
}

.status:empty {
  display: none;
}

.empty {
  border: 2px dashed var(--ink);
  background: var(--white);
  padding: 1.15rem 1rem 1.2rem;
}

.empty[hidden] {
  display: none;
}

.empty-title {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}

.empty p {
  margin: 0 0 0.9rem;
}

.job-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  overflow-anchor: none;
}

.job-list[hidden] {
  display: none;
}

.card {
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-left-width: 6px;
  scroll-margin-top: 4.25rem;
}

.card-face {
  padding: 0.85rem 0.9rem 1rem 0.8rem;
  cursor: pointer;
}

.card-face:hover {
  background: var(--yellow-hot);
}

.title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.card-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.title-text {
  flex: 1;
}

.chevron {
  flex: none;
  margin-top: 0.15rem;
  transition: transform 150ms ease;
}

.card.is-open .chevron {
  transform: rotate(180deg);
}

.card.is-open {
  box-shadow: inset 0 0 0 3px var(--ink);
}

.employer,
.where,
.summary,
.facts {
  margin: 0;
}

.employer {
  margin-top: 0.35rem;
  font-weight: 700;
}

.where {
  margin-top: 0.1rem;
  color: var(--muted);
}

.summary {
  margin-top: 0.55rem;
  max-width: 68ch;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  margin-top: 0.75rem;
}

.pay-fact {
  font-weight: 700;
}

.chip {
  display: inline-block;
  border: 1.5px solid var(--ink);
  padding: 0.12rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.when {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.details li {
  position: relative;
  margin: 0.4rem 0;
  padding-left: 1.05rem;
}

.details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--ink);
  border: 1.5px solid var(--ink);
}

.meta {
  display: grid;
  grid-template-columns: 7.25rem 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0.95rem 0 0;
}

.meta dt {
  margin: 0;
  font-weight: 700;
}

.meta dd {
  margin: 0;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.more {
  margin-top: 0.9rem;
}

#sentinel {
  height: 1px;
}

#load-more {
  width: 100%;
}

#load-more[hidden] {
  display: none;
}

.site-footer {
  background: var(--header);
  color: var(--header-text);
  padding: 1.35rem 0 1.5rem;
  text-align: center;
}

.soon {
  margin: 0 0 0.35rem;
  color: var(--yellow);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.copy {
  margin: 0;
  color: #e7e2d6;
}

.copy {
  margin-top: 0.7rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

::placeholder {
  color: #5c5346;
  opacity: 1;
}

@media (max-width: 719px) {
  .filters-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .filter-bar:not(.is-open) .filter-form {
    display: none;
  }

  .filter-bar.is-open .filter-form {
    margin-top: 0.65rem;
    padding: 0.85rem 0.85rem 1rem;
    background: var(--white);
    border: 2px solid var(--ink);
  }

  .field,
  .field-keyword {
    flex-basis: 100%;
    min-width: 0;
  }

  .filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #clear {
    width: 100%;
  }
}

@media (min-width: 720px) {
  .filter-bar {
    padding: 0.9rem 1rem 1rem;
    background: var(--white);
    border: 2px solid var(--ink);
  }

  .filters-toggle {
    display: none;
  }

  #clear {
    margin-left: auto;
  }
}

@media (min-width: 960px) {
  .card-face {
    padding-right: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .hazard {
    background: CanvasText;
    height: 4px;
  }

  .card,
  .job-detail,
  .btn,
  .cat,
  input,
  select {
    border-color: ButtonText;
  }
}

/* Detail panel. Wide screens: list column on the left, record on the right.
   Narrow screens: the same record covers the viewport. */
.board {
  min-width: 0;
}

.job-detail[hidden] {
  display: none !important;
}

.job-detail:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-left-width: 6px;
}

.job-detail:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -6px;
}

.job-detail-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.job-detail-top {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding: 0.65rem 0.65rem 0.55rem;
  background: var(--yellow);
  border-bottom: 2px solid var(--ink);
}

.job-detail-content {
  padding: 0.9rem 1rem 0.65rem;
}

.job-detail-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.detail-label {
  margin: 1.15rem 0 0.4rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.description {
  margin: 0.7rem 0 0;
  max-width: 68ch;
  white-space: pre-line;
}

.job-detail .summary {
  max-width: 68ch;
}

.job-detail .meta {
  margin-top: 1.1rem;
}

.job-detail-foot {
  flex: none;
  border-top: 2px solid var(--ink);
  padding: 0.75rem 0.95rem max(0.85rem, env(safe-area-inset-bottom));
  background: var(--yellow);
}

.job-detail-foot .panel-actions {
  margin-top: 0;
}

@media (max-width: 959px) {
  body.detail-open {
    overflow: hidden;
  }

  .job-detail:not([hidden]) {
    position: fixed;
    z-index: 60;
    inset: 0;
    width: auto;
    height: 100dvh;
    max-height: none;
    min-height: 0;
    border-width: 0;
    border-left: 6px solid var(--ink);
  }

  .job-detail-scroll {
    overscroll-behavior: contain;
  }

  .job-detail-top {
    padding-top: max(0.65rem, env(safe-area-inset-top));
  }

  .job-detail-foot .btn-apply {
    width: 100%;
  }
}

@media (min-width: 960px) {
  .board.is-split {
    display: grid;
    grid-template-columns: minmax(16rem, 22.5rem) minmax(17rem, 1fr);
    column-gap: 0.85rem;
    align-items: start;
  }

  .board.is-split .title {
    font-size: 1.45rem;
  }

  .board.is-split .job-detail {
    position: sticky;
    top: var(--detail-top, 4.75rem);
    align-self: start;
    height: var(--detail-max, calc(100vh - 5.5rem));
    max-height: var(--detail-max, calc(100vh - 5.5rem));
    min-height: 0;
  }
}
