/* The theme's pages outside the homepage's port. Every page but the front page loads this file (functions.php), and
   wherever the landing kit loads (assets/css/kit.css) it loads after this one, so nothing here may restyle a k- class.
   What it holds:
   - the room above the content on page.php's legacy markup and the articles (.gs-page). The nav is sticky, so it
     sits in the flow and <main> starts under it: a page bundle (.pg) and the plain page (.gs-plain) take none of
     that room, since their first section (.bd, .k-hero, .k-sec-tight) brings its own top room, as every other kit
     page's main does (product.css, alternative.css, customers.css, the agencies, white label and pricing bundles);
   - page.php's head and prose (.rw-g, .rw-gt, .gs-content);
   - the small steps (.gs-steps), a numbered list of two to four short steps, each a heading and a line: what happens
     next on /book-a-demo/ and the demo funnel's three pages (theme/pages/<slug>/), the feature page's method
     (feature.css .ft-steps) set smaller; .gs-steps-lg is the method's own size, beside a section head (.gs-next);
   - the plain page on the kit (.gs-plain): 404.php and index.php, the head, the way back, the search's field and
     its rows. */
.gs-page{padding-top:calc(var(--nav-h) + 48px);min-height:70vh}
.gs-page.pg,.gs-page.gs-plain{padding-top:0}
.gs-page .rw-g{padding-top:24px}
.gs-page .rw-gt{max-width:720px}
.gs-content{max-width:720px;margin:24px auto 0;font-size:17px;line-height:1.65}
.gs-content h2{font-size:24px;line-height:1.25;margin:32px 0 12px;letter-spacing:-.01em}
.gs-content h3{font-size:19px;margin:24px 0 8px}
.gs-content p,.gs-content ul,.gs-content ol{margin:0 0 16px}
.gs-content ul,.gs-content ol{padding-left:22px}
.gs-content a{color:var(--blue)}

/* ---- the small steps ------------------------------------------------------------------------------------------ */
/* ol.gs-steps > li > div > h3 + p; the number is the list's own counter, so the markup carries none */
.gs-steps{margin:0;padding:0;list-style:none;counter-reset:gs-step;border-top:1px solid var(--line)}
.gs-steps>li{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:baseline;margin:0;padding:20px 0 22px;border-bottom:1px solid var(--line);counter-increment:gs-step}
.gs-steps>li::before{content:counter(gs-step,decimal-leading-zero);font:500 13px/1 var(--mono);letter-spacing:.14em;color:var(--k-ai-ink,var(--ai))}
.gs-steps h3{margin:0;font:600 18px/1.35 var(--display);letter-spacing:-.01em;color:var(--ink2);text-wrap:balance}
.gs-steps p{margin:6px 0 0;max-width:60ch;font:400 15.5px/1.55 var(--sans);color:var(--k-text,var(--mute));text-wrap:pretty}
.gs-steps-lg>li{grid-template-columns:64px minmax(0,1fr);padding:30px 0 32px}
.gs-steps-lg>li::before{font-size:14px}
.gs-steps-lg h3{font-size:22px;line-height:1.25;letter-spacing:-.02em}
.gs-steps-lg p{margin-top:10px;font-size:16.5px;line-height:1.6}
/* a section of next steps: the head on the left, the steps on the right, as the FAQ and the feature page's method lay
   out; under 1200 px the two stack */
.gs-next{display:grid;grid-template-columns:minmax(0,42fr) minmax(0,58fr);gap:72px;align-items:start}
.gs-next .k-head{min-width:0}

/* ---- the plain page: 404.php and index.php on the kit -------------------------------------------------------------- */
.gs-plain .k-h1,.gs-plain .k-h2{overflow-wrap:anywhere}
.gs-plain-list{max-width:860px}
/* the search's field: the query, a button beside it */
.gs-search{display:flex;gap:10px;max-width:560px;margin:30px 0 0}
.gs-search input{flex:1;min-width:0;height:48px;padding:0 16px;border:1px solid var(--line);border-radius:12px;background:var(--panel);font:400 16px/1 var(--sans);color:var(--ink)}
.gs-search input:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
/* the rows of what it found: the kind in the eyebrow, the title, a line under it */
.gs-found{margin:40px 0 0;padding:0;list-style:none;border-top:1px solid var(--line)}
.gs-found>li{margin:0;padding:24px 0 26px;border-bottom:1px solid var(--line)}
.gs-found .k-eyebrow{margin:0 0 10px;font-size:11.5px}
.gs-found-t{font:600 21px/1.3 var(--display);letter-spacing:-.015em;color:var(--ink2);text-decoration:none;text-wrap:balance}
.gs-found-t:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.gs-found-t:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:6px}
.gs-found p{margin:8px 0 0;max-width:68ch;font:400 16px/1.55 var(--sans);color:var(--mute);text-wrap:pretty}
.gs-pager{display:flex;flex-wrap:wrap;gap:14px 24px;margin:28px 0 0}
.gs-pager .k-link{margin-top:0}

@media (max-width:1200px){
  .gs-next{grid-template-columns:minmax(0,1fr);gap:40px;max-width:780px}
}
@media (max-width:760px){
  .gs-steps>li{grid-template-columns:40px minmax(0,1fr);padding:18px 0 20px}
  .gs-steps h3{font-size:17px}
  .gs-steps p{font-size:15px}
  .gs-steps-lg>li{grid-template-columns:48px minmax(0,1fr);padding:22px 0 24px}
  .gs-steps-lg h3{font-size:19px}
  .gs-steps-lg p{margin-top:8px;font-size:16px}
  .gs-next{gap:28px}
  .gs-found{margin-top:32px}
  .gs-found>li{padding:20px 0 22px}
  .gs-found-t{font-size:19px}
  .gs-found p{font-size:15.5px}
}
