/* 50 for 50: collection + pledge pages. Everything is scoped under .f4f so the theme is left alone. */
.f4f {
	--f4f-ground: #E8EBEE; --f4f-surface: #FFFFFF; --f4f-surface-2: #F4F6F8; --f4f-ink: #16202B; --f4f-muted: #5A6572; --f4f-line: #CDD3DA;
	--f4f-accent: #1D3F73; --f4f-accent-ink: #FFFFFF; --f4f-signal: #F2BF2E; --f4f-signal-ink: #1A1400;
	--f4f-ok: #2E7D4F; --f4f-ok-soft: #D8EDDF; --f4f-warn: #A8690F; --f4f-warn-soft: #F6E5C6; --f4f-open-line: #9AA5B1;
	--f4f-pledged: #1D3F73; --f4f-err: #B42318;
	--f4f-shadow: 0 1px 2px rgba(22,32,43,.08), 0 8px 24px rgba(22,32,43,.08);
	--f4f-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
	--f4f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f4f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
	--f4f-w: min(1120px, calc(100vw - 32px));

	/* Break out of narrow theme content columns and center on the screen. */
	box-sizing: border-box;
	width: var(--f4f-w) !important;
	max-width: none !important;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	background: var(--f4f-ground);
	color: var(--f4f-ink);
	font-family: var(--f4f-body);
	font-size: 15px;
	line-height: 1.55;
	border-radius: 16px;
	padding: 0 clamp(16px, 3vw, 32px) 32px;
	margin-block: 24px;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}
.f4f *, .f4f *::before, .f4f *::after { box-sizing: border-box; }

/* Full-width template on classic themes: fill the theme's main area instead of breaking out of a column. */
.f4f-fullwidth { width: 100%; max-width: 1120px; margin: 0 auto; padding: 8px 0 24px; clear: both; float: none; }
.f4f-fullwidth .f4f { width: 100% !important; left: 0; transform: none; }
.f4f :where(h2, h3, p, ol, ul, dl, dd, figure) { margin: 0; padding: 0; border: 0; }
.f4f :where(h2, h3) { color: inherit; text-wrap: balance; letter-spacing: normal; text-transform: none; font-family: var(--f4f-body); }
.f4f :where(a) { color: inherit; box-shadow: none; }
.f4f :where(button, input, select, textarea) { font: inherit; letter-spacing: normal; text-transform: none; box-shadow: none; margin: 0; min-height: 0; }
.f4f :where(button) { cursor: pointer; }
.f4f :focus-visible { outline: 3px solid var(--f4f-signal); outline-offset: 2px; }
.f4f [hidden] { display: none !important; }
.f4f img { max-width: 100%; height: auto; }

/* Top bar */
.f4f-top { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 16px 0 14px; border-bottom: 1px solid var(--f4f-line); }
.f4f-brand { font-family: var(--f4f-display); font-weight: 900; font-size: 26px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.f4f-tabs { display: flex; gap: 4px; background: var(--f4f-surface); border: 1px solid var(--f4f-line); border-radius: 999px; padding: 4px; }
.f4f-tabs a { text-decoration: none; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--f4f-muted); }
.f4f-tabs a[aria-current="page"] { background: var(--f4f-accent); color: var(--f4f-accent-ink); }
.f4f-tabs a.f4f-pledge-tab[aria-current="page"] { background: var(--f4f-signal); color: var(--f4f-signal-ink); }

/* Type */
.f4f .f4f-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--f4f-muted); }
.f4f .f4f-h1 { font-family: var(--f4f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 6vw, 68px); line-height: .92; letter-spacing: .01em; margin: 8px 0 14px; }
.f4f .f4f-h2 { font-family: var(--f4f-display); font-weight: 800; text-transform: uppercase; font-size: 28px; letter-spacing: .02em; line-height: 1.05; }

