/*
 * Simple Sprite Maker docs — article typography.
 *
 * Layered on top of ../styles.css (which provides the header/footer chrome + design
 * tokens). This file only styles the article body and Help Book-specific markup
 * (.lede, .crumbs, .topic-list, .muted, table, code, kbd).
 */

.ssm-docs {
    padding: 48px 0 80px;
    min-height: 60vh;
}

.ssm-doc {
    max-width: 760px;
    margin: 0 auto;
    color: var(--ssm-text);
    line-height: 1.65;
}

.ssm-doc h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ssm-dark);
    margin: 0 0 16px;
}
.ssm-doc h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ssm-dark);
    margin: 36px 0 12px;
}
.ssm-doc h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--ssm-dark);
    margin: 24px 0 8px;
}

.ssm-doc p { margin: 0 0 16px; }
.ssm-doc ul, .ssm-doc ol { margin: 0 0 16px; padding-left: 24px; }
.ssm-doc li { margin: 6px 0; }

.ssm-doc a {
    color: var(--ssm-primary);
    text-decoration: none;
}
.ssm-doc a:hover { text-decoration: underline; }

.ssm-doc .lede {
    font-size: 17px;
    color: var(--ssm-text-light);
    margin-bottom: 24px;
}

/* Breadcrumb at the top of each non-index page. */
.ssm-doc .crumbs {
    font-size: 14px;
    color: var(--ssm-text-light);
    margin-bottom: 8px;
}
.ssm-doc .crumbs a {
    color: var(--ssm-text-light);
}
.ssm-doc .crumbs a:hover {
    color: var(--ssm-primary);
}

/* Topic grid on the docs index — keep the Help Book's two-column card layout but
   re-skin to match the site. */
.ssm-doc .topic-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}
.ssm-doc .topic-list a {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--ssm-border);
    border-radius: var(--ssm-radius);
    background: var(--ssm-bg);
    color: var(--ssm-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.ssm-doc .topic-list a:hover {
    border-color: var(--ssm-primary);
    box-shadow: var(--ssm-shadow-sm);
    transform: translateY(-1px);
    text-decoration: none;
}
.ssm-doc .topic-list .title {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--ssm-dark);
}
.ssm-doc .topic-list .desc {
    display: block;
    font-size: 14px;
    color: var(--ssm-text-light);
}

/* Inline code + keyboard shortcuts. Tighter padding so they sit inline cleanly. */
.ssm-doc code, .ssm-doc kbd {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.88em;
    background: var(--ssm-bg-subtle);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--ssm-border);
}
.ssm-doc kbd { white-space: nowrap; font-weight: 600; }

/* Tables (the keyboard shortcuts page is the main consumer). */
.ssm-doc table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 14px;
}
.ssm-doc table th,
.ssm-doc table td {
    border: 1px solid var(--ssm-border);
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}
.ssm-doc table th {
    background: var(--ssm-bg-subtle);
    font-weight: 600;
    color: var(--ssm-dark);
}

.ssm-doc .muted {
    font-size: 13px;
    color: var(--ssm-text-light);
    margin-left: 6px;
}
