/* Mensen public site + candidate portal, after hugoinc.com: warm paper, navy ink instead of black, pastel blocks,
   big regular-weight headlines, ink pill buttons, hand-drawn underlines, expo-out motion. The staff admin keeps
   app.css + recruit.css only. Overrides the shared tokens on body, so app.css components pick them up. */

body.public, body.portal {
  --paper: #fffdf7;
  --paper-2: #f6f2e7;
  --ink: #232a3c;
  --ink-2: #4a5168;
  --ink-3: #6e7386;
  --purple: #6b6fa9;
  --purple-deep: #4f5390;
  --lav: #e3e4f6;
  --lav-2: #c9cbee;
  --butter: #ffefb0;
  --mint: #d6f0cb;
  --peach: #fddcd2;
  --sky: #d3edf3;
  --on-pastel: #232a3c;

  --bg: var(--paper); --side: var(--paper); --card: #fffefa; --card-2: var(--paper-2);
  --line: #ebe5d6; --line-2: #dad2bd; --text: var(--ink); --muted: var(--ink-2); --dim: var(--ink-3);
  --btn: var(--ink); --btn-ink: var(--paper); --btn-hover: var(--purple-deep); --accent: var(--purple); --field: #fffefa; --focus: var(--purple);
  --ok: #2c6e36; --warn: #845c00; --bad: #a8321e; --info: #2f5d8a;
  --ok-bg: var(--mint); --warn-bg: var(--butter); --bad-bg: var(--peach); --info-bg: var(--sky);
  --shadow: none;
  --float: 0 1px 2px rgba(35, 42, 60, .06), 0 14px 34px -14px rgba(35, 42, 60, .22);
  --radius: 24px;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --sans: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --hand: 'Caveat', 'Segoe Print', cursive;
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
}
/* The portal in the dark: deep navy paper, pastels turned down so they still read as colour. */
:root[data-theme="dark"] body.portal {
  --paper: #161a25; --paper-2: #1f2433; --ink: #f4f1e8; --ink-2: #b9bbc8; --ink-3: #8d91a3;
  --purple: #a9ace6; --purple-deep: #c4c6f0;
  --lav: #2a2d4c; --lav-2: #3a3e66; --butter: #3b3421; --mint: #203428; --peach: #3d2722; --sky: #1d3239; --on-pastel: #f4f1e8;
  --card: #1c2130; --line: #2a3043; --line-2: #3a4157; --field: #1a1f2c;
  --btn: #f4f1e8; --btn-ink: #161a25; --btn-hover: #c4c6f0;
  --ok: #8fd6a0; --warn: #f0c96a; --bad: #f4a08c; --info: #9cc6ee;
  --float: 0 14px 34px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

body.public h1, body.public h2, body.public h3, body.portal h1, body.portal h2, body.portal h3 { font-family: var(--sans); letter-spacing: -.015em; }
body.public a, body.portal a { text-underline-offset: 3px; }
body.public :focus-visible, body.portal :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 40; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
body.public .muted, body.portal .muted { color: var(--muted); }

/* ---------- underline sweep (Hugo's .uline) and the hand-drawn label underline ---------- */
.uline { position: relative; display: inline-flex; text-decoration: none; white-space: nowrap; }
.uline::before { content: ''; position: absolute; left: 0; right: 0; bottom: -.12em; height: max(1.5px, .08em); background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .75s var(--ease); }
.uline:hover::before, .uline:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.m-label { margin: 0 0 22px; font-size: 19px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.m-label > span { position: relative; display: inline-block; padding-bottom: 6px; }
.m-squiggle { position: absolute; left: -2%; bottom: -6px; width: 104%; height: 12px; overflow: visible; }
.m-squiggle path { fill: none; stroke: var(--purple); stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ---------- buttons ---------- */
body.public .btn, body.portal .btn { height: 48px; padding: 0 22px; gap: 10px; border-radius: 999px; border: 1.5px solid var(--btn); background: var(--btn); color: var(--btn-ink); font: 600 15px var(--sans); letter-spacing: 0; opacity: 1;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
body.public .btn:hover, body.portal .btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); opacity: 1; }
body.public .btn:active, body.portal .btn:active { background: var(--ink-2); border-color: var(--ink-2); }
body.public .btn .i:last-child:not(:first-child), body.portal .btn .i:last-child:not(:first-child) { transition: transform .45s var(--ease); }
body.public .btn:hover .i:last-child:not(:first-child), body.portal .btn:hover .i:last-child:not(:first-child) { transform: translateX(3px); }
body.public .btn.ghost, body.portal .btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
body.public .btn.ghost:hover, body.portal .btn.ghost:hover { background: var(--ink); color: var(--paper); }
body.public .btn.sm, body.portal .btn.sm { height: auto; min-height: 36px; padding: 6px 16px; font-size: 14px; }
body.public .btn.lg, body.portal .btn.lg { height: 54px; padding: 0 28px; font-size: 16px; }
body.public .btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
body.public .btn.light:hover { background: var(--lav-2); border-color: var(--lav-2); }
body.public .btn[disabled], body.portal .btn[disabled] { opacity: .55; cursor: progress; }
body.public .btn.ghost.danger, body.portal .btn.ghost.danger { color: var(--bad); border-color: currentColor; }
body.portal .btn.ghost.danger:hover { background: var(--bad); color: var(--paper); border-color: var(--bad); }
/* Busy: app.js disables a submit button once its form is sent; a small ring says it is working. */
.btn.is-busy::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: m-spin .7s linear infinite; }
@keyframes m-spin { to { transform: rotate(360deg); } }

/* ---------- fields ---------- */
body.public :is(input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=url], input[type=search], select, textarea),
body.portal :is(input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=url], input[type=search], select, textarea) {
  min-height: 48px; padding: 11px 16px; border: 1.5px solid var(--line-2); border-radius: 14px; background-color: var(--field); color: var(--text); font: 16px var(--sans);
  transition: border-color .2s ease, box-shadow .2s ease;
}
body.public textarea, body.portal textarea { line-height: 1.55; }
body.public select, body.portal select { padding-right: 42px; background-position: right 14px center; }
body.public :is(input, select, textarea):hover, body.portal :is(input, select, textarea):hover { border-color: var(--ink-3); }
body.public :is(input, select, textarea):focus, body.portal :is(input, select, textarea):focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px color-mix(in srgb, var(--purple) 22%, transparent); }
body.public .field > span, body.portal .field > span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
body.public .field small, body.portal .field small { color: var(--ink-3); font-size: 13px; }
body.public .check, body.portal .check { font-size: 15px; gap: 12px; }
body.public .check input, body.portal .check input { width: 18px; height: 18px; accent-color: var(--purple); margin-top: 3px; }
body.public .form, body.portal .form { gap: 18px; }
input[type=file] { font: 15px var(--sans); color: var(--ink-2); }
input[type=file]::file-selector-button { margin-right: 14px; height: 40px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 600 14px var(--sans); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
input[type=file]::file-selector-button:hover { background: var(--ink); color: var(--paper); }

/* ---------- badges, chips, flashes, notes ---------- */
body.public .badge, body.portal .badge { border: 0; padding: 4px 11px 4px 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--paper-2); }
body.public .badge.ok, body.portal .badge.ok { background: var(--ok-bg); color: var(--ok); }
body.public .badge.warn, body.portal .badge.warn { background: var(--warn-bg); color: var(--warn); }
body.public .badge.bad, body.portal .badge.bad { background: var(--bad-bg); color: var(--bad); }
body.public .badge.info, body.portal .badge.info { background: var(--info-bg); color: var(--info); }
body.public .chip, body.portal .chip { font-size: 13px; padding: 3px 11px; background: var(--lav); border: 0; color: var(--on-pastel); }
body.public .flash, body.portal .flash { border: 0; border-radius: 18px; padding: 14px 18px; font-size: 15px; background: var(--paper-2); color: var(--on-pastel); }
body.public .flash.ok, body.portal .flash.ok { background: var(--mint); }
body.public .flash.bad, body.portal .flash.bad { background: var(--peach); }
body.public .flash.warn, body.portal .flash.warn { background: var(--butter); }
body.public .flash .i, body.portal .flash .i { color: currentColor !important; }
body.public .note, body.portal .note { border: 0; border-radius: 16px; background: color-mix(in srgb, var(--paper) 55%, transparent); color: var(--ink-2); font-size: 15px; padding: 14px 16px; }
body.public .empty, body.portal .empty { padding: 48px 24px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); color: var(--ink-2); font-size: 15px; }

