/* Redbourn FC – Red Card. Inherits the theme's fonts; colour comes from --rc-red (set in Red Card → Settings). */

.rc-wrap {
	--rc-red: #A6192E;
	--rc-ink: #1f1f1f;
	--rc-muted: #5f5f5f;
	--rc-line: #e3dfd8;
	--rc-soft: #faf8f5;
	max-width: 1100px;
	margin: 0 auto;
	color: var(--rc-ink);
	box-sizing: border-box;
}
.rc-wrap *, .rc-wrap *::before, .rc-wrap *::after { box-sizing: border-box; }

.rc-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Directory ---------- */

/* Search and filters need JavaScript, so they stay hidden without it. */
.rc-tools { display: none; }
.rc-js .rc-tools { display: block; margin-bottom: 10px; }

.rc-search {
	display: block;
	width: 100%;
	max-width: 460px;
	padding: 12px 14px;
	font-size: 16px;
	border: 1px solid #b9b4aa;
	border-radius: 6px;
	background: #fff;
	color: var(--rc-ink);
}
.rc-search:focus-visible { outline: 3px solid var(--rc-red); outline-offset: 1px; }

.rc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rc-chip {
	appearance: none;
	padding: 8px 14px;
	font-size: 14px;
	line-height: 1.2;
	border: 1.5px solid var(--rc-red);
	border-radius: 999px;
	background: #fff;
	color: var(--rc-red);
	cursor: pointer;
}
.rc-chip.is-active { background: var(--rc-red); color: #fff; }
.rc-chip:focus-visible { outline: 3px solid var(--rc-ink); outline-offset: 2px; }

.rc-count { margin: 10px 0 14px; font-size: 14px; color: var(--rc-muted); min-height: 1.2em; }
.rc-empty, .rc-empty-state { padding: 18px; text-align: center; color: var(--rc-muted); }

.rc-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}
@media (min-width: 640px)  { .rc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .rc-grid { grid-template-columns: repeat(3, 1fr); } }

.rc-card {
	display: flex;
	flex-direction: column;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--rc-line);
	border-top: 5px solid var(--rc-red);
	border-radius: 6px;
}
.rc-card[hidden] { display: none; }

.rc-logo-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 84px;
	margin-bottom: 14px;
}
.rc-logo { max-width: 100%; max-height: 84px; width: auto; height: auto; object-fit: contain; }

.rc-cats {
	margin: 0 0 4px;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--rc-muted);
}
.rc-name { margin: 0 0 10px; font-size: 20px; line-height: 1.25; }
.rc-offer {
	margin: 0 0 8px;
	padding: 10px 12px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	background: var(--rc-red);
	border-radius: 4px;
}
.rc-terms { margin: 0 0 12px; font-size: 13px; color: var(--rc-muted); }
.rc-meta { margin: auto 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; }
.rc-meta li { margin: 2px 0; }
.rc-meta a { color: var(--rc-red); }

/* ---------- Sign-up form ---------- */

.rc-signup { max-width: 560px; }
.rc-form-card {
	padding: 24px;
	background: var(--rc-soft);
	border: 1px solid var(--rc-line);
	border-top: 5px solid var(--rc-red);
	border-radius: 6px;
}
.rc-form-title { margin: 0 0 8px; font-size: 24px; line-height: 1.2; }
.rc-intro { margin: 0 0 16px; color: var(--rc-muted); }

.rc-field { margin: 0 0 16px; }
.rc-field label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 15px; }
.rc-field input[type="text"],
.rc-field input[type="email"],
.rc-field select {
	display: block;
	width: 100%;
	padding: 11px 12px;
	font-size: 16px;
	border: 1px solid #b9b4aa;
	border-radius: 6px;
	background: #fff;
	color: var(--rc-ink);
}
.rc-field input:focus-visible,
.rc-field select:focus-visible { outline: 3px solid var(--rc-red); outline-offset: 1px; }

.rc-two { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 520px) { .rc-two { grid-template-columns: 1fr 1fr; } }

.rc-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
.rc-check input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rc-red); }
.rc-check label { display: block; margin: 0; font-weight: 400; }
.rc-check a { color: var(--rc-red); }

.rc-note { margin: 0 0 16px; font-size: 13px; color: var(--rc-muted); }

.rc-button {
	display: inline-block;
	padding: 13px 26px;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	background: var(--rc-red);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}
.rc-button:hover { filter: brightness(.92); }
.rc-button:focus-visible { outline: 3px solid var(--rc-ink); outline-offset: 2px; }

.rc-message {
	margin: 0 0 18px;
	padding: 14px 16px;
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.45;
}
.rc-message.is-ok    { background: #e8f4ec; border: 1px solid #8cc6a0; color: #14502a; }
.rc-message.is-error { background: #fbeaec; border: 1px solid #e0a0aa; color: #7a1020; }

/* Honeypot: invisible to people, tempting to bots. */
.rc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
