/* ==========================================================================
   PYM Hosting Compare
   Desktop: mỗi hàng là 1 grid dùng chung --hc-cols → 5 cột luôn thẳng hàng.
   Mobile (≤767px): mỗi hàng thành 1 card, header ẩn, nhãn .hc-label hiện ra.
   Biến không khai báo trên .hc — mặc định nằm trong fallback var(--x, mặc định)
   để giá trị chỉnh trong Bricks luôn được ưu tiên.
   ========================================================================== */

.hc {
	width: 100%;
	color: var(--hc-text, #1f2328);
	background: var(--hc-bg, transparent);
	font-size: 14px;
	line-height: 1.5;
}

.hc *,
.hc *::before,
.hc *::after {
	box-sizing: border-box;
}

.hc-row {
	display: grid;
	grid-template-columns: var(--hc-cols, 1fr 1.2fr 0.9fr 1.3fr 1.1fr);
	align-items: start;
	border-bottom: 1px solid var(--hc-border, #e3e9e6);
}

.hc-row--head {
	align-items: end;
	border-bottom: 2px solid var(--hc-head-border, #1f2328);
}

.hc-cell {
	min-width: 0;
	padding: 12px 14px;
	overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.hc-head {
	padding-top: 14px;
	padding-bottom: 14px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Cột 1: Host
   -------------------------------------------------------------------------- */
.hc-logo {
	display: flex;
	align-items: center;
	height: var(--hc-logo-h, 48px);
	margin-bottom: 10px;
}

.hc-logo img {
	display: block;
	width: auto;
	height: 100%;
	max-width: var(--hc-logo-w, 102px);
	object-fit: contain;
}

.hc-name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Cột 2: Rating
   -------------------------------------------------------------------------- */
.hc-score-wrap {
	display: flex;
	align-items: baseline;
	gap: 4px;
	line-height: 1.1;
}

.hc-star {
	flex: none;
	align-self: center;
	width: 14px;
	height: 14px;
	color: var(--hc-star, #3b413e);
}

.hc-score {
	font-size: 22px;
	font-weight: 700;
	color: var(--bricks-color-mtslbh);
}

.hc-max {
	margin-left: -3px;
	font-size: 13px;
	color: var(--hc-muted, #4f5a55);
}

.hc-tagline {
	margin-top: 6px;
	font-size: 13px;
	color: var(--hc-muted, #4f5a55);
}

/* --------------------------------------------------------------------------
   Cột 3 + 4: Price & Bonus
   -------------------------------------------------------------------------- */
.hc-price {
	font-size: 16px;
	font-weight: 500;
}

.hc-bonus-title {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
}

.hc-bonus-desc {
	margin-top: 4px;
	font-size: 13px;
	color: var(--hc-muted, #4f5a55);
}

.hc-bonus-desc.hc-empty {
	margin-top: 2px;
}

.hc-bonus-desc a {
	font-weight: 600;
	color: var(--bricks-color-mtslbh);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hc-bonus-desc a:hover {
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Cột 5: CTA
   -------------------------------------------------------------------------- */
.hc-cta {
	text-align: center;
}

.hc-btn {
	display: block;
	width: 100%;
	padding: 12px 16px;
	border-radius: var(--hc-btn-radius, 4px);
	background: var(--bricks-color-mtslbh);
	color: var(--bricks-color-nfncfl, #fff);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

a.hc-btn:hover,
a.hc-btn:focus-visible {
	background: #000;
	color: var(--bricks-color-nfncfl, #fff);
}

.hc-note {
	margin-top: 8px;
	font-size: 13px;
	color: var(--hc-muted, #4f5a55);
}

/* Nhãn chỉ dùng cho mobile */
.hc-label {
	display: none;
}

/* --------------------------------------------------------------------------
   Mobile: card
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.hc-table {
		display: flex;
		flex-direction: column;
		gap: var(--hc-card-gap, 14px);
	}

	.hc-row--head {
		display: none;
	}

	.hc-row--item {
		display: block;
		padding: 0 16px;
		border: 1px solid var(--hc-card-border, #e3e9e6);
		border-radius: var(--hc-card-radius, 8px);
		background: var(--hc-card-bg, #fafcfb);
	}

	.hc-row--item > .hc-cell {
		padding: 12px 0;
	}

	.hc-row--item > .hc-cell + .hc-cell {
		border-top: 1px solid var(--hc-border, #e3e9e6);
	}

	.hc-row--item > .hc-host {
		padding-top: 16px;
	}

	.hc-row--item > .hc-cta {
		padding-bottom: 14px;
	}

	.hc-label {
		display: block;
		margin-bottom: 6px;
		font-size: 11px;
		font-weight: 600;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--hc-muted, #4f5a55);
	}

	.hc-tagline {
		margin-top: 8px;
	}
}
