/* Shared iPhone / Galaxy listing. Existing price tabs, CTA, FAQ and header/footer keep their own rules. */
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #series-all-models{margin-bottom:24px;scroll-margin-top:100px}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #series-all-models>.line-btitle{font-size:18px;margin:20px 0 12px}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #series-all-models>.brand-tag-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0;margin:0;list-style:none}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #series-all-models>.brand-tag-list li{min-width:0;margin:0;width:auto}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #series-all-models a.tag{display:flex;width:100%;align-items:center;justify-content:space-between;min-height:44px;padding:10px 12px;border:0;border-radius:5px;font-size:15px;box-sizing:border-box}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .iphone-model-links{display:flex;flex-wrap:wrap;gap:4px 18px;padding:0;margin:12px 0 20px;list-style:none}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .iphone-model-links li{min-width:0;max-width:100%}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .iphone-model-links a{display:inline-flex;align-items:center;min-height:44px;font-size:15px;line-height:1.5;color:#224995;text-decoration:underline;text-underline-offset:3px;word-break:break-word}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .iphone-model-links a::after{content:'›';margin-left:6px;text-decoration:none}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #quick-price,:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records{padding:48px 0}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #quick-price .line-title,:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records .line-title{margin-bottom:20px}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .lx-enrich-summary,:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .lx-br-summary{margin:0 0 20px;font-size:16px;line-height:1.7}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #quick-price table,:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records table{display:table;width:100%;table-layout:fixed;border-collapse:collapse;border:0;background:#fff;margin:16px 0}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #quick-price thead,:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records thead{display:table-header-group}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #quick-price tbody,:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records tbody{display:table-row-group}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #quick-price tr,:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records tr{display:table-row;border:0;border-radius:0;margin:0}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #quick-price th,:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #quick-price td,:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records th,:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records td{position:static;display:table-cell;width:auto;height:auto;padding:12px;border:0;border-bottom:1px solid #dfe3ec;border-radius:0;font-size:15px;line-height:1.6;text-align:left;vertical-align:middle;clip:auto;white-space:normal;background:transparent;overflow-wrap:normal;word-break:break-word}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #quick-price thead th,:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records thead th{background:#f4f7fb;color:#14355d;font-weight:700}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #quick-price th:first-child{width:48%}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #quick-price td,:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records td{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #quick-price table a,:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records table a{color:#224995;text-decoration:underline;text-underline-offset:3px}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) :is(#iphone-models-older,.iphone-rank,.galaxy-rank,.galaxy-price-states,.other-model-index){margin:16px 0 0}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) :is(#iphone-models-older,.iphone-rank,.galaxy-rank,.galaxy-price-states,.other-model-index)>summary.fadebox-btn{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;max-width:none;min-height:48px;height:auto;box-sizing:border-box;margin:0;padding:14px 16px;border:1px solid #d7e0ec;border-radius:5px;background:#fff;color:#14355d;text-align:left;font-size:16px;font-weight:700;line-height:1.6;cursor:pointer;list-style:none}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) :is(#iphone-models-older,.iphone-rank,.galaxy-rank,.galaxy-price-states,.other-model-index)>summary::-webkit-details-marker{display:none}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) :is(#iphone-models-older,.iphone-rank,.galaxy-rank,.galaxy-price-states,.other-model-index)>summary.fadebox-btn::after{content:'＋';flex:none;font-size:20px;line-height:1}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) :is(#iphone-models-older,.iphone-rank,.galaxy-rank,.galaxy-price-states,.other-model-index)[open]>summary.fadebox-btn::after{content:'−'}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) :is(#iphone-models-older,.iphone-rank,.galaxy-rank,.galaxy-price-states,.other-model-index)>summary h3{font:inherit;margin:0}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records .buying-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0;padding:0;list-style:none}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records .buying-list-block{min-width:0;padding:20px;border:0;border-radius:5px;background:#f4f7fb;word-break:break-word}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records h3{margin:0 0 12px;font-size:17px;line-height:1.6}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records a{color:#224995;text-decoration:underline}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records .lx-br-amount{margin:0 0 12px;color:#f41782;font-size:24px;font-weight:700}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records .lx-br-meta{margin:0;font-size:14px;line-height:1.8}
:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) a:focus-visible,:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) summary:focus-visible{outline:2px solid #224995;outline-offset:3px}
@media(max-width:767px){
 :is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #series-all-models>.brand-tag-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 :is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #quick-price,:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records{padding:40px 0}
 :is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #quick-price th,:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #quick-price td,:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records th,:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records td{padding:10px 6px;font-size:14px;line-height:1.6}
 :is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #quick-price th:first-child{width:45%}
 :is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records th:first-child{width:65%}
 :is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records .buying-list{grid-template-columns:minmax(0,1fr);gap:16px}
 :is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records .buying-list-block{padding:16px}
 :is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .iphone-model-links{gap:0 16px}
 :is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .iphone-model-links a{font-size:14px}
 :is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) :is(#iphone-models-older,.iphone-rank,.galaxy-rank,.galaxy-price-states,.other-model-index)>summary.fadebox-btn{font-size:15px;padding:12px}
}

/* R2: use the compact price-card rhythm once per section, without stacked margins. */
main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #series-all-models{margin-bottom:8px}
main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #series-all-models>.line-btitle{font-size:17px;line-height:1.5;margin:0 0 8px;padding:0 0 6px}
main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #series-all-models>.brand-tag-list{gap:6px}
main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #series-all-models a.tag{min-height:44px;padding:8px 10px;line-height:1.4}
main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #iphone-models-older{margin-top:8px}
main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #iphone-models-older>summary{min-height:44px;padding:8px 12px;font-size:14px}
main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .lx-enrich-summary,main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .lx-br-summary{margin-bottom:16px;line-height:1.6}
main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records .buying-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records .buying-list-block{padding:16px}
main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records h3{margin-bottom:8px;font-size:16px;line-height:1.5}
main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records .lx-br-amount{margin-bottom:8px;line-height:1.5}
main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records .lx-br-meta{line-height:1.6}
@media(max-width:767px){
 main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #series-all-models>.brand-tag-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
 main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #series-all-models a.tag{padding:6px 4px;font-size:12px;white-space:nowrap}
 main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #series-all-models a.tag .arrow{width:8px;flex:none;margin-left:2px}
 main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records .buying-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records .buying-list-block{padding:12px}
 main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records h3{font-size:14px;line-height:1.5}
 main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records .lx-br-amount{font-size:22px}
 main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records .lx-br-meta{font-size:13px;line-height:1.6}
}
@media(max-width:359px){main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #series-all-models>.brand-tag-list{grid-template-columns:repeat(3,minmax(0,1fr))}}

main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #quick-price .line-title,main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records .line-title{margin-bottom:16px}
@media(min-width:1024px){main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #series-all-models>.brand-tag-list{grid-template-columns:repeat(8,minmax(0,1fr))}}

main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #quick-price,main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records{padding:24px 0}
@media(max-width:767px){main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #quick-price,main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records{padding:16px 0}}

main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) #series-all-models a.tag{min-width:0}

/* Price-table reader steps (added section only). */
main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .iphone-guide .line-btitle{font-size:17px;line-height:1.5;margin:0 0 8px;padding:0 0 6px}
main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .iphone-guide .line-content,
main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .iphone-guide .line-bcontent{margin:0;padding:0}
main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .iphone-guide-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;list-style:none;margin:0;padding:0;counter-reset:guide}
main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .iphone-guide-steps li{background:#f4f7fb;padding:12px;counter-increment:guide;font-size:14px;line-height:1.6}
main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .iphone-guide-steps strong{display:block;color:#14355d;margin-bottom:4px}
main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .iphone-guide-steps strong::before{content:counter(guide,decimal-leading-zero) ' ';color:#224995;margin-right:4px}
main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .iphone-guide-steps span{display:block}
@media(max-width:767px){
 main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .iphone-guide .line-btitle{font-size:16px}
 main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .iphone-guide-steps{gap:4px}
 main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .iphone-guide-steps li{padding:8px;font-size:12px}
 main.main.brands:is(.iphone-index-layout,.galaxy-index-layout,.other-brands-index-layout) .iphone-guide-steps strong{font-size:13px}
}

/* Galaxy markup differences only. Common surfaces / disclosure / rhythm live above. */
:is(.galaxy-index-layout,.other-brands-index-layout) #brand-related-guides .send-chips{display:flex;flex-wrap:wrap;gap:4px 16px;padding:0;list-style:none}
:is(.galaxy-index-layout,.other-brands-index-layout) #brand-related-guides .send-chips a{display:inline-flex;align-items:center;min-height:44px;color:#224995;font-size:14px;text-decoration:underline}
:is(.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records .buying-list-block img{display:block;width:100%;height:120px;object-fit:contain;margin:0 0 8px}
:is(.galaxy-index-layout,.other-brands-index-layout) #brand-purchase-records h3{min-height:48px}
:is(.galaxy-index-layout,.other-brands-index-layout) #quick-price .lx-enrich-date,:is(.galaxy-index-layout,.other-brands-index-layout) #quick-price .lx-pe3-scope{margin:0 0 6px;font-size:13px;line-height:1.6}
:is(.galaxy-index-layout,.other-brands-index-layout) #quick-price .lx-enrich-summary{font-size:14px;margin-bottom:8px}

/* Three additional brands use the existing rhythm and native disclosures. */
.other-brands-index-layout .other-model-index h4{font-size:14px;line-height:1.5;margin:16px 0 4px}
.other-brands-index-layout .other-model-index .iphone-model-links{margin:0;gap:0 16px}
.other-brands-index-layout #other-price-reader{padding:24px 0}
@media(max-width:767px){.other-brands-index-layout #other-price-reader{padding:16px 0}}
