/* Survivor Run · My Event page. Phone first, scales up. */
:root {
	--accent: #c8102e;
	--accent-dark: #9e0c24;
	--ink: #1b1b1b;
	--muted: #5f6368;
	--bg: #f2f2f2;
	--card: #ffffff;
	--line: #e3e3e3;
	--ok: #116329;
	--warn: #b35900;
	--help-h: 72px;
}
/* Dark mode only on the standalone page; embedded views follow the site's theme. */
@media (prefers-color-scheme: dark) {
	body.rcsr {
		--ink: #f1f1f1;
		--muted: #b0b3b8;
		--bg: #121212;
		--card: #1e1e1e;
		--line: #333333;
		--ok: #4ac26b;
		--warn: #f0a050;
	}
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.rcsr {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	/* Room so the help strip never covers the last content. */
	padding-bottom: calc(var(--help-h) + env(safe-area-inset-bottom) + 16px);
}
a { color: var(--accent); }
@media (prefers-color-scheme: dark) { body.rcsr a { color: #ff6b81; } }

.rcsr-top {
	background: var(--accent);
	color: #fff;
	padding: calc(18px + env(safe-area-inset-top)) 18px 20px;
}
.rcsr-brand { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.rcsr-top h1 { margin: 6px 0 2px; font-size: 26px; line-height: 1.2; }
.rcsr-sub { font-size: 16px; opacity: .95; }
.rcsr-sim { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.25); font-size: 13px; }

.rcsr-main { max-width: 640px; margin: 0 auto; padding: 14px 14px 0; }
.rcsr-card {
	background: var(--card);
	border-radius: 14px;
	padding: 18px;
	margin-bottom: 14px;
	box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.rcsr-now { border-left: 6px solid var(--accent); }
.rcsr-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.rcsr-card h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; }
.rcsr-card h3 { margin: 14px 0 6px; font-size: 17px; }
.rcsr-card p { margin: 0 0 12px; }
.rcsr-big { font-size: 22px; font-weight: 700; }
.rcsr-small { font-size: 14px; color: var(--muted); }
.rcsr-kit { font-size: 19px; font-weight: 700; margin: 0 0 10px; }
.rcsr-warn-text { color: var(--warn); font-weight: 600; }

.rcsr-dl { margin: 0 0 12px; }
.rcsr-dl dt { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 10px; }
.rcsr-dl dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; }

/* Buttons: big thumb targets. */
.rcsr-btn {
	display: block;
	width: 100%;
	min-height: 54px;
	padding: 15px 18px;
	border: 0;
	border-radius: 12px;
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.rcsr-btn-primary { background: var(--accent); color: #fff !important; }
.rcsr-btn-primary:active { background: var(--accent-dark); }
.rcsr-btn-secondary { background: transparent; color: var(--accent) !important; box-shadow: inset 0 0 0 2px var(--accent); }
.rcsr-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 420px) { .rcsr-row { grid-template-columns: 1fr 1fr; } }
.rcsr-form { margin: 0 0 4px; }

.rcsr-notice { border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; font-weight: 600; }
.rcsr-ok { background: #dafbe1; color: #0a3d1b; }
.rcsr-warn { background: #fff1d6; color: #5c3200; }

/* Kit progress. */
.rcsr-steps { list-style: none; margin: 0 0 12px; padding: 0; }
.rcsr-steps li { position: relative; padding: 6px 0 6px 34px; color: var(--muted); }
.rcsr-steps li::before {
	content: ""; position: absolute; left: 4px; top: 9px; width: 18px; height: 18px;
	border-radius: 50%; border: 2px solid var(--line); background: var(--card);
}
.rcsr-steps li.done { color: var(--ink); }
.rcsr-steps li.done::before { background: var(--ok); border-color: var(--ok); }
.rcsr-steps li.current { font-weight: 700; }

.rcsr-check { list-style: none; margin: 0 0 12px; padding: 0; }
.rcsr-check li { padding: 8px 0 8px 34px; position: relative; border-bottom: 1px solid var(--line); }
.rcsr-check li::before { content: "☐"; position: absolute; left: 4px; font-size: 20px; line-height: 1.2; }
.rcsr-check li.done::before { content: "☑"; color: var(--ok); }

.rcsr-files { list-style: none; margin: 0 0 12px; padding: 0; }
.rcsr-files li { border-bottom: 1px solid var(--line); }
.rcsr-files a { display: block; padding: 13px 0; font-weight: 600; text-decoration: none; }

.rcsr-history { list-style: none; margin: 0; padding: 0; }
.rcsr-history li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rcsr-history time { color: var(--muted); white-space: nowrap; }

.rcsr-foot { text-align: center; font-size: 13px; color: var(--muted); margin: 6px 0 18px; }

/* Help line: lower-third strip pinned to the bottom. */
.rcsr-help {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 50;
	display: flex;
	min-height: calc(var(--help-h) + env(safe-area-inset-bottom));
	padding-bottom: env(safe-area-inset-bottom);
	background: #111;
	box-shadow: 0 -4px 16px rgba(0,0,0,.25);
}
.rcsr-help a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: #fff !important;
	text-decoration: none;
	font-weight: 800;
	-webkit-tap-highlight-color: transparent;
}
.rcsr-help-call { flex: 1; font-size: 20px; background: var(--accent); }
.rcsr-help-call:active { background: var(--accent-dark); }
.rcsr-help-text { flex: 0 0 96px; font-size: 18px; border-left: 1px solid rgba(255,255,255,.2); }
.rcsr-help-text:active { background: #333; }

/* Embedded in a theme page via [sr_expediter_dashboard]. */
.rcsr-embed {
	color: var(--ink);
	font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	padding-bottom: calc(var(--help-h) + env(safe-area-inset-bottom) + 16px);
	max-width: 680px;
	margin: 0 auto;
}
.rcsr-embed * { box-sizing: border-box; }
.rcsr-embed .rcsr-top { border-radius: 14px; padding-top: 18px; margin-bottom: 4px; }
.rcsr-embed .rcsr-top h1 { color: #fff; }
.rcsr-embed .rcsr-main { padding: 14px 0 0; }
.rcsr-embed .rcsr-card { border: 1px solid var(--line); }
.rcsr-embed .rcsr-card h2, .rcsr-embed .rcsr-card h3 { color: var(--ink); }
.rcsr-embed ul, .rcsr-embed ol { margin-left: 0; }