/* ---------- cards ---------- */
body.public .card, body.portal .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
body.public .card.pad, body.portal .card.pad { padding: 28px 30px; }
body.portal .card + .card { margin-top: 18px; }
.job-grid { gap: 18px; }
.job-grid > .card { margin-top: 0 !important; }
body.public .job-card, body.portal .job-card { padding: 24px 26px 26px; gap: 10px; transition: transform .5s var(--ease), background-color .25s ease, border-color .25s ease; }
body.public .job-card:hover, body.portal .job-card:hover { transform: translateY(-4px); background: var(--lav); border-color: var(--lav); }
body.public .job-card h3, body.portal .job-card h3 { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
body.public .job-card .chip, body.portal .job-card .chip { background: var(--paper-2); transition: background-color .25s ease; }
body.public .job-card:hover .chip, body.portal .job-card:hover .chip { background: var(--card); }
body.public .job-meta, body.portal .job-meta { color: var(--ink-2); font-size: 14px; gap: 6px 16px; }
body.portal .job-flags { right: 18px; bottom: 18px; }
body.portal .job-wrap .job-card { padding-bottom: 62px; }
body.portal .fit { font: 600 12.5px var(--sans); padding: 3px 10px; border: 0; }
body.portal .fit-hi { background: var(--mint); color: var(--ok); }
body.portal .fit-mid { background: var(--butter); color: var(--warn); }
body.portal .fit-lo { background: var(--paper-2); color: var(--ink-3); }

/* ---------- tables ---------- */
body.public .tbl-wrap, body.portal .tbl-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
body.portal .card .tbl-wrap { border: 0; }
body.public .tbl, body.portal .tbl { font-size: 15px; }
body.public .tbl th, body.portal .tbl th { font: 600 13px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-3); padding: 16px 20px 12px; }
body.public .tbl td, body.portal .tbl td { padding: 16px 20px; }
body.public .tbl tbody tr:hover td, body.portal .tbl tbody tr:hover td { background: var(--paper-2); }
body.portal .tbl a { text-decoration: none; }
body.portal .tbl a:hover b { text-decoration: underline; }
body.portal .tbl .sub, body.portal .matches .sub { font-size: 13.5px; color: var(--ink-2); }

