/* WMS Job Board — front-end styles. Intentionally light so the active theme's
   typography and colors show through. Override in your theme as needed. */

.wms-jb-board {
    width: 100%;
    margin: 0 auto;
}

.wms-jb-board__frame {
    width: 100%;
    border: 0;
    display: block;
}

.wms-jb-board:not(.wms-jb-board--widget) .wms-jb-board__frame {
    min-height: 600px;
}

.wms-jb-board--widget .wms-jb-board__frame {
    min-height: 0;
}

/* Jobs board intro banner — matched to staging Enfold footer_color hero:
   https://wms26staging.wpenginepowered.com/medical-provider-jobs123/ */
.wms-jb-board-hero {
    /* Break out of theme content column so the topo tile is full-bleed. */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
    margin-bottom: 0;
    padding: 50px 24px;
    box-sizing: border-box;
    /* Theme: --enfold-footer-color-background-image */
    background-color: #f2ede7;
    background-position: top left;
    background-repeat: repeat;
    background-attachment: scroll;
    background-size: auto;
    text-align: center;
    color: #000;
}

.wms-jb-board-hero__inner {
    max-width: 1030px;
    margin: 0 auto;
}

.wms-jb-board-hero__title {
    margin: 0 0 8px;
    font-family: "permanent-marker", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 1.15;
    color: #000;
}

.wms-jb-board-hero__tagline {
    margin: 0 0 16px;
    font-family: "permanent-marker", Helvetica, Arial, sans-serif;
    font-weight: 400;
    /* Theme: .av-inherit-size .av-special-heading-tag { font-size: 2em } ≈ body 13px */
    font-size: 26px;
    line-height: 1.25;
    text-transform: uppercase;
    color: #000;
}

.wms-jb-board-hero__body {
    margin: 0.85em auto 22px;
    max-width: 900px;
    font-family: "montserrat", Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.65em;
    font-weight: 400;
    color: #000;
}

.wms-jb-board-hero__cta {
    display: inline-block;
    margin: 3px 0;
    padding: 15px 30px 13px;
    min-width: 139px;
    box-sizing: border-box;
    background-color: #267e3f;
    border: 0;
    border-bottom: 1px solid #045c1d;
    border-radius: 3px;
    color: #fff !important;
    text-decoration: none !important;
    font-family: "montserrat", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.2em;
    text-align: center;
    transition: all 0.4s ease-in-out;
}

.wms-jb-board-hero__cta:hover,
.wms-jb-board-hero__cta:focus {
    opacity: 0.9;
    background-color: #267e3f;
    color: #fff !important;
}

.wms-jb-board-hero__cta:active {
    border-bottom-width: 0;
    border-top: 1px solid #045c1d;
}

@media (max-width: 767px) {
    .wms-jb-board-hero {
        padding: 36px 18px;
        /* fixed attachment is janky on mobile; keep scroll */
        background-attachment: scroll;
    }

    .wms-jb-board-hero__title {
        font-size: 30px;
    }

    .wms-jb-board-hero__tagline {
        font-size: 20px;
    }
}

.wms-jb-notice {
    padding: 12px 16px;
    border: 1px dashed #b32d2e;
    color: #b32d2e;
    font-size: 14px;
    border-radius: 4px;
}

/* Detail page — two columns (main + right sidebar), mirroring the previous
   Matador layout. The active theme styles the title/description via the shared
   `entry-title` / `entry-content` classes. */
.wms-jb-detail {
    width: 100%;
}

.wms-jb-detail__inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 24px 20px 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
}

@media (min-width: 960px) {
    .wms-jb-detail__inner {
        grid-template-columns: minmax(0, 1fr) 460px;
        gap: 0;
        align-items: stretch;
    }

    /* Vertical separator between the content and the sidebar. */
    .wms-jb-detail__main {
        padding-right: 40px;
        border-right: 1px solid rgba(0, 0, 0, 0.12);
    }

    .wms-jb-detail__aside {
        padding-left: 40px;
    }
}

.wms-jb-detail__main {
    min-width: 0;
}

.wms-jb-title,
article.matador-job-listings .entry-title.wms-jb-title {
    margin: 0 0 18px;
    line-height: 1.2;
    /* Matador job title: Montserrat 31px inside .entry-content-wrapper */
    font-family: montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: 31px !important;
    font-weight: 600;
    color: #000;
}

@media (max-width: 600px) {
    .wms-jb-title,
    article.matador-job-listings .entry-title.wms-jb-title {
        font-size: 26px !important;
    }
}

/* Title row: job title + Apply Now button side-by-side */
.wms-jb-title-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.wms-jb-apply-now {
    flex-shrink: 0;
    align-self: center;
    display: inline-block;
    padding: 10px 22px;
    background: #267e3f;
    color: #fff !important;
    border-radius: 3px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    line-height: 1.4;
}

