/* PMF Finance — Funds Index (v2)
   ----------------------------------------------------------------
   Standalone interactive page. Square ledger cards that FLIP:
   front = article + NAV/share, token price, market cap + sparkline;
   back = constituent donut + scrollable market list. Live ticker
   tape up top, betslip order ticket docked at the bottom of screen.
   Reuses tokens from ../colors_and_type.css.
   ---------------------------------------------------------------- */

* {
	box-sizing: border-box;
}
html,
body {
	margin: 0;
	padding: 0;
}
body {
	background: #eceae3;
	font-family: var(--font-body);
	color: #111;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* App frame — newspaper page centered on a quiet gray bed */
.pmf-app {
	--frontpage-scale: 1.2;
	--fp-page-max: 1584px;
	--fp-grid-max: 1104px;
	--fp-pad: 29px;
	--fp-gap: 29px;
	--fp-card-pad: 19px;
	--fp-spark-height: 62px;
	width: 100%;
	max-width: var(--fp-page-max);
	margin: 0 auto;
	background: #ffffff;
	border-left: 1px solid #e0ddd4;
	border-right: 1px solid #e0ddd4;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}
.pmf-app.has-betslip {
	padding-bottom: 115px;
}

/* ===================== TOP CHROME ===================== */
.pmf-util {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 11px var(--fp-pad);
	border-bottom: 1px solid #e6e6e6;
	font-family: var(--font-headline);
	font-size: 13px;
	color: #525252;
	letter-spacing: .04em;
}
.pmf-util .left {
	display: flex;
	gap: 22px;
}
.pmf-util .left a {
	color: #525252;
	text-decoration: none;
}
.pmf-util .left a:hover {
	color: #cc0000;
}
.pmf-util .right {
	display: flex;
	gap: 17px;
	align-items: center;
}
.pmf-util .pill {
	background: #000;
	color: #fff;
	padding: 5px 12px;
	font-weight: 700;
	letter-spacing: .06em;
}

.pmf-masthead {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 19px var(--fp-pad) 17px;
	border-bottom: 1px solid #111;
}
.pmf-masthead .ledger {
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 14px;
	color: #525252;
}
.pmf-masthead .ledger b {
	font-family: var(--font-headline);
	font-style: normal;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #111;
	display: block;
	font-size: 12px;
	margin-bottom: 2px;
}
.pmf-masthead .wordmark {
	text-align: center;
	font-family: var(--font-masthead);
	font-size: 48px;
	line-height: 1;
	color: #111;
}
.pmf-masthead .wordmark .small {
	display: block;
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 13px;
	letter-spacing: .04em;
	color: #525252;
	margin-top: 7px;
}
.pmf-masthead .actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}

.pmf-btn-thin {
	font-family: var(--font-headline);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 10px 17px;
	cursor: pointer;
	border: 1px solid #111;
	background: #fff;
	color: #111;
}
.pmf-btn-thin.solid {
	background: #111;
	color: #fff;
}
.pmf-btn-thin:hover {
	background: #111;
	color: #fff;
}
.pmf-btn-thin.solid:hover {
	background: #000;
}

.pmf-nav {
	display: flex;
	gap: 26px;
	padding: 12px var(--fp-pad);
	border-bottom: 1px solid #e6e6e6;
	font-family: var(--font-headline);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	flex-wrap: wrap;
}
.pmf-nav a {
	color: #111;
	text-decoration: none;
	padding: 5px 0;
	white-space: nowrap;
}
.pmf-nav a.active {
	color: #cc0000;
	border-bottom: 2px solid #cc0000;
}
.pmf-nav a:hover {
	color: #cc0000;
}

/* ===================== TICKER TAPE ===================== */
.pmf-tape {
	display: flex;
	align-items: stretch;
	border-bottom: 1px solid #111;
	background: #111;
	color: #fff;
	overflow: hidden;
}
.pmf-tape .tape-label {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 19px;
	background: #cc0000;
	color: #fff;
	font-family: var(--font-headline);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	white-space: nowrap;
	z-index: 2;
}
.pmf-tape .tape-label .blip {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
	animation: pmf-blip 1.6s steps(1) infinite;
}
@keyframes pmf-blip {
	0%,
	60% {
		opacity: 1;
	}
	61%,
	100% {
		opacity: 0.25;
	}
}
.pmf-tape .tape-window {
	flex: 1 1 auto;
	overflow: hidden;
	position: relative;
}
.pmf-tape .tape-track {
	display: flex;
	align-items: center;
	width: max-content;
	animation: pmf-marquee 52s linear infinite;
}
@keyframes pmf-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}
.pmf-tape .tick {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 12px 22px;
	white-space: nowrap;
	border-right: 1px solid rgba(255, 255, 255, 0.12);
	font-family: var(--font-mono);
	font-size: 14px;
}
.pmf-tape .tick .sym {
	font-family: var(--font-headline);
	font-weight: 700;
	letter-spacing: .06em;
	color: #fff;
}
.pmf-tape .tick .px {
	color: #e6e6e6;
}
.pmf-tape .tick .ch.up {
	color: #9fe0a0;
}
.pmf-tape .tick .ch.dn {
	color: #ff8a8a;
}
.pmf-tape .tick.flash {
	background: rgba(255, 255, 255, 0.08);
}

