/* The growth library: /tools, /templates, /glossary (growth-build.mjs).
   Built on the brochure's own tokens and components (--bg, --bg-2, --surface,
   --raised, --line, --text, --muted, --violet-*, .btn, .wrap), which every
   page carries, so it reads as the same site. Every rule is scoped to the
   gr- prefix or .gr so it cannot alter another page. The CTA panel's rules are
   appended at build time from blog-assets/blog.css. */

/* The brochure's --faint is at least 4.6:1 (WCAG AA) on every surface here,
   so the library uses it as it is (as the blog does). */
.gr{padding-bottom:88px}
.gr section{padding:0}
/* The two boxed sections keep their own padding (".gr section" above is
   more specific than a single class, so they say so twice). */
.gr section.gr-tool{padding:24px}
.gr section.gr-desk{padding:22px 24px}
.gr a{color:inherit}
.gr-wrap{padding-top:30px}
.gr :focus-visible{outline:2px solid var(--violet-hi);outline-offset:2px}

/* ── breadcrumbs ──────────────────────────────────────────────────────── */
.gr-crumbs ol{list-style:none;margin:0 0 26px;padding:0;display:flex;flex-wrap:wrap;gap:4px 0;font-size:14px;color:var(--faint)}
.gr-crumbs li{min-width:0}
.gr-crumbs li:last-child{flex:1 1 0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.gr-crumbs li+li::before{content:"›";margin:0 9px;color:var(--faint)}
.gr-crumbs a{color:var(--muted);text-decoration:none}
.gr-crumbs a:hover{color:var(--text);text-decoration:underline}
.gr-crumbs [aria-current]{color:var(--text)}

/* ── index pages ──────────────────────────────────────────────────────── */
.gr-hero{max-width:780px;margin:6px 0 36px}
.gr-hero h1{font-size:clamp(38px,5vw,62px);line-height:1.03;margin:0 0 18px;letter-spacing:-.03em}
.gr-lede{font-size:clamp(18px,1.6vw,20px);line-height:1.55;color:var(--muted);margin:0;max-width:64ch}
.gr-counts{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 0;padding:0}
.gr-counts span{padding:5px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted);font-size:14px}
.gr-empty{max-width:62ch;padding:22px 24px;border:1px dashed var(--line);border-radius:16px;color:var(--muted);font-size:17px;line-height:1.6}
.gr-empty a{color:var(--violet-ink)}
.gr-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0;padding:0;list-style:none}
.gr-grid>li{display:flex;min-width:0}
.gr-card{display:flex;flex-direction:column;width:100%;padding:22px;border:1px solid var(--line);border-radius:18px;background:var(--bg-2);text-decoration:none;transition:border-color .16s,background .16s}
.gr-card:hover{border-color:var(--violet-hi);background:var(--surface)}
.gr-card .tag{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;max-width:100%;margin:0 0 12px;padding:4px 10px;border-radius:999px;background:var(--violet-wash);color:var(--violet-ink);font-size:12.5px;font-weight:600;line-height:1.35}
.gr-card .tag .i{width:14px;height:14px;flex:none}
.gr-card h2,.gr-card h3{font-size:20px;line-height:1.2;margin:0 0 8px;color:var(--text)}
.gr-card p{color:var(--muted);line-height:1.55;margin:0;font-size:15.5px}
.gr-card .go{margin-top:auto;padding-top:16px;color:var(--violet-ink);font-weight:600;font-size:14px}
.gr-card-sm{padding:16px 18px;border-radius:14px}
.gr-card-sm h3{font-size:17px}
.gr-card-sm p{font-size:14.5px}
.gr-others{margin:56px 0 0;padding-top:26px;border-top:1px solid var(--line-soft)}
.gr-others h2{font-size:15px;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);margin:0 0 12px}
.gr-others p{display:flex;flex-wrap:wrap;gap:8px 10px;margin:0}
.gr-others a{padding:7px 14px;border:1px solid var(--line);border-radius:999px;text-decoration:none;color:var(--text);font-size:14.5px}
.gr-others a:hover{border-color:var(--violet-hi)}

