/* concret-blog.css v6. Lean reading styles for Concret blog posts.
   Served from cdn.concret.io/blog/ through the Blog page header (includes: header), or inlined per post
   (includes: inline) until that header is in place. Decisions: ../DECISIONS.md.
   Every rule sits under .cb-post. Layout responds to the post column through a
   container query, so it works inside any Squarespace content width. */
.cb-post{--cb-ink:#14191f;--cb-meta:#5d6470;--cb-rule:#e4e1da;--cb-soft:#f7f5f0;--cb-surface:#fff;--cb-brand:var(--brand,#F5BA2F);--cb-brand-soft:#fff2cc;--cb-dark:#101820;--cb-link:#0b57d0;--cb-head:var(--font,'Poppins'),system-ui,sans-serif;--cb-body:'Source Serif 4',Charter,Georgia,serif;--cb-mono:'JetBrains Mono',ui-monospace,Menlo,monospace;--cb-img-max-h:min(75vh,760px);container:cbpost/inline-size;color:var(--cb-ink);font-family:var(--cb-body);font-size:20px;line-height:1.65;max-width:var(--cb-col,none);margin:0 auto;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.cb-post *{box-sizing:border-box}
.cb-post>*{margin-top:0;margin-bottom:0;clear:both}
.cb-post>*+*{margin-top:1.15em}
/* text and small headings may run beside an "aside" image; every other block starts below it */
.cb-post>p,.cb-post>ul,.cb-post>ol,.cb-post>h3,.cb-post>h4{clear:none}
.cb-post>ul,.cb-post>ol{display:flow-root}

/* type */
.cb-post p{margin:0}
.cb-post p+p,.cb-post>*+p{margin-top:1.15em}
.cb-post .cb-lead{font-size:1.18em;line-height:1.55;color:var(--cb-meta)}
.cb-post h2,.cb-post h3,.cb-post h4{font-family:var(--cb-head);color:var(--cb-ink);font-weight:500;letter-spacing:-.015em;scroll-margin-top:90px}
.cb-post h2{font-size:1.5em;line-height:1.22;margin-top:2em}
.cb-post h3{font-size:1.18em;line-height:1.3;margin-top:1.6em}
.cb-post h4{font-size:1em;font-weight:600;margin-top:1.4em}
.cb-post h2+*,.cb-post h3+*,.cb-post h4+*{margin-top:.55em}
/* links are blue with a thin underline in their own colour (D-33): yellow is kept for key points */
.cb-post a{color:var(--cb-link);text-decoration:underline;text-decoration-color:currentColor;text-decoration-thickness:1px;text-underline-offset:3px}
.cb-post a:hover{text-decoration-thickness:2px}
.cb-post strong{font-weight:600}
.cb-post hr{display:block;height:auto;border:0;background:none;overflow:visible;text-align:center;margin:2.4em 0}
.cb-post hr::before{content:"\2022\2003\2022\2003\2022";color:var(--cb-meta);letter-spacing:.2em}

/* key points come in three levels, loudest first (D-34): a pull quote (.cb-pull, below), the marker
   (==text==, <mark>) and the underline (++text++, <mark class="cb-u">). The marker and the three underline
   styles are hand-drawn shapes: filled SVG paths that stretch over each line of the phrase. Their sources
   are assets/marks/*.svg and scripts/marks.mjs writes them between the two "marks" lines. The yellow sits
   inside the shapes (#F5BA2F), so these rules do not follow --cb-brand (D-35).
   cb-m-under and cb-m-ink are the older per-site looks for the marker; they still work. */
.cb-post mark{color:inherit;background:none;padding:0 .12em;margin:0 -.12em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cb-post.cb-m-under mark{background:linear-gradient(transparent 62%,color-mix(in srgb,var(--cb-brand) 60%,transparent) 62%,color-mix(in srgb,var(--cb-brand) 60%,transparent) 92%,transparent 92%);border-radius:0;padding:0 .12em;margin:0 -.12em}
.cb-post.cb-m-ink mark{background:var(--cb-dark);color:#fff;border-radius:3px;padding:.05em .3em;margin:0}
.cb-post.cb-m-ink mark a{color:inherit}
.cb-post.cb-m-ink mark.cb-u a{color:var(--cb-link)}
/* marks:start (written by scripts/marks.mjs from assets/marks, do not edit by hand) */
.cb-post mark,.cb-post .cb-m-marker mark{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cpath fill='%23F5BA2F' fill-opacity='0.42' d='M0.6,6.3 Q11.6,6.4 15.2,6.3 Q18.7,6.3 22.5,6.3 Q26.3,6.3 31.9,6.3 Q37.4,6.3 40.7,6.4 Q44,6.6 48.6,6.3 Q53.1,6 59,6.2 Q64.9,6.4 70,6 Q75.2,5.6 79,5.9 Q82.8,6.3 86.2,6.3 Q89.6,6.2 95,5.8 Q100.3,5.3 104.1,5.1 Q107.9,4.9 112,4.9 Q116.2,4.9 121.6,5 Q127.1,5.1 131.8,5.5 Q136.5,5.8 141,5.8 Q145.5,5.8 149.9,5.9 Q154.3,5.9 160.1,5.6 Q165.8,5.3 170,5.7 Q174.2,6 177.5,6 Q180.9,6 185.3,5.6 Q189.8,5.2 195.4,4.9 Q201,4.6 205.7,4.6 Q210.4,4.7 215.2,4.7 Q220,4.7 222.3,5 Q224.7,5.3 231.3,5 Q237.9,4.7 242.5,4.7 Q247.2,4.7 249.7,4.7 Q252.2,4.6 258.3,4.7 Q264.4,4.9 267.4,4.7 Q270.4,4.5 276.9,4.4 Q283.4,4.3 286,4.6 Q288.6,4.8 294,4.6 L299.4,4.3 L299.2,25.6 Q290.4,25 285.1,25.1 Q279.7,25.1 275.1,25.3 Q270.4,25.5 265.8,25.6 Q261.3,25.7 257,25.6 Q252.7,25.5 249.9,25.3 Q247,25.2 241,25.5 Q235,25.8 230.3,26 Q225.5,26.2 222.5,26 Q219.4,25.8 213.2,25.9 Q207,25.9 202.7,26.2 Q198.4,26.5 195.2,26.2 Q191.9,25.8 186.3,25.7 Q180.7,25.6 175.7,25.3 Q170.7,25.1 166.5,25.3 Q162.4,25.6 158.1,25.7 Q153.9,25.9 150.7,25.9 Q147.5,25.9 142.1,25.9 Q136.7,25.9 131.3,26.2 Q125.9,26.5 123,26.2 Q120.1,25.8 114.1,26.1 Q108.1,26.4 104.7,26.1 Q101.3,25.9 95.5,26.3 Q89.8,26.7 86.8,26.9 Q83.8,27.1 78.3,27 Q72.7,26.9 67.3,26.5 Q62,26.1 57.9,26.5 Q53.8,26.9 49.3,26.9 Q44.9,27 41.1,27.1 Q37.3,27.2 31.9,26.9 Q26.4,26.6 21.6,26.8 Q16.9,26.9 13.5,26.6 Q10,26.4 5.4,26.7 L0.7,27 Z'/%3E%3Cpath fill='%23F5BA2F' fill-opacity='0.2' d='M5,9.7 Q17.7,9.9 23.1,10 Q28.5,10.1 32.1,10.2 Q35.6,10.2 43.7,10 Q51.7,9.8 57.2,9.8 Q62.6,9.8 66.9,9.5 Q71.3,9.2 77,9.1 Q82.8,9 86.9,9.1 Q90.9,9.2 97.2,9 Q103.5,8.9 110.4,9.2 Q117.2,9.4 122.9,9.2 Q128.5,9 133.5,8.8 Q138.6,8.7 142.4,8.6 Q146.3,8.5 152.4,8.8 Q158.5,9.1 166.1,8.9 Q173.8,8.7 177.4,9 Q181.1,9.2 187.3,9.4 Q193.5,9.5 198.1,9.5 Q202.8,9.4 209.6,9.5 Q216.5,9.6 222.6,9.6 Q228.7,9.7 232.8,9.4 Q236.9,9.1 241.8,8.8 Q246.7,8.6 252.7,8.4 Q258.7,8.2 263.4,8.3 Q268.1,8.5 274.6,8.6 Q281,8.7 287,8.6 L293,8.4 L291.4,22 Q281.1,22.1 276.1,21.9 Q271.1,21.8 264.8,21.6 Q258.5,21.5 250.8,21.9 Q243,22.3 238.3,22.4 Q233.5,22.6 226.9,22.6 Q220.2,22.6 214.9,22.3 Q209.7,22.1 204,22.4 Q198.4,22.7 194.7,22.8 Q191,22.9 183.7,23 Q176.3,23.2 171.1,23 Q165.9,22.8 159.1,22.9 Q152.2,23 148.4,23 Q144.6,23.1 136.8,23.2 Q129,23.3 123.4,23.4 Q117.9,23.5 113.6,23.2 Q109.3,23 102.9,23.1 Q96.4,23.3 91.3,23.4 Q86.1,23.5 79.8,23.3 Q73.5,23 67.1,22.8 Q60.7,22.6 56.7,22.5 Q52.7,22.4 45.5,22.8 Q38.3,23.1 34.9,22.9 Q31.5,22.6 24.2,22.7 Q16.9,22.8 11.4,22.7 L6,22.7 Z'/%3E%3C/svg%3E") no-repeat 50% 50%/100% 100%;padding:0 .2em;margin:0 -.2em}
.cb-post mark.cb-u{color:inherit;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath fill='%23F5BA2F' fill-opacity='0.78' d='M1.5,3.2 Q10.1,2.9 13.9,2.8 Q17.7,2.7 20.8,2.7 Q23.8,2.8 27.8,2.9 Q31.8,3 35.8,3 Q39.9,3 44.6,2.9 Q49.4,2.7 52.8,2.9 Q56.2,3.2 61.2,3 Q66.2,2.9 70.1,3.1 Q74.1,3.4 78.9,3.3 Q83.7,3.1 87.5,2.9 Q91.2,2.6 93.8,2.6 Q96.4,2.6 100.7,2.5 Q105.1,2.4 108.8,2.6 Q112.6,2.9 117.5,2.9 Q122.5,3 126.3,2.9 Q130.1,2.8 133.2,2.6 Q136.2,2.4 141.5,2.3 Q146.7,2.3 150,2.3 Q153.3,2.4 157.6,2.5 Q161.9,2.6 166.5,2.5 Q171.2,2.5 174.2,2.6 Q177.1,2.7 181.6,2.7 Q186.2,2.8 190.6,2.9 Q195.1,3.1 199.6,2.8 Q204.1,2.6 207,2.4 Q209.9,2.2 213.4,2.4 Q216.8,2.6 220.6,2.5 Q224.4,2.5 229.9,2.6 Q235.3,2.6 239.6,2.6 Q243.8,2.6 247.5,2.5 Q251.1,2.3 254.9,2.4 Q258.7,2.4 263.2,2.4 Q267.8,2.3 271,2.5 Q274.3,2.7 277.5,2.7 Q280.7,2.7 285.9,2.7 Q291.1,2.7 294.8,2.8 L298.5,2.9 L296.9,9.5 Q286.8,9.7 283,9.7 Q279.2,9.7 274.8,9.5 Q270.5,9.3 266.6,9.5 Q262.6,9.8 259,9.6 Q255.5,9.5 250.8,9.8 Q246,10 242.9,10 Q239.7,9.9 236.2,10.1 Q232.6,10.3 227.4,10.4 Q222.3,10.5 218.3,10.3 Q214.4,10.1 211.5,10.3 Q208.6,10.4 203,10.1 Q197.3,9.9 193.3,9.8 Q189.3,9.7 186,9.7 Q182.6,9.8 177.3,9.7 Q172,9.7 168.7,9.7 Q165.3,9.8 162.4,9.9 Q159.5,10 154.5,10.1 Q149.5,10.2 145.8,10.3 Q142,10.3 138.3,10.1 Q134.7,9.8 130.5,10 Q126.4,10.3 121.3,10.4 Q116.3,10.6 111.6,10.4 Q106.9,10.3 102.8,10.4 Q98.6,10.5 94.8,10.2 Q91,10 87.1,9.9 Q83.3,9.8 78.5,9.7 Q73.8,9.6 69.9,9.6 Q66,9.6 61.7,9.7 Q57.5,9.9 54.6,10.2 Q51.7,10.5 46.8,10.3 Q42,10.1 38.2,10.2 Q34.3,10.2 31.2,10.1 Q28,10 23.2,10.3 Q18.3,10.7 13.5,10.7 Q8.6,10.7 5.3,10.5 L2.1,10.3 Z'/%3E%3Cpath fill='%23F5BA2F' fill-opacity='0.3' d='M8,5.2 Q17.5,5.3 23.1,5.3 Q28.8,5.4 32.4,5.2 Q35.9,5 41.6,5.2 Q47.2,5.4 54.1,5.2 Q61,5.1 65.7,5.1 Q70.3,5.1 74.9,5.1 Q79.4,5.1 84.5,5 Q89.5,4.9 94.3,5.1 Q99.1,5.2 104.5,5.3 Q109.9,5.3 115.2,5.1 Q120.5,4.9 124.4,5 Q128.3,5 134.8,4.9 Q141.2,4.7 145.9,4.7 Q150.6,4.8 155.6,5 Q160.7,5.1 164.9,5.2 Q169.2,5.3 174.4,5.3 Q179.5,5.3 185.7,5.4 Q191.8,5.4 195,5.1 Q198.2,4.9 205.3,4.8 Q212.5,4.6 216.7,4.6 Q220.9,4.7 225.6,4.6 Q230.4,4.5 235.1,4.5 Q239.7,4.5 245.4,4.6 Q251,4.7 256.3,4.8 Q261.6,4.9 267.1,5 Q272.6,5.1 277.2,5.2 Q281.7,5.2 286.4,5 L291,4.7 L289.3,8.1 Q280,8 275.1,7.9 Q270.2,7.8 263.7,7.8 Q257.2,7.9 253.4,7.8 Q249.7,7.6 242.6,7.9 Q235.5,8.1 231.1,8.2 Q226.8,8.3 221.3,8.1 Q215.8,7.9 212.1,8.1 Q208.4,8.2 202.6,8 Q196.7,7.8 191.8,7.7 Q186.9,7.6 182.1,7.7 Q177.4,7.8 171.3,8 Q165.2,8.3 159.5,8.4 Q153.8,8.6 149.4,8.4 Q144.9,8.2 138.8,8 Q132.6,7.9 128.4,7.9 Q124.3,8 117.7,8 Q111.1,7.9 106.6,8.1 Q102.1,8.4 98.4,8.5 Q94.7,8.7 88.4,8.6 Q82.2,8.5 77.4,8.5 Q72.7,8.5 67.3,8.5 Q62,8.6 57.7,8.6 Q53.5,8.6 47.1,8.6 Q40.6,8.6 35,8.7 Q29.3,8.7 26,8.6 Q22.7,8.5 16.3,8.6 L9.9,8.6 Z'/%3E%3C/svg%3E") no-repeat 0 100%/100% .44em;padding:0 .1em .14em;margin:0 -.1em;border-radius:0}
.cb-post.cb-u-swoosh mark.cb-u{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath fill='%23F5BA2F' d='M2,9.4 C70,7 160,4.6 235,4.2 C266,4 287,3.2 297,.8 C299.2,1 300,2.6 298.8,4 C290,9.4 266,10.8 235,10.8 C160,10.6 70,10.4 2.6,11 C1.2,10.8 1,9.8 2,9.4 Z'/%3E%3C/svg%3E");background-size:100% .42em;padding-bottom:.18em}
.cb-post.cb-u-pen mark.cb-u{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath fill='%23F5BA2F' d='M2,2.6 C80,1 190,2.2 298,.8 C299.4,1.4 299.4,2.8 298,3.2 C190,4.4 80,3.2 2,5 C.6,4.4 .6,3.2 2,2.6 Z'/%3E%3Cpath fill='%23F5BA2F' d='M297.6,3 C210,6.6 100,7 14,8.6 C12.4,9.4 13,11 14.8,11.2 C100,9.6 210,9.2 298.4,5 Z'/%3E%3C/svg%3E");background-size:100% .42em;padding-bottom:.2em}
/* marks:end */

/* lists */
.cb-post ul,.cb-post ol{padding-left:1.4em}
.cb-post li+li{margin-top:.4em}
.cb-post ul li::marker{color:var(--cb-brand)}
.cb-post ol li::marker{font-family:var(--cb-head);font-weight:600;color:var(--cb-meta)}
.cb-post .cb-steps{list-style:none;padding:0;counter-reset:s}
.cb-post .cb-steps>li{counter-increment:s;position:relative;padding-left:3.2em;min-height:2.4em}
.cb-post .cb-steps>li+li{margin-top:1.1em}
.cb-post .cb-steps>li::before{content:counter(s);position:absolute;left:0;top:.05em;width:2.1em;height:2.1em;border-radius:50%;background:var(--cb-dark);color:#fff;font:600 .8em/2.1em var(--cb-head);text-align:center}
.cb-post .cb-steps b{display:block;font-family:var(--cb-head);font-weight:600}
.cb-post .cb-check{list-style:none;padding:0}
.cb-post .cb-check li{padding-left:1.8em;position:relative}
.cb-post .cb-check li::before{content:"";position:absolute;left:.15em;top:.45em;width:.9em;height:.5em;border-left:3px solid var(--cb-brand);border-bottom:3px solid var(--cb-brand);transform:rotate(-45deg)}

/* summary boxes */
.cb-post .cb-tldr,.cb-post .cb-toc{border:1px solid var(--cb-rule);border-radius:12px;padding:18px 22px;font:16px/1.6 var(--cb-head)}
.cb-post .cb-tldr{background:var(--cb-soft);border:0;border-left:4px solid var(--cb-brand);border-radius:4px 12px 12px 4px}
.cb-post .cb-label{display:block;font:600 14px/1.4 var(--cb-head);color:var(--cb-meta);margin-bottom:6px}
.cb-post .cb-toc ol{margin:0;padding-left:1.2em}
.cb-post .cb-toc a{color:inherit;text-decoration:none}
.cb-post .cb-toc a:hover{text-decoration:underline}

/* callouts */
.cb-post .cb-callout{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;padding:16px 20px;border-radius:12px;background:var(--cb-brand-soft);font:16px/1.6 var(--cb-head)}
.cb-post .cb-callout::before{content:"i";grid-row:span 2;width:24px;height:24px;border-radius:50%;background:var(--cb-dark);color:#fff;font:600 14px/24px var(--cb-head);text-align:center;margin-top:2px}
.cb-post .cb-callout b{font-weight:600}
.cb-post .cb-callout--tip{background:#e7f4ee}
.cb-post .cb-callout--tip::before{content:"\2713";background:#1f7a55}
.cb-post .cb-callout--warn{background:#fdeceb}
.cb-post .cb-callout--warn::before{content:"!";background:#b3261e}

/* quotes */
.cb-post blockquote{margin-left:0;margin-right:0;padding:2px 0 2px 22px;border-left:3px solid var(--cb-brand);font-style:italic;color:#2c333b}
.cb-post blockquote cite,.cb-post .cb-pull cite{display:block;margin-top:.6em;font:normal 14px/1.4 var(--cb-head);color:var(--cb-meta)}
.cb-post .cb-pull{margin-top:2em;margin-bottom:2em;padding:0;border:0;font:500 1.45em/1.32 var(--cb-head);letter-spacing:-.015em;font-style:normal;color:var(--cb-ink);position:relative;padding-top:.7em}
.cb-post .cb-pull::before{content:"\201C";position:absolute;top:-.3em;left:-.04em;font:700 2.6em/1 Georgia,serif;color:var(--cb-brand)}

/* stats */
.cb-post .cb-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.cb-post .cb-stat{border-top:3px solid var(--cb-brand);padding-top:10px;font:14px/1.45 var(--cb-head);color:var(--cb-meta)}
.cb-post .cb-stat b{display:block;font:500 34px/1.1 var(--cb-head);color:var(--cb-ink);letter-spacing:-.02em;margin-bottom:4px}

/* images: shown at their own size, never stretched, centered. A tall picture stops at
   --cb-img-max-h: the build writes each picture's width divided by its height as --cb-r, and the
   width limit follows from it, so nothing jumps while the file loads. A diagram (SVG) carries no
   --cb-r and keeps its drawn size, so its labels stay readable. */
.cb-post figure{margin-left:0;margin-right:0}
.cb-post img{display:block;max-width:100%;height:auto}
/* a diagram with a phone drawing: the <picture> only picks the file, the img inside is laid out as if it stood alone */
.cb-post picture{display:contents}
.cb-post figure img,.cb-post figure svg{border-radius:10px;margin-left:auto;margin-right:auto}
.cb-post figure img{max-width:min(100%,calc(var(--cb-img-max-h)*var(--cb-r,99)))}
.cb-post figure svg{width:100%}
.cb-post figcaption{font:14px/1.5 var(--cb-head);color:var(--cb-meta);margin-top:10px;text-align:center}
.cb-post figcaption small{opacity:.8}
.cb-post .cb-wide{--w:max(100%,min(1040px,calc(var(--cb-vw,100vw) - 32px)));width:var(--w);margin-left:calc((100% - var(--w))/2)}
/* a "wide" diagram grows to 1.25 times its drawn width (--cb-svg-w, written per image) and no
   further, even where the column itself is wider (D-11) */
.cb-post .cb-wide.cb-svg{--w:min(var(--cb-svg-w,900px),calc(var(--cb-vw,100vw) - 32px))}
.cb-post .cb-wide.cb-svg img,.cb-post .cb-wide.cb-svg .cb-anim{width:100%}
.cb-post .cb-bleed{width:var(--cb-vw,100vw);margin-left:calc((100% - var(--cb-vw,100vw))/2)}
.cb-post .cb-bleed img,.cb-post .cb-bleed svg{width:100%;max-width:100%;border-radius:0}
.cb-post .cb-bleed figcaption{width:100cqw;margin-left:calc((var(--cb-vw,100vw) - 100cqw)/2)}
.cb-post .cb-grid{display:grid;grid-template-columns:repeat(var(--n,2),minmax(0,1fr));gap:12px;align-items:start;justify-items:center}
.cb-post .cb-grid figcaption{grid-column:1/-1}
.cb-post .cb-grid img,.cb-post .cb-grid svg{outline:1px solid rgba(20,25,31,.08);outline-offset:-1px}
.cb-post .cb-side{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:24px;align-items:center}
.cb-post .cb-side--flip>figure{order:2}
.cb-post .cb-side>div>*+*{margin-top:.8em}
.cb-post .cb-shot{width:fit-content;max-width:min(100%,calc(var(--cb-img-max-h)*var(--cb-r,99) + 2px));margin-left:auto;margin-right:auto;border:1px solid var(--cb-rule);border-radius:12px;overflow:hidden;background:var(--cb-soft)}
.cb-post .cb-shot::before{content:"";display:block;height:28px;background:radial-gradient(circle at 16px 14px,#ff5f57 5px,transparent 5.5px),radial-gradient(circle at 34px 14px,#febc2e 5px,transparent 5.5px),radial-gradient(circle at 52px 14px,#28c840 5px,transparent 5.5px);border-bottom:1px solid var(--cb-rule)}
.cb-post .cb-shot img,.cb-post .cb-shot svg{border-radius:0}
/* small: about 60% of the column. aside: beside the text, about a third of the column */
.cb-post .cb-small{width:min(100%,max(60%,320px));margin-left:auto;margin-right:auto}
.cb-post .cb-aside{float:right;width:min(38%,260px);margin:1.5em 0 .8em 28px}
.cb-post .cb-aside--left{float:left;margin:1.5em 28px .8em 0}
.cb-post .cb-aside figcaption{font-size:13px}
/* scroll story (D-27): a diagram and the numbered list under it. The drawing pins while the steps
   scroll under it, and the page script lights the part each step names; without the script it is
   a drawing and a list. The caption comes after the steps. The drawing never takes more than --cb-story-h of the screen's height and
   is never wider than it was drawn (--cb-w, written per drawing). --cb-story-top is how far from
   the top it pins, for a site whose header stays on screen. On a screen under 560px tall (a
   phone on its side, a laptop zoomed to 200%) nothing pins. */
.cb-post .cb-story{--cb-story-h:44vh}
.cb-post .cb-story-pin{position:sticky;top:var(--cb-story-top,0px);z-index:2;padding:12px 0;background:var(--cb-story-bg,var(--cb-surface));border-bottom:1px solid var(--cb-rule)}
.cb-post .cb-story-pin .cb-story-svg{display:block;width:100%;max-width:var(--cb-w,100%);height:auto;max-height:var(--cb-story-h);border-radius:0}
.cb-post .cb-story-pin .cb-story-svg--phone{display:none}
.cb-post .cb-story-svg [data-step]{transition:opacity .3s}
.cb-post .cb-story>figcaption{margin-top:1.4em}
.cb-post .cb-story-steps{margin-top:1.4em}
.cb-post .cb-story-steps>li+li{margin-top:1.25em}
.cb-post .cb-story-steps>li::before{transition:background-color .2s,color .2s}
.cb-post .cb-story-steps>.cb-story-on::before{background:var(--cb-brand);color:var(--cb-dark)}
@media (max-height:559px){.cb-post .cb-story-pin{position:static}}
/* animated SVG: the page script plays it; replay and loop modes add one round button, shown only
   once the player has loaded (it marks <html data-cb-js>), so a button never sits there doing nothing */
.cb-post .cb-anim{position:relative;display:block;width:fit-content;max-width:100%;margin-left:auto;margin-right:auto}
.cb-post .cb-anim img{display:block;height:auto}
.cb-post .cb-anim-btn{position:absolute;right:14px;bottom:14px;width:36px;height:36px;padding:0;border-radius:50%;border:1px solid var(--cb-rule);background:var(--cb-surface);color:var(--cb-ink);display:grid;place-items:center;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.12);opacity:0;visibility:hidden;transition:opacity .25s}
html[data-cb-js] .cb-post .cb-anim-btn--on{opacity:1;visibility:visible}
.cb-post .cb-anim-btn:focus-visible{outline:2px solid var(--cb-brand);outline-offset:2px}
@container cbpost (max-width:600px){.cb-post .cb-anim-btn{right:8px;bottom:8px;width:32px;height:32px}}

/* tables: swipe on narrow columns, first column pinned */
.cb-post .cb-table{position:relative}
.cb-post .cb-table__scroll{overflow-x:auto;background:var(--cb-surface);border:1px solid var(--cb-rule);border-radius:12px;-webkit-overflow-scrolling:touch}
.cb-post .cb-table table{border-collapse:collapse;width:100%;font:15px/1.45 var(--cb-head)}
.cb-post .cb-table th,.cb-post .cb-table td{padding:12px 14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--cb-rule)}
.cb-post .cb-table thead th{background:var(--cb-soft);font-weight:600;white-space:nowrap}
.cb-post .cb-table tbody tr:last-child>*{border-bottom:0}
.cb-post .cb-table tbody tr:hover>*{background:#fbfaf7}
.cb-post .cb-table th:first-child,.cb-post .cb-table td:first-child{position:sticky;left:0;z-index:1;background:var(--cb-surface);font-weight:500;box-shadow:1px 0 0 var(--cb-rule)}
.cb-post .cb-table thead th:first-child{background:var(--cb-soft)}
.cb-post .cb-table .cb-yes{color:#1f7a55;font-weight:600}
.cb-post .cb-table .cb-no{color:#b3261e}
.cb-post .cb-table__hint{display:none;font:13px/1.4 var(--cb-head);color:var(--cb-meta);margin-top:6px}

/* code */
.cb-post pre{position:relative;font-variant-ligatures:none;background:var(--cb-dark);color:#e6eaee;border-radius:12px;padding:34px 18px 16px;overflow-x:auto;font:14px/1.65 var(--cb-mono)}
.cb-post pre[data-lang]::before{content:attr(data-lang);position:absolute;top:8px;left:18px;font:600 12px/1 var(--cb-head);color:#8b96a1}
.cb-post code{font-family:var(--cb-mono);font-size:.84em}
.cb-post :not(pre)>code{background:var(--cb-soft);border:1px solid var(--cb-rule);border-radius:5px;padding:.08em .35em}

/* FAQ */
.cb-post .cb-faq{border-top:1px solid var(--cb-rule);font-family:var(--cb-head)}
.cb-post .cb-faq details{border-bottom:1px solid var(--cb-rule)}
.cb-post .cb-faq summary{list-style:none;cursor:pointer;padding:16px 36px 16px 0;position:relative;font:500 17px/1.45 var(--cb-head)}
.cb-post .cb-faq summary::-webkit-details-marker{display:none}
.cb-post .cb-faq summary::after{content:"+";position:absolute;right:4px;top:12px;font:400 24px/1 var(--cb-head);color:var(--cb-meta);transition:transform .2s}
.cb-post .cb-faq details[open] summary::after{transform:rotate(45deg)}
.cb-post .cb-faq details>div{padding:0 0 16px;font-size:16px;line-height:1.65;color:#2c333b}

/* closing: author and lead form */
.cb-post .cb-author{display:grid;grid-template-columns:56px 1fr;gap:14px;align-items:center;margin-top:2em;font:15px/1.5 var(--cb-head);color:var(--cb-meta)}
.cb-post .cb-author>img,.cb-post .cb-author .cb-avatar{width:56px;height:56px;border-radius:50%;object-fit:cover;background:var(--cb-brand)}
.cb-post .cb-author b{display:block;color:var(--cb-ink);font-weight:600}
.cb-post .cb-author-text{min-width:0}
.cb-post .cb-author-line{display:block}
/* author layouts (D-49): card (above), compact (one slim row), full (bio and link buttons) */
.cb-post .cb-author--compact{grid-template-columns:36px 1fr;gap:10px;font-size:14px}
.cb-post .cb-author--compact>img,.cb-post .cb-author--compact .cb-avatar{width:36px;height:36px}
.cb-post .cb-author--compact b,.cb-post .cb-author--compact .cb-author-line{display:inline}
.cb-post .cb-author--compact .cb-author-line::before{content:" \00b7  "}
.cb-post .cb-author--full{grid-template-columns:72px 1fr;gap:18px;align-items:start;background:var(--cb-soft);border:1px solid var(--cb-rule);border-radius:16px;padding:20px}
.cb-post .cb-author--full>img,.cb-post .cb-author--full .cb-avatar{width:72px;height:72px}
.cb-post .cb-author--full b{font-size:17px}
.cb-post .cb-author-bio{margin:10px 0 0;color:var(--cb-ink);font:16px/1.6 var(--cb-body)}
.cb-post .cb-author--card{align-items:center}
.cb-post .cb-author b a{color:inherit;text-decoration-color:var(--cb-link)}
.cb-post .cb-author b a:hover{color:var(--cb-link)}
/* a narrow column: the full box takes a smaller photo and less padding, so the words keep their room */
@container cbpost (max-width:560px){.cb-post .cb-author--full{grid-template-columns:56px 1fr;gap:14px;padding:16px}.cb-post .cb-author--full>img,.cb-post .cb-author--full .cb-avatar{width:56px;height:56px}}
.cb-post .cb-lead-form{margin-top:2.4em;background:var(--cb-surface);color:var(--cb-ink);border:1px solid var(--cb-rule);border-top:4px solid var(--cb-brand);border-radius:18px;padding:clamp(22px,5cqw,38px);font-family:var(--cb-head)}
.cb-post .cb-lead-form h2{color:var(--cb-ink);margin:0 0 6px;font-size:26px}
.cb-post .cb-lead-form p{color:var(--cb-meta);font-size:16px;line-height:1.55;margin:0 0 18px}
.cb-post .cio-hs-form{overflow:hidden}.cb-post .cio-hs-form .hs-form-frame{margin:-40px;min-height:280px}

/* narrow post column (phones) */
@container cbpost (max-width:560px){
  .cb-post h2{font-size:1.38em}
  .cb-post .cb-pull{font-size:1.3em}
  .cb-post .cb-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .cb-post .cb-stat{font-size:13px}
  .cb-post .cb-stat b{font-size:26px}
  .cb-post .cb-grid{grid-template-columns:repeat(min(var(--n,2),2),minmax(0,1fr))}
  .cb-post .cb-grid>:first-child:nth-last-child(4){grid-column:1/-1}
  .cb-post .cb-grid[data-stack]{grid-template-columns:1fr}
  .cb-post .cb-side{grid-template-columns:1fr;gap:14px}
  .cb-post .cb-side--flip>figure{order:0}
  .cb-post .cb-aside{float:none;width:auto;margin:1.15em 0 0}
  .cb-post .cb-story--phone .cb-story-svg{display:none}
  .cb-post .cb-story--phone .cb-story-svg--phone{display:block}
  .cb-post .cb-table--swipe table{min-width:600px}
  .cb-post .cb-table__hint{display:block}
  .cb-post .cb-table--cards .cb-table__hint{display:none}
  .cb-post .cb-table--cards .cb-table__scroll{border:0;overflow:visible}
  .cb-post .cb-table--cards table{min-width:0}
  .cb-post .cb-table--cards thead{display:none}
  .cb-post .cb-table--cards tr{display:block;border:1px solid var(--cb-rule);border-radius:12px;padding:6px 0;background:var(--cb-surface)}
  .cb-post .cb-table--cards tr+tr{margin-top:10px}
  .cb-post .cb-table--cards td{display:flex;justify-content:space-between;gap:14px;border:0;padding:6px 14px;position:static;box-shadow:none;background:none;text-align:right}
  .cb-post .cb-table--cards td:first-child{font-weight:600;text-align:left;border-bottom:1px solid var(--cb-rule);padding-bottom:10px;margin-bottom:4px}
  .cb-post .cb-table--cards td:not(:first-child)::before{content:attr(data-l);color:var(--cb-meta);font-weight:400;text-align:left;flex:none}
}
/* Squarespace scroll animations: keep post content still and visible */
.cb-post .preFade,.cb-post .preSlide,.cb-post .preScale,.cb-post .preClip,.cb-post .preFlex,.cb-post .fadeIn,.cb-post .slideIn,.cb-post .scaleIn,.cb-post .clipIn{opacity:1!important;transform:none!important;clip-path:none!important;transition:none!important}
@media (prefers-reduced-motion:reduce){.cb-post *{transition:none!important}}
