/* Careers: /careers (web/careers.html) and each role page (web/careers-growth-marketing-intern.html).
 * Loaded after whizply.css and home.css, and like them takes every colour from the theme tokens, so
 * light, dark, Violet and Warm all hold without a rule here. Text is --ink or the heading ink;
 * --sub is used only by the form's hints and placeholders (`*hint*`, tests/test_no_grey_text.py).
 * The form's fields, errors and status line are the contact form's (`.ct-field`, `.ct-err`,
 * `.ct-status`, `.ct-row`, `.ct-actions` in home.css); only the card and the file drop are new. */

/* ===== /careers ===== */
.cr-index { padding-top: 79px; }
.cr-index__head { margin-bottom: 64px; }
.cr-index__lead { margin: 18px 0 0; max-width: 62ch; font-size: var(--fs-lg); line-height: 1.6; font-weight: 500; color: var(--ink); text-wrap: pretty; }
.cr-index__lead + .cr-index__lead { margin-top: 10px; }
.cr-roles { max-width: 820px; }
.cr-roles__title { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 24px; }
/* One role per row: a list that reads top to bottom however many roles are open. */
.cr-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.cr-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.cr-card:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
@media (hover: hover) and (pointer: fine) {
  .cr-card:hover { transform: translateY(var(--lift, -2px)); box-shadow: var(--shadow); border-color: var(--accent-ring); }
  .cr-card:hover .cr-card__go svg { transform: translateX(3px); }
}
.cr-card__kicker { align-self: flex-start; margin: 0; padding: 4px 11px; border-radius: var(--pill); background: var(--accent-soft); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.cr-card__title { margin: 0; font-size: var(--fs-xl); line-height: 1.25; font-weight: 800; letter-spacing: -.01em; color: var(--ink-heading, var(--ink)); }
/* The title's link covers the whole card: one link per role, the card is its target. */
.cr-card__title a { color: inherit; }
.cr-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cr-card__title a:focus-visible { outline: none; }
.cr-card__sum { margin: 0; font-size: var(--fs-base); line-height: 1.6; font-weight: 500; color: var(--ink); }
.cr-card__facts { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cr-card__facts li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--pill); background: var(--band); font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.cr-card__ic { display: inline-grid; color: var(--accent-deep); }
.cr-card__facts svg { width: 16px; height: 16px; }
.cr-card__go { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-md); font-weight: 800; color: var(--accent-deep); }
.cr-card__go svg { transition: transform var(--dur-2) var(--ease-out); }
.cr-ask { margin: 28px 0 0; font-size: var(--fs-base); font-weight: 500; color: var(--ink); }
.cr-ask a, .cr-crumbs a, .cr-back { color: var(--accent-deep); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* ===== a role page ===== */
.cr-page { padding-top: 32px; padding-bottom: 40px; }
:where(.cr-page) > * { max-width: 860px; }
.cr-crumbs ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.cr-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--sub); }