/* ── glossary index: A to Z ───────────────────────────────────────────── */
.gr-alpha ul{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0 0 12px;padding:0}
.gr-alpha a,.gr-alpha span{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;font-weight:600;font-size:15px}
.gr-alpha a{border:1px solid var(--line);text-decoration:none;color:var(--text);background:var(--bg-2)}
.gr-alpha a:hover{border-color:var(--violet-hi)}
.gr-alpha span{color:#a3a4b5}
.gr-letter h2{font-size:28px;margin:40px 0 12px;padding-bottom:8px;border-bottom:1px solid var(--line-soft);scroll-margin-top:96px}
.gr-dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.gr-dl>div{padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--bg-2)}
.gr-dl dt{margin:0 0 6px;font:600 18px/1.25 var(--f-display)}
.gr-dl dt a{text-decoration:none;color:var(--text)}
.gr-dl dt a:hover{color:var(--violet-ink);text-decoration:underline}
.gr-dl dd{margin:0;color:var(--muted);font-size:15px;line-height:1.55}

/* ── a page: the article, with "On this page" beside it on wide screens ─ */
.gr-layout{display:grid;grid-template-columns:minmax(0,740px) 232px;justify-content:space-between;gap:56px;align-items:start}
.gr-article{min-width:0}
.gr-head h1{font-size:clamp(34px,4.3vw,52px);line-height:1.06;margin:14px 0 16px;letter-spacing:-.025em}
.gr-eyebrow{display:inline-flex;align-items:center;gap:7px;margin:0;padding:5px 12px 5px 10px;border-radius:999px;background:var(--violet-wash);color:var(--violet-ink);font-size:13.5px;font-weight:500}
.gr-eyebrow .i{width:15px;height:15px}
.gr-meta{display:flex;flex-wrap:wrap;gap:4px 0;margin:16px 0 0;font-size:14px;color:var(--faint)}
.gr-meta span+span::before{content:"·";margin:0 9px}
.gr-def-lede{margin:0;padding:18px 20px;border-left:3px solid var(--violet-hi);border-radius:0 12px 12px 0;background:var(--bg-2);font-size:clamp(19px,1.7vw,21px);line-height:1.5;color:var(--text);max-width:62ch}

.gr-body{margin-top:30px}
.gr-intro{margin-top:26px}
.gr-body h2{font-size:clamp(24px,2.3vw,30px);line-height:1.15;margin:46px 0 14px;scroll-margin-top:96px}
.gr-body h3{font-size:20px;line-height:1.25;margin:28px 0 10px;scroll-margin-top:96px}
.gr-body p,.gr-body li{font-size:17.5px;line-height:1.7;color:var(--muted)}
.gr-body p{margin:0 0 18px}
.gr-body li{margin:6px 0}
.gr-body strong{color:var(--text)}
.gr-body a{color:var(--violet-ink);text-decoration:underline;text-underline-offset:3px}
.gr-body a:hover{color:var(--text)}
.gr-body ul,.gr-body ol{padding-left:1.3em;margin:6px 0 22px}
.gr-body blockquote{margin:22px 0;padding:4px 0 4px 18px;border-left:3px solid var(--line)}
.gr-body code{font-size:.92em;padding:1px 5px;border-radius:5px;background:var(--raised)}
.gr-table{overflow-x:auto;margin:6px 0 24px;border:1px solid var(--line);border-radius:12px}
.gr-table table{width:100%;border-collapse:collapse;font-size:15px}
.gr-table th,.gr-table td{text-align:left;vertical-align:top;padding:10px 12px;border-bottom:1px solid var(--line-soft)}
.gr-table th{color:var(--text);background:var(--bg-2)}
.gr-table td{color:var(--muted)}
.gr-table tr:last-child td{border-bottom:0}

/* ── a tool ───────────────────────────────────────────────────────────── */
.gr-tool{margin:30px 0 8px;padding:24px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(160deg,var(--surface),var(--bg-2));scroll-margin-top:90px}
.gr-tool>h2{margin:0 0 14px;font-size:24px;line-height:1.2}
.gr-tool-root{min-height:120px}
.gr-tool-root:empty::before{content:"Loading the tool…";display:block;color:var(--faint);font-size:15px}
.gr-nojs{margin:0;padding:14px 16px;border-radius:12px;background:var(--raised);color:var(--muted);font-size:15.5px;line-height:1.55}
html:not(.gr-js) .gr-tool-root:empty::before{content:none}
/* The tools' shared form layer: every tool's buttons, fields, grids and
   action rows look like the site, whatever its own tool.css adds. Zero
   specificity of one attribute ([data-tool-root] :where(...)), so it beats
   bare element rules and a tool's own scoped rules (.ft button) still win. */
