/**
 * Cards
 */
.fc-card,
.fc-card-captain,
.fc-card-boat,
.fc-card-org,
.fc-card-dashboard,
.fc-card-stat,
.fc-card-info {
	display: flex;
	flex-direction: column;
	gap: var(--fc-space-2);
	margin: 0 0 var(--fc-space-4);
	padding: var(--fc-card-padding, var(--fc-space-5));
	border: 1px solid var(--fc-color-border);
	border-radius: var(--fc-radius-lg);
	background: var(--fc-color-surface);
	box-shadow: var(--fc-shadow-sm);
}

.fc-card--compact {
	padding: var(--fc-card-padding-compact, var(--fc-space-4));
	gap: var(--fc-space-1);
}

.fc-card--featured {
	padding: var(--fc-card-padding-featured, var(--fc-space-6));
}

.fc-card h3:first-child,
.fc-card__title {
	margin: 0;
	font-size: var(--fc-text-h3);
	font-weight: var(--fc-weight-semibold);
	color: var(--fc-color-ocean-navy);
}

.fc-card__meta {
	font-size: var(--fc-text-small);
	color: var(--fc-color-muted);
}

.fc-card__body {
	color: var(--fc-color-text);
}

.fc-card__footer {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fc-space-2);
	margin-top: auto;
	padding-top: var(--fc-space-3);
	border-top: 1px solid var(--fc-color-border);
}

.fc-card--interactive {
	text-decoration: none;
	color: inherit;
	transition:
		border-color var(--fc-duration) var(--fc-ease),
		box-shadow var(--fc-duration) var(--fc-ease),
		transform var(--fc-duration-fast) var(--fc-ease);
}

.fc-card--interactive:hover {
	border-color: var(--fc-color-border-strong);
	box-shadow: var(--fc-shadow-md);
	transform: translateY(-1px);
}

.fc-card--interactive:focus-visible {
	outline: 3px solid var(--fc-color-focus);
	outline-offset: 2px;
}

.fc-card-stat {
	gap: var(--fc-space-1);
}

.fc-card-stat__value {
	font-size: var(--fc-text-h2);
	font-weight: var(--fc-weight-bold);
	color: var(--fc-color-ocean-navy);
	letter-spacing: -0.02em;
}

.fc-card-stat__label {
	font-size: var(--fc-text-small);
	color: var(--fc-color-muted);
}

.fc-card-info {
	background: var(--fc-color-info-bg);
	border-color: color-mix(in srgb, var(--fc-color-info) 25%, var(--fc-color-border));
}

.fc-portal-summary-tile {
	display: flex;
	flex-direction: column;
	gap: var(--fc-space-1);
	min-height: var(--fc-touch-min);
	padding: var(--fc-space-4);
	border: 1px solid var(--fc-color-border);
	border-radius: var(--fc-radius-md);
	background: var(--fc-color-bg);
	text-decoration: none;
	color: inherit;
	transition: background-color var(--fc-duration) var(--fc-ease), border-color var(--fc-duration) var(--fc-ease), box-shadow var(--fc-duration) var(--fc-ease);
}

.fc-portal-summary-tile--positive {
	border-color: color-mix(in srgb, var(--fc-brand-sea-glass) 40%, var(--fc-color-border));
	background: color-mix(in srgb, var(--fc-brand-sea-glass) 6%, var(--fc-color-bg));
}

.fc-portal-summary-tile:hover,
.fc-portal-summary-tile:focus-visible {
	background: var(--fc-color-surface);
	border-color: var(--fc-color-deep-blue);
	box-shadow: var(--fc-shadow-sm);
}

.fc-portal-summary-title {
	display: inline-flex;
	align-items: center;
	gap: var(--fc-space-1);
	font-weight: var(--fc-weight-semibold);
	overflow-wrap: anywhere;
}

.fc-portal-summary-mark {
	color: var(--fc-brand-sea-glass);
	font-weight: var(--fc-weight-bold);
}

.fc-portal-summary-value {
	color: var(--fc-color-muted);
	font-size: var(--fc-text-small);
	overflow-wrap: anywhere;
}

.fc-portal-summary-detail {
	color: var(--fc-color-text);
	font-size: var(--fc-text-small);
	overflow-wrap: anywhere;
}

.fc-portal-next-actions__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fc-space-2) var(--fc-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fc-portal-next-actions__list > li {
	min-width: 0;
}

.fc-membership-checkout-form__submit {
	margin: 0;
}

.fc-membership-checkout-form__prompt {
	margin: 0 0 var(--fc-space-2);
	font-weight: var(--fc-weight-semibold);
	color: var(--fc-color-text);
}

.fc-membership-disclosure {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--fc-space-2);
	min-width: 0;
	width: 100%;
}

/* .fc-btn { display: inline-flex } would otherwise keep the collapsed CTA visible. */
.fc-membership-disclosure.is-open > .fc-membership-disclosure__trigger,
.fc-membership-disclosure__trigger[hidden] {
	display: none !important;
}

