/**
 * FM Stillness Marketplace — Application page + Keeper profile tab styles.
 *
 * Layered on top of fmsm-submission.css, which provides base form tokens,
 * buttons, fields, and notices. This file adds application-specific hero,
 * value cards, invitation block, and BuddyBoss profile pane styling.
 */

/* ─── Keeper page ─────────────────────────────────────────── */

.fmsm-keeper-page {
	max-width: 820px;
	margin: 0 auto;
	padding: 24px 20px 64px;
	font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--fmsm-ink);
	line-height: 1.6;
}

.fmsm-keeper-hero {
	text-align: center;
	padding: 32px 0 16px;
}

.fmsm-keeper-eyebrow {
	font-size: 13px;
	letter-spacing: 1.5px;
	color: var(--fmsm-heal);
	font-weight: 600;
	margin: 0 0 12px;
}

.fmsm-keeper-hero h1 {
	font-family: 'Avenir', Georgia, serif;
	font-size: 40px;
	line-height: 1.2;
	color: var(--fmsm-ink);
	margin: 0 0 20px;
	font-weight: 600;
}

.fmsm-keeper-lede {
	color: var(--fmsm-body);
	font-size: 17px;
	max-width: 580px;
	margin: 0 auto;
}

/* ─── Value cards ─────────────────────────────────────────── */

.fmsm-keeper-values {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin: 48px 0;
}

.fmsm-keeper-value {
	background: var(--fmsm-warm);
	padding: 24px;
	border-radius: 12px;
}

.fmsm-keeper-value h3 {
	font-family: 'Avenir', Georgia, serif;
	font-size: 17px;
	color: var(--fmsm-heal);
	margin: 0 0 10px;
	font-weight: 600;
}

.fmsm-keeper-value p {
	margin: 0;
	color: var(--fmsm-body);
	font-size: 15px;
	line-height: 1.55;
}

/* "How it works" under the three values (1 Oct 2026). */
.fmsm-keeper-steps {
	margin: 0 0 32px;
	padding: 20px 24px;
	border: 1px solid #E7EAED;
	border-radius: 12px;
}

.fmsm-keeper-steps h3 {
	font-family: 'Avenir', Georgia, serif;
	font-size: 17px;
	color: var(--fmsm-heal);
	margin: 0 0 10px;
	font-weight: 600;
}

.fmsm-keeper-steps ol {
	margin: 0;
	padding-left: 20px;
}

.fmsm-keeper-steps li {
	margin: 0 0 6px;
	line-height: 1.55;
}

/* ─── State cards ─────────────────────────────────────────── */

.fmsm-state-card {
	background: var(--fmsm-bg);
	border: 1px solid var(--fmsm-border);
	border-radius: 12px;
	padding: 32px;
	margin: 24px 0;
}

.fmsm-state-card h2 {
	font-family: 'Avenir', Georgia, serif;
	font-size: 22px;
	color: var(--fmsm-heal);
	margin: 0 0 12px;
	font-weight: 600;
}

.fmsm-state-card--success {
	background: #f0f7ea;
	border-color: #c5d9a8;
}

.fmsm-state-card--success h2 {
	color: #2D4A1F;
}

.fmsm-decline-reason {
	margin: 20px 0;
	padding: 16px 18px;
	background: var(--fmsm-warm);
	border-radius: 8px;
	border-left: 3px solid var(--fmsm-body);
}

.fmsm-decline-reason strong {
	display: block;
	margin-bottom: 6px;
}

.fmsm-decline-reason p {
	margin: 0;
	color: var(--fmsm-body);
	font-style: italic;
}

/* ─── Application form ────────────────────────────────────── */

.fmsm-application-form {
	background: var(--fmsm-bg);
	border: 1px solid var(--fmsm-border);
	border-radius: 12px;
	padding: 32px;
	margin: 24px 0;
}

.fmsm-contextual-note {
	font-style: italic;
	color: var(--fmsm-heal);
	text-align: center;
	margin: 0 0 24px;
	padding-bottom: 20px;
	border-bottom: 1px dashed var(--fmsm-border);
}

.fmsm-acknowledgment {
	background: var(--fmsm-warm);
	padding: 16px 20px;
	border-radius: 8px;
	border-left: 3px solid var(--fmsm-heal);
}

