.content {
    position: fixed;
    bottom: 0;
    left: 0;
    color: #0a0a0a;
    width: 100%;
    padding: 20px;
    height: 190px;
    margin-top: -95px;
    text-align: center;
}

section#services {
    background: #eee;
}

p {
    font-weight: 300;
}

.page-section h3.section-subheading {
    font-weight: 700;
}

/* Daily Scroll-specific styles */

.sn-archive-header {
    /* margin-bottom: 2.5rem; */
}

.page-section h2.section-heading {
    margin-bottom: .5rem;
}

.sn-archive-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.sn-archive-header p {
    font-size: 0.95rem;
    color: #6b6b7a;
    margin-bottom: 0;
}

.day-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0 2rem;
}

.day-title {
    font-weight: 600;
    font-size: 1rem;
}

.day-meta {
    font-size: 0.8rem;
    color: #f1f1f1f1;
}

.articles-track-wrapper {
    position: relative;
}

.articles-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
}

.articles-track::-webkit-scrollbar {
    height: 6px;
}
.articles-track::-webkit-scrollbar-track {
    background: transparent;
}
.articles-track::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
}

/* Alternating horizontal offsets for rows */
.day-row:nth-of-type(odd) .articles-track-wrapper {
    padding-left: 0;
    padding-right: 2rem;
}
.day-row:nth-of-type(even) .articles-track-wrapper {
    padding-left: 2rem;
    padding-right: 0;
}

.article-card {
    scroll-snap-align: start;
    min-width: 260px;
    max-width: 320px;
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.article-image-wrap {
    background: #e1e1e8;
    position: relative;
}

.article-image-wrap img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-body {
    padding: 0.75rem 0.9rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.article-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.1rem;
}

.article-meta {
    font-size: 0.78rem;
    color: #6b6b7a;
}

.article-actions {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-analyze {
    border-radius: 999px;
    border-width: 1px;
    font-size: 0.78rem;
    padding: 0.25rem 0.7rem;
}

.link-read {
    font-size: 0.78rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: inherit;
}

.link-read span.icon {
    font-size: 0.8em;
}

.link-read:hover {
    text-decoration: underline;
}

/* Scroll buttons on each side of the track */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.scroll-btn-left {
    left: 0.25rem;
}

.scroll-btn-right {
    right: 0.25rem;
}

.scroll-btn:disabled {
    opacity: 0.4;
    cursor: default;
    box-shadow: none;
}

@media (max-width: 768px) {
    .day-row:nth-of-type(even) .articles-track-wrapper {
        padding-left: 1rem;
        padding-right: 0;
    }

    .scroll-btn-left {
        left: 0;
    }
    .scroll-btn-right {
        right: 0;
    }
}

a.btn.btn-outline-primary.btn-analyze:hover {
    background: #00bfa6;
    border-color: var(--brand-color);
}

.btn-outline-primary {
    color: black;
    border: 2px solid var(--brand-color);
}

.article-image-wrap {
    position: relative;
}

.domain-chip {
    position: absolute;
    left: 0.5rem;
    bottom: 0.5rem;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.75rem;
    display: inline-flex;
    letter-spacing: 0.02em;
    align-items: center;
    gap: 4px;
}

.domain-chip .pub-favicon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    object-fit: contain;
}

/* Filter bar */
.sn-history-filters label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b6b7a;
    margin-bottom: 0.15rem;
}


/* ==========================================
   NLP Chips (entities / hashtags)
========================================== */

.sn-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.sn-hashtag-chip {
    display: inline-block;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    border-radius: 14px;
    background: #f3f6f9;
    color: #34495e;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.15s ease;
}

.sn-hashtag-chip:hover {
    background: #e9f2ff;
    color: #0d6efd;
    border-color: rgba(13,110,253,0.25);
    text-decoration: none;
}

/* ==========================================
   Sentiment Label
========================================== */

.sn-sentiment {
    margin-top: 6px;
    font-size: 13px;
    color: #8a94a6;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sn-sentiment-label {
    font-weight: 600;
}

.sn-sentiment-score {
    opacity: 0.7;
    font-size: 12px;
}

/* ==========================================
   Emotion bars (archive)
========================================== */

.sn-emotions {
    margin-top: 8px;
}

.sn-emotion-bar {
    display: grid;
    grid-template-columns: 80px 1fr 44px;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.sn-emotion-label {
    font-size: 12px;
    color: #969ba5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sn-emotion-bar-track {
    height: 8px;                /* <- key: give it height */
    background: #eef2f6;        /* <- key: visible track */
    border-radius: 999px;
    overflow: hidden;
}

.sn-emotion-bar-fill {
    height: 100%;               /* <- key: match track height */
    background: #9aa3b2;        /* neutral gray fill */
    border-radius: 999px;
}

.sn-emotion-value {
    font-size: 12px;
    color: #9aa3b2;
    text-align: right;
}