/* ===================== PAGE INTRO ===================== */
.pmf-intro {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 32px;
	padding: 29px var(--fp-pad) 19px;
	border-bottom: 1px solid #111;
}
.pmf-intro > div:first-child {
	flex: 1 1 auto;
	min-width: 0;
}
.pmf-intro .kicker {
	font-family: var(--font-headline);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #cc0000;
	margin-bottom: 7px;
}
.pmf-intro h1 {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 48px;
	line-height: 1;
	letter-spacing: -.01em;
	margin: 0;
	color: #111;
}
.pmf-intro .sub {
	max-width: 912px;
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 17px;
	line-height: 1.42;
	color: #525252;
	margin-top: 10px;
}
.pmf-intro .right {
	flex: 0 0 360px;
	min-width: 0;
	text-align: right;
	font-family: var(--font-headline);
}
.intro-count {
	margin-top: 10px;
}
.pmf-intro .right .big {
	font-weight: 800;
	font-size: 36px;
	color: #111;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.pmf-intro .right .lab {
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #525252;
	margin-top: 7px;
}

/* ===================== GRID ===================== */
.pmf-grid-wrap {
	padding: var(--fp-pad);
}
.pmf-geo-banner {
	width: min(1400px, calc(100vw - 32px));
	margin: 14px auto 0;
	background: #991d1d;
	color: #fff;
	border: 2px solid #661414;
	font-family: var(--font-headline);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0;
	padding: 12px 16px;
	text-align: center;
}
.pmf-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--fp-gap);
}

.legacy-holdings {
	max-width: var(--fp-grid-max);
	margin: 22px auto 0;
	border: 2px solid #111;
	background: #fff;
}
.legacy-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	border-bottom: 1px solid #111;
}
.legacy-head .kicker {
	font-family: var(--font-headline);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #cc0000;
	margin-bottom: 5px;
}
.legacy-head h2 {
	margin: 0;
	font-family: var(--font-serif);
	font-size: 30px;
	line-height: 1;
}
.legacy-count {
	font-family: var(--font-headline);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #525252;
}
.legacy-empty {
	padding: 18px 20px;
	font-family: var(--font-serif);
	font-size: 15px;
	color: #525252;
}
.legacy-table {
	display: flex;
	flex-direction: column;
}
.legacy-row {
	display: grid;
	grid-template-columns: minmax(220px, 1.2fr) minmax(130px, .55fr) minmax(
			130px,
			.55fr
		) minmax(180px, .8fr) auto;
	align-items: center;
	gap: 18px;
	padding: 16px 20px;
	border-top: 1px solid #e6e6e6;
}
.legacy-row:first-child {
	border-top: 0;
}
.legacy-main {
	display: flex;
	align-items: center;
	gap: 13px;
	min-width: 0;
}
.legacy-symbol {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 1px solid #111;
	font-family: var(--font-headline);
	font-weight: 800;
	font-size: 13px;
}
.legacy-name {
	font-family: var(--font-headline);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.legacy-meta {
	margin-top: 4px;
	font-family: var(--font-mono);
	font-size: 12px;
	color: #525252;
}
.legacy-balance span {
	display: block;
	font-family: var(--font-headline);
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #525252;
	margin-bottom: 3px;
}
.legacy-balance b {
	font-family: var(--font-mono);
	font-size: 14px;
	color: #111;
}
.legacy-note {
	font-family: var(--font-serif);
	font-size: 13px;
	line-height: 1.35;
	color: #525252;
}
.legacy-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: wrap;
}
.legacy-actions button {
	border: 1px solid #111;
	background: #111;
	color: #fff;
	min-height: 38px;
	padding: 0 12px;
	font-family: var(--font-headline);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
}
.legacy-actions button.secondary {
	background: #fff;
	color: #111;
}
.legacy-actions button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* ---- Flip card shell ---- */
.flip-card {
	position: relative;
	aspect-ratio: 1 / 1;
	perspective: 1920px;
	transition: transform .16s ease;
}
.flip-card:hover {
	transform: translateY(-3px);
}
.flip-inner {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	transition: transform .62s cubic-bezier(0.4, 0, 0.2, 1);
}
.flip-card.flipped .flip-inner {
	transform: rotateY(180deg);
}
.face {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	border: 2px solid #111;
	background: #fff;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.flip-card:hover .face {
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
.face.back {
	transform: rotateY(180deg);
}

/* ---- FRONT (ledger) ---- */
.face.front {
	cursor: pointer;
}
.flip-hint {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 6px 11px;
	background: #111;
	color: #fff;
	font-family: var(--font-headline);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: 0;
	transition: opacity .15s ease;
	pointer-events: none;
}
.face.front:hover .flip-hint {
	opacity: 1;
}

.front-pad {
	padding: var(--fp-card-pad) var(--fp-card-pad) 0;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.kicker-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}
.cat-kicker {
	font-family: var(--font-headline);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #cc0000;
}
.chg {
	font-family: var(--font-mono);
	font-size: 16px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 8px;
	transition: background .5s ease;
}
.chg.up {
	color: #1a5a1a;
	background: #eff5ef;
}
.chg.dn {
	color: #cc0000;
	background: #f8efef;
}
.chg.tickflash.up {
	background: #cde8cd;
}
.chg.tickflash.dn {
	background: #f4d8d8;
}
.price-badge {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 2px;
	min-width: 142px;
	padding: 11px 13px 12px;
	border: 2px solid #111;
	background: #fbfaf6;
	color: #111;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.12);
}
.price-badge .price-label {
	font-family: var(--font-headline);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #737373;
}
.price-badge b {
	font-family: var(--font-mono);
	font-size: 31px;
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: 0;
}
.price-badge .price-move {
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
}
.price-badge .price-move.price-up {
	color: #111;
}
.price-badge .price-move.price-down {
	color: #cc0000;
}
.price-badge .price-move.pending {
	font-family: var(--font-headline);
	font-size: 10px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #737373;
}

.skeleton-text {
	display: inline-block;
	width: 5.4em;
	max-width: 100%;
	height: 1em;
	vertical-align: -0.12em;
	background: linear-gradient(90deg, #e6e1d6 0%, #f7f4ec 50%, #e6e1d6 100%);
	background-size: 220% 100%;
	animation: skeleton-shimmer 1.15s ease-in-out infinite;
}
.price-badge .price-skeleton {
	width: 4.2em;
	height: 1.05em;
}
.card-byline .skeleton-text {
	width: 8.5em;
	height: .82em;
}
.skeleton-stack {
	display: grid;
	gap: 8px;
	width: 100%;
}
.skeleton-stack .skeleton-text:nth-child(1) {
	width: 100%;
}
.skeleton-stack .skeleton-text:nth-child(2) {
	width: 74%;
}
@keyframes skeleton-shimmer {
	from {
		background-position: 100% 0;
	}
	to {
		background-position: -100% 0;
	}
}

.fund-name {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 29px;
	line-height: 1.08;
	color: #111;
	letter-spacing: -.005em;
	margin: 11px 0 0;
}
.card-byline {
	font-family: var(--font-headline);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #525252;
	margin-top: 6px;
	display: flex;
	gap: 10px;
	align-items: center;
}
.card-byline .dot {
	color: #ccc;
}
.card-byline em {
	font-family: var(--font-serif);
	font-style: italic;
	text-transform: none;
	letter-spacing: 0;
	color: #666;
}
.fund-desc {
	font-family: var(--font-serif);
	font-size: 15px;
	line-height: 1.46;
	color: #404040;
	margin: 12px 0 0;
}

.front-allocation {
	padding: 0;
	margin-top: 16px;
}
.alloc-label-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-family: var(--font-headline);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #525252;
}
.alloc-bar {
	display: flex;
	width: 100%;
	height: 12px;
	margin-top: 7px;
	border: 1px solid #111;
	background: #f7f7f7;
	overflow: hidden;
}
.alloc-segment {
	display: block;
	min-width: 0;
	height: 100%;
}
.alloc-segment + .alloc-segment {
	border-left: 1px solid rgba(255, 255, 255, 0.7);
}
.alloc-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-top: 7px;
	font-family: var(--font-headline);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #737373;
}
.alloc-legend span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}
.alloc-legend i {
	width: 10px;
	height: 10px;
	border: 1px solid #111;
}
.front-allocation.is-loading .alloc-bar {
	background: linear-gradient(90deg, #e6e1d6 0%, #f7f4ec 50%, #e6e1d6 100%);
	background-size: 220% 100%;
	animation: skeleton-shimmer 1.15s ease-in-out infinite;
}

.metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid #111;
	border-bottom: 1px solid #e6e6e6;
	margin-top: auto;
}
.pmf-status {
	padding: 17px 19px;
	margin-bottom: 19px;
	font-family: var(--font-headline);
	font-size: 14px;
	letter-spacing: .04em;
}
.pmf-status-error {
	border: 1px solid #cc0000;
	background: #f8efef;
	color: #cc0000;
}

