.hrc-card {
	position: relative;
	max-width: 800px;
	margin: 20px auto;
	padding: 24px;
	border: 3px solid #1a3d6d;
	font-family: 'Times New Roman', Times, serif;
	color: #1a1a1a;
	background: #fff;
	page-break-after: always;
	overflow: hidden;
}

/* Faint logo watermark. On plugin admin pages this sits fixed behind the
   whole screen; inside a printed report card (.hrc-card) it's scoped to
   repeat once per card/page instead, and every direct child of the card
   is lifted above it so text stays fully readable. */
.hrc-watermark {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 320px;
	max-width: 50vw;
	height: auto;
	opacity: 0.05;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}
.hrc-card .hrc-watermark {
	position: absolute;
	width: 65%;
	max-width: 65%;
	opacity: 0.07;
	z-index: 0;
}
.hrc-card > *:not(.hrc-watermark) {
	position: relative;
	z-index: 1;
}

.hrc-page-nav {
	position: relative;
	z-index: 1;
	margin: 10px 0 16px;
}
.hrc-page-nav .button {
	margin-right: 6px;
}

.hrc-footer-credit {
	position: relative;
	z-index: 1;
	margin-top: 30px;
	padding-top: 12px;
	border-top: 1px solid #ccd0d4;
	text-align: center;
	font-size: 12px;
	color: #666;
}
.hrc-footer-credit a {
	color: #666;
	text-decoration: underline;
}

.hrc-header {
	text-align: center;
	margin-bottom: 16px;
	border-bottom: 2px solid #1a3d6d;
	padding-bottom: 10px;
}
.hrc-logo {
	width: 80px;
	height: auto;
	display: block;
	margin: 0 auto 6px;
}
.hrc-header h1 {
	margin: 0;
	font-size: 22px;
	letter-spacing: 1px;
	color: #1a3d6d;
}
.hrc-header p {
	margin: 2px 0;
	font-size: 13px;
}
.hrc-header h2 {
	margin: 10px 0 0;
	font-size: 15px;
	text-decoration: underline;
}

.hrc-meta-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 14px;
	font-size: 13px;
}
.hrc-meta-table td {
	border: 1px solid #999;
	padding: 6px 8px;
	width: 50%;
}

.hrc-note {
	font-size: 11px;
	font-style: italic;
	color: #444;
	margin: 2px 0 6px;
}

.hrc-subjects-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 16px;
	font-size: 12px;
}
.hrc-subjects-table th,
.hrc-subjects-table td {
	border: 1px solid #999;
	padding: 4px 6px;
	text-align: center;
}
.hrc-subjects-table th {
	background: #1a3d6d;
	color: #fff;
}
.hrc-subject-name {
	text-align: left !important;
	font-weight: bold;
}

.hrc-average-row td {
	font-weight: bold;
	background: #e8edf5;
}

.hrc-key-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 16px;
	font-size: 11px;
}
.hrc-key-table th,
.hrc-key-table td {
	border: 1px solid #999;
	padding: 4px 6px;
	vertical-align: top;
}
.hrc-key-table th {
	background: #e8edf5;
}

.hrc-comments p {
	font-size: 13px;
	border-bottom: 1px dotted #999;
	padding-bottom: 10px;
}

.hrc-footer {
	margin-top: 14px;
	font-size: 12px;
	text-align: center;
}

@media print {
	body { margin: 0; }
	.hrc-card { border: 3px solid #000; margin: 0; }
	.hrc-subjects-table th { background: #eee !important; color: #000 !important; -webkit-print-color-adjust: exact; }
	.hrc-average-row td { background: #eee !important; -webkit-print-color-adjust: exact; }
	.hrc-watermark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.hrc-page-nav, .hrc-nonprint { display: none !important; }
}
