/* ==== Trust layer: byline, author card, homepage trust strip, citations ==== */
/* Per careforbones-dev-spec.pdf §4, §5, §9 */

/* ---- Block 1: top byline ---- */
.article-byline{
    border-top: 1px solid #dde4e0;
    border-bottom: 1px solid #dde4e0;
    padding: 0.85rem 0;
    margin: 0 0 1.5rem;
    font-size: 0.925rem;
    line-height: 1.5;
}
.article-byline p{ margin: 0 0 0.25rem; }
.article-byline p:last-child{ margin-bottom: 0; }
.article-byline a{
    color: #0c6155;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(12,97,85,.35);
}
.article-byline a:hover{ border-bottom-color: #0c6155; }
.article-byline .byline-dates{
    color: #7c8d87;
    font-size: 0.85rem;
}
.article-byline .byline-dates a{
    color: inherit;
    font-weight: 500;
    border-bottom-color: rgba(124,141,135,.5);
}

/* ---- Block 2: foot-of-article author card ---- */
.article-authorcard{
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0 0.95rem;
    align-items: start;
    margin: 2.5rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid #dde4e0;
}
.authorcard-avatar{
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: #e0efec;
}
.authorcard-initials{
    display: grid; place-items: center;
    font-weight: 700; font-size: 1rem;
    color: #0c6155;
}
.authorcard-name{
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 0 0.15rem;
}
.authorcard-bio{
    font-size: 0.875rem;
    color: #4a5b56;
    margin: 0 0 0.6rem;
}
.authorcard-review{
    font-size: 0.85rem;
    color: #7c8d87;
    border-top: 1px dashed #dde4e0;
    padding-top: 0.55rem;
    margin: 0;
}
.article-authorcard a{ color: #0c6155; font-weight: 600; text-decoration: none; }
.article-authorcard a:hover{ text-decoration: underline; }

@media (max-width: 520px){
    .article-authorcard{ grid-template-columns: 1fr; gap: 0.75rem 0; }
}

/* ---- Homepage trust strip ---- */
.trust-strip{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.9rem;
    background: #e0efec;
    border: 1px solid rgba(12,97,85,.22);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin: 1.75rem 0;
    font-size: 0.9rem;
    color: #4a5b56;
    line-height: 1.5;
}
.trust-strip p{ margin: 0; flex: 1 1 320px; }
.trust-badge{
    font-size: 0.7rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 700;
    color: #0c6155;
    white-space: nowrap;
}
.trust-strip a{ color: #0c6155; font-weight: 600; text-decoration: none; }
.trust-strip a:hover{ text-decoration: underline; }

/* ---- In-article citations ---- */
.cite a{ text-decoration: none; padding: 0 1px; font-weight: 600; color: #0c6155; }
.cite a:hover{ text-decoration: underline; }
.references{
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dde4e0;
    font-size: 0.875rem;
}
.references h2{ font-size: 1.05rem; margin: 0 0 0.6rem; }
.references ol{ padding-left: 1.4rem; margin: 0; }
.references li{ margin-bottom: 0.7rem; line-height: 1.5; }
.references cite{ font-style: italic; }
.references .accessed{ color: #7c8d87; }
.references .backref{ text-decoration: none; margin-left: 0.25rem; }
.references li:target{
    background: #fffbea;
    outline: 2px solid #f0e0a0;
    outline-offset: 4px;
    border-radius: 3px;
}

/* ---- Article disclaimer ---- */
.article-disclaimer{
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #7c8d87;
    line-height: 1.5;
}
.article-disclaimer a{ color: #0c6155; font-weight: 600; }

/* ---- Footer nav (added alongside the existing copyright-only footer) ---- */
.site-footer{ padding: 1.75rem 0; }
.site-footer nav ul{
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    padding: 0;
    margin: 0 0 1rem;
    justify-content: center;
}
.site-footer nav a{ color: inherit; text-decoration: none; font-size: 0.9rem; }
.site-footer nav a:hover{ text-decoration: underline; }
.site-footer .copyright,
.site-footer .footer-disclaimer{
    text-align: center;
    font-size: 0.8rem;
    margin: 0.35rem 0;
    opacity: 0.85;
}
