/* Study Resources — shared dict-shell layout in app.css */

/* Source selector grid (unique to resources) */
.resource-source-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    margin-bottom: 1.25rem;
}
.resource-source-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0.85rem;
    color: #0f172a;
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    text-decoration: none;
}
.resource-source-card.is-active,
.resource-source-card:hover,
.resource-source-card:focus {
    border-color: #2563eb;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
}
.resource-source-card span {
    color: #475569;
}
.resource-source-card small {
    color: #64748b;
}

/* Browser panel header */
.resource-browser > header h2 {
    color: #0f172a;
    font-size: 1.4rem;
    margin: 0 0 0.4rem;
}
.resource-browser > header p {
    color: #475569;
    margin: 0 0 0.5rem;
}

/* Entry detail body */
.resource-detail-body {
    font-size: 1.02rem;
    line-height: 1.65;
}
.resource-detail-body p {
    margin: 0 0 0.85rem;
}
.resource-detail-body p:last-child {
    margin-bottom: 0;
}

/* Back navigation */
.resource-back-nav {
    margin-bottom: 1rem;
}
.resource-back-nav a {
    color: #1d4ed8;
    font-weight: 800;
    text-decoration: none;
}
.resource-back-nav a:hover,
.resource-back-nav a:focus {
    text-decoration: underline;
}

/* Standalone entry page h1 mirrors shared dict-entry-card h2 */
.resources-shell .dict-entry-card h1 {
    color: #0f172a;
    font-size: 1.6rem;
    margin: 0 0 0.5rem;
}

@media (max-width: 760px) {
    .resource-source-grid {
        grid-template-columns: 1fr;
    }
}