/* Job map: area buttons, Leaflet map, details panel and job cards.
   Markup is written by content/job-map.mjs, behaviour is assets/js/omg-job-map.js.
   Sizes are in px because the site sets html { font-size: 62.5% }. */

.omg-jobs {
  --omg-pin: #c8102e;
  --omg-btn: #c8102e;
  --omg-ink: #141a26;
  --omg-text: #3d4350;
  --omg-muted: #646b78;
  --omg-line: #dfe2e7;
  --omg-bg: #f3f4f6;
  --omg-card: #fff;
  --omg-radius: 12px;
  background-color: var(--omg-bg);
  color: var(--omg-text);
  font-family: Matter_R, Arial, sans-serif;
  padding: 72px 0; }

.omg-jobs [hidden] {
  display: none !important; }

.omg-jobs .omg-jobs-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 70px; }

.omg-jobs .omg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap; }

/* heading */
.omg-jobs .omg-jobs-title {
  color: var(--omg-ink);
  font: 400 40px/1.15 Matter_B, Arial, sans-serif;
  letter-spacing: -.01em;
  margin: 0 0 14px; }

.omg-jobs .omg-jobs-lede {
  color: var(--omg-text);
  font-size: 18px;
  line-height: 1.6;
  max-width: 78ch;
  margin: 0 0 26px; }

/* area buttons */
.omg-jobs .omg-jobs-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 44px;
  margin: 0 0 24px; }

.omg-jobs .omg-jobs-area {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px 9px 16px;
  background-color: var(--omg-card);
  border: 1px solid var(--omg-line);
  border-radius: 999px;
  color: var(--omg-ink);
  font: 16px/1.3 Matter_R, Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s; }

.omg-jobs .omg-jobs-area:hover {
  border-color: var(--omg-ink); }

.omg-jobs .omg-jobs-area:focus-visible,
.omg-jobs .omg-job-card-pick:focus-visible,
.omg-jobs .omg-jobs-panel-back:focus-visible,
.omg-jobs .omg-jobs-more button:focus-visible,
.omg-jobs a:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px; }

.omg-jobs .omg-jobs-area-count {
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  background-color: var(--omg-bg);
  color: var(--omg-text);
  font-size: 13px;
  text-align: center; }

.omg-jobs .omg-jobs-area.is-empty {
  color: var(--omg-muted); }

.omg-jobs .omg-jobs-area[aria-pressed="true"] {
  background-color: var(--omg-ink);
  border-color: var(--omg-ink);
  color: #fff; }

.omg-jobs .omg-jobs-area[aria-pressed="true"] .omg-jobs-area-count {
  background-color: rgba(255, 255, 255, .18);
  color: #fff; }

/* map + panel */
.omg-jobs .omg-jobs-main {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start; }

.omg-jobs .omg-jobs-stage {
  min-width: 0; }

.omg-jobs .omg-job-map {
  position: relative;
  z-index: 0;
  isolation: isolate;        /* keeps Leaflet's layers under the fixed navbar */
  height: 480px;
  background-color: #e2e6e9;
  border: 1px solid var(--omg-line);
  border-radius: var(--omg-radius);
  overflow: hidden;
  font-family: Matter_R, Arial, sans-serif; }

.omg-jobs .leaflet-container {
  font: 13px/1.4 Matter_R, Arial, sans-serif; }

.omg-jobs .leaflet-tooltip {
  font-size: 14px;
  color: var(--omg-ink); }

.omg-jobs .omg-jobs-note {
  margin: 10px 2px 0;
  color: var(--omg-muted);
  font-size: 15px;
  line-height: 1.5; }

.omg-jobs .omg-jobs-touch-hint {
  display: none;
  margin: 10px 2px 0;
  color: var(--omg-muted);
  font-size: 14px; }

.omg-jobs.is-touch .omg-jobs-touch-hint {
  display: block; }

/* If the map cannot load, the panel and the job cards carry on without it. */
.omg-jobs.is-mapless .omg-jobs-stage {
  display: none; }

.omg-jobs.is-mapless .omg-jobs-main {
  grid-template-columns: minmax(0, 1fr); }

.omg-jobs .omg-jobs-panel {
  background-color: var(--omg-card);
  border: 1px solid var(--omg-line);
  border-radius: var(--omg-radius);
  padding: 24px 24px 0;
  height: 480px;
  overflow-y: auto; }

.omg-jobs .omg-jobs-panel-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 0 16px;
  background-color: var(--omg-bg); }

.omg-jobs .omg-jobs-panel-eyebrow {
  color: var(--omg-muted);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 6px; }

.omg-jobs .omg-jobs-panel-title {
  color: var(--omg-ink);
  font: 400 26px/1.2 Matter_SB, Arial, sans-serif;
  margin: 0 0 6px; }

.omg-jobs .omg-jobs-panel-count {
  color: var(--omg-pin);
  font-family: Matter_SB, Arial, sans-serif;
  font-size: 16px;
  margin: 0 0 14px; }

.omg-jobs .omg-jobs-panel-address {
  color: var(--omg-muted);
  font-size: 15px;
  margin: 0 0 10px; }

.omg-jobs .omg-jobs-panel-text {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 14px; }

.omg-jobs .omg-jobs-panel-hint {
  color: var(--omg-muted);
  font-size: 15px;
  margin: 0 0 16px; }

.omg-jobs .omg-jobs-facts {
  margin: 0 0 16px;
  border-top: 1px solid var(--omg-line); }

.omg-jobs .omg-jobs-facts > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--omg-line); }

