/* ============================================================
   First Pull — tools trust-first layer, slim (Child B, 2026-10-01)
   Loaded AFTER /assets/css/styles.css and /assets/css/design.css
   on all /tools/ pages. Only what design.css doesn't provide:
   legacy tokens the tool inline-styles need, tool hero w/ image
   slot, related-tools cards, article measure.
   ============================================================ */

/* Tokens used by the tools' inline <style> blocks that design.css
   doesn't define (do NOT redeclare design.css tokens here). */
:root {
  --latte: #e8dcc8;
  --mocha: #5c4632;
  --ink: #2f2116;
  --gold: #d9a441;
  --green: #3f7a3a;
  --green-dark: #2f5c2c;
  --red: #b3402e;
  --caramel-dark: #934a16;
  --caramel-light: #f3e3cd;
  --espresso-deep: #1d110a;
  --font-sans: "Inter", "Avenir Next", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --shadow: 0 2px 10px rgba(42, 26, 16, 0.08);
  --max-width: 1080px;
}

/* Keep tool articles at a readable measure */
main.wrap > article {
  max-width: var(--measure);
  margin-inline: auto;
}

/* Responsive images — never blow out mobile layout */
img { max-width: 100%; height: auto; }

/* ---------------- Tool hero ---------------- */
.tool-hero {
  text-align: center;
  margin: 0 0 1.8rem;
}
.tool-hero .eyebrow.center { margin-bottom: 0.55rem; }
.tool-hero h1 {
  font-size: clamp(2rem, 5.4vw, 2.8rem);
  line-height: 1.08;
  margin: 0 0 0.5rem;
}
/* Sizing for the placeholder figure; the [data-placeholder] look
   itself comes from design.css (Higgsfield photos drop straight in). */
.tool-hero-media {
  width: 100%;
  aspect-ratio: 16 / 7;
  margin: 0 0 1.5rem;
}
@media (max-width: 560px) {
  .tool-hero-media { aspect-ratio: 16 / 10; }
}

/* ---------------- Related tools ---------------- */
.related-tools { margin: 2.4rem 0; }
.related-tools h2 {
  font-size: 1.4rem;
  margin: 0 0 1rem;
}
.related-tools ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.related-tools li a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 0.8rem;
  padding: 0.9rem 1.15rem;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.related-tools li a:hover {
  border-color: var(--caramel);
  transform: translateY(-1px);
}
.related-tools li a strong {
  display: block;
  color: var(--noir);
  font-size: 1.02rem;
}
.related-tools li a span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}
