/* Canada Careers — job seeker area (dashboard, profile, apply, applications, saved, alerts, notifications).
   Mobile first; every primitive (.dash, .dash__side, .app-head, .card, .card__head, .stats, .table--stack, .form, .checks,
   .sticky-bar, .empty, .badge, .kds-btn) comes from theme.css — this file only adds seeker-specific pieces.
   ONE definition per selector; media queries sit next to their base rule. The .app-head grid rules mirror portal.css so the
   seeker shell is identical to the employer/consultant one (candidate for theme.css). Landing-only rules (.js-*) sit at the
   bottom until the orchestrator moves them to landing.css. */

/* ---------- app shell: page header inside .dash__main (same rules as portal.css) ---------- */
.app-head { display: grid; gap: 12px; align-items: end; padding: 0 0 16px; border-bottom: 1px solid var(--kds-border); }
.app-head > div:first-child { min-width: 0; }
.app-head h1 { margin-bottom: 4px; overflow-wrap: anywhere; }
.app-head .eyebrow { margin-bottom: 8px; }
.app-head .breadcrumb { margin-bottom: 8px; }
.app-head__context { margin: 0; color: var(--kds-fg-muted); max-width: 68ch; }
.app-head__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.app-head__actions .kds-btn { flex: 1 1 auto; }
@media (min-width: 640px) { .app-head__actions .kds-btn { flex: 0 0 auto; } }
@media (min-width: 768px) { .app-head { grid-template-columns: minmax(0, 1fr) auto; } .app-head__actions { justify-content: flex-end; } }