.cr-hero { padding: 36px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.cr-hero .hm-eyebrow { margin-bottom: 16px; }
.cr-title { font-size: clamp(30px, 3.3vw, 44px); }
.cr-facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cr-fact { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); background: var(--band); }
.cr-fact__ic { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--surface); color: var(--accent-deep); }
.cr-fact dt { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.cr-fact dd { margin: 0; font-size: var(--fs-md); line-height: 1.35; font-weight: 700; color: var(--ink-heading, var(--ink)); }
.cr-hero__cta { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cr-hero__note { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }

.cr-body { margin-top: 12px; }
.cr-sec { padding: 34px 4px 0; }
.cr-sec h2 { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; font-weight: var(--fw-h1, 800); letter-spacing: var(--ls-display, -.02em); color: var(--ink-heading, var(--ink)); }
.cr-sec p { margin: 0 0 14px; font-size: var(--fs-lead); line-height: 1.7; font-weight: 500; color: var(--ink); max-width: 72ch; }
.cr-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 74ch; }
.cr-list li { position: relative; padding-left: 26px; font-size: var(--fs-lead); line-height: 1.6; font-weight: 500; color: var(--ink); }
.cr-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cr-list b { font-weight: 800; color: var(--ink-heading, var(--ink)); }
.cr-groups { display: grid; gap: 14px; counter-reset: cr-group; }
.cr-group { padding: 22px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); counter-increment: cr-group; }
.cr-group h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: var(--fs-lg); line-height: 1.35; font-weight: 800; color: var(--ink-heading, var(--ink)); }
.cr-group h3::before { content: counter(cr-group); flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--btn-accent); color: var(--btn-accent-ink); font-size: var(--fs-sm); font-weight: 800; }
.cr-sec .cr-callout { margin-top: 18px; padding: 16px 18px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.cr-close { margin-top: 30px; padding: 30px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.cr-close__fact b { font-weight: 800; color: var(--ink-heading, var(--ink)); }
.cr-sec .cr-close__cta { font-size: var(--fs-xl); font-weight: 800; color: var(--ink-heading, var(--ink)); }
.cr-close .xbtn { margin-top: 4px; }

/* ===== the Apply form ===== */
.cr-apply { padding: 56px 24px 104px; scroll-margin-top: 12px; outline: none; }
.cr-apply__in { max-width: 860px; margin: 0 auto; }
.cr-apply__head { margin-bottom: 26px; }
.cr-apply__head .hm-h2 { font-size: clamp(28px, 3vw, 38px); }
.cr-apply__lead { margin: 12px 0 0; font-size: var(--fs-lead); font-weight: 500; color: var(--ink); }
.cr-form { display: grid; gap: 18px; padding: 30px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.cr-form .ct-field input::placeholder, .cr-form .ct-field textarea::placeholder { color: var(--muted); }
.cr-opt-hint { font-weight: 600; color: var(--sub); }
.cr-hint { margin: 0; font-size: var(--fs-sm); font-weight: 500; color: var(--sub); }
.cr-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cr-label-row label { font-size: 14px; font-weight: 700; color: var(--ink); }
.cr-count-hint { font-size: var(--fs-xs); font-weight: 600; color: var(--sub); font-variant-numeric: tabular-nums; }

/* The file drop: the native input sits over the whole zone, transparent, so a click, a tap, the
   keyboard and a dropped file all reach it as they would the plain control. */
.cr-drop { position: relative; display: grid; gap: 6px; padding: 20px; border: 1.5px dashed var(--line-control); border-radius: var(--r-md); background: var(--band); transition: border-color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out); }
.cr-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.cr-drop:hover, .cr-drop.is-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); }
.cr-drop:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.cr-drop.is-invalid { border-color: var(--bad-ink); }
.cr-drop.has-file { border-style: solid; }
.cr-drop__body { display: flex; align-items: center; gap: 14px; pointer-events: none; }
.cr-drop__ic { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: var(--r-sm); background: var(--surface); color: var(--accent-deep); }
.cr-drop__txt { font-size: var(--fs-base); font-weight: 500; color: var(--ink); }
.cr-drop__btn { font-weight: 800; color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.cr-drop__name { margin: 0; pointer-events: none; font-size: var(--fs-md); font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.cr-drop__name:empty { display: none; }
.cr-drop__name strong { font-weight: 800; }

.cr-consent { margin: 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); font-size: var(--fs-md); line-height: 1.5; font-weight: 600; color: var(--ink); }

.cr-done { display: grid; justify-items: start; gap: 10px; padding: 34px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); outline: none; }
.cr-done__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ok); color: var(--ok-ink); }
.cr-done__ic svg { width: 26px; height: 26px; }
.cr-done__title { margin: 6px 0 0; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; font-weight: 800; color: var(--ink-heading, var(--ink)); }
.cr-done p { margin: 0; font-size: var(--fs-lead); font-weight: 500; color: var(--ink); }
.cr-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }

/* The phone's sticky Apply button: off by default, a bar at the bottom on a phone. `a.xbtn.cr-sticky`
   so it outranks home.css's `.xbtn:not(.xghost) { position: relative }`. */
a.xbtn.cr-sticky { display: none; }

@media (max-width: 760px) {
  .cr-facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cr-index { padding-top: 40px; }
  .cr-index__head { margin-bottom: 44px; }
  .cr-index__lead { font-size: var(--fs-lead); }
  .cr-card { padding: 20px; }
  .cr-page { padding-top: 20px; }
  .cr-hero { padding: 22px 18px; border-radius: var(--r-lg); }
  .cr-hero__cta .xbtn { width: 100%; }
  .cr-sec { padding-top: 28px; }
  .cr-sec p, .cr-list li { font-size: var(--fs-base); }
  .cr-group { padding: 18px 16px; }
  .cr-close { padding: 22px 18px; }
  .cr-close .xbtn { width: 100%; }
  .cr-apply { padding: 36px 18px 72px; }
  .cr-form { padding: 20px; border-radius: var(--r-lg); }
  .cr-form .ct-row { grid-template-columns: minmax(0, 1fr); }
  .cr-form .ct-actions .xbtn { width: 100%; }
  .cr-done { padding: 24px 20px; }
  body.cr-page--role { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  a.xbtn.cr-sticky {
    display: inline-flex; position: fixed; z-index: 30; left: 14px; right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--shadow-lg);
    transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out);
  }
  a.xbtn.cr-sticky.is-away { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-card, .cr-card__go svg, a.xbtn.cr-sticky { transition: none; }
  .cr-card:hover { transform: none; }
}
@media print {
  a.xbtn.cr-sticky, .cr-apply { display: none !important; }
}
