.template-cover:where(:not([data-slot],[data-slot] *)) {
    height: 400px;
    background-position: 50%; 
    background-size: cover; 
    background-repeat: no-repeat;
}

.template-cover-21:where(:not([data-slot],[data-slot] *)) {
    aspect-ratio: 2/1;
    background-position: 50%; 
    background-size: cover; 
    background-repeat: no-repeat;
}

.card-hover:where(:not([data-slot],[data-slot] *)) {
    transition: all 0.2s ease;
    cursor: pointer;
}

.card-hover:hover:where(:not([data-slot],[data-slot] *)){
    box-shadow: 5px 6px 6px 2px #e9ecef;
    transform: scale(1.05);
}

.card-hover-border:where(:not([data-slot],[data-slot] *)) {
    transition: all 0.2s ease;
    cursor: pointer;
}

.card-hover-border:hover:where(:not([data-slot],[data-slot] *)) {
    border-color: #6ca6ea; border-width: 1px!important;
}

@media screen and (max-width:640px) {
    .template-cover:where(:not([data-slot],[data-slot] *)) {
        height: 160px;
    }
    .card-hover:where(:not([data-slot],[data-slot] *)) {
        transition: none;
        cursor: none;
    }
    .card-hover:hover:where(:not([data-slot],[data-slot] *)){
        box-shadow: none;
        transform: none;
    }
}

@media screen and (min-width: 600px) and (max-width: 899px) {
    .template-cover:where(:not([data-slot],[data-slot] *)) {
        height: 300px;
    }
}

@media screen and (min-width:1441px) {
    .template-cover:where(:not([data-slot],[data-slot] *)) {
        height: 500px;
    }
}

/* Pending team invite cards — verbatim "Your Events" card from eventhub-v2.css,
   with its --td-* tokens scoped to the container so the values stay 1:1. */
.ti-grid:where(:not([data-slot],[data-slot] *)) {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    --td-surface-2: #161b22;
    --td-border-subtle: rgba(255, 255, 255, 0.06);
    --td-border-emphasis: rgba(255, 255, 255, 0.16);
    --td-radius-lg: 12px;
    --td-accent: #6ca6ea;
    --td-text-primary: #f0f3f6;
    --td-text-secondary: #9ea7b3;
    --td-text-muted: #656d76;
    --td-space-3: 12px;
    --td-shadow-md: 0 4px 12px rgba(0,0,0,0.32), 0 0 1px rgba(0,0,0,0.12);
    --td-duration-base: 200ms;
    --td-ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ti-card:where(:not([data-slot],[data-slot] *)) {
    display: flex;
    gap: var(--td-space-3, 12px);
    width: 280px;
    max-width: 100%;
    padding: 12px 16px;
    background: var(--td-surface-2);
    border: 1px solid var(--td-border-subtle);
    border-radius: var(--td-radius-lg);
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    transition:
        border-color var(--td-duration-base) var(--td-ease-out),
        box-shadow var(--td-duration-base) var(--td-ease-out);
}
.ti-card:hover:where(:not([data-slot],[data-slot] *)) {
    border-color: var(--td-border-emphasis);
    box-shadow: var(--td-shadow-md);
    color: inherit;
    text-decoration: none;
}
.ti-datebox:where(:not([data-slot],[data-slot] *)) {
    flex-shrink: 0;
    width: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ti-datebox-dow:where(:not([data-slot],[data-slot] *)) {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--td-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ti-datebox-day:where(:not([data-slot],[data-slot] *)) {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--td-text-primary);
}
.ti-datebox-month:where(:not([data-slot],[data-slot] *)) {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--td-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ti-info:where(:not([data-slot],[data-slot] *)) {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}
.ti-status:where(:not([data-slot],[data-slot] *)) {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    width: fit-content;
    color: var(--td-accent);
}
.ti-name:where(:not([data-slot],[data-slot] *)) {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--td-text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ti-game:where(:not([data-slot],[data-slot] *)) {
    font-size: 0.75rem;
    color: var(--td-text-secondary);
}
.ti-meta:where(:not([data-slot],[data-slot] *)) {
    font-size: 0.72rem;
    color: var(--td-text-muted);
}
.ti-card.is-invite:where(:not([data-slot],[data-slot] *)) {
    border-color: rgba(108, 166, 234, 0.5);
}
.ti-card.is-invite:hover:where(:not([data-slot],[data-slot] *)) {
    border-color: rgba(108, 166, 234, 0.85);
}

/* Team management cards: rows use #1e1e1e (≈ the page bg), so lift the whole card
   to the elevated card colour and add a faint edge so it reads as a distinct panel. */
#teamApp .card:where(:not([data-slot],[data-slot] *)) {
    border: 1px solid rgba(255, 255, 255, 0.08);
}
#teamApp .list-group-item:where(:not([data-slot],[data-slot] *)) {
    background-color: transparent;
}
