/*
 * Verts-for-Vets — public-facing styles.
 *
 * Scoped under .vfv-cc-shortcode so we don't collide with the host theme.
 *
 * Layout: the wrapper provides a sensible default centered column for
 * themes that put the shortcode on a full-width page. Themes that already
 * constrain content width (e.g. via a 700px content container) override
 * our max-width naturally because their parent element is narrower.
 *
 * The 1100px width matches the design mockups. Any theme that sets a
 * narrower content column wins because max-width is bounded by parent.
 */

.vfv-cc-shortcode {
	--vfv-bg-cream: #FAECE7;
	--vfv-bg-card:  #FFFFFF;
	--vfv-bg-soft:  #F5F4EE;
	--vfv-rust:     #993C1D;
	--vfv-rust-d:   #4A1B0C;
	--vfv-rust-l:   #F0997B;
	--vfv-text:     #1F1E1C;
	--vfv-text-2:   #6B6962;
	--vfv-text-3:   #95938A;
	--vfv-border:   rgba(0, 0, 0, 0.10);
	--vfv-success:  #3B6D11;
	--vfv-error:    #A32D2D;
	--vfv-error-bg: #FCEBEB;
	--vfv-success-bg: #EAF3DE;
	--vfv-info-bg:  #FAEEDA;

	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	color: var(--vfv-text);
	line-height: 1.55;

	/* Center the shortcode column on full-width pages. Themes that
	 * already constrain content width win because their parent is
	 * narrower than 1100px. */
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

/* Notices ------------------------------------------------- */
.vfv-cc-shortcode .vfv-notice {
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 14px;
	margin: 0 0 16px;
	border: 0.5px solid transparent;
}
.vfv-cc-shortcode .vfv-notice--error    { background: var(--vfv-error-bg);   color: #501313; border-color: #F09595; }
.vfv-cc-shortcode .vfv-notice--success  { background: var(--vfv-success-bg); color: #2A5108; border-color: #C0DD97; }
.vfv-cc-shortcode .vfv-notice--info     { background: var(--vfv-info-bg);    color: #633806; border-color: #FAC775; }

/* Cards & panes ------------------------------------------- */
.vfv-cc-shortcode .vfv-card,
.vfv-cc-shortcode .vfv-pane {
	background: var(--vfv-bg-card);
	border: 0.5px solid var(--vfv-border);
	border-radius: 12px;
	padding: 32px;
}
.vfv-cc-shortcode .vfv-card--narrow { max-width: 460px; margin: 0 auto; }
.vfv-cc-shortcode .vfv-card--centered { text-align: center; }
.vfv-cc-shortcode .vfv-card__back {
	margin: 16px 0 0;
	font-size: 13px;
	color: var(--vfv-text-2);
}
.vfv-cc-shortcode .vfv-card__back a {
	color: #185FA5;
	text-decoration: none;
}
.vfv-cc-shortcode .vfv-pane__title { font-size: 22px; font-weight: 500; margin: 0 0 8px; }
.vfv-cc-shortcode .vfv-pane__lede { font-size: 13px; color: var(--vfv-text-2); margin: 0 0 20px; }
.vfv-cc-shortcode .vfv-pane__note {
	margin: 20px 0 0;
	padding-top: 20px;
	border-top: 0.5px solid var(--vfv-border);
	font-size: 12px;
	color: var(--vfv-text-2);
	line-height: 1.6;
}
.vfv-cc-shortcode .vfv-pane__note strong { color: #185FA5; font-weight: 500; }
.vfv-cc-shortcode .vfv-pane__note--register strong { color: var(--vfv-rust-d); }

/* Two-pane layout ----------------------------------------- */
.vfv-cc-shortcode .vfv-two-pane {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	border: 0.5px solid var(--vfv-border);
	border-radius: 12px;
	overflow: hidden;
	background: var(--vfv-bg-card);
}
.vfv-cc-shortcode .vfv-two-pane .vfv-pane { border: none; border-radius: 0; }
.vfv-cc-shortcode .vfv-pane--login { border-right: 0.5px solid var(--vfv-border); }
.vfv-cc-shortcode .vfv-pane--register { background: var(--vfv-bg-cream); }
.vfv-cc-shortcode .vfv-pane--register .vfv-pane__title { color: var(--vfv-rust-d); }
.vfv-cc-shortcode .vfv-pane--register .vfv-pane__lede { color: #712B13; }
.vfv-cc-shortcode .vfv-pane--register .vfv-input { border-color: var(--vfv-rust-l); }

@media (max-width: 720px) {
	.vfv-cc-shortcode .vfv-two-pane { grid-template-columns: 1fr; }
	.vfv-cc-shortcode .vfv-pane--login { border-right: none; border-bottom: 0.5px solid var(--vfv-border); }
}

/* Forms --------------------------------------------------- */
.vfv-cc-shortcode .vfv-form { display: flex; flex-direction: column; gap: 14px; }
.vfv-cc-shortcode .vfv-form__footer {
	display: flex;
	gap: 8px;
	margin-top: 8px;
	flex-wrap: wrap;
}
.vfv-cc-shortcode .vfv-fieldset {
	border: none;
	padding: 0;
	margin: 0 0 8px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.vfv-cc-shortcode .vfv-fieldset + .vfv-fieldset {
	padding-top: 20px;
	border-top: 0.5px solid var(--vfv-border);
}
.vfv-cc-shortcode .vfv-fieldset__legend {
	font-size: 11px;
	letter-spacing: 1.5px;
	color: var(--vfv-text-2);
	font-weight: 500;
	margin: 0 0 4px;
	padding: 0;
	text-transform: uppercase;
}
.vfv-cc-shortcode .vfv-field { display: flex; flex-direction: column; gap: 6px; }
.vfv-cc-shortcode .vfv-field__label {
	font-size: 12px;
	font-weight: 500;
	color: var(--vfv-text-2);
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}
.vfv-cc-shortcode .vfv-field__hint {
	font-size: 11px;
	color: var(--vfv-text-3);
	margin-top: -2px;
}
.vfv-cc-shortcode .vfv-pane--register .vfv-field__label { color: #712B13; }
.vfv-cc-shortcode .vfv-field__link {
	font-size: 11px;
	color: #185FA5;
	font-weight: 400;
	text-decoration: none;
}
.vfv-cc-shortcode .vfv-input {
	height: 40px;
	background: var(--vfv-bg-card);
	border: 0.5px solid var(--vfv-border);
	border-radius: 8px;
	padding: 0 12px;
	font-size: 14px;
	font-family: inherit;
	color: var(--vfv-text);
	width: 100%;
	box-sizing: border-box;
}
.vfv-cc-shortcode .vfv-input--textarea {
	height: auto;
	padding: 10px 12px;
	resize: vertical;
	line-height: 1.5;
}
.vfv-cc-shortcode .vfv-input--file {
	height: auto;
	padding: 8px 12px;
	font-size: 13px;
}
.vfv-cc-shortcode .vfv-input:focus {
	outline: 2px solid var(--vfv-rust-l);
	outline-offset: -1px;
	border-color: var(--vfv-rust);
}
.vfv-cc-shortcode .vfv-input-prefix {
	display: flex;
	align-items: stretch;
}
.vfv-cc-shortcode .vfv-input-prefix > span {
	width: 32px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--vfv-bg-soft);
	border: 0.5px solid var(--vfv-border);
	border-right: none;
	border-radius: 8px 0 0 8px;
	color: var(--vfv-text-2);
	font-weight: 500;
}
.vfv-cc-shortcode .vfv-input-prefix .vfv-input { border-radius: 0 8px 8px 0; }
.vfv-cc-shortcode .vfv-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--vfv-text-2);
	cursor: pointer;
}

select.vfv-input {
	-webkit-appearance: menulist;
	appearance: menulist;
	padding-right: 8px;
}

.vfv-cc-shortcode .vfv-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
@media (max-width: 480px) {
	.vfv-cc-shortcode .vfv-grid-2 { grid-template-columns: 1fr; }
}

/* Inline form (for delete buttons inline with other actions) */
.vfv-cc-shortcode .vfv-inline-form {
	display: inline-block;
	margin: 0;
}

/* Buttons ------------------------------------------------- */
.vfv-cc-shortcode .vfv-button {
	display: inline-block;
	border-radius: 8px;
	font-weight: 500;
	font-size: 14px;
	padding: 10px 20px;
	text-decoration: none;
	cursor: pointer;
	border: 0.5px solid transparent;
	transition: opacity 120ms ease;
	font-family: inherit;
	text-align: center;
}
.vfv-cc-shortcode .vfv-button:hover { opacity: 0.92; }
.vfv-cc-shortcode .vfv-button:disabled,
.vfv-cc-shortcode .vfv-button[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}
.vfv-cc-shortcode .vfv-button--small {
	padding: 6px 12px;
	font-size: 12px;
}
.vfv-cc-shortcode .vfv-button--primary { background: var(--vfv-rust); color: var(--vfv-bg-cream); }
.vfv-cc-shortcode .vfv-button--dark    { background: var(--vfv-rust-d); color: var(--vfv-bg-cream); }
.vfv-cc-shortcode .vfv-button--ghost   { background: var(--vfv-bg-card); color: var(--vfv-text); border-color: rgba(0, 0, 0, 0.20); }
.vfv-cc-shortcode .vfv-button--danger {
	color: var(--vfv-error);
	border-color: rgba(163, 45, 45, 0.30);
}
.vfv-cc-shortcode .vfv-button--danger:hover {
	background: var(--vfv-error-bg);
	opacity: 1;
}

/* Eyebrow + meta ------------------------------------------ */
.vfv-cc-shortcode .vfv-eyebrow {
	font-size: 11px;
	letter-spacing: 1.5px;
	color: var(--vfv-text-2);
	margin-bottom: 4px;
	font-weight: 500;
	text-transform: uppercase;
}
.vfv-cc-shortcode .vfv-meta {
	display: grid;
	grid-template-columns: max-content 1fr;
	column-gap: 16px;
	row-gap: 6px;
	margin: 16px 0 0;
	font-size: 13px;
}
.vfv-cc-shortcode .vfv-meta dt { font-weight: 500; color: var(--vfv-text); }
.vfv-cc-shortcode .vfv-meta dd { margin: 0; color: var(--vfv-text-2); }
.vfv-cc-shortcode .vfv-meta--wide dd { word-break: break-all; }
.vfv-cc-shortcode .vfv-meta--inline {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	margin: 16px 0;
}
.vfv-cc-shortcode .vfv-meta--inline dt {
	display: inline;
	font-size: 11px;
	letter-spacing: 1px;
	color: var(--vfv-text-3);
	text-transform: uppercase;
	margin-right: 6px;
}
.vfv-cc-shortcode .vfv-meta--inline dd {
	display: inline;
	color: var(--vfv-text);
	font-weight: 500;
}

/* Stats row ----------------------------------------------- */
.vfv-cc-shortcode .vfv-stat-row {
	display: flex;
	gap: 24px;
	margin: 16px 0;
	flex-wrap: wrap;
}
.vfv-cc-shortcode .vfv-stat {
	background: var(--vfv-bg-soft);
	border-radius: 8px;
	padding: 16px 20px;
	min-width: 120px;
	flex: 1;
}
.vfv-cc-shortcode .vfv-stat__value {
	font-size: 28px;
	font-weight: 500;
	color: var(--vfv-rust-d);
	line-height: 1.1;
	margin-bottom: 2px;
}
.vfv-cc-shortcode .vfv-stat__label {
	font-size: 11px;
	letter-spacing: 1px;
	color: var(--vfv-text-2);
	text-transform: uppercase;
}

/* Dashboard ----------------------------------------------- */
.vfv-cc-shortcode .vfv-dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}
.vfv-cc-shortcode .vfv-dashboard-header__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.vfv-cc-shortcode .vfv-stub {
	background: var(--vfv-bg-soft);
	border-radius: 8px;
	padding: 20px;
	font-size: 13px;
	color: var(--vfv-text-2);
}
.vfv-cc-shortcode .vfv-stub p { margin: 0 0 12px; }
.vfv-cc-shortcode .vfv-stub p:last-of-type { margin-bottom: 0; }

.vfv-cc-shortcode .vfv-callout {
	background: var(--vfv-bg-cream);
	border-radius: 12px;
	padding: 24px;
}
.vfv-cc-shortcode .vfv-callout--inline {
	margin: 0 0 20px;
	padding: 16px 20px;
}
.vfv-cc-shortcode .vfv-callout__title {
	font-size: 22px;
	font-weight: 500;
	color: var(--vfv-rust-d);
	margin: 0 0 8px;
}
.vfv-cc-shortcode .vfv-callout__lede {
	margin: 0 0 12px;
	color: #712B13;
}
.vfv-cc-shortcode .vfv-callout__meta {
	font-size: 13px;
	color: var(--vfv-text-2);
	margin: 0 0 16px;
}

.vfv-cc-shortcode .vfv-enrolled__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}
.vfv-cc-shortcode .vfv-enrolled__title {
	font-size: 20px;
	font-weight: 500;
	margin: 0;
}
.vfv-cc-shortcode .vfv-status-pill {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 500;
}

/* Recent climbs (dashboard) ------------------------------- */
.vfv-cc-shortcode .vfv-recent-climbs {
	margin: 20px 0;
}
.vfv-cc-shortcode .vfv-recent-climbs__list {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}
.vfv-cc-shortcode .vfv-recent-climbs__list li {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 8px 0;
	font-size: 13px;
	border-bottom: 0.5px solid var(--vfv-border);
}
.vfv-cc-shortcode .vfv-recent-climbs__list li:last-child {
	border-bottom: none;
}
.vfv-cc-shortcode .vfv-recent-climbs__date {
	color: var(--vfv-text-3);
	font-size: 11px;
	letter-spacing: 0.5px;
	min-width: 100px;
	flex-shrink: 0;
}
.vfv-cc-shortcode .vfv-recent-climbs__name {
	flex: 1;
	color: var(--vfv-text);
	font-weight: 500;
}
.vfv-cc-shortcode .vfv-recent-climbs__grade,
.vfv-cc-shortcode .vfv-recent-climbs__feet {
	color: var(--vfv-text-2);
	font-family: ui-monospace, SFMono-Regular, monospace;
	font-size: 12px;
}

/* Scorecard list ------------------------------------------ */
.vfv-cc-shortcode .vfv-scorecard-list {
	list-style: none;
	margin: 20px 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.vfv-cc-shortcode .vfv-scorecard {
	display: flex;
	gap: 16px;
	background: var(--vfv-bg-soft);
	border-radius: 8px;
	padding: 16px;
}
.vfv-cc-shortcode .vfv-scorecard__photo {
	flex-shrink: 0;
	width: 96px;
	height: 96px;
	border-radius: 8px;
	overflow: hidden;
	display: block;
}
.vfv-cc-shortcode .vfv-scorecard__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.vfv-cc-shortcode .vfv-scorecard__photo--placeholder {
	background: var(--vfv-bg-cream);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
}
.vfv-cc-shortcode .vfv-scorecard__body {
	flex: 1;
	min-width: 0;
}
.vfv-cc-shortcode .vfv-scorecard__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	flex-wrap: wrap;
}
.vfv-cc-shortcode .vfv-scorecard__title {
	font-size: 16px;
	font-weight: 500;
	margin: 0 0 4px;
	color: var(--vfv-text);
}
.vfv-cc-shortcode .vfv-scorecard__meta {
	font-size: 12px;
	color: var(--vfv-text-2);
}
.vfv-cc-shortcode .vfv-scorecard__grade {
	font-family: ui-monospace, SFMono-Regular, monospace;
	color: var(--vfv-rust);
	font-weight: 500;
}
.vfv-cc-shortcode .vfv-scorecard__actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}
.vfv-cc-shortcode .vfv-scorecard__notes {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--vfv-text);
	line-height: 1.5;
}

@media (max-width: 480px) {
	.vfv-cc-shortcode .vfv-scorecard {
		flex-direction: column;
	}
	.vfv-cc-shortcode .vfv-scorecard__photo {
		width: 100%;
		height: 180px;
	}
}

/* Photo preview (scorecard form) -------------------------- */
.vfv-cc-shortcode .vfv-photo-preview {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--vfv-bg-soft);
	border-radius: 8px;
	padding: 8px 12px;
	margin-bottom: 6px;
}
.vfv-cc-shortcode .vfv-photo-preview img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}
.vfv-cc-shortcode .vfv-photo-preview .vfv-checkbox {
	margin: 0;
}

