/* The public tool pages (ROADMAP S10): /tools and /tools/<slug> */

.tool-page { max-width: 960px; }
.tool-crumb { margin: 0 0 4px; font-size: calc(15px * var(--text-scale, 1)); color: var(--ink-dim); }
.tool-head h1 { margin: 0 0 8px; }
.tool-lead { margin: 0 0 14px; font-size: calc(19px * var(--text-scale, 1)); color: var(--ink-dim); max-width: 760px; }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 18px; }

/* the screenshot: its top part, the shape of the picture (16 : 10) */
.tool-picture { margin: 0 0 24px; }
.tool-picture img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
    border: 1px solid var(--border);
    border-radius: 10px;
}
.tool-picture figcaption { margin-top: 6px; font-size: calc(15px * var(--text-scale, 1)); color: var(--ink-dim); }

.tool-body h2 { margin: 26px 0 8px; font-size: calc(22px * var(--text-scale, 1)); }
.tool-body p, .tool-body li { max-width: 760px; }
.tool-examples li { margin-bottom: 8px; }
.tool-plans { max-width: 760px; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.tool-plans li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.tool-plans span { color: var(--ink-dim); }
.tool-plans em { font-style: normal; color: var(--ink); font-weight: 600; }
.tool-note { font-size: calc(15px * var(--text-scale, 1)); color: var(--ink-dim); }

/* the other tools, and the index */
.tool-more { margin-top: 32px; }
.tool-cards, .tool-index {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    padding: 0;
    list-style: none;
}
.tool-cards a, .tool-index a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 14px;
    background-color: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
}
.tool-cards a:hover, .tool-index a:hover { border-color: var(--accent); }
.tool-cards span, .tool-index span { color: var(--ink-dim); font-size: calc(16px * var(--text-scale, 1)); }
.tool-index img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
    border-radius: 6px;
    margin-bottom: 6px;
}
