/* numal.ai blog and templates (17.11): the privacy page's reading layout from page.css (contents on the left, one
   measure of text), plus what an article needs: the byline, a template to copy, wide tables, the Numal block with its
   form, questions, sources and related reading. The hubs (/blog, /templates) are a grid of cards. Built by
   _src/build-blog.mjs. Colors and the form come from the use-case pages (_src/use-cases.css). */
:root {
  --green-ink: #34744f; --green-wash: #edf3ec;
  --blue-ink: #1b68b5; --blue-wash: #e7f1fa;
  --amber: #86590b; --amber-wash: #fbf3db;
  --red: #bb3b34; --red-wash: #fdebec;
  --focus-ring: rgba(35, 131, 226, .18);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* the reading page: page.css .doc gives 200px of contents and 680px of text; on a wide window the text gets the room */
.doc.post { grid-template-columns: 200px minmax(0, 760px); padding-top: 48px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--soft-2); text-decoration: none; }
.crumbs a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.post .prose h1 { font-size: 46px; line-height: 52px; text-wrap: balance; }
.byline { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; font-size: 13.5px; line-height: 20px; color: var(--muted); }
.byline img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.byline b { font-weight: 500; color: var(--fg); }
.byline span + span::before { content: "·"; margin: 0 8px; color: var(--faint); }
.byline .who { display: block; }
/* 24.11: Igor's LinkedIn and X after «founder of Numal» (build-blog.mjs BYLINKS): a 24px target around a 14px icon */
.byline a.by { display: inline-grid; place-items: center; width: 24px; height: 24px; margin: -2px 0 -2px 4px; vertical-align: middle; border-radius: 6px; color: var(--muted); text-decoration: none; }
.byline a.by + a.by { margin-left: 0; }
.byline a.by:hover { color: var(--fg); }
.byline a.by:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.byline a.by svg { width: 14px; height: 14px; }
.prose ol { margin: 12px 0 0; padding: 0 0 0 22px; display: grid; gap: 8px; }
.prose ol li { padding-left: 4px; }
.prose ol li::marker { color: var(--muted); font-size: 14px; }
.prose h3 + p { margin-top: 6px; }
.prose code { font: 13.5px/1 var(--mono); padding: 2px 5px; border-radius: 4px; background: var(--stone); }

/* the template to copy: a plain-text block with its own Copy button */
.tpl { margin: 20px 0 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--bg); }
.tpl figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 18px; background: var(--tint); border-bottom: 1px solid var(--line); }
.tpl figcaption b { font-size: 13.5px; font-weight: 600; }
.tpl figcaption span { display: block; font-size: 12.5px; color: var(--muted); }
.copy { flex: none; height: 32px; padding: 0 14px; font-size: 13.5px; cursor: pointer; }
.copy[data-done] { background: var(--green-wash); border-color: var(--green-wash); color: var(--green-ink); }
.tpl pre { margin: 0; padding: 18px 20px 20px; font: 13.5px/22px var(--mono); color: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.tpl pre:focus-visible { outline-offset: -3px; }

/* a filled-in table, and tables of several columns */
.tblwrap { margin: 16px 0 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.tblwrap .tbl { margin: 0; border: 0; border-radius: 0; min-width: 560px; }
.tbl.wide td:first-child { width: auto; }
.tbl.wide td, .tbl.wide th { padding: 11px 12px; font-size: 14px; line-height: 21px; }
.tbl .nw { white-space: nowrap; }
.tbl caption { caption-side: bottom; padding: 10px 16px 12px; text-align: left; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); }
.prose .tbl td, .prose .tbl th { font-size: 14px; line-height: 21px; }

/* a filled-in record, the way a lead would see it */
.filled { margin: 16px 0 0; padding: 22px 24px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); }
.prose .filled h3 { margin: 0; font: 560 19px/25px var(--serif); letter-spacing: -.01em; }
.prose .filled h4 { margin: 18px 0 0; font-size: 13px; font-weight: 600; color: var(--soft-2); }
.prose .filled p, .prose .filled li { font-size: 15px; line-height: 23px; }
.prose .filled p { margin: 6px 0 0; }
.prose .filled ul { margin-top: 6px; gap: 6px; }
.filled .meta { font-size: 13px; color: var(--muted); }

/* a short plain note in the text */
.note { margin: 20px 0 0; padding: 14px 18px 16px; border: 1px solid var(--line); background: var(--tint); border-radius: 10px; }
.prose .note p { margin: 0; font-size: 15px; line-height: 24px; }

