/* =====================================================================
   PhoneRanked — compare page (v1)
   Loaded only on /compare/. Colors = GeneratePress global colors.
   ===================================================================== */

/* ---------- 1. Base ---------- */
.pr-cmp{
	--pr-ink:#0E1726; --pr-text:#2A3342; --pr-muted:#5B6475; --pr-meta:#6B7587; --pr-faint:#8F99AA;
	--pr-bg:#F4F6FA; --pr-card:#FFFFFF; --pr-alt:#F8FAFC; --pr-border:#DEE3EC; --pr-line:#E9EDF3;
	--pr-accent:#1F5EFF; --pr-accent-hover:#1747C9; --pr-tint:#EEF3FF;
	--pr-green:#0B7F3E; --pr-green-tint:#E6F4EC; --pr-amber:#E8A317; --pr-red:#C93434;
	--pr-metal:linear-gradient(150deg,#fff 0%,#f5f7fa 40%,#e9edf3 100%);
	--cmp-lab:190px;
	--cmp-px:12px;   /* inner side padding of every comparison block — keeps all columns aligned */
	--cmp-lane:#F5F7FA;
	flex:1 1 100%;
	min-width:0;
	width:100%;
	display:flex;
	flex-direction:column;
	gap:32px;
	padding:20px 0 56px;
	color:var(--pr-text);
	font-size:16px;
	line-height:1.55;
	font-variant-numeric:tabular-nums;
}
.pr-cmp *,
.pr-cmp *::before,
.pr-cmp *::after{box-sizing:border-box}
.pr-cmp h1,
.pr-cmp h2,
.pr-cmp h3{margin:0;color:var(--pr-ink);line-height:1.25}
.pr-cmp h2{margin-bottom:16px;font-size:24px;font-weight:800;letter-spacing:-.01em}
.pr-cmp button{font:inherit;line-height:1.2;letter-spacing:normal;text-transform:none}
.pr-cmp :focus-visible{outline:3px solid var(--pr-accent);outline-offset:2px}
.pr-cmp img{max-width:100%;height:auto}
.cmp-muted{margin:0;color:var(--pr-meta);font-size:14px}

/* Breadcrumbs: global .pr-crumbs look, page spacing */
.pr-cmp .pr-crumbs ol{margin:0}

/* ---------- 2. Hero ---------- */
.cmp-hero{display:flex;flex-direction:column;gap:10px;max-width:820px}
.pr-cmp .cmp-title{font-size:clamp(28px,4.2vw,42px);font-weight:800;letter-spacing:-.02em;line-height:1.1}
.pr-cmp[data-n="3"] .cmp-title,
.pr-cmp[data-n="4"] .cmp-title{font-size:clamp(24px,3vw,34px)}
.cmp-lead{margin:0;color:var(--pr-muted);font-size:17px;line-height:1.6}
.cmp-hero-start{max-width:none}
.cmp-hero-start .cmp-lead{max-width:720px}

/* ---------- 3. Picker (start page) ---------- */
.cmp-picker{
	display:grid;
	grid-template-columns:minmax(0,1fr);
	gap:10px;
	margin-top:14px;
	max-width:860px;
}
@media (min-width:700px){
	.cmp-picker{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:stretch;gap:16px}
}
.cmp-picker.is-multi{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.cmp-picker.is-multi .cmp-vs{display:none}
/* 3–4 boxes: photo above the name, like the cards on the comparison page */
@media (min-width:700px){
	.cmp-picker.is-multi .cmp-slot.is-filled{flex-direction:column;justify-content:center;gap:8px;text-align:center}
	.cmp-picker.is-multi .cmp-slot-img{width:70px;height:84px}
	.cmp-picker.is-multi .cmp-slot-text{padding-right:0}
	.cmp-picker.is-multi .cmp-slot-text strong{font-size:16px}
	.cmp-picker.is-multi .cmp-slot-btn{min-height:100%}
}
.cmp-picker.is-multi .cmp-slot:not(.is-filled) .cmp-slot-btn small{display:none}
@media (max-width:699px){
	.cmp-picker.is-multi .cmp-slot:not(.is-filled){min-height:0}
	.pr-cmp .cmp-picker.is-multi .cmp-slot-btn{flex-direction:row;gap:12px;min-height:64px;padding:10px 14px}
	.cmp-picker.is-multi .cmp-slot-plus{width:34px;height:34px;margin:0}
}
.cmp-picker-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:6px}
.cmp-picker-actions[hidden]{display:none}
.pr-cmp .cmp-btn.cmp-btn-go{min-height:48px;padding:12px 22px;font-size:15px;text-decoration:none}
@media (max-width:699px){
	.cmp-slot.is-filled{min-height:0;padding:10px 14px}
	.cmp-slot.is-filled .cmp-slot-img{width:52px;height:64px}
	.cmp-slot.is-filled .cmp-slot-text strong{font-size:16px}
	.pr-cmp .cmp-btn.cmp-btn-go{flex:1 1 auto}
}
.cmp-vs{
	align-self:center;justify-self:center;
	display:flex;align-items:center;justify-content:center;
	width:44px;height:44px;border-radius:999px;
	background:var(--pr-ink);color:#fff;
	font-size:14px;font-weight:800;
}
.cmp-slot{
	position:relative;
	display:flex;align-items:center;gap:16px;
	min-height:132px;padding:16px;
	border:1px solid var(--pr-border);border-radius:16px;
	background:var(--pr-metal);
}
.cmp-slot:not(.is-filled){padding:0;border:1.5px dashed #C3CBD9;background:#fff}
.pr-cmp .cmp-slot-btn{
	display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
	width:100%;min-height:130px;margin:0;padding:18px;
	border:0;border-radius:16px;background:transparent;color:var(--pr-ink);
	cursor:pointer;transition:background-color .15s;
}
.pr-cmp .cmp-slot-btn:hover,
.pr-cmp .cmp-slot-btn:focus{background:var(--pr-tint);color:var(--pr-ink)}
.cmp-slot:not(.is-filled):hover{border-color:var(--pr-accent)}
.cmp-slot-btn strong{font-size:16px}
.cmp-slot-btn small{font-size:13px;color:var(--pr-meta)}
.cmp-slot-plus{
	display:flex;align-items:center;justify-content:center;
	width:44px;height:44px;margin-bottom:4px;border-radius:999px;
	background:var(--pr-accent);color:#fff;
}
.cmp-slot-img{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:84px;height:100px}
.cmp-slot-img img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.cmp-slot-text{display:flex;flex-direction:column;gap:2px;min-width:0;padding-right:28px}
.cmp-slot-text small{font-size:13px;font-weight:700;color:var(--pr-muted)}
.cmp-slot-text strong{font-size:18px;line-height:1.25;color:var(--pr-ink)}
.cmp-slot.is-loading::after{
	content:"Opening comparison…";
	position:absolute;inset:0;
	display:flex;align-items:center;justify-content:center;
	border-radius:16px;background:rgba(255,255,255,.85);
	font-size:14px;font-weight:700;color:var(--pr-ink);
}
.cmp-resume{
	align-self:flex-start;margin:6px 0 0;padding:10px 14px;
	border:1px solid #CFDCFF;border-radius:12px;background:var(--pr-tint);
	font-size:14px;
}
.cmp-resume a{font-weight:700;color:var(--pr-accent);text-decoration:none}
.cmp-resume a:hover{text-decoration:underline}
.pr-cmp .cmp-resume-clear{
	margin:0 0 0 10px;padding:0;border:0;background:transparent;
	font-size:13px;color:var(--pr-muted);text-decoration:underline;text-underline-offset:2px;cursor:pointer;
}
.pr-cmp .cmp-resume-clear:hover,
.pr-cmp .cmp-resume-clear:focus{background:transparent;color:var(--pr-red)}

/* Remove buttons (slot + phone card) */
/* Works for both <a> and <button>: the theme's button padding/colors are reset here. */
.pr-cmp .cmp-remove{
	position:absolute;top:8px;right:8px;z-index:2;
	display:flex;align-items:center;justify-content:center;
	width:30px;height:30px;min-width:0;min-height:0;margin:0;padding:0;
	border:1px solid var(--pr-border);border-radius:999px;
	background:#fff;color:var(--pr-muted);box-shadow:none;
	font-size:0;line-height:1;text-decoration:none;cursor:pointer;
	transition:color .15s, border-color .15s, background-color .15s;
}
.pr-cmp .cmp-remove svg{display:block;flex:0 0 auto;width:16px;height:16px}
.pr-cmp .cmp-remove:hover,
.pr-cmp .cmp-remove:focus{background:#fff;color:var(--pr-red);border-color:var(--pr-red)}

/* ---------- 4. Sections, chips, pairs ---------- */
.cmp-section-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:6px}
.pr-cmp .cmp-section-head h2{margin:0}
.cmp-section-head a{font-size:14px;font-weight:700;color:var(--pr-accent);text-decoration:none}
.cmp-section-head a:hover{text-decoration:underline}
.cmp-section-lead{margin:0 0 14px;color:var(--pr-muted);font-size:15px}

.cmp-chips{display:flex;flex-wrap:wrap;gap:8px}
.pr-cmp .cmp-chip{
	display:inline-flex;align-items:center;gap:10px;
	margin:0;padding:6px 14px 6px 6px;
	border:1px solid var(--pr-border);border-radius:999px;
	background:#fff;color:var(--pr-ink);
	font-size:14px;font-weight:600;
	cursor:pointer;transition:border-color .15s, background-color .15s;
}
.pr-cmp .cmp-chip:hover,
.pr-cmp .cmp-chip:focus{border-color:var(--pr-accent);background:var(--pr-tint);color:var(--pr-ink)}
.pr-cmp .cmp-chip[disabled]{opacity:.6;cursor:default;background:#fff;border-color:var(--pr-border)}
.pr-cmp .cmp-chip.is-added::after{content:"\2713";margin-left:-2px;color:var(--pr-green);font-weight:800}
.cmp-chip img{width:34px;height:34px;object-fit:contain;border-radius:999px;background:#fff;mix-blend-mode:multiply}

.cmp-pairs{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.cmp-pair{
	display:flex;flex-direction:column;gap:12px;
	padding:16px;
	border:1px solid var(--pr-border);border-radius:14px;
	background:var(--pr-metal);color:var(--pr-ink);
	text-decoration:none;
	transition:transform .15s, box-shadow .15s, border-color .15s;
}
.cmp-pair:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(14,23,38,.08);border-color:#C9D1DE;color:var(--pr-ink)}
.cmp-pair-imgs{display:flex;align-items:center;justify-content:center;gap:12px;height:76px}
.cmp-pair-imgs img{width:60px;height:76px;object-fit:contain;mix-blend-mode:multiply}
.cmp-pair-imgs em{font-style:normal;font-size:12px;font-weight:800;color:var(--pr-meta)}
.cmp-pair-imgs .pr-mini-placeholder,
.cmp-stick-phone .pr-mini-placeholder{display:block;width:30px;height:56px;border-radius:8px;background:#2A3342}
.cmp-pair-name{font-size:15px;font-weight:700;line-height:1.35;text-align:center}

.cmp-steps{
	display:grid;grid-template-columns:minmax(0,1fr);gap:12px;
	margin:0;padding:0;list-style:none;counter-reset:step;
}
@media (min-width:800px){ .cmp-steps{grid-template-columns:repeat(3,minmax(0,1fr))} }
.cmp-steps li{
	position:relative;
	display:flex;flex-direction:column;gap:4px;
	margin:0;padding:18px 18px 18px 64px;
	border:1px solid var(--pr-border);border-radius:14px;background:#fff;
	counter-increment:step;
}
.cmp-steps li::before{
	content:counter(step);
	position:absolute;left:18px;top:18px;
	display:flex;align-items:center;justify-content:center;
	width:32px;height:32px;border-radius:999px;
	background:var(--pr-tint);color:var(--pr-accent-hover);
	font-weight:800;
}
.cmp-steps strong{color:var(--pr-ink)}
.cmp-steps span{font-size:15px;color:var(--pr-muted)}

.cmp-faq-list{display:flex;flex-direction:column;gap:10px;max-width:860px}
.cmp-faq{border:1px solid var(--pr-border);border-radius:14px;background:#fff}
.cmp-faq summary{
	display:flex;align-items:center;justify-content:space-between;gap:16px;
	padding:16px 18px;
	font-weight:700;color:var(--pr-ink);
	cursor:pointer;list-style:none;
}
.cmp-faq summary::-webkit-details-marker{display:none}
.cmp-faq summary::after{content:"+";flex:0 0 auto;font-size:20px;line-height:1;color:var(--pr-accent)}
.cmp-faq[open] summary::after{content:"\2212"}
.cmp-faq p{margin:0;padding:0 18px 16px;color:var(--pr-muted)}
.cmp-faq a{color:var(--pr-accent)}

/* ---------- 5. Comparison grid ---------- */
.cmp-board{display:flex;flex-direction:column;gap:20px}
.cmp-grid{
	display:grid;
	grid-template-columns:repeat(var(--n,2),minmax(0,1fr));
	column-gap:8px;
}
@media (min-width:768px){
	.pr-cmp{--cmp-px:24px}
	.cmp-grid{grid-template-columns:var(--cmp-lab) repeat(var(--n,2),minmax(0,1fr));column-gap:12px}
}
@media (min-width:1100px){ .pr-cmp[data-n="2"]{--cmp-lab:240px} }

/* Phone cards */
.cmp-head{row-gap:12px;align-items:stretch;padding:0 calc(var(--cmp-px) + 1px)}
.cmp-tools{
	grid-column:1 / -1;
	display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;
}
@media (min-width:768px){
	.cmp-tools{grid-column:auto;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:12px;padding-bottom:6px}
}
.cmp-count{font-size:13px;font-weight:700;color:var(--pr-muted)}
@media (max-width:767px){ .cmp-count{display:none} }
.pr-cmp .cmp-btn{
	display:inline-flex;align-items:center;justify-content:center;gap:6px;
	min-height:40px;margin:0;padding:8px 14px;
	border:1.5px solid var(--pr-accent);border-radius:10px;
	background:var(--pr-accent);color:#fff;
	font-size:14px;font-weight:700;
	cursor:pointer;transition:background-color .15s, border-color .15s;
}
.pr-cmp .cmp-btn:hover,
.pr-cmp .cmp-btn:focus{background:var(--pr-accent-hover);border-color:var(--pr-accent-hover);color:#fff}

.pr-cmp .cmp-switch{
	display:inline-flex;align-items:center;gap:8px;
	margin:0;padding:6px 0;border:0;background:transparent;color:var(--pr-text);
	font-size:14px;font-weight:600;cursor:pointer;
}
.pr-cmp .cmp-switch:hover,
.pr-cmp .cmp-switch:focus{background:transparent;color:var(--pr-ink)}
.cmp-switch-track{
	position:relative;flex:0 0 auto;
	width:36px;height:20px;border-radius:999px;background:#C3CBD9;
	transition:background-color .15s;
}
.cmp-switch-track::after{
	content:"";position:absolute;top:2px;left:2px;
	width:16px;height:16px;border-radius:999px;background:#fff;
	box-shadow:0 1px 3px rgba(14,23,38,.25);
	transition:transform .15s;
}
.cmp-switch[aria-checked="true"] .cmp-switch-track{background:var(--pr-accent)}
.cmp-switch[aria-checked="true"] .cmp-switch-track::after{transform:translateX(16px)}
.pr-cmp .cmp-share{
	display:inline-flex;align-items:center;gap:6px;
	margin:0;padding:6px 0;border:0;background:transparent;color:var(--pr-text);
	font-size:14px;font-weight:600;cursor:pointer;
}
.pr-cmp .cmp-share:hover,
.pr-cmp .cmp-share:focus{background:transparent;color:var(--pr-accent)}
.cmp-share.is-done{color:var(--pr-green)}
.cmp-clear{font-size:13px;color:var(--pr-muted);text-decoration:underline;text-underline-offset:2px}
.cmp-clear:hover{color:var(--pr-red)}
@media (max-width:767px){ .cmp-clear{margin-left:auto} }

.cmp-phone{
	position:relative;
	display:flex;flex-direction:column;align-items:center;gap:6px;
	min-width:0;padding:14px 10px 12px;
	border:1px solid var(--pr-border);border-radius:16px;
	background:var(--pr-metal);
	text-align:center;
}
.cmp-phone-img{display:flex;align-items:center;justify-content:center;width:100%;height:clamp(84px,18vw,150px)}
.cmp-phone-img img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.cmp-phone-img .pr-mini-placeholder{width:34%;height:90%;border-radius:12px;background:#2A3342}
.cmp-phone-brand{font-size:12px;font-weight:700;color:var(--pr-muted)}
.cmp-phone-name{
	font-size:clamp(13px,1.6vw,17px);font-weight:800;line-height:1.25;
	color:var(--pr-ink);text-decoration:none;overflow-wrap:anywhere;
}
.cmp-phone-name:hover{color:var(--pr-accent)}
.cmp-phone-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 8px;margin-top:2px}
.cmp-phone-price{font-size:13px;font-weight:600;color:var(--pr-muted)}
.cmp-pill{
	display:inline-flex;align-items:center;justify-content:center;
	min-width:40px;padding:3px 8px;border-radius:8px;
	font-size:14px;font-weight:800;color:#fff;
}
.cmp-flag{
	padding:3px 9px;border-radius:999px;
	background:var(--pr-green-tint);color:var(--pr-green);
	font-size:11px;font-weight:800;
}
.cmp-flag.is-announced{background:#E8EFFF;color:var(--pr-accent-hover)}
.cmp-flag.is-rumored{background:#F1ECFF;color:#5A3FD1}
.cmp-flag.is-discontinued{background:#FFF3DC;color:#8A5A00}
@media (max-width:480px){
	.cmp-phone{padding:12px 6px 10px}
	.pr-cmp .cmp-remove{top:4px;right:4px;width:26px;height:26px}
	.cmp-phone-brand,.cmp-phone-price{font-size:11px}
	.cmp-pill{min-width:34px;font-size:12px}
}

/* Score colors */
.pr-cmp .is-high{background:var(--pr-green);color:#fff}
.pr-cmp .is-mid{background:var(--pr-amber);color:var(--pr-ink)}
.pr-cmp .is-low{background:var(--pr-red);color:#fff}

/* Compact bar while scrolling (positioned by compare.js) */
.cmp-stick{
	position:fixed;top:0;left:0;right:0;z-index:90;
	padding:8px 0;
	background:rgba(255,255,255,.96);
	border-bottom:1px solid var(--pr-border);
	box-shadow:0 8px 20px rgba(14,23,38,.08);
	transform:translateY(-120%);
	visibility:hidden;
	transition:transform .2s, visibility .2s;
}
@supports ((-webkit-backdrop-filter:blur(8px)) or (backdrop-filter:blur(8px))){
	.cmp-stick{background:rgba(255,255,255,.85);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
}
.cmp-stick.is-on{transform:none;visibility:visible}
.cmp-stick-in{padding:0 calc(var(--cmp-px) + 1px)}
.cmp-stick-lab{display:none;align-self:center;font-size:13px;font-weight:700;color:var(--pr-muted)}
@media (min-width:768px){ .cmp-stick-lab{display:block} }
.cmp-stick-phone{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;font-size:13px;font-weight:800;line-height:1.2;color:var(--pr-ink);text-align:left}
.cmp-stick-phone img{flex:0 0 auto;width:26px;height:34px;object-fit:contain}
.cmp-stick-phone span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
@media (max-width:480px){ .cmp-stick-phone img{display:none} .cmp-stick-phone{font-size:12px;text-align:center} }

/* Key differences — same columns as the phone cards */
.cmp-why-grid{row-gap:12px;align-items:stretch;padding:0 calc(var(--cmp-px) + 1px)}
.pr-cmp .cmp-why-title{grid-column:1 / -1;margin:8px 0 0}
@media (max-width:767px){
	.cmp-why-grid{grid-template-columns:minmax(0,1fr);padding:0}
}
@media (min-width:768px){
	.pr-cmp .cmp-why-title{grid-column:auto;align-self:start;margin:14px 0 0;font-size:22px}
}
.cmp-why-card{min-width:0;padding:16px;border:1px solid var(--pr-border);border-radius:16px;background:#fff}
.pr-cmp .cmp-why-card h3{display:flex;align-items:center;gap:10px;margin:0 0 12px;font-size:15px;font-weight:800;line-height:1.3}
.cmp-why-thumb{flex:0 0 auto;display:flex;width:28px;height:36px}
.cmp-why-thumb img{width:100%;height:100%;object-fit:contain}
.cmp-why-thumb .pr-mini-placeholder{width:18px;height:34px;border-radius:5px;background:#2A3342}
@media (min-width:768px){ .cmp-why-thumb{display:none} }
.cmp-why-card ul{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}
.cmp-why-card li{display:flex;gap:10px;margin:0;align-items:flex-start}
.cmp-why-ico{
	flex:0 0 auto;display:flex;align-items:center;justify-content:center;
	width:22px;height:22px;margin-top:1px;border-radius:999px;
	background:var(--pr-green-tint);color:var(--pr-green);
}
.cmp-why-card li strong{display:block;font-size:14px;line-height:1.35;color:var(--pr-ink)}
.cmp-why-card li small{display:block;font-size:13px;color:var(--pr-muted)}
.cmp-why-card .pr-yes,.cmp-why-card .pr-no{font-weight:600}

/* Spec groups. Rows have no padding of their own: cells fill the full row height,
   so every 2nd phone column reads as one continuous tinted "lane" from top to bottom. */
.cmp-group{padding:16px var(--cmp-px) 6px;border:1px solid var(--pr-border);border-radius:16px;background:#fff;scroll-margin-top:90px}
@media (min-width:768px){ .cmp-group{padding-top:22px;padding-bottom:10px} }
.pr-cmp .cmp-gtitle{margin:0 0 6px;font-size:20px}
.cmp-gnote{margin:0 0 8px;font-size:13px;color:var(--pr-meta)}
.cmp-gnote a{color:var(--pr-accent)}
.cmp-row{border-top:1px solid var(--pr-line);align-items:stretch}
.cmp-row-names{
	position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;padding:0;
}
.cmp-row-names + .cmp-row{border-top:0}
.cmp-lab{grid-column:1 / -1;padding:10px 0 2px;font-size:12px;font-weight:700;color:var(--pr-muted)}
@media (min-width:768px){
	.cmp-lab{grid-column:auto;display:flex;align-items:center;padding:12px 0;font-size:14px;font-weight:600}
}
.cmp-val{
	display:flex;align-items:center;justify-content:center;
	min-width:0;padding:4px 4px 10px;
	font-size:14px;font-weight:600;color:var(--pr-ink);
	text-align:center;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;
}
@media (min-width:768px){ .cmp-val{padding:10px 8px;font-size:15px} }
.cmp-val.c1,.cmp-val.c3{background:var(--cmp-lane)}
.cmp-v{display:inline-block;max-width:100%;padding:3px 6px;border-radius:8px}
.cmp-val.is-best .cmp-v{background:var(--pr-green-tint);color:var(--pr-green);font-weight:800}
.cmp-val a{color:var(--pr-accent);text-decoration:none}
.cmp-val a:hover{text-decoration:underline}
.cmp-val .pr-yes{color:var(--pr-green);font-weight:700}
.cmp-val .pr-no{color:var(--pr-meta);font-weight:600}
.cmp-na{color:var(--pr-faint);font-weight:500}
/* 3–4 phones on a small screen: tighter text */
@media (max-width:767px){
	.pr-cmp[data-n="3"] .cmp-val,
	.pr-cmp[data-n="4"] .cmp-val{font-size:12.5px;padding-left:2px;padding-right:2px}
	.pr-cmp[data-n="4"] .cmp-v{padding:2px 3px}
}

.cmp-score{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.cmp-score strong{flex:0 0 auto;min-width:38px;padding:2px 6px;border-radius:7px;font-size:13px;font-weight:800;text-align:center}
.cmp-bar{flex:0 0 auto;width:clamp(40px,7vw,110px);height:6px;border-radius:999px;background:var(--pr-line);overflow:hidden}
.cmp-bar span{display:block;height:100%;border-radius:999px;background:var(--pr-ink)}
.cmp-val.is-best .cmp-bar span{background:var(--pr-green)}
@media (max-width:480px){ .cmp-bar{display:none} }

.cmp-note{margin:0;font-size:14px;color:var(--pr-muted)}
.cmp-note a{color:var(--pr-accent);text-underline-offset:2px}

/* Differences only */
.pr-cmp.only-diff .cmp-row.is-same,
.pr-cmp.only-diff .cmp-group.is-same{display:none}

/* ---------- 6. Search dialog ---------- */
.cmp-dlg{
	width:min(560px,calc(100vw - 24px));
	max-height:min(640px,calc(100vh - 48px));
	margin:auto;padding:0;
	border:0;border-radius:18px;
	background:#fff;color:var(--pr-text);
	box-shadow:0 30px 80px rgba(10,17,29,.35);
	overflow:hidden;
}
.cmp-dlg[open]{display:flex;flex-direction:column}
.cmp-dlg::backdrop{background:rgba(10,17,29,.55)}
@media (max-width:600px){
	.cmp-dlg{width:100vw;max-width:100vw;height:88vh;max-height:88vh;margin:auto 0 0;border-radius:18px 18px 0 0}
}
.cmp-dlg-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 16px 8px 20px}
.pr-cmp .cmp-dlg-head h2{margin:0;font-size:19px}
.pr-cmp .cmp-dlg-close{
	display:flex;align-items:center;justify-content:center;
	width:40px;height:40px;margin:0;padding:0;
	border:0;border-radius:999px;background:var(--pr-bg);color:var(--pr-ink);cursor:pointer;
}
.pr-cmp .cmp-dlg-close:hover,
.pr-cmp .cmp-dlg-close:focus{background:var(--pr-line);color:var(--pr-ink)}
.cmp-search{
	display:flex;align-items:center;gap:10px;
	margin:4px 16px 8px;padding:0 14px;
	border:1.5px solid var(--pr-border);border-radius:12px;background:#fff;color:var(--pr-meta);
}
.cmp-search:focus-within{border-color:var(--pr-accent);color:var(--pr-accent)}
.pr-cmp .cmp-search-input{
	flex:1;min-width:0;height:48px;margin:0;padding:0;
	border:0;outline:0;background:transparent;box-shadow:none;
	font:inherit;font-size:16px;color:var(--pr-ink);
}
.pr-cmp .cmp-search-input:focus{border:0;outline:0;background:transparent}
.cmp-dlg-hint{margin:4px 20px 6px;font-size:12px;font-weight:700;color:var(--pr-muted)}
.cmp-results{flex:1;margin:0;padding:0 8px 12px;list-style:none;overflow-y:auto;overscroll-behavior:contain}
.cmp-results li{margin:0}
.pr-cmp .cmp-result{
	display:flex;align-items:center;gap:12px;
	width:100%;margin:0;padding:8px 12px;
	border:0;border-radius:12px;background:transparent;color:var(--pr-ink);
	text-align:left;cursor:pointer;
}
.pr-cmp .cmp-result:hover,
.pr-cmp .cmp-result:focus,
.pr-cmp .cmp-result.is-active{background:var(--pr-tint);color:var(--pr-ink)}
.pr-cmp .cmp-result[disabled]{opacity:.5;cursor:default;background:transparent}
.cmp-result-img{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:44px;height:52px}
.cmp-result-img img{width:100%;height:100%;object-fit:contain}
.cmp-result-img i{display:block;width:22px;height:42px;border-radius:6px;background:#2A3342}
.cmp-result-text{flex:1;min-width:0;display:flex;flex-direction:column}
.cmp-result-text strong{font-size:15px;line-height:1.3}
.cmp-result-text small{font-size:13px;color:var(--pr-meta)}
.cmp-result-tag{flex:0 0 auto;font-size:12px;font-weight:700;color:var(--pr-muted)}
.cmp-results .cmp-empty{padding:18px 12px;color:var(--pr-muted);font-size:14px}

.pr-cmp .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

@media (prefers-reduced-motion:reduce){
	.cmp-pair,.cmp-stick,.cmp-switch-track,.cmp-switch-track::after{transition:none}
	.cmp-pair:hover{transform:none}
}