/* ---------- side nav: theme.css makes .dash__side a horizontal pill strip below 1024px; add edge fades + unread badge ---------- */
.seeker-side-wrap { position: relative; min-width: 0; }
.seeker-side-wrap::before, .seeker-side-wrap::after { content: ""; position: absolute; top: 0; bottom: 4px; width: 40px; pointer-events: none; transition: opacity .2s; }
.seeker-side-wrap::after { right: 0; background: linear-gradient(90deg, rgba(255,255,255,0), #fff 80%); }
.seeker-side-wrap::before { left: 0; background: linear-gradient(270deg, rgba(255,255,255,0), #fff 80%); opacity: 0; }
.seeker-side-wrap.is-scrolled-end::after { opacity: 0; }
.seeker-side-wrap.is-scrolled-start::before { opacity: 1; }
.dash__side a { min-height: 44px; display: inline-flex; align-items: center; }
.side-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--cc-red-700); color: #fff; font-size: .75rem; font-weight: 700; margin-left: 6px; }
.dash__side a.is-active .side-badge { background: #fff; color: var(--cc-orange-700); }
@media (min-width: 1024px) {
  .seeker-side-wrap::before, .seeker-side-wrap::after { display: none; }
  .seeker-side-wrap { position: sticky; top: calc(var(--cc-header-h) + 20px); align-self: start; }
  .seeker-side-wrap .dash__side { position: static; }
  .dash__side a { display: flex; }
}

/* ---------- shared bits ---------- */
.h3 { font-size: 1.15rem; font-weight: 700; margin: 0; }          /* an h2 that sits inside a card reads at h3 size */
.req { color: var(--cc-red-700); }
.nowrap { white-space: nowrap; }
.list-plain { list-style: none; margin: 0; padding: 0; display: grid; }
.list-plain__item { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 12px; padding: 12px 0; border-top: 1px solid var(--kds-border); flex-wrap: wrap; }
.list-plain__item:first-child { border-top: 0; padding-top: 0; }
.list-plain__item:last-child { padding-bottom: 0; }
.list-plain__item > div:first-child { min-width: 0; flex: 1 1 200px; }
.list-plain__item a { font-weight: 600; text-decoration: none; }
.list-plain__item .badge { flex: none; }
.row-stack { display: grid; gap: 2px; }
.empty { display: grid; gap: 4px; justify-items: center; }
.empty p { margin: 0; }
.empty .kds-btn { margin-top: 8px; }
/* form pieces shared by profile + apply */
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend { font-weight: 600; font-size: .9rem; color: var(--cc-ink); padding: 0; margin-bottom: 6px; }
.field legend .hint { font-weight: 400; }
.check { min-height: 44px; }
.check > span { min-width: 0; }
.check--multi { align-items: flex-start; }
.check--multi input { margin-top: 3px; }
.input--file { padding: 9px 12px; cursor: pointer; font-size: .9rem; }
.input--file::file-selector-button { font: inherit; font-weight: 600; min-height: 32px; margin-right: 12px; padding: 6px 12px; border: 1px solid var(--kds-border-strong); border-radius: 8px; background: var(--cc-navy-50); color: var(--cc-navy); cursor: pointer; }
.upload-box { padding: 12px; border: 1px dashed var(--kds-border-strong); border-radius: 10px; background: var(--cc-surface); min-width: 0; }
.upload-box--error { border-color: var(--kds-danger); border-style: solid; }
.error[role="alert"] { margin: 0; color: var(--kds-danger); font-weight: 600; }
.apply-note { margin: 0; }
/* fieldsets styled exactly like .card: same border/radius/padding, legend rendered as the card head */
fieldset.card { margin: 0; min-width: 0; }
fieldset.card > legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; }
fieldset.card > legend + * { clear: both; }
/* sticky action bar (theme .sticky-bar): full-bleed inside the gutters on phones/tablets; the ONE accent button first.
   The form gets bottom padding so the bar never sits on the last field, and anchored/focused fields scroll clear of it. */
.sticky-bar { margin: 0 -16px; flex-wrap: wrap; }
.sticky-bar .kds-btn--accent { flex: 1 1 auto; }
.sticky-bar .small { flex: 1 1 100%; }
.form:has(> .sticky-bar) { padding-bottom: 8px; }
html:has(.sticky-bar) { scroll-padding-bottom: 88px; }
@media (min-width: 768px) { .sticky-bar { margin: 0 -24px; } }
@media (min-width: 1024px) { .sticky-bar { margin: 0; } .sticky-bar .kds-btn--accent { flex: 0 0 auto; } .sticky-bar .small { flex: 0 1 auto; } .form:has(> .sticky-bar) { padding-bottom: 0; } html:has(.sticky-bar) { scroll-padding-bottom: 0; } }
/* A card whose body is a table: rows run edge to edge; on phones the stacked rows ARE the cards (mirrors portal.css) */
.card--table { padding: 0; overflow: hidden; }
.card--table > .card__head { padding: 16px 20px 0; }
.card--table .table th:first-child, .card--table .table td:first-child { padding-left: 20px; }
.card--table .table th:last-child, .card--table .table td:last-child { padding-right: 20px; }
.card--table .table tr:last-child td { border-bottom: 0; }
/* seeker tables: title cell is the row heading, action cell wraps under the row on phones */
.seeker-table .row-title a { font-weight: 700; text-decoration: none; }
.seeker-table .row-title__text { font-weight: 700; }
.seeker-table .row-title__sub { display: block; }
.seeker-table .row-title__sub:empty { display: none; }
.seeker-table .row-actions .kds-btn { white-space: nowrap; }
@media (max-width: 767px) {
  .card--table .table--stack tbody { display: grid; gap: 10px; padding: 12px 16px 16px; }
  .card--table .table--stack tr { margin: 0; }
  .card--table .table th:first-child, .card--table .table td:first-child, .card--table .table th:last-child, .card--table .table td:last-child { padding-left: 0; padding-right: 0; }
  .seeker-table td { align-items: flex-start; justify-content: flex-start; }   /* labels left, values left — not pushed to the far edge */
  .seeker-table td::before { min-width: 84px; }
  .seeker-table td > .badge { margin-left: 0; }
  .card--table > .card__head { flex-wrap: wrap; align-items: center; padding: 16px 16px 0; }
  .seeker-table .row-title { display: grid; gap: 2px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--kds-border); }
  .seeker-table .row-title::before { display: none; }
  .seeker-table .row-actions { display: block; padding-top: 10px; }
  .seeker-table .row-actions::before { display: none; }
  .seeker-table .row-actions .inline-form, .seeker-table .row-actions .kds-btn { display: block; width: 100%; }
  .seeker-table .row-actions .small { display: block; text-align: left; }
  .seeker-table td > .sent-list, .seeker-table td > .row-stack { text-align: left; }
}
.sent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: .875rem; }
.sent-list > div { display: flex; flex-wrap: wrap; gap: 0 6px; }
.sent-list dt, .sent-list dd { margin: 0; display: inline; }
.sent-list__k { color: var(--kds-fg-muted); }
.sent-list__k::after { content: ":"; }
.sent-list__v { overflow-wrap: anywhere; }
.sent-list a { font-weight: 600; }

/* ---------- dashboard ---------- */
.dash-cols { align-items: start; }
.meter-card__pct { font: 800 1.5rem/1 var(--cc-font-display); color: var(--cc-navy); }
.meter { height: 10px; border-radius: 999px; background: var(--cc-navy-100); overflow: hidden; margin: 0 0 12px; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cc-teal), var(--cc-green)); transition: width .4s ease; }
.meter-card__done { margin: 0; }
.meter-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; grid-template-columns: 1fr; font-size: .9375rem; }
@media (min-width: 640px) { .meter-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .meter-list { grid-template-columns: 1fr 1fr 1fr; } }
.meter-list li { display: flex; align-items: center; gap: 8px; color: var(--kds-fg-muted); }
.meter-list li.is-done { color: var(--kds-fg); }
.meter-list__tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--kds-border-strong); font-size: .7rem; flex: none; }
.meter-list li.is-done .meter-list__tick { background: var(--cc-green); border-color: var(--cc-green); color: #fff; }
.meter-list a { font-weight: 600; }
/* job cards (theme .job-card) — seeker additions */
.job-card__more-loc { white-space: nowrap; font-size: .8rem; font-weight: 600; color: var(--cc-teal); }
.job-card__hours { white-space: nowrap; }
.job-card__legal { margin-top: -4px; }
.job-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--kds-border); }
.match-score { margin-left: auto; font-size: .75rem; font-weight: 700; color: var(--cc-green); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- profile ---------- */
.profile-form .form-row > fieldset.field { align-self: start; }   /* two check-groups side by side: never stretch the shorter group */
.profile-form .checks { align-content: start; }
.resume-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--kds-border); border-radius: 12px; background: var(--cc-surface); }
.resume-box__icon { font-size: 1.6rem; line-height: 1; }
.resume-box__meta { display: grid; flex: 1 1 160px; min-width: 0; }
.resume-box__meta strong { overflow-wrap: anywhere; }
.resume-box__actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 100%; }
.resume-box__actions .kds-btn { flex: 1 1 auto; }
@media (min-width: 640px) { .resume-box__actions { flex: 0 0 auto; } .resume-box__actions .kds-btn { flex: 0 0 auto; } }

