/* Comparison and alternative pages (Front/comparison.php), in the phone validator's colours. */
.cmp-page {
	--cmp-primary: #0648b2;
	--cmp-dark: #0a1628;
	--cmp-accent: #00d4aa;
	--cmp-text: #0f172a;
	--cmp-body: #334155;
	--cmp-muted: #64748b;
	--cmp-border: #e2e8f0;
	--cmp-soft: #f8fafc;
	color: var(--cmp-text);
}

/* ---- Hero ---- */
.cmp-hero {
	background: linear-gradient(135deg, #0a1628 0%, #0648b2 60%, #1d4ed8 100%);
	color: #fff;
	padding: 64px 0 56px;
}
/* Hero and body share one width, so their left edges line up at every breakpoint. */
.cmp-hero .container,
.container.cmp-body { max-width: 1040px; }
.cmp-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	font-size: 14px;
}
.cmp-crumbs li + li::before {
	content: "/";
	margin-right: 6px;
	color: rgba(255, 255, 255, 0.5);
}
.cmp-crumbs a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.cmp-crumbs a:hover { color: #fff; }
.cmp-crumbs [aria-current] { color: #fff; font-weight: 600; }
.cmp-badge {
	display: inline-block;
	margin-bottom: 18px;
	padding: 6px 16px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.4px;
}
.cmp-hero h1 {
	max-width: 860px;
	margin-bottom: 18px;
	color: #fff;
	font-size: clamp(30px, 4.2vw, 48px);
	font-weight: 800;
	line-height: 1.15;
}
.cmp-lead {
	max-width: 780px;
	margin-bottom: 28px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 18px;
	line-height: 1.7;
}
.cmp-updated {
	margin: 22px 0 0;
	color: rgba(255, 255, 255, 0.75);
	font-size: 14px;
}

/* ---- Buttons ---- */
.cmp-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
.cmp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.cmp-btn:hover { text-decoration: none; transform: translateY(-1px); }
.cmp-btn:focus-visible { outline: 3px solid #5eead4; outline-offset: 3px; }
.cmp-btn-primary,
.cmp-btn-primary:hover { background: var(--cmp-accent); color: #04211b; }
.cmp-btn-primary:hover { box-shadow: 0 10px 24px rgba(0, 212, 170, 0.35); }
.cmp-btn-ghost,
.cmp-btn-ghost:hover { border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; }
.cmp-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* ---- Body ---- */
.cmp-body {
	padding-top: 40px;
	padding-bottom: 72px;
}
.cmp-disclosure {
	margin: 0;
	padding: 14px 18px;
	border: 1px solid #fde68a;
	border-radius: 12px;
	background: #fffbeb;
	color: #713f12;
	font-size: 14px;
	line-height: 1.6;
}
.cmp-toc {
	margin-top: 28px;
	padding: 18px 22px;
	border: 1px solid var(--cmp-border);
	border-radius: 14px;
	background: var(--cmp-soft);
}
.cmp-toc-title {
	margin-bottom: 8px;
	color: var(--cmp-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}
.cmp-toc ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.cmp-toc a {
	color: var(--cmp-primary);
	font-size: 15px;
	font-weight: 600;
}
.cmp-section { margin-top: 56px; }
.cmp-section h2 {
	margin-bottom: 16px;
	color: var(--cmp-text);
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 800;
	line-height: 1.25;
}
.cmp-section p,
.cmp-list li,
.cmp-steps li {
	color: var(--cmp-body);
	font-size: 16px;
	line-height: 1.75;
}
.cmp-section a,
.cmp-table a,
.cmp-disclosure a {
	color: var(--cmp-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.cmp-section code,
.cmp-table code {
	padding: 1px 6px;
	border-radius: 6px;
	background: #eef2ff;
	color: #1e3a8a;
	font-size: 0.9em;
	word-break: break-word;
}
.cmp-list,
.cmp-steps { padding-left: 22px; }
.cmp-list li,
.cmp-steps li { margin-bottom: 10px; }

/* ---- Verdict ---- */
.cmp-verdict {
	height: 100%;
	padding: 24px;
	border: 1px solid var(--cmp-border);
	border-radius: 16px;
	background: var(--cmp-soft);
}
.cmp-verdict-ours { border-color: #a7f3d0; background: #ecfdf5; }
.cmp-verdict h3 {
	margin-bottom: 12px;
	color: var(--cmp-text);
	font-size: 18px;
	font-weight: 800;
}
.cmp-verdict ul { margin: 0; padding-left: 20px; }
.cmp-verdict li {
	margin-bottom: 10px;
	color: var(--cmp-body);
	font-size: 15px;
	line-height: 1.6;
}

/* ---- Tables ---- */
.cmp-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--cmp-border);
	border-radius: 14px;
	-webkit-overflow-scrolling: touch;
}
.cmp-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: 15px;
}
.cmp-table th,
.cmp-table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--cmp-border);
	color: var(--cmp-body);
	line-height: 1.55;
	text-align: left;
	vertical-align: top;
}
.cmp-table thead th {
	background: var(--cmp-dark);
	color: #fff;
	font-weight: 700;
}
.cmp-table thead th.cmp-col-ours { background: var(--cmp-primary); }
.cmp-table tbody th {
	width: 22%;
	background: var(--cmp-soft);
	color: var(--cmp-text);
	font-weight: 700;
}
.cmp-table tbody td.cmp-col-ours { background: #f0fdf9; }
.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table-prices td { white-space: nowrap; }
.cmp-notes { margin: 18px 0 0; padding-left: 20px; }
.cmp-notes li {
	margin-bottom: 8px;
	color: var(--cmp-muted);
	font-size: 14px;
	line-height: 1.65;
}

/* ---- Code ---- */
.cmp-code {
	margin: 8px 0 20px;
	padding: 18px 20px;
	overflow-x: auto;
	border-radius: 14px;
	background: #07172f;
	color: #dbeafe;
	font-size: 13px;
	line-height: 1.6;
}
.cmp-code code {
	padding: 0;
	background: none;
	color: inherit;
	font-size: inherit;
	white-space: pre;
}

/* ---- FAQ and sources ---- */
.cmp-faq-item {
	padding: 18px 0;
	border-bottom: 1px solid var(--cmp-border);
}
.cmp-faq-item:last-child { border-bottom: 0; }
.cmp-faq-item h3 {
	margin-bottom: 8px;
	color: var(--cmp-text);
	font-size: 18px;
	font-weight: 700;
}
.cmp-faq-item p { margin: 0; }
.cmp-sources-title {
	margin-top: 20px;
	color: var(--cmp-text);
	font-size: 18px;
	font-weight: 700;
}
.cmp-sources { padding-left: 20px; }
.cmp-sources li { margin-bottom: 6px; line-height: 1.6; }

/* ---- Closing call to action and related links ---- */
.cmp-cta {
	margin-top: 64px;
	padding: 40px;
	border-radius: 20px;
	background: linear-gradient(135deg, #0a1628, #0648b2);
	color: #fff;
	text-align: center;
}
.cmp-cta h2 {
	margin-bottom: 12px;
	color: #fff;
	font-size: clamp(22px, 2.6vw, 30px);
	font-weight: 800;
}
.cmp-cta p {
	max-width: 620px;
	margin: 0 auto 24px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 16px;
	line-height: 1.7;
}
.cmp-cta .cmp-actions { justify-content: center; }
.cmp-related { margin-top: 48px; }
.cmp-related h2 {
	margin-bottom: 14px;
	color: var(--cmp-text);
	font-size: 20px;
	font-weight: 800;
}
.cmp-related ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.cmp-related a {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid var(--cmp-border);
	border-radius: 999px;
	color: var(--cmp-primary);
	font-weight: 600;
	text-decoration: none;
}
.cmp-related a:hover { border-color: var(--cmp-primary); text-decoration: none; }

/* ---- Comparison hub (Front/comparison_hub.php) ---- */
.cmp-hub-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
}
@media (min-width: 640px) {
	.cmp-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* The heading's link covers the whole card, so the card is one link and one tab stop. */
.cmp-hub-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 24px;
	border: 1px solid var(--cmp-border);
	border-radius: 16px;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.cmp-hub-card:hover {
	border-color: var(--cmp-primary);
	box-shadow: 0 12px 28px rgba(6, 72, 178, 0.12);
	transform: translateY(-2px);
}
.cmp-hub-card:focus-within { outline: 3px solid #5eead4; outline-offset: 2px; }
.cmp-hub-card h3 {
	margin-bottom: 10px;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.3;
}
.cmp-hub-card h3 a {
	color: var(--cmp-text);
	text-decoration: none;
}
.cmp-hub-card h3 a:focus { outline: none; }
.cmp-hub-card h3 a::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	border-radius: 16px;
}
.cmp-hub-card p {
	color: var(--cmp-body);
	font-size: 15px;
	line-height: 1.65;
}
.cmp-hub-card p.cmp-hub-meta {
	margin: auto 0 0;
	color: var(--cmp-muted);
	font-size: 13px;
}
.cmp-hub-more {
	margin-top: 10px;
	color: var(--cmp-primary);
	font-size: 15px;
	font-weight: 700;
}
.cmp-table tbody tr.cmp-row-ours th,
.cmp-table tbody tr.cmp-row-ours td { background: #f0fdf9; }

@media (max-width: 575.98px) {
	.cmp-hero { padding: 44px 0 40px; }
	.cmp-lead { font-size: 16px; }
	.cmp-btn { width: 100%; }
	.cmp-cta { padding: 28px 20px; }

	/* Each table row becomes a card, every cell under its column name, so both providers stay on screen. */
	.cmp-table { min-width: 0; }
	.cmp-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
	.cmp-table tr { display: block; border-bottom: 1px solid var(--cmp-border); }
	.cmp-table tbody tr:last-child { border-bottom: 0; }
	.cmp-table th,
	.cmp-table td {
		display: block;
		padding: 10px 16px;
		border-bottom: 0;
	}
	.cmp-table tbody th { width: auto; }
	.cmp-table [data-label]::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 2px;
		color: var(--cmp-muted);
		font-size: 12px;
		font-weight: 800;
		letter-spacing: 0.6px;
		text-transform: uppercase;
	}
	.cmp-table-prices td { white-space: normal; }
}
