/**
 * Cruise Pro — Grant-style Blocks stylesheet (v3.3).
 *
 * Styles for sup/quick-facts (+ sup/fact-row), sup/checklist
 * (+ sup/check-item) and sup/contact-card (+ sup/contact-row).
 * Loaded on the frontend AND in the block editor (handle
 * sup-blocks-grants-style, wired in functions.php).
 *
 * Every colour comes from the theme's own variables
 * (--sup-primary / --sup-accent / --sup-danger / surfaces), so the
 * cards follow whatever colours the site owner picks — premium look,
 * zero hardcoded brand colours. Dark mode follows the same variables.
 */

/* ============================================================
   Shared card shell
   ============================================================ */
.sup-grant-card {
	background: var(--sup-surface, var(--sup-bg, #fff));
	border: 1px solid var(--sup-border, #e2e8f0);
	border-radius: 16px;
	box-shadow: var(--sup-shadow, 0 4px 18px rgba(0, 0, 0, .07));
	color: var(--sup-text, #1a1a2e);
	margin: 1.6em 0;
	padding: 26px 28px;
}

.sup-grant-card__title {
	align-items: center;
	color: var(--sup-text, #1a1a2e);
	display: flex;
	font-size: 1.35rem;
	font-weight: 800;
	gap: 10px;
	line-height: 1.25;
	margin: 0 0 14px;
}

.sup-grant-card__icon {
	align-items: center;
	background: color-mix(in srgb, var(--sup-primary, #0b6e4f) 12%, transparent);
	border-radius: 10px;
	display: inline-flex;
	flex: none;
	font-size: 1.05rem;
	height: 34px;
	justify-content: center;
	width: 34px;
}

/* ============================================================
   Quick Facts — label / value rows
   ============================================================ */
.sup-quick-facts__amount {
	color: var(--sup-primary, #0b6e4f);
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.15;
	margin: -2px 0 12px;
}

.sup-quick-facts__rows {
	margin: 0;
}

.sup-fact-row {
	align-items: baseline;
	border-bottom: 1px solid var(--sup-border, #e2e8f0);
	display: flex;
	gap: 18px;
	justify-content: space-between;
	padding: 11px 0;
}

.sup-fact-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.sup-fact-row:first-child {
	padding-top: 0;
}

.sup-fact-row__label {
	color: var(--sup-muted, var(--sup-text-light, #555));
	font-weight: 600;
	margin: 0;
}

.sup-fact-row__value {
	color: var(--sup-text, #1a1a2e);
	font-weight: 700;
	margin: 0;
	text-align: right;
}

@media (max-width: 560px) {
	.sup-grant-card {
		padding: 20px 18px;
	}

	.sup-fact-row {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
	}

	.sup-fact-row__value {
		text-align: left;
	}

	.sup-quick-facts__amount {
		font-size: 1.6rem;
	}
}

/* ============================================================
   Checklist — check / cross / document variants
   ============================================================ */
.sup-checklist__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sup-check-item {
	align-items: flex-start;
	border-bottom: 1px solid var(--sup-border, #e2e8f0);
	display: flex;
	gap: 12px;
	padding: 9px 0;
}

.sup-check-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.sup-check-item:first-child {
	padding-top: 0;
}

.sup-check-item__icon {
	align-items: center;
	border-radius: 50%;
	color: var(--sup-bg, #fff);
	display: inline-flex;
	flex: none;
	font-size: .85rem;
	font-weight: 800;
	height: 26px;
	justify-content: center;
	line-height: 1;
	margin-top: 1px;
	width: 26px;
}

.sup-checklist--check .sup-check-item__icon {
	background: var(--sup-primary, #0b6e4f);
}

.sup-checklist--check .sup-check-item__icon::before {
	content: "✓";
}

.sup-checklist--cross .sup-check-item__icon {
	background: var(--sup-danger, #dc2626);
}

.sup-checklist--cross .sup-check-item__icon::before {
	content: "✕";
}

.sup-checklist--doc .sup-check-item__icon {
	background: color-mix(in srgb, var(--sup-accent, #f5b70a) 28%, transparent);
}

.sup-checklist--doc .sup-check-item__icon::before {
	content: "📄";
	font-size: .95rem;
}

.sup-check-item__text {
	flex: 1;
}

/* ============================================================
   Contact Card — big tappable values
   ============================================================ */
.sup-contact-row {
	border-bottom: 1px solid var(--sup-border, #e2e8f0);
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 0;
}

.sup-contact-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.sup-contact-row:first-child {
	padding-top: 0;
}

.sup-contact-row__label {
	color: var(--sup-muted, var(--sup-text-light, #555));
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.sup-contact-row__value {
	color: var(--sup-text, #1a1a2e);
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1.3;
	word-break: break-word;
}

a.sup-contact-row__value {
	color: var(--sup-primary, #0b6e4f);
	text-decoration: none;
}

a.sup-contact-row__value:hover {
	color: var(--sup-primary-dark, #084c37);
	text-decoration: underline;
}

/* ============================================================
   Dark mode — the variables flip, these rules just deepen the
   card edge so it stays a card on dark surfaces.
   ============================================================ */
[data-theme="dark"] .sup-grant-card {
	border-color: var(--sup-border, #2a3441);
	box-shadow: var(--sup-shadow-lg, 0 12px 32px rgba(0, 0, 0, .35));
}
