/* D-2842 (founder, 14 Nov 2026, uniform build, items 4 and 5: contrast, accessibility and motion, site-wide).
   One sheet, loaded once in each frame: layouts/master, marketing, journey and employer-shell.
   Look only: no words, no markup, no behaviour. Replaced lines stay here as comments (D-1940).
   Pinned by tests/Feature/A11yMotionStandardTest.php. Measured on staging: docs/board/2026-11-14-contrast-a11y-motion.md. */

/* ---- 0. Tokens: one focus ring, one easing, one feedback duration, two hover lifts ---- */
:root {
  --jz-focus: #2B1A34;            /* plum, the brand set (D-230) */
  --jz-focus-width: 2px;
  --jz-focus-offset: 2px;
  --jz-ease: cubic-bezier(.2,.7,.2,1);  /* the one easing: the shared jz-motion.css curve */
  --jz-fb: .18s;                   /* interface feedback: 140 to 220 ms */
  --jz-lift-card: 4px;             /* a card under the pointer */
  --jz-lift-btn: 2px;              /* a button under the pointer */
  --jz-muted: #55505D;             /* supporting body text: 7:1 on white and on the tint (was #686570, 5.7:1) */
}

/* ---- 1. Focus: a 2 px plum outline with a 2 px gap, on every control that takes the keyboard ---- */
html :is(a[href], button, input, select, textarea, summary, [tabindex], [role="button"], [contenteditable="true"]):focus-visible {
  outline: var(--jz-focus-width) solid var(--jz-focus) !important;
  outline-offset: var(--jz-focus-offset) !important;
}

/* ---- 2. Motion: interface feedback uses the one duration and easing; reveals keep jz-motion.css ---- */
html :is(a, button, input, select, textarea, label, summary, [role="button"]):not([data-reveal]):not(.jzm-reveal):not(.jzm-meter *) {
  transition-timing-function: var(--jz-ease) !important;
  transition-duration: var(--jz-fb) !important;
}

/* One card lift (4 px) and one button lift (2 px), on the same selectors the pages use today. */
html :is(.jzm-audience, .jza-pillar, .jzm-tool, .jzm-reassure li, .jzm-value-strip > div, .jza-principle, .jzm-canada-facts li, .jzm-audience-page--employer .jzm-value-strip > div, .jzm-feature-media):hover {
  transform: translateY(calc(var(--jz-lift-card) * -1)) !important;
}
html :is(.jzm-action, .jzm-start-options button, .jz-role, .jza-products li, .signup-panel .google-btn, .signup-panel .login-button, .jz-v2 .btn-primary, .jz-v2 .btn-plum, .jz-v2 .btn-quiet, .jzm-text-action):hover {
  transform: translateY(calc(var(--jz-lift-btn) * -1)) !important;
}
html :is(.jzm-action, .jzm-start-options button, .jz-role, .jza-products li, .signup-panel .google-btn, .signup-panel .login-button, .jz-v2 .btn-primary, .jz-v2 .btn-plum, .jz-v2 .btn-quiet):active {
  transform: translateY(var(--jz-lift-btn)) !important;
}

