/* Canada Careers — public pages (home, job search, job detail, company, legal). Mobile first. Tokens only. */

/* ---------- shared bits ---------- */
.section-head { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 0; }
.section-head .eyebrow { margin-bottom: 6px; }
.jobs-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .jobs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .jobs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .jobs-grid { grid-template-columns: repeat(4, 1fr); } }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8125rem; color: var(--kds-fg-muted); margin-bottom: 10px; }
.crumbs a { color: var(--kds-fg-muted); text-decoration: none; }
.crumbs a:hover { color: var(--cc-red); text-decoration: underline; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose h2 { font-size: 1.25rem; margin-top: 1.75em; }
.facts { display: grid; gap: 10px; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--kds-border); }
.facts > div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; font-size: .9rem; }
.facts dt { color: var(--kds-fg-muted); font-weight: 500; }
.facts dd { margin: 0; font-weight: 600; color: var(--cc-ink); overflow-wrap: anywhere; }
.tags { list-style: none; padding: 0; margin: 0; }
.tag { padding: 6px 12px; border-radius: 999px; background: var(--cc-navy-50); border: 1px solid var(--cc-navy-100); font-size: .875rem; font-weight: 500; }
.h3 { font-size: 1.15rem; }

/* ---------- home: hero ---------- */
.hero { background: linear-gradient(180deg, var(--cc-navy-50) 0%, #fff 100%); border-bottom: 1px solid var(--kds-border); overflow: hidden; }
.hero__inner { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 32px; align-items: center; }
.hero__title { margin-bottom: 12px; }
.hero__title-accent { color: var(--cc-red); display: block; }
.hero__lead { margin-bottom: 20px; }
.hero__lead strong { color: var(--cc-navy); }
.hero__search { display: grid; gap: 12px; background: #fff; border: 1px solid var(--kds-border); border-radius: 16px; padding: 14px; box-shadow: var(--kds-shadow-2); }
.hero__field label { font-size: .8125rem; }
.hero__submit { width: 100%; }
.hero__popular { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.hero__popular a { text-decoration: none; font-weight: 600; color: var(--cc-navy); border-bottom: 1px solid var(--cc-line-strong); }
.hero__popular a:hover { color: var(--cc-red); border-color: var(--cc-red); }
.hero__art { position: relative; border-radius: 20px; min-height: 180px; display: grid; place-items: center; }
.hero__art img { display: block; width: 100%; max-width: 560px; height: auto; }
.hero__art--fallback { background: radial-gradient(ellipse at 30% 30%, var(--cc-teal-100), transparent 60%), radial-gradient(ellipse at 75% 70%, var(--cc-orange-100), transparent 55%), linear-gradient(135deg, var(--cc-navy-100), var(--cc-green-100)); min-height: 220px; }
.hero__art--fallback::after { content: ""; width: 96px; height: 96px; background: var(--cc-red); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l1.6 4.3 3.4-1.1-1 3.9 3.8.6-2.6 2.6 2.3 2.7-3.9.2.4 3.9-3.3-2-1 3.9-1-3.9-3.3 2 .4-3.9-3.9-.2 2.3-2.7L3 9.7l3.8-.6-1-3.9 3.4 1.1z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l1.6 4.3 3.4-1.1-1 3.9 3.8.6-2.6 2.6 2.3 2.7-3.9.2.4 3.9-3.3-2-1 3.9-1-3.9-3.3 2 .4-3.9-3.9-.2 2.3-2.7L3 9.7l3.8-.6-1-3.9 3.4 1.1z'/%3E%3C/svg%3E") center/contain no-repeat; opacity: .9; }
@media (min-width: 640px) {
  .hero__search { grid-template-columns: 1fr 1fr; align-items: end; }
  .hero__submit { grid-column: 1 / -1; }
}
@media (min-width: 768px) { .hero__inner { padding-top: 48px; padding-bottom: 48px; } }
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  .hero__search { grid-template-columns: 1.4fr 1fr auto; }
  .hero__submit { grid-column: auto; width: auto; min-width: 150px; }
  .hero__art { min-height: 320px; }
}

/* ---------- home: pillars ---------- */
.pillar-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.pillar { display: grid; grid-template-columns: 56px 1fr; grid-template-areas: "icon name" "icon desc" "icon cta"; column-gap: 14px; row-gap: 2px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--kds-border); text-decoration: none; color: var(--cc-ink); min-height: 96px; transition: border-color .15s, box-shadow .15s, transform .15s; border-top: 4px solid var(--pillar-c, var(--cc-navy)); }
.pillar:hover { box-shadow: var(--kds-shadow-2); border-color: var(--pillar-c); color: var(--cc-ink); transform: translateY(-2px); }
.pillar--professionals { --pillar-c: var(--cc-aud-professionals); }
.pillar--new_immigrants { --pillar-c: var(--cc-aud-new_immigrants); }
.pillar--indigenous { --pillar-c: var(--cc-aud-indigenous); }
.pillar--refugees { --pillar-c: var(--cc-red); }
.pillar--youth { --pillar-c: var(--cc-aud-youth); }
.pillar__icon { grid-area: icon; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--pillar-c) 14%, #fff); color: var(--pillar-c); }
.pillar__icon img { width: 32px; height: 32px; }
.pillar__icon:empty::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--pillar-c); }
.pillar__name { grid-area: name; font: 700 1.0625rem/1.2 var(--cc-font-display); color: var(--cc-navy); }
.pillar__desc { grid-area: desc; font-size: .875rem; color: var(--kds-fg-muted); }
.pillar__cta { grid-area: cta; font-size: .8125rem; font-weight: 600; color: var(--pillar-c); margin-top: 6px; }
@media (min-width: 640px) and (max-width: 1023px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } .pillar-grid li:last-child { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .pillar-grid { grid-template-columns: repeat(5, 1fr); }
  .pillar { grid-template-columns: 1fr; grid-template-areas: "icon" "name" "desc" "cta"; row-gap: 6px; padding: 20px 18px; }
  .pillar__icon { margin-bottom: 6px; }
}

/* ---------- home: browse ---------- */
.browse { background: var(--cc-surface); border-top: 1px solid var(--kds-border); border-bottom: 1px solid var(--kds-border); }
.browse__sub { margin-top: 40px; }
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.cat { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--kds-border); text-decoration: none; font-weight: 600; color: var(--cc-navy); font-size: .9375rem; }
.cat:hover { border-color: var(--cc-navy); color: var(--cc-navy); }
.cat__count { flex: none; min-width: 28px; height: 28px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--cc-navy); color: #fff; font-size: .75rem; font-weight: 700; }
.cat--empty { color: var(--kds-fg-muted); font-weight: 500; }
.cat--empty .cat__count { background: var(--cc-navy-100); color: var(--kds-fg-muted); }
@media (min-width: 480px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.prov-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prov { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--kds-border); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--cc-navy); }
.prov:hover { border-color: var(--cc-navy); }
.prov__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--cc-red); color: #fff; font-size: .7rem; font-weight: 700; }
.prov--empty { color: var(--kds-fg-muted); font-weight: 500; }
.prov--empty .prov__count { background: var(--cc-navy-100); color: var(--kds-fg-muted); }