/* ===================================================== public site ===================================================== */
body.public { --wrap: 1240px; }
.m-wrap, body.public .pub { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
body.public .pub.narrow { max-width: 860px; }
.m-announce { background: var(--ink); color: var(--paper); text-align: center; font-size: 14px; padding: 9px 16px; }
.m-announce a { color: var(--paper); font-weight: 600; margin-left: 4px; }

.m-head { position: sticky; top: 0; z-index: 20; view-transition-name: m-head; transition: transform .5s var(--ease), background-color .3s ease, box-shadow .3s ease; }
.m-head[data-scrolled] { background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.m-head[data-hidden] { transform: translateY(-100%); }
.m-head__in { max-width: var(--wrap); margin: 0 auto; padding: 16px 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.m-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); justify-self: start; }
.m-logo .logo { width: 34px; height: 34px; border-radius: 10px; }
.m-word { font-size: 27px; font-weight: 700; letter-spacing: -.045em; text-transform: lowercase; line-height: 1; }
.m-nav { display: flex; gap: 30px; font-size: 16px; font-weight: 500; }
.m-nav a { color: var(--ink); }
.m-head__cta { justify-self: end; display: flex; align-items: center; gap: 22px; }
.m-signin { color: var(--ink); font-weight: 600; }
.m-flash { padding-top: 18px; }

/* hero */
.m-hero { padding: 56px 0 88px; overflow: hidden; }
.m-hero__in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.m-display { font-size: clamp(46px, 6.6vw, 92px); line-height: .98; font-weight: 400; letter-spacing: -.035em; margin: 0 0 26px; text-wrap: balance; }
.m-display em, .m-h2 em { font-style: italic; color: var(--purple); }
.m-lead { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 34ch; margin: 0 0 32px; }
.m-search { display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 6px 6px 6px 20px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px; transition: box-shadow .25s ease; }
.m-search:focus-within { box-shadow: 0 0 0 5px color-mix(in srgb, var(--purple) 22%, transparent); }
.m-search > .i { color: var(--ink-2); }
body.public .m-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; padding: 0 4px; background: transparent; box-shadow: none; }
body.public .m-search input:focus { box-shadow: none; }
.m-hero__alt { margin: 18px 0 0 22px; color: var(--ink-2); font-size: 15px; }
.m-hero__alt a { color: var(--ink); font-weight: 600; }

