/* servoflows.com, the site's one stylesheet for what every page shares: the design tokens of each look,
   the skip link, the header and the footer. A page's own sheet holds only its content's rules and reads
   these tokens. Canon: ServoFlows/IMMUTABLE_FACTS.md, Brand (Servoflows) and Counter's config.counter.json
   theme in cobalt (WO-725, 28 Oct 2026). */

@font-face {
  font-family: 'Jakarta Fallback';
  src: local('Arial');
  ascent-override: 92.7%;
  descent-override: 22.4%;
  line-gap-override: 0%;
  size-adjust: 106.5%;
}
@font-face {
  font-family: 'Public Sans';
  src: url('/assets/counter/public-sans-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* The Servoflows look: light, cobalt, Plus Jakarta Sans. */
:root {
  --ink: #14161B;
  --slate: #565D6B;
  --cobalt: #2352E0;
  --cobalt-dark: #1A41B8;
  --cobalt-soft: #9DB7FF;
  --wash: #EDF2FE;
  --wash-line: #D6E0FB;
  --bg: #FFFFFF;
  --band: #F5F6F8;
  --card: #FFFFFF;
  --line: #E4E6EB;
  --night: #18213A;
  --night-text: #D6DEEF;
  --night-rule: rgba(255,255,255,.24);
  --white: #FFFFFF;
  --error: #B3261E;
  --radius: 12px;
  --maxw: 1120px;
  --sans: 'Plus Jakarta Sans', 'Jakarta Fallback', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --chrome-sans: 'Plus Jakarta Sans', 'Jakarta Fallback', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --chrome-skip: var(--ink);
  --chrome-on-skip: #FFFFFF;
  --chrome-maxw: 1120px;
}

/* The Counter look: dark cobalt, Public Sans, with a light look for a light system setting. */
:root[data-look="counter"] {
  --ground: #111318;
  --surface: #1A1D24;
  --raise: #252932;
  --line: #2F3440;
  --ink: #F2F4F7;
  --ink-2: #B9BFCA;
  --mint: #9DB7FF;
  --ivy: #1A41B8;
  --ivy-2: #2352E0;
  --on-ivy: #FFFFFF;
  --on-ivy-2: #D3DDFF;
  --btn: #9DB7FF;
  --btn-hover: #B5C8FF;
  --on-btn: #111318;
  --err: #F28B78;
  --maxw: 1160px;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --chrome-skip: var(--btn);
  --chrome-on-skip: var(--on-btn);
  --chrome-maxw: 1160px;
}
@media (prefers-color-scheme: light) {
  :root[data-look="counter"] {
    --ground: #F5F6F8;
    --surface: #FFFFFF;
    --raise: #ECEEF2;
    --line: #E4E6EB;
    --ink: #14161B;
    --ink-2: #565D6B;
    --mint: #1A41B8;
    --btn: #1A41B8;
    --btn-hover: #2352E0;
    --on-btn: #FFFFFF;
    --err: #B3261E;
  }
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--chrome-skip); color: var(--chrome-on-skip);
  font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1.4; text-decoration: none;
  padding: 12px 20px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* Shared by the header and the footer, one of each on every page but /counter, drawn the same whatever the page's look.
   Every property a page's own sheet could reach is set here. */
.site-header, .site-footer {
  font-family: var(--chrome-sans); font-size: 15px; line-height: 1.4; letter-spacing: normal; text-align: left;
  -webkit-font-smoothing: antialiased;
}
.site-header *, .site-footer * { box-sizing: border-box; }
.site-header a, .site-footer a { text-decoration: none; }
.site-header .sh-brand:hover, .site-footer .sf-brand:hover, .site-header .sh-cta:hover { text-decoration: none; }
.site-wrap { max-width: var(--chrome-maxw); margin: 0 auto; padding: 0 24px; }
.site-header .mark, .site-footer .mark { width: 28px; height: 28px; flex: none; display: block; }
.site-header .mark .s-path, .site-footer .mark .s-path { stroke: var(--mark-path); }
.site-header .mark .s-start, .site-footer .mark .s-start { fill: var(--mark-start); }
.site-header .mark .s-end, .site-footer .mark .s-end { fill: var(--mark-end); stroke: var(--mark-end-ring); }
.sh-wordmark { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--chrome-ink); }
.sh-wordmark .w-flows { color: var(--mark-path); }

/* Header: lime with ink words, dark when the device is. */
.site-header {
  --chrome-bg: #D4FF24; --chrome-ink: #14161B; --chrome-cta: #14161B; --chrome-cta-hover: #2A2D35; --chrome-on-cta: #FFFFFF;
  --mark-path: #1A41B8; --mark-start: #14161B; --mark-end: #D4FF24; --mark-end-ring: #14161B;
  position: sticky; top: 0; z-index: 50;
  background: var(--chrome-bg); color: var(--chrome-ink);
}
@media (prefers-color-scheme: dark) {
  .site-header {
    --chrome-bg: #14161B; --chrome-ink: #F2F4F7; --chrome-cta: #D4FF24; --chrome-cta-hover: #E0FF5C; --chrome-on-cta: #14161B;
    --mark-path: #D4FF24; --mark-start: #FFFFFF; --mark-end: #14161B; --mark-end-ring: #FFFFFF;
  }
}
.site-header .sh-wordmark .w-flows { color: var(--chrome-ink); }
.sh-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.sh-brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--chrome-ink); }
.sh-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.sh-nav a, .sh-link { color: var(--chrome-ink); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.sh-nav a:hover, .sh-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sh-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 9px; white-space: nowrap;
  background: var(--chrome-cta); color: var(--chrome-on-cta); font-size: 15px; font-weight: 700;
  transition: background .15s ease;
}
.sh-cta:hover { background: var(--chrome-cta-hover); color: var(--chrome-on-cta); }
/* The links and the press do not fit one row under this width, and every page's own form is on the page. */
@media (max-width: 1040px) {
  .sh-cta { display: none; }
  .sh-row, .sh-nav { gap: 16px; }
  .sh-nav a, .sh-link { font-size: 14px; }
}
/* A phone: the brand alone, in the page's flow, so a first screen keeps its height. The footer and the home carry the rest. */
@media (max-width: 800px) {
  .site-header { position: static; }
  .sh-row { gap: 16px; min-height: 0; padding-top: 8px; padding-bottom: 2px; }
  .sh-nav { display: none; }
  .sh-link { margin-left: auto; font-size: 14.5px; }
}

