/* ==========================================================================
   Components — Cards, pagination, breadcrumb, slider, widgets, etc.
   ========================================================================== */

/* Article card */
.article-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-card__image-link {
    display: block;
    width: 100%;
}

.article-card__image-link img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.article-card__image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.article-card__body {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card__badges {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--space-sm);
}

.article-card__category {
    display: inline-block;
    vertical-align: middle;
    background-color: var(--color-accent);
    color: #ffffff;
    font-size: var(--text-label);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.article-quality-badge {
    display: inline-block;
    vertical-align: middle;
    font-size: var(--text-label);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--color-surface);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    vertical-align: middle;
}

.article-card__title {
    font-size: var(--text-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__title a {
    color: var(--color-text);
    text-decoration: none;
}

.article-card__title a:hover {
    color: var(--color-accent);
}

.article-card__excerpt {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.article-card__meta {
    font-size: var(--text-label);
    color: var(--color-text-muted);
    margin-top: auto;
}

/* Article grid */
.article-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .article-grid {
        grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
    }
}

/* Slider */
.slider {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--space-md) 0;
    min-width: 0;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slider-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.slider-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-card__image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.slider-card__body {
    padding: var(--space-sm) var(--space-md);
}

.slider-card__category {
    display: inline-block;
    background-color: var(--color-accent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    margin-bottom: var(--space-xs);
}

.slider-card__title {
    font-size: var(--text-base);
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-card__title a {
    color: var(--color-text);
    text-decoration: none;
}

.slider-card__title a:hover {
    color: var(--color-accent);
}

.slider-card__date {
    font-size: var(--text-label);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

/* Slider controls */
.slider-wrapper {
    position: relative;
    margin-bottom: var(--space-lg);
    max-width: 100%;
    overflow: hidden;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
    min-height: 44px;
    min-width: 44px;
}

.slider-arrow:hover {
    background-color: var(--color-accent);
}

.slider-arrow--prev {
    left: var(--space-xs);
}

.slider-arrow--next {
    right: var(--space-xs);
}

.slider-arrow[hidden] {
    visibility: hidden;
}

/* Hero */
/* Hero Slideshow */
.hero-slideshow {
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-2xl);
    border-radius: 8px;
}

.hero-slideshow__track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 500px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.hero-slideshow__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.8s ease, transform 6s linear;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    z-index: 0;
}

.hero-slideshow__slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-slideshow__overlay {
    width: 100%;
    padding: var(--space-xl) var(--space-lg);
    padding-top: 120px;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.85) 100%);
}

.hero-slideshow__overlay .hero__title {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--space-sm);
    color: #fff;
}

.hero-slideshow__overlay .hero__excerpt {
    font-size: var(--text-base);
    line-height: 1.5;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #fff;
    margin-bottom: var(--space-xs);
}

.hero-slideshow__overlay .hero__category {
    display: inline-block;
    background-color: var(--color-accent);
    color: #fff;
    font-size: var(--text-label);
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: var(--space-sm);
}

.hero-slideshow__overlay .hero__date {
    font-size: var(--text-label);
    opacity: 0.7;
    color: #fff;
}

/* Bottom bar: progress dots + next title */
.hero-slideshow__bottom {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 10px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.hero-slideshow__progress {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.hero-slideshow__dot {
    width: 40px;
    height: 4px;
    background: var(--color-border);
    border: none;
    border-radius: 2px;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: background 0.2s;
}

.hero-slideshow__dot:hover {
    background: var(--color-text-muted);
}

.hero-slideshow__dot-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--color-accent);
    border-radius: 2px;
    transition: none;
}

.hero-slideshow__dot.active .hero-slideshow__dot-fill {
    animation: heroProgress 6s linear forwards;
}

@keyframes heroProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* Pause on hover */
.hero-slideshow:hover .hero-slideshow__dot.active .hero-slideshow__dot-fill {
    animation-play-state: paused;
}

/* Next up bar */
.hero-slideshow__next {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    min-width: 0;
    font-size: 13px;
    line-height: 1.3;
}

.hero-slideshow__next-label {
    color: var(--color-text-muted);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-slideshow__next-title {
    color: var(--color-text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-2xl);
    border-radius: 8px;
}

.hero__image {
    display: block;
    width: 100%;
}

.hero__image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-xl) var(--space-lg);
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.85) 100%);
    color: #ffffff;
}

.hero__category {
    display: inline-block;
    background-color: var(--color-accent);
    color: #ffffff;
    font-size: var(--text-label);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: var(--space-sm);
}

