/* ------------------------------------------------------------------
   tools/assets/tools-hub.css (v=2, 2026-10-19): the /tools hub only
   (tools.html, <body class="sl tl th">). Loaded after /landing.css,
   /seo-landing.css and /tools/assets/tools.css:
     <link rel="stylesheet" href="/tools/assets/tools-hub.css?v=2">
   The hub reuses the homepage-style pieces (.sl-hero, .exg cards,
   .mb-grid, .faq-list, .final); these rules only lay out the tool
   cards under the h1 (two big screenshot cards a row), the step
   numbers on the "idea to published game" row and a centred closing
   block. Nothing starts invisible, and reduced motion drops the lift.
   ------------------------------------------------------------------ */

/* ---------- the tools themselves, right under the h1: real screenshots of each tool ---------- */
.th .th-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: 100%; max-width: 1040px; margin: 44px auto 0; text-align: left; }
.th .th-tools .exg-card { transition: border-color .2s ease, transform .2s ease; }
.th .th-tools .exg-card:hover { transform: translateY(-2px); }
.th .th-tools .exg-art { background: #15101f; }
/* the screenshots: a phone gets a closer crop of each tool's headline figure (hub-*-phone.webp), and a soft
   fade at the bottom edge, so a crop never ends on a hard cut */
.th .th-shot picture, .th .th-shot img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.th .th-shot img { object-fit: cover; object-position: top center; }
.th .th-shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16%; background: linear-gradient(180deg, rgba(21, 16, 31, 0), rgba(21, 16, 31, .85)); pointer-events: none; }
.th .th-tools .exg-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.th .th-tools .exg-title { font-size: 19px; font-weight: 650; line-height: 1.3; letter-spacing: -.015em; }
.th .th-tools .exg-prompt { font-size: 14.5px; }
.th-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: auto; padding-top: 14px; }
.sl .th-card-foot .exg-go { margin: 0; font-size: 14px; }
.th-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.th-shot-note { max-width: 720px; margin: 18px auto 0; font-size: 13px; line-height: 1.5; text-align: center; color: #8f84a3; text-wrap: pretty; }
.th-shot-note a { color: var(--rc-text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rc-line-hover); }

/* the scripts band: one wide card under the four tools */
.th-scripts-link { max-width: 1040px; margin: 20px auto 0; }
.th-scripts-link .tl-tile { flex-direction: row; align-items: center; gap: 18px; text-align: left; }
.th-scripts-link .tl-tile-ico { flex: none; }
.th-scripts-link .tl-tile-name, .th-scripts-link .tl-tile-desc { display: block; }
.th-scripts-link .tl-tile-name { margin: 0; }
.th-scripts-link .tl-tile-go { margin: 0 0 0 auto; padding: 0; white-space: nowrap; }

/* ---------- idea to published game: four numbered cards ---------- */
.th-flow .mb-card { display: flex; flex-direction: column; }
.th-flow .mb-tag { font-variant-numeric: tabular-nums; }
.th-flow .mb-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: auto 0 0; padding: 14px 0 0; list-style: none; }
.th-flow .mb-links a { font-size: 13.5px; font-weight: 600; color: #a78bfa; text-decoration: none; }
.th-flow .mb-links a:hover { color: #c4b5fd; text-decoration: underline; text-underline-offset: 3px; }
.th-flow .mb-what { margin-bottom: 4px; }

/* ---------- link-to-this-page snippet and the centred closing block ---------- */
.th-link-box { max-width: 760px; margin: 28px auto 0; }
.th .final-inner { display: block; max-width: 760px; text-align: center; }
.th .final-inner h2 { max-width: none; margin: 0 auto; }
.th .final .section-lead { margin-left: auto; margin-right: auto; }
.th .final-actions { justify-content: center; }

@media (max-width: 760px) {
  /* phones: the four tools stack (the gallery rule in landing.css would scroll them sideways) */
  .th .th-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; overflow: visible; margin: 36px 0 0; padding: 0; }
  .th .th-tools .exg-card { flex: none; }
  .th-scripts-link .tl-tile { flex-direction: column; align-items: flex-start; gap: 10px; }
  .th-scripts-link .tl-tile-go { margin: 6px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .th .th-tools .exg-card, .th .th-tools .exg-card:hover { transform: none; transition: none; }
}
