/* Static article library and readable editorial template. */
.site-shell .library-main { padding-block: 36px; }
.library-intro { max-width: 780px; margin-bottom: 24px; }
.library-intro h2 { font-size: 1.5rem; margin-bottom: 12px; }
.library-intro a, .care-article a { color: #126b70; text-decoration: underline; text-underline-offset: 4px; }
.library-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.library-filter { min-height: 44px; padding: 8px 18px; border: 1px solid #b7cfd0; border-radius: 24px; background: #fff; color: var(--care-ink, #111111); cursor: pointer; }
.library-filter[aria-pressed="true"] { background: #126b70; border-color: #126b70; color: #fff; }
#library-count { color: var(--care-muted, #303030); font-size: .9rem; margin-bottom: 20px; }
.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.library-card { min-width: 0; overflow: hidden; border: 1px solid #d7e5e6; background: #fff; border-radius: 18px; display: flex; flex-direction: column; }
.library-card[hidden] { display: none; }
.library-card > img { width: 100%; height: 190px; object-fit: cover; }
.library-card-content { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; flex: 1; }
.library-card h2 { font-size: 1.2rem; line-height: 1.65; margin: 10px 0; }
.library-card h2 a { color: var(--care-ink, #111111); text-decoration: none; }
.library-card h2 a:hover { text-decoration: underline; }
.library-card p { font-size: .9rem; color: var(--care-muted, #303030); margin: 0 0 14px; }
.library-card .article-age { margin-top: auto; font-size: .85rem; }
.article-category-label { font-size: .8rem; color: #126b70; font-weight: 700; }
.review-badge { display: inline-block; padding: 4px 12px; border: 1px solid #dec59c; border-radius: 8px; background: #fff7e9; color: #6f4b18; font-size: .8rem; font-weight: 700; }
.library-card .article-card-date { margin-top: 10px; font-size: .8rem; }
.library-card .btn { align-self: stretch; padding: 10px 18px; text-decoration: none; }
.care-article { max-width: 850px; margin-inline: auto; font-size: 1.05rem; }
.care-article h2 { color: var(--care-ink, #111111); font-size: 1.35rem; line-height: 1.6; margin-bottom: 12px; }
.care-article p { margin-bottom: 14px; }
.care-article ul, .care-article ol { padding-inline-start: 24px; }
.care-article li { padding-inline-start: 4px; margin-bottom: 10px; }
.article-review-panel { border: 1px solid #d7e5e6; background: #fff; border-radius: 18px; padding: 26px; margin-bottom: 20px; }
.article-metadata { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 20px 0; }
.article-metadata dt { color: var(--care-muted, #303030); font-size: .8rem; }
.article-metadata dd { margin: 0; font-size: .9rem; }
.article-review-panel > p, .article-review-panel > a { font-size: .85rem; }
.article-scope { padding-inline: 4px; color: var(--care-muted, #303030); font-size: .9rem; }
.article-takeaway, .article-toc { border-radius: 18px; background: #eaf3f0; padding: 24px; margin-block: 24px; }
.article-toc { background: #fff; border: 1px solid #d7e5e6; }
.article-toc ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
/* Individual article sections are reading cards, not divider-separated text. */
.site-shell main .care-article > .article-section {
    min-width: 0;
    margin-block: clamp(16px, 2.5vw, 24px);
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid #d7e5e6;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(23, 59, 73, .055);
    scroll-margin-top: 24px;
    overflow-wrap: anywhere;
}
.site-shell main .care-article > .article-section > :last-child {
    margin-bottom: 0;
}
.site-shell main .care-article > .article-section > h2 {
    margin-top: 0;
    margin-bottom: 14px;
    padding-inline-start: 14px;
    border-inline-start: 4px solid #126b70;
    line-height: 1.65;
}
.site-shell main .care-article > .article-section > .article-citations {
    margin-top: 6px;
}
.article-citations { display: inline-flex; gap: 8px; font-size: .85rem; }
.article-citations a { min-width: 30px; padding: 4px; }
.article-help { background: #fff7e9; border-inline-start: 4px solid #b67e35; padding: 24px; border-radius: 12px; margin-block: 28px; }
.article-sources { background: #fff; padding: 26px; border: 1px solid #d7e5e6; border-radius: 18px; }
.article-sources > p, .article-sources li p { color: var(--care-muted, #303030); font-size: .8rem; }
.article-sources li { padding-block: 8px; scroll-margin-top: 24px; overflow-wrap: anywhere; }
.article-sources li a { font-size: .95rem; }
.site-shell main .care-article > .article-related {
    margin-block: clamp(16px, 2.5vw, 24px);
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid #d7e5e6;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(23, 59, 73, .055);
}
.site-shell main .care-article > .article-related ul {
    margin-bottom: 18px;
}
.site-shell main .care-article > .article-related .btn {
    max-width: 100%;
}

.care-article .btn { display: inline-block; padding: 10px 18px; margin-block: 8px; text-decoration: none; }
.care-article a.btn-primary { color: #fff; }
.article-discovery { margin-block: 28px; padding: 24px; background: #eaf3f0; border: 1px solid #d7e5e6; border-radius: 18px; }
.article-discovery h2 { font-size: 1.25rem; margin-bottom: 14px; }
.article-discovery ul { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 0; list-style: none; }
.article-discovery a { color: #126b70; font-weight: 600; text-decoration: underline; }
@media (max-width: 992px) { .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .library-grid { grid-template-columns: minmax(0, 1fr); }
    .article-metadata, .article-toc ul { grid-template-columns: minmax(0, 1fr); }
    .article-review-panel, .article-sources, .article-takeaway, .article-toc, .article-help { padding: 20px; }
    .site-shell main .care-article > :is(.article-section, .article-related) {
        padding: clamp(18px, 4.5vw, 22px);
        border-radius: 14px;
        margin-block: 16px;
    }
    .site-shell main .care-article > .article-section > h2 {
        padding-inline-start: 12px;
    }
    .care-article { font-size: 1rem; }
    .library-card > img { height: 180px; }
    .article-discovery ul { flex-direction: column; }
}
.care-article time, .library-card time { direction: ltr; unicode-bidi: isolate; display: inline-block; }
