/* Fungitarian Movement. Plain by design: thin border, 8px corners, inherits the theme's type. */

.fm-pledge,
.fm-ranks,
.fm-wall {
	--fm-accent: #2f4a3a;
	--fm-border: #dedbd3;
	--fm-muted: #6b6b6b;
}

.fm-pledge {
	max-width: 560px;
	margin: 0 auto;
	padding: 24px;
	border: 1px solid var(--fm-border);
	border-radius: 8px;
	background: #fff;
	color: #1f1f1f;
	text-align: left;
	box-sizing: border-box;
}

.fm-pledge *,
.fm-pledge *::before,
.fm-pledge *::after {
	box-sizing: border-box;
}

.fm-pledge p {
	margin: 0 0 16px;
}

.fm-pledge-text {
	font-style: italic;
	line-height: 1.55;
}

.fm-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 12px;
}

.fm-field label,
.fm-label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fm-muted);
}

.fm-pledge input[type="text"],
.fm-pledge input[type="email"] {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--fm-border);
	border-radius: 8px;
	background: #fff;
	color: inherit;
	font: inherit;
}

.fm-pledge input:focus-visible,
.fm-pledge button:focus-visible,
.fm-pledge a:focus-visible {
	outline: 2px solid var(--fm-accent);
	outline-offset: 2px;
}

.fm-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.fm-check label {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	line-height: 1.4;
	cursor: pointer;
}

.fm-check input {
	margin-top: 3px;
}

.fm-button,
.fm-pledge .fm-button {
	display: inline-block;
	min-height: 44px;
	padding: 11px 22px;
	border: 1px solid var(--fm-accent);
	border-radius: 8px;
	background: var(--fm-accent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.fm-button[disabled] {
	opacity: 0.6;
	cursor: default;
}

.fm-button-plain,
.fm-pledge .fm-button-plain {
	background: #fff;
	color: var(--fm-accent);
	border-color: var(--fm-border);
}

.fm-message {
	padding: 10px 12px;
	border: 1px solid var(--fm-border);
	border-radius: 8px;
}

.fm-consent,
.fm-small {
	font-size: 13px;
	line-height: 1.45;
	color: var(--fm-muted);
}

.fm-pledge .fm-consent {
	margin-bottom: 0;
}

/* Member dashboard */

.fm-title {
	margin: 0 0 4px;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fm-muted);
}

.fm-number {
	margin: 0 0 4px;
	font-size: 56px;
	font-weight: 700;
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
}

.fm-rank-now {
	color: var(--fm-accent);
	font-weight: 600;
}

.fm-badge {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--fm-border);
	border-radius: 8px;
}

.fm-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fm-row input {
	flex: 1 1 220px;
}

.fm-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 8px;
	margin: 0 0 16px;
}

.fm-tile {
	padding: 10px 12px;
	border: 1px solid var(--fm-border);
	border-radius: 8px;
}

.fm-tile .fm-label {
	margin-bottom: 2px;
}

.fm-tile-value {
	display: block;
	font-weight: 600;
	color: var(--fm-accent);
}

.fm-track {
	display: flex;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.fm-track li {
	position: relative;
	flex: 1 1 0;
	margin: 0;
	padding: 0 4px;
	text-align: center;
	font-size: 13px;
	line-height: 1.3;
}

.fm-track li::before {
	content: "";
	position: absolute;
	top: 6px;
	left: -50%;
	width: 100%;
	height: 1px;
	background: var(--fm-border);
}

.fm-track li:first-child::before {
	display: none;
}

.fm-track li.fm-reached::before {
	background: var(--fm-accent);
}

.fm-dot {
	position: relative;
	display: block;
	width: 13px;
	height: 13px;
	margin: 0 auto 8px;
	border: 1px solid var(--fm-border);
	border-radius: 50%;
	background: #fff;
}

.fm-reached .fm-dot {
	border-color: var(--fm-accent);
	background: var(--fm-accent);
}

.fm-track-name {
	display: block;
	font-weight: 600;
}

.fm-track-min {
	display: block;
	color: var(--fm-muted);
}

.fm-rank-list,
.fm-ranks {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	border: 1px solid var(--fm-border);
	border-radius: 8px;
}

.fm-rank-list li,
.fm-ranks li {
	display: grid;
	grid-template-columns: minmax(110px, 1fr) minmax(90px, auto);
	gap: 2px 12px;
	margin: 0;
	padding: 12px 14px;
	border-top: 1px solid var(--fm-border);
}

.fm-rank-list li:first-child,
.fm-ranks li:first-child {
	border-top: 0;
}

.fm-rank-name {
	font-weight: 600;
}

.fm-rank-when {
	font-size: 13px;
	color: var(--fm-muted);
	text-align: right;
}

.fm-rank-reward {
	grid-column: 1 / -1;
	font-size: 14px;
	color: var(--fm-muted);
}

.fm-rank-list li.fm-reached .fm-rank-name {
	color: var(--fm-accent);
}

.fm-ranks {
	max-width: 560px;
	background: #fff;
}

/* Counter */

.fm-counter {
	font-variant-numeric: tabular-nums;
}

/* Founders' wall */

.fm-wall {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fm-wall li {
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--fm-border);
	border-radius: 8px;
	background: #fff;
}

.fm-wall-number {
	font-size: 13px;
	color: var(--fm-muted);
}

@media (max-width: 520px) {
	.fm-pledge {
		padding: 18px;
	}

	.fm-fields {
		grid-template-columns: 1fr;
	}

	.fm-number {
		font-size: 44px;
	}
}