/* ---------- apply ---------- */
.apply-page { padding-top: 20px; padding-bottom: 32px; display: grid; gap: 20px; align-content: start; }
.apply-page .app-head { padding-bottom: 0; border-bottom: 0; }
.apply-page__grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.apply-main { min-width: 0; }
.apply-form { gap: 16px; }
.apply-who { margin: 0; display: grid; gap: 2px; }
.apply-who strong { color: var(--cc-navy); }
.resume-choice .check { align-items: flex-start; }
.auto-attach { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--cc-navy-50); border: 1px solid var(--kds-border); }
.auto-attach__icon { font-size: 1.25rem; line-height: 1.2; flex: none; }
.auto-attach > span { min-width: 0; overflow-wrap: anywhere; }
.apply-or { display: flex; align-items: center; gap: 12px; color: var(--kds-fg-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.apply-or::before, .apply-or::after { content: ""; flex: 1; height: 1px; background: var(--kds-border); }
/* job summary card: natural height, sticky beside the form at ≥1024 */
.apply-job { display: grid; gap: 10px; align-content: start; align-self: start; }
.apply-job .eyebrow { margin: 0; }
.apply-job__title { overflow-wrap: anywhere; }
.apply-job__company { display: grid; gap: 2px; }
.apply-job__company strong { color: var(--cc-navy); }
.apply-job__loc { display: grid; gap: 2px; overflow-wrap: anywhere; }
.apply-job__more { font-weight: 600; color: var(--cc-teal); }
.apply-job__facts { margin: 0; display: grid; gap: 6px; font-size: .9rem; }
.apply-job__facts > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; }
.apply-job__facts dt { color: var(--kds-fg-muted); font-weight: 500; }
.apply-job__facts dd { margin: 0; overflow-wrap: anywhere; }
.apply-job__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding-top: 10px; border-top: 1px solid var(--kds-border); font-size: .9rem; }
.apply-job__foot a { font-weight: 600; }
@media (min-width: 1024px) {
  .apply-page__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
  .apply-page__grid .apply-job { position: sticky; top: calc(var(--cc-header-h) + 20px); }
}
/* interstitials (guest, wrong role, applications closed) and the "already applied" state: one centred card + the summary below */
.apply-narrow { display: grid; gap: 20px; }
.apply-gate { display: grid; gap: 12px; border-top: 4px solid var(--cc-red); }
.apply-gate .eyebrow, .apply-gate p { margin: 0; }
.apply-gate .badge { justify-self: start; }
.apply-gate--closed { border-top-color: var(--cc-ink-faint); }
.apply-gate__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.apply-gate__actions .kds-btn, .apply-gate__actions .inline-form { flex: 1 1 200px; }
.apply-gate__actions .inline-form .kds-btn { width: 100%; }
.apply-gate__points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; color: var(--kds-fg-muted); font-size: .9rem; }
.apply-gate__points li { display: flex; align-items: center; gap: 8px; }
.apply-gate__points li::before { content: "✓"; color: var(--cc-green); font-weight: 800; }
.apply-gate__note { margin: 0; }
@media (min-width: 640px) { .apply-gate__actions .kds-btn, .apply-gate__actions .inline-form { flex: 0 0 auto; } .apply-gate__actions .inline-form .kds-btn { width: auto; } }
@media (max-width: 479px) {
  .apply-page { padding-top: 12px; }
  .apply-form fieldset.card, .apply-form .card, .apply-page .apply-gate, .apply-page .apply-job { padding: 16px; }
  .input--file::file-selector-button { margin-right: 8px; padding: 6px 10px; }
}

