/* The tool page's own chrome: hero icon, trust badges, page-spec surfaces,
 * review cards and the sidebar card. One owner: this sheet.
 *
 * Extracted from an inline `<style>` in `tool_detail.html` (spec
 * `page-weight-budget`): the block was re-shipped in full inside the HTML of
 * every tool page, where it cannot be cached. It is page chrome — no rule is
 * derived from a tool's row — so it is the same bytes for all of them. Tokens
 * only, so both themes follow the kit. The print stylesheet is untouched: it
 * lives in `documents-formats.css`, not here.
 */

.tool-hero-icon {
    border-left: 2px solid var(--color-primary);
    color: var(--color-primary);
}
.tool-badge-privacy,
.tool-badge-beta,
.tool-badge-rating,
.tool-badge-count,
.tool-badge-trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border-left: 1px solid var(--color-border);
    color: var(--color-muted-foreground);
    font-size: 0.75rem;
    font-weight: 500;
}
.tool-badge-beta { color: var(--color-warning); }
.tool-badge-rating { color: var(--color-primary); }
/* Page-spec blocks (`PCC-001`): the copy is data, the layout is here.
   No new framework — the page's own tokens, borders and type scale. */
.page-spec-points {
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
}
.page-spec-surface {
    padding: 16px 0;
    border-top: 1px solid var(--color-border);
}
.review-card {
    padding: 16px 0;
    border-top: 1px solid var(--color-border);
}
.reviews-section {
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
}
.sidebar-tool-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--color-border);
    color: inherit;
    text-decoration: none;
    transition: color 0.16s ease;
}
.sidebar-tool-card:hover { color: var(--color-primary); }
.sidebar-section {
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
}
.tool-cta-card {
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    color: var(--color-foreground);
}
.markdown-content { line-height: 1.75; }
.markdown-content h1, .markdown-content h2 { font-weight: 650; color: var(--color-foreground); }
.markdown-content h1 { font-size: 1.75rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.markdown-content h2 { font-size: 1.375rem; margin-top: 1.25rem; margin-bottom: 0.625rem; }
.markdown-content p { margin-bottom: 1rem; color: var(--color-muted-foreground); }
.markdown-content ul { list-style-type: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.markdown-content ol { list-style-type: decimal; padding-left: 1.25rem; margin-bottom: 1rem; }
.markdown-content li { margin-bottom: 0.375rem; }
.markdown-content pre { background: var(--color-muted); padding: 1rem; overflow-x: auto; margin-bottom: 1rem; border: 1px solid var(--color-border); }
.markdown-content code { background: var(--color-muted); padding: 0.2rem 0.4rem; font-size: 0.9em; color: var(--color-foreground); }
.markdown-content a { color: var(--color-primary); text-decoration: underline; }
.param-field .required-star { color: var(--color-danger); margin-left: 2px; }
/* Generated forms stay readable-width, but align to the tool surface
   instead of centering in the page and creating an oversized gutter. */
#tool-detail-page .max-w-2xl.mx-auto {
    margin-inline-start: 0;
    margin-inline-end: auto;
}

/* The tool page's cross-link devices (`tool-page-related-rail-and-hub-index`):
 * one class per repetition, so a populated page does not re-ship the utility
 * string on every link. Tokens only, so both themes follow the kit; the layout
 * (grid column, sticky) is the template's, next to the other responsive
 * utilities. */
.tool-rail-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    border-top: 1px solid var(--color-border);
    color: var(--color-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}
.tool-rail-link:hover { color: var(--color-primary); }
.tool-strip-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    color: var(--color-foreground);
    text-decoration: none;
    font-size: 0.875rem;
}
.tool-strip-link:hover { border-color: var(--color-primary); color: var(--color-primary); }
.tool-strip-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.tool-strip-badge-new { color: var(--color-primary); }
.tool-strip-badge-popular { color: var(--color-muted-foreground); }
