/* Tool pages and the tools hub. Builds on styles.css and pages.css. */
.tool-hero { padding: clamp(32px, 5vw, 72px) 0 clamp(56px, 8vw, 104px); }
.tool-hero h1 { font-size: clamp(2.4rem, 4.8vw, 4.2rem); max-width: 15ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); margin: 0 0 22px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.tool-visual { margin: 0; }
.tool-visual > img, .tool-visual > video { width: 100%; border-radius: var(--radius); background: var(--surface); }
.tool-visual.on-white > img { background: #fff; border: 1px solid var(--line); }
.tool-visual .demo-strip { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tool-visual figcaption { font-size: .85rem; color: var(--muted); padding-top: 12px; }

.spec-section { background: var(--surface); }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.spec { background: #fff; border-radius: var(--radius); padding: 24px 24px 26px; }
.spec h3 { font-size: 1rem; margin-bottom: 8px; }
.spec p { color: var(--muted); margin: 0; font-size: .95rem; }

.example-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.example-grid figure { margin: 0; }
.example-grid img, .example-grid video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.example-grid .wide { grid-column: span 2; }
.example-grid .wide img, .example-grid .wide video { aspect-ratio: 16 / 9; }
.example-grid .on-white img { object-fit: contain; background: #fff; border: 1px solid var(--line); }
.example-grid figcaption { font-size: .9rem; font-weight: 500; padding-top: 10px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split p { color: var(--muted); }
.split ul { color: var(--muted); padding-left: 1.2em; }
.split li { margin-bottom: 6px; }

.other-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; }
.other-tools a { display: block; height: 100%; background: var(--surface); border-radius: var(--radius-sm); padding: 18px 20px; text-decoration: none; font-weight: 500; transition: background .15s; }
.other-tools a:hover { background: var(--ketchup-tint); }
.other-tools small { display: block; color: var(--muted); font-weight: 400; font-size: .88rem; margin-top: 4px; }

.more-link { display: inline-block; margin-top: 12px; font-weight: 500; font-size: .92rem; color: var(--ketchup-dark); text-decoration: none; }
.more-link::after { content: " →"; }
.more-link:hover { text-decoration: underline; }
.tool-demo h3 a { text-decoration: none; }
.tool-demo h3 a:hover { color: var(--ketchup); }

@media (max-width: 1024px) {
  .spec-grid, .other-tools { grid-template-columns: 1fr 1fr; }
  .example-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .tool-hero h1 { max-width: none; }
  .split, .spec-grid, .other-tools { grid-template-columns: 1fr; }
  .example-grid .wide { grid-column: span 2; }
}

/* Guides */
.article-hero { padding: clamp(32px, 5vw, 64px) 0 8px; }
.article-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 20ch; }
.article-meta { color: var(--muted); font-size: .9rem; margin: 18px 0 0; }
.article { max-width: 760px; padding-bottom: clamp(64px, 9vw, 112px); }
.article > p, .article li { font-size: 1.06rem; color: #3f3a35; }
.article h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 56px; }
.article h3 { font-size: 1.2rem; margin-top: 32px; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: 8px; }
.article figure { margin: 32px 0; }
.article figure img, .article figure video { width: 100%; border-radius: var(--radius); background: var(--surface); }
.article figure.on-white img { background: #fff; border: 1px solid var(--line); }
.article figcaption { font-size: .88rem; color: var(--muted); padding-top: 10px; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.figure-pair img { aspect-ratio: 1; object-fit: cover; }
.figure-pair .on-white { object-fit: contain; background: #fff; border: 1px solid var(--line); }
.figure-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.figure-row img { aspect-ratio: 1; object-fit: cover; }
.takeaways { background: var(--surface); border-radius: var(--radius); padding: 24px 28px; margin: 32px 0; }
.takeaways h2 { font-size: 1.1rem; margin: 0 0 10px; }
.takeaways ul { margin: 0; }
.takeaways li { font-size: 1rem; }
.callout { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--ketchup-tint); border-radius: var(--radius); padding: 22px 26px; margin: 36px 0; }
.callout p { margin: 0; font-weight: 500; color: var(--ink); flex: 1 1 280px; }
.callout .btn { flex: none; }
.article .table-wrap { margin: 24px 0; }
.article .credit-table { margin-top: 0; font-size: .95rem; }
.article .credit-table td:nth-child(2) { font-weight: 400; white-space: normal; }
.article .credit-table td:first-child { font-weight: 600; }
.article .wide-table { min-width: 640px; }
.source-note { font-size: .88rem; color: var(--muted); }
.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; margin: 40px 0 0; padding: 0; list-style: none; }
.guide-list a { text-decoration: none; display: block; }
.guide-list img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.guide-list h2, .guide-list h3 { font-size: 1.35rem; margin: 16px 0 6px; }
.guide-list p { color: var(--muted); margin: 0; font-size: .95rem; }
.guide-list a:hover h2, .guide-list a:hover h3 { color: var(--ketchup); }
@media (max-width: 760px) {
  .guide-list { grid-template-columns: 1fr; }
  .figure-row { grid-template-columns: 1fr 1fr; }
}
