/* Anderson Edmunds VDP — scoped styling */
#edmunds-research{scroll-margin-top:155px}
#edmunds-research .edmunds-panel{background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 7px 24px rgba(15,23,42,.035);padding:clamp(20px,3vw,34px);overflow:hidden}
#edmunds-research .edmunds-header{display:flex;justify-content:space-between;align-items:start;gap:20px;flex-wrap:wrap;border-bottom:1px solid #e9edf3;padding-bottom:22px;margin-bottom:22px}
#edmunds-research .edmunds-eyebrow{font-size:11px;letter-spacing:.13em;font-weight:800;color:#1d67a8;margin-bottom:9px}
#edmunds-research h2{font-size:clamp(21px,2vw,27px);font-weight:750;line-height:1.25;color:#172c45;margin:0 0 8px}
#edmunds-research .edmunds-header-caption{color:#69778b;margin:0;font-size:13px}
#edmunds-research .edmunds-source-link{font-size:12px;font-weight:700;color:#075f9d;text-decoration:none;white-space:nowrap;padding-top:8px}
#edmunds-research .edmunds-review-copy{font-size:14px;line-height:1.8;color:#34445a;position:relative;overflow-wrap:anywhere}
#edmunds-research .edmunds-review-copy p{margin:0 0 14px}
#edmunds-research .edmunds-review-copy img{max-width:100%;height:auto;border-radius:10px}
#edmunds-research .edmunds-review-copy iframe{max-width:100%}
#edmunds-research .edmunds-review-copy.is-collapsed{max-height:205px;overflow:hidden}
#edmunds-research .edmunds-review-copy.is-collapsed:after{content:"";position:absolute;bottom:0;left:0;right:0;height:70px;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff);pointer-events:none}
#edmunds-research .edmunds-expand{appearance:none;border:1px solid #cadbea;border-radius:999px;padding:9px 16px;background:#f7fbff;color:#075f9d;font-weight:700;font-size:12px;margin:15px 0 24px;position:relative;z-index:1;cursor:pointer}
#edmunds-research .edmunds-expand span{margin-left:8px}
#edmunds-research .edmunds-verdict-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0 10px}
#edmunds-research .edmunds-verdict{border-radius:12px;border:1px solid #e6ebf0;padding:20px;background:#f9fbfd}
#edmunds-research .edmunds-pros{background:#f5faf8;border-color:#dbeee5}
#edmunds-research .edmunds-cons{background:#fafbfc;border-color:#e6e9ee}
#edmunds-research .edmunds-verdict h3{font-size:15px;font-weight:750;color:#1c3047;display:flex;align-items:center;gap:9px;margin:0 0 14px}
#edmunds-research .edmunds-verdict-icon{display:inline-grid;place-items:center;border-radius:50%;width:25px;height:25px;background:#dcefe5;color:#216c49;font-weight:800;font-size:16px}
#edmunds-research .edmunds-cons .edmunds-verdict-icon{background:#e8ebef;color:#607086}
#edmunds-research .edmunds-verdict ul{padding-left:17px;margin:0;color:#435169;font-size:13px;line-height:1.65}
#edmunds-research .edmunds-verdict li+li{margin-top:9px}
#edmunds-research .edmunds-videos{border-top:1px solid #e9edf3;padding-top:24px;margin-top:26px}
#edmunds-research .edmunds-videos h3{font-size:17px;font-weight:750;color:#172c45;margin-bottom:16px}
#edmunds-research .edmunds-video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#edmunds-research .edmunds-video iframe{border:0;border-radius:9px}
#edmunds-research .edmunds-video p{font-size:12px;line-height:1.5;font-weight:600;color:#34445a;margin:9px 0 0}
#edmunds-research .edmunds-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid #e9edf3;padding-top:16px;margin-top:26px;color:#748092;font-size:11px;line-height:1.6}
#edmunds-research .edmunds-footer a{font-weight:700}
@media(max-width:767px){#edmunds-research .edmunds-verdict-grid{grid-template-columns:1fr}#edmunds-research .edmunds-video-grid{grid-template-columns:1fr}#edmunds-research .edmunds-panel{padding:20px}#edmunds-research .edmunds-header{gap:7px}#edmunds-research .edmunds-source-link{padding-top:0}}

/* v0.5.0 — Expert rating, scorecard and safety accordion */
#edmunds-research .edmunds-header-right{display:flex;align-items:flex-end;flex-direction:column;gap:9px}
#edmunds-research .edmunds-overall-rating{display:flex;align-items:baseline;gap:3px;color:#075f9d;white-space:nowrap}
#edmunds-research .edmunds-rating-number{font-size:32px;font-weight:800;line-height:1}
#edmunds-research .edmunds-rating-denom{font-size:15px;color:#66788d;font-weight:700}
#edmunds-research .edmunds-overall-rating small{font-size:11px;color:#66788d;margin-left:8px}
#edmunds-research .edmunds-scorecard{border-top:1px solid #e9edf3;margin-top:24px;padding-top:23px}
#edmunds-research .edmunds-scorecard h3,#edmunds-research .edmunds-safety h3{font-size:16px;font-weight:750;color:#172c45;margin:0 0 18px}
#edmunds-research .edmunds-score-grid{display:grid;grid-template-columns:1fr;gap:13px}
#edmunds-research .edmunds-score-row{display:grid;grid-template-columns:95px minmax(0,1fr) 34px;gap:12px;align-items:center;font-size:13px;color:#34445a}
#edmunds-research .edmunds-score-row strong{text-align:right;font-variant-numeric:tabular-nums}
#edmunds-research .edmunds-score-track{height:9px;border-radius:99px;background:#e9eef4;overflow:hidden}
#edmunds-research .edmunds-score-track span{display:block;height:100%;background:#0872b9;border-radius:99px}
#edmunds-research .edmunds-safety{border:1px solid #dfe7ef;border-radius:12px;margin-top:24px;overflow:hidden}
#edmunds-research .edmunds-safety summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f7fafd;padding:18px 20px;list-style:none;color:#172c45}
#edmunds-research .edmunds-safety summary::-webkit-details-marker{display:none}
#edmunds-research .edmunds-safety summary strong{display:block;font-size:15px}
#edmunds-research .edmunds-safety summary small{display:block;color:#66788d;font-size:12px;margin-top:4px}
#edmunds-research .edmunds-safety-chevron{font-size:22px;transition:transform .2s}
#edmunds-research .edmunds-safety[open] .edmunds-safety-chevron{transform:rotate(180deg)}
#edmunds-research .edmunds-safety-content{padding:20px}
#edmunds-research .edmunds-safety-block+.edmunds-safety-block{border-top:1px solid #e9edf3;padding-top:20px;margin-top:20px}
#edmunds-research .edmunds-safety-ratings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#edmunds-research .edmunds-safety-tile{display:flex;flex-direction:column;align-items:center;gap:5px;background:#f5f8fc;border-radius:10px;padding:14px 8px;text-align:center}
#edmunds-research .edmunds-safety-tile strong{font-size:24px;color:#075f9d}
#edmunds-research .edmunds-safety-tile strong small{font-size:12px;color:#66788d}
#edmunds-research .edmunds-safety-tile span{font-size:11px;color:#435169}
#edmunds-research .edmunds-iihs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#edmunds-research .edmunds-iihs-grid>div{border:1px solid #e9edf3;border-radius:8px;padding:11px;display:flex;justify-content:space-between;gap:8px;font-size:12px}
#edmunds-research .edmunds-iihs-grid strong{color:#216c49}
#edmunds-research .edmunds-safety-features{display:grid;gap:14px}
#edmunds-research .edmunds-safety-features strong{font-size:13px;color:#172c45}
#edmunds-research .edmunds-safety-features p{font-size:12px;color:#435169;margin:4px 0 0;line-height:1.6}
#edmunds-research .edmunds-safety-note{font-size:11px;color:#748092;line-height:1.6;margin:12px 0 0}
@media(max-width:767px){#edmunds-research .edmunds-header-right{align-items:flex-start}#edmunds-research .edmunds-safety-ratings{grid-template-columns:repeat(2,minmax(0,1fr))}#edmunds-research .edmunds-iihs-grid{grid-template-columns:1fr}#edmunds-research .edmunds-score-row{grid-template-columns:82px minmax(0,1fr) 30px;gap:8px}}

/* v0.5.1: prominent rating badge and NHTSA stars */
#edmunds-research .edmunds-overall-rating{display:flex;flex-direction:column;align-items:center;gap:3px;background:#eef6fd;border:1px solid #d5e7f7;border-radius:12px;padding:11px 15px;min-width:130px;white-space:nowrap}
#edmunds-research .edmunds-rating-value{display:flex;align-items:baseline;gap:3px}
#edmunds-research .edmunds-rating-number{font-size:32px;line-height:1.1;font-weight:800}
#edmunds-research .edmunds-overall-rating small{margin:0;font-size:10px;font-weight:700;letter-spacing:.025em;color:#4c6b87;text-align:center}
#edmunds-research .edmunds-rating-stars{display:flex;gap:1px;justify-content:center;font-size:13px;line-height:1.1;white-space:nowrap}
#edmunds-research .edmunds-rating-stars .is-filled{color:#e7a11a}
#edmunds-research .edmunds-rating-stars .is-empty{color:#cbd5df}
#edmunds-research .edmunds-safety-tile{gap:6px}
@media(max-width:767px){#edmunds-research .edmunds-overall-rating{align-items:center}}

/* v0.6.0: subdued model-year scope disclosure */
#edmunds-research .edmunds-match-note{font-size:11px;color:#68798c;line-height:1.5;margin:7px 0 0;max-width:600px}

/* v0.6.3 — collapsed, trim-matched Edmunds specifications */
#edmunds-research .edmunds-specs{border:1px solid #dfe7ef;border-radius:12px;margin-top:18px;overflow:hidden}
#edmunds-research .edmunds-specs summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f7fafd;padding:18px 20px;list-style:none;color:#172c45}
#edmunds-research .edmunds-specs summary::-webkit-details-marker{display:none}
#edmunds-research .edmunds-specs summary strong{display:block;font-size:15px}
#edmunds-research .edmunds-specs summary small{display:block;color:#66788d;font-size:12px;margin-top:4px}
#edmunds-research .edmunds-specs-chevron{font-size:22px;line-height:1;transition:transform .2s}
#edmunds-research .edmunds-specs[open] .edmunds-specs-chevron{transform:rotate(180deg)}
#edmunds-research .edmunds-specs-content{padding:20px}
#edmunds-research .edmunds-specs-note{font-size:11px;line-height:1.6;color:#748092;margin:0 0 18px}
#edmunds-research .edmunds-specs-group+.edmunds-specs-group{border-top:1px solid #e9edf3;margin-top:18px;padding-top:18px}
#edmunds-research .edmunds-specs-group h3{font-size:15px;font-weight:750;color:#172c45;margin:0 0 12px}
#edmunds-research .edmunds-specs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px;margin:0}
#edmunds-research .edmunds-specs-item{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #edf1f5;padding:8px 0;font-size:12px}
#edmunds-research .edmunds-specs-item dt{color:#69778b;font-weight:500}
#edmunds-research .edmunds-specs-item dd{color:#172c45;font-weight:700;text-align:right;margin:0;overflow-wrap:anywhere}
@media(max-width:767px){#edmunds-research .edmunds-specs-grid{grid-template-columns:1fr}#edmunds-research .edmunds-specs-content{padding:16px}}

/* =========================================================
   Edmunds — Consistent expand/collapse chevrons
========================================================= */

/* Read full expert review */
#edmunds-research .edmunds-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1.2;
}

#edmunds-research .edmunds-expand span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8px;
    height: 8px;
    margin: -4px 0 0;
    font-size: 0;
    line-height: 0;
    transform: rotate(45deg);
    border-right: 1.75px solid currentColor;
    border-bottom: 1.75px solid currentColor;
    transition: transform .2s ease, margin .2s ease;
}

/* Expanded review — point upward */
#edmunds-research .edmunds-expand[aria-expanded="true"] span {
    transform: rotate(225deg);
    margin: 4px 0 0;
}

/* Safety Ratings & Technology */
#edmunds-research .edmunds-safety summary {
    position: relative;
    padding-right: 48px;
    list-style: none;
}