.fmsm-acknowledgment .fmsm-checkbox {
	align-items: flex-start;
}

.fmsm-acknowledgment .fmsm-checkbox input {
	margin-top: 4px;
	flex-shrink: 0;
}

.fmsm-acknowledgment .fmsm-checkbox span {
	font-size: 14px;
	line-height: 1.5;
	color: var(--fmsm-body);
}

/* ─── Landing page invitation (matches Stillness plugin design) ─ */

.fm-stillness__keeper-invite {
	margin: 2rem 0 1rem;
	padding: 28px 32px;
	border-radius: 20px;
	background: linear-gradient(135deg, #F4F1E8 0%, #F0F7F1 100%);
	border: 1px solid rgba(188, 207, 151, 0.45);
	color: #151515;
	font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fm-stillness__keeper-invite-header {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 14px;
}

.fm-stillness__keeper-invite-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(58, 90, 64, 0.08);
	border-radius: 12px;
}

.fm-stillness__keeper-invite-head-text {
	flex: 1;
	min-width: 0;
}

.fm-stillness__keeper-invite-eyebrow {
	font-size: 11px;
	letter-spacing: 1.5px;
	color: #3A5A40;
	font-weight: 600;
	margin: 0 0 4px;
}

.fm-stillness__keeper-invite-title {
	font-family: 'Avenir', Georgia, serif;
	font-size: 22px;
	line-height: 1.2;
	font-weight: 600;
	color: #151515;
	margin: 0;
}

.fm-stillness__keeper-invite-body {
	color: #4A5560;
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 20px;
	max-width: 620px;
}

.fm-stillness__keeper-invite-cta {
	display: flex;
	align-items: center;
}

.fm-stillness__keeper-invite-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	background: #BCCF97;
	color: #151515;
	text-decoration: none;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
	transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.fm-stillness__keeper-invite-btn:hover {
	background: #9FAF80;
	color: #FFFFFF;
	transform: translateX(2px);
}

.fm-stillness__keeper-invite-btn svg {
	transition: transform .2s ease;
}

.fm-stillness__keeper-invite-btn:hover svg {
	transform: translateX(2px);
}

@media (max-width: 640px) {
	.fm-stillness__keeper-invite {
		padding: 22px 20px;
		border-radius: 16px;
	}

	.fm-stillness__keeper-invite-title {
		font-size: 19px;
	}

	.fm-stillness__keeper-invite-body {
		font-size: 14px;
	}
}

/* ─── BuddyBoss profile pane ──────────────────────────────── */

.fmsm-profile-pane {
	padding: 24px 0;
	font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--fmsm-ink);
}

.fmsm-profile-h2 {
	font-family: 'Avenir', Georgia, serif;
	font-size: 26px;
	color: var(--fmsm-heal);
	margin: 0 0 24px;
	font-weight: 600;
}

/* Status pane */

.fmsm-status-card {
	background: var(--fmsm-warm);
	padding: 20px 24px;
	border-radius: 10px;
	margin-bottom: 20px;
}

.fmsm-status-card--active {
	background: #f0f7ea;
	border-left: 4px solid var(--fmsm-success);
}

.fmsm-status-card--pending {
	background: #fef8e4;
	border-left: 4px solid #F2994A;
}

.fmsm-status-label {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 4px;
	color: var(--fmsm-ink);
}

.fmsm-status-meta {
	margin: 0;
	font-size: 13px;
	color: var(--fmsm-body);
}

/* Terms pane */

.fmsm-terms-block {
	background: var(--fmsm-bg);
	border: 1px solid var(--fmsm-border);
	border-radius: 10px;
	padding: 24px;
	margin-bottom: 20px;
}

.fmsm-terms-block h3 {
	font-family: 'Avenir', Georgia, serif;
	font-size: 18px;
	color: var(--fmsm-heal);
	margin: 0 0 16px;
	font-weight: 600;
}

.fmsm-terms-list {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 12px 20px;
	margin: 0 0 16px;
}

.fmsm-terms-list dt {
	color: var(--fmsm-body);
	font-size: 14px;
	font-weight: 500;
}

