/* Portal-style news detail enhancements */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #2563eb, #8b5cf6);
    z-index: 9999;
    transition: width 0.1s linear;
}

#back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 999;
    display: none;
}

.topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 800;
    background: rgba(37, 99, 235, 0.10);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.20);
    transition: background 0.2s, transform 0.2s;
}

.topic-chip:hover {
    background: rgba(37, 99, 235, 0.20);
    transform: translateY(-1px);
}

.article-body-content a.topic-inline-link {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.08);
    border-bottom: 1px dashed rgba(37, 99, 235, 0.45);
    padding: 0 0.1rem;
    border-radius: 2px;
    font-weight: 700;
}

.article-body-content a.topic-inline-link:hover {
    background: rgba(37, 99, 235, 0.18);
    border-bottom-style: solid;
}

.sticky-rail {
    position: sticky;
    top: 1rem;
}

.portal-meta-bar {
    background: rgba(15, 23, 42, 0.03);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* For You interest onboarding */
.interest-card {
    outline: none;
}
.interest-card:focus-visible {
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.7);
}

[x-cloak] { display: none !important; }