.wms-jb-apply-now:hover {
    background: #1f6633;
    color: #fff !important;
}

.wms-jb-apply-now-wrap--after-description {
    margin: 28px 0 0;
}

.wms-jb-apply-now-wrap--after-description .wms-jb-apply-now {
    align-self: auto;
}

@media (max-width: 480px) {
    .wms-jb-title-header {
        flex-direction: column;
        align-items: stretch;
    }

    .wms-jb-apply-now {
        text-align: center;
        align-self: auto;
    }
}

/* Meta chip bar: state / type / profession ............ job id */
.wms-jb-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin: 0 0 28px;
    padding: 10px 16px;
    background: #f1f1f1;
    border-radius: 4px;
    font-size: 14px;
}

.wms-jb-meta__item {
    line-height: 1.4;
}

.wms-jb-meta__type {
    padding: 2px 8px;
    background: #e2e2e2;
    border-radius: 3px;
}

.wms-jb-meta__profession {
    color: #267e3f;
    font-weight: 600;
}

.wms-jb-meta__jobid {
    margin-left: auto;
    color: #888;
    font-family: montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.wms-jb-description {
    line-height: 1.7;
}

.wms-jb-description h2,
.wms-jb-description h3 {
    margin-top: 1.4em;
}

.wms-jb-description ul,
.wms-jb-description ol {
    padding-left: 1.4em;
}

/* Application form (main column, under the description) */
.wms-jb-apply {
    margin-top: 40px;
    padding: 24px 24px 16px;
    background: #f7f7f7;
    border-radius: 4px;
}

.wms-jb-apply__title {
    margin: 0 0 16px;
    font-family: permanent-marker, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1em;
    color: #267e3f;
}

/* Right sidebar: recruiter cards + job alerts form */
.wms-jb-detail__aside {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Recruiter cards */
.wms-jb-recruiters__title {
    margin: 0 0 18px;
    font-family: permanent-marker, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1em;
    color: #000;
}

.wms-jb-recruiter {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.wms-jb-recruiter__photo {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.wms-jb-recruiter__info {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.wms-jb-recruiter__name {
    font-size: 16px;
    font-weight: 700;
    color: #267e3f;
}

.wms-jb-recruiter__role,
.wms-jb-recruiter__phone {
    color: #888;
    font-size: 14px;
}

.wms-jb-recruiter__phone {
    text-decoration: none;
}

.wms-jb-recruiter__phone:hover {
    color: #267e3f;
}

.wms-jb-recruiters__cta {
    margin: 4px 0 14px;
    color: #888;
}

.wms-jb-recruiters__button {
    display: block;
    text-align: center;
    padding: 12px 16px;
    background: #267e3f;
    color: #fff;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
}

.wms-jb-recruiters__button:hover {
    background: #1f6633;
    color: #fff;
}

.wms-jb-alerts {
    border: 2px solid #267e3f;
    border-radius: 5px;
    padding: 14px;
    background: #fff;
}

.wms-jb-alerts--shortcode {
    max-width: 520px;
}

.wms-jb-alerts__title {
    margin: 0 0 14px;
    font-family: permanent-marker, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1em;
    color: #267e3f;
}

.wms-jb-iframe {
    width: 100%;
    border: 0;
    display: block;
    overflow: hidden;
}

.wms-jb-iframe--apply {
    /* Tall fallback before JS auto-resize; must fit the full application form. */
    height: 820px;
    min-height: 0;
}

.wms-jb-iframe--alerts {
    /* Tall fallback before JS auto-resize; must fit the full alerts form in the
       narrow sidebar (name, email, profession + job-type chips, specialty/state
       selects, submit). JS auto-resize shrinks it to the exact content height. */
    height: 960px;
    min-height: 0;
}

/* Share this entry — Enfold av-share-box layout; inline SVG icons for reliable rendering. */
.wms-jb-share {
    margin-top: 44px;
    clear: both;
    width: 100%;
}

.wms-jb-share .av-share-box {
    margin-bottom: 0;
}

.wms-jb-share .av-share-link-description {
    margin-bottom: 20px;
    font-family: permanent-marker, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1em;
    color: #000;
}

.wms-jb-share .av-share-box ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wms-jb-share__icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

.wms-jb-share .avia_hidden_link_text {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Crawlable fallback list on the board page (visible; not a hidden link farm). */
.wms-jb-crawl-links {
    margin: 32px auto 48px;
    max-width: 1030px;
    padding: 0 4px;
}

.wms-jb-crawl-links h2 {
    margin: 0 0 12px;
    font-size: 1.25em;
    font-weight: 600;
    line-height: 1.3;
}

.wms-jb-crawl-links ul {
    margin: 0;
    padding-left: 1.25em;
}

.wms-jb-crawl-links li {
    margin: 0.4em 0;
    line-height: 1.45;
}

.wms-jb-crawl-links a {
    text-decoration: underline;
}