[data-tool-root] :where(button){min-height:44px;min-width:44px;padding:0 16px;border:1px solid var(--line);border-radius:10px;background:var(--raised);color:var(--text);font:inherit;font-size:15.5px;font-weight:600;line-height:1.2;cursor:pointer}
[data-tool-root] :where(button:hover:not(:disabled)){border-color:var(--violet-hi)}
[data-tool-root] :where(button.primary){background:var(--violet-lo);border-color:var(--violet-lo);color:#fff}
[data-tool-root] :where(button:disabled){opacity:.5;cursor:not-allowed}
[data-tool-root] :where(button,input,select,textarea,summary,a):focus-visible{outline:3px solid color-mix(in srgb,var(--violet-hi) 55%,transparent);outline-offset:2px}
[data-tool-root] :where(input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=color]),select,textarea){box-sizing:border-box;width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);font:inherit;font-size:16px;color-scheme:dark}
[data-tool-root] :where(textarea){min-height:96px;resize:vertical;line-height:1.45}
[data-tool-root] :where(input,textarea)::placeholder{color:var(--faint);opacity:1}
[data-tool-root] :where(input[type=radio],input[type=checkbox]){width:18px;height:18px;margin:0;accent-color:var(--violet-hi)}
[data-tool-root] :where(label,legend){color:var(--text);font-size:14.5px;font-weight:600}
[data-tool-root] :where(.tool-field){display:grid;gap:6px;align-content:start;min-width:0}
[data-tool-root] :where(.tool-grid){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
[data-tool-root] :where(.tool-actions){display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 0}
@media (max-width:680px){[data-tool-root] :where(.tool-grid){grid-template-columns:minmax(0,1fr)}}

.gr-sources{padding-left:1.3em;margin:6px 0 22px}
.gr-sources li{font-size:15.5px;line-height:1.55}
.gr-src-note{color:var(--faint);font-size:14px}
.gr-privacy{display:flex;gap:12px;align-items:flex-start;margin:26px 0 0;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--bg-2);font-size:15.5px!important;line-height:1.55!important}
.gr-privacy .i{flex:none;width:20px;height:20px;margin-top:2px;color:var(--violet-ink)}
.gr-qa{padding:4px 0 2px;border-top:1px solid var(--line-soft)}
.gr-qa h3{margin:20px 0 8px;font-size:18.5px}
.gr-qa p{font-size:16.5px}

/* ── a template ───────────────────────────────────────────────────────── */
.gr-desk{margin:30px 0 0;padding:22px 24px;border:1px solid var(--line);border-radius:18px;background:var(--bg-2)}
.gr-desk h2{margin:0 0 14px;font-size:22px;scroll-margin-top:96px}
.gr-widgets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;list-style:none;margin:0;padding:0}
.gr-widgets li{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border:1px solid var(--line-soft);border-radius:12px;background:var(--surface);min-width:0}
.gr-w-name{font-weight:600;color:var(--text);font-size:15.5px}
.gr-w-name a{color:var(--text);text-decoration:underline;text-decoration-color:var(--violet-hi);text-underline-offset:3px}
.gr-w-hint{color:var(--muted);font-size:14px;line-height:1.45}
.gr-demo{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:18px 0 0}
.gr-demo .btn{text-decoration:none}
.gr-demo .btn .i{width:16px;height:16px;margin-right:6px}
.gr-demo span{color:var(--muted);font-size:14.5px}

/* ── a glossary term ──────────────────────────────────────────────────── */
.gr-terms{margin-top:46px}
.gr-terms h2{font-size:25px;margin:0 0 14px}
.gr-terms ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.gr-terms li{display:flex;flex-direction:column;gap:3px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--bg-2)}
.gr-terms a{font-weight:600;color:var(--violet-ink);text-decoration:underline;text-underline-offset:3px}
.gr-terms span{color:var(--muted);font-size:15px;line-height:1.5}

/* ── related, back link, "On this page" ───────────────────────────────── */
.gr-related{margin-top:48px}
.gr-related h2{font-size:25px;margin:0 0 14px;scroll-margin-top:96px}
.gr-related .gr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.gr-back{margin:40px 0 0;font-size:15px}
.gr-back a{color:var(--violet-ink)}
.gr-rail{position:sticky;top:96px}
.gr-toc{border-left:1px solid var(--line-soft);padding-left:16px}
.gr-toc-h{margin:0 0 10px;font-size:12.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--faint);font-weight:600}
.gr-toc ol{list-style:none;margin:0;padding:0}
.gr-toc a{display:block;padding:5px 0;color:var(--muted);font-size:14px;line-height:1.4;text-decoration:none}
.gr-toc a:hover{color:var(--text)}

