/* --- WORKSHOP & CRAFTING STYLES (4 PER ROW) --- */
.craft-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 30px;
}

.craft-card {
    border: 2px groove var(--border);
    background: rgba(255, 255, 255, 0.6);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    transition: background-color 0.2s;
}

.craft-card:hover {
    background: rgba(255, 255, 255, 0.85);
}

.craft-card img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.craft-card-title {
    font-family: 'MedievalSharp';
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--ink);
    margin-bottom: 4px;
    min-height: 2.3rem; /* Aligns 1-line and 2-line titles evenly */
    display: flex;
    align-items: center;
    justify-content: center;
}

.craft-card-yield {
    font-size: 0.9rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 6px;
}

.craft-card-reqs {
    font-size: 0.82rem;
    font-style: italic;
    color: #555;
    margin-bottom: 8px;
    min-height: 2.4rem; /* Keeps requirement heights aligned */
}

.craft-card-costs {
    font-size: 0.85rem;
    color: #222;
    margin-bottom: 6px;
}

.craft-card-stamina {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 12px;
}

/* Question 2: Action button pinned cleanly to the bottom */
.craft-card-btn {
    margin-top: auto;
    width: 100%;
}