/* The .PM colours, light and dark (themeHead, web/theme.go): every page's
   stylesheet reads these tokens. Since 16/11 they are the charter's
   (web/site/card/assets/landing.css: paper, sheet, ink, rule), one look for
   every .pm. Dark follows the browser or the OS, unless
   the account chose on /my/profile (theme.js: <html data-theme>). A page
   wears dark once its stylesheets read the tokens: <html data-pm-dark>
   (before that, light only, never a dark canvas under hard-coded dark text).
   A brand's white label sets the same tokens from its five colours, one
   look, never switched (brandTokens). */
:root{color-scheme:light;
  --pm-bg:#f5f6f7;--pm-bg2:#ffffff;--pm-bg3:#eef0f2;
  /* One colour of text: --pm-muted is --pm-text (a brand's: its color_texte, web/theme.go). Nothing greyed. */
  --pm-text:#17191d;--pm-title:#17191d;--pm-muted:var(--pm-text);--pm-line:#e2e5e9;
  --pm-ink:#17191d;--pm-on-ink:#ffffff;--pm-hover:rgba(127,127,127,.12);
  --pm-ok:#1f9d55;--pm-warn:#e08a00;--pm-bad:#c0392b;--pm-shadow:0 1px 2px rgba(0,0,0,.06),0 8px 24px rgba(0,0,0,.06)}
@media (prefers-color-scheme:dark){:root[data-pm-dark]:not([data-theme="light"]){color-scheme:dark;
  --pm-bg:#000000;--pm-bg2:#0d0d0d;--pm-bg3:#161615;
  --pm-text:#eceef1;--pm-title:#ffffff;--pm-muted:var(--pm-text);--pm-line:#3a3833;
  --pm-ink:#eceef1;--pm-on-ink:#17191d;--pm-hover:rgba(255,255,255,.08);
  --pm-ok:#34c77b;--pm-warn:#f0a531;--pm-bad:#f0726a;--pm-shadow:0 1px 2px rgba(0,0,0,.5),0 8px 24px rgba(0,0,0,.4)}}
:root[data-pm-dark][data-theme="dark"]{color-scheme:dark;
  --pm-bg:#000000;--pm-bg2:#0d0d0d;--pm-bg3:#161615;
  --pm-text:#eceef1;--pm-title:#ffffff;--pm-muted:var(--pm-text);--pm-line:#3a3833;
  --pm-ink:#eceef1;--pm-on-ink:#17191d;--pm-hover:rgba(255,255,255,.08);
  --pm-ok:#34c77b;--pm-warn:#f0a531;--pm-bad:#f0726a;--pm-shadow:0 1px 2px rgba(0,0,0,.5),0 8px 24px rgba(0,0,0,.4)}
/* Statuses (badges, notes): a soft background and its text, light and dark;
   every stylesheet reads these rather than its own palette. */
:root{--pm-ok-bg:#e6f4ea;--pm-ok-fg:#1e5c33;--pm-warn-bg:#fff0c7;--pm-warn-fg:#795716;--pm-bad-bg:#fae1dc;--pm-bad-fg:#8c4438;--pm-info-bg:#e1edff;--pm-info-fg:#335e9f;--pm-violet-bg:#eee8ff;--pm-violet-fg:#604d9a}
@media (prefers-color-scheme:dark){:root[data-pm-dark]:not([data-theme="light"]){--pm-ok-bg:rgba(52,199,123,.16);--pm-ok-fg:#7ee2a8;--pm-warn-bg:rgba(240,165,49,.16);--pm-warn-fg:#f5c56e;--pm-bad-bg:rgba(240,114,106,.16);--pm-bad-fg:#f5a49d;--pm-info-bg:rgba(102,153,255,.16);--pm-info-fg:#9fc0ff;--pm-violet-bg:rgba(160,130,255,.16);--pm-violet-fg:#c4b2ff}}
:root[data-pm-dark][data-theme="dark"]{--pm-ok-bg:rgba(52,199,123,.16);--pm-ok-fg:#7ee2a8;--pm-warn-bg:rgba(240,165,49,.16);--pm-warn-fg:#f5c56e;--pm-bad-bg:rgba(240,114,106,.16);--pm-bad-fg:#f5a49d;--pm-info-bg:rgba(102,153,255,.16);--pm-info-fg:#9fc0ff;--pm-violet-bg:rgba(160,130,255,.16);--pm-violet-fg:#c4b2ff}
/* Checkboxes, radios, ranges: the accent — black or white on a .PM, the
   brand's colour in a white label (brandTokens sets --pm-accent). */
:root{--pm-accent:var(--pm-ink)}
/* The account's brand on its .PM pages (--brand, --brand-title, set by each
   page): as it is on light; on dark, its colour lifted to read (same hue),
   its titles white. A white label sets these itself (brandTokens). */
:root{--pm-brand:var(--brand,var(--pm-ink));--pm-on-brand:#fff;--pm-brand-title:var(--brand-title,var(--pm-title))}
@media (prefers-color-scheme:dark){:root[data-pm-dark]:not([data-theme="light"]){--pm-brand:oklch(from var(--brand,#f1f1ee) max(l,.72) c h);--pm-on-brand:#0f121a;--pm-brand-title:var(--pm-title);--brand-title:var(--pm-title);--brand-text:var(--pm-text)}}
:root[data-pm-dark][data-theme="dark"]{--pm-brand:oklch(from var(--brand,#f1f1ee) max(l,.72) c h);--pm-on-brand:#0f121a;--pm-brand-title:var(--pm-title);--brand-title:var(--pm-title);--brand-text:var(--pm-text)}
input[type="checkbox"],input[type="radio"],input[type="range"],progress{accent-color:var(--pm-accent)}
/* The .PM logos are black: white on dark (a brand's logo stays as it is). */
@media (prefers-color-scheme:dark){:root[data-pm-dark]:not([data-theme="light"]) .pm-logo{filter:invert(1)}}
:root[data-pm-dark][data-theme="dark"] .pm-logo{filter:invert(1)}
/* The .PM grey takes the page's colour (--brand: the card's, the gabarit's,
   the brand's a page sets): its backgrounds, lines and quiet texts drift
   towards it, light and dark, the titles staying in ink to read. Without a
   --brand, each mix falls back on its own grey. A white label sets these
   tokens itself (!important), untouched. The change eases (registered
   colours), when the theme or the page's colour moves. Its hue alone: the
   lightness stays the charter's (16/11), a black brand greys nothing. */
@property --pm-bg{syntax:"<color>";inherits:true;initial-value:#f5f6f7}
@property --pm-bg3{syntax:"<color>";inherits:true;initial-value:#eef0f2}
@property --pm-line{syntax:"<color>";inherits:true;initial-value:#e2e5e9}
@property --pm-muted{syntax:"<color>";inherits:true;initial-value:#6b6e66}
:root{transition:--pm-bg .8s ease,--pm-bg3 .8s ease,--pm-line .8s ease,--pm-muted .8s ease;
  --pm-bg:oklch(from color-mix(in oklab,#f5f6f7 95%,var(--brand,#f5f6f7)) 0.973 c h);
  --pm-bg3:oklch(from color-mix(in oklab,#eef0f2 92%,var(--brand,#eef0f2)) 0.954 c h);
  --pm-line:oklch(from color-mix(in oklab,#e2e5e9 84%,var(--brand,#e2e5e9)) 0.921 c h);
  --pm-muted:var(--pm-text)}
@media (prefers-color-scheme:dark){:root[data-pm-dark]:not([data-theme="light"]){
  --pm-bg:#000000; /* the page always black in the dark (20/11, the owner: #000 everywhere) */
  --pm-bg3:oklch(from color-mix(in oklab,#161615 86%,var(--brand,#161615)) 0.200 c h);
  --pm-line:oklch(from color-mix(in oklab,#3a3833 78%,var(--brand,#3a3833)) 0.330 c h);
  --pm-muted:var(--pm-text)}}
:root[data-pm-dark][data-theme="dark"]{
  --pm-bg:#000000; /* the page always black in the dark (20/11, the owner: #000 everywhere) */
  --pm-bg3:oklch(from color-mix(in oklab,#161615 86%,var(--brand,#161615)) 0.200 c h);
  --pm-line:oklch(from color-mix(in oklab,#3a3833 78%,var(--brand,#3a3833)) 0.330 c h);
  --pm-muted:var(--pm-text)}
@media (prefers-reduced-motion:reduce){:root{transition:none}}
/* no double-tap zoom, nor its 300 ms wait (pinch: the viewport, theme.js) */
html{touch-action:manipulation}

/* The « ? » of the e-mail signature's figures (_partials/sign-help.html,
   30/10) and its popup (popover: centred, no script), on every page. */
.pm-help { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 6px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; font: 700 12px/1 system-ui, sans-serif; vertical-align: 1px; cursor: help; text-transform: none; letter-spacing: 0; }
.pm-help:hover { background: color-mix(in srgb, currentColor 24%, transparent); }
.pm-help:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (pointer: coarse) { .pm-help { width: 26px; height: 26px; } }
.pm-help-pop { width: min(420px, calc(100vw - 32px)); margin: auto; padding: 20px 22px 18px; border: 0; border-radius: 18px; background: var(--pm-bg, #fff); color: var(--pm-text, #111); box-shadow: 0 0 0 1px var(--pm-line, rgb(0 0 0 / .1)), 0 24px 60px -18px rgb(0 0 0 / .45); font: 400 15px/1.5 var(--brand-font, system-ui), system-ui, sans-serif; text-align: left; text-transform: none; letter-spacing: 0; white-space: normal; }
.pm-help-pop { display: none; } /* hidden by default: a browser without popover (iOS 16) shows nothing */
.pm-help-pop:popover-open { display: grid; gap: 10px; }
@supports not selector(:popover-open) { .pm-help { display: none; } } /* there, no « ? » that does nothing */
.pm-help-pop::backdrop { background: rgb(14 14 20 / .35); }
.pm-help-title { font-size: 16px; font-weight: 700; }
.pm-help-close { justify-self: end; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--pm-text, #111); color: var(--pm-bg, #fff); font: inherit; font-weight: 650; cursor: pointer; }

/* « Pourquoi ? » and the big stop, the small keep (27/11, _partials/leave-why.html) */
.leave-why { display: grid; gap: 6px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--pm-line); border-radius: 12px; }
.leave-why legend { padding: 0 4px; font-weight: 650; font-size: 14px; }
.leave-why label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.leave-why .leave-why-text { display: grid; gap: 4px; margin-top: 4px; }
.leave-why textarea { width: 100%; font: inherit; border: 1px solid var(--pm-line); border-radius: 10px; padding: 8px 10px; background: var(--pm-bg); color: inherit; resize: vertical; }
.leave-form { display: grid; gap: 8px; }
.leave-form .leave-stop { width: 100%; min-height: 48px; font-size: 16px; }
.leave-form .leave-keep { justify-self: center; font-size: 13px; color: var(--pm-muted, inherit); }
.hub-note-stop { font-size: 12px; color: var(--pm-muted, inherit); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* No sideways slide, on any screen or window (29/11, the owner: a swipe a
   little too strong on a phone moved the whole page). The page clips (clip
   keeps sticky bars working, hidden would make body a scroll box); the
   windows and panels, already scrolling down, hide. A strip meant to scroll
   sideways (tabs, tables) still does, inside its own box. */
html, body { max-width: 100%; overflow-x: clip; }
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }
dialog, up-modal-viewport, up-drawer-viewport, .cv-back, .lw-window, .ct-menu, .pm-guru.is-floating, .fl-filter-pop { overflow-x: hidden !important; } /* !important: a window's own overflow (auto) must not bring the slide back */