/* Hero (logged-out home) ---------------------------------- */
.vfv-cc-shortcode .vfv-hero {
	background: var(--vfv-bg-cream);
	border-radius: 12px;
	padding: 48px 32px;
	text-align: center;
	margin-bottom: 24px;
}
.vfv-cc-shortcode .vfv-hero__title {
	font-size: 36px;
	font-weight: 500;
	color: var(--vfv-rust-d);
	margin: 8px 0 12px;
	line-height: 1.2;
}
.vfv-cc-shortcode .vfv-hero__lede {
	font-size: 16px;
	color: #712B13;
	max-width: 540px;
	margin: 0 auto 24px;
}
.vfv-cc-shortcode .vfv-hero__actions { margin-top: 24px; }

.vfv-cc-shortcode .vfv-explainer { padding: 24px 0; }
.vfv-cc-shortcode .vfv-explainer__title {
	font-size: 18px;
	font-weight: 500;
	margin: 0 0 16px;
}
.vfv-cc-shortcode .vfv-steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	counter-reset: vfv-step;
}
.vfv-cc-shortcode .vfv-steps li {
	background: var(--vfv-bg-soft);
	border-radius: 8px;
	padding: 16px 20px 16px 48px;
	position: relative;
	counter-increment: vfv-step;
	font-size: 13px;
	color: var(--vfv-text-2);
}
.vfv-cc-shortcode .vfv-steps li:before {
	content: counter(vfv-step);
	position: absolute;
	left: 16px;
	top: 16px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--vfv-rust);
	color: var(--vfv-bg-cream);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 600;
}
.vfv-cc-shortcode .vfv-steps strong {
	display: block;
	color: var(--vfv-text);
	margin-bottom: 2px;
	font-weight: 500;
}

