/* ==========================================================================
   IQ Brain Consult — Job Portal
   Standalone stylesheet (no CSS framework). Brand tokens match the
   corporate website so the portal feels like the same company.
   --------------------------------------------------------------------------
   1. Tokens            6. Search           11. Forms
   2. Base & layout     7. Job cards        12. Employers
   3. Buttons           8. Filters          13. Footer
   4. Header & nav      9. Job detail       14. Admin
   5. Hero             10. Bands & states   15. Responsive
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
    --blue: #0077B6;
    --blue-600: #006AA3;
    --blue-700: #00598A;
    --blue-300: #6EC1EA;
    --blue-50: #EAF4FA;
    --amber: #FBAA00;
    --amber-600: #DB9400;
    --amber-700: #A86F00;
    --amber-50: #FFF5DC;

    --navy-950: #030C16;
    --navy-900: #061423;
    --navy-800: #0B2036;
    --navy-700: #14304C;
    --ink: #0D1B2A;
    --body: #3F4D5C;
    --muted: #677585;
    --line: #E2E6EB;
    --line-soft: #EEF1F4;
    --line-dark: rgba(255, 255, 255, .12);
    --sand: #F6F4EF;
    --page: #F7F9FB;
    --white: #FFFFFF;
    --green: #157F4B;
    --green-50: #E8F6EF;
    --red: #B42318;
    --red-50: #FDECEA;

    --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --radius: 8px;
    --radius-lg: 14px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(6, 20, 35, .06), 0 4px 12px rgba(6, 20, 35, .05);
    --shadow: 0 2px 6px rgba(6, 20, 35, .06), 0 14px 36px rgba(6, 20, 35, .09);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 68px;
}

/* 2. Base & layout
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--body);
    background: var(--page);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; border-radius: 4px; }

.shell { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.shell--narrow { max-width: 820px; }

.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tight { padding: clamp(32px, 4vw, 52px) 0; }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section--dark { background: var(--navy-900); color: rgba(255, 255, 255, .78); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
    margin: 0 0 12px;
    font-family: var(--font-head);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--amber-700);
}
.eyebrow--light { color: var(--amber); }
.lead { font-size: 1.1rem; line-height: 1.7; color: var(--body); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }

.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; max-width: none; }
.section-head p { margin: 0; color: var(--muted); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 12px 20px;
    background: var(--amber);
    color: var(--navy-900);
    font-weight: 700;
}
.skip-link:focus { left: 0; }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 3. Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--amber); color: var(--navy-900); }
.btn-accent:hover { background: var(--amber-600); color: var(--navy-900); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-700); color: var(--white); }
.btn-dark { background: var(--navy-900); color: var(--white); }
.btn-dark:hover { background: var(--navy-800); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.link-arrow .bi { transition: transform .2s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover .bi { transform: translateX(4px); }

/* 4. Header & navigation
   ========================================================================== */
.portal-header { position: sticky; top: 0; z-index: 50; }
.portal-header__top { background: var(--navy-950); color: rgba(255, 255, 255, .62); font-size: .8rem; }
.portal-header__top .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 34px; }
.portal-header__top p { margin: 0; display: flex; align-items: center; gap: 8px; }
.portal-header__top .bi { color: var(--amber); }
.portal-header__top a { color: rgba(255, 255, 255, .72); font-weight: 600; }
.portal-header__top a:hover { color: var(--white); text-decoration: none; }

.portal-nav { background: var(--navy-900); border-bottom: 1px solid var(--line-dark); }
.portal-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.portal-brand { display: flex; align-items: center; gap: 12px; }
.portal-brand img { width: 128px; height: auto; }
.portal-brand span {
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--radius-pill);
    font-family: var(--font-head);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--amber);
}
.portal-brand:hover { text-decoration: none; }

.portal-menu { display: flex; align-items: center; gap: 28px; }
.portal-menu__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.portal-menu__list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--radius);
    font-size: .93rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .78);
}
.portal-menu__list a:hover { background: rgba(255, 255, 255, .08); color: var(--white); text-decoration: none; }
.portal-menu__list a.is-active { background: rgba(255, 255, 255, .1); color: var(--white); }
.portal-menu__list .bi { color: var(--blue-300); }
.portal-menu__actions { display: flex; align-items: center; gap: 10px; }

