/* /jobs explore page (Jobs/Explore.cshtml). Builds on jobs.css (.jb base, icons, chips).
   Container queries, not media queries: the guest page and the signed-in portal (with its
   sidebar) give the page different widths at the same screen size. */

.jx { container-type: inline-size; display: grid; gap: 40px; }

/* ---------- Hero ---------- */
.jx-hero {
    display: grid;
    gap: 20px;
    padding: 32px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 92% 12%, rgba(249, 215, 126, .35), transparent 42%),
        linear-gradient(135deg, var(--color-navy-deep), var(--color-navy) 55%, var(--color-blue-dark));
    color: #fff;
}
.jx-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .12);
    color: var(--color-gold-light);
    font-size: .8125rem;
    font-weight: 600;
}
.jx-kicker .jb-i { width: 16px; height: 16px; }
.jx-title {
    margin-top: 12px !important;
    font-size: clamp(1.75rem, 1.2rem + 2.4cqw, 2.625rem);
    font-weight: 700;
    line-height: 1.12;
    color: #fff;
}
.jx-sub { margin-top: 8px !important; max-width: 640px; font-size: 1rem; color: rgba(255, 255, 255, .82); }

.jx-search {
    display: flex;
    gap: 8px;
    max-width: 720px;
    padding: 6px;
    border-radius: var(--radius-pill);
    background: #fff;
    box-shadow: var(--shadow-lg);
}
.jx-search-field { flex: 1; display: flex; align-items: center; gap: 10px; padding-inline: 14px; color: var(--color-muted); min-width: 0; }
.jx-search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1rem; color: var(--color-text); }
.jx-search:focus-within { outline: 3px solid var(--color-gold); outline-offset: 2px; }
.jx-search .rs-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; border-radius: var(--radius-pill); }

/* ---------- Section heads + "what fits you" ---------- */
.jx-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.jx h2 { font-size: 1.25rem; font-weight: 700; color: var(--color-navy); }
.jx-fits { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.jx-fits-label { font-size: .8125rem; font-weight: 600; color: var(--color-muted); }
.jx-fit {
    padding: 6px 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
    font-size: .8125rem;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.jx-fit:hover { border-color: var(--color-blue); color: var(--color-blue); }
.jx-fit[aria-pressed="true"] { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.jx-fit:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }
.jx-fits-status { min-height: 1.25em; margin-top: 8px !important; font-size: .8125rem; color: var(--color-muted); }

/* ---------- Type cards ---------- */
.jx-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 8px !important; }
@container (min-width: 640px) { .jx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 1000px) { .jx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.jx-card { --jx-accent: var(--color-blue); --jx-soft: var(--color-info-soft); transition: opacity .2s, transform .2s; }
.jx-accent--sky { --jx-accent: var(--color-navy); --jx-soft: var(--color-info-soft); }
.jx-accent--gold { --jx-accent: var(--color-gold-deep); --jx-soft: var(--color-gold-soft); --jx-ink: var(--color-gold-text); }
.jx-accent--green { --jx-accent: var(--color-success); --jx-soft: var(--color-success-soft); }
.jx-accent--amber { --jx-accent: var(--color-warning); --jx-soft: var(--color-warning-soft); }
.jx-accent--pink { --jx-accent: var(--color-mela-pink); --jx-soft: var(--color-mela-pink-soft); }
.jx-accent--navy { --jx-accent: var(--color-blue-dark); --jx-soft: var(--color-soft); }
.jx-accent--violet { --jx-accent: var(--color-mela-divyang); --jx-soft: var(--color-mela-divyang-soft); }

.jx-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, border-color .2s, transform .2s;
}
.jx-card > a:hover { border-color: var(--jx-accent); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.jx-card > a:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 3px; }
.jx-card.is-dim { opacity: .38; }
.jx-card.is-match > a { border-color: var(--jx-accent); box-shadow: 0 0 0 2px var(--jx-accent), var(--shadow-lg); }

.jx-media { position: relative; display: block; aspect-ratio: 16 / 8; overflow: hidden; background: var(--jx-soft); }
.jx-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.jx-card > a:hover .jx-media img { transform: scale(1.04); }
.jx-media--tile { display: grid; place-items: center; color: var(--jx-accent); }
.jx-media--tile .jb-i { width: 72px; height: 72px; stroke-width: 1.2; }
.jx-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--color-gold);
    color: var(--color-navy-deep);
    font-size: max(.75rem, 12px);
    font-weight: 700;
}

.jx-body { position: relative; display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 0 20px 20px; }
.jx-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border: 3px solid var(--color-surface);
    border-radius: 14px;
    background: var(--jx-accent);
    color: #fff;
}
.jx-icon .jb-i { width: 22px; height: 22px; }
.jx-card-title { font-size: 1.125rem; font-weight: 700; color: var(--color-navy); }
.jx-desc { font-size: .875rem; color: var(--color-muted); }
.jx-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.jx-tags span { padding: 2px 10px; border-radius: var(--radius-pill); background: var(--jx-soft); color: var(--color-text); font-size: max(.75rem, 12px); }
.jx-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--color-line-soft);
}
.jx-count { font-size: .875rem; font-weight: 700; color: var(--jx-ink, var(--jx-accent)); }
.jx-count.is-none { font-weight: 500; color: var(--color-muted); }
.jx-cta { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--color-blue); }
.jx-cta .jb-i { width: 16px; height: 16px; transition: transform .2s; }
.jx-card > a:hover .jx-cta .jb-i { transform: translateX(3px); }

/* "Not sure yet?" closes the grid: dashed, no photo, same height as its row. */
.jx-card--all > a { border-style: dashed; border-width: 2px; background: var(--color-surface-alt); justify-content: center; }
.jx-card--all .jx-body { padding: 24px; }
.jx-card--all .jx-icon { margin-top: 0; border: 0; background: var(--color-navy); }

/* ---------- Quick paths ---------- */
.jx-paths-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 16px; }
@container (min-width: 800px) { .jx-paths-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.jx-path { padding: 20px; border: 1px solid var(--color-line); border-radius: var(--radius-lg); background: var(--color-surface); }
.jx-path h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1rem; font-weight: 700; color: var(--color-navy); }
.jx-path ul:not(.jx-chips) a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-line-soft);
    color: var(--color-text);
}
.jx-path ul:not(.jx-chips) li:last-child a { border-bottom: 0; }
.jx-path ul:not(.jx-chips) a:hover { color: var(--color-blue); }
.jx-path ul:not(.jx-chips) a span { color: var(--color-muted); font-size: .8125rem; }
.jx-path .jx-chips { display: flex; flex-wrap: wrap; gap: 8px; }

@container (max-width: 560px) {
    .jx-hero { padding: 24px 16px; }
    .jx-search { flex-direction: column; border-radius: var(--radius-lg); }
    .jx-search-field { padding: 8px 10px; }
    .jx-search .rs-btn { justify-content: center; border-radius: var(--radius-md); }
}

@media (prefers-reduced-motion: reduce) {
    .jx-card > a:hover, .jx-card > a:hover .jx-media img { transform: none; }
}
