/*
 * RacerPacer plugin: the runner info pack, a page laid out for paper.
 * Black on white whatever the site looks like, with the site's accent for rules.
 */
:root { --rpkit-pack-accent: #0EA5E9; }
* { box-sizing: border-box; }
body.rpkit-pack {
	margin: 0;
	background: #f1f1f1;
	color: #111;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
}
.pack-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 12px 20px;
	background: #111;
	color: #fff;
}
.pack-bar a { color: #fff; text-decoration: none; }
.pack-bar button {
	padding: 10px 16px;
	border: 0;
	background: var(--rpkit-pack-accent);
	color: #111;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.pack {
	max-width: 820px;
	margin: 24px auto;
	padding: 48px 56px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.pack-head { border-bottom: 6px solid var(--rpkit-pack-accent); padding-bottom: 20px; margin-bottom: 8px; }
.pack-kicker { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #555; }
.pack h1 { margin: 0; font-size: 40px; line-height: 1.05; letter-spacing: -0.02em; }
.pack-when { margin: 10px 0 0; font-size: 18px; }
.pack-emergency { display: inline-block; margin: 18px 0 0; padding: 10px 16px; border: 2px solid #111; }
.pack-emergency span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pack-emergency b { font-size: 24px; letter-spacing: 0.02em; }
.pack section { margin-top: 28px; break-inside: avoid; }
.pack h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.2; }
.pack h3 { margin: 16px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #555; }
.pack p { margin: 0 0 10px; }
.pack-facts { font-weight: 600; }
.pack-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pack-table th, .pack-table td { padding: 8px 10px 8px 0; border-bottom: 1px solid #ccc; text-align: left; vertical-align: top; }
.pack-table thead th { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #555; border-bottom: 2px solid #111; }
.pack-coords { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; white-space: nowrap; }
.pack-kit { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.pack-kit li { display: flex; gap: 10px; padding: 5px 0; break-inside: avoid; }
.pack-kit .box { flex: none; width: 14px; height: 14px; margin-top: 4px; border: 1.5px solid #111; }
.pack-foot { margin-top: 32px; padding-top: 14px; border-top: 1px solid #ccc; font-size: 12px; color: #555; overflow-wrap: anywhere; }
@media (max-width: 700px) {
	.pack { margin: 0; padding: 28px 20px; box-shadow: none; }
	.pack h1 { font-size: 30px; }
	.pack-kit { columns: 1; }
	.pack-table { font-size: 13px; }
}
@media print {
	@page { margin: 16mm; }
	body.rpkit-pack { background: #fff; font-size: 11pt; }
	.pack-bar { display: none; }
	.pack { max-width: none; margin: 0; padding: 0; box-shadow: none; }
	.pack-race { break-before: auto; }
}