/* Step indicator ------------------------------------------ */
.vfv-cc-shortcode .vfv-step-indicator {
	display: flex;
	gap: 0;
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
	border-radius: 8px;
	overflow: hidden;
	border: 0.5px solid var(--vfv-border);
}
.vfv-cc-shortcode .vfv-step {
	flex: 1;
	padding: 10px 16px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.5px;
	text-align: center;
}
.vfv-cc-shortcode .vfv-step--current {
	background: var(--vfv-rust);
	color: var(--vfv-bg-cream);
}
.vfv-cc-shortcode .vfv-step--upcoming {
	background: var(--vfv-bg-soft);
	color: var(--vfv-text-3);
}
.vfv-cc-shortcode .vfv-step--done {
	background: #C0DD97;
	color: #173404;
}
.vfv-cc-shortcode .vfv-step__hint {
	display: block;
	font-size: 10px;
	font-weight: 400;
	margin-top: 2px;
	opacity: 0.8;
}

/* Public profile ------------------------------------------ */
.vfv-cc-shortcode .vfv-public-profile {
	background: var(--vfv-bg-card);
	border: 0.5px solid var(--vfv-border);
	border-radius: 12px;
	overflow: hidden;
}
.vfv-cc-shortcode .vfv-public-profile__pic {
	display: block;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 16px;
	background: var(--vfv-bg-cream);
	border: 4px solid #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
@media (max-width: 480px) {
	.vfv-cc-shortcode .vfv-public-profile__pic {
		width: 128px;
		height: 128px;
	}
}
.vfv-cc-shortcode .vfv-public-profile__body { padding: 32px; }
.vfv-cc-shortcode .vfv-public-profile__body > .vfv-eyebrow,
.vfv-cc-shortcode .vfv-public-profile__title,
.vfv-cc-shortcode .vfv-public-profile__team {
	/* The header trio sits centered under the round profile pic.
	 * Bio and CTAs below keep their natural left-alignment. */
	text-align: center;
}
.vfv-cc-shortcode .vfv-public-profile__title {
	font-size: 28px;
	font-weight: 500;
	margin: 4px 0 16px;
}
.vfv-cc-shortcode .vfv-public-profile__bio {
	font-size: 15px;
	line-height: 1.6;
	color: var(--vfv-text);
	margin-bottom: 24px;
}
.vfv-cc-shortcode .vfv-public-profile__cta {
	display: flex;
	gap: 8px;
	margin-top: 24px;
	flex-wrap: wrap;
}

/* Fundraising progress ------------------------------------ */
.vfv-cc-shortcode .vfv-fundraising-progress {
	background: var(--vfv-bg-soft);
	border-radius: 8px;
	padding: 16px 20px;
	margin: 16px 0;
}
.vfv-cc-shortcode .vfv-fundraising-progress__bar {
	height: 8px;
	background: rgba(0, 0, 0, 0.08);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 8px;
}
.vfv-cc-shortcode .vfv-fundraising-progress__fill {
	height: 100%;
	background: var(--vfv-rust);
	transition: width 240ms ease;
}
.vfv-cc-shortcode .vfv-fundraising-progress__numbers {
	font-size: 13px;
	color: var(--vfv-text-2);
}
.vfv-cc-shortcode .vfv-fundraising-progress__raised,
.vfv-cc-shortcode .vfv-fundraising-progress__goal {
	font-weight: 500;
	color: var(--vfv-text);
}
.vfv-cc-shortcode .vfv-fundraising-progress__note {
	font-size: 11px;
	color: var(--vfv-text-3);
	margin: 6px 0 0;
}

/* Payment form -------------------------------------------- */
.vfv-cc-shortcode #vfv-payment-element {
	margin-bottom: 8px;
	min-height: 180px;
}
.vfv-cc-shortcode .vfv-payment-button__label,
.vfv-cc-shortcode .vfv-payment-button__spinner {
	display: inline-block;
}

