/*
 * Government Tracker.
 *
 * Black, white and Rabbit Hole purple, mobile first. Reads as a live civic
 * dashboard rather than a government website: status is the loudest thing on
 * a card, because status is what a resident actually needs at a glance.
 */

.rhg {
	--rhg-purple: var(--theme-palette-color-1, #661E9A);
	--rhg-purple-dark: #4c1673;
	--rhg-ink: #101014;
	--rhg-muted: #5b5b66;
	--rhg-line: #e4e0ea;
	--rhg-bg-soft: #faf8fc;
	--rhg-radius: 12px;

	max-width: 1140px;
	margin: 0 auto;
	padding: 0 16px 64px;
	color: var(--rhg-ink);
	font-size: 17px;
	line-height: 1.55;
}

.rhg *, .rhg *::before, .rhg *::after { box-sizing: border-box; }

/* ---------- hero ---------- */

.rhg-hero { padding: 28px 0 8px; }
.rhg-eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--rhg-purple);
}
.rhg-title { margin: 0 0 10px; font-size: clamp(30px, 6vw, 46px); line-height: 1.08; letter-spacing: -.02em; }
.rhg-lede { margin: 0; max-width: 62ch; color: var(--rhg-muted); font-size: 18px; }

/* ---------- address search ---------- */