/* Two-fund layout — cap width so square cards don't blow up on wide viewports. */
.pmf-grid {
	max-width: var(--fp-grid-max);
	margin: 0 auto;
}
@media (min-width: 864px) {
	.pmf-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Flip affordances rendered as real <button> elements (a11y). */
.flip-hint {
	border: 0;
	cursor: pointer;
}
.flip-hint:focus-visible {
	opacity: 1;
	outline: 2px solid #fff;
	outline-offset: -3px;
}
button.back-head {
	border: 0;
	width: 100%;
	text-align: left;
	font: inherit;
	cursor: pointer;
}
button.back-head:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -3px;
}

/* Card-wide flip click target — absolutely positioned button under interactive children. */
.flip-toggle {
	position: absolute;
	inset: 0;
	z-index: 1;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
}
.flip-toggle:focus-visible {
	outline: 2px solid #111;
	outline-offset: -4px;
}
.face.front .front-pad,
.face.front .spark-band,
.face.front .flip-hint {
	position: relative;
	z-index: 2;
	pointer-events: none;
}
.face.front .front-pad a,
.face.front .front-pad button {
	pointer-events: auto;
}
.face.front .buy-index {
	position: relative;
	z-index: 3;
}

/* Back face: decorative layers click through to flip-toggle; interactive layers stay above. */
.face.back {
	cursor: pointer;
}
.face.back .donut-row {
	position: relative;
	z-index: 2;
	pointer-events: none;
}
.face.back .back-head,
.face.back .back-track,
.face.back .holdings,
.face.back .buy-index {
	position: relative;
	z-index: 3;
}
.face.back .holdings {
	cursor: pointer;
}
.face.back .buy-index {
	cursor: pointer;
}

/* Firefox backface-visibility fallback — children with z-index break parent backface
   culling in Firefox, so we also toggle `visibility` at the rotation midpoint to
   reliably hide the non-active face across browsers. */
.face {
	visibility: visible;
	transition: visibility 0s linear .31s;
}
.flip-card .face.back {
	visibility: hidden;
}
.flip-card.flipped .face.front {
	visibility: hidden;
}
.flip-card.flipped .face.back {
	visibility: visible;
}

