/* Home page (resources/views/home). Everything is scoped under .hp so the shared Bootstrap 4 and
   main-<site>.css styles keep working elsewhere. Site colours come in as --hp-* custom properties. */

.hp {
    --hp-ink: #16202c;
    --hp-muted: #5b6675;
    --hp-line: #e2e7ee;
    --hp-radius: 14px;
    --hp-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
    color: var(--hp-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* :where() keeps these resets at class-level specificity, so the component classes below win */
.hp :where(h1, h2, h3) { color: inherit; font-family: inherit; letter-spacing: -.01em; margin: 0; }
.hp :where(h2) { font-size: 1.75rem; font-weight: 700; line-height: 1.25; }
.hp :where(h3) { font-size: 1.1rem; font-weight: 650; line-height: 1.35; }
.hp :where(p) { margin: 0; }
.hp :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.hp :where(a) { text-decoration: none; }

/* Buttons */
.hp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    border: 2px solid transparent; border-radius: 10px;
    font-weight: 650; font-size: 1rem; line-height: 1; padding: .9rem 1.4rem;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
    cursor: pointer; white-space: nowrap;
}
.hp-btn:hover { transform: translateY(-1px); text-decoration: none; }
.hp-btn--accent { background: var(--hp-accent); color: #fff; }
.hp-btn--accent:hover { color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.hp-btn--primary { background: var(--hp-primary); color: #fff; }
.hp-btn--primary:hover { color: #fff; background: var(--hp-primary-dark); }
.hp-btn--ghost { border-color: var(--hp-primary); color: var(--hp-primary); background: #fff; }
.hp-btn--ghost:hover { background: var(--hp-tint); color: var(--hp-primary-dark); }
.hp-btn--light { background: #fff; color: var(--hp-primary-dark); }
.hp-btn--light:hover { color: var(--hp-primary-dark); box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }

.hp-link { color: var(--hp-primary); font-weight: 650; }
.hp-link:hover { color: var(--hp-primary-dark); text-decoration: underline; }
.hp-link i { font-size: .85em; margin-left: .25rem; }

.hp-eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: #fff; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: .35rem .8rem; margin-bottom: 1rem;
}
.hp-eyebrow--dark { color: var(--hp-primary); background: var(--hp-tint); margin-bottom: .75rem; }

/* Hero */
.hp-hero {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(135deg, var(--hp-primary-dark) 0%, var(--hp-primary) 100%);
    padding: 72px 0 64px;
}
.hp-hero__inner { position: relative; z-index: 1; }
.hp-hero__title { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; line-height: 1.12; max-width: 17em; }
.hp-hero__lead { font-size: 1.15rem; color: rgba(255, 255, 255, .88); max-width: 36em; margin-top: 1rem; }
.hp-hero__motif {
    position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
    width: min(46vw, 620px); color: rgba(255, 255, 255, .9); pointer-events: none;
}
.hp-hero__motif svg { display: block; width: 100%; height: auto; }
.hp--canadaworkdirectory .hp-hero__motif { width: min(40vw, 520px); right: -60px; opacity: .22; transform: translateY(-50%) rotate(-12deg); }
.hp--jobsforrefugee .hp-hero__motif { top: auto; bottom: 0; transform: none; right: 0; }
.hp--aboriginaljobportal .hp-hero__motif { top: auto; bottom: 0; transform: none; right: 0; }

.hp-search {
    display: flex; gap: .5rem; align-items: stretch; margin-top: 2rem; max-width: 860px;
    background: #fff; border-radius: var(--hp-radius); padding: .5rem; box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}
.hp-search__field { flex: 1 1 0; display: flex; align-items: center; gap: .6rem; margin: 0; padding: 0 .9rem; border-radius: 10px; color: var(--hp-muted); }
.hp-search__field + .hp-search__field { border-left: 1px solid var(--hp-line); border-radius: 0; }
.hp-search__field input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 1rem; color: var(--hp-ink); padding: .8rem 0; background: transparent; }
.hp-search__field:focus-within { box-shadow: inset 0 0 0 2px var(--hp-primary); border-radius: 10px; }

.hp-popular { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.1rem; font-size: .92rem; color: rgba(255, 255, 255, .8); }
.hp-popular a { color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: .25rem .8rem; }
.hp-popular a:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.hp-hero__facts { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; margin-top: 2rem; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.hp-hero__facts i { color: var(--hp-accent); margin-right: .35rem; }
.hp--jobsforrefugee .hp-hero__facts i, .hp--canadaworkdirectory .hp-hero__facts i { color: #fff; }
.hp-hero__facts strong { color: #fff; font-size: 1.05rem; }

/* Sections */
.hp-section { padding: 72px 0; background: #fff; }
.hp-section--tint { background: var(--hp-tint); }
.hp-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.hp-section__head--center { flex-direction: column; align-items: center; text-align: center; }

/* Jobs */
.hp-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.hp-job {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); padding: 1.4rem;
    color: var(--hp-ink); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.hp-job:hover { border-color: var(--hp-primary); box-shadow: var(--hp-shadow); transform: translateY(-2px); color: var(--hp-ink); }
.hp-job__title { color: var(--hp-primary-dark); padding-right: 4.5rem; }
.hp-job__company { color: var(--hp-muted); margin-top: .25rem; font-weight: 500; }
.hp-job__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: auto; padding-top: 1rem; font-size: .88rem; color: var(--hp-muted); }
.hp-job__meta i { color: var(--hp-primary); margin-right: .3rem; }
.hp-badge { position: absolute; top: 1.2rem; right: 1.2rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--hp-accent); border-radius: 999px; padding: .2rem .6rem; }

.hp-empty {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
    border: 1px dashed var(--hp-primary); background: var(--hp-tint); border-radius: var(--hp-radius); padding: 2rem;
}
.hp-empty p { color: var(--hp-muted); margin-top: .4rem; max-width: 38em; }
.hp-empty__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Browse */
.hp-browse { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.hp-browse h2 { margin-bottom: 1.25rem; }
.hp-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.hp-chips a { display: inline-flex; align-items: center; gap: .5rem; background: #fff; color: var(--hp-ink); border: 1px solid var(--hp-line); border-radius: 999px; padding: .45rem 1rem; font-weight: 500; }
.hp-chips a:hover { border-color: var(--hp-primary); color: var(--hp-primary); }
.hp-chips span { font-size: .8rem; font-weight: 700; color: var(--hp-primary); background: var(--hp-tint); border-radius: 999px; padding: .05rem .5rem; }

/* Features */
.hp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.hp-feature { border: 1px solid var(--hp-line); border-radius: var(--hp-radius); padding: 1.75rem; background: #fff; }
.hp-feature__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px; background: var(--hp-tint); color: var(--hp-primary); font-size: 1.35rem; margin-bottom: 1rem; }
.hp-feature p { color: var(--hp-muted); margin-top: .5rem; }

/* How it works */
.hp-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.hp-how__col { background: #fff; border-radius: var(--hp-radius); padding: 2rem; box-shadow: var(--hp-shadow); }
.hp-steps { counter-reset: hp-step; margin: 1.25rem 0 1.75rem; }
.hp-steps li { counter-increment: hp-step; position: relative; padding-left: 3rem; margin-bottom: 1rem; color: var(--hp-muted); }
.hp-steps li strong { color: var(--hp-ink); }
.hp-steps li::before {
    content: counter(hp-step); position: absolute; left: 0; top: -.1rem;
    width: 2rem; height: 2rem; border-radius: 50%; background: var(--hp-primary); color: #fff;
    font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .9rem;
}

/* Resources and blog */
.hp-resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.hp-resource { display: block; height: 100%; border: 1px solid var(--hp-line); border-left: 4px solid var(--hp-accent); border-radius: var(--hp-radius); padding: 1.4rem; color: var(--hp-ink); background: #fff; }
.hp-resource:hover { box-shadow: var(--hp-shadow); color: var(--hp-ink); }
.hp-resource h3 { color: var(--hp-primary-dark); }
.hp-resource h3 i { font-size: .7em; color: var(--hp-muted); margin-left: .25rem; vertical-align: middle; }
.hp-resource p { color: var(--hp-muted); margin-top: .4rem; font-size: .95rem; }

/* Employer CTA */
.hp-cta { background: var(--hp-primary-dark); color: #fff; padding: 56px 0; }
.hp-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.hp-cta p { color: rgba(255, 255, 255, .8); margin-top: .4rem; }

/* FAQ */
.hp-faq { max-width: 860px; }
.hp-faq h2 { margin-bottom: 1.5rem; }
.hp-faq__item { background: #fff; border: 1px solid var(--hp-line); border-radius: 12px; margin-bottom: .75rem; }
.hp-faq__item summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.25rem; font-weight: 650; position: relative; }
.hp-faq__item summary::-webkit-details-marker { display: none; }
.hp-faq__item summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--hp-primary); }
.hp-faq__item[open] summary::after { content: "\2212"; }
.hp-faq__item p { padding: 0 1.25rem 1.2rem; color: var(--hp-muted); }

/* Partner sites */
.hp-network h2 { margin-bottom: 1.5rem; }
.hp-network__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.hp-network__list li { border: 1px solid var(--hp-line); border-top: 4px solid var(--hp-partner); border-radius: 12px; padding: 1.1rem 1.25rem; display: flex; flex-direction: column; }
.hp-network__list a, .hp-network__list strong { font-weight: 700; color: var(--hp-partner); }
.hp-network__list a:hover { text-decoration: underline; }
.hp-network__list span { font-size: .9rem; color: var(--hp-muted); }
.hp-network__list .is-current { background: var(--hp-tint); }

/* ---------- Inner pages: job detail, job lists, NOC codes ---------- */

.hp-btn--block { display: flex; width: 100%; }
.hp-btn--outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.hp-btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.hp-btn--done { background: var(--hp-tint); color: var(--hp-primary-dark); cursor: default; }
.hp-btn--done:hover { transform: none; }

.hp-section--tight { padding: 40px 0 64px; }

/* Page header band */
.hp-pagehead { color: #fff; background: linear-gradient(135deg, var(--hp-primary-dark) 0%, var(--hp-primary) 100%); padding: 28px 0 44px; }
.hp-pagehead--compact { padding-bottom: 36px; }
.hp-pagehead__title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; line-height: 1.15; max-width: 26em; }
.hp-pagehead__lead { color: rgba(255, 255, 255, .88); font-size: 1.1rem; margin-top: .6rem; max-width: 46em; }
.hp-pagehead__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.1rem; color: rgba(255, 255, 255, .9); }
.hp-pagehead__meta i { color: var(--hp-accent); margin-right: .35rem; }
.hp--jobsforrefugee .hp-pagehead__meta i, .hp--canadaworkdirectory .hp-pagehead__meta i { color: #fff; opacity: .8; }
.hp-pagehead__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hp-pagehead .hp-search { margin-top: 1.5rem; }
.hp-code { display: inline-block; font-size: .75em; font-weight: 700; background: rgba(255, 255, 255, .16); border-radius: 8px; padding: .1em .45em; margin-right: .2em; vertical-align: .12em; }

/* Breadcrumbs */
.hp-crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem; font-size: .88rem; margin-bottom: 1.25rem; }
.hp-crumbs li { color: rgba(255, 255, 255, .7); }
.hp-crumbs li + li::before { content: "/"; margin: 0 .45rem 0 .2rem; opacity: .6; }
.hp-crumbs a { color: rgba(255, 255, 255, .9); }
.hp-crumbs a:hover { color: #fff; text-decoration: underline; }

/* Two-column layout */
.hp-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.hp-aside { display: grid; gap: 1.25rem; }
.hp-aside--sticky { position: sticky; top: 1.25rem; }

.hp-card { background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); padding: 1.5rem; }
.hp-split > article > .hp-card + .hp-card { margin-top: 1.25rem; }
.hp-card--tint { background: var(--hp-tint); border-color: transparent; }
.hp-card__title { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.hp-card__note { color: var(--hp-muted); font-size: .9rem; margin-top: .75rem; }
.hp-card p + .hp-btn { margin-top: 1rem; }
.hp-employer { font-weight: 650; font-size: 1.05rem; }

.hp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 2rem; margin: 0; }
.hp-facts div { padding: .7rem 0; border-bottom: 1px solid var(--hp-line); }
.hp-facts dt { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--hp-muted); }
.hp-facts dd { margin: .15rem 0 0; font-weight: 600; }

.hp-notice { display: flex; gap: .9rem; align-items: flex-start; background: #fff7e6; border: 1px solid #f5d38a; border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.hp-notice i { color: #b7791f; margin-top: .25rem; }
.hp-notice a { color: var(--hp-primary); font-weight: 650; margin-left: .35rem; }

.hp-actions { margin-top: 1.1rem; border-top: 1px solid var(--hp-line); }
.hp-actions li { border-bottom: 1px solid var(--hp-line); }
.hp-actions a { display: flex; align-items: center; gap: .6rem; padding: .7rem .1rem; color: var(--hp-ink); font-weight: 500; }
.hp-actions a:hover { color: var(--hp-primary); }
.hp-actions i { width: 1.1rem; color: var(--hp-primary); }

.hp-skills { display: flex; flex-wrap: wrap; gap: .5rem; }
.hp-skills li { background: var(--hp-tint); color: var(--hp-primary-dark); border-radius: 999px; padding: .3rem .85rem; font-weight: 500; font-size: .92rem; }

.hp-linklist li + li { border-top: 1px solid var(--hp-line); }
.hp-linklist a { display: block; padding: .6rem 0; color: var(--hp-ink); }
.hp-linklist a:hover { color: var(--hp-primary); }
.hp-linklist .hp-code { background: var(--hp-tint); color: var(--hp-primary); font-size: .78em; }

.hp-mini-search { display: flex; gap: .5rem; }
.hp-mini-search input { flex: 1; min-width: 0; border: 1px solid var(--hp-line); border-radius: 10px; padding: .7rem .9rem; font-size: 1rem; }
.hp-mini-search input:focus { outline: 2px solid var(--hp-primary); border-color: transparent; }
.hp-mini-search .hp-btn { padding: .7rem 1rem; }

/* Rich text: job descriptions and NOC guides (pasted HTML, often from Elementor) */
.hp-prose { font-size: 1.02rem; line-height: 1.75; color: #2b3542; overflow-wrap: anywhere; }
.hp-prose :where(h1, h2, h3, h4, h5) { font-family: inherit !important; color: var(--hp-ink) !important; line-height: 1.3; margin: 2rem 0 .75rem; }
.hp-prose :where(h1, h2) { font-size: 1.45rem !important; font-weight: 750; padding-top: 1.5rem; border-top: 1px solid var(--hp-line); }
.hp-prose > :first-child, .hp-prose :where(div:first-child > h2, div:first-child > div:first-child h2) { border-top: 0; padding-top: 0; margin-top: 0; }
.hp-prose :where(h3, h4, h5) { font-size: 1.15rem !important; font-weight: 700; }
.hp-prose :where(p) { margin: 0 0 1rem; }
.hp-prose :where(ul, ol) { margin: 0 0 1.25rem; padding-left: 1.35rem; list-style: disc; }
.hp-prose :where(ol) { list-style: decimal; }
.hp-prose :where(li) { margin-bottom: .4rem; }
.hp-prose :where(a) { color: var(--hp-primary); text-decoration: underline; }
.hp-prose :where(strong, b) { color: var(--hp-ink); }
.hp-prose :where(table) { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.hp-prose :where(th, td) { border: 1px solid var(--hp-line); padding: .5rem .75rem; text-align: left; }
.hp-prose :where(span, div) { font-family: inherit !important; font-size: inherit !important; }
.hp-prose img { max-width: 100%; height: auto; }
article.hp-prose { background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); padding: 2rem 2.25rem; }

/* Job lists */
.hp-search--inline { max-width: 900px; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); }
.hp-listing { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 2rem; align-items: start; }
.hp-jobs--list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.hp-filters { background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); padding: 1.25rem; position: sticky; top: 1.25rem; }
.hp-filters__head { display: flex; justify-content: space-between; align-items: baseline; list-style: none; cursor: pointer; }
.hp-filters__head::-webkit-details-marker { display: none; }
.hp-filters__panel[open] .hp-filters__head { margin-bottom: 1rem; }
.hp-filters__head h2::after { content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .85rem; margin-left: .5rem; color: var(--hp-muted); display: none; }
.hp-filters__head h2 { font-size: 1.1rem; font-weight: 700; }
.hp-filters__head a { font-size: .9rem; color: var(--hp-primary); }
.hp-filters__label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: .35rem; }
.hp-filters__input { width: 100%; border: 1px solid var(--hp-line); border-radius: 10px; padding: .6rem .8rem; font-size: .95rem; }
.hp-filters__input:focus { outline: 2px solid var(--hp-primary); border-color: transparent; }
.hp-filters__group { border: 0; margin: 1.25rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--hp-line); min-width: 0; }
.hp-filters__group legend { font-size: .92rem; font-weight: 650; margin-bottom: .5rem; width: auto; }
.hp-filters .hp-btn { margin-top: 1.25rem; }
.hp-check { display: flex; align-items: center; gap: .55rem; margin: 0; padding: .3rem 0; cursor: pointer; font-size: .95rem; }
.hp-check input { width: 1.05rem; height: 1.05rem; accent-color: var(--hp-primary); }
.hp-check span { flex: 1; }
.hp-check em { font-style: normal; font-size: .78rem; font-weight: 700; color: var(--hp-primary); background: var(--hp-tint); border-radius: 999px; padding: 0 .5rem; }

.hp-pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; color: var(--hp-muted); font-size: .92rem; }
.hp-pager .pagination { margin: 0; gap: .35rem; flex-wrap: wrap; }
.hp-pager .page-link { border: 1px solid var(--hp-line); border-radius: 8px !important; color: var(--hp-ink); min-width: 2.4rem; text-align: center; }
.hp-pager .page-item.active .page-link { background: var(--hp-primary); border-color: var(--hp-primary); color: #fff; }
.hp-pager .page-link:hover { color: var(--hp-primary); background: var(--hp-tint); }

@media (max-width: 991px) {
    .hp-split, .hp-listing { grid-template-columns: 1fr; }
    .hp-aside--sticky, .hp-filters { position: static; }
    .hp-filters__head h2::after { display: inline; }
    .hp-filters__panel[open] .hp-filters__head h2::after { content: "\f106"; }
    article.hp-prose { padding: 1.5rem; }
}

/* Express Entry draws (resources/views/express-entry) */
.hp-stats { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 1rem; margin: 0 0 2rem; }
.hp-stats__item { background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); padding: 1.1rem 1.25rem; }
.hp-stats__item dt { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--hp-muted); }
.hp-stats__item dd { margin: .25rem 0 0; font-size: 2rem; font-weight: 750; line-height: 1.15; font-variant-numeric: tabular-nums; }
.hp-stats__item p { margin-top: .3rem; font-size: .88rem; color: var(--hp-muted); }
.hp-stats__item--lead { background: var(--hp-tint); border-color: transparent; }
.hp-stats__item--lead dd { font-size: 2.6rem; color: var(--hp-primary-dark); }
.hp-ee-filter { display: flex; gap: .75rem 1rem; align-items: baseline; margin-bottom: 1.25rem; }
.hp-ee-filter__label { font-size: .82rem !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .04em; color: var(--hp-muted); flex: none; }
.hp-chips--filter a { padding: .35rem .85rem; font-size: .92rem; }
.hp-chips--filter a[aria-current] { background: var(--hp-primary); border-color: var(--hp-primary); color: #fff; }
.hp-chips--filter a[aria-current] span { background: rgba(255, 255, 255, .22); color: #fff; }
.hp-chart-card { background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); box-shadow: var(--hp-shadow); padding: 1.5rem; }
.hp-chart-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.hp-chart-card__head h2 { font-size: 1.3rem; }
.hp-chart-card__head p { color: var(--hp-muted); font-size: .92rem; margin-top: .25rem; max-width: 640px; }
.hp-chart-card__sub { margin: 1.75rem 0 .5rem; font-size: 1rem !important; }
.hp-chart-card__note { margin-top: 1rem !important; font-size: .82rem; color: var(--hp-muted); }
.hp-chart-card__note a { color: var(--hp-primary); }
.hp-chart { position: relative; height: 360px; }
.hp-chart--short { height: 180px; }
.hp-chart--tall { height: 440px; }
.hp-range { display: inline-flex; flex: none; border: 1px solid var(--hp-line); border-radius: 10px; overflow: hidden; }
.hp-range button { border: 0; background: #fff; color: var(--hp-ink); font: inherit; font-size: .88rem; font-weight: 600; padding: .45rem .8rem; cursor: pointer; }
.hp-range button + button { border-left: 1px solid var(--hp-line); }
.hp-range button[aria-pressed="true"] { background: var(--hp-primary); color: #fff; }
.hp-range button:focus-visible, .hp-chips--filter a:focus-visible { outline: 3px solid var(--hp-accent); outline-offset: 2px; }
.hp-muted { color: var(--hp-muted); }
.hp-table-wrap { max-height: 560px; overflow: auto; background: #fff; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); }
.hp-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hp-table th { position: sticky; top: 0; background: #f6f8fb; text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--hp-muted); padding: .75rem 1rem; border-bottom: 1px solid var(--hp-line); }
.hp-table td { padding: .65rem 1rem; border-bottom: 1px solid var(--hp-line); vertical-align: top; }
.hp-table tr:last-child td { border-bottom: 0; }
.hp-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hp-table td a { color: var(--hp-primary); }
@media (max-width: 991px) {
    .hp-stats { grid-template-columns: repeat(2, 1fr); }
    .hp-ee-filter { flex-direction: column; }
    .hp-chart-card__head { flex-direction: column; }
}
@media (max-width: 575px) {
    .hp-chart-card { padding: 1rem; }
    .hp-chart { height: 300px; }
    .hp-stats__item dd { font-size: 1.6rem; }
    .hp-stats__item--lead dd { font-size: 2rem; }
    .hp-table th, .hp-table td { padding: .55rem .6rem; }
}

/* Small screens */
@media (max-width: 991px) {
    .hp-hero__motif { opacity: .25; width: 70vw; right: -25vw; }
    .hp--canadaworkdirectory .hp-hero__motif { opacity: .14; }
}
@media (max-width: 767px) {
    .hp-hero { padding: 48px 0 44px; }
    .hp-section { padding: 52px 0; }
    .hp :where(h2) { font-size: 1.45rem; }
    .hp-search { flex-direction: column; padding: .6rem; }
    .hp-search__field + .hp-search__field { border-left: 0; border-top: 1px solid var(--hp-line); }
    .hp-search .hp-btn { width: 100%; }
    .hp-hero__motif { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hp-btn, .hp-job { transition: none; }
    .hp-btn:hover, .hp-job:hover { transform: none; }
}