.omg-jobs .omg-jobs-facts dt {
  color: var(--omg-muted);
  font-size: 14px;
  font-weight: 400; }

.omg-jobs .omg-jobs-facts dd {
  color: var(--omg-ink);
  font-size: 15px;
  line-height: 1.45;
  margin: 0; }

.omg-jobs .omg-jobs-review {
  margin: 0 0 16px;
  padding: 14px 16px;
  background-color: var(--omg-bg);
  border-radius: 8px; }

.omg-jobs .omg-jobs-review figcaption {
  color: var(--omg-ink);
  font-family: Matter_SB, Arial, sans-serif;
  font-size: 14px;
  margin: 0 0 6px; }

.omg-jobs .omg-jobs-review blockquote {
  font-size: 15px;
  line-height: 1.55;
  margin: 0; }

.omg-jobs .omg-jobs-panel-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 4px;
  padding: 14px 0 22px;
  background-color: var(--omg-card); }

.omg-jobs .omg-jobs-cta {
  display: inline-block;
  padding: 13px 22px;
  background-color: var(--omg-btn);
  border-radius: 8px;
  color: #fff;
  font-family: Matter_SB, Arial, sans-serif;
  font-size: 16px;
  text-decoration: none;
  transition: filter .15s; }

.omg-jobs .omg-jobs-cta:hover {
  color: #fff;
  filter: brightness(.9); }

.omg-jobs .omg-jobs-panel-link {
  color: var(--omg-ink);
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px; }

.omg-jobs .omg-jobs-panel-back {
  display: block;
  margin: 0 0 14px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--omg-muted);
  font: 15px/1.4 Matter_R, Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer; }

.omg-jobs .omg-jobs-panel-back::before {
  content: '\2190\00a0'; }

/* job cards */
.omg-jobs .omg-job-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0; }

.omg-jobs .omg-job-card {
  display: flex;
  flex-direction: column;
  background-color: var(--omg-card);
  border: 1px solid var(--omg-line);
  border-radius: var(--omg-radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s; }

.omg-jobs .omg-job-card:hover {
  border-color: #b9bec8; }

.omg-jobs .omg-job-card.is-active {
  border-color: var(--omg-ink);
  box-shadow: 0 0 0 1px var(--omg-ink); }

.omg-jobs .omg-job-card-media {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #e2e6e9; }

.omg-jobs .omg-job-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; }

.omg-jobs .omg-job-card-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 16px;
  color: var(--omg-muted);
  font-size: 18px;
  text-align: center; }

.omg-jobs .omg-job-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px; }

.omg-jobs .omg-job-card-area {
  color: var(--omg-muted);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 6px; }

