/* Database category Runewords (/database/runewords — Runewords.php, runewords-list.php, runeword-detail.php).
   Tiles of the rune row (.db-runeword__*) and the cards (.db-related-*) come from database.css.
   Note: --gold is red in this project — the Diablo gold is written out. */

/* ── List: one card per runeword ─────────────────────────── */
.rwl-grid { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.rwl-grid > li { min-width: 0; }
.rwl-card {
    display: flex; gap: 1rem; align-items: flex-start; height: 100%; padding: 1rem 1.1rem; box-sizing: border-box;
    background: var(--panel-bg, #13151a); border: 1px solid var(--border, #252830); border-radius: 8px;
    color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.rwl-card:hover, .rwl-card:focus-visible { border-color: rgba(196, 162, 78, .55); box-shadow: 0 0 18px rgba(196, 162, 78, .12); transform: translateY(-1px); }
.rwl-card__icon { flex: 0 0 56px; width: 56px; height: 78px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .04); }
.rwl-card__icon img { width: 44px; height: 66px; object-fit: contain; }
.rwl-card__body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.rwl-card__name { font-family: var(--font-heading, inherit); font-size: 1.1rem; line-height: 1.25; }
.rwl-card__seq { font-size: .8rem; letter-spacing: .04em; color: var(--text-muted, #7a7870); overflow-wrap: anywhere; }
.rwl-card__runes { display: flex; flex-wrap: wrap; gap: .3rem .6rem; }
.rwl-card__rune { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--text-secondary, #b8b5ad); }
.rwl-card__rune img { width: 24px; height: 24px; object-fit: contain; }
.rwl-card__meta { font-size: .85rem; color: #c4a24e; }

/* ── Detail ──────────────────────────────────────────────── */
.rwd .rwd__icon { width: 64px; height: 96px; object-fit: contain; }
.rwd-badge { display: inline-block; padding: .15rem .55rem; border-radius: 3px; font-size: .75rem; font-weight: 700; color: #c4a24e; background: rgba(196, 162, 78, .1); box-shadow: inset 0 0 0 1px rgba(196, 162, 78, .35); }
.rwd-craft__answer { max-width: 80ch; line-height: 1.55; }
.rwd-craft .db-runeword__runes { margin: 1rem 0; }
.rwd-bases { scroll-margin-top: 6rem; }
.rwd-group { padding: 1rem 0; }
.rwd-group + .rwd-group { border-top: 1px solid var(--border, #252830); }
.rwd-group:first-of-type { padding-top: 0; }
.rwd-base { align-items: center; }
.rwd-base .rwd-base__icon { width: 40px; height: 60px; object-fit: contain; }
span.rwd-base { cursor: default; }
.rwd-group__stats { margin-top: 1rem; }
.rwd-group__lines { max-width: 80ch; }

@media (max-width: 767px) {
    .rwl-grid { grid-template-columns: 1fr; }
    .rwd .rwd__icon { width: 48px; height: 72px; }
}