/* ---------- saved: "no longer available" list ---------- */
.gone-list__intro { margin: 0 0 8px; }
.gone-item__main { display: grid; gap: 2px; }
.gone-item__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-weight: 600; color: var(--kds-fg-muted); }
.gone-item__action { flex: 1 1 100%; }
.gone-item__action .kds-btn { width: 100%; }
@media (min-width: 640px) { .gone-item__action { flex: none; } .gone-item__action .kds-btn { width: auto; } }

/* ---------- alerts ---------- */
.switch-row { align-items: center; }
.switch-row input[type="checkbox"] { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--cc-line-strong); position: relative; margin: 0; cursor: pointer; transition: background .2s; flex: none; }
.switch-row input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch-row input[type="checkbox"]:checked { background: var(--cc-green); }
.switch-row input[type="checkbox"]:checked::after { transform: translateX(18px); }
.crit { display: grid; gap: 12px; margin: 0; }
.crit > div { display: grid; gap: 6px; }
.crit dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--kds-fg-muted); font-weight: 700; }
.crit dd { margin: 0; }
@media (min-width: 640px) { .crit > div { grid-template-columns: 120px 1fr; align-items: start; } .crit dt { padding-top: 4px; } }

/* ---------- notifications ---------- */
.notif-list { padding: 8px 20px; }
.notif { align-items: center; }
.notif.is-unread { background: var(--cc-navy-50); margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.notif.is-unread a { font-weight: 700; }
.notif-list .notif.is-unread:first-child { border-radius: 12px 12px 0 0; padding-top: 12px; }
.notif-list .notif:last-child { padding-bottom: 12px; }
.notif-list .notif.is-unread:last-child { border-radius: 0 0 12px 12px; }
.notif__main { display: flex; gap: 12px; min-width: 0; flex: 1 1 240px; }
.notif__body { min-width: 0; overflow-wrap: anywhere; }
.notif__type { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--cc-navy); }
.notif__type--new_job_match { background: var(--cc-teal); }
.notif__type--application_update { background: var(--cc-green); }
.notif__type--billing { background: var(--cc-orange); }
.notif__action { flex: none; }
@media (max-width: 639px) { .notif__action { flex: 1 1 100%; padding-left: 22px; } .notif__action .kds-btn { width: 100%; } }   /* phones: the action drops under the text, aligned with it */

