/* ============================================================
   HYPERWORKFLOW - guides, industry pages and /about.
   The same "Cobalt & paper" system as / and /home: near-white
   paper, off-black ink, one cobalt signal, sharp corners, General
   Sans. Radius rule: 2px on every control, 0 on panels. No motion
   and no script-built content: every answer is in the raw HTML,
   for people and for AI crawlers that don't run JavaScript.
   ============================================================ */

/* General Sans (Indian Type Foundry, ITF Free Font License, which
   permits self-hosting). Shipped exactly as downloaded. */
@font-face {
  font-family: 'General Sans';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('/fonts/GeneralSans-Variable.woff2') format('woff2');
}

:root {
  --ground: #F7F7F5;
  --ground-2: #EEEEEA;
  --ink: #121316;
  --ink-2: #3D4048;
  --ink-3: #5F636B;
  --rule: #DADAD4;
  --signal: #2346E8;
  --signal-deep: #1A36C4;
  --signal-wash: #E4E9FD;
  --on-signal: #FAFBFF;
  --r: 2px;
  color-scheme: light;
  --container: 1240px;
  --measure: 720px;
  --pad: clamp(20px, 4vw, 56px);
  --font: 'General Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0F1013;
  --ground-2: #17181C;
  --ink: #F1F1EE;
  --ink-2: #B8BBC2;
  --ink-3: #8A8E96;
  --rule: #2A2C32;
  --signal: #7B93FF;
  --signal-deep: #9DAFFF;
  --signal-wash: #1A2142;
  --on-signal: #0B0F24;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
@media (min-width: 720px) { body { font-size: 18px; } }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(36px, 4.6vw, 58px); letter-spacing: -0.045em; line-height: 1.02; }
h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.03em; }
h3 { font-size: clamp(19px, 1.6vw, 21px); letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0 0 1em; color: var(--ink-2); text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: var(--signal); color: var(--on-signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 0; padding: 12px 16px; background: var(--ink); color: var(--ground); z-index: 100; }
.skip:focus { left: 0; }
.wrap { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad); }
main [id] { scroll-margin-top: 24px; }
strong { color: var(--ink); font-weight: 600; }

/* links inside running text: always underlined, so they read as links */
.article p a, .article li a, .article td a, .article dd a, .lede a {
  color: var(--signal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.article p a:hover, .article li a:hover, .article td a:hover, .article dd a:hover { color: var(--signal-deep); }
/* navigation lists and link cards are not running text */
.article .crumbs a, .article .toc a, .article .hub-list a, .article .related a { color: inherit; text-decoration: none; }
.article .crumbs a, .article .toc a { color: var(--ink-2); }
.article .crumbs a:hover, .article .toc a:hover { color: var(--signal); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; min-height: 52px; white-space: nowrap; border-radius: var(--r); border: 1px solid transparent; font-weight: 500; font-size: 16px; line-height: 1; transition: background .18s ease, transform .1s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--signal); color: var(--on-signal); }
.btn-primary:hover { background: var(--signal-deep); }
.btn-quiet { border-color: var(--ink); color: var(--ink); }
.btn-quiet:hover { border-color: var(--signal); color: var(--signal); }

/* ---------- header ---------- */
.masthead-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.03em; font-size: 19px; }
.brand-mark { display: inline-flex; width: 26px; height: 26px; background: var(--signal); border-radius: var(--r); align-items: center; justify-content: center; flex-shrink: 0; }
.brand-mark svg { width: 15px; height: 15px; color: var(--on-signal); }
.masthead-nav { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.masthead-nav a:not(.btn) { display: none; padding: 8px 11px; color: var(--ink-2); font-weight: 450; }
.masthead-nav a:not(.btn):hover, .masthead-nav a[aria-current="page"] { color: var(--signal); }
.masthead-nav .btn { min-height: 42px; padding: 0 16px; font-size: 15px; margin-left: 8px; }
@media (min-width: 860px) { .masthead-nav a:not(.btn) { display: inline-block; } }

/* ---------- the article column ---------- */
.article { max-width: var(--measure); padding-block: clamp(20px, 3vw, 40px) clamp(56px, 7vw, 104px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule); }
.crumbs a:hover { color: var(--signal); }
.kicker { margin: 0 0 14px; font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--signal); }
.article-head h1 { margin-bottom: 22px; }
.lede { font-size: clamp(19px, 1.7vw, 21px); line-height: 1.55; color: var(--ink); max-width: 62ch; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule); font-size: 14.5px; color: var(--ink-3); }
.byline a { color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* "At a glance": the key facts, as a definition list */
.keyfacts { margin: 32px 0 0; padding: 20px 22px; background: var(--ground-2); border-top: 3px solid var(--signal); }
.keyfacts h2 { font-size: 15px; letter-spacing: .02em; font-weight: 600; margin: 0 0 10px; color: var(--ink-3); }
.keyfacts dl { display: grid; gap: 10px 20px; margin: 0; }
@media (min-width: 620px) { .keyfacts dl { grid-template-columns: 190px 1fr; } }
.keyfacts dt { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.keyfacts dd { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }

/* "On this page" */
.toc { margin: 32px 0 0; }
.toc h2 { font-size: 15px; letter-spacing: .02em; font-weight: 600; margin: 0 0 8px; color: var(--ink-3); }
.toc ol { margin: 0; padding-left: 1.2em; font-size: 16px; line-height: 1.5; color: var(--ink-3); }
.toc li { padding: 3px 0; }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--signal); }