/* Inline "Tracks ..." link on card front byline. */
.tracks-link {
	font-family: var(--font-headline);
	font-style: normal;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #cc0000;
	text-decoration: none;
}
.tracks-link:hover,
.tracks-link:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ========= Shared site-masthead (matches landing, plus wallet panel) ========= */
.site-masthead {
	padding: 22px var(--fp-pad) 0;
}
.masthead-top {
	min-height: 0;
	padding-bottom: 19px;
	border-bottom: var(--border-4);
}
.masthead-top > * {
	min-width: 0;
}
.site-masthead h1 {
	margin: 0;
	min-width: 0;
	font-family: var(--font-masthead);
	font-size: clamp(48px, 8.4vw, 116px);
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: 0;
	text-align: center;
	text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.12);
	white-space: nowrap;
	overflow: hidden;
}
.masthead-nav {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: center;
	gap: 22px;
	padding-top: 13px;
	font-family: var(--font-headline);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0.2em;
	line-height: 1.2;
	text-transform: uppercase;
}
.masthead-nav a {
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}
.masthead-nav a:nth-child(2) {
	justify-self: center;
	text-align: center;
}
.masthead-nav a:last-child {
	justify-self: end;
	text-align: right;
}
.masthead-nav a[aria-current="page"] {
	color: var(--fg-accent);
}
.masthead-nav a:hover,
.masthead-nav a:focus-visible {
	color: var(--fg-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.intro-wallet {
	display: flex;
	justify-content: flex-end;
}
.masthead-wallet {
	min-width: 0;
	width: min(100%, 360px);
	border: 1px solid #111;
	background: #fbfaf6;
	padding: 11px 14px 12px;
	font-family: var(--font-headline);
}
.masthead-wallet.is-disconnected {
	display: block;
}
.masthead-wallet.is-connected {
	display: block;
}
.wallet-action {
	border: 1px solid #111;
	background: #fff;
	color: #111;
	min-height: 34px;
	padding: 0 12px;
	cursor: pointer;
	font-family: var(--font-headline);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
}
.wallet-action:hover {
	background: var(--fg-accent);
	border-color: var(--fg-accent);
	color: #fff;
}
.wallet-action:disabled {
	background: #d4d4d4;
	border-color: #d4d4d4;
	color: #525252;
	cursor: not-allowed;
}
.wallet-action-accent {
	background: #111;
	color: #fff;
}
.wallet-card-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 14px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .16em;
	line-height: 1.1;
	text-transform: uppercase;
	color: #525252;
}
.wallet-card-head .addr {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: #737373;
}
.wallet-total {
	overflow: hidden;
	text-overflow: ellipsis;
	font-family: var(--font-mono);
	font-size: 25px;
	font-weight: 800;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	color: #111;
	margin-top: 4px;
}
.wallet-total-warning {
	font-family: var(--font-headline);
	font-size: 17px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #cc0000;
}
.wallet-balances {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #e0ded8;
}
.wallet-balance-cell {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.wallet-balance-cell span {
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #737373;
	white-space: nowrap;
}
.wallet-balance-cell b {
	overflow: hidden;
	text-overflow: ellipsis;
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	color: #111;
	white-space: nowrap;
}
.wallet-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 12px;
}
.wallet-actions .wallet-action {
	flex: 1 1 auto;
}
.wallet-link-action {
	display: block;
	margin: 8px auto 0;
	padding: 0;
	border: 0;
	border-bottom: 1px solid #111;
	background: transparent;
	cursor: pointer;
	font-family: var(--font-headline);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #111;
}
.wallet-link-action:hover {
	color: #cc0000;
	border-color: #cc0000;
}
.wallet-link-action:disabled {
	color: #9a9a9a;
	border-color: #9a9a9a;
	cursor: not-allowed;
}
.red-rule {
	height: 4px;
	margin-top: 14px;
	background: var(--fg-accent);
}

@media (max-width: 1248px) {
	.site-masthead h1 {
		font-size: clamp(48px, 8.4vw, 96px);
	}
	.pmf-intro .right {
		flex-basis: 340px;
	}
}

@media (max-width: 864px) {
	.site-masthead h1 {
		font-size: clamp(41px, 13.2vw, 58px);
		white-space: normal;
		overflow: visible;
	}
	.masthead-top {
		gap: 12px;
		text-align: center;
	}
	.masthead-nav {
		grid-template-columns: 1fr;
		gap: 7px;
		text-align: center;
	}
	.masthead-nav a:nth-child(2) {
		justify-self: center;
		text-align: center;
	}
	.masthead-nav a:last-child {
		justify-self: center;
		text-align: center;
	}
	.pmf-intro {
		flex-direction: column;
		gap: 18px;
	}
	.pmf-intro .right {
		flex: 0 1 auto;
		width: 100%;
		text-align: left;
	}
	.intro-wallet {
		justify-content: center;
	}
	.masthead-wallet {
		width: min(100%, 468px);
		min-width: 0;
	}
	.wallet-card-head {
		text-align: left;
	}
	.wallet-total {
		text-align: left;
	}
}
.metrics .m {
	min-width: 0;
	padding: 11px 8px 11px;
	border-right: 1px solid #e6e6e6;
}
.metrics .m:last-child {
	border-right: 0;
}
.metrics .ml {
	min-height: 24px;
	font-family: var(--font-headline);
	font-size: 10px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #525252;
}
.metrics .mv {
	overflow-wrap: anywhere;
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: 18px;
	color: #111;
	line-height: 1.1;
	margin-top: 4px;
	font-variant-numeric: tabular-nums;
	transition: color .5s ease;
}
.metrics .mv.perf-up {
	color: #1a5a1a;
}
.metrics .mv.perf-down {
	color: #cc0000;
}
.metrics .mv.pending {
	font-family: var(--font-headline);
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #737373;
}
.metric-sub {
	margin-top: 4px;
	font-family: var(--font-headline);
	font-size: 10px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #737373;
	white-space: normal;
}
.metrics .m.tok .mv {
	color: #cc0000;
}
.metrics .m.tok .ml {
	color: #cc0000;
}
.metrics .m.tok .mv.tickflash {
	color: #111;
}
.policy-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 8px 0 10px;
	font-family: var(--font-headline);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #525252;
}
.policy-strip span {
	border: 1px solid #e0ddd4;
	background: #fafafa;
	padding: 4px 6px;
	white-space: nowrap;
}

