/*
 * Emergency banner block. Loaded only on pages that use it. Mobile first; desktop from 900px.
 * An alert strip in the clinic's alert colour (--accent-2): a tinted box with an
 * outline, an icon, the message, and a solid call button. The button's text is
 * white when the alert colour is dark (class emergency--light-text, worked out
 * in the template) and the clinic's dark text colour when it isn't.
 */

.emergency { padding: 32px 0; }

.emergency__box {
	display: grid;
	gap: 16px;
	padding: 22px;
	border: 1px solid var(--accent-2);
	border-radius: var(--card-r);
	background: color-mix(in srgb, var(--accent-2) 12%, var(--surface));
}

.emergency__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--accent-2);
	color: var(--ink);
}

.emergency--light-text .emergency__icon { color: #fff; }
.emergency__icon .ico { width: 26px; height: 26px; }

.emergency__title { margin: 0; font-size: 1.5rem; line-height: 1.15; }
.emergency__text { max-width: 52ch; margin: 6px 0 0; color: var(--muted); }

.emergency__address { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; color: var(--muted); font-size: 0.95rem; }
.emergency__address .ico { flex: none; width: 18px; height: 18px; margin-top: 3px; }

.emergency__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

.emergency__call { flex: 1 1 200px; background: var(--accent-2); border-color: var(--accent-2); color: var(--ink); }
.emergency--light-text .emergency__call { color: #fff; }

.emergency__directions { font-weight: 600; }

@media (min-width: 900px) {
	.emergency { padding: 40px 0; }

	.emergency__box { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 28px 32px; }
	.emergency__icon { width: 56px; height: 56px; }
	.emergency__title { font-size: 1.9rem; }
	.emergency__call { flex: 0 0 auto; min-height: 56px; padding: 0 26px; font-size: 17px; }
}
