.tb-tag-archive-page {
    background: #f5f6f8;
    color: #111111;
}

.tb-tag-container {
    width: min(100% - 32px, 1200px);
    margin-inline: auto;
}

.tb-tag-hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0 82px;
    background:
        radial-gradient(circle at 78% 20%, rgba(252, 119, 0, 0.28), transparent 30%),
        linear-gradient(135deg, #05070b 0%, #111827 54%, #1f2937 100%);
    color: #ffffff;
}

.tb-tag-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0%, transparent 58%, rgba(252, 119, 0, 0.1) 59%, transparent 74%),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 84px);
    pointer-events: none;
}

.tb-tag-hero > .tb-tag-container {
    position: relative;
    z-index: 1;
}

.tb-tag-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.4;
}

.tb-tag-breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.tb-tag-breadcrumbs a:hover,
.tb-tag-breadcrumbs a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.tb-tag-kicker {
    width: fit-content;
    margin: 0 0 18px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.tb-tag-title {
    max-width: 820px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(40px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.tb-tag-lead {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.64;
}

.tb-tag-nav {
    position: sticky;
    z-index: 10;
    top: 0;
    padding: 14px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.tb-tag-nav__inner {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.tb-tag-nav__inner a {
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

.tb-tag-nav__inner a:hover,
.tb-tag-nav__inner a:focus,
.tb-tag-nav__inner a.is-active {
    border-color: rgba(252, 119, 0, 0.35);
    color: #fc7700;
}

.tb-tag-content-section {
    padding: 48px 0 72px;
}

.tb-tag-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
}

.tb-tag-section-head {
    margin-bottom: 24px;
}

.tb-tag-section-title {
    margin: 0;
    color: #111111;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.tb-tag-section-text {
    max-width: 720px;
    margin: 12px 0 0;
    color: #5b6470;
    font-size: 16px;
    line-height: 1.65;
}

.tb-tag-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tb-tag-card {
    display: flex;
    min-height: 100%;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 18px 52px rgba(15, 23, 42, 0.06);
}

.tb-tag-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e9edf3;
    text-decoration: none;
}

.tb-tag-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tb-tag-image--placeholder {
    display: flex;
    min-height: 100%;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
    background: linear-gradient(135deg, #eef2f7 0%, #dce4ee 52%, #cbd6e3 100%);
    color: #111827;
}

.tb-tag-image--placeholder span {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #fc7700;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tb-tag-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.tb-tag-card__title {
    margin: 0;
    color: #111111;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.tb-tag-card__title a {
    color: inherit;
    text-decoration: none;
}

.tb-tag-card__title a:hover,
.tb-tag-card__title a:focus {
    color: #fc7700;
}

.tb-tag-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    min-height: 72px;
    margin: 12px 0 0;
    color: #4d5562;
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tb-tag-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.tb-tag-card__link {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 18px;
    color: #fc7700;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
}

.tb-tag-card__link:hover,
.tb-tag-card__link:focus {
    color: #e96d00;
    text-decoration: underline;
}

.tb-tag-pagination {
    margin-top: 34px;
}

.tb-tag-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tb-tag-pagination a,
.tb-tag-pagination span {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.tb-tag-pagination a:hover,
.tb-tag-pagination a:focus,
.tb-tag-pagination .current {
    border-color: rgba(252, 119, 0, 0.35);
    background: #fc7700;
    color: #ffffff;
}

.tb-tag-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.tb-tag-widget {
    padding: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0;
    background: #ffffff;
    box-shadow: 0 18px 52px rgba(15, 23, 42, 0.06);
}

.tb-tag-widget__title {
    margin: 0 0 16px;
    color: #111111;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}



.tb-tag-mini-list,
.tb-tag-useful-list {
    display: grid;
    gap: 12px;
}

.tb-tag-mini,
.tb-tag-useful {
    color: inherit;
    text-decoration: none;
}

.tb-tag-mini {
    display: block;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.tb-tag-mini:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.tb-tag-mini__title,
.tb-tag-useful {
    display: block;
    color: #111111;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.tb-tag-mini__date {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.3;
}

.tb-tag-useful {
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.tb-tag-useful:last-child {
    border-bottom: 0;
}

.tb-tag-mini:hover .tb-tag-mini__title,
.tb-tag-mini:focus .tb-tag-mini__title,
.tb-tag-useful:hover,
.tb-tag-useful:focus {
    color: #fc7700;
}

.tb-tag-widget--dark {
    border-color: transparent;
    background:
        radial-gradient(circle at 18% 0%, rgba(252, 119, 0, 0.24), transparent 32%),
        linear-gradient(135deg, #05070b 0%, #121826 100%);
    color: #ffffff;
}

.tb-tag-widget--dark .tb-tag-widget__title {
    color: #ffffff;
}

.tb-tag-widget--dark p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.6;
}

.tb-tag-widget__button,
.tb-tag-cta__button {
    display: inline-flex;
    width: fit-content;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 10px;
    background: #fc7700;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.tb-tag-widget__button:hover,
.tb-tag-widget__button:focus,
.tb-tag-cta__button:hover,
.tb-tag-cta__button:focus {
    color: #ffffff;
    background: #e96d00;
}

.tb-tag-bottom-cta {
    padding: 0 0 72px;
}

.tb-tag-cta {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 30px 34px;
    border-radius: 0;
    background:
        radial-gradient(circle at 70% 10%, rgba(252, 119, 0, 0.24), transparent 30%),
        linear-gradient(135deg, #05070b 0%, #121826 100%);
    color: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.tb-tag-cta__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.tb-tag-cta__text {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.6;
}

.tb-tag-cta__button {
    flex: 0 0 auto;
    padding: 0 24px;
}

.tb-tag-empty {
    margin: 0;
    color: #4d5562;
    font-size: 18px;
    line-height: 1.6;
}

@media (max-width: 1120px) {
    .tb-tag-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tb-tag-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

@media (max-width: 1040px) {
    .tb-tag-layout {
        grid-template-columns: 1fr;
    }

    .tb-tag-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tb-tag-widget--dark {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .tb-tag-container {
        width: min(100% - 24px, 1200px);
    }

    .tb-tag-hero {
        padding: 52px 0 58px;
    }

    .tb-tag-title {
        font-size: clamp(34px, 10vw, 50px);
    }

    .tb-tag-content-section {
        padding: 34px 0 52px;
    }

    .tb-tag-grid,
    .tb-tag-sidebar {
        grid-template-columns: 1fr;
    }

    .tb-tag-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
    }

    .tb-tag-cta__button,
    .tb-tag-widget__button {
        width: 100%;
    }
}