/* the Numal block: once, near the end, with the form */
.nb { margin: 56px 0 0; padding: 28px 28px 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--tint); scroll-margin-top: calc(var(--bar) + 24px); }
.prose .nb h2 { margin: 0; font-size: 25px; line-height: 31px; }
.prose .nb p { margin: 10px 0 0; }
.nb .uclink { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--fg); text-decoration: none; }
.nb .uclink:hover { text-decoration: underline; text-underline-offset: 3px; }
.nb .uclink svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* under a template: the free skill that fills it in (shown only while SKILLS_OUT in _src/nav-resources.mjs) */
.agent { display: flex; align-items: center; justify-content: space-between; gap: 10px 28px; margin: 10px 0 0; padding: 14px 18px 14px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); }
.prose .agent p { flex: 1; margin: 0; font-size: 15px; line-height: 23px; text-wrap: wrap; }
.agent p b { font-weight: 600; color: var(--fg); }
.agent p code { white-space: nowrap; }
.prose .agent .go { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--fg); text-decoration: none; white-space: nowrap; }
.prose .agent .go:hover { text-decoration: underline; text-underline-offset: 3px; }
.agent .go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* /skills: one row per skill, its name, what it does and what to say; a row reached from a template is tinted */
.prose .skl { gap: 0; margin-top: 10px; border-top: 1px solid var(--line); }
.prose .skl li { padding: 18px 0 20px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--bar) + 24px); }
.prose .skl li::before { content: none; }
.prose .skl li:target { padding-left: 16px; padding-right: 16px; border-radius: 10px; background: var(--tint); }
.skl h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0; font: 560 19px/25px var(--serif); letter-spacing: -.01em; color: var(--fg); }
.prose .skl h4 code { padding: 0; background: none; font-size: 13px; color: var(--muted); letter-spacing: 0; }
.prose .skl p { margin: 6px 0 0; font-size: 15.5px; line-height: 24px; }
.prose .skl .say { color: var(--soft-2); }
.prose .skl .tl { font-size: 14px; line-height: 21px; color: var(--muted); }
.prose .skl + h3 { margin-top: 36px; }
/* «When / Say this»: the situations are short, so they keep one line while there is room */
.tbl.when td:first-child { white-space: nowrap; }
.ask { display: flex; align-items: center; width: 488px; max-width: 100%; height: 50px; margin-top: 20px; padding: 3px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--bg); box-shadow: 0 1px 2px rgba(15, 15, 15, .04), 0 10px 28px -14px rgba(15, 15, 15, .14); transition: border-color .15s, box-shadow .15s; }
.ask:hover { border-color: rgba(29, 28, 26, .24); }
.ask:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-ring); }
.ask input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: 400 16px var(--font); color: var(--fg); padding: 0 18px; outline: none; }
.ask input::placeholder { color: var(--muted); }
.ask input[aria-invalid] { color: var(--red); }
.ask .btn { height: 42px; padding: 0 20px; flex: none; font-size: 15px; }
.prose .formnote { margin: 10px 0 0 18px; font-size: 13.5px; line-height: 20px; color: var(--muted); }
.prose .formnote:empty { margin: 0; }
.prose .formnote.err { color: var(--red); }
.prose .assure { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.prose .assure li { display: inline-flex; align-items: center; gap: 7px; padding: 0; font-size: 13.5px; line-height: 20px; color: var(--soft-2); }
.prose .assure li::before { content: none; }
.assure .who img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--tint), 0 0 0 3px var(--line); }
.assure .who b { font-weight: 500; color: var(--fg); }
.assure .ok { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--green-ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* sources and related reading */
.prose .src li { font-size: 14px; line-height: 22px; color: var(--soft-2); }
/* 21.11: under the sources of a price article: whose names these are, and that Numal is not affiliated */
.prose .marks { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--muted); }
.tbl caption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.more { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prose .more li { padding: 0; }
.prose .more li::before { content: none; }
.prose .more a { text-decoration: none; }
.more a { display: grid; gap: 6px; height: 100%; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: background-color .15s, border-color .15s; }
.more a:hover { background: var(--tint); border-color: var(--line-2); }
.more b { font: 560 17px/23px var(--serif); letter-spacing: -.005em; color: var(--fg); }
.more span:not(.kind) { font-size: 14px; line-height: 21px; color: var(--soft-2); }
.kind { justify-self: start; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; background: var(--stone); color: var(--soft-2); }
.kind.template { background: var(--green-wash); color: var(--green-ink); }
.kind.compare { background: var(--blue-wash); color: var(--blue-ink); }
.kind.pricing { background: var(--amber-wash); color: var(--amber); }

/* the hubs: a heading, then cards that fill the width */
.bhub { padding-top: 72px; padding-bottom: 128px; }
.bhub-head { max-width: 860px; }
.bhub h1 { margin: 0; font: 580 56px/60px var(--serif); letter-spacing: -.022em; text-wrap: balance; }
.bhub-tabs { display: flex; gap: 8px; margin: 28px 0 0; }
.bhub-tabs a { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 14px; color: var(--soft); text-decoration: none; }
.bhub-tabs a:hover { background: var(--tint); }
.bhub-tabs a[aria-current="page"] { background: var(--fg); border-color: var(--fg); color: #fff; }
.grp { margin-top: 64px; }
.grp h2 { margin: 0; font: 560 25px/31px var(--serif); letter-spacing: -.012em; }
.grp > p { margin: 8px 0 0; font-size: 15px; color: var(--soft-2); }
.posts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.posts a { display: grid; align-content: start; gap: 10px; height: 100%; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: background-color .15s, border-color .15s; }
.posts a:hover { background: var(--tint); border-color: var(--line-2); }
.posts h3 { margin: 4px 0 0; font: 560 21px/27px var(--serif); letter-spacing: -.01em; color: var(--fg); text-wrap: balance; }
.posts p { margin: 0; font-size: 14.5px; line-height: 22px; color: var(--soft-2); text-wrap: pretty; }
.posts .when { font-size: 12.5px; color: var(--muted); }
.bhub .nb { max-width: 860px; margin-top: 80px; }
.bhub .nb h2 { margin: 0; font: 560 25px/31px var(--serif); letter-spacing: -.012em; }
.bhub .nb p { margin: 10px 0 0; font-size: 16px; line-height: 26px; color: var(--soft); }
.bhub .formnote { margin: 10px 0 0 18px; font-size: 13.5px; line-height: 20px; color: var(--muted); }
.bhub .formnote:empty { margin: 0; }
.bhub .formnote.err { color: var(--red); }
.bhub .assure { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 13.5px; line-height: 20px; color: var(--soft-2); }
.bhub .assure li { display: inline-flex; align-items: center; gap: 7px; }

@media (max-width: 1100px) {
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 959px) {
  .doc.post { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
}
@media (max-width: 719px) {
  .post .prose h1 { font-size: clamp(32px, 9vw, 46px); line-height: 1.1; }
  .byline { align-items: flex-start; }
  .byline span + span::before { content: none; }
  .byline .facts { display: flex; flex-wrap: wrap; column-gap: 12px; }
  .tpl pre { padding: 14px 14px 16px; font-size: 13px; line-height: 21px; }
  .tbl .nw { white-space: normal; }
  .tblwrap .tbl { min-width: 520px; }
  .tpl figcaption { padding-left: 14px; }
  .agent { flex-direction: column; align-items: flex-start; padding: 14px 16px 16px; }
  .tbl.when td:first-child { white-space: normal; }
  .nb { padding: 22px 18px 20px; margin-left: calc(-1 * var(--gut) + 8px); margin-right: calc(-1 * var(--gut) + 8px); }
  .ask { width: 100%; height: 48px; }
  .ask input { padding: 0 12px 0 14px; }
  .ask .btn { height: 40px; padding: 0 16px; }
  .prose .assure, .bhub .assure { flex-direction: column; align-items: flex-start; gap: 8px; }
  .more { grid-template-columns: minmax(0, 1fr); }
  .bhub { padding-top: 32px; padding-bottom: 96px; }
  .bhub h1 { font-size: clamp(36px, 10vw, 56px); line-height: 1.06; }
  .posts { grid-template-columns: minmax(0, 1fr); }
  .grp { margin-top: 48px; }
}

/* 18.11 cards with covers (user: a 7shifts-style card grid). Each card opens with a plate in its kind's color that holds
   a small piece of the record the post teaches (_src/blog/_covers.mjs, decorative); the tag, title and text sit under it
   and the action line sits at the bottom, so the cards in a row end on one line. On /blog the request form is a dark
   card in the guides' grid. Dark mode: dark.css. */
.posts { gap: 20px; }
.posts > li { min-width: 0; }
.posts a { display: flex; flex-direction: column; gap: 0; padding: 8px; border-radius: 16px; background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.posts a:hover { background: var(--bg); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(29, 28, 26, .04), 0 14px 32px -20px rgba(29, 28, 26, .28); }
.posts a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.pc { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 14px; }
.pc .kind { align-self: flex-start; }
.posts .pc h3 { margin: 2px 0 0; }
.pc .go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-size: 14.5px; font-weight: 500; color: var(--fg); }
.pc .go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.posts a:hover .go svg { transform: translateX(3px); }

/* the plate, and the sheet on it */
.cv { display: grid; place-items: center; height: 216px; padding: 20px; border-radius: 10px; background: var(--stone); overflow: hidden; }
.cv-template { background: var(--green-wash); }
.cv-compare { background: var(--blue-wash); }
.cv-pricing { background: var(--amber-wash); }
.sh { width: min(100%, 320px); padding: 11px 14px 5px; border: 1px solid rgba(29, 28, 26, .06); border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(29, 28, 26, .05), 0 12px 26px -16px rgba(29, 28, 26, .3); font-size: 11.5px; line-height: 15px; color: var(--soft); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s cubic-bezier(.2, .7, .2, 1); }
.posts a:hover .sh { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(29, 28, 26, .05), 0 18px 32px -16px rgba(29, 28, 26, .34); }
.sh-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; }
.sh-h b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--fg); }
.sh-h > span { flex: none; font-size: 10.5px; color: var(--muted); }
.sh ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; column-gap: 10px; }
.sh.nok ul { grid-template-columns: minmax(0, 1fr) max-content; }
.sh li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.sh .k { font-size: 10.5px; font-weight: 500; color: var(--muted); }
.sh .t { min-width: 0; }
.sh .t:last-child { grid-column: span 2; }
.pl { justify-self: start; display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 99px; font-size: 10px; font-weight: 500; line-height: 1; white-space: nowrap; background: var(--stone); color: var(--soft-2); }
.pl.ok { background: var(--green-wash); color: var(--green-ink); }
.pl.wait { background: var(--amber-wash); color: var(--amber); }
.pl.on { background: var(--blue-wash); color: var(--blue-ink); }
.pr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pr div { display: grid; gap: 6px; padding: 12px 0 10px; }
.pr div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.pr span { font-size: 10.5px; color: var(--muted); }
.pr b { font: 560 26px/1 var(--serif); letter-spacing: -.01em; color: var(--fg); font-variant-numeric: tabular-nums; }
.gr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: 10px; }
.gr span { padding: 7px 0; border-top: 1px solid var(--line); }
.gr .gh { font-size: 10.5px; font-weight: 500; color: var(--muted); }
.gr .gh + .gh, .gr .num { text-align: right; }
.gr .num { font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; }