.spark-band {
	margin: 0 calc(-1 * var(--fp-card-pad));
}
.spark {
	width: 100%;
	display: block;
}
.front .spark {
	height: var(--fp-spark-height);
}
.spark-skeleton {
	background: #fafafa;
}
.spark-skeleton path {
	animation: skeleton-stroke 1.15s ease-in-out infinite;
}
@keyframes skeleton-stroke {
	0%,
	100% {
		opacity: 0.45;
	}
	50% {
		opacity: 0.9;
	}
}

.buy-index {
	font-family: var(--font-headline);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	border: 0;
	background: #111;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 16px 14px;
	min-height: 55px;
	transition: background .15s ease;
}
.buy-index:hover {
	background: #cc0000;
}
.buy-index:disabled {
	background: #d4d4d4;
	color: #525252;
	cursor: not-allowed;
}
.buy-index:disabled:hover {
	background: #d4d4d4;
}
.buy-index .px-tag {
	font-family: var(--font-mono);
	font-weight: 600;
	letter-spacing: 0;
	opacity: 0.9;
}
.geoblock-notice {
	border: 1px solid #cc2727;
	background: #ffe5e5;
	color: #661414;
	font-family: var(--font-ui);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	padding: 10px 12px;
}

/* ---- BACK (distribution) ---- */
.back-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #111;
	color: #fff;
	padding: 11px 17px;
	cursor: pointer;
}
.back-head .t {
	font-family: var(--font-headline);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.back-head .x {
	font-family: var(--font-headline);
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 7px;
	color: #fff;
}
.back-head:hover .x {
	color: #ff8a8a;
}

.donut-row {
	display: flex;
	align-items: center;
	gap: 17px;
	padding: 17px 19px;
	border-bottom: 1px solid #111;
	cursor: pointer;
}
.donut-row svg {
	flex: 0 0 auto;
}
.donut-skeleton {
	flex: 0 0 auto;
	width: 125px;
	height: 125px;
	border-radius: 50%;
	border: 23px solid #eee;
	background: #fafafa;
	animation: skeleton-stroke 1.15s ease-in-out infinite;
}
.donut-cap .h {
	font-family: var(--font-headline);
	font-size: 12px;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: #525252;
}
.donut-cap .v {
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 16px;
	line-height: 1.4;
	color: #404040;
	margin-top: 5px;
}
.scan-meta {
	margin-top: 7px;
	font-family: var(--font-headline);
	font-size: 10px;
	line-height: 1.35;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: #737373;
}
.back-track {
	display: block;
	padding: 8px 19px;
	border-bottom: 1px solid #e6e6e6;
	font-family: var(--font-headline);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #cc0000;
	text-decoration: none;
}
.back-track:hover,
.back-track:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.holdings {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 0 19px;
}
.hrow {
	display: grid;
	grid-template-columns: 13px minmax(0, 1fr) minmax(228px, 0.9fr);
	gap: 13px;
	padding: 12px 0;
	border-bottom: 1px solid #eee;
	align-items: start;
}
.hrow-link {
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}
.hrow-link:hover .q,
.hrow-link:focus-visible .q {
	color: #cc0000;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.hrow-link:focus-visible {
	outline: 2px solid #111;
	outline-offset: -2px;
}
.hrow:last-child {
	border-bottom: 0;
}
.hrow-empty .sw {
	background: #d4d4d4;
}
.hrow .sw {
	width: 13px;
	height: 13px;
	margin-top: 4px;
}
.hrow .q {
	font-family: var(--font-serif);
	font-size: 15px;
	line-height: 1.25;
	color: #111;
}
.holding-status {
	display: inline-block;
	margin-left: 7px;
	transform: translateY(-1px);
	border: 1px solid #d8d1c4;
	padding: 1px 5px;
	font-family: var(--font-headline);
	font-size: 9px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #6b5a48;
	background: #f7f4ee;
}
.hrow-skeleton .sw {
	background: #d4d4d4;
}
.hrow-skeleton .q .skeleton-text {
	width: 100%;
	height: 1.05em;
}
.holding-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
	gap: 6px 11px;
	align-items: start;
	justify-items: end;
	font-family: var(--font-mono);
	font-size: 12px;
	color: #404040;
	font-variant-numeric: tabular-nums;
	text-align: right;
}
.hrow-skeleton .holding-stats .skeleton-text {
	justify-self: end;
	width: 100%;
	max-width: 89px;
	height: 1em;
}
.holding-stats b {
	display: block;
	font-family: var(--font-headline);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #737373;
}
.holding-stats .side {
	align-self: start;
	grid-column: 3;
	grid-row: 1 / span 2;
	font-family: var(--font-headline);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	padding: 1px 6px;
	border: 1px solid #111;
	color: #111;
	background: #fff;
}
.holding-stats .side.no {
	border-color: #cc0000;
	color: #cc0000;
	background: #f8efef;
}
.holdings-meta {
	padding: 12px 0 14px;
	font-family: var(--font-headline);
	font-size: 10px;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #737373;
}
.holdings::-webkit-scrollbar {
	width: 8px;
}
.holdings::-webkit-scrollbar-thumb {
	background: #d4d4d4;
}