/* body sections: one question each */
.article section { padding-top: clamp(36px, 4.4vw, 56px); }
.article section > h2 { margin-bottom: 16px; }
.article section h3 { margin: 26px 0 8px; }
.article ul, .article ol { margin: 0 0 1em; padding-left: 1.25em; color: var(--ink-2); }
.article li { margin: 0 0 .45em; padding-left: .2em; }
.article li::marker { color: var(--signal); }

/* numbered steps */
.article ol.steps { list-style: none; padding: 0; counter-reset: n; display: grid; gap: 14px; }
.article ol.steps > li { display: grid; grid-template-columns: 38px 1fr; counter-increment: n; padding: 0; margin: 0; }
.article ol.steps > li::before { content: counter(n); font-weight: 600; color: var(--signal); }

/* comparison tables */
.table-wrap { overflow-x: auto; margin: 6px 0 1.2em; border-top: 2px solid var(--ink); }
.article table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.article caption { caption-side: bottom; text-align: left; padding-top: 10px; font-size: 14px; color: var(--ink-3); }
.article th, .article td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule); }
.article th { font-weight: 600; color: var(--ink); }
.article thead th { font-size: 14px; letter-spacing: .01em; color: var(--ink-3); }
.article td { color: var(--ink-2); }

/* a note from our own work, and the line tying a topic to what we do */
.callout { margin: 8px 0 1.2em; padding: 18px 20px; border-left: 3px solid var(--signal); background: var(--signal-wash); }
.callout p { margin: 0; color: var(--ink); font-size: 16.5px; }
.callout p + p { margin-top: .6em; }
.callout .callout-label { display: block; margin-bottom: 4px; font-size: 13.5px; font-weight: 600; letter-spacing: .03em; color: var(--signal); }
.service-note { margin: 4px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--rule); font-size: 16.5px; }
.service-note a { font-weight: 500; }

/* questions and answers */
.qa div { padding: 18px 0 20px; border-top: 1px solid var(--rule); }
.qa div:first-child { border-top: 0; padding-top: 4px; }
.qa h3 { margin: 0 0 6px; }
.qa p { margin: 0; font-size: 17px; }

/* sources */
.sources ol { font-size: 15px; line-height: 1.5; }
.sources li { margin-bottom: .55em; }
.sources .seen { color: var(--ink-3); }

/* who wrote it */
.author { display: grid; gap: 4px; margin-top: clamp(40px, 5vw, 64px); padding: 22px 0 0; border-top: 2px solid var(--ink); }
.author h2 { font-size: 15px; letter-spacing: .02em; font-weight: 600; margin: 0 0 4px; color: var(--ink-3); }
.author p { margin: 0; font-size: 16px; }
.author p + p { margin-top: .5em; }

/* next step */
.cta { margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 36px); background: var(--ground-2); border-top: 3px solid var(--signal); }
.cta h2 { margin-bottom: 10px; }
.cta p { max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* related pages */
.related { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 620px) { .related { grid-template-columns: 1fr 1fr; } }
.article .related li { margin: 0; padding: 0; }
.related a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--rule); transition: border-color .18s ease; }
.related a:hover { border-color: var(--signal); }
.related strong { display: block; margin-bottom: 4px; font-size: 17px; line-height: 1.3; }
.related span { display: block; font-size: 15px; line-height: 1.45; color: var(--ink-3); }

/* hub page lists */
.hub-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.article .hub-list li { margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.hub-list a { display: block; padding: 18px 0; }
.hub-list a:hover strong { color: var(--signal); }
.hub-list strong { display: block; font-size: 19px; line-height: 1.3; margin-bottom: 4px; }
.hub-list span { display: block; font-size: 16px; line-height: 1.5; color: var(--ink-2); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--rule); padding-block: 28px; }
.footer-base { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-3); }
.footer-base ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.footer-base a { display: inline-block; padding-block: 4px; }
.footer-base a:hover { color: var(--signal); }

@media print {
  .masthead, .footer, .cta, .skip { display: none; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}

/* link lists sit flush with the text column */
.article .hub-list, .article .related { padding-left: 0; }

/* an example message or quotation */
.article blockquote { margin: 8px 0 1.2em; padding: 14px 18px; border-left: 3px solid var(--rule); background: var(--ground-2); }
.article blockquote p { margin: 0; color: var(--ink); font-size: 16.5px; }
.article blockquote p + p { margin-top: .5em; }
.article blockquote cite, .article blockquote footer { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: var(--ink-3); }
