/* Gastro.News jobs only: compact, responsive teaser cards.
 *
 * Markup: template-parts/layouts/elements/content-h/job-card.php, which content-h.php uses
 * for every `job` post and marks with `.gn-job-card`.
 *
 * Scoped on that class, not on #gridlove-module-37 as in the draft: the module id is the
 * module's position in the homepage's module list, so adding or removing a module in the
 * page editor would have silently unstyled the cards. Measured 2026-10-25 on the live
 * homepage at 1440px and 390px: every computed property is identical to the id-scoped
 * version, whether this file prints before or after the theme's other stylesheets. */
article.gn-job-card {
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
}
.gn-job-card .gn-job-card__visual {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #f5f5f7;
}
.gn-job-card .gn-job-card__image-link {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.gn-job-card .gn-job-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    box-sizing: border-box;
}
.gn-job-card .gn-job-card__fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #555;
    font: 500 13px/1.4 Arial, sans-serif;
    text-align: center;
    padding: 20px;
}
.gn-job-card .gn-job-card__fallback-mark {
    color: #ad3e81;
    font-weight: 700;
    letter-spacing: .04em;
    font-size: 21px;
}
.gn-job-card .gn-job-card__visual--empty .gn-job-card__fallback {
    display: flex;
}
.gn-job-card .gn-job-card__visual--empty .gn-job-card__image {
    display: none;
}
.gn-job-card .gn-job-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    padding: 5px 11px;
    background: #ad3e81;
    color: #fff;
    font: 700 12px/1.4 Arial, sans-serif;
    border-radius: 4px;
    pointer-events: none;
}
.gn-job-card .gn-job-card__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    min-height: 170px;
}
.gn-job-card .gn-job-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    font: 500 13px/1.4 Arial, sans-serif;
    color: #666;
}
.gn-job-card .gn-job-card__title {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.gn-job-card .gn-job-card__title a {
    color: #222;
}
.gn-job-card .gn-job-card__action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 10px 12px;
    border: 1px solid #ad3e81;
    border-radius: 6px;
    color: #ad3e81;
    font-size: 14px;
    font-weight: 700;
}
.gn-job-card .gn-job-card__action:hover,
.gn-job-card .gn-job-card__action:focus-visible {
    background: #ad3e81;
    color: #fff;
}
@media (max-width: 767px) {
    .gn-job-card .gn-job-card__visual { height: 170px; }
    .gn-job-card .gn-job-card__content { padding: 14px 16px 16px; min-height: 0; }
    .gn-job-card .gn-job-card__title { font-size: 20px; }
}
