/* ==========================================================================
   Exemplar Health Care — Internal job search
   Built to the Feb 2026 brand guidelines + July 2026 client mock-up
   (see working_folder/CLIENT-FEEDBACK-QUICK-REF.md)
   ========================================================================== */

@font-face {
    font-family: "FS Me";
    src: url("../fonts/FSMe.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --ehc-teal: #007D8A;
    --ehc-teal-dark: #01636E;
    --ehc-peacock: #014D50;
    --ehc-pearl: #E6E6E6;
    --ehc-card: #ECECEC;
    --ehc-ink: #1A1A1A;
    --ehc-grey: #444444;
    --ehc-border: #B8B8B8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.internal-search {
    margin: 0;
    background: #ffffff;
    color: var(--ehc-ink);
    font-family: "FS Me", "Segoe UI", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--ehc-teal);
}

:focus-visible {
    outline: 3px solid var(--ehc-peacock);
    outline-offset: 2px;
    border-radius: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 10;
    background: var(--ehc-peacock);
    color: #fff;
    padding: 10px 18px;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
}

/* Header
   ========================================================================== */
.site-header {
    padding: 36px 0 4px;
}

.site-logo {
    display: inline-block;
    line-height: 0;
}

.site-logo img,
.site-logo svg {
    width: 200px; /* brand minimum 130px digital */
    height: auto;
}

/* Page title
   ========================================================================== */
.page-title {
    color: var(--ehc-teal);
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 40px 0 36px;
}

.page-title--detail {
    margin: 8px 0 28px;
    font-size: clamp(1.75rem, 3.5vw, 2.375rem);
}

/* Search bar
   ========================================================================== */
.search-bar {
    display: grid;
    grid-template-columns: 1.3fr 1.3fr 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.search-field label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.search-field input[type="text"],
.search-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--ehc-border);
    border-radius: 8px;
    background-color: #fff;
    color: var(--ehc-ink);
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
}

.search-field input[type="text"]::placeholder {
    color: #595959; /* 7:1 on white */
    opacity: 1;
}

.search-field--location {
    position: relative;
}

.search-field--location input[type="text"] {
    padding-right: 42px;
}

.search-field__icon {
    position: absolute;
    right: 14px;
    bottom: 13px;
    width: 20px;
    height: 20px;
    color: var(--ehc-ink);
    pointer-events: none;
}

.search-field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231A1A1A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ehc-teal);
    color: #fff;
    font: inherit;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    border: 0;
    border-radius: 8px;
    padding: 12px 28px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn:hover,
.btn:active {
    background: var(--ehc-teal-dark);
    color: #fff;
}

.btn[disabled],
.btn[data-loading] {
    pointer-events: none;
    opacity: 0.65;
}

.btn--search {
    border-radius: 999px;
    padding: 13px 44px;
}

.search-reset-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.link-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 0;
    padding: 4px 2px;
    color: var(--ehc-teal);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.link-reset:hover {
    text-decoration: underline;
    color: var(--ehc-teal-dark);
}

.link-reset svg {
    width: 18px;
    height: 18px;
}

/* Results
   ========================================================================== */
.results-count {
    color: var(--ehc-teal);
    font-size: 1.375rem;
    margin: 44px 0 26px;
}

#job-listing.is-loading {
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.jobs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 768px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.job-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--ehc-card);
    border-radius: 6px;
    padding: 32px 36px 34px;
    transition: background-color 0.15s ease;
}

.job-card:hover {
    background: #E0E0E0;
}

.job-card:focus-within {
    outline: 3px solid var(--ehc-peacock);
    outline-offset: 2px;
}

.job-card__title {
    margin: 0 0 12px;
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.job-card__title a {
    color: var(--ehc-teal);
    text-decoration: none;
    outline: none; /* focus shown on the card via :focus-within */
}

/* whole card is clickable via the stretched title link */
.job-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 6px;
}

.job-card__meta {
    margin: 0;
    color: var(--ehc-ink);
}

.job-card__distance {
    margin: 6px 0 0;
    color: var(--ehc-grey);
    font-size: 0.9375rem;
}

.job-card__apply {
    position: relative; /* sits above the stretched link */
    z-index: 1;
    margin-top: 22px;
}

.load-more-row {
    display: flex;
    justify-content: center;
    margin: 44px 0 8px;
}

/* No results
   ========================================================================== */
.no-results {
    max-width: 680px;
    padding: 36px 0 8px;
}

.no-results p {
    margin: 0 0 24px;
    font-size: 1.125rem;
}

/* Job detail page
   ========================================================================== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 28px 0 4px;
    color: var(--ehc-teal);
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
    color: var(--ehc-teal-dark);
}

.job-detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    margin-bottom: 24px;
}

@media (max-width: 860px) {
    .job-detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.job-detail-aside {
    background: var(--ehc-card);
    border-radius: 6px;
    padding: 28px 30px 30px;
}

.job-detail-aside h2 {
    margin: 0 0 18px;
    color: var(--ehc-teal);
    font-size: 1.25rem;
    font-weight: 700;
}

.job-detail-aside dl {
    margin: 0 0 22px;
}

.job-detail-aside dt {
    font-weight: 700;
    margin: 0 0 2px;
}

.job-detail-aside dd {
    margin: 0 0 14px;
}

.job-detail-aside .btn {
    width: 100%;
}

.job-detail-aside__download {
    display: inline-block;
    margin: 0 0 16px;
    color: var(--ehc-teal);
    font-weight: 700;
    text-decoration: underline;
}

.job-description {
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
}

.job-description img,
.job-description table {
    max-width: 100%;
    height: auto;
}

.job-description * {
    position: static !important;
}

.job-detail-body > .btn {
    margin-top: 28px;
}

/* Footer
   ========================================================================== */
.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--ehc-pearl);
    padding: 26px 0 44px;
    color: var(--ehc-grey);
    font-size: 0.9375rem;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--ehc-teal);
    text-decoration: underline;
}

/* Responsive search bar
   ========================================================================== */
@media (max-width: 1100px) {
    .search-bar {
        grid-template-columns: 1fr 1fr;
    }

    .search-bar .search-actions {
        grid-column: 1 / -1;
    }

    .search-bar .btn--search {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .search-bar {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .job-card {
        padding: 26px 24px 28px;
    }

    .job-card__title {
        font-size: 1.375rem;
    }
}