.omg-jobs .omg-job-card-title {
  margin: 0 0 6px; }

.omg-jobs .omg-job-card-pick {
  padding: 0;
  background: none;
  border: 0;
  color: var(--omg-ink);
  font: 400 20px/1.25 Matter_SB, Arial, sans-serif;
  text-align: left;
  cursor: pointer; }

.omg-jobs .omg-job-card-style {
  color: var(--omg-ink);
  font-size: 15px;
  margin: 0 0 8px; }

.omg-jobs .omg-job-card-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 14px; }

.omg-jobs .omg-job-card-link {
  align-self: flex-start;
  margin-top: auto;
  padding: 9px 16px;
  border: 1px solid var(--omg-ink);
  border-radius: 8px;
  color: var(--omg-ink);
  font-family: Matter_SB, Arial, sans-serif;
  font-size: 15px;
  text-decoration: none;
  transition: background-color .15s, color .15s; }

.omg-jobs .omg-job-card-link:hover {
  background-color: var(--omg-ink);
  color: #fff; }

.omg-jobs .omg-jobs-more {
  margin: 24px 0 0;
  text-align: center; }

.omg-jobs .omg-jobs-more button {
  padding: 11px 22px;
  background-color: var(--omg-card);
  border: 1px solid var(--omg-line);
  border-radius: 999px;
  color: var(--omg-ink);
  font: 16px/1.3 Matter_R, Arial, sans-serif;
  cursor: pointer; }

.omg-jobs .omg-jobs-more button:hover {
  border-color: var(--omg-ink); }

/* quote page: small map over a plain list of job links */
.omg-jobs--compact {
  padding: 48px 0; }

.omg-jobs--compact .omg-jobs-title {
  font-size: 30px; }

.omg-jobs--compact .omg-job-map {
  height: 320px; }

.omg-jobs .omg-job-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0; }

.omg-jobs .omg-job-links a {
  color: var(--omg-ink);
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px; }

.omg-jobs .omg-job-popup {
  display: grid;
  gap: 4px;
  font-size: 14px; }

.omg-jobs .omg-job-popup strong {
  color: var(--omg-ink); }

/* job page: one pin */
.omg-jobs--single {
  background: none;
  padding: 0; }

.omg-jobs--single .omg-job-map {
  height: 280px; }

/* job pages (jobs/<slug>/) */
.job-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none; }

.job-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px; }

.job-review {
  margin: 0;
  padding: 20px 24px;
  background-color: #f3f4f6;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1.6; }

/* tablet */
@media (max-width: 1100px) {
  .omg-jobs .omg-jobs-inner {
    padding: 0 30px; }

  .omg-jobs .omg-jobs-main {
    grid-template-columns: minmax(0, 1fr); }

  .omg-jobs .omg-jobs-panel {
    height: auto; }

  .omg-jobs .omg-jobs-panel-actions {
    position: static; }

  .omg-jobs .omg-job-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* phone */
@media (max-width: 640px) {
  .omg-jobs {
    padding: 48px 0; }

  .omg-jobs .omg-jobs-inner {
    padding: 0 16px; }

  .omg-jobs .omg-jobs-title {
    font-size: 30px; }

  .omg-jobs .omg-jobs-lede {
    font-size: 16px; }

  /* one row of buttons that scrolls sideways inside the page gutter */
  .omg-jobs .omg-jobs-areas {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -16px 20px;
    padding: 2px 16px 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch; }

  .omg-jobs .omg-jobs-area {
    flex: 0 0 auto; }

  .omg-jobs .omg-job-map {
    height: 360px; }

  .omg-jobs .omg-jobs-panel {
    padding: 20px 20px 0; }

  .omg-jobs .omg-jobs-facts > div {
    grid-template-columns: 104px minmax(0, 1fr); }

  .omg-jobs .omg-job-list {
    grid-template-columns: minmax(0, 1fr); }

  .omg-jobs .omg-jobs-cta {
    width: 100%;
    text-align: center; } }

@media (prefers-reduced-motion: reduce) {
  .omg-jobs * {
    transition: none !important; } }
