/* The Guide (q996) and See it in action (q998). Loaded after site.css on those pages only; same tokens, same look. */

/* top: breadcrumb and the on-this-page chips */
.crumbs{margin:6px 0 18px;font-size:15px;color:var(--on-dark-3)}
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.crumbs li+li::before{content:"›";margin-right:6px;color:var(--on-dark-3)}
.crumbs a{color:var(--on-dark-2);text-decoration:none;border-bottom:1px solid rgba(255,255,255,.25)}
.crumbs a:hover{color:#fff;border-color:var(--mint)}
.crumbs [aria-current]{color:#fff}
.g-head{padding:20px 0 64px;max-width:820px}
.g-head h1{font-weight:800;font-size:clamp(40px,5.4vw,64px);line-height:1;letter-spacing:-.03em}
.g-head .sub{max-width:640px;margin-bottom:0}
.toc{list-style:none;margin:26px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.toc a{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:7px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.22);color:var(--on-dark-2);text-decoration:none;font-size:15px;transition:background-color .2s,border-color .2s}
.toc a:hover{background:rgba(255,255,255,.08);border-color:var(--mint);color:#fff}
.toc b{font:800 13px var(--head);color:var(--amber)}

/* one step: words on the left, the picture on the right */
.g-steps{counter-reset:g}
.g-step{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,340px);gap:clamp(32px,6vw,80px);align-items:center;padding:clamp(48px,6vw,80px) 0;scroll-margin-top:12px}
.g-step+.g-step{border-top:1px solid var(--line)}
.g-step.wide{grid-template-columns:1fr;gap:28px}
.g-step.wide .g-txt{max-width:760px}
.g-step.noshot{grid-template-columns:1fr}
.g-num{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--forest);color:#fff;font:800 18px var(--head);margin-bottom:14px}
.g-step h2{font-weight:800;font-size:clamp(28px,3vw,38px);line-height:1.08;letter-spacing:-.02em;margin:0 0 12px}
.g-step .lead{font-size:19px;color:var(--ink-2);max-width:620px}
.taps{list-style:none;margin:18px 0 0;padding:0;counter-reset:t;max-width:620px}
.taps li{counter-increment:t;position:relative;padding:8px 0 8px 40px;font-size:17px;color:var(--ink)}
.taps li::before{content:counter(t);position:absolute;left:0;top:8px;width:28px;height:28px;border-radius:50%;background:#e7f2ec;color:#1f5a3c;display:grid;place-items:center;font:800 14px var(--head)}
.taps b,.lead b,.tip b{color:var(--ink)}
.g-step .ticks{max-width:620px}
.tip{margin-top:18px;max-width:620px;background:#fff;border:1px solid var(--line);border-left:4px solid var(--amber);border-radius:14px;padding:14px 16px;font-size:16px;color:var(--ink-2)}
.tip::before{content:"Good to know";display:block;font-size:13px;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:var(--amber-ink);margin-bottom:4px}
.lvl{display:inline-block;font-size:13px;font-weight:700;border-radius:999px;padding:3px 10px;background:#e7f2ec;color:#1f5a3c;vertical-align:middle;margin-left:6px;letter-spacing:0;text-transform:none}
.g-shot{width:min(320px,82%);margin:0 auto;border-radius:36px;border:10px solid #1a221f;background:#1a221f;overflow:hidden;box-shadow:0 30px 70px rgba(20,40,30,.22)}
.g-shot img{border-radius:26px;width:100%}
.g-wide{border-radius:22px;border:10px solid #1a221f;background:#1a221f;box-shadow:0 30px 70px rgba(20,40,30,.2);overflow:hidden}
.g-wide img{border-radius:12px;width:100%}

/* level cards on Getting started */
.g-lv{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:22px}
.g-lv .lv{padding:22px 22px;gap:8px}
.g-lv .lv h3{font-size:24px}
.g-lv .lv p{font-size:16px}

/* previous / next */
.g-pn{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:8px 0 clamp(56px,7vw,88px)}
.g-pn a{display:flex;flex-direction:column;gap:4px;padding:20px 22px;border-radius:20px;background:var(--card);border:1px solid var(--line);text-decoration:none;transition:transform .25s var(--ease),box-shadow .25s var(--ease)}
.g-pn a:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(20,40,30,.1)}
.g-pn small{font-size:14px;color:var(--ink-3)}
.g-pn b{font:800 21px var(--head);color:var(--forest)}
.g-pn .nx{text-align:right;grid-column:2}

/* Guide home: the eight areas */
.g-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.g-grid a{height:100%;display:flex;flex-direction:column;gap:8px;padding:24px 22px;border-radius:24px;background:var(--card);border:1px solid var(--line);text-decoration:none;transition:transform .3s var(--ease),box-shadow .3s var(--ease)}
.g-grid a:hover{transform:translateY(-4px);box-shadow:0 22px 50px rgba(20,40,30,.12)}
.g-grid .ic{font-size:30px;line-height:1}
.g-grid .n{font:800 13px var(--head);color:var(--amber-ink);letter-spacing:.1em}
.g-grid h2{font-weight:800;font-size:22px;letter-spacing:-.01em;color:var(--ink)}
.g-grid p{color:var(--ink-2);font-size:16px}
.g-grid .go{margin-top:auto;padding-top:6px;color:var(--forest);font-weight:700;font-size:15px}
.g-grid li:first-child a{background:linear-gradient(160deg,var(--forest),var(--leaf));border-color:transparent}
.g-grid li:first-child h2,.g-grid li:first-child .go{color:#fff}
.g-grid li:first-child p{color:#dcebe4}
.g-grid li:first-child .n{color:var(--amber)}
.g-index{padding:clamp(48px,6vw,80px) 0}
.g-help{margin-top:36px;color:var(--ink-3);font-size:16px}

/* See it in action */
.sh-grid{list-style:none;margin:0;padding:clamp(48px,6vw,80px) 0;display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.sh-grid figure{margin:0;height:100%;display:flex;flex-direction:column;gap:18px;background:var(--card);border:1px solid var(--line);border-radius:28px;padding:26px 22px 24px}
.sh-grid .sh-pic{flex:1;display:grid;place-items:center;background:linear-gradient(160deg,var(--forest-0),var(--forest-1) 55%,var(--forest-2));border-radius:20px;padding:26px 18px;min-height:420px}
.sh-grid .g-shot{width:min(230px,80%);border-width:8px;border-color:#0b1210;background:#0b1210;box-shadow:0 26px 50px rgba(0,0,0,.4)}
.sh-grid .g-shot img{border-radius:20px}
.sh-grid .g-wide{width:100%;border-width:8px;border-color:#0b1210;background:#0b1210;border-radius:18px;box-shadow:0 26px 50px rgba(0,0,0,.4)}
.sh-grid figcaption{font-size:17px;color:var(--ink-2)}
.sh-grid figcaption b{display:block;font:800 21px var(--head);color:var(--ink);margin-bottom:2px}
.sh-grid a{color:var(--forest);font-weight:700;text-decoration:none}
.sh-grid a:hover{text-decoration:underline}

@media (max-width:1040px){
  .g-grid{grid-template-columns:1fr 1fr}
  .sh-grid{grid-template-columns:1fr 1fr}
  .g-lv{grid-template-columns:1fr 1fr}
  .g-lv .lv.fam{grid-column:1 / -1}
}
@media (max-width:760px){
  .g-head{padding-bottom:44px}
  .g-step{grid-template-columns:1fr;gap:28px}
  .g-step .lead{font-size:17px}
  .taps li{font-size:16px}
  .g-shot{width:min(270px,78%);border-width:8px;border-radius:30px}
  .g-shot img{border-radius:22px}
  .g-wide{border-width:6px;border-radius:14px}
  .g-wide img{border-radius:8px}
  .g-pn{grid-template-columns:1fr}
  .g-pn .nx{grid-column:auto}
  .g-grid,.sh-grid,.g-lv{grid-template-columns:1fr}
  .sh-grid .sh-pic{min-height:0}
}