/* Collection hero */
.f4f-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 32px 24px; }
.f4f-intro p { max-width: 58ch; margin: 0 0 10px; color: var(--f4f-muted); }
.f4f-intro strong { color: var(--f4f-ink); }
.f4f-tally { margin-top: 20px; max-width: 460px; }
.f4f-tally-nums { display: flex; gap: 28px; align-items: flex-end; margin-bottom: 10px; }
.f4f-tally-n { display: flex; flex-direction: column; }
.f4f-tally-n b { font-family: var(--f4f-display); font-weight: 900; font-size: 64px; line-height: .85; font-variant-numeric: tabular-nums; }
.f4f-tally-n.f4f-ok b { color: var(--f4f-ok); }
.f4f-tally-n span { font-size: 13px; color: var(--f4f-muted); margin-top: 4px; }
.f4f-track { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--f4f-surface); border: 1px dashed var(--f4f-open-line); }
.f4f-seg-ok { background: var(--f4f-ok); }
.f4f-seg-pl { background: repeating-linear-gradient(135deg, var(--f4f-pledged) 0 5px, #5A78A6 5px 10px); }

/* Tile map */
.f4f-mapbox { background: var(--f4f-surface); border: 1px solid var(--f4f-line); border-radius: 14px; padding: 16px; box-shadow: var(--f4f-shadow); }
.f4f-map { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.f4f .f4f-tile { aspect-ratio: 1; border-radius: 5px; border: 1.5px solid transparent; display: grid; place-items: center; font-family: var(--f4f-display); font-weight: 800; font-size: clamp(10px, 1.6vw, 15px); letter-spacing: .03em; padding: 0; background: var(--f4f-surface-2); color: var(--f4f-muted); line-height: 1; transition: transform .12s; }
.f4f .f4f-tile.is-complete { background: var(--f4f-ok); color: #fff; }
.f4f .f4f-tile.is-missing { background: var(--f4f-surface); border: 1.5px dashed var(--f4f-open-line); }
.f4f .f4f-tile.is-open { background: var(--f4f-signal); color: var(--f4f-signal-ink); }
.f4f .f4f-tile.is-pledged { background: repeating-linear-gradient(135deg, var(--f4f-pledged) 0 5px, #5A78A6 5px 10px); color: #fff; cursor: default; }
.f4f .f4f-tile.is-done { opacity: .55; cursor: default; }
.f4f .f4f-tile.is-sel { outline: 3px solid var(--f4f-ink); outline-offset: 1px; }
.f4f .f4f-tile:hover:not(.is-done):not(.is-pledged) { transform: translateY(-1px); }
.f4f-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12px; color: var(--f4f-muted); }
.f4f-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; }
.f4f-key-ok { background: var(--f4f-ok); }
.f4f-key-missing { border: 1px dashed var(--f4f-open-line); }
.f4f-key-open { background: var(--f4f-signal); }
.f4f-key-pledged { background: var(--f4f-pledged); }
.f4f-key-done { background: var(--f4f-surface-2); border: 1px solid var(--f4f-line); }
.f4f .f4f-hint { font-size: 12px; color: var(--f4f-muted); margin-top: 10px; }

/* Filter bar */
.f4f-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding-block: 20px 12px; border-top: 1px solid var(--f4f-line); margin-top: 12px; }
.f4f-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.f4f-seg { display: flex; flex-wrap: wrap; background: var(--f4f-surface); border: 1px solid var(--f4f-line); border-radius: 8px; padding: 3px; }
.f4f .f4f-seg button { border: 0; background: none; padding: 5px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--f4f-muted); }
.f4f .f4f-seg button[aria-pressed="true"] { background: var(--f4f-ink); color: var(--f4f-ground); }
.f4f select, .f4f input[type="search"] { font-size: 14px; line-height: 1.4; min-height: 0; margin: 0; background: var(--f4f-surface); color: var(--f4f-ink); border: 1px solid var(--f4f-line); border-radius: 8px; padding: 7px 10px; width: auto; height: auto; }
.f4f input[type="search"] { width: 190px; }
.f4f-count { font-size: 13px; color: var(--f4f-muted); margin-bottom: 12px; }
.f4f .f4f-count button { border: 0; background: none; color: var(--f4f-accent); font-weight: 600; padding: 0; text-decoration: underline; }

/* Plate cards */
.f4f-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.f4f .f4f-card { display: flex; flex-direction: column; gap: 10px; text-align: left; background: var(--f4f-surface); border: 1px solid var(--f4f-line); border-radius: 12px; padding: 14px; color: var(--f4f-ink); transition: transform .15s, box-shadow .15s; }
.f4f .f4f-card:hover { transform: translateY(-2px); box-shadow: var(--f4f-shadow); }
.f4f-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.f4f-lpid { font-family: var(--f4f-mono); font-size: 12px; color: var(--f4f-muted); }
.f4f .f4f-card h3 { font-size: 16px; font-weight: 700; line-height: 1.25; }
.f4f .f4f-card p { font-size: 13px; color: var(--f4f-muted); line-height: 1.4; }
.f4f-chip { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.f4f-chip.is-yes { background: var(--f4f-ok-soft); color: var(--f4f-ok); }
.f4f-chip.is-unv { background: var(--f4f-warn-soft); color: var(--f4f-warn); }
.f4f-chip.is-no { background: var(--f4f-surface-2); color: var(--f4f-muted); border: 1px solid var(--f4f-line); }

/* Photo */
.f4f-photo { aspect-ratio: 2 / 1; border-radius: 7px; overflow: hidden; background: #2A2F36; display: grid; place-items: center; }
.f4f-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.f4f-dlg .f4f-photo { aspect-ratio: auto; max-height: 60vh; }
.f4f-dlg .f4f-photo img { height: auto; max-height: 60vh; }

/* Drawn plate (stand-in until a photo is added) */
.f4f-plate { container-type: inline-size; position: relative; aspect-ratio: 2 / 1; max-width: 100%; border-radius: 7px; background: var(--pbg, #eee); color: var(--pfg, #111);
	box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pfg) 85%, transparent), inset 0 0 0 5px var(--pbg), inset 0 0 0 6px color-mix(in srgb, var(--pfg) 30%, transparent), 0 2px 0 rgba(0,0,0,.18), 0 6px 12px rgba(0,0,0,.14);
	display: grid; grid-template-rows: auto 1fr auto; align-items: center; justify-items: center; padding: 5% 9% 4%; overflow: hidden; }
.f4f-plate.is-square { aspect-ratio: 1.45 / 1; }
.f4f-plate::before { content: ""; position: absolute; inset: 14% 13%; pointer-events: none;
	background: radial-gradient(circle at 0 0, rgba(0,0,0,.45) 0 2.4%, transparent 3%), radial-gradient(circle at 100% 0, rgba(0,0,0,.45) 0 2.4%, transparent 3%), radial-gradient(circle at 0 100%, rgba(0,0,0,.45) 0 2.4%, transparent 3%), radial-gradient(circle at 100% 100%, rgba(0,0,0,.45) 0 2.4%, transparent 3%); }
.f4f-plate::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(160deg, rgba(255,255,255,.22), transparent 40%, rgba(0,0,0,.10)); mix-blend-mode: soft-light; }
.f4f-plate.is-worn::after { background: radial-gradient(ellipse at 80% 70%, rgba(120,60,20,.35), transparent 45%), radial-gradient(ellipse at 15% 25%, rgba(120,60,20,.25), transparent 35%), linear-gradient(160deg, rgba(255,255,255,.2), transparent 40%, rgba(0,0,0,.12)); mix-blend-mode: normal; }
.f4f-p-top, .f4f-p-bot { font-family: var(--f4f-display); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 8.5cqw; line-height: 1; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.f4f-p-bot { letter-spacing: .06em; font-size: 7.5cqw; }
.f4f-p-num { font-family: var(--f4f-display); font-weight: 900; font-size: 25cqw; line-height: 1; letter-spacing: .02em; white-space: nowrap; text-shadow: 0 1px 0 rgba(255,255,255,.35), 0 -1px 0 rgba(0,0,0,.35), 0 2px 2px rgba(0,0,0,.18); }
.f4f-p-num.is-long { font-size: 19cqw; }
.f4f-p-num.is-xlong { font-size: 15cqw; }
.f4f-vert { position: absolute; top: 50%; transform: translateY(-50%); font-family: var(--f4f-display); font-weight: 900; font-size: 9cqw; line-height: .95; display: flex; flex-direction: column; align-items: center; }
.f4f-vert.is-l { left: 6%; } .f4f-vert.is-r { right: 6%; }

/* Pledge page */
.f4f-pledge-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-block: 32px 8px; }
.f4f .f4f-pledge-h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: .9; margin: 8px 0 16px; }
.f4f .f4f-pledge-h1 em { font-style: normal; background: var(--f4f-signal); color: var(--f4f-signal-ink); padding: 0 .12em; border-radius: 4px; }
.f4f-countdown { display: flex; gap: 18px; align-items: flex-end; margin-block: 14px 18px; flex-wrap: wrap; }
.f4f-big { font-family: var(--f4f-display); font-weight: 900; font-size: 64px; line-height: .85; font-variant-numeric: tabular-nums; }
.f4f-lbl { font-size: 13px; color: var(--f4f-muted); max-width: 24ch; }
.f4f-progress .f4f-track { height: 14px; border-style: solid; border-color: var(--f4f-line); }
.f4f-nums { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--f4f-muted); margin-top: 8px; }
.f4f-nums b { color: var(--f4f-ink); font-variant-numeric: tabular-nums; }
.f4f .f4f-steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; counter-reset: f4fstep; }
.f4f-steps li { counter-increment: f4fstep; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; margin: 0; }
.f4f-steps li::before { content: counter(f4fstep); font-family: var(--f4f-display); font-weight: 900; font-size: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--f4f-ink); color: var(--f4f-ground); }
.f4f-steps b { display: block; }
.f4f-steps span { color: var(--f4f-muted); font-size: 14px; }
.f4f-rules { background: var(--f4f-surface); border: 1px solid var(--f4f-line); border-radius: 14px; padding: 18px 20px; margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; }
.f4f-rules .f4f-h2 { grid-column: 1 / -1; font-size: 24px; }
.f4f-rule b { display: block; font-size: 14px; }
.f4f-rule span { font-size: 13px; color: var(--f4f-muted); }
.f4f-open-list .f4f-h2 { margin-top: 32px; }
.f4f .f4f-sub { color: var(--f4f-muted); font-size: 14px; margin: 4px 0 14px; max-width: 70ch; }
.f4f-state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.f4f .f4f-state { display: flex; flex-direction: column; gap: 2px; text-align: left; background: var(--f4f-surface); border: 1px solid var(--f4f-line); border-radius: 10px; padding: 12px 14px 12px 18px; position: relative; overflow: hidden; color: var(--f4f-ink); }
.f4f .f4f-state:hover:not([disabled]) { border-color: var(--f4f-ink); }
.f4f-state b { font-family: var(--f4f-display); font-weight: 800; font-size: 22px; text-transform: uppercase; line-height: 1.05; }
.f4f-state small { font-size: 12px; color: var(--f4f-muted); line-height: 1.35; }
.f4f-state .f4f-go { font-size: 12px; font-weight: 700; margin-top: 6px; }
.f4f-state:not([disabled]) .f4f-go::after { content: " →"; }
.f4f .f4f-state[disabled] { cursor: default; background: var(--f4f-surface-2); }
.f4f-state[disabled] b { color: var(--f4f-muted); }
.f4f-state[disabled] .f4f-go { color: var(--f4f-pledged); }
.f4f-state::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--f4f-signal); }
.f4f-state.is-upgrade::before { background: var(--f4f-warn); }
.f4f-state[disabled]::before { background: var(--f4f-pledged); }