#edmunds-research .edmunds-safety summary::marker {
    content: "";
}

#edmunds-research .edmunds-safety summary::-webkit-details-marker {
    display: none;
}

/* Hide the original text arrow */
#edmunds-research .edmunds-safety-chevron {
    display: none;
}

/* CSS chevron */
#edmunds-research .edmunds-safety summary::after {
    content: "";
    position: absolute;
    right: 21px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid #46617e;
    border-bottom: 2px solid #46617e;
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s ease;
}

/* Expanded safety — point upward */
#edmunds-research .edmunds-safety[open] summary::after {
    transform: translateY(-25%) rotate(225deg);
}

/* =========================================================
   EDMUNDS EXPERT REVIEW — BRANDED HEADER
========================================================= */

#edmunds-research .edmunds-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e5edf5;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

#edmunds-research .edmunds-header-main {
    flex: 1 1 300px;
    min-width: 0;
}

#edmunds-research .edmunds-brand-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 13px;
}

#edmunds-research .edmunds-eyebrow {
    color: #007bdf;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    margin: 0;
}

#edmunds-research .edmunds-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #007bdf;
    border-radius: 6px;
    padding: 7px 12px;
    text-decoration: none;
    transition: background .2s ease;
}

#edmunds-research .edmunds-brand-logo:hover {
    background: #0069c2;
}

#edmunds-research .edmunds-brand-logo img {
    display: block;
    width: 100px;
    height: 22px;
    max-width: 100%;
    object-fit: contain;
}

#edmunds-research h2 {
    color: #172c45;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px;
}

#edmunds-research .edmunds-header-caption {
    font-size: 13px;
    line-height: 1.6;
    color: #52657a;
    margin: 0;
}

#edmunds-research .edmunds-match-note {
    font-size: 11px;
    line-height: 1.5;
    color: #7a8899;
    margin: 8px 0 0;
}

#edmunds-research .edmunds-source-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #007bdf;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    padding-top: 4px;
}

#edmunds-research .edmunds-source-link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    #edmunds-research .edmunds-header {
        gap: 14px;
    }

    #edmunds-research .edmunds-header-right {
        align-items: flex-start;
    }

    #edmunds-research .edmunds-brand-row {
        gap: 10px;
    }

    #edmunds-research .edmunds-brand-logo img {
        width: 90px;
        height: 20px;
    }
}
