/* V2.9.60 — Mobile ONLY homepage Jobs shortcode cards.
   Desktop, Single Jobs, Similar Jobs, and Jobs Directory are untouched. */
@media screen and (max-width: 767px) {
  /* Avatar, employer link and status sit on one row; title uses full card width. */
  .swhj-home .swhj-card .swhj-card-top {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    grid-template-rows: minmax(44px, auto) auto !important;
    align-items: center !important;
    justify-content: stretch !important;
    column-gap: 10px !important;
    row-gap: 9px !important;
    min-height: 0 !important;
    margin-bottom: 12px !important;
  }
  .swhj-home .swhj-card .swhj-card-top > .swhj-identity,
  .swhj-home .swhj-card .swhj-card-top > .swhj-identity > .swhj-titles {
    display: contents !important;
  }
  .swhj-home .swhj-card .swhj-card-top .swhj-avatar {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 50% !important;
  }
  .swhj-home .swhj-card .swhj-card-top .swhj-employer {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    margin: 0 !important;
    font-size: 14px !important;
  }
  .swhj-home .swhj-card .swhj-card-top .swhj-employer a {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .swhj-home .swhj-card .swhj-card-top > .swhj-status {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    margin: 0 !important;
    max-width: 80px;
    white-space: nowrap;
  }
  .swhj-home .swhj-card .swhj-card-top .swhj-job-title {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.34 !important;
    letter-spacing: -0.015em !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
  }
  /* Compact single line for location, rate, job type and experience level. */
  .swhj-home .swhj-card .swhj-meta {
    display: flex !important;
    flex-flow: row nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    column-gap: 5px !important;
    row-gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 12px !important;
    font-size: clamp(10px, 2.8vw, 11.5px) !important;
    line-height: 1.4 !important;
  }
  .swhj-home .swhj-card .swhj-meta > span {
    display: inline-flex !important;
    align-items: center !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    gap: 3px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }
  .swhj-home .swhj-card .swhj-meta > span:nth-child(2) {flex-grow: 1.30 !important;}
  .swhj-home .swhj-card .swhj-meta svg {
    flex: 0 0 12px !important;
    width: 12px !important;
    height: 12px !important;
  }
  .swhj-home .swhj-card .swhj-meta .swhj-meta-text {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: inherit !important;
    line-height: inherit !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .swhj-home .swhj-card .swhj-meta .swhj-meta-text :is(.jws_price,.jws-price) {
    font-size: inherit !important;
    white-space: nowrap !important;
  }
  /* Only the first category is visible on mobile (all remain on desktop). */
  .swhj-home .swhj-card .swhj-skills > a:nth-child(n+2) {display:none !important;}
  .swhj-home .swhj-card .swhj-skills {min-height:0 !important; margin-bottom:17px !important;}
  .swhj-home .swhj-card .swhj-skills > a:first-child {
    display: inline-block !important;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media screen and (max-width: 359px) {
  .swhj-home .swhj-card .swhj-meta {font-size: 10px !important; column-gap: 3px !important;}
  .swhj-home .swhj-card .swhj-meta svg {width: 11px !important;height:11px !important;flex-basis:11px !important;}
  .swhj-home .swhj-card .swhj-card-top {column-gap:7px !important;}
  .swhj-home .swhj-card .swhj-card-top .swhj-job-title {font-size:15px !important;}
}