.portal-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: var(--radius);
    cursor: pointer;
}
.portal-toggle span:not(.visually-hidden) { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.portal-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.portal-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.portal-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 5. Hero
   ========================================================================== */
.hero { position: relative; background: var(--navy-900); color: rgba(255, 255, 255, .8); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, var(--navy-950) 22%, rgba(6, 20, 35, .82) 55%, rgba(11, 32, 54, .55) 100%);
}
.hero__inner { position: relative; padding: clamp(52px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.hero__copy { max-width: 720px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--amber); }
.hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: rgba(255, 255, 255, .8); max-width: 62ch; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 36px; }
.hero__stat strong { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero__stat span { font-size: .85rem; color: rgba(255, 255, 255, .6); }

.hero--inner { padding-bottom: 0; }
.hero--inner .hero__inner { padding: clamp(40px, 5vw, 64px) 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; font-size: .85rem; color: rgba(255, 255, 255, .55); }
.crumbs a { color: rgba(255, 255, 255, .75); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* 6. Search
   ========================================================================== */
.search-card {
    position: relative;
    margin-top: 40px;
    padding: 18px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.search-card__grid { display: grid; grid-template-columns: 1.6fr 1.2fr 1.2fr auto; gap: 12px; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); }
.search-field .bi { color: var(--muted); font-size: 1.05rem; }
.search-field input,
.search-field select {
    width: 100%;
    padding: 14px 0;
    border: 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: .97rem;
    color: var(--ink);
}
.search-field input:focus,
.search-field select:focus { outline: none; }
.search-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }

.search-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; font-size: .88rem; color: rgba(255, 255, 255, .6); }
.search-tags a {
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius-pill);
    color: rgba(255, 255, 255, .85);
    font-weight: 600;
}
.search-tags a:hover { background: rgba(255, 255, 255, .12); color: var(--white); text-decoration: none; }

/* 7. Job cards
   ========================================================================== */
.job-grid { display: grid; gap: 16px; }
.job-grid--two { grid-template-columns: repeat(2, 1fr); }

.job-card {
    position: relative;
    display: block;
    padding: 26px 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-300); text-decoration: none; }
.job-card--featured { border-left: 4px solid var(--amber); }
.job-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.job-card__title { margin: 0 0 6px; font-size: 1.2rem; font-weight: 700; }
.job-card__title a { color: var(--ink); }
.job-card__title a:hover { color: var(--blue); text-decoration: none; }
.job-card__title a::after { content: ""; position: absolute; inset: 0; }
.job-card__employer { margin: 0 0 14px; font-size: .95rem; color: var(--muted); }
.job-card__employer strong { color: var(--body); font-weight: 600; }
.job-card__summary { margin: 0 0 16px; font-size: .95rem; color: var(--body); }
.job-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.job-card__posted { margin: 0; font-size: .85rem; color: var(--muted); }
.job-card__apply { font-family: var(--font-head); font-size: .88rem; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }

.meta-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; }
.meta-list li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--page);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-pill);
    font-size: .82rem;
    font-weight: 600;
    color: var(--body);
}
.meta-list .bi { color: var(--blue); font-size: .9rem; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-family: var(--font-head);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge--featured { background: var(--amber-50); color: var(--amber-700); }
.badge--closing { background: var(--red-50); color: var(--red); }
.badge--open { background: var(--green-50); color: var(--green); }
.badge--new { background: var(--blue-50); color: var(--blue-700); }
.badge--muted { background: var(--page); color: var(--muted); }

/* 8. Filters & listing
   ========================================================================== */
.listing { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }

.filters {
    position: sticky;
    top: 112px;
    padding: 26px 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.filters h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.filters__group { margin-bottom: 20px; }
.filters__group:last-of-type { margin-bottom: 24px; }
.filters__reset { display: block; margin-top: 14px; text-align: center; font-size: .88rem; }
.filter-toggle { display: none; }

.results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.results-head p { margin: 0; font-size: .95rem; color: var(--muted); }
.results-head strong { color: var(--ink); }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; list-style: none; padding: 0; }
.active-filters a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--blue-50);
    border-radius: var(--radius-pill);
    font-size: .83rem;
    font-weight: 600;
    color: var(--blue-700);
}
.active-filters a:hover { background: #DCEBF5; text-decoration: none; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; list-style: none; padding: 0; }
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    font-weight: 600;
    color: var(--body);
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.pagination .is-current { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.pagination .is-disabled { opacity: .45; }

/* 9. Job detail
   ========================================================================== */
.detail { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.detail__main { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); }
.detail__main h2 { font-size: 1.25rem; margin-top: 36px; }
.detail__main h2:first-of-type { margin-top: 0; }
.detail__main ul { padding-left: 0; list-style: none; }
.detail__main ul li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px solid var(--line-soft); }
.detail__main ul li:last-child { border-bottom: 0; }
.detail__main ul li::before {
    content: "";
    position: absolute;
    left: 4px; top: 18px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--amber);
}

.apply-card {
    position: sticky;
    top: 112px;
    padding: 28px 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--amber);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.apply-card h2 { font-size: 1.05rem; }
