/*
 * Role-overview page styles. Shared by /developer, /admin, and
 * /moderation index pages so the three pages read as a coherent set
 * (single sidebar entry per role → identical landing-page shape).
 *
 * Class names are kept under the `developer-index` prefix for legacy
 * compatibility — the Developer overview was the first page using
 * them and migrating its CSS without renaming keeps existing tests
 * + screenshots stable. Admin + Moderation index pages reuse the
 * same prefix.
 *
 * Loaded via <link rel="stylesheet"> in App.razor (web) and
 * index.html (MAUI), alongside the other un-scoped utility
 * stylesheets (theme.css, comments.css, etc.). Migrating these
 * styles out of Developer/Index.razor.css means they're no longer
 * scope-attribute-isolated and can be reused across the three
 * role-overview pages without per-page CSS duplication.
 */

.developer-index {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--os-space-lg) var(--os-space-md);
}

.developer-index__header {
    margin-bottom: var(--os-space-lg);
    text-align: center;
}

.developer-index__title {
    margin: 0 0 var(--os-space-xs);
    font-size: var(--os-font-size-xl, 1.5rem);
    color: var(--os-text);
}

.developer-index__subtitle {
    margin: 0;
    color: var(--os-text-secondary);
}

.developer-index__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--os-space-md);
}

.developer-index__card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--os-space-md);
    padding: var(--os-space-md);
    text-decoration: none;
    color: var(--os-text);
    transition: background 0.15s, border-color 0.15s;
}

    .developer-index__card:hover,
    .developer-index__card:focus-visible {
        background: var(--os-surface-hover, var(--os-surface));
        border-color: var(--os-primary);
    }

.developer-index__card-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--os-radius-sm, 6px);
    background: var(--os-surface-muted, rgba(0,0,0,0.04));
    color: var(--os-primary);
}

.developer-index__card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.developer-index__card-title {
    font-weight: 600;
    color: var(--os-text);
}

.developer-index__card-description {
    color: var(--os-text-secondary);
    font-size: var(--os-font-size-sm, 0.875rem);
}

.developer-index__card-chevron {
    color: var(--os-text-secondary);
    flex-shrink: 0;
}
