/* ECO SORT AI - Ho so nhan dien */
#scan-result { padding: 0; border: 0; background: transparent; color: var(--ink); }
.sp-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 2.5vw, 28px); }
.sp-header { display: grid; grid-template-columns: 116px minmax(0,1fr); align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sp-photo { width: 116px; height: 135px; border-radius: 14px; object-fit: contain; background: #edf4ed; }
.sp-placeholder { display: grid; place-items: center; font-size: 44px; color: var(--green); }
.sp-kicker { font-size: 11px; font-weight: 800; color: var(--green); letter-spacing: .08em; margin: 0 0 6px; }
.sp-header h2 { font-size: clamp(22px,3vw,32px); margin: 0 0 8px; overflow-wrap: anywhere; }
.sp-header p { margin: 4px 0; }
.sp-score { color: #236d51; font-weight: 750; }
.sp-decision { background: #edf5ed; border-left: 4px solid var(--green); padding: 13px 15px; border-radius: 10px; margin: 18px 0; }
#scan-result.warn .sp-decision { background:#fff4e1; border-color:#be7e37; }
#scan-result.error .sp-decision { background:#fbeceb; border-color:#a94a45; }
.sp-decision p { margin: 5px 0 0; }
.sp-grid,.sp-details { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.sp-tile,.sp-detail { background:#f5f8f4; padding:14px; border-radius:12px; min-width:0; overflow-wrap:anywhere; }
.sp-tile span { display:block; color:var(--muted); font-size:12px; margin-bottom:5px; }
.sp-tile strong { font-size:15px; line-height:1.5; }
.sp-details { margin-top:18px; }
.sp-detail h4,.sp-sources h4 { color:var(--green); font-size:14px; margin:0 0 7px; }
.sp-detail p { margin:0; line-height:1.65; }
.sp-sources { border-top:1px solid var(--line); padding-top:16px; margin-top:18px; }
@media(max-width:650px) { .sp-grid,.sp-details {grid-template-columns:1fr;} .sp-header {grid-template-columns:80px minmax(0,1fr);gap:12px;} .sp-photo {width:80px;height:100px;} }

/* ==========================================
   ECOSCAN - HO SO KIEN THUC KHOA HOC
========================================== */

.science-section-heading {
    margin: 32px 0 20px;
    padding-left: 15px;
    border-left: 5px solid #267052;
    color: #183f31;
    font-size: 24px;
    font-weight: 800;
}

.sp-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.sp-detail {
    background: #f4f8f4;
    border: 1px solid #e2ebe3;
    border-radius: 16px;
    padding: 24px;
    min-width: 0;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.sp-detail:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(25, 70, 46, 0.08);
}

.sp-detail h4 {
    color: #236d51;
    font-size: 17px;
    line-height: 1.5;
    margin: 0 0 12px;
    font-weight: 750;
}

.sp-detail p {
    font-size: 15px;
    color: #244136;
    line-height: 1.85;
    margin: 0;
    overflow-wrap: anywhere;
}

.sp-tile {
    border-radius: 16px;
    padding: 22px;
    min-width: 0;
    background: #f2f7f2;
}

.sp-tile strong {
    display: block;
    margin-top: 10px;
    font-size: 17px;
    line-height: 1.6;
    color: #173d2f;
    overflow-wrap: anywhere;
}

.sp-sources {
    margin-top: 28px;
    padding: 24px;
    background: #f5f8f3;
    border: 1px solid #dce7dc;
    border-radius: 16px;
}

.sp-sources h4 {
    margin: 12px 0 18px;
    font-size: 19px;
    color: #236d51;
}

.sp-sources a {
    color: #267052;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

#scan-result {
    scroll-margin-top: 110px;
}

@media (max-width: 760px) {

    .sp-grid,
    .sp-details {
        grid-template-columns: 1fr;
    }

    .sp-detail {
        padding: 18px;
    }

    .science-section-heading {
        font-size: 21px;
    }

}
