/* The free tools in the painted theme (inc/tools.php, loaded on a tool's page after lines.css): the bridge between the
   live tool component's own stylesheet (theme/assets/css/tool-<component>.css, kept on the page with its script) and
   the paper, and what every tool page shares. The component reads the live kit's tokens, which a painted page does not
   load: they are given here, inside the tool's ground only, from the painted ones (a pressed style in the line's
   colours), and its two cards take the paper's white card with the soft shadow of the painted pieces. Its layout, its
   widths and its states stay the component's, so a tool has one source. */

/* the header's wash is wider on a tool's page, so the tool's two cards stand side by side at the widths they are drawn
   for (the preview opens on Computer from a column of 414 px) */
.gsp-tl .pp-head-pic { --pp-pic: 1180px; padding: 34px 40px 30px; }

/* ---------- the tool's ground: the live tokens from the painted ones ---------- */
.gsp-tool {
  --panel: #fff; --k-card: #fff; --tl-card: #fff; --tg-card: #fff; --sc-card: #fff;
  --ink2: var(--ink); --k-text: var(--text); --blue: var(--data); --ok: var(--ai);
  --k-ai-soft: var(--ct); --k-ai-ink: var(--cd);
  display: grid; gap: 14px; text-align: left;
}
/* every card a component draws, the formatter's two and the generator's form and results, on the paper's white card */
.gsp-tool .tl-card, .gsp-tool .tg-card, .gsp-tool .tg-r, .gsp-tool .tg-list-lines, .gsp-tool .sc-card { border: 0; border-radius: 18px; box-shadow: 0 1px 2px rgba(70, 50, 36, .06), 0 18px 34px -26px rgba(80, 52, 40, .5); }
/* the live kit's channel tag (the cadence builder's plan): LinkedIn in the product's blue, email in its orange */
.gsp-tool .k-ch { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font: 600 11px/1 var(--mono); white-space: nowrap; }
.gsp-tool .k-ch::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.gsp-tool .k-ch-li { background: var(--data-t); color: var(--data-d); }
.gsp-tool .k-ch-em { background: var(--out-t); color: var(--out-d); }
.gsp-tool .tg-list-lines .tg-r { box-shadow: none; }
.gsp-tool .tg-in { border-radius: 10px; }
.gsp-tool .tg-btn { justify-content: center; height: 44px; }
.gsp-tool .k-btn-sm { height: 36px; background: #fff; box-shadow: var(--sh-1); color: var(--ink); }

/* a tool with a piece beside it (options.beside): the tool on the left, the piece on the right, one under the other on
   a phone */
.gsp-tool-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.gsp-tool-main { display: grid; gap: 14px; min-width: 0; }
.gsp-tool-2 .tg { max-width: none; }
.gsp-tool .k-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gsp-tool .k-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; margin: 0; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ink); font: 600 14px/1 var(--sans); color: #fff; cursor: pointer; }
.gsp-tool .k-btn:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.gsp-tool .k-sample { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--sunk); font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.gsp-tool .k-sample[hidden] { display: none; }

/* the privacy line under the tool, with its lock and the policy */
.gsp-tool .tp-priv { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--mute); text-align: center; text-wrap: balance; }
.gsp-tool .tp-priv svg { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; color: var(--cd); }
.gsp-tool .tp-priv a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* the header's tag: Free tools, a link to the hub, then the tool */
.pp-head .tag .gsp-tl-hub { color: inherit; text-decoration: none; }
.pp-head .tag .gsp-tl-hub:hover { text-decoration: underline; text-underline-offset: 3px; }
.pp-head .tag .gsp-tl-sep { margin: 0 -2px; color: var(--mute-2); font-weight: 500; }
/* a long tool name wraps inside the tag on a phone instead of running off the page */
@media (max-width: 760px) {
  .gsp-tl .pp-head .tag { flex-wrap: wrap; justify-content: center; max-width: 100%; height: auto; min-height: 30px; padding-block: 6px; line-height: 1.3; white-space: normal; text-align: center; }
}

/* a page that leads with examples: the link down to the tool under the dek */
.pp-head .under .gsp-jump { gap: 8px; }
.pp-head .under .gsp-jump svg.i { width: 15px; height: 15px; transform: rotate(90deg); }

