/* TopBoss Stage 13: Editorial presentation */

.tb-editorial-entry,
.tb-archive {
    min-width: 0;
}

.tb-editorial-header,
.tb-archive-header {
    margin: 20px 0 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #ded8d4;
}

.tb-editorial-header h1,
.tb-archive-header h1 {
    margin: 12px 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.tb-editorial-label {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 4px;
    background: #5b0002;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-decoration: none;
    text-transform: uppercase;
}

a.tb-editorial-label:hover {
    background: #c81016;
    color: #fff;
}

.tb-editorial-meta {
    color: #69615e;
    font-size: 0.85rem;
}

.tb-editorial-featured {
    margin: 0 0 26px;
}

.tb-editorial-featured img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.tb-editorial-body {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tb-editorial-body img,
.tb-editorial-body video,
.tb-editorial-body iframe {
    max-width: 100%;
}

.tb-editorial-related {
    margin-top: 44px;
    padding-top: 26px;
    border-top: 1px solid #ded8d4;
}

.tb-editorial-related h2 {
    margin: 0 0 20px;
    font-size: 1.45rem;
}

.tb-editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.tb-content-card {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e3ddda;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 3px 12px rgb(0 0 0 / 0.04);
}

.tb-content-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.tb-content-card-link:hover {
    color: inherit;
}

.tb-content-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f2efed;
}

.tb-content-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tb-content-card-body {
    padding: 18px;
}

.tb-content-card-category {
    display: block;
    margin-bottom: 8px;
    color: #8a1720;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tb-content-card h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    line-height: 1.35;
}

.tb-content-card p {
    margin: 0 0 12px;
    color: #625c59;
    font-size: 0.87rem;
    line-height: 1.6;
}

.tb-content-card-more {
    color: #8a1720;
    font-size: 0.82rem;
    font-weight: 750;
}

.tb-content-card-link:hover h3,
.tb-content-card-link:focus-visible h3 {
    color: #8a1720;
    text-decoration: underline;
}

.tb-archive-description {
    max-width: 68ch;
    color: #625c59;
}

.tb-archive-pagination {
    margin-top: 30px;
}

.tb-archive-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tb-archive-pagination .page-numbers {
    padding: 7px 12px;
    border: 1px solid #e3ddda;
    border-radius: 5px;
    background: #fff;
    text-decoration: none;
}

.tb-archive-pagination .current {
    background: #5b0002;
    color: #fff;
}

@media (max-width: 700px) {
    .tb-editorial-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tb-editorial-header h1,
    .tb-archive-header h1 {
        font-size: 1.75rem;
    }

    .tb-content-card-body {
        padding: 15px;
    }
}

/*
 * Stage 13D: Restore native table layout for slot reviews.
 *
 * Legacy slot content uses colspan and multi-column image
 * galleries. The casino-card grid transformation must not
 * apply to these tables.
 */

body.single-post.category-slot-reviews
.tb-editorial-body .tb-responsive-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.single-post.category-slot-reviews
.tb-editorial-body table.tb-content-table {
    display: table;
    width: 100%;
    max-width: none;
    table-layout: auto;
    border-collapse: collapse;
}

body.single-post.category-slot-reviews
.tb-editorial-body table.tb-content-table tbody {
    display: table-row-group;
    width: auto;
}

body.single-post.category-slot-reviews
.tb-editorial-body table.tb-content-table tr {
    display: table-row;
    width: auto;
}

body.single-post.category-slot-reviews
.tb-editorial-body table.tb-content-table td {
    display: table-cell;
    width: auto;
    min-width: 0;
    vertical-align: top;
    overflow-wrap: normal;
    word-break: normal;
}

body.single-post.category-slot-reviews
.tb-editorial-body table.tb-content-table td[colspan] {
    width: auto;
}

body.single-post.category-slot-reviews
.tb-editorial-body table.tb-content-table td img {
    max-width: 100%;
    height: auto;
}



/* Stage 13I.3: Archive card placeholders */

.tb-content-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    padding: 18px;
    box-sizing: border-box;
    text-align: center;
    background:
        radial-gradient(
            circle at 80% 15%,
            rgb(255 255 255 / 0.10),
            transparent 45%
        ),
        linear-gradient(145deg, #5b0002, #270002);
    color: #fff;
}

.tb-content-card-placeholder-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 10px;
    border: 2px solid rgb(255 255 255 / 0.75);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.tb-content-card-placeholder-name {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.tb-content-card-placeholder-caption {
    margin-top: 5px;
    color: #e8c8c8;
    font-size: 0.57rem;
    font-weight: 750;
    letter-spacing: 0.18em;
}

@media (max-width: 420px) {
    .tb-content-card-placeholder-mark {
        width: 48px;
        height: 48px;
        font-size: 1.05rem;
    }
}