.fc-membership-disclosure__panel {
	width: 100%;
	min-width: 0;
}

.fc-membership-disclosure__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--fc-space-3);
	width: 100%;
	margin: 0 0 var(--fc-space-2);
}

.fc-membership-disclosure__header .fc-membership-checkout-form__prompt {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
}

.fc-membership-disclosure__close {
	appearance: none;
	border: 0;
	background: transparent;
	padding: var(--fc-space-1) 0;
	margin: 0;
	flex: 0 0 auto;
	min-height: var(--fc-touch-min);
	color: var(--fc-color-muted);
	font: inherit;
	font-size: var(--fc-text-small);
	text-decoration: underline;
	text-underline-offset: 0.12em;
	cursor: pointer;
}

.fc-membership-disclosure__close:hover,
.fc-membership-disclosure__close:focus-visible {
	color: var(--fc-color-text);
}

.fc-portal-dashboard > .fc-portal-lede {
	margin-bottom: var(--fc-space-5);
}

.fc-portal-next-actions__lede {
	margin: 0 0 var(--fc-space-3);
	max-width: 42rem;
	color: var(--fc-color-muted);
	line-height: var(--fc-leading-relaxed);
	overflow-wrap: anywhere;
}

.fc-portal-keep-building {
	margin-top: var(--fc-space-5);
}

.fc-portal-keep-building__lede {
	margin: 0 0 var(--fc-space-3);
	max-width: 42rem;
	color: var(--fc-color-muted);
	line-height: var(--fc-leading-relaxed);
}

.fc-portal-keep-building__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--fc-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 40rem) {
	.fc-portal-keep-building__list {
		grid-template-columns: 1fr 1fr;
	}
}

.fc-portal-keep-building__list > li > a {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-height: var(--fc-touch-min, 2.75rem);
	padding: var(--fc-space-2) var(--fc-space-3);
	border: 1px solid var(--fc-color-border);
	border-radius: var(--fc-radius-md);
	text-decoration: none;
	color: inherit;
}

.fc-portal-keep-building__label {
	font-weight: var(--fc-weight-semibold);
}

.fc-portal-keep-building__detail {
	font-size: var(--fc-text-small);
	color: var(--fc-color-muted);
}

.fc-membership-benefits {
	margin-bottom: var(--fc-space-4);
}

.fc-membership-benefits__list {
	margin: 0;
	padding-inline-start: 1.25rem;
}

.fc-membership-benefits__list > li {
	margin-bottom: var(--fc-space-2);
}

.fc-membership-interval-option__cadence {
	display: block;
	margin-top: 0.25rem;
	font-size: var(--fc-text-small);
	color: var(--fc-color-muted);
}

.fc-membership-interval-choice {
	display: grid;
	gap: var(--fc-space-2);
	margin: 0 0 var(--fc-space-3);
	padding: 0;
	border: 0;
	min-width: 0;
}

.fc-membership-interval-option {
	display: block;
	margin: 0;
	cursor: pointer;
}

.fc-membership-interval-option__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.fc-membership-interval-option__body {
	display: flex;
	align-items: flex-start;
	gap: var(--fc-space-2);
	min-height: var(--fc-touch-min);
	padding: var(--fc-space-3);
	border: 1px solid var(--fc-color-border);
	border-radius: var(--fc-radius-md);
	background: var(--fc-color-bg);
	overflow-wrap: anywhere;
}

.fc-membership-interval-option__mark {
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	margin-top: 0.2rem;
	border: 2px solid var(--fc-color-muted);
	border-radius: 50%;
	background: transparent;
}

.fc-membership-interval-option__input:focus-visible + .fc-membership-interval-option__body {
	outline: 2px solid var(--fc-brand-sea-glass);
	outline-offset: 2px;
}

.fc-membership-interval-option__input:checked + .fc-membership-interval-option__body {
	border-color: var(--fc-color-ocean-navy);
	box-shadow: inset 0 0 0 1px var(--fc-color-ocean-navy);
}

.fc-membership-interval-option__input:checked + .fc-membership-interval-option__body .fc-membership-interval-option__mark {
	border-color: var(--fc-color-ocean-navy);
	background: radial-gradient(circle at center, var(--fc-color-ocean-navy) 0 45%, transparent 46%);
}

.fc-membership-interval-option__copy {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.fc-membership-interval-option__title {
	font-weight: var(--fc-weight-semibold);
}

.fc-membership-interval-option__price {
	color: var(--fc-color-text);
	font-size: var(--fc-text-small);
}

.fc-membership-interval-option__savings {
	color: var(--fc-color-muted);
	font-size: var(--fc-text-caption);
}

.fc-membership-checkout-form[data-fc-membership-busy='1'] [data-fc-membership-submit] {
	opacity: 0.72;
	cursor: wait;
}