/* ---- 3. Reduced motion: every transition and animation ends at once; nothing loops ---- */
@media (prefers-reduced-motion: reduce) {
  html *, html *::before, html *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ---- 4. Contrast (measured on staging, D-2842): the light greys that fail 4.5:1 on white and on the tints ----
   #6B6B72 is 5.3:1 on white and above 4.5:1 on every tint measured. Matched by class, because the classes are the
   only handle a stylesheet has; the generic p, span and li failures are listed on the sheet for the page owners. */
html body :is(.hero-tile-lbl, .hero-trust-item, .hero-recent-role, .hero-dash-stat-lbl, .hero-dash-url, .hero-pipeline-label,
  .hero-recent-title, .hero-dash-sidebar-item, .hero-recent-score.score-low, .pp-mock-pipe-label, .pp-mock-stat-label,
  .pp-mock-title, .pp-mock-chart-title, .cs-direct-label, .rd-direct-label, .cas-portal-tl-lbl, .cas-portal-row-prog,
  .cas-portal-card-lbl, .cas-portal-url, .cas-portal-tl-title, .cas-portal-list-title, .ais-dash-stat-lbl, .ais-dash-url,
  .ais-flow-label, .ais-dash-log-title, .ais-comp-foot, .ais-dash-log-badge, .ais-flow-arrow, label.form-check-label) {
  color: #6B6B72 !important;
}
/* Light grey text on white at 7:1 (body target): the muted token, #55505D, is 7.8:1 on white and 7.2:1 on the tint. */
html body :is(.jz-lead, .jzm-body, .canada, .jz-cm-note, .st, .pr-proud, .center-text-or, small.a) {
  color: var(--jz-muted) !important;
}
/* The footer's separator bar: a decorative glyph on the dark navy band, lifted from 2.7:1 to 6:1. */
html body footer .footer-divider { color: #9A98A8 !important; }

/* ---- 4b. Contrast, generated from the 14 Nov 2026 staging measurement (D-2842): every grey text element that failed
   AA (4.5:1) on a light background is set to #6B6B72; every grey body text under 7:1 on a light background is set to the
   support token #55505D. Brand-coloured text, dark-background text and text on photos are not in this list. */
html body button#jzu-go,
html body div div.pp-mock-topbar span.pp-mock-title,
html body div.ais-comp-cols div.ais-comp-col div.ais-comp-foot.trad,
html body div.ais-dash div.ais-dash-chrome div.ais-dash-url,
html body div.ais-dash-body div.ais-dash-log div.ais-dash-log-title,
html body div.ais-dash-body div.ais-flow-canvas div.ais-flow-label,
html body div.ais-dash-log div.ais-dash-log-row div.ais-dash-log-badge.badge-queue,
html body div.ais-dash-stat div div.ais-dash-stat-lbl,
html body div.ais-flow-canvas div.ais-flow-nodes div.ais-flow-arrow,
html body div.cas-portal div.cas-portal-chrome div.cas-portal-url,
html body div.cas-portal-body div.cas-portal-list div.cas-portal-list-title,
html body div.cas-portal-body div.cas-portal-timeline div.cas-portal-tl-title,
html body div.cas-portal-cards div.cas-portal-card div.cas-portal-card-lbl,
html body div.cas-portal-list div.cas-portal-row div.cas-portal-row-prog,
html body div.cas-portal-timeline div.cas-portal-tl-labels div.cas-portal-tl-lbl,
html body div.cl-how-steps div.cl-how-step div.cl-how-step-num,
html body div.cs-direct-grid div.cs-direct-item div.cs-direct-label,
html body div.hero-dash div.hero-dash-chrome div.hero-dash-url,
html body div.hero-dash-layout div.hero-dash-sidebar div.hero-dash-sidebar-item,
html body div.hero-dash-layout div.hero-dash-sidebar div.hero-dash-sidebar-label,
html body div.hero-dash-main div.hero-pipeline div.hero-pipeline-label,
html body div.hero-dash-main div.hero-recent div.hero-recent-title,
html body div.hero-dash-stats div.hero-dash-stat div.hero-dash-stat-lbl,
html body div.hero-inner div.hero-trust div.hero-trust-item,
html body div.hero-recent div.hero-recent-row div.hero-recent-score.score-low,
html body div.hero-recent-row div.hero-recent-info div.hero-recent-role,
html body div.hero-tile div div.hero-tile-lbl,
html body div.pp-hero-visual div.pp-mock-chart div.pp-mock-chart-title,
html body div.pp-hero-visual div.pp-mock-topbar span.pp-mock-title,
html body div.pp-mock-pipeline div.pp-mock-pipe-stage div.pp-mock-pipe-label,
html body div.pp-mock-stats div.pp-mock-stat div.pp-mock-stat-label,
html body div.rd-direct-grid div.rd-direct-item div.rd-direct-label,
html body form#contact-sales-form div.form-check label.form-check-label,
html body form#request-demo-form div.form-check label.form-check-label,
html body li.op-step.jzm-reveal div p.op-step-p,
html body li.op-step.jzm-reveal div p.op-step-t,
html body span#jz-hd {
  color: #6B6B72 !important;
}
html body div.col-right div.signup-panel div.center-text-or,
html body div.eit-inner div.eit-hero-content p.eit-hero-desc,
html body div.full.two div.jz-card.k1 small.a,
html body div.jz-contact-metrics div.jz-contact-metric p.jz-cm-note,
html body div.jz-search-container div.jz-search-meta p.jz-search-count,
html body div.jz-search-list div.js5-card div.js5-logo.p1,
html body div.jz-search-list div.js5-card div.js5-logo.p2,
html body div.jz-search-list div.js5-card div.js5-logo.p3,
html body div.jz-search-list div.js5-card div.js5-logo.p4,
html body div.jz-search-list div.js5-card div.js5-logo.p5,
html body div.jz-search-list div.js5-card div.js5-logo.p6,
html body div.jz-search-list div.js5-card div.js5-logo.p7,
html body div.jz-search-list div.js5-card div.js5-logo.p8,
html body div.jz-search-meta p.jz-search-count span.jz-count-num,
html body div.wrap div.sec-head p.jz-lead.rv,
html body div.wrap.hgrid div p.canada,
html body div.wrap.hgrid div p.jz-lead,
html body h1#mvl span.hlb.hlb1 span.st,
html body h1#mvl span.hlb.hlb2 span.st,
html body main#jze-main section.jze-card p.jze-help,
html body section.canadaband div.wrap p.canada,
html body section.jzm-section div.jza-head.jzm-reveal p.jzm-body,
html body section.pr-hero.jzm-reveal div p.pr-proud {
  color: var(--jz-muted) !important;
}

/* ---- 5. Tap targets on a phone (below 768 px): 40 by 40 for the controls that can take it ----
   Pills stay 36 px: D-2261 section 6 says 36 px and the founder decides the change (see the sheet of open items). */
@media (max-width: 767px) {
  /* Was (kept per D-1940): html body :is(a.tlink, summary, button.pp, button:not(.ch):not(.fa):not(.fa-fw)) { min-height: 40px; }
     The sign-up role cards (button.jz-role, about 90 px tall) are flex items with flex-basis 0 in a column on a phone: a
     40 px min-height replaced their automatic content minimum and squeezed each card to 40 px, so its line ran over the
     next card and the heading (found on the combined proof, 14 Nov 2026). They are left out; they are well over 40 px. */
  html body :is(a.tlink, summary, button.pp, button:not(.ch):not(.fa):not(.fa-fw):not(.jz-role)) { min-height: 40px; }
  html body .jzm-nav-actions nav.jzm-lang a { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
}

/* ---- 5b. Phone tap targets, second pass (D-2842): every target 40 by 40 except the pills, which stay 36 px (D-2261 section 6).
   Targets that are small only because their text is small get a 40 px hit area through ::after, so the layout does not move. */
@media (max-width: 767px) {
  /* Was (kept per D-1940; S5000):
  html body :is(a.tlink, summary, button.pp, a.site-text-primary, a.pager-number, .jz-pw-eye, a.js5-act, a.js5-match-locked,
    a.jzm-brand, .m-top a.logo, .jz-prod-card > a, span.js5-title > a, .text-links > a) {
     The fold-out headings (summary) are left out: inline-flex shrank the footer's full-width rows to their word and, with the
     5e hit area, moved their arrows to the top left (staging, 15 Nov 2026). The first pass (section 5) keeps them 40 px tall. */
  html body :is(a.tlink, button.pp, a.site-text-primary, a.pager-number, .jz-pw-eye, a.js5-act, a.js5-match-locked,
    a.jzm-brand, .m-top a.logo, .jz-prod-card > a, span.js5-title > a, .text-links > a) {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  html body footer :is(.footer-bottom-social > a, nav.jze-ftr-nav > a, b > a) {
    position: relative;
  }
  html body footer :is(.footer-bottom-social > a, nav.jze-ftr-nav > a, b > a)::after {
    content: "";
    position: absolute;
    inset: -12px -10px;
  }
}

/* ---- 4c. Contrast, third pass (D-2842, 14 Nov 2026): the text that still failed 4.5:1 after the second pass, each matched
   by its page wrapper or by its inline colour (the mock screens set their colours inline). Look only: colour, not size.
   Not listed: the resume button on /get-started/upload (#jzu-go, `disabled` in journey/upload.blade.php); WCAG exempts an
   inactive control from the contrast rule, and it turns on only when a file is chosen. */
html body div.col-lg-12 > div > p { color: #6B6B72 !important; }
html body div.rd-right div.rd-form-container > p,
html body div.cs-right div.cs-form-container > p { color: #6B6B72 !important; }
html body div.col-right > div.signup-panel > div { color: #6B6B72 !important; }
html body div.signup-panel div.jz-or > span { color: #6B6B72 !important; }
html body .form-group > label > span { color: #6B6B72 !important; }
html body div.rd-expect-content > p { color: var(--jz-muted) !important; }
html body div.score-report > div.score-report-chrome > span,
html body div.score-report-top div.score-candidate-info > p { color: #6B6B72 !important; }
html body section.cl-resume-banner div.cl-section-label { color: #A6A6AE !important; }
html body div.cl-zg-badge.green { color: #065F46 !important; }
html body div.hero-pipeline-bar > div.hero-pipeline-seg:last-child,
html body div.hero-recent-avatar[style*="86868b" i] { background-color: #6B6B72 !important; }
html body [style*="color: #86868B" i],
html body [style*="color: #D1D1D6" i] { color: #6B6B72 !important; }

/* ---- 5c. Phone tap targets, third pass (D-2842): a transparent ::after hit area brings a small link or button to 40 px
   without moving anything (the element and the layout keep their size). Pills stay 36 px (D-2261 section 6). Checkboxes,
   the hidden file inputs and the inline links inside sentences are listed, not changed (see the open-items sheet). */
@media (max-width: 767px) {
  html body :is(a.jzm-text-action, a.js5-act, a.link, a.pager-number, ul.breadcrumbs > li > a, button.fa.fa-fw,
    .capbar > button.pp, .cp-pick-logo, footer .footer-bottom-social > a, footer nav.jze-ftr-nav > a) { position: relative; }
  html body a.jzm-text-action::after { content: ""; position: absolute; inset: -3px 0; }
  html body a.js5-act::after { content: ""; position: absolute; inset: -6px -4px; }
  html body a.link::after { content: ""; position: absolute; inset: -10px -4px; }
  html body ul.breadcrumbs > li > a::after { content: ""; position: absolute; inset: -11px -2px; }
  html body button.fa.fa-fw::after { content: ""; position: absolute; inset: -13px -11px; }
  html body .capbar > button.pp::after { content: ""; position: absolute; inset: 0 -3px; }
  html body .cp-pick-logo::after { content: ""; position: absolute; inset: 0 -5px; }
  html body footer .footer-bottom-social > a::after,
  html body footer nav.jze-ftr-nav > a::after { content: ""; position: absolute; inset: -12px -13px; }
}

/* ---- 5d. Phone tap targets, fourth pass (D-2842): a checkbox or radio is drawn at 24 px (the WCAG 2.5.8 minimum) and the
   label row around it gets 8 px of padding above and below, so the whole row is a 40 px target. Layout change: the row grows
   by 16 px; the open-items sheet asks the founder to accept it or not. */
@media (max-width: 767px) {
  html body :is(input[type=checkbox], input[type=radio]) { width: 24px; height: 24px; }
  html body label:has(> input[type=checkbox], > input[type=radio]) { padding-block: 8px; }
}

/* ---- 5e. Phone tap targets, fifth pass (D-2842): the remaining small controls get a transparent ::after hit area, and the
   footer social icons get a 40 by 40 hit area (the earlier footer inset in 5c did not reach 40 px wide). Nothing moves. */
@media (max-width: 767px) {
  html body footer .footer-bottom-social > a::after { inset: -12px -13px !important; }
  /* Was (kept per D-1940; S5000):
  html body :is(button.link, a.edit, nav.copick > a.add, button.jz-pw-eye, ul.pager > li > a, a.pager-next,
    summary, .jza-dots > button, .ck > b > a, .cp-pick-logo, div.line > button.link) { position: relative; }
     A fold-out heading draws its own arrow or plus sign with ::after (the site footer, the marketing footer, the FAQs),
     so it takes no ::after hit area here. */
  html body :is(button.link, a.edit, nav.copick > a.add, button.jz-pw-eye, ul.pager > li > a, a.pager-next,
    .jza-dots > button, .ck > b > a, .cp-pick-logo, div.line > button.link) { position: relative; }
  html body button.link::after, html body div.line > button.link::after { content: ""; position: absolute; inset: -10px -6px; }
  html body a.edit::after { content: ""; position: absolute; inset: -10px -6px; }
  html body nav.copick > a.add::after { content: ""; position: absolute; inset: -1px -1px; }
  html body ul.pager > li > a::after { content: ""; position: absolute; inset: 0 -1px; }
  html body a.pager-next::after { content: ""; position: absolute; inset: -1px; }
  /* Was (kept per D-1940; S5000): html body summary::after { content: ""; position: absolute; inset: 0 -4px; }
     It took the footer's arrow (the same ::after) out of the row and pinned it to the top left. */
  html body button.jz-pw-eye::after { content: ""; position: absolute; inset: 0 -3px; }
  html body .jza-dots > button::after { content: ""; position: absolute; inset: 0 -6px; }
  html body .ck > b > a::after { content: ""; position: absolute; inset: -12px -8px; }
  html body .cp-pick-logo::after { content: ""; position: absolute; inset: -5px; }
}
/* D-3290 (founder's marks on the before/after page, 17 Nov 2026: the show-password eye sat under its box on a phone). The 5e rule
   above sets button.jz-pw-eye to position: relative for its hit area, which pulled the eye out of its box (the password-eye
   partial places it absolutely inside .jz-pw-wrap). Inside a password box the eye stays absolute; an absolute button still holds
   its own ::after hit area, so nothing is lost. */
@media (max-width: 767px) {
  /* the 5e :is() list counts as (0,2,4) (its heaviest member, div.line > button.link, plus html body); the class is doubled to win */
  html body .jz-pw-wrap > button.jz-pw-eye.jz-pw-eye { position: absolute; }
}

/* ---- 5f. Phone tap targets, sixth pass (D-2842): the last small controls after the fifth pass. Scoped by the inline colour
   or the id the page sets; hit areas only, nothing moves. */
@media (max-width: 767px) {
  html body a[style*="7B1246" i][style*="font-size: 14px"] { position: relative; }
  html body a[style*="7B1246" i][style*="font-size: 14px"]::after { content: ""; position: absolute; inset: -12px -4px; }
  html body section a.edit::after, html body div a.edit::after { content: ""; position: absolute; inset: -10px -8px; }
  html body ul.pager > li > a.pager-next::after { content: ""; position: absolute; inset: -2px -1px; }
  html body div.ck > b > a::after { content: ""; position: absolute; inset: -13px -8px; }
  html body form#employeeregister button.fa.fa-fw::after { content: ""; position: absolute; inset: -14px -11px; }
  html body input#accept_terms { width: 24px !important; height: 24px !important; }
  html body label[for="accept_terms"] { padding-block: 8px; }
}