/* Teams (Phase 5b) ---------------------------------------- */
.vfv-cc-shortcode .vfv-team-list {
	list-style: none;
	margin: 16px 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.vfv-cc-shortcode .vfv-team-list__item {
	display: flex;
	gap: 16px;
	background: var(--vfv-bg-soft);
	border-radius: 8px;
	padding: 16px;
	align-items: flex-start;
}
.vfv-cc-shortcode .vfv-team-list__main {
	flex: 1;
	min-width: 0;
}
.vfv-cc-shortcode .vfv-team-list__name {
	display: inline-block;
	font-size: 16px;
	font-weight: 500;
	color: var(--vfv-text);
	text-decoration: none;
	margin-bottom: 4px;
}
.vfv-cc-shortcode .vfv-team-list__name:hover {
	color: var(--vfv-rust);
}
.vfv-cc-shortcode .vfv-team-list__tag {
	display: inline-block;
	font-size: 10px;
	letter-spacing: 0.8px;
	font-weight: 500;
	background: #C0DD97;
	color: #173404;
	padding: 2px 8px;
	border-radius: 6px;
	margin-left: 8px;
	vertical-align: middle;
	text-transform: uppercase;
}
.vfv-cc-shortcode .vfv-team-list__tag--pending {
	background: var(--vfv-info-bg);
	color: #633806;
}
.vfv-cc-shortcode .vfv-team-list__desc {
	margin: 4px 0 6px;
	font-size: 13px;
	color: var(--vfv-text-2);
	line-height: 1.5;
}
.vfv-cc-shortcode .vfv-team-list__meta {
	font-size: 12px;
	color: var(--vfv-text-3);
	letter-spacing: 0.3px;
}
.vfv-cc-shortcode .vfv-team-list__actions {
	flex-shrink: 0;
}

.vfv-cc-shortcode .vfv-team-members {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}
.vfv-cc-shortcode .vfv-team-members li {
	padding: 8px 0;
	font-size: 14px;
	border-bottom: 0.5px solid var(--vfv-border);
}
.vfv-cc-shortcode .vfv-team-members li:last-child {
	border-bottom: none;
}
.vfv-cc-shortcode .vfv-team-members a {
	color: var(--vfv-text);
	text-decoration: none;
	font-weight: 500;
}
.vfv-cc-shortcode .vfv-team-members a:hover {
	color: var(--vfv-rust);
}
.vfv-cc-shortcode .vfv-team-members__tag {
	display: inline-block;
	font-size: 10px;
	letter-spacing: 0.8px;
	font-weight: 500;
	background: var(--vfv-rust-l);
	color: var(--vfv-rust-d);
	padding: 2px 8px;
	border-radius: 6px;
	margin-left: 8px;
	vertical-align: middle;
	text-transform: uppercase;
}

.vfv-cc-shortcode .vfv-team-requests {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.vfv-cc-shortcode .vfv-team-requests li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	background: var(--vfv-bg-cream);
	border-radius: 8px;
	flex-wrap: wrap;
}
.vfv-cc-shortcode .vfv-team-requests__name {
	font-weight: 500;
	color: var(--vfv-text);
}
.vfv-cc-shortcode .vfv-team-requests__name a {
	color: inherit;
	text-decoration: none;
}
.vfv-cc-shortcode .vfv-team-requests__name a:hover {
	color: var(--vfv-rust);
}
.vfv-cc-shortcode .vfv-team-requests__actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

/* Dashboard team block (Phase 5b) ------------------------- */
.vfv-cc-shortcode .vfv-team-block {
	background: var(--vfv-bg-soft);
	border-radius: 8px;
	padding: 14px 16px;
	margin: 16px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.vfv-cc-shortcode .vfv-team-block .vfv-eyebrow {
	margin: 0;
	flex-basis: 100%;
}
.vfv-cc-shortcode .vfv-team-block__main {
	margin: 0;
	flex: 1;
	font-size: 14px;
}

/* Public profile team line (Phase 5b) --------------------- */
.vfv-cc-shortcode .vfv-public-profile__team {
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--vfv-text-2);
}
.vfv-cc-shortcode .vfv-public-profile__team a {
	color: var(--vfv-rust);
	font-weight: 500;
	text-decoration: none;
}
.vfv-cc-shortcode .vfv-public-profile__team a:hover {
	text-decoration: underline;
}

/* ==================================================================
 * Phase 6 — Donations + pledges
 * ================================================================== */

/* Recent supporters list on the public profile */
.vfv-recent-supporters {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #e5e3df;
}

.vfv-recent-supporters__title {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #6b6764;
	margin: 0 0 12px;
}

.vfv-recent-supporters__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vfv-recent-supporters__item {
	padding: 12px 0;
	border-bottom: 1px solid #f1efeb;
}

.vfv-recent-supporters__item:last-child {
	border-bottom: none;
}

.vfv-recent-supporters__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.vfv-recent-supporters__name {
	font-weight: 500;
	color: #1f1e1c;
}

.vfv-recent-supporters__amount {
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-weight: 500;
	color: #993C1D;
}

.vfv-recent-supporters__message {
	margin-top: 4px;
	color: #4a4744;
	font-style: italic;
	font-size: 14px;
	line-height: 1.4;
}

.vfv-recent-supporters__date {
	margin-top: 4px;
	font-size: 12px;
	color: #9a9591;
}

/* Pledge estimate line under the progress bar */
.vfv-fundraising-progress__pledge-line {
	margin: 6px 0 0;
	font-size: 13px;
	color: #6b6764;
}

.vfv-fundraising-progress__pledge-line strong {
	color: #993C1D;
	font-weight: 500;
}

.vfv-fundraising-progress--no-goal {
	margin: 16px 0;
	padding: 12px 0;
}

.vfv-fundraising-progress--no-goal .vfv-fundraising-progress__numbers {
	font-size: 18px;
}

.vfv-fundraising-progress--no-goal .vfv-fundraising-progress__raised {
	font-size: 24px;
	font-weight: 500;
	color: #993C1D;
}

/* Stripe input prefix ($) for amount fields */
.vfv-input-prefix {
	display: flex;
	align-items: center;
	border: 1px solid #d4d1cc;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.vfv-input-prefix:focus-within {
	border-color: #993C1D;
	box-shadow: 0 0 0 1px #993C1D;
}

.vfv-input-prefix > span {
	padding: 0 12px;
	color: #6b6764;
	font-weight: 500;
}

.vfv-input-prefix .vfv-input {
	border: none;
	box-shadow: none;
	flex: 1;
	border-radius: 0;
}

.vfv-input-prefix .vfv-input:focus {
	box-shadow: none;
}

/* Two-up grid for cents-per-foot + cap */
.vfv-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media (max-width: 480px) {
	.vfv-grid-2 {
		grid-template-columns: 1fr;
	}
}

/* Notes pane in the pledge form */
.vfv-pane__note {
	margin-top: 12px;
	padding: 12px;
	background: #f7f4ee;
	border-radius: 6px;
	font-size: 13px;
	color: #4a4744;
	line-height: 1.5;
}

/* Centered card for confirmation pages */
.vfv-card--centered {
	text-align: center;
}

/* ==================================================================
 * Phase 7 — Leaderboards
 * ================================================================== */

.vfv-leaderboard {
	max-width: 720px;
	margin: 24px auto;
	padding: 0 16px;
}

.vfv-leaderboard__header {
	margin-bottom: 24px;
}

.vfv-leaderboard__title {
	font-size: 32px;
	font-weight: 600;
	margin: 4px 0 0;
	color: #1f1e1c;
}

.vfv-leaderboard__picker {
	margin-top: 12px;
	font-size: 14px;
	color: #6b6764;
}

.vfv-leaderboard__picker label {
	margin-right: 6px;
}

.vfv-leaderboard__picker select {
	padding: 6px 10px;
	border: 1px solid #d4d1cc;
	border-radius: 6px;
	background: #fff;
	font: inherit;
}

/* Anchor nav across the top */
.vfv-leaderboard__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e5e3df;
}