/* Footer: one dark bar on every page, in both themes. Lime is never the footer. */
.site-footer {
  --chrome-foot: #101522; --chrome-ink: #FFFFFF; --chrome-ink-2: #C9D2E4; --chrome-line: rgba(255,255,255,.14);
  --mark-path: #9DB7FF; --mark-start: #FFFFFF; --mark-end: #101522; --mark-end-ring: #FFFFFF;
  background: var(--chrome-foot); border-top: 1px solid var(--chrome-line);
  color: var(--chrome-ink-2); padding: 12px 0;
}
.sf-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; }
.sf-brand { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--chrome-ink); }
.site-footer .mark { width: 22px; height: 22px; }
.site-footer .sh-wordmark { font-size: 16px; }
.sf-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer .sf-links a { display: inline-flex; align-items: center; min-height: 36px; font-size: 13.5px; font-weight: 600; color: var(--chrome-ink-2); }
.site-footer .sf-links a:hover { color: var(--chrome-ink); text-decoration: underline; text-underline-offset: 3px; }
.sf-base { margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--chrome-line); }
.site-footer .sf-legal { margin: 0; padding: 0; max-width: none; font-size: 12.5px; font-weight: 400; line-height: 1.5; color: var(--chrome-ink-2); }
@media (max-width: 760px) {
  .sf-links { gap: 0 16px; }
  .sf-base { padding-top: 8px; }
}
