/*
 * 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; }
.pack-head { position: relative; }
.pack-qr { float: right; width: 108px; margin: 0 0 12px 24px; text-align: center; }
.pack-qr div { width: 96px; height: 96px; margin: 0 auto; }
.pack-qr svg { display: block; width: 100%; height: 100%; }
.pack-qr figcaption { margin-top: 6px; font-size: 10px; line-height: 1.3; color: #555; }
.pack-qr-head { margin-top: 2px; }
.pack-sketch-wrap { margin: 4px 0 18px; }
.pack-sketch { display: block; width: 100%; height: auto; border: 1px solid #ccc; background: #fff; }
.pack-sketch .sk-halo { fill: none; stroke: #fff; stroke-width: 11; stroke-linejoin: round; stroke-linecap: round; }
.pack-sketch .sk-line, .pack-legend .sk-line { fill: none; stroke: var(--rpkit-pack-accent); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.pack-legend .sk-line { stroke: #111; stroke-width: 3; }
.pack-sketch .sk-line { stroke: #111; }
.pack-sketch .sk-link { fill: none; stroke: #111; stroke-width: 2.5; stroke-dasharray: 3 9; stroke-linecap: round; }
.pack-sketch .sk-mark circle { fill: #fff; stroke: #111; stroke-width: 2.5; }
.pack-sketch .sk-mark text { font: 700 15px system-ui, sans-serif; fill: #111; text-anchor: middle; dominant-baseline: central; }
.pack-sketch .sk-end circle { fill: #111; }
.pack-sketch .sk-end text { fill: #fff; }
.pack-sketch .sk-scale path { fill: none; stroke: #111; stroke-width: 2.5; }
.pack-sketch .sk-scale text, .pack-sketch .sk-north text { font: 600 15px system-ui, sans-serif; fill: #111; dominant-baseline: central; }
.pack-sketch .sk-north path { fill: #111; }
.pack-sketch .sk-north text { text-anchor: middle; }
.pack-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; }
.pack-legend svg { width: 40px; height: 8px; vertical-align: middle; }
.pack-sketch-wrap figcaption, .pack-profile figcaption { margin-top: 6px; font-size: 12px; color: #555; }
.pack-profile { margin: 4px 0 14px; }
.pack-profile svg { display: block; width: 100%; height: 80px; }
.pack-profile .pf-area { fill: #e6e6e6; }
.pack-profile .pf-line { fill: none; stroke: #111; stroke-width: 2; }
.pack-cutoff { font-weight: 700; white-space: nowrap; }
@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; }
	.pack-qr { width: 88px; margin-left: 14px; }
	.pack-qr div { width: 80px; height: 80px; }
}
@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; }
	.pack section.pack-course { break-inside: auto; }
	.pack-sketch-wrap { break-inside: avoid; }
	.pack-sketch { max-height: 110mm; }
	.pack-course .pack-table tr { break-inside: avoid; }
	.pack-profile svg, .pack-sketch { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
