/* ── Shared "lâmina hub" card grid — used by laminas-categorias.html
   (category cards) and laminas-hub.html (lâmina cards within a category).
   Page-specific bits (icon vs. thumbnail, zoom-clone transition, back
   button) stay in each page's own <style> block. ───────────────────────── */

.lh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    padding: 1.5rem 2rem 2rem;
}
.lh-category {
    padding: 1.5rem 2rem 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-lightest);
}
.lh-category:first-of-type { padding-top: 2rem; }
.lh-card {
    background: rgba(var(--rgb-med-dark), 0.55);
    border: 1px solid rgba(var(--rgb-med), 0.22);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition-property: transform, box-shadow, border-color;
    transition-duration: 0.2s;
    transition-timing-function: ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1.1rem 1.2rem;
}
.lh-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    border-color: rgba(107,187,174,0.45);
}
.lh-card-body { display: flex; flex-direction: column; align-items: center; }
.lh-card-title {
    color: var(--color-lightest);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: 0.35rem;
    text-wrap: balance;
}
.lh-card-meta {
    font-size: 0.78rem;
    color: rgba(var(--rgb-light), 0.55);
    font-family: 'JetBrains Mono', monospace;
}
[data-theme="light"] .lh-card {
    background: rgba(255,255,255,0.6);
    border-color: rgba(58,170,110,0.2);
}
[data-theme="light"] .lh-card-title,
[data-theme="light"] .lh-category { color: rgb(8,30,25); }

.lh-empty {
    padding: 2rem;
    color: rgba(var(--rgb-light), 0.55);
    font-size: 0.9rem;
}

/* Phone: 2 cards per row instead of the single-column list that
   minmax(240px,1fr) collapses to under ~500px wide */
@media (max-width: 560px) {
    .lh-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem 1rem 1.5rem;
    }
    .lh-category { padding: 1.25rem 1rem 0; }
    .lh-card { padding: 1.1rem 0.7rem 0.9rem; }
    .lh-card-title { font-size: 0.92rem; }
    .lh-card-meta { font-size: 0.68rem; }
}