/* Call to action */
.f4f-cta { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; background: var(--f4f-signal); color: var(--f4f-signal-ink); border-radius: 14px; padding: 18px 22px; margin-top: 28px; }
.f4f-cta b { font-family: var(--f4f-display); font-weight: 900; text-transform: uppercase; font-size: 26px; line-height: 1; }
.f4f .f4f-cta a { background: var(--f4f-signal-ink); color: var(--f4f-signal); text-decoration: none; font-weight: 700; padding: 9px 16px; border-radius: 8px; }

/* Dialogs */
.f4f-dialog { border: 0; border-radius: 16px; padding: 0; background: var(--f4f-surface); color: var(--f4f-ink); width: min(620px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); box-shadow: 0 20px 60px rgba(0,0,0,.35); font-family: var(--f4f-body); font-size: 15px; line-height: 1.55; }
.f4f-dialog::backdrop { background: rgba(10,14,20,.6); }
.f4f-dlg { padding: 22px; display: grid; gap: 16px; }
.f4f-dlg-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.f4f-dlg-head h2 { font-family: var(--f4f-display); font-weight: 900; text-transform: uppercase; font-size: 34px; line-height: .95; }
.f4f .f4f-x, .f4f-dialog .f4f-x { border: 1px solid var(--f4f-line); background: var(--f4f-surface-2); color: var(--f4f-ink); border-radius: 8px; width: 34px; height: 34px; flex: none; font-size: 18px; line-height: 1; padding: 0; }
.f4f-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.f4f-facts dt { color: var(--f4f-muted); }
.f4f-facts dd { margin: 0; }
.f4f-story { font-size: 15px; }
.f4f-story p { margin: 0 0 8px; }
.f4f-private { border: 1px dashed var(--f4f-open-line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; font-size: 13px; }
.f4f-private h3 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--f4f-muted); }
.f4f-private a { color: var(--f4f-accent); font-weight: 600; }
.f4f-checks { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.f4f-checks legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.f4f-checks label { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; font-size: 14px; }
.f4f-checks input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--f4f-ok); }
.f4f-field { display: grid; gap: 4px; }
.f4f-field label { font-size: 13px; font-weight: 600; }
.f4f-field small { font-size: 12px; color: var(--f4f-muted); }
.f4f-dialog input[type="text"], .f4f-dialog input[type="email"], .f4f-dialog textarea { font: inherit; font-size: 14px; line-height: 1.4; background: var(--f4f-surface); color: var(--f4f-ink); border: 1px solid var(--f4f-line); border-radius: 8px; padding: 8px 10px; width: 100%; height: auto; min-height: 0; margin: 0; box-shadow: none; }
.f4f-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f4f-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.f4f-primary { border: 0; background: var(--f4f-signal); color: var(--f4f-signal-ink); font-weight: 900; padding: 12px 18px; border-radius: 10px; font-family: var(--f4f-display); text-transform: uppercase; letter-spacing: .04em; font-size: 20px; cursor: pointer; }
.f4f-primary:disabled { opacity: .5; cursor: progress; }
.f4f-err { color: var(--f4f-err); font-size: 13px; margin: 0; }
.f4f-done { text-align: center; display: grid; gap: 10px; padding-block: 10px; }
.f4f-done h2 { font-family: var(--f4f-display); font-weight: 900; text-transform: uppercase; font-size: 40px; line-height: .95; }
.f4f-done p { margin: 0; color: var(--f4f-muted); }
.f4f-dialog .f4f-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--f4f-muted); }

@media (max-width: 820px) {
	.f4f-hero, .f4f-pledge-hero { grid-template-columns: 1fr; }
	.f4f-two { grid-template-columns: 1fr; }
	.f4f input[type="search"] { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.f4f *, .f4f-dialog * { transition: none !important; }
}
