/* ===== ALCO Tools cards =================================================
   Loaded only by the tools templates, so these are scoped by the link rather
   than by a selector.

   The cards match inc/parts.php service_card(), the site's canonical three-up
   card: h3, paragraph, .arrow link. Measured on /services - h3 19.2px weight
   600, paragraph 15.04px, arrow 14.72px, padding 32px/28.8px, gap 20px. The
   markup produces that shape, so no type sizes are set here. They come from
   the shared .card rules and cannot drift away from the rest of the site.

   The one thing that does need saying: tool blurbs vary in length, so cards
   stretch to the tallest in their row and the shorter ones were left with the
   link floating mid-card above dead space. Pinning the link to the foot makes
   every card end on the same line.

   NO SECTION PADDING HERE, DELIBERATELY.
   An earlier version of this file set section padding to match the home page.
   That was wrong. hq-spacing.css already governs section rhythm sitewide:
       body #main .section                          padding-block: --hq-section-half
       body #main .section:not(.section ~ .section)  padding-top:   --hq-section-edge
       body #main .section:last-of-type              padding-bottom:--hq-section-edge
   A page with one content section is both the first and the last, so it takes
   the edge value top and bottom - which is why /tools/text reads 40/40 while
   the home page's middle sections read 28. That is the system working, not a
   deviation from it. Overriding it here would have made the tools pages the
   only ones that ignore the shared rhythm, and would have silently diverged
   the moment those variables are retuned. */
.tools-grid .card {
  display: flex;
  flex-direction: column;
}
.tools-grid .card > :last-child {
  margin-top: auto;
  margin-bottom: 0;
}

/* ===== Width: nothing sits in a narrow column =============================
   tool-kit.css came from a site where the tool sat between two ad rails, so it
   carries reading measures that made sense in a 799px column and look broken in
   a full 1188px one - a paragraph stopping at 64% of the container with empty
   space beside it.

   alcohq does not do this: its own long-form prose (.prose.prose-wide on
   /insights) has max-width none and runs the full wrap. These are matched to
   that, so tool copy behaves like every other page rather than like a leftover
   from the old layout.

   Ad rails no longer exist - Internal Project C removed them (TCK-4985) - so
   the measures have nothing left to be correct about. */
body .tool-help p,
body .tool-category-explore > p,
body .tools-service-cta p,
body .tool-intro {
  max-width: none;
}

/* The "All tool categories" link sat hard against the grid above it. */
.tools-grid-spaced {
  margin-bottom: 2rem;
}