.hero__title {
    font-size: var(--text-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    color: #ffffff;
}

.hero__title a {
    color: #ffffff;
    text-decoration: none;
}

.hero__excerpt {
    font-size: var(--text-base);
    line-height: 1.5;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.pagination {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    list-style: none;
    padding: var(--space-2xl) 0;
}

/* Infinite scroll loader */
.infinite-scroll-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: var(--space-xl) 0;
    color: var(--color-text-muted);
    font-size: 14px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Load more button */
.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    border-radius: 8px;
    background-color: var(--color-accent);
    color: #ffffff;
    font-size: var(--text-base);
    font-weight: 700;
    text-decoration: none;
    border: none;
    min-height: 48px;
    min-width: 200px;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.load-more-btn:hover {
    background-color: var(--color-accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.load-more-btn--prev {
    background-color: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.load-more-btn--prev:hover {
    background-color: var(--color-border);
    color: var(--color-text);
    border-color: var(--color-accent);
}

/* Legacy pagination styles (kept for category/tag/search pages) */
.pagination .active a,
.pagination .active span {
    background-color: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Breadcrumb */
.breadcrumb {
    padding: var(--space-sm) 0 0;
    margin-bottom: var(--space-sm);
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1;
    color: var(--color-text-muted);
    overflow: hidden;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.breadcrumb li:last-child {
    overflow: hidden;
    min-width: 0;
}

.breadcrumb li:last-child span {
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.breadcrumb li + li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--color-text-muted);
    border-top: 1.5px solid var(--color-text-muted);
    transform: rotate(45deg);
    margin: 0 8px;
    flex-shrink: 0;
    opacity: 0.6;
}

.breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

/* Popular widget */
.popular-widget {
    padding: var(--space-md);
    background-color: var(--color-surface);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-lg);
}

.popular-widget__title {
    font-size: var(--text-heading);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.popular-widget__list {
    list-style: none;
}

.popular-widget__item {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.popular-widget__item:last-child {
    border-bottom: none;
}

.popular-widget__item a {
    color: var(--color-text);
    font-weight: 700;
    font-size: var(--text-label);
}

.popular-widget__item a:hover {
    color: var(--color-accent);
}

/* Category widget */
.category-widget {
    padding: var(--space-md);
    background-color: var(--color-surface);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-lg);
}

.category-widget__title {
    font-size: var(--text-heading);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.category-widget__list {
    list-style: none;
}

.category-widget__item {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.category-widget__item:last-child {
    border-bottom: none;
}

.category-widget__item a {
    color: var(--color-text);
    font-size: var(--text-label);
}

.category-widget__item a:hover {
    color: var(--color-accent);
}

/* Ad slot (invisible placeholder in Phase 2) */
.ad-slot {
    display: block;
}

/* Search form */
.search-form {
    display: flex;
}

.search-form input {
    border: 1px solid var(--color-border);
    padding: var(--space-sm) var(--space-md);
    border-radius: 4px 0 0 4px;
    font-size: var(--text-label);
    background-color: var(--color-bg);
    color: var(--color-text);
    outline: none;
    transition: border-color 0.15s ease;
    min-width: 0;
    width: 180px;
}

.search-form input:focus {
    border-color: var(--color-accent);
}

.search-form button {
    background-color: var(--color-accent);
    color: #ffffff;
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
    min-height: 44px;
}

.search-form button:hover {
    background-color: var(--color-accent-hover);
}

/* Dark mode toggle */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
    min-height: 44px;
    min-width: 44px;
}

.dark-mode-toggle:hover {
    color: var(--color-accent);
}

.dark-mode-toggle .icon-sun,
.dark-mode-toggle .icon-moon {
    width: 20px;
    height: 20px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
    color: var(--color-text-muted);
}

.empty-state__title {
    font-size: var(--text-heading);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.empty-state__body {
    font-size: var(--text-base);
    max-width: 480px;
    margin: 0 auto var(--space-lg);
}

.empty-state__cta {
    display: inline-block;
    background-color: var(--color-accent);
    color: #ffffff;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.15s ease;
}

.empty-state__cta:hover {
    background-color: var(--color-accent-hover);
    color: #ffffff;
}

/* Reading time */
.reading-time {
    font-size: var(--text-label);
    color: var(--color-text-muted);
}

/* Source attribution / references */
/* Article footer: source + tags wrapper */
.article-footer {
    margin-top: var(--space-2xl);
    border-top: 2px solid var(--color-accent);
    background: var(--color-surface);
    border-radius: 0 0 8px 8px;
}

.article-footer__row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px var(--space-lg);
    font-size: 15px;
}

.article-footer__row + .article-footer__row {
    border-top: 1px solid var(--color-border);
}

.article-footer__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    white-space: nowrap;
    min-width: 100px;
}

.article-footer__label svg {
    flex-shrink: 0;
    color: var(--color-accent);
}

.article-footer__value a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.article-footer__value a:hover {
    text-decoration: underline;
}

.article-footer__sep {
    color: var(--color-text-muted);
    margin-right: 4px;
}

.article-footer__row--tags {
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
}

.article-footer__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 768px) {
    .article-footer__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px var(--space-md);
    }
    .article-footer__label {
        min-width: auto;
    }
}

/* Related articles */
.related-articles {
    margin-top: var(--space-2xl);
}

.related-articles__title {
    font-size: var(--text-heading);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

/* Tag pills */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.tag-pill {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.15s ease;
    line-height: 1.3;
}

.tag-pill:hover {
    background-color: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

/* Search results heading */
.search-results__heading {
    font-size: var(--text-heading);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.search-results__count {
    color: var(--color-text-muted);
    font-size: var(--text-base);
    font-weight: 400;
}

/* Article meta */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-label);
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
}

.article-meta__sep {
    color: var(--color-border);
    margin: 0 2px;
}

.article-header {
    margin-bottom: var(--space-xl);
}

.article-featured-image {
    margin-bottom: var(--space-lg);
    border-radius: 8px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

/* Section headings */
.section-heading {
    font-size: var(--text-heading);
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

/* Daily Digest */
.daily-digest {
    max-width: var(--layout-max-width);
    margin: var(--space-lg) auto var(--space-xl);
    padding: var(--space-lg) var(--space-xl);
    background: var(--color-surface);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 8px 8px 0;
}

.daily-digest__title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: var(--text-heading);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.daily-digest__title svg {
    flex-shrink: 0;
    color: var(--color-accent);
}

.daily-digest__content {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-text);
}

.daily-digest__content p {
    margin-bottom: var(--space-sm);
}

.daily-digest__content p:last-child {
    margin-bottom: 0;
}

.daily-digest__date {
    display: block;
    margin-top: var(--space-md);
    font-size: var(--text-label);
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .daily-digest {
        margin: var(--space-md) var(--space-sm);
        padding: var(--space-md);
    }
}

/* Tags Page */
.tags-page__title {
    font-family: var(--font-heading);
    font-size: var(--text-display);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.tags-page__subtitle {
    color: var(--color-text-muted);
    font-size: var(--text-base);
    margin-bottom: var(--space-xl);
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: var(--space-lg);
    background: var(--color-surface);
    border-radius: 8px;
    margin-bottom: var(--space-2xl);
}

.tag-cloud__item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.15s ease;
    line-height: 1.6;
}

.tag-cloud__item:hover {
    color: var(--color-accent);
}

.tag-cloud__count {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    vertical-align: super;
}

/* Tags Table */
.tags-table {
    margin-top: var(--space-lg);
}

.tags-table__search {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    margin-bottom: var(--space-md);
}

.tags-table__search svg {
    flex-shrink: 0;
    color: var(--color-text-muted);
}

.tags-table__search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--color-text);
    outline: none;
    font-family: var(--font-body);
}

.tags-table__search-input::placeholder {
    color: var(--color-text-muted);
}

.tags-table__search-count {
    font-size: 13px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.tags-table__search-clear {
    font-size: 20px;
    color: var(--color-text-muted);
    text-decoration: none;
    line-height: 1;
    padding: 0 4px;
}

.tags-table__search-clear:hover {
    color: var(--color-accent);
}

.tags-table__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
}

.tags-table__pagination a,
.tags-table__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.tags-table__pagination a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.tags-table__pagination .active {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.tags-table__ellipsis {
    border: none;
    background: none;
    color: var(--color-text-muted);
    min-width: 24px;
}

.tags-table table {
    width: 100%;
    border-collapse: collapse;
}

.tags-table thead th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    padding: var(--space-sm) 0;
    border-bottom: 2px solid var(--color-border);
    text-align: left;
}

.tags-table tbody tr {
    border-bottom: 1px solid var(--color-border);
}

.tags-table tbody td {
    padding: 10px 0;
    vertical-align: middle;
}

.tags-table__link {
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    font-size: 15px;
}

.tags-table__link:hover {
    color: var(--color-accent);
}

.tags-table__bar {
    height: 3px;
    background: var(--color-border);
    border-radius: 2px;
    margin-top: 6px;
    max-width: 200px;
}

.tags-table__bar-fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: 2px;
    min-width: 2px;
}

.tags-table__count-col {
    width: 60px;
    text-align: right;
}

.tags-table__count {
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text);
}
