/* Tool guide pages: chalkbox.cc/tools/<id>/ */

.g-hero { padding: 28px 0 0; }
.g-board { border-radius: 6px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.g-crumb { margin: 0 0 8px; font-weight: 700; font-size: 15px; }
.g-crumb a { color: var(--chalk-dim); text-decoration: none; }
.g-crumb a:hover { color: var(--chalk); text-decoration: underline; }
.g-title { margin: 0; font-size: clamp(52px, 8vw, 88px); line-height: 1; color: var(--tool-chalk); }
.g-tagline { font-size: clamp(18px, 2.2vw, 22px); color: var(--chalk-dim); max-width: 48ch; margin: 10px 0 24px; }
.g-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.g-cta .btn-chalk { background: var(--tool-chalk); box-shadow: 0 4px 0 color-mix(in srgb, var(--tool-chalk) 55%, black); color: #1d2a24; }
.g-cta .g-url { color: var(--chalk-dim); font-weight: 700; font-size: 15px; }
.g-icon { width: clamp(90px, 14vw, 150px); color: var(--tool-chalk); filter: url(#chalk-rough); opacity: .9; }
@media (max-width: 640px) { .g-board { grid-template-columns: 1fr; } .g-icon { display: none; } }

.g-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .g-layout { grid-template-columns: 1fr; } }

.g-block { padding: 30px 28px; margin-bottom: 28px; }
.g-block h2 { font: 700 36px/1.1 var(--font-chalk); margin: 0 0 12px; }
.g-block p { margin: 0 0 10px; color: var(--ink-soft); }

/* Screenshot frame */
.g-shot { margin: 0 0 28px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--paper); }
.g-shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: color-mix(in srgb, var(--ink) 8%, var(--paper)); font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.g-shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); display: inline-block; }
.g-shot-bar span { margin-left: 10px; }
.g-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
/* Step-by-step carousel */
.g-tour { margin: 0 0 28px; }
.g-tour .g-shot { margin: 0; }
.g-stage { position: relative; background: var(--board); }
.g-slide { position: relative; animation: g-in .35s ease; }
.g-slide[hidden] { display: none; }
@keyframes g-in { from { opacity: 0; transform: translateX(12px); } }
.g-slide img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.g-marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.g-ring, .g-box, .g-arrow { fill: none; stroke: #e2573b; stroke-width: 4; vector-effect: non-scaling-stroke; stroke-linecap: round; filter: drop-shadow(0 0 2px rgba(255,255,255,.9)); }
.g-ring { animation: g-pulse .6s .15s ease-out backwards; }
.g-box { stroke-dasharray: 10 7; stroke-width: 3; }
.g-arrow { stroke-width: 4.5; }
@keyframes g-pulse { from { opacity: 0; stroke-width: 12; } }
.g-label {
  position: absolute; white-space: nowrap; pointer-events: none;
  font: 700 clamp(13px, 2vw, 22px)/1 var(--font-chalk);
  background: #e2573b; color: #fff; padding: 4px 10px 5px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.g-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(20, 30, 25, .42); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(3px); transition: background .15s, transform .15s;
}
.g-nav:hover { background: rgba(20, 30, 25, .7); transform: translateY(-50%) scale(1.08); }
.g-nav svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.g-prev { left: 12px; }
.g-next { right: 12px; }
.g-count { position: absolute; right: 12px; top: 12px; z-index: 2; background: rgba(20,30,25,.6); color: #fff; font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.g-tour-caption { display: flex; gap: 14px; align-items: flex-start; padding: 18px 4px 6px; min-height: 92px; }
.g-tour-caption h3 { margin: 2px 0 2px; font-size: 20px; }
.g-tour-caption p { margin: 0; color: var(--ink-soft); }
.g-step-num { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 700 28px/1 var(--font-chalk); background: var(--tool-color); color: #fff; }
.g-dots { display: flex; gap: 8px; justify-content: center; }
.g-dot { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; background: var(--border); transition: width .2s, background .2s; }
.g-dot[aria-selected="true"] { width: 28px; border-radius: 999px; background: var(--tool-color); }
@media (max-width: 640px) {
  .g-nav { width: 40px; height: 40px; }
  .g-label { padding: 2px 7px 3px; }
}

.g-shot-empty { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--board); color: var(--chalk-dim); font: 700 30px var(--font-chalk); }

/* Tutorial steps */
.g-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 16px; }
.g-steps li { position: relative; padding: 4px 0 4px 58px; }
.g-steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font: 700 28px/1 var(--font-chalk);
  background: var(--tool-color); color: #fff;
}
.g-steps h3 { margin: 0 0 2px; font-size: 19px; }
.g-steps p { margin: 0; }

.g-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.g-features li { padding-left: 30px; position: relative; line-height: 32px; }
.g-features li::before { content: "✓"; position: absolute; left: 4px; color: var(--tool-color); font-weight: 800; }

.g-side .card { padding: 24px 22px; margin-bottom: 24px; }
.g-side h3 { margin: 0 0 8px; font: 700 28px/1.1 var(--font-chalk); }
.g-side p { margin: 0; color: var(--ink-soft); }
.g-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.g-other { display: grid; gap: 10px; }
.g-other a { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); }
.g-other a:hover { border-color: var(--accent); }
.g-other svg { width: 26px; height: 26px; }
