/*
 * Application-side adjustments to the JobRena front theme: the design was
 * exported as a single static page, these rules adapt it to a Laravel layout
 * that also renders vendor Bootstrap pages below the header.
 */

.jr-ui.jr-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.jr-ui .header {
    position: static;
}

.jr-ui .brand-logo {
    max-height: 34px;
    width: auto;
}

.jr-ui .actions .btn.dark {
    display: inline-flex;
    align-items: center;
}

.jr-ui .jr-market {
    position: relative;
    height: auto;
}

.jr-ui .jr-market .country {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.jr-ui .jr-market-menu {
    left: auto;
    right: 0;
    top: 30px;
    z-index: 1040;
}

.jr-ui .nav-item.is-open > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

/* Escape sets .jr-hover-off so a hover-opened menu really closes until the
   pointer moves again. */
body.jr-hover-off .jr-ui .nav-item:hover > .dropdown,
body.jr-hover-off .jr-ui .nav-item:focus-within > .dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
}

.jr-offscreen {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mark-favorite:focus-visible,
.refer-job:focus-visible {
    outline: 2px solid #0b8d83;
    outline-offset: 3px;
    border-radius: 6px;
}

.jr-ui .jr-market-menu b {
    background: #eef4f8;
    font-size: 15px;
}

.jr-ui .mobile-nav .jr-mobile-heading {
    display: block;
    padding: 14px 0 4px;
    font-size: 10px;
    letter-spacing: .12em;
    color: #8497a6;
}

.jr-ui .job .mark-favorite,
.jr-ui .job .refer-job {
    border: 1px solid var(--line);
    background: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #8fa3b3;
    font-size: 12px;
    cursor: pointer;
}

.jr-ui .job .mark-favorite.favorited {
    color: #e0426a;
    border-color: #f6c9d5;
}

.jr-ui .job-top .job-actions {
    display: flex;
    gap: 8px;
}

.jr-ui .avatar img,
.jr-ui .employer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.jr-ui .search .field select,
.jr-ui .search .field input {
    width: 100%;
}

.jr-ui .empty-state {
    border: 1px dashed var(--line);
    border-radius: 16px;
    padding: 34px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.jr-ui .hero .visual-photo {
    background: linear-gradient(150deg, #0d2f4a, #12796f);
}

.jr-ui-page {
    background: var(--soft);
}

/* The Phase 2 stylesheet colours every heading, which beats the colour the
   designers' dark sections rely on inheriting. */
.jr-ui h1,
.jr-ui h2,
.jr-ui h3,
.jr-ui h4,
.jr-ui h5,
.jr-ui h6 {
    color: inherit;
    font-family: inherit;
}

/* Department artwork stands in for the designers' inline icons. */
.jr-ui .prof-icon {
    overflow: hidden;
}

.jr-ui .prof-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Anchor colours from the vendor and Phase 2 sheets bleed into the designers'
   solid buttons, which carry their own foreground. */
.jr-ui a.btn.light,
.jr-ui a.btn.light:hover {
    color: var(--ink);
}

.jr-ui a.btn.dark,
.jr-ui a.btn.dark:hover {
    color: #fff;
}

.jr-ui a.btn.outline,
.jr-ui a.btn.outline:hover {
    color: inherit;
}

/* Academy intro paragraph, inline in the designers' export. */
.jr-ui .academy-lead {
    max-width: 760px;
    color: #6c8192;
    line-height: 1.7;
    margin: -18px 0 35px;
}

/* Organisations without an uploaded logo fall back to a lettermark rather
   than the vendor's grey placeholder image. */
.jr-ui .lettermark {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .5px;
}

.jr-ui .employer-logo .lettermark {
    font-size: 17px;
}

.jr-ui .employer-logo img {
    max-width: 84px;
    max-height: 30px;
}

/* Employer cards carry a verification badge and job count, so the grid rows
   are levelled and the action link is pinned to the base of each card. */
.jr-ui .employer-grid {
    align-items: stretch;
}

.jr-ui .employer-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.jr-ui .employer-card .employer-logo {
    margin-bottom: 18px;
}

.jr-ui .employer-card .verified {
    margin: 0 0 6px;
}

.jr-ui .employer-card p {
    margin: 0 0 16px;
}

.jr-ui .employer-card a {
    margin-top: auto;
}

/* A lone trailing market card spans the row instead of leaving a gap. */
.jr-ui .country-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* Opportunity cards keep a common baseline whether or not the employer carries
   a verification badge, and the footer sits at the bottom of every card. */
.jr-ui .jobs{align-items:stretch}

.jr-ui .job{display:flex;flex-direction:column}

.jr-ui .verified-space{display:block;height:14px;margin-top:13px}

.jr-ui .job .job-foot{margin-top:auto}

/* The footer mark keeps its natural aspect ratio inside the white pill. */
.jr-ui .footer .brand-logo {
    width: auto;
    height: 34px;
    max-height: none;
    object-fit: contain;
}
