/* Tools for the Job — trade tool wall. Reuses .cool-card/.tool-layout/.tool-sidebar/.ad-slot/
   .amazon-* from cool-things.css and style.css; this file only adds what's specific here. */

.tftj-trade-card { position: relative; }
.tftj-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-cyan);
  color: var(--color-cyan-bright);
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 0.4em;
}

.tftj-tier-section { margin-bottom: var(--space-4); }

/* Second photo, spliced between tier sections (after Must-have) — shorter than the page's top
   hero box so it reads as a mid-page break rather than a second hero. */
.tftj-section-img-box { aspect-ratio: 16 / 9; margin: var(--space-1) 0 var(--space-4); }

.tftj-tier-section h3 { color: var(--color-cyan-bright); border-bottom: 1px solid var(--color-border); padding-bottom: 0.3em; }
.tftj-tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-2); }

.tftj-tool-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-box);
  padding: var(--space-2);
  background: rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
/* Per-tool card photo, when a tool has one — fixed aspect ratio (matches the 400x300 source files)
   so the image reserves its space before it loads and nothing shifts around it. */
.tftj-tool-card-img-box {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--radius-box);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.tftj-tool-card-img-box img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tftj-illustration-tag { position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; font-size: 0.7rem; border-radius: 4px; background: rgba(0,0,0,0.6); color: #fff; }
.tftj-tool-card h4 { margin: 0; color: var(--color-white); font-size: 1rem; }
.tftj-tool-card p { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; }
.tftj-safety-note { color: var(--color-magenta-bright) !important; font-size: 0.82rem !important; }
/* Full width so "Check price on Amazon" always has the whole card to sit on one line, on any
   viewport, instead of wrapping across several lines in a narrow flex-content button. */
.tftj-amazon-btn { display: flex; justify-content: center; margin-top: auto; align-self: stretch; width: 100%; min-height: 44px; }

@media (max-width: 480px) {
  .tftj-tool-grid { grid-template-columns: 1fr; }
}