.vfv-leaderboard__nav-link {
	padding: 6px 12px;
	border: 1px solid #d4d1cc;
	border-radius: 999px;
	background: #fff;
	color: #4a4744;
	font-size: 13px;
	text-decoration: none;
	white-space: nowrap;
}

.vfv-leaderboard__nav-link:hover {
	border-color: #993C1D;
	color: #993C1D;
}

/* Each leaderboard section */
.vfv-leaderboard__section {
	margin-bottom: 40px;
	scroll-margin-top: 24px;
}

.vfv-leaderboard__section-title {
	font-size: 18px;
	font-weight: 600;
	color: #1f1e1c;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #993C1D;
}

.vfv-leaderboard__empty {
	color: #9a9591;
	font-style: italic;
	margin: 0;
	padding: 16px 0;
}

.vfv-leaderboard__list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: none;
}

.vfv-leaderboard__row {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-bottom: 1px solid #f1efeb;
}

.vfv-leaderboard__row:last-child {
	border-bottom: none;
}

.vfv-leaderboard__row:hover {
	background: #faf8f3;
}

.vfv-leaderboard__rank {
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: 14px;
	font-weight: 600;
	color: #6b6764;
	letter-spacing: 0.02em;
}

/* Top 3 get visual treatment — small touch, not garish */
.vfv-leaderboard__row--rank-1 .vfv-leaderboard__rank {
	color: #B8860B; /* dark gold */
}
.vfv-leaderboard__row--rank-2 .vfv-leaderboard__rank {
	color: #707070; /* silver */
}
.vfv-leaderboard__row--rank-3 .vfv-leaderboard__rank {
	color: #8A4513; /* bronze */
}