@media (max-width:1060px){
  .gr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gr-layout{grid-template-columns:minmax(0,740px);justify-content:start}
  .gr-rail{display:none}
}
@media (max-width:680px){
  .gr-wrap{padding-top:20px}
  .gr-grid,.gr-related .gr-grid,.gr-dl,.gr-widgets{grid-template-columns:minmax(0,1fr)}
  .gr-card{padding:18px}
  .gr-hero{margin-bottom:28px}
  .gr-head h1{font-size:34px}
  .gr-body p,.gr-body li{font-size:17px}
  .gr section.gr-tool{padding:18px 16px;margin-left:-4px;margin-right:-4px;border-radius:16px}
  .gr section.gr-desk{padding:18px 16px}
  .gr-demo .btn{width:100%;justify-content:center}
}
@media (prefers-reduced-motion:reduce){.gr-card{transition:none}}
@media print{
  header.top,footer,#consent,.gr-crumbs,.gr-rail,.bl-cta,.gr-others,.gr-related,.gr-back,.gr-demo{display:none!important}
  .gr{padding:0}.gr-layout{display:block}
  .gr-page,.gr-page *{color:#000!important;background:#fff!important;box-shadow:none!important}
}
.gr-audience{margin:14px 0 0;max-width:64ch;color:var(--muted);font-size:15.5px;line-height:1.55}
.gr-audience strong{color:var(--text)}
.gr-byline{margin:10px 0 0;color:var(--faint,var(--muted));font-size:13.5px}
.gr-byline a{color:inherit}

/* The call-to-action panel, copied at build time from blog-assets/blog.css. */
.bl-cta{margin:40px 0;padding:22px 24px 20px;border-radius:18px;border:1px solid color-mix(in srgb,var(--violet-hi) 42%,var(--line));
  background:radial-gradient(120% 140% at 100% 0%,color-mix(in srgb,var(--violet) 16%,transparent),transparent 60%),var(--surface);
  box-shadow:0 18px 50px -30px rgba(124,102,232,.55)}
.bl-cta .bl-cta-h{font:600 clamp(24px,2.3vw,30px)/1.12 var(--f-display);letter-spacing:-.025em;color:var(--text);margin:0 0 18px}
.bl-cta .bl-cta-grid{display:grid;grid-template-columns:max-content minmax(0,1fr);grid-template-areas:"k ." "dl trial" "v note";gap:10px 22px;align-items:center}
.bl-cta .bl-cta-k{grid-area:k;margin:0;font:600 17px/1.3 var(--f-display);letter-spacing:-.01em;color:var(--text)}
.bl-cta .bl-dl{grid-area:dl;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.bl-cta .btn{text-decoration:none;color:var(--text);min-width:0;padding:0 18px}
.bl-cta .btn.pri{color:#fff}
.bl-cta .bl-trial{grid-area:trial;justify-self:start}
.bl-cta .bl-cta-v{grid-area:v;margin:0;font-size:12.5px;line-height:1.4;color:var(--faint)}
.bl-cta .bl-cta-note{grid-area:note;margin:0;font-size:13.5px;line-height:1.45;color:var(--muted)}
.bl-cta-inline .bl-cta-grid{grid-template-areas:"k ." "dl trial" ". note"}
.bl-cta-inline .bl-cta-v{display:none}
.bl-cta-end{margin-top:56px;padding:28px 28px 24px}
.bl-cta-end .bl-cta-k{font-size:15px}
.bl-cta-wide{display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:24px 48px;align-items:center;padding:34px 36px 30px;margin-top:72px}
.bl-cta-wide .bl-cta-h{margin:0;max-width:15ch;font-size:clamp(28px,3vw,40px);line-height:1.05}
@media (max-width:960px){.bl-cta-wide{grid-template-columns:minmax(0,1fr)}.bl-cta-wide .bl-cta-h{max-width:none}}
@media (max-width:760px){.bl-cta,.bl-cta-end,.bl-cta-wide{padding:20px 18px 18px}.bl-cta .bl-cta-grid,.bl-cta-inline .bl-cta-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"k" "dl" "v" "trial" "note";gap:8px}.bl-cta-inline .bl-cta-grid{grid-template-areas:"k" "dl" "trial" "note"}.bl-cta .bl-trial{justify-self:stretch;margin-top:10px}.bl-cta .bl-cta-h{margin-bottom:14px}}
