/* CV Passport: what every page of the public site shares. The design Michael approved on 25 Nov 2026 (a row of
   CVs, one of them picked out), in the app's own branding and on the app's own rules (his words, 25 Nov: the site
   was "too different" from the app, then "the spacing and design principles are a bit off").
   It sits on the ReqOps design system: the pages load the system's own files first (ds-fonts.css, ds-tokens.css,
   and on the marketing pages ds-system.css), served as they are from web/src/theme. The rules followed here are
   the system's: Geist on paper; the 4-based spacing scale (--sp-*); the page column (--content-max); website
   headlines between 48 and 72px and nothing larger; hairlines, no lifted shadows, no glows; amber kept rare (the
   one brand moment on a page); short, even motion. No colour is written in this file: every one is a system token. */

/* ------------------------------------------------------------------ additions to the design system */
:root{
  /* type: the system's own sizes. A website headline is 48 to 72px (40px on a phone, the sign-in size) */
  --fs-hero:clamp(40px,4.6vw,64px);
  --fs-statement:clamp(32px,4vw,var(--fs-display));   /* a statement: --fs-display at most */
  --fs-section:clamp(var(--fs-h2),3vw,var(--fs-title));
  --fs-lead:var(--fs-h3);                              /* the line under the one big headline */

  /* the amber stroke under a headline's key words, as the app draws it under "Create your account." */
  --mark:color-mix(in srgb,var(--amber) 70%,transparent);
  /* ink on the amber sheet, thinned for its ruled lines */
  --brand-rule:color-mix(in srgb,var(--brand-ink) 32%,transparent);

  /* layout: the app's column, a gutter from its scale, and the room between sections (4-based) */
  --m-gut:clamp(var(--sp-4),4vw,var(--sp-8));
  --m-space:clamp(var(--sp-9),8vw,96px);
}

/* ------------------------------------------------------------------ shared pieces */
.m-wrap{width:min(var(--content-max),100% - 2*var(--m-gut));margin-inline:auto}
.m-skip{position:absolute;left:var(--sp-4);top:-80px;z-index:60;background:var(--ink);color:var(--bg);padding:var(--sp-3) var(--sp-4);border-radius:var(--r-sm)}
.m-skip:focus{top:var(--sp-3)}
/* the wordmark and its ring, as the design system draws them (system.css), for the pages that do not load it */
.wordmark{display:inline-flex;align-items:center;gap:var(--sp-3);font-family:var(--font-mono);font-size:12px;font-weight:var(--fw-regular);letter-spacing:.2em;color:var(--ink);white-space:nowrap;text-decoration:none}
.wordmark .ring{display:inline-block;width:19px;height:19px;border:2.5px solid currentColor;border-top-color:transparent;border-radius:50%;transform:rotate(-32deg);flex:0 0 auto}
/* the preview strip, while the site is a preview (SITE_PREVIEW) */
.demo-bar{margin:0;padding:var(--sp-2) var(--m-gut);text-align:center;font-size:var(--fs-label);line-height:1.4;font-weight:var(--fw-medium);letter-spacing:var(--tr-label);color:var(--muted);background:var(--well);border-bottom:1px solid var(--line)}
.demo-bar span{color:var(--ink);margin-right:var(--sp-2)}

/* ------------------------------------------------------------------ top: the app's bar (56px, a hairline under it) */
.m-top{position:relative;z-index:20;border-bottom:1px solid var(--line);background:var(--bg)}
.m-nav{display:flex;align-items:center;gap:var(--sp-8);min-height:var(--header-h)}
.m-links{display:flex;gap:var(--sp-6);font-size:var(--fs-md);font-weight:var(--fw-medium);color:var(--muted)}
.m-links a,.m-login,.m-foot a{transition:color var(--dur-base) var(--ease)}
.m-links a:hover,.m-links a[aria-current],.m-login:hover,.m-foot a:hover{color:var(--ink)}
.m-end{margin-left:auto;display:flex;align-items:center;gap:var(--sp-4)}
.m-login{font-size:var(--fs-md);font-weight:var(--fw-medium);color:var(--muted)}
.m-only-mobile,.m-menu{display:none}
@media (max-width:820px){
  .m-login{display:none}
  .m-menu{display:inline-grid;place-items:center;width:var(--ctl-h-md);height:var(--ctl-h-md);border:1px solid var(--line-strong);border-radius:50%;background:transparent}
  .m-links{display:none;position:absolute;left:var(--m-gut);right:var(--m-gut);top:calc(100% + var(--sp-2));flex-direction:column;gap:0;background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--r-lg);padding:var(--sp-2) var(--sp-5);font-size:var(--fs-xl)}
  .m-links.open{display:flex}
  .m-links a{padding:var(--sp-3) 0;border-bottom:1px solid var(--line)}
  .m-links a:last-child{border:0}
  .m-only-mobile{display:block}
}
.m-links a,.m-login,.m-foot a{text-decoration:none;color:inherit}
/* signed in: one square with the person's initial, and a menu under it */
.m-end .acct{position:relative}
.m-end .acct>summary{list-style:none;display:flex;align-items:center;gap:var(--sp-2);cursor:pointer;padding:3px;border-radius:var(--r-md);color:var(--ink)}
.m-end .acct>summary::-webkit-details-marker{display:none}
.m-end .acct-initial{display:grid;place-items:center;width:var(--ctl-h-md);height:var(--ctl-h-md);border-radius:var(--r-sm);background:var(--amber);color:var(--brand-ink);font-size:var(--fs-md);font-weight:var(--fw-strong);text-transform:uppercase}
.m-end .acct-menu{position:absolute;right:0;top:calc(100% + var(--sp-3));z-index:40;display:grid;min-width:210px;max-width:270px;padding:var(--sp-2);background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--r-lg)}
.m-end .acct-menu a{padding:10px var(--sp-3);border-radius:var(--r-sm);font-size:var(--fs-md);font-weight:var(--fw-medium);color:var(--ink);text-decoration:none}
.m-end .acct-menu a:hover,.m-end .acct-menu a:focus-visible{background:var(--hover)}
.m-end .acct-name{padding:var(--sp-2) var(--sp-3) var(--sp-3);margin-bottom:var(--sp-1);border-bottom:1px solid var(--line);color:var(--muted);font-size:var(--fs-sm);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
[hidden]{display:none!important}

/* ------------------------------------------------------------------ the pages that do things (jobs, a job, log in)
   They keep their own sheets (site.css, site-extra.css) and, on the paper theme, already look like the app.
   One thing changes for the shared top bar: the page's column lines up with the bar's. */
.wrap{max-width:none;width:min(var(--content-max),100% - 2*var(--m-gut));padding-inline:0}

/* ------------------------------------------------------------------ foot, toast */
.m-foot{border-top:1px solid var(--line);padding-block:var(--sp-8);color:var(--muted);font-size:var(--fs-md)}
.m-foot .m-wrap{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-4) var(--sp-8)}
.m-foot nav{margin-left:auto;display:flex;flex-wrap:wrap;gap:var(--sp-3) var(--sp-6)}
@media (max-width:860px){.m-foot nav{margin-left:0}}
.m-toast{position:fixed;left:50%;bottom:var(--sp-6);z-index:50;transform:translateX(-50%);opacity:0;pointer-events:none;padding:var(--sp-3) var(--sp-5);max-width:calc(100% - 2*var(--sp-4));transition:opacity var(--dur-panel) var(--ease)}
.m-toast.show{opacity:1}