/* the stage: the portal in miniature on a lavender panel, a few cards floating over its edges */
.m-stage { position: relative; isolation: isolate; min-height: 560px; border-radius: 40px; background: var(--lav); }
.m-stage::before, .m-stage::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; }
.m-stage::before { width: 46%; aspect-ratio: 1; right: -6%; bottom: -8%; background: var(--butter); }
.m-stage::after { width: 26%; aspect-ratio: 1; left: 12%; top: 34%; background: var(--mint); }
.m-float { position: absolute; display: grid; gap: 10px; padding: 18px 20px; background: var(--card); border-radius: 22px; box-shadow: var(--float); font-size: 14px; }
.m-float b { font-size: 15px; }
.m-float__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.m-float--status { top: 9%; left: -7%; width: 290px; }
.m-float--job { top: 23%; right: 6%; width: 300px; }
.m-float--track { bottom: 5%; left: 6%; width: 270px; }
.m-float__kicker { font-size: 13px; font-weight: 600; color: var(--purple); }
.m-float__title { font-size: 20px !important; line-height: 1.2; letter-spacing: -.01em; }
.m-float .btn.sm { justify-self: start; min-height: 32px; font-size: 13px; padding: 4px 14px; pointer-events: none; }
.m-mini-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: 12px; color: var(--ink-2); }
.m-mini-steps li { display: grid; gap: 6px; }
.m-mini-steps i { height: 6px; border-radius: 9px; background: var(--ok); transform-origin: left; }
.m-track { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.m-track li { display: flex; align-items: center; gap: 10px; color: var(--ink-3); }
.m-track i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.m-track li.done { color: var(--ink); }
.m-track li.done i { background: var(--ok); border-color: var(--ok); }
.m-track li.now { color: var(--ink); font-weight: 600; }
.m-track li.now i { border-color: var(--purple); box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 10px var(--purple); }
.m-note { position: absolute; top: 6%; right: 8%; margin: 0; font: 600 27px/1 var(--hand); color: var(--purple-deep); transform: rotate(-4deg); text-align: right; }
.m-note svg { display: block; width: 64px; height: 48px; margin: 4px 0 0 auto; transform: scaleX(-1); overflow: visible; }
.m-note path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* marquee of the categories and skills on open jobs (pauses on hover, still under reduced motion) */
.m-marquee { padding: 6px 0 34px; overflow: hidden; }
.m-marquee__label { text-align: center; color: var(--ink-2); font-size: 15px; margin: 0 0 18px; }
.m-marquee__track { display: flex; width: max-content; animation: m-marquee 60s linear infinite; }
.m-marquee:hover .m-marquee__track, .m-marquee:focus-within .m-marquee__track { animation-play-state: paused; }
.m-marquee__row { list-style: none; margin: 0; padding: 0 6px; display: flex; gap: 12px; }
.m-marquee__row a { display: block; padding: 12px 24px; border-radius: 999px; background: var(--paper-2); color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 500; white-space: nowrap; transition: background-color .2s ease; }
.m-marquee__row li:nth-child(4n+1) a { background: var(--lav); }
.m-marquee__row li:nth-child(4n+2) a { background: var(--butter); }
.m-marquee__row li:nth-child(4n+3) a { background: var(--mint); }
.m-marquee__row li:nth-child(4n+4) a { background: var(--peach); }
.m-marquee__row a:hover { background: var(--ink) !important; color: var(--paper); }
@keyframes m-marquee { to { transform: translateX(-50%); } }

/* sections and pastel blocks */
.m-sec { padding: 64px 0; }
.m-sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.m-h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; font-weight: 400; letter-spacing: -.03em; margin: 0; max-width: 18ch; text-wrap: balance; }
.m-h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; font-weight: 400; letter-spacing: -.025em; margin: 0 0 18px; text-wrap: balance; }
.m-block { position: relative; isolation: isolate; overflow: hidden; border-radius: 40px; padding: clamp(32px, 6vw, 80px); color: var(--on-pastel); }
.m-block--butter { background: var(--butter); }
.m-block--lav { background: var(--lav); }
.m-block--mint { background: var(--mint); }
.m-block--peach { background: var(--peach); }
.m-block p { max-width: 58ch; font-size: 18px; line-height: 1.6; }
.m-why { text-align: center; padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(48px, 8vw, 110px); }
.m-why .m-h2 { margin: 0 auto 28px; font-size: clamp(44px, 7vw, 96px); max-width: 12ch; }
.m-why p { margin: 0 auto 16px; font-size: 19px; }
.m-why .btn { margin-top: 18px; }
.m-why::before, .m-why::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; background: var(--paper); opacity: .55; }
.m-why::before { width: 220px; height: 220px; left: -70px; top: -70px; }
.m-why::after { width: 140px; height: 140px; right: 6%; bottom: -60px; }

