/* Each tool's page, tools/<tool>/index.html (written by tools/build_tool_pages.py): what a visitor arriving
   from a search reads. Colours and type come from the site's tokens in assets/styles.css; --tp-accent is the
   tool's own colour, set on <body>. */
html, body { overflow-x: clip; }
body.tp { background: var(--bg); --card: var(--tp-accent); }
.tp-top { background: var(--surface); border-bottom: 1px solid var(--border); }
.tp-top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 56px; }
.tp-home { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--text); text-decoration: none; }
.tp-home svg { width: 24px; height: 17px; }
.tp-crumb { color: var(--text-muted); font-size: 15px; }
.tp-crumb a { color: inherit; text-underline-offset: 2px; }
.tp-wrap { max-width: 1040px; }
.tp-hero { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 20px; align-items: start; padding: 44px 0 28px; }
.tp-icon.app-icon { width: 64px; height: 64px; border-radius: 17px; background: var(--card); display: grid; place-items: center; grid-row: span 3; box-shadow: none; }
.tp-icon.app-icon svg { width: 44px; height: 44px; }
.tp-h1 { margin: 0; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; letter-spacing: -.02em; overflow-wrap: break-word; min-width: 0; }
.tp-lead { margin: 10px 0 0; max-width: 62ch; font-size: 18px; color: var(--text-muted); }
.tp-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 20px 0 0; }
.tp-go small { font-size: 13.5px; color: var(--text-muted); }
.tp-shot { margin: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 18px 40px -28px rgba(20, 30, 50, .45); }
.tp-shot img { display: block; width: 100%; height: auto; }
.tp-shot figcaption { padding: 9px 14px; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border); }
.tp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 40px; margin: 40px 0 0; }
.tp-h2 { margin: 0 0 10px; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
.tp-list, .tp-steps { margin: 0; padding-left: 22px; line-height: 1.7; }
.tp-list li + li, .tp-steps li + li { margin-top: 4px; }
.tp-sec { margin: 40px 0 0; }
.tp-faq { border-top: 1px solid var(--border); }
.tp-faq details { border-bottom: 1px solid var(--border); }
.tp-faq summary { cursor: pointer; padding: 13px 2px; font-weight: 600; }
.tp-faq p { margin: 0 0 14px; max-width: 68ch; color: var(--text-muted); }
.tp-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 20px; margin: 0; padding: 0; list-style: none; }
.tp-more a { color: var(--accent); text-underline-offset: 2px; font-weight: 600; }
.tp-more small { display: block; color: var(--text-muted); font-size: 13px; }
.tp-foot { margin: 48px 0 0; padding: 22px 0 32px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13.5px; }
.tp-foot a { color: inherit; text-underline-offset: 2px; }
.tp-home:focus-visible, .tp-crumb a:focus-visible, .tp-faq summary:focus-visible, .tp-more a:focus-visible, .tp-foot a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
@media (max-width: 760px) {
  .tp-cols { grid-template-columns: minmax(0, 1fr); }
  .tp-hero { grid-template-columns: minmax(0, 1fr); padding-top: 30px; }
  .tp-icon.app-icon { grid-row: auto; margin-bottom: 10px; width: 56px; height: 56px; }
}
