/* Versioned realme-only adjustments. Shared approved reference CSS is unchanged. */
#rts[data-phone-brand="realme"] .rts-hero-official {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}
#rts[data-phone-brand="realme"] .rts-hero-official > img {object-fit:contain;width:auto;height:clamp(280px,28vw,480px);max-width:100%;aspect-ratio:auto;flex-shrink:0;filter:drop-shadow(0 20px 24px #0008)}
#rts[data-phone-brand="realme"] .rth-hero-caption {margin:0;color:#c2cdd7;font-size:14px;line-height:1.5;text-align:center}
#rts[data-phone-brand="realme"] .rts-product-image img {object-fit:contain}
#rts[data-phone-brand="realme"] .rts-series-picture img {object-fit:contain}
@media(min-width:992px){#rts[data-phone-brand="realme"] #rtbp-models .rts-series-filter {grid-template-columns:repeat(3,minmax(0,1fr))}}
#rts[data-phone-brand="realme"] .rts-model-photo > img {height:100%;max-height:100%;max-width:100%;object-fit:contain}
#rts[data-phone-brand="realme"] .rts-model-photo {display:flex;align-items:center;justify-content:center}
#rts[data-phone-brand="realme"] .rts-price-card {position:relative;padding-top:82px}
#rts[data-phone-brand="realme"] .rth-work-thumb {position:absolute;top:16px;left:24px;width:68px;height:51px;object-fit:cover;border-radius:8px}
#rts[data-phone-brand="realme"] .rth-work-icon {position:absolute;top:24px;left:24px;display:flex;align-items:center;justify-content:center;width:40px;height:40px;color:#0874df}
#rts[data-phone-brand="realme"] .rth-work-icon .rts-icon {width:32px;height:32px}
#rts[data-phone-brand="realme"] .rth-realme-note {display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);align-items:center;gap:clamp(20px,3vw,48px);border-top:1px solid #d4dde5;padding-top:32px;margin-top:32px}
#rts[data-phone-brand="realme"] .rth-realme-note h3 {font-size:clamp(22px,1.5vw,28px);margin:0 0 12px}
#rts[data-phone-brand="realme"] .rth-realme-note p {max-width:62ch;color:#475569}
#rts[data-phone-brand="realme"] .rth-realme-note .rts-related-card {display:flex;flex-direction:column;background:#f7f9fc;border:1px solid #d6dfe7;border-radius:16px;padding:20px;color:#102034;text-decoration:none;transition:transform .2s,border-color .2s,box-shadow .2s}
#rts[data-phone-brand="realme"] .rth-realme-note .rts-related-card img {width:100%;height:140px;object-fit:contain}
#rts[data-phone-brand="realme"] .rth-realme-note .rts-related-card span {display:flex;align-items:center;justify-content:space-between;font-weight:700}
#rts[data-phone-brand="realme"] .rth-realme-note .rts-related-card:hover {transform:translateY(-3px);border-color:#1684eb;box-shadow:0 10px 24px #0b385916}
#rts[data-phone-brand="realme"] .rts-realme-prices .rts-scope-note {display:block;margin-top:8px;color:#516277;font-size:14px;line-height:1.5;font-weight:400}
#rts[data-phone-brand="realme"] .rts-realme-prices td:first-child {width:auto}
@media(max-width:767px){
 #rts[data-phone-brand="realme"] .rts-hero-official > img {height:290px;max-width:85vw}
 #rts[data-phone-brand="realme"] .rth-realme-note {grid-template-columns:1fr}
 #rts[data-phone-brand="realme"] .rth-realme-note .rts-related-card {max-width:320px;width:100%;justify-self:center}
 #rts[data-phone-brand="realme"] .rts-realme-prices th,#rts[data-phone-brand="realme"] .rts-realme-prices td {padding:14px 10px}
 #rts[data-phone-brand="realme"] .rts-realme-prices td:first-child {overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){#rts[data-phone-brand="realme"] .rth-realme-note .rts-related-card {transition:none}#rts[data-phone-brand="realme"] .rth-realme-note .rts-related-card:hover {transform:none}}

/* One semantic image per price card; approved model-card spacing. */
#rts[data-phone-brand="realme"] .rts-price-card {overflow:hidden}
#rts[data-phone-brand="realme"] .rts-price-card .rts-price-thumb {width:100%;height:clamp(110px,8.5vw,180px);object-fit:cover;display:block;border-radius:7px;margin:0 0 18px}
#rts[data-phone-brand="realme"] .rts-diagnosis-card .rts-price-thumb {object-fit:contain;background:#f0f6fa;color:#246694;padding:24px}
@media(max-width:767px){#rts[data-phone-brand="realme"] .rts-price-card .rts-price-thumb{height:105px;margin-bottom:14px}}
#rts[data-phone-brand="realme"] .rts-price-card{padding-top:clamp(22px,2vw,38px)}
#rts[data-phone-brand="realme"] .rts-product-image img{max-height:210px;width:auto;max-width:100%}
@media(max-width:767px){#rts[data-phone-brand="realme"] .rts-price-card{padding-top:16px}}

#rts[data-phone-brand="realme"] .rts-realme-series {margin-top:clamp(28px,3vw,56px);padding-top:clamp(24px,2.5vw,40px);border-top:1px solid #d7e0e9}
#rts[data-phone-brand="realme"] .rts-realme-series h3 {font-size:clamp(22px,1.8vw,30px);margin:0 0 20px}
#rts[data-phone-brand="realme"] .rts-realme-series .rts-related-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,1.5vw,28px)}
#rts[data-phone-brand="realme"] .rts-realme-series .rts-related-card {display:grid;grid-template-columns:minmax(76px,28%) minmax(0,1fr);align-items:center;gap:clamp(14px,1.5vw,28px);padding:clamp(18px,1.7vw,30px);border:1px solid #d6dfe7;border-radius:16px;background:#f7f9fc;color:#102034;text-decoration:none;transition:transform .2s,border-color .2s,box-shadow .2s}
#rts[data-phone-brand="realme"] .rts-realme-series .rts-related-card > span:last-child {display:flex;flex-direction:column;gap:10px;min-width:0;font-size:clamp(16px,1.2vw,22px);font-weight:700;line-height:1.4}
#rts[data-phone-brand="realme"] .rts-realme-series .rts-related-card:hover {transform:translateY(-3px);border-color:#1684eb;box-shadow:0 10px 24px #0b385916}
#rts[data-phone-brand="realme"] .rts-realme-series .rts-related-card:focus-visible {outline:3px solid #0874df;outline-offset:4px}
#rts[data-phone-brand="realme"] .rts-realme-series .rts-related-card .rts-icon {color:#0874df}
@media(prefers-reduced-motion:reduce){#rts[data-phone-brand="realme"] .rts-realme-series .rts-related-card{transition:none}#rts[data-phone-brand="realme"] .rts-realme-series .rts-related-card:hover{transform:none}}
@media(min-width:601px) and (max-width:991px){#rts[data-phone-brand="realme"] .rts-realme-series .rts-related-card{grid-template-columns:1fr;text-align:center}#rts[data-phone-brand="realme"] .rts-realme-series .rts-related-card > span:last-child{align-items:center}}
#rts[data-phone-brand="realme"] .rts-realme-series .rts-related-card small {display:block;font-size:13px;color:#526277;font-weight:400;line-height:1.45}
#rts[data-phone-brand="realme"] .rts-price-val-inspection {font-size:clamp(16px,1.2vw,21px);line-height:1.35;white-space:normal}
#rts[data-phone-brand="realme"] .rts-price-card strong.rts-price-val-inspection {font-size:clamp(19px,1.5vw,26px)}
@media(max-width:600px){#rts[data-phone-brand="realme"] .rts-realme-series .rts-related-grid{grid-template-columns:1fr}}
@media(max-width:600px){#rts[data-phone-brand="realme"] .rts-realme-series .rts-related-card{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:14px;padding:12px 16px}#rts[data-phone-brand="realme"] .rts-realme-series .rts-related-card > .rts-oem-frame{width:76px;margin:0}#rts[data-phone-brand="realme"] .rts-realme-series .rts-related-card > span:last-child{align-self:center}}

/* Display framing clips only reviewed blank OEM canvas margins. The source
   photograph retains every pixel and the full device remains inside the frame. */
#rts[data-phone-brand="realme"] .rts-oem-frame{display:block;position:relative;overflow:hidden;aspect-ratio:var(--oem-ratio);width:min(100%,calc(210px * var(--oem-ratio)));height:auto;flex-shrink:0;border-radius:9px;background:#fafafa;margin-inline:auto}
/* Shared catalog CSS contains important image dimensions. Override only this
   new class, never the shared stylesheet or ordinary symptom/service images. */
#rts[data-phone-brand="realme"] .rts-oem-frame > img,
#rts[data-phone-brand="realme"] #rtbp-models .rts-oem-frame > img{position:absolute!important;display:block;left:var(--oem-left)!important;top:var(--oem-top)!important;right:auto!important;bottom:auto!important;width:var(--oem-width)!important;height:auto!important;max-width:none!important;max-height:none!important;aspect-ratio:var(--oem-source-ratio)!important;object-fit:fill!important;transform:none!important;filter:none;margin:0;border-radius:0;padding:0}
#rts[data-phone-brand="realme"] .rts-hero-official > .rts-oem-frame{width:min(100%,calc(clamp(280px,28vw,440px) * var(--oem-ratio)));border-radius:18px;box-shadow:0 18px 36px #0005}
#rts[data-phone-brand="realme"] .rts-model-photo > .rts-oem-frame{width:min(100%,calc(300px * var(--oem-ratio)))}
#rts[data-phone-brand="realme"] .rts-series-picture .rts-oem-frame{width:43px;max-width:100%;margin:0}
#rts[data-phone-brand="realme"] .rts-series-picture.is-group .rts-oem-frame{width:30px;margin:0 -5px}
#rts[data-phone-brand="realme"] .rts-related-card > .rts-oem-frame{width:min(100%,calc(170px * var(--oem-ratio)));padding:0}
#rts[data-phone-brand="realme"] .rts-oem-frame[data-oem-photo="gt"]{border-radius:0;background:transparent}
@media(max-width:767px){#rts[data-phone-brand="realme"] .rts-hero-official > .rts-oem-frame{width:min(100%,calc(260px * var(--oem-ratio)))}#rts[data-phone-brand="realme"] .rts-product-image > .rts-oem-frame{width:min(100%,calc(160px * var(--oem-ratio)))}}
@media(max-width:359px){#rts[data-phone-brand="realme"] .rts-catalog .rts-product-image > .rts-oem-frame{width:min(100%,calc(140px * var(--oem-ratio)))}}

#rts[data-phone-brand="realme"] #rtbp-models .rts-series-filter button{min-height:136px}
@media(min-width:992px){
 #rts[data-phone-brand="realme"] #rtbp-models .rts-series-filter button{display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-rows:auto auto;text-align:left;align-content:center;column-gap:20px;row-gap:6px;padding:18px 24px}
 #rts[data-phone-brand="realme"] #rtbp-models .rts-series-picture{grid-column:1;grid-row:1 / 3;width:96px;height:92px;margin:0;display:flex;align-items:center;justify-content:center}
 #rts[data-phone-brand="realme"] #rtbp-models .rts-series-picture + span,#rts[data-phone-brand="realme"] #rtbp-models .rts-series-count{grid-column:2;align-self:center;margin:0}
 #rts[data-phone-brand="realme"] #rtbp-models .rts-series-picture .rts-oem-frame{width:68px}
 #rts[data-phone-brand="realme"] #rtbp-models .rts-series-picture.is-group .rts-oem-frame{width:42px;margin:0 -7px}
}