/* ===================== WRAP MODAL ===================== */
.pmf-wrap-dialog {
	position: fixed;
	inset: 50% auto auto 50%;
	z-index: 80;
	width: min(720px, calc(100vw - 32px));
	max-height: min(760px, calc(100vh - 32px));
	margin: 0;
	padding: 0;
	transform: translate(-50%, -50%);
	border: 2px solid #111;
	background: #fff;
	color: #111;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	overflow: auto;
}
.pmf-wrap-dialog::backdrop {
	background: rgba(17, 17, 17, 0.42);
}
.wrap-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 18px 20px;
	border-bottom: 2px solid #111;
	background: #fbfaf6;
}
.wrap-head .kicker {
	font-family: var(--font-headline);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #cc0000;
}
.wrap-head h2 {
	margin: 5px 0 0;
	font-family: var(--font-serif);
	font-size: 32px;
	line-height: 1;
}
.wrap-deck {
	max-width: 560px;
	margin: 9px 0 0;
	font-family: var(--font-sans);
	font-size: 13px;
	line-height: 1.45;
	color: #404040;
}
.wrap-head .close {
	border: 0;
	background: transparent;
	color: #111;
	cursor: pointer;
	font-family: var(--font-headline);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.wrap-head .close:hover {
	color: #cc0000;
}
.wrap-body {
	display: flex;
	flex-direction: column;
	gap: 17px;
	padding: 20px;
}
.wrap-balances {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border: 1px solid #111;
}
.wrap-balance-cell {
	min-width: 0;
	padding: 13px 14px;
	border-right: 1px solid #111;
}
.wrap-balance-cell:last-child {
	border-right: 0;
}
.wrap-balance-cell span,
.wrap-label {
	display: block;
	font-family: var(--font-headline);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #737373;
}
.wrap-balance-cell b {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-top: 5px;
	font-family: var(--font-mono);
	font-size: 18px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: #111;
	white-space: nowrap;
}
.wrap-intent {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border: 1px solid #111;
	background: #fbfaf6;
}
.wrap-intent > div {
	min-width: 0;
	padding: 13px 14px;
	border-right: 1px solid #111;
}
.wrap-intent > div:last-child {
	border-right: 0;
}
.wrap-intent span {
	display: block;
	font-family: var(--font-headline);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #cc0000;
}
.wrap-intent b {
	display: block;
	margin-top: 5px;
	font-family: var(--font-headline);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #111;
}
.wrap-intent p {
	margin: 6px 0 0;
	font-family: var(--font-sans);
	font-size: 12px;
	line-height: 1.4;
	color: #404040;
}
.wrap-section {
	min-width: 0;
}
.wrap-label {
	margin-bottom: 8px;
}
.wrap-current-step {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding: 13px 14px;
	border: 1px solid #111;
	background: #fff;
}
.wrap-current-step div {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.wrap-current-step div > span {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border: 2px solid #111;
	border-radius: 50%;
	background: #cc0000;
	color: #fff;
	font-family: var(--font-headline);
	font-size: 12px;
	font-weight: 900;
}
.wrap-current-step b {
	overflow-wrap: anywhere;
	font-family: var(--font-headline);
	font-size: 14px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.wrap-current-step p {
	max-width: 290px;
	margin: 0;
	font-family: var(--font-headline);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	line-height: 1.35;
	text-align: right;
	text-transform: uppercase;
	color: #525252;
}
.wrap-funding-panel {
	display: flex;
	padding: 14px;
	border: 1px solid #111;
	background: #fbfaf6;
}
.wrap-funding-button {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	text-transform: none;
}
.wrap-segmented {
	width: max-content;
	max-width: 100%;
}
.wrap-source-note {
	margin: 8px 0 0;
	font-family: var(--font-headline);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #525252;
}
.wrap-recovery {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 13px;
	border: 1px solid #111;
	background: #fbfaf6;
}
.wrap-amount-field .cur {
	min-width: 96px;
	font-size: 15px;
}
.wrap-error {
	margin-top: 8px;
	font-family: var(--font-headline);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #cc0000;
}
.wrap-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.wrap-actions .wallet-action {
	min-height: 48px;
	padding: 0 16px;
}
.wrap-confirm {
	width: auto;
	min-width: 220px;
	padding: 14px 18px;
}
.wrap-message {
	border: 1px solid #e0ddd4;
	background: #fbfaf6;
	padding: 12px 13px;
	font-family: var(--font-headline);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #525252;
}
.wrap-message-error {
	border-color: #cc0000;
	background: #f8efef;
	color: #cc0000;
}
.wrap-message-succeeded {
	border-color: #1a5a1a;
	background: #eff5ef;
	color: #1a5a1a;
}
.wrap-route {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 13px;
	border-top: 2px solid #111;
}
.wrap-step-list {
	display: flex;
	flex-direction: column;
	border: 1px solid #111;
}
.wrap-step {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 11px 13px;
	border-top: 1px solid #e6e6e6;
	font-family: var(--font-headline);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #525252;
}
.wrap-step:first-child {
	border-top: 0;
}
.wrap-step b {
	min-width: 0;
	overflow-wrap: anywhere;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	text-align: right;
	color: #111;
}
.wrap-step-confirmed b {
	color: #1a5a1a;
}
.wrap-step-failed b {
	color: #cc0000;
}
.wrap-step-dots {
	position: sticky;
	bottom: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin: 4px -20px -20px;
	border-top: 2px solid #111;
	background: #fff;
}
.wrap-step-dots button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	min-height: 58px;
	padding: 8px 10px;
	border: 0;
	border-right: 1px solid #111;
	background: #fbfaf6;
	color: #525252;
	cursor: pointer;
	font-family: var(--font-headline);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .08em;
	line-height: 1.15;
	text-transform: uppercase;
}
.wrap-step-dots button:last-child {
	border-right: 0;
}
.wrap-step-dots button.is-active {
	background: #111;
	color: #fff;
}
.wrap-step-dots button:disabled {
	cursor: not-allowed;
	opacity: 0.68;
}
.wrap-dot {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border: 2px solid currentColor;
	border-radius: 50%;
	font-size: 11px;
	line-height: 1;
}

/* ===================== BETSLIP (fixed, docked bottom of screen) ===================== */
.pmf-betslip {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 0;
	border-top: 3px solid #111;
	box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.22);
	color: #111;
	transform: translateY(115%);
	transition: transform .34s cubic-bezier(0.4, 0, 0.2, 1);
}
.pmf-betslip.open {
	transform: translateY(0);
}
.slip-inner {
	max-width: var(--fp-page-max);
	margin: 0 auto;
}
.slip-head {
	background: #111;
	color: #fff;
}
.slip-head .head-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px var(--fp-pad);
}
.slip-head .title {
	font-family: var(--font-headline);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 12px;
}
.slip-head .title .blip {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #cc0000;
}
.slip-head .close {
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-family: var(--font-headline);
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.slip-head .close:hover {
	color: #ff8a8a;
}

.slip-body {
	display: grid;
	grid-template-columns: 1.3fr 1.6fr 1fr;
	align-items: stretch;
}
.slot {
	padding: 22px var(--fp-pad);
	border-right: 1px solid #e6e6e6;
}
.slot:last-child {
	border-right: 0;
}
.slip-slotlab {
	font-family: var(--font-headline);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #525252;
	border-bottom: 1px solid #111;
	padding-bottom: 7px;
	margin-bottom: 14px;
}

.slip-ident .cat {
	font-family: var(--font-headline);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #cc0000;
}
.slip-ident .nm {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 29px;
	line-height: 1.05;
	margin: 7px 0 10px;
	color: #111;
}
.slip-ident .meta {
	font-family: var(--font-headline);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #525252;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.slip-ident .viewlink {
	display: inline-block;
	margin-top: 14px;
	font-family: var(--font-headline);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #cc0000;
	text-decoration: none;
}
.slip-ident .viewlink:hover {
	text-decoration: underline;
}
.tx-line {
	margin-top: 14px;
	font-family: var(--font-headline);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #525252;
}
.tx-line-confirmed {
	color: #1a5a1a;
}
.tx-line-failed {
	color: #cc0000;
}

.slip-amount .lab {
	font-family: var(--font-headline);
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #525252;
	margin-bottom: 10px;
}
.segmented {
	display: inline-grid;
	grid-auto-flow: column;
	border: 1px solid #111;
	background: #fff;
}
.segmented button {
	min-width: 89px;
	border: 0;
	border-right: 1px solid #111;
	background: #fff;
	color: #111;
	padding: 8px 14px;
	cursor: pointer;
	font-family: var(--font-headline);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.segmented button:last-child {
	border-right: 0;
}
.segmented button.is-active {
	background: #111;
	color: #fff;
}
.segmented button:disabled {
	background: #f0f0f0;
	color: #9a9a9a;
	cursor: not-allowed;
}
.slip-segmented {
	margin-bottom: 12px;
}
.amount-field {
	display: flex;
	align-items: stretch;
	border: 1px solid #111;
}
.amount-field .cur {
	min-width: 65px;
	justify-content: center;
	padding: 0 14px;
	font-family: var(--font-headline);
	font-weight: 800;
	font-size: 24px;
	color: #111;
	border-right: 1px solid #111;
	background: #f7f7f7;
	display: flex;
	align-items: center;
}
.amount-field input {
	flex: 1 1 auto;
	border: 0;
	outline: 0;
	width: 100%;
	font-family: var(--font-mono);
	font-size: 31px;
	font-weight: 600;
	color: #111;
	padding: 10px 14px;
	background: #fff;
	min-width: 0;
}
.chips {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}
.chips button {
	font-family: var(--font-headline);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	padding: 7px 14px;
	border: 1px solid #d4d4d4;
	background: #fff;
	color: #404040;
	cursor: pointer;
}
.chips button:hover,
.chips button.on {
	background: #111;
	color: #fff;
	border-color: #111;
}
.chips button:disabled {
	background: #f0f0f0;
	color: #9a9a9a;
	cursor: not-allowed;
}

.slip-confirm {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 14px;
}
.slip-receive {
	padding-top: 2px;
}
.slip-confirm .shares-lab {
	font-family: var(--font-headline);
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #525252;
}
.slip-confirm .shares-num {
	font-family: var(--font-headline);
	font-weight: 800;
	font-size: 41px;
	line-height: 0.95;
	color: #111;
	font-variant-numeric: tabular-nums;
}
.slip-confirm .shares-num small {
	font-family: var(--font-headline);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	color: #525252;
	text-transform: uppercase;
	display: block;
	margin-top: 6px;
}
.slip-receipt {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 12px;
	border-top: 2px solid #111;
}
.receipt-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	font-family: var(--font-headline);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #525252;
}
.receipt-label {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	max-width: 100%;
}
.term-help {
	position: relative;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid #a3a3a3;
	border-radius: 50%;
	background: #fff;
	color: #525252;
	cursor: help;
	font-family: var(--font-headline);
	font-size: 10px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
}
.term-help:hover,
.term-help:focus-visible {
	border-color: #111;
	color: #111;
	outline: none;
}
.term-help::after {
	position: absolute;
	left: 0;
	bottom: calc(100% + 8px);
	z-index: 85;
	width: max-content;
	max-width: min(280px, calc(100vw - 58px));
	padding: 9px 10px;
	border: 1px solid #111;
	background: #111;
	color: #fff;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
	content: attr(data-tooltip);
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.25;
	text-align: left;
	text-transform: none;
	white-space: normal;
	opacity: 0;
	pointer-events: none;
	transform: translateY(3px);
	visibility: hidden;
	transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
}
.term-help:hover::after,
.term-help:focus-visible::after {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
}
.receipt-row b {
	min-width: 0;
	overflow-wrap: anywhere;
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	color: #111;
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.confirm-btn {
	font-family: var(--font-headline);
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	border: 0;
	background: #cc0000;
	color: #fff;
	cursor: pointer;
	padding: 18px 17px;
	min-height: 58px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	transition: background .15s ease;
}
.confirm-btn:hover {
	background: #111;
}
.confirm-btn:disabled {
	background: #d4d4d4;
	color: #525252;
	cursor: not-allowed;
}
.confirm-btn:disabled:hover {
	background: #d4d4d4;
}
.confirm-btn .cost {
	font-family: var(--font-mono);
	font-weight: 600;
	letter-spacing: 0;
}
.pmf-betslip.filled .confirm-btn {
	background: #1a5a1a;
}

/* ===================== FOOTER ===================== */
.pmf-foot {
	margin: 14px var(--fp-pad) 0;
	border-top: 1px solid #000;
	padding: 18px 0 0;
}
.pmf-foot-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 14px 22px;
	font-family: var(--font-headline);
	font-size: clamp(11px, 0.85vw, 13px);
	font-weight: 500;
	letter-spacing: .14em;
	line-height: 1.35;
	text-transform: uppercase;
}
.pmf-foot-links a {
	color: #000;
	text-decoration: none;
}
.pmf-foot-links a:hover,
.pmf-foot-links a:focus-visible {
	color: var(--fg-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1296px) {
	.slip-body {
		grid-template-columns: 1fr 1fr;
	}
	.slip-confirm {
		grid-column: 1 / -1;
		border-top: 1px solid #e6e6e6;
	}
}
@media (max-width: 864px) {
	.pmf-grid {
		grid-template-columns: 1fr;
	}
	.legacy-row {
		grid-template-columns: 1fr;
		align-items: start;
	}
	.legacy-actions {
		justify-content: flex-start;
	}
	.flip-card {
		aspect-ratio: auto;
		min-height: 744px;
	}
	.pmf-masthead {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 12px;
	}
	.pmf-masthead .actions {
		justify-content: center;
	}
	.pmf-wrap-dialog {
		width: min(720px, calc(100vw - 18px));
		max-height: calc(100vh - 18px);
	}
	.wrap-head {
		padding: 16px;
	}
	.wrap-body {
		padding: 16px;
	}
	.wrap-balances {
		grid-template-columns: 1fr;
	}
	.wrap-intent {
		grid-template-columns: 1fr;
	}
	.wrap-balance-cell {
		border-right: 0;
		border-top: 1px solid #111;
	}
	.wrap-balance-cell:first-child {
		border-top: 0;
	}
	.wrap-intent > div {
		border-right: 0;
		border-top: 1px solid #111;
	}
	.wrap-intent > div:first-child {
		border-top: 0;
	}
	.wrap-current-step {
		flex-direction: column;
		gap: 9px;
	}
	.wrap-current-step p {
		max-width: none;
		text-align: left;
	}
	.wrap-actions {
		align-items: stretch;
	}
	.wrap-actions .wallet-action,
	.wrap-confirm {
		width: 100%;
	}
	.wrap-step-dots {
		margin: 4px -16px -16px;
	}
	.wrap-step-dots button {
		flex-direction: column;
		gap: 5px;
		min-height: 70px;
		padding: 8px 5px;
		font-size: 9px;
	}
	.slip-body {
		grid-template-columns: 1fr;
	}
	.slot {
		border-right: 0;
		border-bottom: 1px solid #e6e6e6;
	}
}
@media (prefers-reduced-motion: reduce) {
	.pmf-tape .tape-track {
		animation: none;
	}
	.pmf-tape .blip,
	.pmf-betslip .blip {
		animation: none;
	}
	.flip-inner {
		transition: none;
	}
}

/* Four-fund additions that preserve the original newspaper palette. */
.wallet-eligibility-note,
.wallet-funding-note {
	border-top: 1px solid #e6e6e6;
	padding: 9px 12px;
	color: #525252;
	font-size: 11px;
	line-height: 1.45;
}
.wallet-eligibility-note {
	color: #cc0000;
}
