/* YouCompare.com — front-end styles for generated comparison articles */

/* Comparison tables emitted by the generator (class="yc-comparison-table").
   The Markdown -> HTML converter already renders Markdown tables into this
   class (the at-a-glance comparison tables that are the core of every
   comparison article). Without this stylesheet they would fall back to the
   browser default. Enqueued only on posts generated by this plugin. */
.yc-comparison-table {
	width: 100%;
	border-collapse: collapse;
	margin: 26px 0;
	font-size: .95rem;
	line-height: 1.5;
}
.yc-comparison-table th {
	background: #9d174d;
	color: #fff;
	text-align: left;
	padding: 12px 14px;
	font-weight: 700;
	border-bottom: 2px solid #831843;
}
.yc-comparison-table td {
	padding: 11px 14px;
	border-bottom: 1px solid #e5e7eb;
	vertical-align: top;
}
.yc-comparison-table tr:nth-child(even) td {
	background: #fdf2f8;
}
.yc-comparison-table tr:hover td {
	background: #fce7f3;
}
.yc-comparison-table caption {
	caption-side: top;
	text-align: left;
	font-weight: 600;
	color: #831843;
	padding: 0 0 8px;
	font-size: .9rem;
}

/* Wide at-a-glance comparison tables stay readable on mobile. */
@media (max-width: 640px) {
	.yc-comparison-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}
