span.card-name {
    border-bottom: 1px solid #fff;
    cursor: help;
}

#card-tooltip {
    position: fixed;
    z-index: 9999;
    display: none;
    pointer-events: none;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

#card-tooltip img {
    display: block;
}

/* ─── Blog hero banner ──────────────────────────────── */

.blog-hero {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-color: #111;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-hero-loading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #444;
}

.blog-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ─── Blog featured grid ────────────────────────────── */

.blog-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.blog-featured-card {
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    transition: background 0.15s;
    border-left: none;
    padding: 0;
    margin: 0;
}

.blog-featured-card:hover {
    background: #161616;
}

.blog-featured-hero {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-featured-body {
    padding: 0.75rem 1rem;
}

.blog-featured-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.1rem 0.45rem;
    background: #cc2200;
    color: #fff;
    border-radius: 2px;
    margin-bottom: 0.4rem;
}

.blog-featured-body h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: #fff;
}

.blog-section-heading {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid #222;
    padding-bottom: 0.4rem;
    margin-bottom: 1.25rem;
}

.blog-featured-card:hover h3 {
    color: #cc2200;
}

@media (max-width: 768px) {
    .blog-featured-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Blog index cards ──────────────────────────────── */

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card {
    border-left: none;
    padding: 0;
    margin-bottom: 2rem;
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    transition: background 0.15s;
}

.blog-card:hover {
    background: #161616;
}

.blog-card-hero {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-body {
    padding: 1.25rem 1.5rem;
}

.blog-card h2 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    color: #fff;
}

.blog-card:hover h2 {
    color: #cc2200;
}

.blog-card-meta {
    color: #888;
    font-size: 0.8rem;
    margin: 0 0 0.5rem 0;
}

.blog-card-excerpt {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.blog-tags, .blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.blog-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 3px;
    color: #888;
}

/* ─── Blog postscript ──────────────────────────────── */

.blog-postscript {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    padding: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.6;
}

.blog-postscript a {
    color: #cc2200;
    text-decoration: none;
}

.blog-postscript a:hover {
    text-decoration: underline;
}

/* ─── Blog footer ───────────────────────────────────── */

.blog-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
}

.blog-footer-content {
    text-align: center;
    padding: 2rem 0;
}

.blog-footer-content p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-footer-link {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: #cc2200;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.15s;
}

.blog-footer-link:hover {
    background: #e62800;
}

/* ─── Section dividers in body ──────────────────────── */

hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 2.5rem auto;
    width: 60%;
}

/* ─── Decklists ─────────────────────────────────────── */

.decklist {
    margin: 1.75rem 0;
    padding: 1.75rem 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    width: fit-content;
    max-width: 100%;
}

.decklist .decklist-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.decklist-external-link {
    display: inline-block;
    font-size: 0.85rem;
    color: #cc2200;
    text-decoration: none;
    margin-bottom: 0.85rem;
}

.decklist-external-link:hover {
    text-decoration: underline;
}

.decklist-body {
    display: flex;
    align-items: flex-start;
    gap: clamp(2rem, 8vw, 10rem);
    font-size: 1rem;
    line-height: 1.45;
}

.decklist-column {
    flex: 0 0 auto;
}

.decklist-section {
    padding-top: 0.85rem;
}

.decklist-column > .decklist-section:first-child {
    padding-top: 0;
}

.decklist .decklist-section-name {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
    line-height: 1.3;
}

.decklist-card {
    line-height: 1.5;
}

.decklist-count {
    display: inline-block;
    min-width: 1.7rem;
    font-variant-numeric: tabular-nums;
}

.decklist-sideboard {
    margin-top: 1.5rem;
}

.decklist-sideboard::before {
    content: "";
    display: block;
    width: 3rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
    margin-bottom: 1rem;
}

.decklist-sideboard-cards {
    /* single column */
}

@media (max-width: 600px) {
    .decklist {
        width: auto;
        padding: 1.25rem 1.25rem;
    }

    .decklist-body {
        flex-direction: column;
        gap: 0;
    }

    .decklist-body > .decklist-column + .decklist-column > .decklist-section:first-child {
        padding-top: 0.85rem;
    }
}