.fmsm-terms-list dd {
	margin: 0;
	font-size: 15px;
	color: var(--fmsm-ink);
}

.fmsm-terms-note {
	font-size: 13px;
	color: var(--fmsm-meta);
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid var(--fmsm-border);
}

.fmsm-form-actions--inline {
	text-align: left;
	padding: 12px 0 0;
}

/* Sessions pane */

.fmsm-sessions-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.fmsm-sessions-table th,
.fmsm-sessions-table td {
	text-align: left;
	padding: 12px 16px;
	border-bottom: 1px solid var(--fmsm-border);
}

.fmsm-sessions-table th {
	background: var(--fmsm-warm);
	font-weight: 600;
	color: var(--fmsm-body);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.fmsm-sessions-table tr:hover td {
	background: #faf8f1;
}

.fmsm-status-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 500;
	background: var(--fmsm-border);
	color: var(--fmsm-body);
}

.fmsm-status-pill--publish {
	background: #e1efcf;
	color: #2D4A1F;
}

.fmsm-status-pill--fmsm_pending {
	background: #fef3cd;
	color: #5f4a00;
}

.fmsm-status-pill--fmsm_changes_requested {
	background: #fde2c9;
	color: #6b3100;
}

.fmsm-status-pill--fmsm_rejected {
	background: #fadcdc;
	color: #7A1D1E;
}

.fmsm-status-pill--fmsm_archived {
	background: #e7e3d8;
	color: #4A5560;
}

/* Change request status pills */
.fmsm-status-pill--pending {
	background: #fef3cd;
	color: #5f4a00;
}

.fmsm-status-pill--approved {
	background: #e1efcf;
	color: #2D4A1F;
}

.fmsm-status-pill--declined {
	background: #fadcdc;
	color: #7A1D1E;
}

.fmsm-status-pill--withdrawn {
	background: #e7e3d8;
	color: #4A5560;
}

/* ─── Pane header with right-aligned CTA ──────────────────── */

.fmsm-pane-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.fmsm-pane-header .fmsm-profile-h2 {
	margin: 0;
	flex: 1;
}

/* Small button variant */

.fmsm-btn--small {
	padding: 6px 14px;
	font-size: 13px;
}

/* ─── Action menu dropdown (on My Sessions rows) ──────────── */

.fmsm-action-menu {
	position: relative;
	display: inline-block;
}

.fmsm-action-trigger {
	cursor: pointer;
}

.fmsm-action-popover {
	position: absolute;
	right: 0;
	top: calc(100% + 4px);
	z-index: 10;
	min-width: 200px;
	background: #fff;
	border: 1px solid var(--fmsm-border);
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	padding: 6px 0;
}

.fmsm-action-popover a {
	display: block;
	padding: 9px 14px;
	color: var(--fmsm-ink);
	text-decoration: none;
	font-size: 14px;
	transition: background-color 0.15s ease;
}

.fmsm-action-popover a:hover {
	background: var(--fmsm-warm);
	color: var(--fmsm-heal);
}

/* Empty states */

.fmsm-empty-state {
	padding: 40px 24px;
	text-align: center;
	background: var(--fmsm-warm);
	border-radius: 10px;
	color: var(--fmsm-body);
}

.fmsm-empty-state p {
	margin: 0 0 10px;
}

.fmsm-empty-state p:last-child {
	margin: 0;
}

/* ─── Mobile ──────────────────────────────────────────────── */

@media (max-width: 640px) {
	.fmsm-keeper-hero h1 {
		font-size: 30px;
	}

	.fmsm-state-card,
	.fmsm-application-form {
		padding: 22px;
	}

	.fmsm-terms-list {
		grid-template-columns: 1fr;
		gap: 4px 0;
	}

	.fmsm-terms-list dt {
		font-weight: 600;
		margin-top: 12px;
	}

	.fmsm-terms-list dt:first-child {
		margin-top: 0;
	}

	.fmsm-sessions-table th,
	.fmsm-sessions-table td {
		padding: 10px 12px;
	}

	.fmsm-sessions-table th:nth-child(1),
	.fmsm-sessions-table td:nth-child(1),
	.fmsm-sessions-table th:nth-child(4),
	.fmsm-sessions-table td:nth-child(4) {
		display: none;
	}
}