/* ---------- the examples a page leads with: a card for each group, its lines with their slots ---------- */
/* three a row, a shorter last row centred under them */
.gsp-tex { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; text-align: left; }
.gsp .gsp-tex-g { flex: 0 1 calc((100% - 28px) / 3); min-width: 0; padding: 18px 20px 16px; border-radius: 18px; box-shadow: var(--sh-1); }
.gsp-tex-g h3 { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.gsp-tex-n { margin: 4px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--mute); }
.gsp-tex-g ul { display: grid; gap: 0; margin: 12px 0 0; padding: 0; list-style: none; }
.gsp-tex-g li { padding: 8px 0; border-top: 1px dashed rgba(70, 50, 36, .16); font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.slot { padding: 0 5px; border-radius: 6px; background: var(--ct); font: 500 .88em/1.5 var(--mono); color: var(--cd); white-space: nowrap; }
.gsp-tex-after { max-width: 760px; margin: 22px auto 0; font-size: 14px; line-height: 1.55; color: var(--text); text-align: center; text-wrap: pretty; }
.gsp-tex-after a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* the tool's own section, its form on the line's wash */
.gsp-tsec-pic { max-width: 900px; margin: 40px auto 0; padding: 34px 40px 30px; border-radius: 32px; }

/* ---------- the guide around a tool: In this guide held beside a reading column ---------- */
.gsp-tg { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; max-width: 1080px; margin: 0 auto; text-align: left; }
.gsp-tg-toc { position: sticky; top: 96px; align-self: start; padding: 18px 18px 14px; border-radius: 18px; background: #fff; box-shadow: var(--sh-1); }
.gsp-tg-toc p { margin: 0 0 10px; font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cd); }
.gsp-tg-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.gsp-tg-toc a { display: flex; gap: 10px; padding: 6px 8px; border-radius: 10px; font-size: 13.5px; font-weight: 500; line-height: 1.35; color: var(--ink); text-decoration: none; }
.gsp-tg-toc a:hover { background: var(--ct); color: var(--cd); }
.gsp-tg-toc a i { flex: none; font: 600 11px/1.6 var(--mono); font-style: normal; color: var(--mute); }
.gsp-tg-col { max-width: 720px; }
.gsp-tg-sec { scroll-margin-top: 96px; }
.gsp-tg-sec + .gsp-tg-sec { margin-top: 46px; padding-top: 40px; border-top: 1px dashed rgba(70, 50, 36, .16); }
.gsp-tg-sec h2 { margin: 0 0 14px; font-size: 30px; font-weight: 560; line-height: 1.15; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.gsp-tg-sec p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.65; color: var(--text); text-wrap: pretty; }
/* a reading line of about 75 characters */
.gsp-tg-sec > p, .gsp-tg-list { max-width: 600px; }
.gsp-tg-sec p a { color: var(--cd); text-decoration: underline; text-underline-offset: 3px; }
.gsp-tg-list { display: grid; gap: 8px; margin: 4px 0 16px; padding: 0; list-style: none; }
.gsp-tg-list li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.55; color: var(--text); }
.gsp-tg-list li::before { content: ""; position: absolute; top: .55em; left: 4px; width: 9px; height: 9px; border-radius: 52% 48% 57% 43% / 45% 55% 46% 54%; background: var(--c); }
.gsp-tg-part { margin-top: 18px; }

/* the hand-off block's two calls */
.feat-t .under { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px; margin-top: 22px; }

/* ---------- More free tools ---------- */
.gsp-tmores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 40px 0 0; padding: 0; list-style: none; }
.gsp .gsp-tmore { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px; border-radius: 18px; box-shadow: var(--sh-1); color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.gsp-tmore .disc { width: 40px; height: 40px; }
.gsp-tmore .disc svg.i { width: 19px; height: 19px; }
.gsp-tmore-t { display: grid; flex: 1; gap: 3px; min-width: 0; }
.gsp-tmore-t b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.gsp-tmore-t small { font-size: 13px; line-height: 1.4; color: var(--mute); }
.gsp-tmore > svg.i { flex: none; width: 16px; height: 16px; color: var(--mute); transition: transform .2s ease; }
.gsp .gsp-tmore:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(70, 50, 36, .06), 0 14px 30px -16px rgba(80, 52, 40, .36); }
.gsp-tmore:hover > svg.i { transform: translateX(3px); color: var(--ink); }
.gsp-tmore:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }

@media (max-width: 1000px) {
  .gsp-tmores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gsp .gsp-tex-g { flex-basis: calc((100% - 14px) / 2); }
}
@media (max-width: 900px) {
  .gsp-tool-2 { grid-template-columns: minmax(0, 1fr); }
  .gsp-tg { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gsp-tg-toc { position: static; }
  .gsp-tg-sec h2 { font-size: 25px; }
}
@media (max-width: 760px) {
  .gsp-tl .pp-head-pic, .gsp-tsec-pic { padding: 22px 12px 14px; border-radius: 24px; }
  .gsp .gsp-tex-g { flex-basis: 100%; }
}
@media (max-width: 760px) {
  .gsp-tmores { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .gsp-tmore, .gsp-tmore > svg.i { transition: none; }
}
