/* Article references live outside the numbered reading body and its TOC. */
.article-sources {
    margin: 24px 0;
    overflow: hidden;
    border: 1px solid var(--editorial-border, #e6e8ee);
    border-radius: 14px;
    color: var(--editorial-text, #121212);
    background: var(--editorial-surface, #fff);
    font-size: 13px;
}
.article-sources-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 14px 18px;
    box-sizing: border-box;
    list-style: none;
}
summary.article-sources-header { cursor: pointer; }
summary.article-sources-header::-webkit-details-marker { display: none; }
summary.article-sources-header:hover { background: var(--editorial-surface-soft, #f2f4f8); }
.article-sources-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: var(--editorial-accent, #6c4dff);
}
.article-sources-title { font-size: 14px; font-weight: 700; }
.article-sources-count {
    min-width: 23px;
    padding: 2px 6px;
    box-sizing: border-box;
    border-radius: 6px;
    color: var(--editorial-accent, #6c4dff);
    background: rgba(108, 77, 255, .09);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.article-sources-hint {
    margin-left: auto;
    color: var(--editorial-muted, #6b7280);
    font-size: 11px;
}
.article-sources-hide { display: none; }
.article-sources-panel[open] .article-sources-show { display: none; }
.article-sources-panel[open] .article-sources-hide { display: inline; }
.article-sources-chevron {
    flex: 0 0 auto;
    color: var(--editorial-muted, #6b7280);
    transition: transform 180ms ease;
}
.article-sources-panel[open] .article-sources-chevron { transform: rotate(180deg); }
.article-sources-list {
    margin: 0;
    padding: 0 18px 6px;
    list-style: none;
}
.article-sources-list li { margin: 0; padding: 0; border-top: 1px solid var(--editorial-border, #e6e8ee); }
.article-sources-list a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 11px 0;
    color: inherit;
    text-decoration: none;
}
.article-source-copy { display: block; min-width: 0; }
.article-source-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.article-source-host {
    display: block;
    margin-top: 2px;
    color: var(--editorial-muted, #6b7280);
    font-size: 10px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.article-source-external {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--editorial-muted, #6b7280);
}
.article-sources-list a:hover .article-source-title { color: var(--editorial-accent, #6c4dff); text-decoration: underline; text-underline-offset: 3px; }
.article-sources-list a:hover .article-source-external { color: var(--editorial-accent, #6c4dff); }
summary.article-sources-header:focus-visible,
.article-sources-list a:focus-visible {
    outline: 2px solid var(--editorial-accent, #6c4dff);
    outline-offset: -3px;
    border-radius: 6px;
}
.dark-theme .article-sources-count { color: #b6a6ff; background: rgba(157, 130, 255, .14); }
.dark-theme .article-sources-icon,
.dark-theme .article-sources-list a:hover .article-source-title,
.dark-theme .article-sources-list a:hover .article-source-external { color: #b6a6ff; }
@media (max-width: 480px) {
    .article-sources { margin: 20px 0; border-radius: 12px; }
    .article-sources-header { gap: 8px; min-height: 54px; padding: 12px 14px; }
    .article-sources-hint { display: none; }
    .article-sources-chevron { margin-left: auto; }
    .article-sources-list { padding: 0 14px 4px; }
    .article-sources-list a { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .article-sources-chevron { transition: none; }
}