/* how it works: sticky intro beside a numbered accordion */
.m-how { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.m-how__intro { position: sticky; top: 110px; }
.m-how__intro .m-h2 { margin-bottom: 18px; }
.m-how__intro p { font-size: 18px; margin-bottom: 28px; max-width: 34ch; }
.m-acc { border-top: 1.5px solid var(--ink); interpolate-size: allow-keywords; }
.m-acc:last-child { border-bottom: 1.5px solid var(--ink); }
.m-acc summary { display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; align-items: center; gap: 18px; padding: 26px 0; cursor: pointer; list-style: none; }
.m-acc summary::-webkit-details-marker { display: none; }
.m-acc__n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 600; background: var(--lav); color: var(--on-pastel); }
.m-acc:nth-child(2) .m-acc__n { background: var(--butter); }
.m-acc:nth-child(3) .m-acc__n { background: var(--mint); }
.m-acc:nth-child(4) .m-acc__n { background: var(--peach); }
.m-acc__h { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.02em; }
.m-acc__x { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: transform .5s var(--ease), background-color .2s ease, color .2s ease; }
.m-acc[open] .m-acc__x { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.m-acc summary:hover .m-acc__x { background: var(--ink); color: var(--paper); }
.m-acc::details-content { block-size: 0; overflow: hidden; transition: block-size .6s var(--ease), content-visibility .6s allow-discrete; }
.m-acc[open]::details-content { block-size: auto; }
.m-acc__body { padding: 0 58px 28px 74px; }
.m-acc__body p { margin: 0; font-size: 18px; color: var(--ink-2); max-width: 52ch; }

.m-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.m-duo .m-block { padding: clamp(32px, 4.5vw, 56px); display: flex; flex-direction: column; align-items: flex-start; }
.m-duo .btn { margin-top: auto; }
.m-duo p { margin: 0 0 28px; }
.m-ticks { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; font-size: 18px; }
.m-ticks li { display: flex; gap: 12px; align-items: flex-start; }
.m-ticks .i { margin-top: 5px; flex: none; }

/* inner public pages (jobs, a job, privacy, not found) */
body.public .band { border-top: 0; padding-top: 56px; padding-bottom: 72px; }
body.public .band.first { padding-top: 56px; }
body.public .page-title { font-size: clamp(40px, 5.6vw, 76px); line-height: 1; font-weight: 400; letter-spacing: -.035em; margin: 0 0 28px; text-wrap: balance; }
body.public .job-filter { gap: 12px; margin-bottom: 32px; padding: 10px; background: var(--paper-2); border-radius: 30px; }
body.public .job-filter input, body.public .job-filter select { border-color: transparent; border-radius: 999px; }
body.public .job-filter .btn { height: 48px; }
body.public .back { font-size: 15px; color: var(--ink-2); gap: 8px; }
body.public .back:hover { color: var(--ink); }
body.public .mini, body.portal .mini { font: 600 14px var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink-2); }
body.public .prose, body.portal .prose { font-size: 17px; line-height: 1.7; max-width: 68ch; }
body.public .narrow .actions { margin-top: 32px; gap: 12px; }
body.public .job-meta.lg { font-size: 16px; margin: 4px 0 20px; }

