/* Standalone fallback templates. */
.tf-generic-page {
    min-height: 62vh;
    padding: 42px 0 56px;
    background: radial-gradient(circle at 16% 0%, rgba(34, 197, 94, .12), transparent 28%), var(--tf-bg-2);
}

.tf-generic-shell {
    width: min(var(--tf-container), calc(100% - 32px));
    margin-inline: auto;
}

.tf-generic-shell--narrow {
    width: min(900px, calc(100% - 32px));
}

.tf-generic-hero {
    margin-bottom: 26px;
}

.tf-generic-hero h1 {
    margin: 0 0 10px;
    color: #fff;
    letter-spacing: -.04em;
}

.tf-generic-hero p,
.tf-generic-description,
.tf-generic-hero time {
    color: var(--tf-muted);
    line-height: 1.7;
}

.tf-content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tf-content-card,
.tf-generic-article,
.tf-content-empty {
    overflow: hidden;
    border: 1px solid var(--tf-border);
    border-radius: 22px;
    background: linear-gradient(180deg, var(--tf-card-strong), var(--tf-card));
    box-shadow: var(--tf-shadow);
}

.tf-content-card__media {
    display: block;
    aspect-ratio: 12 / 7;
    overflow: hidden;
    background: #0a1f15;
}

.tf-content-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tf-content-card__body {
    padding: 18px;
}

.tf-content-card__body time {
    color: var(--tf-gold);
    font-size: 12px;
    font-weight: 850;
}

.tf-content-card__body h2 {
    margin: 9px 0;
    color: #fff;
    letter-spacing: -.025em;
}

.tf-content-card__body p {
    margin: 0;
    color: var(--tf-muted);
    line-height: 1.68;
}

.tf-content-card__link,
.tf-generic-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 14px;
    color: var(--tf-gold);
    font-weight: 900;
}

.tf-generic-article {
    padding: 28px;
}

.tf-generic-featured {
    margin: 0 0 24px;
    overflow: hidden;
    border-radius: 18px;
}

.tf-entry-content {
    color: #e6eee8;
    font-size: 17px;
    line-height: 1.85;
}

.tf-entry-content > * {
    max-width: 100%;
}

.tf-entry-content a {
    color: var(--tf-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tf-entry-content img,
.tf-entry-content iframe,
.tf-entry-content video {
    max-width: 100%;
}

.tf-content-empty {
    padding: 34px;
    text-align: center;
}

.tf-content-empty h1,
.tf-content-empty h2 {
    margin: 0 0 10px;
    color: #fff;
}

.tf-content-empty p {
    color: var(--tf-muted);
}

.tf-error-code {
    margin: 0;
    color: var(--tf-gold);
    font-size: clamp(52px, 12vw, 110px);
    font-weight: 950;
    line-height: 1;
}

.tf-content-empty .search-form {
    display: flex;
    gap: 8px;
    max-width: 520px;
    margin: 20px auto 0;
}

.tf-content-empty .search-field {
    min-width: 0;
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--tf-border);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.tf-content-empty .search-submit {
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    color: #07130e;
    background: var(--tf-gold);
    font-weight: 900;
}

.navigation.pagination {
    margin-top: 28px;
}

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

.nav-links .page-numbers {
    display: inline-grid;
    min-width: 42px;
    min-height: 42px;
    place-items: center;
    padding: 0 12px;
    border: 1px solid var(--tf-border);
    border-radius: 999px;
    background: var(--tf-card);
}

.nav-links .current {
    color: #07130e;
    background: var(--tf-gold);
}

@media (max-width: 680px) {
    .tf-generic-page {
        padding: 28px 0 38px;
    }

    .tf-content-grid {
        grid-template-columns: 1fr;
    }

    .tf-generic-article,
    .tf-content-empty {
        padding: 20px;
    }

    .tf-entry-content {
        font-size: 15px;
    }

    .tf-content-empty .search-form {
        flex-direction: column;
    }
}

@media (min-width: 681px) and (max-width: 1020px) {
    .tf-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