/* the request card on /blog: one more card in the guides' grid, last in the list and pinned to the top right on wide
   screens (with more guides the last row is simply shorter) */
.posts .cta { grid-column: 3; grid-row: 1; }
/* /skills with one skill set (18.11): its card takes the two columns beside the request card */
.posts .set-wide { grid-column: 1 / 3; grid-row: 1; }
.cta-in { height: 100%; display: flex; flex-direction: column; padding: 30px 26px 24px; border-radius: 16px; background: #1d1c1a; color: #f4f3ef; }
.posts .cta h3 { margin: 0; font: 560 27px/32px var(--serif); letter-spacing: -.014em; color: #fff; text-wrap: balance; }
.posts .cta h3 + p { margin: 12px 0 28px; font-size: 14.5px; line-height: 22px; color: rgba(244, 243, 239, .72); }
.cta .ask { width: 100%; margin-top: auto; border-color: transparent; box-shadow: none; }
.cta .ask:hover { border-color: transparent; }
.cta .ask input { padding: 0 8px 0 16px; font-size: 15px; }
.cta .ask .btn { padding: 0 16px; }
.cta .ask:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(90, 162, 234, .45); }
.posts .cta .formnote { margin: 10px 0 0 18px; font-size: 13.5px; line-height: 20px; color: rgba(244, 243, 239, .72); }
.posts .cta .formnote:empty { margin: 0; }
.posts .cta .formnote.err { color: #ff9d92; }
.posts .cta .assure { margin-top: 14px; gap: 8px 18px; color: rgba(244, 243, 239, .72); }
.cta .assure .ok { stroke: #8fd3a8; }

@media (max-width: 1100px) {
  .posts .cta { grid-column: 1 / -1; grid-row: auto; }
  .posts .set-wide { grid-column: 1 / -1; grid-row: auto; }
  .cta-in { padding: 30px 28px 26px; }
  .posts .cta h3 + p { max-width: 560px; margin-bottom: 22px; }
  .cta .ask { width: 488px; max-width: 100%; }
}
@media (max-width: 719px) {
  .posts { gap: 16px; }
  .cv { height: 204px; padding: 16px; }
  .pc { padding: 14px 12px 12px; }
  .cta-in { padding: 26px 20px 22px; }
  .posts .cta h3 { font-size: 25px; line-height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .sh, .pc .go svg { transition: none; }
  .posts a:hover .sh, .posts a:hover .go svg { transform: none; }
}
/* end 18.11 cards with covers */