/* sign in / sign up: a lavender panel with Hugo circles beside the form */
body.public .auth-wrap { max-width: 1040px; margin: 40px auto 80px; border: 0; border-radius: 40px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
body.public .auth-wrap > .card { padding: 56px 56px 48px; border: 0; }
body.public .auth-wrap h1 { font-size: 40px; font-weight: 400; letter-spacing: -.03em; margin-bottom: 18px; }
body.public .auth-side { background: var(--lav); color: var(--on-pastel); padding: 44px; min-height: 560px; }
body.public .auth-side::before { width: 260px; height: 260px; left: auto; right: -70px; bottom: -60px; transform: none; border-radius: 50%; background: var(--butter); opacity: 1; }
body.public .auth-side::after { width: 120px; height: 120px; left: 38px; bottom: 120px; transform: none; border-radius: 50%; background: var(--mint); opacity: 1; }
body.public .auth-side__brand { color: var(--ink); font-size: 27px; font-weight: 700; letter-spacing: -.045em; text-transform: lowercase; }
body.public .auth-side h2 { font-size: 38px; font-weight: 400; letter-spacing: -.03em; line-height: 1.08; max-width: 13ch; }
body.public .auth-side li { color: var(--ink); font-size: 17px; }
body.public .auth-side li svg { color: var(--purple-deep); }

/* footer: navy, with a wordmark as wide as the page */
.m-foot { margin-top: 48px; background: #232a3c; color: rgba(255, 253, 247, .78); border-radius: 40px 40px 0 0; overflow: hidden; }
.m-foot__in { max-width: var(--wrap); margin: 0 auto; padding: 72px 32px 28px; }
.m-foot__cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.m-foot__pitch p { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.025em; color: #fffdf7; margin: 0 0 26px; max-width: 14ch; }
.m-foot h2 { font-size: 14px; font-weight: 600; color: #c9cbee; margin: 0 0 16px; letter-spacing: 0; }
.m-foot nav, .m-foot__cols > div:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.m-foot a { color: #fffdf7; font-size: 16px; }
.m-foot__word { font-size: clamp(96px, 23vw, 340px); font-weight: 700; letter-spacing: -.07em; line-height: .78; text-transform: lowercase; color: #6b6fa9; margin: 64px 0 26px -.04em; white-space: nowrap; user-select: none; }
.m-foot__legal { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255, 253, 247, .14); font-size: 14px; }
.m-foot__legal a { font-size: 14px; }

/* ===================================================== candidate portal ===================================================== */
body.portal .shell { grid-template-columns: 256px minmax(0, 1fr); }
body.portal .side { background: var(--paper); border-right: 0; padding: 10px 12px 12px; view-transition-name: m-side; }
body.portal .side .brand { padding: 14px 12px 18px; gap: 10px; }
body.portal .side .brand span { font-size: 25px; font-weight: 700; letter-spacing: -.045em; text-transform: lowercase; }
body.portal .side .brand small { font: 500 13px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-3); margin-top: 4px; }
body.portal .logo { width: 32px; height: 32px; border-radius: 10px; }
body.portal .nav { padding: 0; }
body.portal .nav .group { font: 600 13px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-3); padding: 20px 14px 8px; }
body.portal .nav a { gap: 12px; padding: 11px 14px; border-radius: 999px; font-size: 15.5px; font-weight: 500; color: var(--ink-2); transition: background-color .2s ease, color .2s ease; }
body.portal .nav a:hover { background: var(--paper-2); color: var(--ink); }
body.portal .nav a.on { background: var(--ink); color: var(--paper); box-shadow: none; view-transition-name: m-nav-on; }
body.portal .nav .count { background: var(--butter); color: var(--on-pastel); font: 600 12px var(--sans); padding: 1px 8px; }
body.portal .side .me { margin-top: 10px; border: 0; border-radius: 20px; background: var(--paper-2); padding: 12px 12px 12px 14px; }
body.portal .side .me b { font-size: 14.5px; }
body.portal .side .me span { font: 500 12.5px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
body.portal .avatar { width: 36px; height: 36px; font-size: 13px; background: var(--lav); color: var(--on-pastel); }
body.portal .iconbtn { width: 40px; height: 40px; border-radius: 50%; color: var(--ink-2); transition: background-color .2s ease, color .2s ease; }
body.portal .iconbtn:hover { background: var(--paper-2); color: var(--ink); border-color: transparent; }

body.portal .main { background: var(--paper); }
body.portal .top { height: 64px; border-bottom: 0; padding: 0 28px; background: color-mix(in srgb, var(--paper) 86%, transparent); view-transition-name: m-top; }
body.portal .top .crumbs { font-size: 15px; color: var(--ink-3); }
body.portal .content { max-width: 1120px; padding: 24px 40px 96px; }
body.portal .head { margin-bottom: 32px; gap: 18px; }
body.portal .head h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.02; font-weight: 400; letter-spacing: -.035em; }
body.portal .head p { font-size: 17px; color: var(--ink-2); margin-top: 12px; max-width: 60ch; }
body.portal .head h1 .m-hi { position: relative; display: inline-block; }
body.portal .head h1 .m-squiggle { bottom: -4px; height: 14px; }
body.portal .section-title { margin: 48px 0 18px; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
body.portal .section-title a { font-size: 15px; font-weight: 600; color: var(--ink); }
body.portal .back { font-size: 15px; color: var(--ink-2); margin-bottom: 18px; gap: 8px; }
body.portal .grid { gap: 18px; }
body.portal .split { gap: 18px; }
body.portal .split > div > .card + .card { margin-top: 18px; }
body.portal .card h2 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
body.portal .card h3 { font-size: 18px; font-weight: 600; }

/* profile status: a pastel card whose colour is the state */
body.portal .review-card { border: 0; background: var(--lav); color: var(--on-pastel); }
body.portal .review-card.review-pending { background: var(--butter); }
body.portal .review-card.review-approved { background: var(--mint); }
body.portal .review-card.review-needs_changes, body.portal .review-card.review-rejected { background: var(--peach); }
body.portal .review-card .badge { background: color-mix(in srgb, var(--paper) 70%, transparent); color: var(--on-pastel); }
body.portal .review-card p { font-size: 16px; }
body.portal .review-card .btn.ghost { border-color: var(--on-pastel); color: var(--on-pastel); }
body.portal .review-card .btn.ghost:hover { background: var(--on-pastel); color: var(--paper); }
body.portal .review-card .stepper { position: relative; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 14px 0 22px; }
body.portal .review-card .stepper li { position: relative; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; color: color-mix(in srgb, var(--on-pastel) 70%, transparent); }
body.portal .review-card .stepper li::before { content: ''; position: absolute; top: 13px; left: 28px; right: 0; height: 2px; background: color-mix(in srgb, var(--on-pastel) 18%, transparent); }
body.portal .review-card .stepper li:last-child::before { display: none; }
body.portal .review-card .stepper li.done::after { content: ''; position: absolute; top: 13px; left: 28px; right: 0; height: 2px; background: var(--on-pastel); transform-origin: left; transform: scaleX(var(--fill, 1)); }
body.portal .review-card .stepper li:last-child::after { display: none; }
body.portal .stepper .dot { position: relative; z-index: 1; width: 28px; height: 28px; border: 2px solid color-mix(in srgb, var(--on-pastel) 30%, transparent); background: color-mix(in srgb, var(--paper) 60%, transparent); }
body.portal .stepper li.done, body.portal .stepper li.now { color: var(--on-pastel); }
body.portal .stepper li.done .dot { background: var(--on-pastel); border-color: var(--on-pastel); }
body.portal .stepper li.done .dot::after { content: ''; width: 9px; height: 5px; border: solid var(--paper); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
body.portal .stepper li.now .dot { border-color: var(--on-pastel); background: var(--paper); box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 14px var(--purple); }

body.portal .stats.compact { border: 0; border-radius: 0; gap: 10px; margin-bottom: 8px; overflow: visible; }
body.portal .stats.compact .cell { border: 0 !important; border-radius: 18px; background: var(--paper-2); padding: 16px 16px 14px; transition: background-color .2s ease; }
body.portal .stats.compact a.cell:hover { background: var(--lav); }
body.portal .stats .label { font: 500 13.5px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
body.portal .stats.compact .num { font-size: 40px; font-weight: 400; letter-spacing: -.04em; margin: 8px 0 0; }
body.portal p > .i, body.portal td > .i { display: inline-block; vertical-align: -3px; margin-right: 4px; }

body.portal .list-row { padding: 18px 24px; gap: 14px; }
body.portal .list-row b a { text-decoration: none; font-size: 17px; }
body.portal .list-row b a:hover { text-decoration: underline; }
body.portal .legend summary { font-size: 16px; }
body.portal dl.kv dt { color: var(--ink-2); font-size: 15px; }
body.portal dl.kv dd { font-size: 15px; }
body.portal .dropzone { border: 2px dashed var(--line-2); background: var(--paper-2); transition: border-color .2s ease, background-color .2s ease; }
body.portal .dropzone:hover, body.portal .dropzone:focus-within { border-color: var(--purple); background: var(--lav); }
body.portal .why { font-size: 15px; color: var(--ink-2); gap: 6px; }
body.portal .verify-banner { background: var(--butter); align-items: center; }
body.portal .verify-code input { min-height: 40px; padding: 6px 10px; }

/* messages */
body.portal .chat { border-radius: var(--radius); }
body.portal .chat__log { padding: 24px; gap: 16px; scroll-behavior: smooth; }
body.portal .chat__bubble { padding: 12px 16px; border-radius: 22px 22px 22px 6px; background: var(--paper-2); border: 0; font-size: 15.5px; }
body.portal .chat__msg--me .chat__bubble { border-radius: 22px 22px 6px 22px; background: var(--ink); color: var(--paper); }
body.portal .chat__meta { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
body.portal .chat + .card { margin-top: 18px; }

/* ---------- page-to-page: the sidebar and header stay put, the active nav pill slides, the page fades through ---------- */
@view-transition { navigation: auto; }
::view-transition-group(m-nav-on) { animation-duration: .45s; animation-timing-function: var(--ease, cubic-bezier(.19, 1, .22, 1)); }
::view-transition-old(m-nav-on), ::view-transition-new(m-nav-on) { height: 100%; animation-duration: .2s; }
::view-transition-old(root) { animation: m-vt-out .16s ease-in both; }
::view-transition-new(root) { animation: m-vt-in .26s ease-out both; }
@keyframes m-vt-out { to { opacity: 0; } }
@keyframes m-vt-in { from { opacity: 0; } }

/* ---------- motion.js entrances: hidden only while JS runs, and never under reduced motion ---------- */
.js-motion:not(.reduce-motion) :is([data-reveal], [data-reveal-group] > *, [data-hero], .m-float, .m-note, body.portal .content > *):not(.is-in) { opacity: 0; }
.js-motion:not(.reduce-motion) [data-split]:not(.is-in) { visibility: hidden; }
.m-anim { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .m-marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .m-marquee__row[aria-hidden] { display: none; }
  .m-marquee__row { flex-wrap: wrap; justify-content: center; }
  .uline::before, .m-acc::details-content, .m-head { transition: none; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .m-hero__in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .m-stage { min-height: 500px; }
  .m-float--status { left: 4%; }
  .m-how { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .m-how__intro { position: static; }
  .m-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .m-wrap, body.public .pub, .m-head__in, .m-foot__in { padding-left: 16px; padding-right: 16px; }
  .m-head__in { grid-template-columns: auto 1fr; padding-top: 12px; padding-bottom: 12px; }
  .m-nav { display: none; }
  .m-signin { display: none; }
  .m-hero { padding: 28px 0 56px; }
  .m-lead { font-size: 18px; }
  .m-duo { grid-template-columns: minmax(0, 1fr); }
  .m-sec { padding: 44px 0; }
  .m-block, .m-stage { border-radius: 28px; }
  body.public .auth-wrap { margin: 16px; border-radius: 28px; }
  body.public .auth-side { min-height: 0; padding: 28px; }
  body.public .auth-side::before { width: 160px; height: 160px; }
  body.public .auth-side::after { display: none; }
  body.public .auth-side h2 { font-size: 28px; }
  body.public .auth-wrap > .card { padding: 32px 22px; }
  body.public .job-filter { border-radius: 24px; }

  body.portal .shell { grid-template-columns: minmax(0, 1fr); }
  body.portal .side { width: 280px; z-index: 30; border-radius: 0 28px 28px 0; transition: transform .45s var(--ease); }
  body.nav-open.portal .side { box-shadow: 0 0 0 100vmax rgba(22, 26, 37, .45); }
  body.portal .top { padding: 0 12px; }
  body.portal .content { padding: 12px 16px 72px; }
  body.portal .card.pad { padding: 22px 20px; }
  body.portal .list-row { padding: 16px 18px; }
}
@media (max-width: 560px) {
  .m-head__cta .btn { height: 42px; padding: 0 16px; font-size: 14px; }
  .m-head__cta .btn .i { display: none; }
  .m-word { font-size: 24px; }
  .m-search { flex-wrap: wrap; border-radius: 26px; padding: 8px 8px 8px 16px; }
  .m-search .btn { width: 100%; }
  .m-hero__alt { margin-left: 4px; }
  .m-stage { min-height: 440px; }
  .m-float--status { top: 5%; left: 4%; width: 250px; }
  .m-float--job { top: 33%; right: 4%; width: 240px; }
  .m-float--track { bottom: 4%; left: 4%; width: 240px; }
  .m-note { display: none; }
  .m-acc summary { grid-template-columns: 44px minmax(0, 1fr) 36px; gap: 12px; }
  .m-acc__n { width: 40px; height: 40px; font-size: 17px; }
  .m-acc__x { width: 36px; height: 36px; }
  .m-acc__body { padding: 0 0 24px 56px; }
  .m-foot__cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  body.portal .review-card .stepper li { font-size: 12.5px; }
  body.portal .stats.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  body.portal .stats.compact .cell { padding: 12px 12px 10px; border-radius: 16px; }
  body.portal .stats .label { font-size: 12.5px; }
  body.portal .stats .label .chev { display: none; }
  body.portal .stats.compact .num { font-size: 32px; }
}
