/* ============================================================
   Exchanged Timeline — the guided "Report an issue" form (2.1.66)
   Token-first, like the other public surfaces: the page's --exl-*
   values when it defines them, the same values as fallbacks.
   ============================================================ */

/* A link printed hidden (no fallback page) stays hidden until report.js shows it, whatever the theme sets. */
[data-et-report][hidden] { display: none !important; }

html.et-rp-open { overflow: hidden; }

.et-rp {
	--rp-ink:     var(--exl-ink, #292d30);
	--rp-muted:   var(--exl-ink-muted, #596269);
	--rp-rule:    var(--exl-rule, #d8dcdd);
	--rp-surface: var(--exl-surface, #ffffff);
	--rp-wash:    var(--exl-focus, #f8f9f8);
	--rp-accent:  var(--exl-crimson, #9b2335);
	--rp-accent-strong: var(--exl-crimson-strong, #7a1a29);
	--rp-teal:    var(--exl-teal, #286773);
	--rp-ochre:   var(--exl-ochre, #8a6a1f);
	--rp-serif:   var(--et-serif, "EB Garamond", Garamond, "Palatino Linotype", Georgia, serif);
	--rp-sans:    var(--et-sans, "Source Sans 3", "Segoe UI", -apple-system, Roboto, Arial, sans-serif);

	box-sizing: border-box;
	width: min(40rem, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	max-height: calc(100dvh - 2rem);
	margin: auto;
	padding: 0;
	overflow: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--rp-rule);
	border-radius: 6px;
	background: var(--rp-surface);
	color: var(--rp-ink);
	font-family: var(--rp-sans);
	font-size: 1rem;
	line-height: 1.5;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.et-rp *, .et-rp *::before, .et-rp *::after { box-sizing: border-box; }
.et-rp::backdrop { background: rgba(20, 22, 24, 0.45); }

.et-rp-head {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.9rem 1.1rem 0.7rem;
	border-bottom: 1px solid var(--rp-rule);
	background: var(--rp-surface);
}
.et-rp-title {
	flex: 1 1 auto;
	margin: 0;
	font-family: var(--rp-serif);
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--rp-ink);
	overflow-wrap: anywhere;
}
.et-rp-title:focus { outline: none; }
.et-rp-title em { font-weight: 400; }
.et-rp-x {
	flex: 0 0 auto;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	font: inherit;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--rp-muted);
	background: transparent;
	border: 1px solid transparent;
	border-radius: 4px;
	cursor: pointer;
}
.et-rp-x:hover, .et-rp-x:focus-visible { color: var(--rp-ink); border-color: var(--rp-rule); }

.et-rp-body { padding: 1rem 1.1rem 1.2rem; }
.et-rp-loading, .et-rp-msg { margin: 0.5rem 0; color: var(--rp-muted); }

.et-rp-card {
	margin: 0 0 1.1rem;
	padding: 0.8rem 0.9rem;
	background: var(--rp-wash);
	border: 1px solid var(--rp-rule);
	border-radius: 4px;
}
.et-rp-card-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; }
.et-rp-card-h {
	margin: 0 0 0.4rem;
	font-family: var(--rp-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rp-teal);
}
.et-rp-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8125rem; color: var(--rp-muted); }
.et-rp-code-l { font-family: var(--rp-sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.et-rp-parent { margin: 0 0 0.4rem; font-family: var(--rp-serif); font-style: italic; }
.et-rp-dl { display: grid; grid-template-columns: minmax(6rem, max-content) 1fr; gap: 0.3rem 0.9rem; margin: 0; font-size: 0.9375rem; }
.et-rp-dl dt { color: var(--rp-muted); font-weight: 600; }
.et-rp-dl dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.et-rp-more { padding: 0; font: inherit; color: var(--rp-teal); background: none; border: 0; text-decoration: underline; cursor: pointer; }

.et-rp-form { margin: 0; }
.et-rp-fs { margin: 0 0 1rem; padding: 0; border: 0; min-width: 0; }
.et-rp-q, .et-rp-issue {
	margin: 0 0 0.6rem;
	padding: 0;
	font-family: var(--rp-serif);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--rp-ink);
}
.et-rp-radios { display: grid; gap: 0.35rem; }
.et-rp-radio {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	padding: 0.5rem 0.65rem;
	border: 1px solid var(--rp-rule);
	border-radius: 4px;
	cursor: pointer;
}
.et-rp-radio:hover { border-color: var(--rp-teal); }
.et-rp-radio input { margin: 0.3rem 0 0; flex: 0 0 auto; }
.et-rp-radio:has(input:checked) { border-color: var(--rp-teal); background: var(--rp-wash); }

.et-rp-field { margin: 0 0 0.9rem; }
.et-rp-field[hidden] { display: none; }
.et-rp-label { display: block; margin: 0 0 0.25rem; font-weight: 600; }
.et-rp-opt { font-weight: 400; color: var(--rp-muted); }
.et-rp-says { margin: 0 0 0.3rem; font-size: 0.9375rem; overflow-wrap: anywhere; }
.et-rp-says-l { color: var(--rp-muted); }
.et-rp-help { margin: 0 0 0.35rem; font-size: 0.875rem; color: var(--rp-muted); }
.et-rp input[type="text"],
.et-rp input[type="url"],
.et-rp textarea,
.et-rp select {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 0.45rem 0.55rem;
	font: inherit;
	color: var(--rp-ink);
	background: var(--rp-surface);
	border: 1px solid var(--rp-rule);
	border-radius: 4px;
}
.et-rp textarea { resize: vertical; min-height: 4.5rem; }
.et-rp input:focus-visible, .et-rp textarea:focus-visible, .et-rp select:focus-visible,
.et-rp button:focus-visible, .et-rp a:focus-visible {
	outline: 2px solid var(--rp-teal);
	outline-offset: 2px;
}
.et-rp [aria-invalid="true"] { border-color: var(--rp-accent); }
.et-rp-err { margin: 0.3rem 0 0; font-size: 0.875rem; font-weight: 600; color: var(--rp-accent); }
.et-rp-wiki { margin: 0.35rem 0 0; font-size: 0.875rem; color: var(--rp-ochre); }
.et-rp-source { padding-top: 0.6rem; border-top: 1px solid var(--rp-rule); }

/* The honeypot: off-screen for people, still in the form for robots. */
.et-rp-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.et-rp-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; margin: 0.6rem 0 0; }
.et-rp-btn {
	padding: 0.5rem 1rem;
	font: inherit;
	font-weight: 600;
	color: var(--rp-ink);
	background: var(--rp-surface);
	border: 1px solid var(--rp-rule);
	border-radius: 4px;
	cursor: pointer;
}
.et-rp-btn:hover { border-color: var(--rp-ink); }
.et-rp-btn--primary { color: #fff; background: var(--rp-accent); border-color: var(--rp-accent); }
.et-rp-btn--primary:hover { background: var(--rp-accent-strong); border-color: var(--rp-accent-strong); }
.et-rp-btn[disabled] { opacity: 0.6; cursor: progress; }
.et-rp-status { margin: 0.5rem 0 0; min-height: 1.2em; font-size: 0.9375rem; color: var(--rp-muted); }
.et-rp-failed { margin: 0.6rem 0 0; font-weight: 600; color: var(--rp-accent); }
.et-rp-failed a { color: var(--rp-teal); }
.et-rp-thanks { margin: 0.4rem 0 0.8rem; font-family: var(--rp-serif); font-size: 1.25rem; }
.et-rp-thanks:focus { outline: none; }

@media (max-width: 600px) {
	.et-rp {
		width: 100vw;
		max-width: 100vw;
		height: 100vh;
		height: 100dvh;
		max-height: 100vh;
		max-height: 100dvh;
		margin: 0;
		border: 0;
		border-radius: 0;
	}
	.et-rp-dl { grid-template-columns: 1fr; gap: 0 0; }
	.et-rp-dl dd { margin: 0 0 0.4rem; }
	.et-rp-actions { justify-content: stretch; }
	.et-rp-actions .et-rp-btn { flex: 1 1 auto; }
}
