/* Jobsmagg marketplace polish: warm neutrals, clear red actions, and calmer spacing. */
:root {
    --ink: #252832;
    --muted: #69717d;
    --line: #e4e6e9;
    --brand: #b31932;
    --brand-dark: #8e1228;
    --brand-soft: #fff0f2;
    --soft: #f6f7f8;
    --navy: #292d38;
    --accent: #f2a83b;
    --surface: #fff;
    --shadow: 0 10px 28px rgba(30, 36, 48, .07);
}

html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body {
    background: var(--soft);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}
body :is(h1, h2, h3, h4, p, a, button, input, select, textarea, label, summary, small, span, strong) {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.shell { max-width: 1240px; }
.section { padding-bottom: 64px; padding-top: 64px; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
    outline: 3px solid rgba(179, 25, 50, .3);
    outline-offset: 3px;
}

/* Header and primary actions */
.site-header {
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(30, 36, 48, .035);
}
.nav-wrap { gap: 26px; min-height: 72px; }
.brand { color: var(--navy); font-size: 21px; font-weight: 800; letter-spacing: -.045em; }
.brand img { filter: hue-rotate(-115deg) saturate(.9); max-height: 36px; max-width: 165px; }
.brand span, .brand-light span {
    background: var(--brand) !important;
    border-radius: 9px !important;
    box-shadow: 0 4px 10px rgba(179, 25, 50, .18);
}
.nav-wrap nav { align-items: center; gap: 5px; }
.nav-wrap nav a, .login {
    border-radius: 8px;
    color: #555d68;
    font-size: 13px;
    font-weight: 650;
    padding: 9px 11px;
    transition: background .16s ease, color .16s ease;
}
.nav-wrap nav a:hover, .login:hover { background: var(--brand-soft); color: var(--brand); }
.nav-actions { gap: 12px; }
.button, .auth-card button[type="submit"], .contact-card button[type="submit"] {
    align-items: center;
    background: var(--brand) !important;
    border: 1px solid var(--brand) !important;
    border-radius: 9px !important;
    box-shadow: 0 4px 10px rgba(179, 25, 50, .13);
    color: #fff !important;
    display: inline-flex;
    font-size: 13px;
    font-weight: 750;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    text-decoration: none;
    transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.button:hover, .auth-card button[type="submit"]:hover, .contact-card button[type="submit"]:hover {
    background: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
    box-shadow: 0 7px 16px rgba(142, 18, 40, .2);
    transform: translateY(-1px);
}
.button-small { min-height: 40px; padding: 0 16px; }
.button-light { background: #fff !important; border-color: #fff !important; color: var(--brand) !important; }
.button-outline { background: #fff !important; border-color: #d7a6ae !important; box-shadow: none; color: var(--brand) !important; }
.button-outline:hover { background: var(--brand-soft) !important; }
.text-link, .job-card__view { color: var(--brand); font-weight: 750; text-decoration: none; }
.text-link:hover, .job-card__view:hover { color: var(--brand-dark); text-decoration: underline; }
.nav-toggle { background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.nav-toggle span { background: var(--navy); }
.account-menu summary { border-color: var(--line); color: var(--ink); }
.account-menu[open] summary, .account-menu__panel a:hover, .account-menu__panel button:hover { background: var(--brand-soft); color: var(--brand); }
.account-menu__panel { border-color: var(--line); box-shadow: var(--shadow); }

/* Homepage */
.home-hero {
    background: linear-gradient(112deg, #fff6f3 0%, #fff 58%, #fff8ef 100%);
    border-bottom: 1px solid #eee4e2;
    color: var(--ink);
    overflow: hidden;
}
.home-hero__inner { gap: 42px; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); min-height: 465px; }
.home-hero__copy { padding: 60px 0; }
.eyebrow, .home-hero .eyebrow, .home-cta .eyebrow, .page-hero .eyebrow {
    color: var(--brand);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}
.home-hero h1 {
    color: #292d38;
    font-size: clamp(40px, 5vw, 62px);
    letter-spacing: -.055em;
    line-height: 1.04;
    max-width: 640px;
}
.home-hero p { color: #606873; font-size: 16px; line-height: 1.65; max-width: 550px; }
.home-search {
    background: #fff;
    border: 1px solid #e7dfe0;
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(89, 35, 47, .09);
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1.05fr) minmax(150px, .72fr) auto;
    margin-top: 25px;
    max-width: 760px;
    padding: 6px;
}
.home-search input {
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--ink);
    font-size: 13px;
    min-height: 46px;
    padding: 0 13px;
}
.home-search input::placeholder { color: #858b94; }
.home-search input:focus { box-shadow: inset 0 0 0 2px #e8aeb8; outline: 0; }
.home-search #home-location { border-left: 1px solid var(--line); border-radius: 0; }
.home-search .button { margin-left: 5px; min-height: 46px; }
.home-hero__links { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.home-hero__links > span { color: #7b6266; font-size: 11px; font-weight: 750; }
.home-hero__links a { background: #fff; border: 1px solid #eadadd; border-radius: 999px; color: #7b2739; font-size: 11px; padding: 6px 10px; text-decoration: none; }
.home-hero__links a:hover { background: var(--brand-soft); border-color: #dba0aa; }
.home-hero__visual { height: 350px; isolation: isolate; position: relative; }
.home-hero__illustration { height: 100%; inset: 0; object-fit: contain; position: absolute; width: 100%; z-index: 0; }
.home-hero__orb { border-color: rgba(179, 25, 50, .12); }
.home-hero__orb--one { height: 300px; right: 12px; top: 25px; width: 300px; }
.home-hero__orb--two { height: 215px; right: 54px; top: 68px; width: 215px; }
.home-hero__note, .home-hero__mini-card {
    background: #fff;
    border: 1px solid #eee5e4;
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(55, 36, 40, .13);
}
.home-hero__note { border-bottom: 3px solid var(--accent); display: grid; gap: 4px; padding: 16px; position: absolute; right: 0; top: 28px; width: 162px; z-index: 2; }
.home-hero__note span { color: var(--brand); font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.home-hero__note strong { color: var(--navy); font-size: 34px; }
.home-hero__note small, .home-hero__mini-card small { color: var(--muted); }
.home-hero__mini-card { padding: 13px; }
.home-hero__mini-card > span { background: #fff1d6 !important; border-radius: 50%; color: #9a5a00 !important; }
.home-hero__mini-card strong { color: var(--ink); }
.home-stats { background: #fff; border-bottom: 1px solid var(--line); }
.home-stats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1020px; padding: 18px 12px; }
.home-stats__grid div { border-color: var(--line); padding: 12px 24px; }
.home-stats__grid strong { color: var(--brand); font-size: 22px; }
.home-stats__grid span { color: var(--muted); font-size: 11px; }
.home-discovery { background: #fff; }
.section-heading { align-items: end; border-bottom: 1px solid var(--line); gap: 20px; margin-bottom: 22px; padding-bottom: 17px; }
.section-heading h2 { color: #292d38; font-size: clamp(23px, 2.5vw, 29px); letter-spacing: -.035em; line-height: 1.2; margin: 7px 0 0; }
.section-heading .eyebrow { color: var(--brand); }
.home-category-grid { gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-category {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--ink);
    min-height: 78px;
    padding: 13px;
    text-decoration: none;
}
.home-category:hover { border-color: #d9a0aa; box-shadow: 0 7px 18px rgba(89, 35, 47, .07); transform: translateY(-2px); }
.home-category__icon { background: var(--brand-soft); border-radius: 9px; color: var(--brand); height: 36px; width: 36px; }
.home-category:nth-child(4n+1) .home-category__icon,
.home-category:nth-child(4n+2) .home-category__icon,
.home-category:nth-child(4n+3) .home-category__icon,
.home-category:nth-child(4n) .home-category__icon { background: var(--brand-soft); color: var(--brand); }
.home-category strong { color: var(--ink); font-size: 12px; }
.home-category small { color: var(--muted); font-size: 10px; }
.home-category > b { color: var(--brand); }
.home-featured { background: #f3f4f6; border-block: 1px solid #e9eaec; }
.home-featured-grid, .home-latest-grid, .related-jobs-grid { display: grid; gap: 15px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-latest-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-featured-card, .home-latest-card { min-height: 0; padding: 18px !important; }
.home-cta { background: #2b303a; color: #fff; }
.home-cta__inner { align-items: center; display: flex; gap: 24px; justify-content: space-between; min-height: 175px; }
.home-cta h2 { color: #fff; font-size: clamp(24px, 3vw, 31px); line-height: 1.2; max-width: 620px; }
.home-cta .eyebrow { color: #f6c878; }
.home-cta .button-light { color: var(--brand) !important; }
.home-employer-cta { background: #fff; border-top: 1px solid var(--line); padding: 35px 0; }
.home-employer-cta h2 { color: var(--ink); font-size: 22px !important; margin: 7px 0; }
.home-employer-cta p { color: var(--muted); margin: 0; }

/* Job search: focused search header, persistent filters, easy-to-scan results. */
.page-hero {
    background: linear-gradient(120deg, #fff4f2 0%, #fff 70%);
    border-bottom: 1px solid #ebe4e4;
    color: var(--ink);
    padding: 42px 0;
}
.page-hero h1 { color: #292d38; font-size: clamp(32px, 4vw, 46px); letter-spacing: -.045em; margin: 8px 0; }
.page-hero > div > p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 8px 0 18px; }
.page-hero .search-panel {
    background: #fff;
    border: 1px solid #e3dfe0;
    border-radius: 11px;
    box-shadow: 0 8px 20px rgba(50, 35, 39, .07);
    display: grid;
    gap: 4px;
    grid-template-columns: minmax(0, 1fr) minmax(170px, .52fr) auto;
    max-width: 820px;
    padding: 6px;
}
.page-hero .search-panel input { background: #fff; border: 0; border-radius: 7px; color: var(--ink); font-size: 13px; min-height: 44px; padding: 0 12px; }
.page-hero .search-panel input[name="location"] { border-left: 1px solid var(--line); border-radius: 0; }
.page-hero .search-panel .button { min-height: 44px; }
.jobs-section { padding-top: 34px; }
.jobs-layout { align-items: start; display: grid; gap: 24px; grid-template-columns: 265px minmax(0, 1fr); }
.jobs-sidebar { position: sticky; top: 94px; }
.jobs-sidebar__heading { padding: 0 2px 12px; }
.jobs-sidebar__heading h2 { color: var(--ink); font-size: 21px; margin: 5px 0 0; }
.job-filter-form {
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(30, 36, 48, .035);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    padding: 16px;
}
.job-filters__field { display: grid; gap: 5px; }
.job-filters__field label { color: #555d68; font-size: 10px !important; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.job-filters__field select, .job-filters__field input {
    background: #fff;
    border: 1px solid #dfe2e6;
    border-radius: 7px;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    min-height: 40px;
    padding: 8px 10px;
    width: 100%;
}
.job-filters__field select:focus, .job-filters__field input:focus { border-color: #cf7584; box-shadow: 0 0 0 3px rgba(179, 25, 50, .1); outline: 0; }
.job-filter-form .button { min-height: 42px; width: 100%; }
.job-filters__reset { color: var(--muted); font-size: 12px; font-weight: 700; padding: 5px; text-align: center; text-decoration: none; }
.job-filters__reset:hover { color: var(--brand); }
.jobs-results { min-width: 0; }
.job-listing-toolbar { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin: 0 0 14px; }
.job-listing-toolbar h2 { color: var(--ink); font-size: 23px !important; margin: 4px 0 2px; }
.job-listing-toolbar p { color: var(--muted); font-size: 12px; margin: 0; }
.jobs-results .job-results-list { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.jobs-results .job-card {
    display: grid;
    gap: 0 12px;
    grid-template-areas: "topline topline" "badges badges" "title title" "company salary" "description description" "meta meta" "footer footer";
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 17px 19px;
}
.jobs-results .job-card__topline { grid-area: topline; }
.jobs-results .job-card__badges { grid-area: badges; margin: 0 0 7px; }
.jobs-results .job-card h3 { grid-area: title; font-size: 17px !important; margin: 2px 0 7px; }
.jobs-results .job-card__company-name { align-self: center; grid-area: company; margin: 0 0 9px !important; }
.jobs-results .job-card__salary { align-self: center; grid-area: salary; justify-self: end; margin: 0 0 9px; }
.jobs-results .job-card__description { grid-area: description; margin-bottom: 10px !important; }
.jobs-results .job-card__meta { grid-area: meta; padding-bottom: 10px !important; }
.jobs-results .job-card__footer { grid-area: footer; }
.jobs-results .job-card .job-save-feedback { grid-column: 1 / -1; }
.job-empty-state { background: #fff; border: 1px dashed #d5d8dd; border-radius: 12px; margin: 0; padding: 45px 24px; text-align: center; }
.job-empty-state h3 { color: var(--ink); font-size: 20px !important; }
.job-empty-state p { color: var(--muted); }
.job-pagination { margin-top: 22px; }
.pagination { gap: 5px; }
.pagination .page-link { border-color: var(--line); border-radius: 7px !important; color: var(--brand); }
.pagination .active .page-link { background: var(--brand); border-color: var(--brand); }

/* Shared job cards and company cards */
.job-card, .company-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: 0 2px 8px rgba(30, 36, 48, .035);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.job-card:hover, .company-card:hover { border-color: #d9a0aa; box-shadow: var(--shadow); transform: translateY(-2px); }
.job-card::before { background: var(--brand); height: 2px; }
.jobs-results .job-card::before { background: var(--brand); }
.job-card__topline { border-color: #eff0f2; margin-bottom: 10px; padding-bottom: 10px; }
.job-card__company { align-items: center; color: var(--muted); flex-direction: row; gap: 9px; justify-content: flex-start; text-decoration: none; }
.job-card__company img { background: #fff; border: 1px solid var(--line); border-radius: 8px; height: 40px; object-fit: contain; padding: 4px; width: 40px; }
.job-card__company > span { background: var(--brand-soft); border-radius: 999px; color: #8f2338 !important; font-size: 11px !important; font-weight: 650; padding: 5px 9px; }
.job-save-toggle { background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--brand); height: 36px; width: 36px; }
.job-save-toggle:hover, .job-save-toggle.is-saved { background: var(--brand-soft); border-color: #e6b6be; color: var(--brand); }
.job-card__badges { gap: 5px; margin-bottom: 8px; }
.job-badge { border-radius: 4px; font-size: 9px; letter-spacing: .025em; padding: 4px 7px; }
.job-badge--featured { background: #fff1d8; color: #86520a; }
.job-badge--new { background: #e9f3ed; color: #286347; }
.job-badge--applied { background: #f0edf8; color: #604789; }
.job-card h3, .company-card h3 { color: #292d38; font-size: 16px !important; letter-spacing: -.02em; line-height: 1.35; margin: 1px 0 5px; }
.job-card h3 a { color: inherit; text-decoration: none; }
.job-card h3 a:hover { color: var(--brand); }
.job-card__company-name { color: #68717c !important; font-size: 11px !important; margin: 0 0 8px !important; }
.job-card__salary { color: #7f1d32; font-size: 12px; font-weight: 750; }
.job-card__description { color: #69717d !important; font-size: 11px !important; line-height: 1.5; }
.job-card__meta { gap: 6px; }
.job-card__meta span { background: #f4f5f6; border: 1px solid #e9eaec; border-radius: 4px; color: #5d6671; font-size: 9px !important; font-weight: 650; padding: 4px 7px; }
.job-card__footer { border-color: #eff0f2; padding-top: 9px; }
.job-card__posted { color: #858b94; font-size: 10px; }
.job-card__view { font-size: 11px; }
.job-save-feedback { color: var(--brand); font-size: 11px; }
.company-grid { gap: 13px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.company-card { color: var(--ink); padding: 18px; text-decoration: none; }
.company-card h3 { margin-top: 13px; }
.company-card__description, .company-card p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.company-mark { background: var(--brand-soft); border-radius: 9px; color: var(--brand); }
.company-jobs-section .job-grid { gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.company-jobs-section .job-card { display: flex; flex-direction: column; grid-template-columns: none; min-height: 0; padding: 16px; }
.company-jobs-section .job-grid .job-card::before { background: var(--brand); }
.company-jobs-section .job-card__company { flex-direction: row; grid-column: auto; grid-row: auto; justify-content: flex-start; margin: 0 0 10px !important; }
.company-jobs-section .job-card__company img { height: 44px; margin-bottom: 0; width: 44px; }
.company-jobs-section .job-card__company > span { background: var(--brand-soft); border-radius: 999px; color: #8f2338 !important; padding: 5px 9px; }
.company-jobs-section .job-card__meta span { background: #f4f5f6; border-color: #e9eaec; color: #5d6671; }
.company-jobs-section .job-card h3 { font-size: 15px !important; margin: 2px 0 5px; }

/* Job detail, company profile, forms, and supporting pages */
.job-detail-hero, .company-detail-hero, .contact-hero {
    background: linear-gradient(120deg, #fff4f2 0%, #fff 74%);
    border-bottom: 1px solid #ebe4e4;
    color: var(--ink);
    padding: 38px 0 42px;
}
.back-link { color: #676e78; font-size: 12px; }
.job-detail-heading { align-items: end; gap: 25px; margin-top: 28px; }
.job-detail-heading h1, .company-detail-heading h1, .contact-hero h1 { color: #292d38; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.1; }
.job-detail-heading p, .company-detail-heading p { color: #656d78; font-size: 14px; }
.job-detail-actions { gap: 9px; }
.job-detail-actions .job-save-toggle--detail { height: 44px; min-width: 108px; padding: 0 12px; white-space: nowrap; width: auto; }
.job-detail-hero .job-detail-heading .job-detail-actions .button { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; min-width: 150px; }
.job-detail-hero .job-detail-heading .job-detail-actions .button:hover { background: var(--brand-dark) !important; border-color: var(--brand-dark) !important; }
.job-detail-layout, .company-detail-layout { align-items: start; gap: 28px; grid-template-columns: minmax(0, 1fr) 300px; }
.company-detail-layout--single { grid-template-columns: minmax(0, 1fr); }
.job-detail-content, .detail-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: 0 3px 12px rgba(30, 36, 48, .035);
    padding: 24px;
}
.job-detail-content h2 { color: #292d38; font-size: 22px !important; letter-spacing: -.025em; margin-bottom: 14px; }
.prose { color: #555e69; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.75; }
.detail-card { position: sticky; top: 96px; }
.job-detail-sidebar .detail-card::before { background: var(--brand); }
.detail-card h3 { color: var(--ink); font-size: 16px !important; }
.detail-card p { border-color: #eff0f2; color: var(--muted); font-size: 12px; }
.detail-card strong { color: #666e78; font-size: 10px; letter-spacing: .04em; }
.detail-card p a { color: var(--brand); font-weight: 700; text-decoration: none; }
.skill-list span { background: var(--brand-soft); border: 1px solid #f0d8dc; border-radius: 999px; color: #8f2338; font-size: 11px; }
.related-jobs { background: #fff; }
.related-jobs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.apply-section { background: #f0f1f3; border-block: 1px solid #e4e5e8; padding: 50px 0; }
.apply-layout { align-items: start; gap: 28px; grid-template-columns: minmax(220px, .65fr) minmax(0, 1fr); }
.apply-layout h2 { color: #292d38; font-size: 30px; }
.apply-layout > div:first-child > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.application-form { border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 4px 14px rgba(30, 36, 48, .05); gap: 13px; padding: 22px; }
.application-form .application-field { color: #505864; font-size: 11px; }
.application-form input:not([type="file"]), .application-form textarea,
.auth-card input, .auth-card select, .contact-card input, .contact-card textarea {
    background: #fff;
    border: 1px solid #dfe2e6;
    border-radius: 7px;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    min-height: 42px;
    padding: 10px 12px;
}
.application-form textarea, .contact-card textarea { min-height: 115px; }
.application-form input:focus, .application-form textarea:focus, .auth-card input:focus,
.auth-card select:focus, .contact-card input:focus, .contact-card textarea:focus {
    border-color: #cf7584;
    box-shadow: 0 0 0 3px rgba(179, 25, 50, .1);
    outline: 0;
}
.location-map-section { padding-top: 30px; }
.location-map-heading h2 { color: var(--ink); font-size: 23px; }
.location-map { border: 1px solid var(--line); border-radius: 10px; }
.company-detail-logo img { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 7px; }
.company-hero-meta { color: #505864; font-size: 12px; }
.company-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.industry-grid { gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.industry-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; text-decoration: none; }
.industry-card:hover { border-color: #d9a0aa; box-shadow: var(--shadow); }
.industry-card h3 { color: var(--ink); font-size: 15px; }
.industry-card p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.industry-card strong { color: var(--brand); font-size: 11px; }
.industry-card__icon { background: var(--brand-soft); border-radius: 8px; color: var(--brand); }
.directory-tabs { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.directory-tabs a { border-radius: 7px 7px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; padding: 11px 14px; text-decoration: none; }
.directory-tabs a.is-active, .directory-tabs a:hover { background: var(--brand-soft); color: var(--brand); }
.contact-hero { padding: 48px 0; }
.contact-hero .eyebrow, .job-detail-hero .eyebrow { color: var(--brand); }
.contact-hero p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.contact-layout { gap: 40px; }
.contact-copy h2, .contact-card h2 { color: var(--ink); font-size: 27px; }
.contact-copy > p, .contact-card > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.contact-card, .auth-card { background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow); padding: 26px; }
.contact-card label, .auth-card label { color: #505864; font-size: 12px; }
.auth-page { background: linear-gradient(125deg, #f9eeee, #f6f7f8 65%); }
.auth-intro { color: var(--ink); }
.auth-intro .brand { color: var(--navy); }
.auth-intro .eyebrow { color: var(--brand); }
.auth-intro h1 { color: var(--ink); font-size: clamp(35px, 4vw, 52px); }
.auth-intro p, .auth-points { color: #5f6874; }
.auth-card__heading h2 { color: var(--ink); }
.auth-card__heading p, .auth-switch { color: var(--muted); }
.auth-card label { color: #505864; }
.auth-card button[type="submit"] { width: 100%; }

/* Footer */
.site-footer { background: #292d38; color: #e9eaed; padding-top: 50px; }
.site-footer h4 { color: #fff; font-size: 13px; }
.site-footer p, .site-footer a { color: #c5c8cf; font-size: 12px; }
.site-footer a:hover { color: #ffc86d; }
.footer-bottom { border-color: rgba(255, 255, 255, .13); color: #aeb3bd; }
.newsletter-bar { background: var(--brand); border-radius: 11px; box-shadow: 0 10px 24px rgba(81, 17, 31, .18); }
.newsletter-bar span { color: #ffe3e6; }
.newsletter-bar h3 { color: #fff; }
.newsletter-bar input { border: 1px solid #ececef; border-radius: 6px; min-height: 42px; }
.newsletter-bar .button { background: #f2a83b !important; border-color: #f2a83b !important; color: #3c2b12 !important; }
.newsletter-feedback.is-success, .newsletter-feedback.is-error { color: #fff; }

@media (max-width: 1050px) {
    .home-latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jobs-layout { grid-template-columns: 245px minmax(0, 1fr); gap: 18px; }
    .home-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
    .nav-wrap { gap: 12px; }
    .nav-wrap nav { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); left: 12px; padding: 8px; right: 12px; top: 62px; }
    .site-header.nav-open .nav-wrap nav { display: grid; gap: 2px; }
    .nav-wrap nav a { padding: 12px; }
    .nav-actions { margin-left: auto; }
    .nav-actions .login { display: none; }
    .home-hero__inner { gap: 12px; grid-template-columns: 1fr; min-height: 0; }
    .home-hero__copy { padding: 45px 0 10px; }
    .home-hero__visual { height: 250px; }
    .home-hero__note { right: 2%; top: 12px; }
    .jobs-layout { grid-template-columns: 1fr; }
    .jobs-sidebar { position: static; }
    .job-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .job-filter-form .button, .job-filter-form .job-filters__reset { grid-column: 1 / -1; }
    .job-detail-layout, .company-detail-layout, .apply-layout { grid-template-columns: 1fr; }
    .detail-card { position: static; }
    .company-detail-heading { align-items: start; gap: 14px; }
    .related-jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .company-jobs-section .job-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .section { padding-bottom: 44px; padding-top: 44px; }
    .shell { padding-left: 18px; padding-right: 18px; }
    .nav-wrap { min-height: 64px; }
    .nav-actions .button { font-size: 11px; min-height: 38px; padding: 0 11px; }
    .brand img { max-width: 135px; }
    .home-hero h1 { font-size: clamp(37px, 10vw, 47px); }
    .home-hero p { font-size: 14px; }
    .home-search { grid-template-columns: 1fr; }
    .home-search #home-location { border-left: 0; border-top: 1px solid var(--line); }
    .home-search .button { margin: 4px 0 0; width: 100%; }
    .home-hero__visual { height: 205px; }
    .home-hero__note { right: 1%; top: 8px; width: 138px; padding: 11px; }
    .home-hero__note strong { font-size: 26px; }
    .home-stats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px 0; }
    .home-stats__grid div { border-bottom: 0; border-right: 1px solid var(--line); padding: 8px; }
    .home-stats__grid div:last-child { border-right: 0; }
    .home-stats__grid strong { font-size: 15px; }
    .home-stats__grid span { font-size: 9px; line-height: 1.35; }
    .section-heading { align-items: start; gap: 10px; }
    .section-heading h2 { font-size: 22px; }
    .section-heading .text-link { font-size: 10px; white-space: nowrap; }
    .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-category { gap: 8px; padding: 10px; }
    .home-category strong { font-size: 10px; }
    .home-featured-grid, .home-latest-grid, .related-jobs-grid, .company-grid, .industry-grid, .company-jobs-section .job-grid { grid-template-columns: 1fr; }
    .home-cta__inner { align-items: start; display: grid; gap: 18px; padding-bottom: 30px; padding-top: 30px; }
    .home-cta .button { width: max-content; }
    .home-employer-cta > .shell { align-items: start; flex-direction: column; }
    .home-employer-cta .button { width: 100%; }
    .page-hero { padding: 34px 0; }
    .page-hero h1 { font-size: 32px; }
    .page-hero .search-panel { grid-template-columns: 1fr; }
    .page-hero .search-panel input[name="location"] { border-left: 0; border-top: 1px solid var(--line); }
    .page-hero .search-panel .button { width: 100%; }
    .jobs-section { padding-top: 24px; }
    .job-filter-form { gap: 10px; padding: 13px; }
    .jobs-results .job-card { padding: 14px; }
    .job-listing-toolbar { align-items: start; flex-direction: column; }
    .jobs-results .job-card__meta span { font-size: 8px !important; }
    .job-detail-hero, .company-detail-hero { padding: 28px 0 32px; }
    .job-detail-heading { margin-top: 22px; }
    .job-detail-heading h1, .company-detail-heading h1 { font-size: 32px; }
    .job-detail-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .job-detail-actions .button, .job-save-toggle--detail { width: 100%; }
    .job-detail-content, .detail-card { padding: 18px; }
    .apply-section { padding: 38px 0; }
    .application-form { padding: 16px; }
    .application-form div { grid-template-columns: 1fr; }
    .company-detail-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
    .contact-hero { padding: 36px 0; }
    .contact-hero h1 { font-size: 36px; }
    .contact-layout { gap: 24px; }
    .contact-card, .auth-card { padding: 19px; }
    .newsletter-bar { padding: 22px; }
    .newsletter-bar form { margin-top: 12px; }
    .newsletter-bar input { min-width: 0; width: 100%; }
    .newsletter-bar .button { margin-top: 7px; width: 100%; }
    .footer-grid { gap: 22px; grid-template-columns: 1fr 1fr; }
    .jobs-map__heading { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