/* ---------- home: CTA cards ---------- */
.cta-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--kds-border); border-top: 5px solid var(--cta-c, var(--cc-navy)); border-radius: 16px; padding: 22px 20px; }
.cta-card--employer { --cta-c: var(--cc-navy); }
.cta-card--consultant { --cta-c: var(--cc-teal); }
.cta-card--seeker { --cta-c: var(--cc-red); }
.cta-card h3 { margin: 0; }
.cta-card p { margin: 0; color: var(--kds-fg-muted); }
.cta-card__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.cta-card__price strong { font: 800 1.75rem/1 var(--cc-font-display); color: var(--cta-c); }
.cta-card__price span { font-size: .875rem; color: var(--kds-fg-muted); }
.ticks { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; font-size: .9375rem; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--cc-green-100); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: 7px; width: 5px; height: 8px; border: solid var(--cc-green); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cta-card .kds-btn { margin-top: auto; }
@media (min-width: 768px) { .ctas .grid--3 { grid-template-columns: repeat(3, 1fr); } .cta-card { padding: 20px 16px; } }
@media (min-width: 1024px) { .cta-card { padding: 24px; } }

/* ---------- home: how it works + trust ---------- */
.how { background: var(--cc-navy); color: #fff; }
.how .eyebrow { color: var(--cc-orange); }
.how h2, .how h3 { color: #fff; }
.steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; padding: 18px 18px 18px 64px; border-radius: 14px; background: color-mix(in srgb, #fff 8%, transparent); border: 1px solid color-mix(in srgb, #fff 16%, transparent); }
.step h3 { margin-bottom: 4px; font-size: 1.125rem; }
.step p { margin: 0; color: color-mix(in srgb, #fff 78%, transparent); font-size: .9375rem; }
.step__num { position: absolute; left: 16px; top: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--cc-red); color: #fff; font: 800 1rem/1 var(--cc-font-display); }
.trust { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid color-mix(in srgb, #fff 16%, transparent); display: grid; gap: 14px; grid-template-columns: 1fr; }
.trust li { display: grid; gap: 2px; font-size: .9rem; }
.trust strong { color: var(--cc-orange); font-family: var(--cc-font-display); }
.trust span { color: color-mix(in srgb, #fff 75%, transparent); }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(3, 1fr); } .trust { grid-template-columns: repeat(4, 1fr); } }

/* ---------- jobs: layout ---------- */
.results-count { margin: 0; }
.jobs-layout { display: grid; gap: 16px; grid-template-columns: 1fr; padding-top: 16px; padding-bottom: 40px; align-items: start; }
.filters__toggle { width: 100%; justify-content: center; gap: 8px; }
.filters__body { display: grid; gap: 14px; background: #fff; border: 1px solid var(--kds-border); border-radius: 16px; padding: 16px; margin-top: 10px; }
.js .filters__body { display: none; }
.js .filters.is-open .filters__body, .js .filters:target .filters__body { display: grid; }
.filters__head { display: flex; justify-content: space-between; align-items: baseline; }
.filters__head h2 { font-size: 1.05rem; margin: 0; }
.filters__fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.filters__fieldset legend { font-weight: 600; font-size: .9rem; color: var(--cc-ink); padding: 0; margin-bottom: 6px; }
.checks--1 { grid-template-columns: 1fr; gap: 6px; }
.checks--1 .check { padding: 8px 10px; align-items: center; }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg__opt span { display: grid; place-items: center; min-height: 44px; padding: 6px 8px; border: 1px solid var(--kds-border); border-radius: 10px; font-size: .9rem; font-weight: 500; background: #fff; text-align: center; }
.seg__opt input:checked + span { background: var(--cc-navy); color: #fff; border-color: var(--cc-navy); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--kds-focus-ring); outline-offset: 2px; }
.filters__actions { margin-top: 4px; }
.results { min-width: 0; }
.results__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.results__hint { margin: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px; border-radius: 999px; background: var(--cc-navy-100); color: var(--cc-navy-700); font-size: .8125rem; font-weight: 600; text-decoration: none; }
.chip:hover { background: var(--cc-red-100); color: var(--cc-red-700); }
.chip__x { font-size: 1.05rem; line-height: 1; }
.chip--clear { background: transparent; border: 1px solid var(--kds-border); color: var(--kds-fg-muted); }
.sort { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.sort .input { width: auto; min-width: 150px; }
.results__list { display: grid; gap: 12px; }
.results__empty h3 { margin-bottom: 6px; }
.results__empty-actions { justify-content: center; margin-top: 14px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.pager__pages { display: flex; gap: 4px; }
.pager__num { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.pager__num.is-current { background: var(--cc-navy); color: #fff; }
.pager [aria-disabled="true"] { opacity: .45; pointer-events: none; }
@media (min-width: 640px) { .results__list { grid-template-columns: 1fr; } }
@media (min-width: 1024px) {
  .jobs-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 32px; padding-top: 24px; }
  .filters__toggle { display: none; }
  .js .filters__body, .filters__body { display: grid; margin-top: 0; }
}
/* Pin the filter panel only when the whole panel (~1050px) fits the viewport; on shorter screens a sticky, internally
   scrolling panel hid the "Show results" button below the fold with no visible scrollbar. */
@media (min-width: 1024px) and (min-height: 1150px) {
  .filters__body { position: sticky; top: calc(var(--cc-header-h) + 16px); }
}
@media (min-width: 1280px) { .results__list { grid-template-columns: 1fr 1fr; } }

/* ---------- job detail ---------- */
.job-head__title { margin-bottom: 8px; }
.job-head__company { font-size: 1.0625rem; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.job-head__company a { font-weight: 600; }
.job-head__dot { color: var(--kds-fg-faint); }
.job-head__meta { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.job-head__meta li { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--kds-border); font-size: .875rem; font-weight: 500; }
.job-head__salary { background: var(--cc-green-100) !important; border-color: transparent !important; color: #2f5d11; font-weight: 700 !important; }
.job-head__aud a { text-decoration: none; }
.job-layout { display: grid; gap: 20px; grid-template-columns: 1fr; padding-top: 20px; padding-bottom: 20px; align-items: start; }
.job-main { min-width: 0; display: grid; gap: 28px; }
.job-section h2 { font-size: 1.25rem; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--cc-navy-100); }
.job-about-co { padding: 18px; border-radius: 14px; background: var(--cc-surface); }
.job-about-co h2 { border: 0; padding: 0; margin-bottom: 8px; }
.job-side { min-width: 0; }
.apply-card { display: grid; gap: 10px; }
.apply-card__primary { font-size: 1.05rem; }
.apply-card__save { margin: 0; }
.apply-card__save button, .applybar__save { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.apply-card__note { margin: 4px 0 0; }
.share { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--kds-border); }
.share__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--kds-border); background: #fff; color: var(--cc-navy); cursor: pointer; text-decoration: none; }
.share__btn:hover { border-color: var(--cc-navy); color: var(--cc-navy); }
.share__status { color: var(--kds-positive); font-weight: 600; }
.related { display: grid; gap: 32px; padding-bottom: 24px; }
.related__block h2 { font-size: 1.3rem; }
/* sticky mobile apply bar */
.applybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 450; background: #fff; border-top: 1px solid var(--kds-border); box-shadow: 0 -6px 24px rgba(22, 28, 38, .08); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.applybar__inner { display: flex; align-items: center; gap: 10px; max-width: var(--cc-container); margin: 0 auto; }
.applybar__text { display: grid; min-width: 0; flex: 1 1 auto; line-height: 1.25; }
.applybar__text strong { font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.applybar__save { width: 44px; padding: 0; flex: none; }
.applybar__apply { flex: none; padding-left: 20px; padding-right: 20px; }
body.has-applybar { padding-bottom: 84px; }
@media (min-width: 1024px) {
  .job-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-top: 32px; padding-bottom: 32px; }
  .job-side { position: sticky; top: calc(var(--cc-header-h) + 16px); }
  .applybar { display: none; }
  body.has-applybar { padding-bottom: 0; }
}

/* ---------- company ---------- */
.co-head__row { display: flex; gap: 16px; align-items: flex-start; }
.co-head__row h1 { margin-bottom: 6px; }
.co-head__meta { margin: 0; gap: 6px 14px; }
.co-logo { flex: none; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--cc-navy); color: #fff; font: 800 1.75rem/1 var(--cc-font-display); }
.co-logo--img { object-fit: contain; background: #fff; border: 1px solid var(--kds-border); padding: 4px; }
.co-layout { display: grid; gap: 24px; grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 24px; align-items: start; }
.co-jobs { min-width: 0; }
.co-jobs h2 { font-size: 1.3rem; }
.co-about .card { display: grid; gap: 12px; }
.co-about .card h2 { margin: 0; }
.co-about .facts > div { grid-template-columns: 1fr; gap: 0; }
@media (min-width: 1024px) {
  .co-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
  .co-about { position: sticky; top: calc(var(--cc-header-h) + 16px); }
}

/* ---------- legal ---------- */
.legal { display: grid; gap: 24px; grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 24px; align-items: start; }
.legal__toc { font-size: .9rem; }
.legal__toc ol { margin: 8px 0 0; padding-left: 1.25em; display: grid; gap: 6px; }
.legal__toc a { text-decoration: none; }
.legal__body { max-width: 760px; }
.legal__body h2 { font-size: 1.2rem; margin-top: 1.5em; }
@media (min-width: 1024px) {
  .legal { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
  .legal__toc { position: sticky; top: calc(var(--cc-header-h) + 16px); }
}

/* ---------- print ---------- */
@media print { .applybar, .share, .apply-card__save, .related, .filters { display: none !important; } body.has-applybar { padding-bottom: 0; } }
