/* The Comic Stand Layout Repair v1.0.6 */
:root { --tcs-card-overlay-opacity: .18; }

/* Broad repair for existing homepage image tiles/cards. */
.tcs-card::before,
.tcs-card .overlay,
.tcs-card .card-overlay,
.tcs-card .image-overlay,
.tcs-home-card::before,
.tcs-home-card .overlay,
.tcs-home-card .card-overlay,
.tcs-home-card .image-overlay,
.comic-card::before,
.comic-card .overlay,
.comic-card .card-overlay,
.comic-card .image-overlay,
.news-card::before,
.news-card .overlay,
.news-card .card-overlay,
.news-card .image-overlay,
.artist-card::before,
.artist-card .overlay,
.artist-card .card-overlay,
.artist-card .image-overlay,
.con-card::before,
.con-card .overlay,
.con-card .card-overlay,
.con-card .image-overlay,
[class*="comic"] [class*="overlay"],
[class*="tcs"] [class*="overlay"] {
    opacity: var(--tcs-card-overlay-opacity) !important;
    background: rgba(0,0,0,var(--tcs-card-overlay-opacity)) !important;
}

/* If the overlay is a gradient, keep only a subtle bottom gradient. */
.tcs-card::after,
.tcs-home-card::after,
.comic-card::after,
.news-card::after,
.artist-card::after,
.con-card::after {
    background: linear-gradient(to top, rgba(0,0,0,.38), rgba(0,0,0,.08), rgba(0,0,0,0)) !important;
}

.tcs-repair-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 18px 0 28px;
}

.tcs-repair-card {
    position: relative;
    min-height: 190px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
    background: #111;
}

.tcs-repair-card a {
    display: block;
    min-height: 190px;
    color: #fff;
    text-decoration: none;
    position: relative;
}

.tcs-repair-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: transform .25s ease;
}

.tcs-repair-card-bg-empty {
    background: radial-gradient(circle at top left, #444, #111);
}

.tcs-repair-card:hover .tcs-repair-card-bg {
    transform: scale(1.08);
}

.tcs-repair-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.56), rgba(0,0,0,.10), rgba(0,0,0,0));
}

.tcs-repair-card-title {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 15px;
    z-index: 2;
    font-size: 1.05rem;
    line-height: 1.22;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,.55);
}

.tcs-premium-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 24px;
}

.tcs-premium-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    background: rgba(0,0,0,.08);
    color: inherit;
    border: 1px solid rgba(0,0,0,.08);
}

.tcs-premium-nav a:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.tcs-home-section {
    margin: 28px 0 38px;
}

.tcs-home-section > header h2 {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 2vw, 2.2rem);
}