.apply-card dl { margin: 0 0 20px; }
.apply-card dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.apply-card dl > div:last-child { border-bottom: 0; }
.apply-card dt { font-size: .85rem; color: var(--muted); }
.apply-card dd { margin: 0; font-size: .9rem; font-weight: 600; color: var(--ink); text-align: right; }
.apply-card__note { margin: 16px 0 0; font-size: .82rem; color: var(--muted); }
.share-row { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.share-row span { font-size: .82rem; color: var(--muted); }
.share-row a, .share-row button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--muted);
    cursor: pointer;
}
.share-row a:hover, .share-row button:hover { border-color: var(--blue); color: var(--blue); }

/* 10. Bands, notices & empty states
   ========================================================================== */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--ink);
}
.tile:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; transform: translateY(-2px); }
.tile span { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 26px; padding: 0 8px; background: var(--blue-50); border-radius: var(--radius-pill); font-size: .82rem; color: var(--blue-700); }

.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { padding-top: 20px; border-top: 2px solid var(--line); }
.section--dark .step { border-top-color: var(--line-dark); }
.step__num { display: block; margin-bottom: 10px; font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--amber-700); }
.section--dark .step__num { color: var(--amber); }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; font-size: .93rem; }
.section--dark .step p { color: rgba(255, 255, 255, .7); }

.notice {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--amber-50);
    border: 1px solid #F3DFA8;
    color: #6B4A00;
}
.notice .bi { font-size: 1.2rem; flex-shrink: 0; }
.notice p { margin: 0; font-size: .93rem; }
.notice--info { background: var(--blue-50); border-color: #CBE3F1; color: var(--blue-700); }

.alert { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 500; }
.alert--success { background: var(--green-50); border: 1px solid #BFE5D2; color: #0E5C36; }
.alert--error { background: var(--red-50); border: 1px solid #F4C7C2; color: var(--red); }
.alert .bi { font-size: 1.15rem; }

.empty-state {
    padding: 56px 32px;
    text-align: center;
    background: var(--white);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
}
.empty-state .bi { font-size: 2.4rem; color: var(--blue-300); }
.empty-state h2 { margin: 16px 0 8px; font-size: 1.3rem; }
.empty-state p { max-width: 52ch; margin: 0 auto 24px; color: var(--muted); }

.alert-band { background: var(--navy-800); color: rgba(255, 255, 255, .8); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); }
.alert-band h2 { color: var(--white); }
.alert-band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.alert-band form { display: grid; gap: 12px; }
.alert-band .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* 11. Forms
   ========================================================================== */
.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 3.5vw, 40px);
}
.panel__title { margin-bottom: 6px; }
.panel__note { margin: 0 0 24px; font-size: .9rem; color: var(--muted); }

.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-size: .88rem; font-weight: 700; color: var(--ink); }
.field .req { color: var(--red); }
.field__hint { font-size: .82rem; color: var(--muted); }

.input, .select, .textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: .97rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.textarea { min-height: 140px; resize: vertical; }
.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23677585'%3E%3Cpath d='M8 11 3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 38px;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid, .file-drop.is-invalid { border-color: var(--red); background: #FFFBFA; }
.field__error { font-size: .84rem; color: var(--red); font-weight: 600; }

.file-drop {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--page);
    cursor: pointer;
}
.file-drop:hover { border-color: var(--blue); background: var(--blue-50); }
.file-drop .bi { font-size: 1.5rem; color: var(--blue); }
.file-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop__text { font-size: .92rem; }
.file-drop__text strong { display: block; font-family: var(--font-head); color: var(--ink); }
.file-drop__text span { color: var(--muted); font-size: .85rem; }

.check { display: flex; align-items: flex-start; gap: 12px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex-shrink: 0; }
.check label { font-family: var(--font-body); font-size: .92rem; font-weight: 400; color: var(--body); }
.check label a { font-weight: 600; }

.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.form-actions p { margin: 0; font-size: .85rem; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.prose h2 { margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 8px; }

/* 12. Employers
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.value-list { list-style: none; padding: 0; margin: 0; }
.value-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.value-list li:last-child { border-bottom: 0; }
.value-list .bi { color: var(--blue); font-size: 1.3rem; flex-shrink: 0; }
.value-list strong { display: block; font-family: var(--font-head); color: var(--ink); }
.value-list span { font-size: .93rem; }

.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-band > div { padding: 24px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); border-radius: var(--radius); }
.stat-band strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--white); }
.stat-band span { font-size: .9rem; color: rgba(255, 255, 255, .7); }

/* 13. Footer
   ========================================================================== */
.portal-footer { background: var(--navy-950); color: rgba(255, 255, 255, .62); padding: clamp(48px, 6vw, 72px) 0 28px; font-size: .93rem; }
.portal-footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 40px; }
.portal-footer__logo { width: 140px; margin-bottom: 18px; }
.portal-footer h2 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.portal-footer ul { list-style: none; margin: 0; padding: 0; }
.portal-footer li { margin-bottom: 10px; }
.portal-footer a { color: rgba(255, 255, 255, .72); }
.portal-footer a:hover { color: var(--white); text-decoration: none; }
.portal-footer__licence { font-size: .85rem; color: var(--blue-300); }
.portal-footer__contact li { display: flex; gap: 10px; }
.portal-footer__contact .bi { color: var(--amber); }
.portal-footer__contact address { font-style: normal; }
.portal-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.portal-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
}
.portal-footer__social a:hover { background: rgba(255, 255, 255, .1); }
.portal-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid var(--line-dark);
    font-size: .85rem;
}
.portal-footer__bottom p { margin: 0; }

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    font-size: 1.6rem;
    box-shadow: var(--shadow);
}
.whatsapp-float:hover { color: var(--white); transform: translateY(-2px); }