.vfv-leaderboard__name {
	color: #1f1e1c;
	text-decoration: none;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vfv-leaderboard__name:hover {
	color: #993C1D;
	text-decoration: underline;
}

.vfv-leaderboard__value {
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-weight: 500;
	color: #4a4744;
}

/* ==================================================================
 * Phase 8 — Badges
 * ================================================================== */

.vfv-badges {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #e5e3df;
}

.vfv-badges__title {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #6b6764;
	margin: 0 0 12px;
}

.vfv-badges__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 10px;
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.vfv-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 10px 6px;
	border: 1px solid #e5e3df;
	border-radius: 8px;
	background: #fff;
	text-align: center;
	min-height: 88px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vfv-badge--earned {
	border-color: #d4d1cc;
	background: linear-gradient(180deg, #fdfaf3 0%, #fff 100%);
}

.vfv-badge--earned:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(153, 60, 29, 0.10);
}

.vfv-badge--locked {
	opacity: 0.4;
	filter: grayscale(1);
}

.vfv-badge--new {
	animation: vfv-badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1;
	border-color: #993C1D;
	background: linear-gradient(180deg, #fef4ee 0%, #fff 100%);
	box-shadow: 0 0 0 2px rgba(153, 60, 29, 0.15);
}

@keyframes vfv-badge-pop {
	0%   { transform: scale(0.8); opacity: 0; }
	60%  { transform: scale(1.08); opacity: 1; }
	100% { transform: scale(1); opacity: 1; }
}

.vfv-badge__icon {
	font-size: 28px;
	line-height: 1;
	margin-bottom: 6px;
}

.vfv-badge__name {
	font-size: 12px;
	color: #1f1e1c;
	font-weight: 500;
	line-height: 1.2;
}

.vfv-badge--locked .vfv-badge__name {
	color: #6b6764;
}

/* Public profile variant — slightly tighter, only shows earned */
.vfv-badges--public {
	margin-top: 32px;
}

.vfv-notice--success {
	padding: 10px 12px;
	background: #f0f7e9;
	border: 1px solid #c9dfb1;
	border-radius: 6px;
	color: #2e4d18;
	font-size: 14px;
}

/* ==================================================================
 * Phase 8b — Admin-managed badge emblems
 * ================================================================== */

/* When a badge has an uploaded image, the .vfv-badge__image element is
 * used in place of .vfv-badge__icon. Same visual footprint. */
.vfv-badge__image {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 6px;
	background: #f4f1eb;
	display: block;
}

.vfv-badge--locked .vfv-badge__image {
	/* Same grayscale treatment as locked emoji badges. */
	filter: grayscale(1);
}

/* ==================================================================
 * Phase 9 — Avatars, season history, dashboard header layout
 * ================================================================== */

/* Dashboard header — avatar + welcome flow side-by-side */
.vfv-dashboard-header__id {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* Avatar — base + size variants. Used on dashboard, public profile, history. */
.vfv-avatar {
	display: inline-block;
	border-radius: 50%;
	background: #f4f1eb;
	object-fit: cover;
	flex-shrink: 0;
}

.vfv-avatar--md {
	width: 56px;
	height: 56px;
}

.vfv-avatar--lg {
	width: 120px;
	height: 120px;
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Placeholder when no avatar set — first letter of display name. */
.vfv-avatar--placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #6b6764;
	font-weight: 600;
	background: #ede9e1;
	font-size: 22px;
	text-transform: uppercase;
}

.vfv-avatar--lg.vfv-avatar--placeholder {
	font-size: 44px;
}

/* ----- Season history ----- */
.vfv-history {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.vfv-history__item {
	border: 1px solid #e5e3df;
	border-radius: 10px;
	padding: 16px 20px;
	background: #fff;
	transition: box-shadow 0.15s ease;
}

.vfv-history__item:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vfv-history__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.vfv-history__title {
	font-size: 18px;
	font-weight: 600;
	color: #1f1e1c;
	margin: 0;
}

.vfv-history__sub {
	font-size: 13px;
	color: #6b6764;
	margin-top: 2px;
}

.vfv-history__stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 0;
}

.vfv-history__stats > div {
	text-align: center;
	padding: 8px 4px;
	background: #fdfaf3;
	border-radius: 6px;
}

.vfv-history__stats dt {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #8a847f;
	margin-bottom: 4px;
}

.vfv-history__stats dd {
	font-size: 18px;
	font-weight: 600;
	color: #1f1e1c;
	margin: 0;
}

@media (max-width: 540px) {
	.vfv-history__stats {
		grid-template-columns: repeat(2, 1fr);
	}
	.vfv-history__head {
		flex-direction: column;
	}
}

/* ==================================================================
 * Phase 9b — Gallery (edit + public profile)
 * ================================================================== */

/* Edit-profile gallery management */
.vfv-gallery-edit__grid {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 10px;
}

.vfv-gallery-edit__cell {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #f4f1eb;
	border-radius: 6px;
	overflow: hidden;
}

.vfv-gallery-edit__cell img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vfv-gallery-edit__cell form {
	position: absolute;
	top: 4px;
	right: 4px;
	margin: 0;
}

.vfv-gallery-edit__remove {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.9);
	color: #1f1e1c;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	font-weight: 600;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.vfv-gallery-edit__remove:hover {
	background: #fff;
	color: #A32D2D;
}

.vfv-gallery-edit__add {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: #fdfaf3;
	border-radius: 8px;
	border: 1px dashed #d8d3ca;
}

/* Public profile gallery display */
.vfv-public-gallery {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #e5e3df;
}

.vfv-public-gallery__title {
	font-size: 18px;
	font-weight: 600;
	color: #1f1e1c;
	margin: 0 0 16px;
}

.vfv-public-gallery__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
}

.vfv-public-gallery__cell {
	aspect-ratio: 4 / 3;
	background: #f4f1eb;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.15s ease;
}

.vfv-public-gallery__cell:hover {
	transform: scale(1.02);
}

.vfv-public-gallery__cell a {
	display: block;
	width: 100%;
	height: 100%;
}

.vfv-public-gallery__cell img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 540px) {
	.vfv-public-gallery__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ==================================================================
 * Phase 1.1.2 — Active competition tile (standalone shortcode)
 * ================================================================== */

.vfv-active-tile {
	background: #fff;
	border: 1px solid #e5e3df;
	border-radius: 12px;
	padding: 24px 28px;
	max-width: 480px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.vfv-active-tile--empty {
	text-align: center;
	color: #6b6764;
}

.vfv-active-tile__eyebrow {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #3B6D11;
	margin-bottom: 8px;
}

.vfv-active-tile__title {
	font-size: 22px;
	font-weight: 700;
	color: #1f1e1c;
	margin: 0 0 12px;
	line-height: 1.25;
}

.vfv-active-tile__lede {
	font-size: 15px;
	line-height: 1.5;
	color: #4b4744;
	margin: 0 0 16px;
}

.vfv-active-tile__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 16px 0;
	padding: 12px 16px;
	background: #fdfaf3;
	border-radius: 8px;
}

.vfv-active-tile__meta > div {
	flex: 0 1 auto;
}

.vfv-active-tile__meta dt {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #8a847f;
	margin-bottom: 2px;
}

.vfv-active-tile__meta dd {
	font-size: 14px;
	font-weight: 600;
	color: #1f1e1c;
	margin: 0;
}

.vfv-active-tile__cta {
	margin: 16px 0 0;
}

@media (max-width: 480px) {
	.vfv-active-tile {
		padding: 20px;
	}
	.vfv-active-tile__title {
		font-size: 19px;
	}
}
