/* job-boards.io - the crawlable directory pages.
   Chrome (nav, wordmark, footer, buttons) comes from base.css and
   landing.css, exactly as the FAQ page takes it; this file is only the
   rhythm of a list of employers and a list of openings, so these pages
   cannot drift into looking like a different site. */

.dir {
  max-width: 58rem;
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 5vw, 3.5rem) 4rem;
}

.dir__crumbs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faint);
  margin-bottom: 1.25rem;
}
.dir__crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.dir__crumbs a:hover {
  color: var(--accent);
}
.dir__crumbsep {
  margin: 0 0.5rem;
  opacity: 0.5;
}

.dir__title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.dir__lede {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.dir__h2 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.dir__more,
.dir__empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.25rem;
}

/* Openings on an employer's page. */
.jobs,
.cos,
.fieldcards {
  list-style: none;
  margin: 0;
  padding: 0;
}

.job {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.job__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.job__title a {
  color: var(--text);
  text-decoration: none;
}
.job__title a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.job__meta {
  margin: 0.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--faint);
}
.job__meta span + span::before {
  content: '·';
  margin: 0 0.5rem;
  opacity: 0.6;
}

/* Employers, and fields. Two columns where there is room - a list of names
   reads faster short than long. */
.cos,
.fieldcards {
  display: grid;
  gap: 0.25rem 2rem;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.co,
.fieldcard {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.co__name,
.fieldcard__name {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.co__name:hover,
.fieldcard__name:hover {
  color: var(--accent);
  text-decoration: underline;
}

.co__meta,
.fieldcard__meta {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--faint);
}

/* The one thing every directory page is for: getting the reader to search. */
.dir__cta {
  margin-top: 3.5rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: center;
}
.dir__cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.dir__cta p {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  color: var(--muted);
}