.rhg-find {
	margin: 24px 0 8px;
	padding: 22px;
	border-radius: var(--rhg-radius);
	background: var(--rhg-purple);
	color: #fff;
}
.rhg-find-h { margin: 0 0 6px; font-size: clamp(21px, 4vw, 27px); line-height: 1.2; color: #fff; }
.rhg-find-sub { margin: 0 0 16px; color: rgba(255,255,255,.88); font-size: 16px; max-width: 60ch; }

.rhg-find-form { display: grid; gap: 12px; }
.rhg-field { display: grid; gap: 5px; }
.rhg-field label { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.rhg-find .rhg-field label { color: rgba(255,255,255,.92); }

.rhg input[type="text"],
.rhg input[type="search"],
.rhg input[type="url"],
.rhg select {
	width: 100%;
	min-height: 50px;
	height: auto;
	padding: 11px 13px;
	border: 1px solid var(--rhg-line);
	border-radius: 9px;
	background: #fff;
	color: var(--rhg-ink);
	font-size: 16px; /* stops iOS zooming the page on focus */
	line-height: 1.35;
	appearance: none;
	-webkit-appearance: none;
}
.rhg select {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%235b5b66' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}
/*
 * Keep a focused field white.
 *
 * The theme styles a focused input with
 *   background-color: var(--has-classic-forms, var(--theme-form-field-background-focus-color));
 * and neither of those variables is set on this site, so the declaration
 * resolves to nothing and the background falls back to transparent. Everywhere
 * else on the page that is invisible, because the page behind it is white. In
 * the address panel the page behind it is Rabbit Hole purple, so clicking the
 * box made the box disappear and took the text with it.
 *
 * The theme's selector ties ours for specificity and loads after us, so raising
 * the base rule would not help; the answer has to be at :focus. Adding :focus
 * to our own selector beats it outright. Only the inside of the field is
 * claimed here — the theme's purple focus border is left alone, and so is the
 * focus ring below.
 */
.rhg input[type="text"]:focus,
.rhg input[type="search"]:focus,
.rhg input[type="url"]:focus {
	background-color: #fff;
	color: var(--rhg-ink);
}

.rhg input:focus-visible, .rhg select:focus-visible, .rhg button:focus-visible, .rhg a:focus-visible {
	outline: 3px solid #ffd166;
	outline-offset: 2px;
}

.rhg-find-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }

.rhg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: 9px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}
.rhg-btn--primary { background: var(--rhg-ink); color: #fff; }
.rhg-find .rhg-btn--primary { background: #fff; color: var(--rhg-purple); }
.rhg-btn--primary:hover { background: #000; color: #fff; }
.rhg-find .rhg-btn--primary:hover { background: #f2ecf8; color: var(--rhg-purple-dark); }
.rhg-btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.rhg-find .rhg-btn--ghost { color: #fff; }

.rhg-privacy {
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255,255,255,.82);
	max-width: 66ch;
}
.rhg-find-status { margin: 10px 0 0; font-size: 15px; font-weight: 600; color: #fff; min-height: 1px; }

/* ---------- near you ---------- */

.rhg-near {
	margin: 18px 0;
	padding: 18px;
	border: 2px solid var(--rhg-purple);
	border-radius: var(--rhg-radius);
	background: var(--rhg-bg-soft);
}
.rhg-near h2 { margin: 0 0 4px; font-size: 22px; }
.rhg-near-sub { margin: 0 0 14px; color: var(--rhg-muted); font-size: 15px; }
.rhg-reps { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.rhg-rep {
	padding: 12px 14px;
	border: 1px solid var(--rhg-line);
	border-radius: 9px;
	background: #fff;
}
.rhg-rep strong { display: block; font-size: 17px; }
.rhg-rep span { display: block; color: var(--rhg-muted); font-size: 14px; }
.rhg-rep a { color: var(--rhg-purple); font-weight: 600; }

/* The full officeholder list is longer, so it gets more columns when there is
   room for them. One column on a phone, like everything else here. */
.rhg-reps--all { gap: 12px; }
@media (min-width: 720px) { .rhg-reps--all { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .rhg-reps--all { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- tabs ----------
   A phone gets a row of chips it can swipe; a desktop gets them all at once.
   Without JavaScript nothing is hidden, so the page still reads top to bottom. */

.rhg-tabs { margin: 26px 0 4px; border-bottom: 1px solid var(--rhg-line); }
.rhg-tabs ul {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0 0 2px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.rhg-tabs ul::-webkit-scrollbar { display: none; }
.rhg-tab {
	display: block;
	padding: 10px 14px;
	border-radius: 10px 10px 0 0;
	text-decoration: none;
	color: var(--rhg-muted);
	white-space: nowrap;
	border: 1px solid transparent;
	border-bottom: none;
}
.rhg-tab:hover { color: var(--rhg-ink); background: var(--rhg-bg-soft); }
.rhg-tab-label { display: block; font-weight: 700; font-size: 15px; }
.rhg-tab-sub { display: none; font-size: 12px; }
.rhg-tab.is-active {
	color: var(--rhg-purple);
	background: #fff;
	border-color: var(--rhg-line);
	box-shadow: inset 0 3px 0 var(--rhg-purple);
}
.rhg-tab.is-active .rhg-tab-sub { color: var(--rhg-muted); }
@media (min-width: 900px) {
	.rhg-tab-sub { display: block; }
	.rhg-tab { padding: 10px 16px; }
}
.rhg--tabbed .rhg-panel > .rhg-section:first-child { margin-top: 24px; }

/* ---------- what changed ---------- */

.rhg-sub-h { margin: 22px 0 10px; font-size: 17px; }
.rhg-changelist { margin: 0 0 6px; padding: 0; list-style: none; display: grid; gap: 8px; }
.rhg-changelist li {
	padding: 10px 14px;
	border: 1px solid var(--rhg-line);
	border-radius: 9px;
	background: #fff;
}
.rhg-changelist a { font-weight: 600; }
.rhg-changelist span { display: block; color: var(--rhg-muted); font-size: 14px; }

/* ---------- agendas ---------- */

.rhg-agenda {
	margin: 0 0 16px;
	padding: 14px 16px;
	border: 1px solid var(--rhg-line);
	border-radius: var(--rhg-radius);
	background: #fff;
}
.rhg-agenda-head h3 { margin: 0 0 4px; font-size: 18px; }
.rhg-agenda-meta { margin: 0 0 10px; color: var(--rhg-muted); font-size: 14px; }
.rhg-agenda-items { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rhg-agenda-items li {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: baseline;
	padding: 8px 0;
	border-top: 1px solid var(--rhg-line);
	font-size: 15px;
}

/* ---------- gaps and documents ---------- */

.rhg-gaps { display: grid; gap: 12px; margin: 0; }
.rhg-gaps div {
	padding: 12px 14px;
	border: 1px solid var(--rhg-line);
	border-radius: 9px;
	background: var(--rhg-bg-soft);
}
.rhg-gaps dt { font-weight: 700; }
.rhg-gaps dd { margin: 4px 0 0; color: var(--rhg-muted); font-size: 15px; }

.rhg-docs { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rhg-doc {
	padding: 10px 14px;
	border: 1px solid var(--rhg-line);
	border-radius: 9px;
	background: #fff;
}
.rhg-doc-link { font-weight: 600; }
.rhg-doc-meta { display: block; margin-top: 2px; color: var(--rhg-muted); font-size: 13px; }
.rhg-filters--slim { grid-template-columns: 1fr; }

/* ---------- sections ---------- */

.rhg-section { margin: 40px 0 0; }
.rhg-section-head { margin: 0 0 16px; }
.rhg-section-head h2 {
	margin: 0 0 4px;
	font-size: clamp(22px, 4vw, 28px);
	line-height: 1.2;
	letter-spacing: -.01em;
}
.rhg-section-sub { margin: 0; color: var(--rhg-muted); font-size: 15px; max-width: 70ch; }

.rhg-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

.rhg-card {
	position: relative;
	padding: 16px 16px 14px 20px;
	border: 1px solid var(--rhg-line);
	border-radius: var(--rhg-radius);
	background: #fff;
}
.rhg-card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 5px;
	border-radius: var(--rhg-radius) 0 0 var(--rhg-radius);
	background: var(--rhg-muted);
}
.rhg-card--development::before { background: var(--rhg-purple); }
.rhg-card--zoning::before      { background: #1f6feb; }
.rhg-card--roads::before       { background: #b8860b; }
.rhg-card--spending::before    { background: #0f766e; }
.rhg-card--legislation::before { background: #101014; }
.rhg-card--meeting::before     { background: #9333ea; }

.rhg-card.is-active { border-color: var(--rhg-purple); box-shadow: 0 0 0 3px rgba(102,30,154,.14); }

.rhg-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }

.rhg-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.rhg-badge--live    { background: #f3e8ff; color: #6b21a8; }
.rhg-badge--yes     { background: #dcfce7; color: #14532d; }
.rhg-badge--no      { background: #fee2e2; color: #7f1d1d; }
.rhg-badge--hold    { background: #fef3c7; color: #78350f; }
.rhg-badge--neutral { background: #eef0f3; color: #35353f; }

.rhg-ref { font-size: 13px; font-weight: 600; color: var(--rhg-muted); font-variant-numeric: tabular-nums; }

.rhg-card-title { margin: 0 0 6px; font-size: 19px; line-height: 1.3; }
.rhg-card-title a { color: var(--rhg-ink); text-decoration: none; }
.rhg-card-title a:hover { color: var(--rhg-purple); text-decoration: underline; }
.rhg-card-sum { margin: 0 0 10px; color: var(--rhg-muted); font-size: 15px; }

.rhg-facts { display: grid; gap: 6px 20px; margin: 0; }
.rhg-facts div { display: flex; gap: 8px; font-size: 14px; }
.rhg-facts dt { flex: 0 0 auto; font-weight: 700; color: var(--rhg-ink); }
.rhg-facts dd { margin: 0; color: var(--rhg-muted); }

.rhg-empty {
	margin: 0;
	padding: 18px;
	border: 1px dashed var(--rhg-line);
	border-radius: var(--rhg-radius);
	background: var(--rhg-bg-soft);
	color: var(--rhg-muted);
	font-size: 15px;
}
.rhg-more { margin: 14px 0 0; }
.rhg-more a { color: var(--rhg-purple); font-weight: 700; text-decoration: none; }
.rhg-more a:hover { text-decoration: underline; }

.rhg-notice {
	margin: 0 0 12px;
	padding: 12px 14px;
	border-left: 4px solid #b8860b;
	background: #fffbeb;
	font-size: 15px;
}
.rhg-count { margin: 14px 0; font-weight: 600; }

/* ---------- map ---------- */

.rhg-map-wrap { position: relative; border-radius: var(--rhg-radius); overflow: hidden; border: 1px solid var(--rhg-line); }
.rhg-map { width: 100%; height: 380px; background: var(--rhg-bg-soft); }
.rhg-map-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 10px 14px;
	border-top: 1px solid var(--rhg-line);
	background: #fff;
	font-size: 13px;
}
.rhg-key { display: inline-flex; align-items: center; gap: 6px; color: var(--rhg-muted); }
.rhg-key::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--rhg-muted); }
.rhg-key--development::before { background: var(--rhg-purple); }
.rhg-key--zoning::before      { background: #1f6feb; }
.rhg-key--roads::before       { background: #b8860b; }
.rhg-map-note { margin: 10px 0 0; font-size: 14px; color: var(--rhg-muted); }

.rhg-pin {
	width: 16px; height: 16px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--rhg-muted);
	box-shadow: 0 1px 4px rgba(0,0,0,.35);
	cursor: pointer;
}
.rhg-pin[data-cat="development"] { background: #661E9A; }
.rhg-pin[data-cat="zoning"]      { background: #1f6feb; }
.rhg-pin[data-cat="roads"]       { background: #b8860b; }
.rhg-pin.is-active { transform: scale(1.45); border-color: #ffd166; }

.maplibregl-popup-content { border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.rhg-pop-title { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.rhg-pop-meta { margin: 0 0 8px; color: #5b5b66; font-size: 13px; }
.rhg-pop-link { font-weight: 700; color: #661E9A; }

/* ---------- filters ---------- */

.rhg-filters {
	display: grid;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--rhg-line);
	border-radius: var(--rhg-radius);
	background: var(--rhg-bg-soft);
	margin-bottom: 18px;
}
.rhg-filters-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rhg-pager { display: flex; align-items: center; gap: 14px; margin: 20px 0 0; flex-wrap: wrap; }
.rhg-pager-at { color: var(--rhg-muted); font-size: 14px; }

/* ---------- sources ---------- */

.rhg-sources-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rhg-sources-list li {
	padding: 14px;
	border: 1px solid var(--rhg-line);
	border-radius: var(--rhg-radius);
	background: #fff;
	font-size: 14px;
}
.rhg-src-note { display: block; color: var(--rhg-muted); margin: 4px 0 6px; }
.rhg-src-meta { display: block; color: var(--rhg-muted); font-size: 13px; }
.rhg-src-meta a { color: var(--rhg-purple); font-weight: 600; }
.rhg-disclaimer {
	margin: 18px 0 0;
	padding: 14px 16px;
	border-left: 4px solid var(--rhg-purple);
	background: var(--rhg-bg-soft);
	font-size: 14px;
	color: var(--rhg-muted);
}

/* ---------- single record ---------- */

.rhg--record { max-width: 780px; }
.rhg-crumb { margin: 24px 0 12px; font-size: 14px; }
.rhg-crumb a { color: var(--rhg-purple); font-weight: 700; text-decoration: none; }
.rhg-record-head { margin: 0 0 26px; }
.rhg-record-title { margin: 10px 0 6px; font-size: clamp(26px, 5vw, 36px); line-height: 1.15; }
.rhg-record-ref { margin: 0; color: var(--rhg-muted); font-size: 15px; }

.rhg-qa { display: grid; gap: 18px; }
.rhg-qa-item { padding: 16px 18px; border: 1px solid var(--rhg-line); border-radius: var(--rhg-radius); background: #fff; }
.rhg-qa-item h2 { margin: 0 0 6px; font-size: 17px; color: var(--rhg-purple); }
.rhg-qa-item p { margin: 0; }

/* The government's own wording, and the words worth explaining. Both sit under
   the plain English, never above it. */
.rhg-official, .rhg-glossary { margin: 30px 0 0; }
.rhg-official h2, .rhg-glossary h2 { font-size: 20px; margin: 0 0 8px; }
.rhg-official-sub { margin: 0 0 12px; color: var(--rhg-muted); font-size: 15px; max-width: 70ch; }
.rhg-official-quote {
	margin: 0 0 12px;
	padding: 12px 16px;
	border-left: 3px solid var(--rhg-purple);
	background: var(--rhg-bg-soft);
	font-size: 15px;
	color: #333;
}
.rhg-glossary dl { display: grid; gap: 10px; margin: 0; }
.rhg-glossary div {
	padding: 12px 14px;
	border: 1px solid var(--rhg-line);
	border-radius: 9px;
	background: #fff;
}
.rhg-glossary dt { font-weight: 700; }
.rhg-glossary dd { margin: 4px 0 0; color: var(--rhg-muted); font-size: 15px; }
.rhg-promise {
	margin: 10px 0 0;
	font-size: 15px;
	color: var(--rhg-muted);
	max-width: 70ch;
}

.rhg-sources, .rhg-prov, .rhg-history { margin: 30px 0 0; }
.rhg-sources h2, .rhg-prov h2, .rhg-history h2 { font-size: 20px; margin: 0 0 8px; }
.rhg-sources-sub { margin: 0 0 12px; color: var(--rhg-muted); font-size: 15px; }
.rhg-sources ul, .rhg-history ul { margin: 0; padding-left: 20px; }
.rhg-sources li, .rhg-history li { margin-bottom: 8px; font-size: 15px; }
.rhg-prov dl { display: grid; gap: 8px; margin: 0; }
.rhg-prov div { display: grid; grid-template-columns: 190px 1fr; gap: 10px; font-size: 14px; }
.rhg-prov dt { font-weight: 700; }
.rhg-prov dd { margin: 0; color: var(--rhg-muted); word-break: break-word; }

/* ---------- wider screens ---------- */

@media (min-width: 700px) {
	.rhg-find-form { grid-template-columns: 2fr 1fr; align-items: end; }
	.rhg-find-actions { grid-column: 1 / -1; }
	.rhg-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rhg-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rhg-filters-actions { grid-column: 1 / -1; }
	.rhg-map { height: 460px; }
	.rhg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rhg-reps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
	.rhg-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rhg-list--browse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rhg-map { height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
	.rhg *, .rhg *::before, .rhg *::after { transition: none !important; animation: none !important; }
}

/* ---------- figures and variance (roads & money) ---------- */

.rhg-figures {
	display: grid;
	gap: 12px;
	margin: 0 0 14px;
	grid-template-columns: 1fr;
}
@media (min-width: 700px) { .rhg-figures { grid-template-columns: repeat(3, 1fr); } }
.rhg-figures > div {
	padding: 14px 16px;
	border: 1px solid var(--rhg-line);
	border-radius: var(--rhg-radius);
	background: #fff;
}
.rhg-figures dt { font-weight: 700; color: var(--rhg-muted); font-size: 14px; }
.rhg-figures dd { margin: 0; }
.rhg-figure { font-size: 27px; font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; }
.rhg-figure-note { margin-top: 4px !important; color: var(--rhg-muted); font-size: 14px; }

.rhg-note {
	margin: 0 0 10px;
	padding: 10px 14px;
	border-radius: 9px;
	background: var(--rhg-bg-soft);
	font-size: 15px;
}
.rhg-note--caution { border-left: 3px solid var(--rhg-purple); }

.rhg-varlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rhg-var {
	padding: 10px 14px;
	border: 1px solid var(--rhg-line);
	border-left-width: 3px;
	border-radius: 9px;
	background: #fff;
}
.rhg-var--under { border-left-color: #2e7d4f; }
.rhg-var--over  { border-left-color: #b3541e; }
.rhg-var-name { font-weight: 600; }
.rhg-var-money { display: block; margin-top: 2px; color: var(--rhg-muted); font-size: 14px; }

/* ---------- council meeting documents ---------- */

.rhg-docs--inline {
	grid-template-columns: 1fr;
	margin: 0 0 10px;
}
@media (min-width: 700px) { .rhg-docs--inline { grid-template-columns: repeat(2, 1fr); } }
.rhg-docs--inline .rhg-doc { padding: 8px 12px; }
.rhg-agenda .rhg-note { margin-top: 12px; }

/* ---------- support the tracker ---------- */

/*
 * Deliberately the same purple panel as the address search at the top of the
 * page: those are the two places the page asks the reader to do something,
 * and they should look like the same kind of thing.
 */
.rhg-support {
	margin: 40px 0 8px;
	padding: 24px 22px 22px;
	border-radius: var(--rhg-radius);
	background: var(--rhg-purple);
	color: #fff;
}
.rhg-support-h {
	margin: 0 0 12px;
	font-size: clamp(21px, 4vw, 27px);
	line-height: 1.2;
	color: #fff;
}
.rhg-support-lede {
	margin: 0 0 12px;
	max-width: 64ch;
	font-size: 16px;
	color: rgba(255,255,255,.92);
}
.rhg-support-note {
	margin: 14px 0 0;
	max-width: 68ch;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255,255,255,.82);
}
.rhg-support-note strong { color: #fff; }

.rhg-give { margin-top: 18px; }
.rhg-give-amounts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 4px;
	padding: 0;
	border: 0;
}
.rhg-give-amounts legend {
	padding: 0;
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	color: rgba(255,255,255,.92);
}

/* A touch target that stays a comfortable size on a phone, and wide enough
 * that the amounts line up two or three to a row rather than one. */
.rhg-amount {
	flex: 1 1 84px;
	min-width: 84px;
	min-height: 52px;
	padding: 12px 14px;
	border: 2px solid rgba(255,255,255,.55);
	border-radius: 9px;
	background: transparent;
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}
.rhg-amount--custom { flex: 1 1 100%; font-size: 16px; }
.rhg-amount:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.rhg-amount[aria-pressed="true"] {
	background: #fff;
	border-color: #fff;
	color: var(--rhg-purple);
}

.rhg-give-custom { margin: 14px 0 0; }
.rhg-give-custom label {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 700;
	color: rgba(255,255,255,.92);
}
.rhg-give-currency {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 220px;
	padding: 0 13px;
	border-radius: 9px;
	background: #fff;
	color: var(--rhg-ink);
	font-size: 18px;
	font-weight: 700;
}
.rhg-give-currency input {
	flex: 1;
	width: 100%;
	min-height: 50px;
	padding: 11px 0;
	border: 0;
	background: transparent;
	color: var(--rhg-ink);
	font-size: 17px; /* 16px or more, or iOS zooms the page on focus */
	font-weight: 700;
}
.rhg-give-currency input:focus { outline: none; }
.rhg-give-currency:focus-within { outline: 3px solid #ffd166; outline-offset: 2px; }
.rhg-give-limits { margin: 6px 0 0; font-size: 13px; color: rgba(255,255,255,.8); }

.rhg-give-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.rhg-give-actions .rhg-btn { flex: 1 1 auto; }
.rhg-support .rhg-btn--primary { background: #fff; color: var(--rhg-purple); }
.rhg-support .rhg-btn--primary:hover { background: #f2ecf8; color: var(--rhg-purple-dark); }
.rhg-support .rhg-btn--primary[disabled] { opacity: .55; cursor: not-allowed; }
.rhg-support .rhg-btn--ghost { color: #fff; }

/* Stripe renders its own fields into this box, so it gets the white card and
 * the padding and Stripe gets everything inside it. */
.rhg-give-pay { margin-top: 18px; }
#rhg-give-element {
	padding: 16px 14px;
	border-radius: 9px;
	background: #fff;
	min-height: 44px;
}
.rhg-give-status { margin: 12px 0 0; font-size: 15px; color: #fff; min-height: 1px; }
.rhg-give-status--warn { color: #ffd166; font-weight: 700; }
.rhg-give-status--done { font-weight: 700; }

@media (min-width: 700px) {
	.rhg-support { padding: 30px 28px 26px; }
	.rhg-amount { flex: 0 1 110px; }
	.rhg-amount--custom { flex: 0 1 auto; padding-inline: 20px; }
	.rhg-give-actions .rhg-btn { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: no-preference) {
	.rhg-amount { transition: background-color .12s ease, border-color .12s ease, color .12s ease; }
}