/* 14. Admin
   ========================================================================== */
.admin-body { background: var(--page); }
.admin-bar { background: var(--navy-900); color: rgba(255, 255, 255, .75); }
.admin-bar .shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; }
.admin-bar__brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; color: var(--white); }
.admin-bar__brand img { width: 110px; }
.admin-bar nav { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-bar nav a { padding: 8px 14px; border-radius: var(--radius); font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .75); }
.admin-bar nav a:hover, .admin-bar nav a.is-active { background: rgba(255, 255, 255, .1); color: var(--white); text-decoration: none; }

.admin-main { padding: 36px 0 64px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.admin-head h1 { font-size: 1.7rem; margin: 0; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card { padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stat-card strong { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1; }
.stat-card span { font-size: .88rem; color: var(--muted); }
.stat-card a { font-size: .85rem; font-weight: 600; }

.table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data th { font-family: var(--font-head); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--page); }
table.data tr:last-child td { border-bottom: 0; }
table.data td strong { color: var(--ink); }
table.data .row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table-empty { padding: 40px; text-align: center; color: var(--muted); }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 20px; background: var(--navy-900); }
.login-card { width: 100%; max-width: 420px; background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.login-card img { width: 150px; margin: 0 auto 24px; }

/* 15. Responsive
   ========================================================================== */
@media (max-width: 1199.98px) {
    .search-card__grid { grid-template-columns: 1fr 1fr; }
    .search-card__grid .btn { grid-column: 1 / -1; }
    .detail { grid-template-columns: 1fr 320px; gap: 28px; }
    .tile-grid, .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .step-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991.98px) {
    .portal-toggle { display: flex; }
    .portal-menu {
        position: absolute;
        left: 0; right: 0;
        top: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 20px 24px 26px;
        background: var(--navy-900);
        border-bottom: 1px solid var(--line-dark);
        box-shadow: var(--shadow);
    }
    .portal-menu.is-open { display: flex; }
    .portal-nav { position: relative; }
    .portal-menu__list { flex-direction: column; align-items: stretch; gap: 2px; }
    .portal-menu__list a { padding: 12px 14px; }
    .portal-menu__actions { flex-direction: column; align-items: stretch; }

    .listing { grid-template-columns: 1fr; }
    .filters { position: static; display: none; }
    .filters.is-open { display: block; }
    .filter-toggle { display: inline-flex; width: 100%; justify-content: center; margin-bottom: 16px; }
    .detail { grid-template-columns: 1fr; }
    .apply-card { position: static; }
    .split, .alert-band__grid, .job-grid--two { grid-template-columns: 1fr; }
    .stat-band { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .shell { padding: 0 16px; }
    .portal-header__top .shell { height: auto; padding-top: 6px; padding-bottom: 6px; gap: 8px; }
    .portal-header__top p { font-size: .74rem; }
    .search-card__grid { grid-template-columns: 1fr; }
    .field-grid, .alert-band .field-row { grid-template-columns: 1fr; }
    .tile-grid, .stat-cards, .step-grid { grid-template-columns: 1fr; }
    .portal-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .hero__stats { gap: 24px; }
    .job-card { padding: 22px 20px; }
    .job-card__head { flex-direction: column; gap: 10px; }
    .form-actions { flex-direction: column; align-items: stretch; }
    .form-actions .btn { width: 100%; }
    .admin-bar .shell { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
    table.data { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Forms sitting on a dark background (job alerts band, dark sections) */
.alert-band .field label,
.section--dark .field label { color: var(--white); }
.alert-band .check label,
.section--dark .check label { color: rgba(255, 255, 255, .78); }
.alert-band .check label a,
.section--dark .check label a { color: var(--blue-300); }
.alert-band .field__hint,
.section--dark .field__hint { color: rgba(255, 255, 255, .6); }
.alert-band .req,
.section--dark .req { color: var(--amber); }
