.hcca-card-panel,
.hcca-card-print-sheet {
	box-sizing: border-box;
	font-family: Arial, Helvetica, sans-serif;
}

.hcca-card-panel {
	max-width: 760px;
	margin: 1.5rem auto;
	padding: clamp(1rem, 3vw, 1.5rem);
	border: 1px solid #d8dee6;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(19, 34, 56, .09);
}

.hcca-card-panel__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.hcca-card-panel__header h2 {
	margin: 0 0 .25rem;
	color: #14213a;
	font-size: 1.35rem;
	line-height: 1.25;
}

.hcca-card-panel__header p,
.hcca-card-print-actions p {
	margin: 0;
	color: #687386;
	font-size: .9rem;
}

.hcca-card-button {
	display: inline-block;
	box-sizing: border-box;
	padding: .7rem 1rem;
	border: 0;
	border-radius: 6px;
	background: #b11f2a;
	color: #fff !important;
	font: 700 .9rem/1.2 Arial, Helvetica, sans-serif;
	text-decoration: none !important;
	cursor: pointer;
}

.hcca-card-button:hover,
.hcca-card-button:focus {
	background: #8c1720;
	color: #fff !important;
}

.hcca-card-list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .22in;
}

.hcca-member-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-sizing: border-box;
	width: min(100%, 3.5in);
	aspect-ratio: 1.75;
	overflow: hidden;
	padding: .11in .16in .13in;
	border: 1px solid #29394f;
	border-top: 5px solid #b11f2a;
	border-radius: 7px;
	background: #fffdf8;
	color: #14213a;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1.2;
	text-align: center;
	box-shadow: 0 5px 15px rgba(19, 34, 56, .12);
}

.hcca-member-card::after {
	position: absolute;
	right: -.25in;
	bottom: -.25in;
	width: .75in;
	height: .75in;
	border: 1px solid rgba(177, 31, 42, .14);
	border-radius: 50%;
	content: "";
}

.hcca-member-card__brand {
	min-height: .63in;
}

.hcca-member-card__logo {
	display: block;
	width: auto;
	max-width: 1.02in;
	height: .4in;
	margin: 0 auto .025in;
	object-fit: contain;
}

.hcca-member-card__organization {
	overflow: hidden;
	color: #3d4d63;
	font-size: 7.8pt;
	font-weight: 700;
	line-height: 1.1;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hcca-member-card__identity h2 {
	overflow: hidden;
	margin: 0 0 .045in;
	color: #14213a;
	font-size: 13.5pt;
	font-weight: 800;
	line-height: 1.05;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hcca-member-card__identity p {
	margin: 0;
	color: #3d4d63;
	font-size: 8.5pt;
}

.hcca-member-card__dates {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .1in;
	margin: .06in 0 0;
	padding-top: .07in;
	border-top: 1px solid #d9dee5;
	font-size: 7.3pt;
	text-align: left;
}

.hcca-member-card__dates div:last-child {
	text-align: right;
}

.hcca-member-card__dates dt,
.hcca-member-card__dates dd {
	display: inline;
	margin: 0;
}

.hcca-member-card__dates dt {
	color: #6b7585;
	font-weight: 700;
}

.hcca-member-card__dates dt::after {
	content: ": ";
}

.hcca-member-card__dates dd {
	color: #14213a;
	white-space: nowrap;
}

.hcca-card-notice {
	box-sizing: border-box;
	max-width: 760px;
	margin: 1rem auto;
	padding: 1rem;
	border-left: 4px solid #b11f2a;
	background: #fff8e8;
	color: #27364c;
}

.hcca-card-notice--error {
	background: #fff1f2;
}

.hcca-card-notice--logged-out {
	margin-top: 15vh;
	margin-bottom: 15vh;
	text-align: center;
}

.hcca-card-print-page {
	margin: 0;
	background: #edf0f4;
}

.hcca-card-print-sheet {
	width: 100%;
	max-width: 8.5in;
	min-height: 11in;
	margin: 0 auto;
	padding: .5in;
	background: #fff;
}

.hcca-card-print-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-bottom: .35in;
}

@media (max-width: 560px) {
	.hcca-card-panel__header,
	.hcca-card-print-actions {
		flex-direction: column;
	}

	.hcca-card-panel__header .hcca-card-button {
		width: 100%;
		text-align: center;
	}
}

@page {
	size: letter portrait;
	margin: .5in;
}

@media print {
	html,
	body.hcca-card-print-page {
		width: auto;
		min-height: 10in;
		margin: 0;
		background: #fff;
	}

	.hcca-card-print-sheet {
		width: auto;
		max-width: none;
		min-height: 0;
		margin: 0;
		padding: 0;
	}

	.hcca-card-print-actions {
		display: none;
	}

	.hcca-card-list {
		gap: .25in;
	}

	.hcca-member-card {
		width: 3.5in;
		height: 2in;
		aspect-ratio: auto;
		break-inside: avoid;
		box-shadow: none;
		print-color-adjust: exact;
		-webkit-print-color-adjust: exact;
	}
}
